Ads 468x60px

Tuesday, August 14, 2012

الفية بن مالك الجزء الاول

البداية:



1) قال محمد هو ابن مالك أحمد ربي الله خير مالك

2)
مصلياً على النبي المصطفى وآله المستكملين الشرفا

3)
وأستعين الله في ألفية ابن مالك مقاصد النحو به محويه

4)
تقرب القصى بلفظ موجز وتبسط البذل بوعد منجز

5)
وتقتضى رضا بغير سخط فـائقة ألفية ابن معطى

6)
وهوبسبق حائز تفضيلا مستوجب ثنائى الجميلا

7)
والله يقضي بهبات وافره لي وله في درجات الآخره



الكلام وما يتألف منه


8)
كلامنا لفظ مفيد كاستـقـم واسم و فـعل ثم حرف الكلم

9)
واحده كلمه والقول عـم وكلمة بها كـلام قـد يـؤم

10)
بالجر والتنوين والند وأل ومسند للاسم تمييز حصل

11)
بتا فعلت وأنت ويا افعلي ونون أقبـلن فعـل ينجلي

12)
سواهما الحرف كهل وفي ولم فعل مضارع يلي لم كبـثم

13)
وماضي الأفعال بتامز وسم بالنون فعل الأمر إن أمر فهم

14)
والأمر إن لم يك للنون محل فيه هو اسم نحو صه وحيهل


المعرب والمبنى


الفية بن مالك الجزء الثاني

حرف الجر

364) هاك حروف الجر وهي من الى حتى خلا حاشا عدا في عن على


365) مذ منذ رب اللام كى واو وتا والكاف والبا ولعـل ومـتـى


366) بالظاهر أخصص منذ مذ وحتى والكاف والواو ورب والتــاء


367) واخصص بمذ ومنذ وقتاً وبرب منكـر والتـاء لـلـه ورب


368) وما رووا من نحو ربه فتى نزر كذا كـهـا ونحــوه أتى


369) بعض وبين وابتدى فى الأمكنه بمن وقد تأتى لبـدء الأزمـنه


370) وزيد فى نفى وشبهه فجـر نكرة كمـا لباغ مـن مـفـر


371) للانتها حتـى ولام والـى ومن وباء يفـهـمـان بـدلا


372) واللام للملك وشبهــه وفي تعدية أيضاً وتعـليل قـفـى


373) وزيد والظرفية استبن ببـا وفي وقد يبينـان السـبـبـا


374) بالبا استعن وعد عوض ألصق ومثل مع ومن وعن بها انطق


375) على للأستعلا ومعنى في وعن بعن تجاوزا عنى من قد فطن


376) وقد تجى موضع بعد وعلى كما على موضع عن قد جعلا


377) شبه بكاف وبها التعليل قد يعنى وزائداً لتـوكيـد ورد


378) واستعمل اسماً وكذا عن وعلى من أجل عليهما من دخــلا


379) ومذ ومنذ اسمان حيث رفعا أو أوليا الفعل كجئث مد دعا


380) وان يجرا في مضى فكمن هما وفي الحضور معنى في استبن


381) وبعد من وعن وباء زيد ما فلم يعق عن عمل قد علمـا


382) وزيد بعد رب والكاف فكف وقد يليهما وجر لم يـكـف


383) وحذفت رب فجرت بعد بل وألفا وبعد الواو وشاع ذا العمل


384) وقد يجر بسوى رب لدى حذف وبعضه يرى مطردا



الإضافة


الفية بن مالك الجزء الثالث




ما لا ينصرف

649) الصرف تنوين اتى مبينا معنى به يكون الاسـم امكن


650) فالف التانيث مطلقا منع صرف الذي حواه كيفما وقع


651) وزائد فعلان في وصفه سلم من ان يرى بتاء تأنيث ختم


652) ووصف اصلى ووزن افعلا ممنوع تانيث بتا كأشـهـلا


653) والغين عارض الوصفيـه كأربع وعارض الاسـميـه


654) فالادهم القيد لكونه وضع فى الاصل وصفا انصراف منع


655) واجدل واخيل وافـعـى مصروفة وقـد ينلـن المنعـا


656) ومنع عدل مع وصف معتبر فى لفـظ مثنى وثلاث واخـر


657) ووزن مـثـنى كهمـا من واحد لأربـع فليعـلـمـا


658) وكن لجمع مشبه مفاعلا أو المفـاعلين بمنـع كـافـلا


659) وذا اعتلال منه كالجوارى رفعا وجـرا اجـره كسـارى


660) ولـراويل بـهذا الجمـع شـبه اقتفى عمـوم المـنـع


661) وان به سـمى أو بما لحق به فالانصراف منعه بـحـق


662) والعلم امنع صرفه مركبا تركيب مزج نحو معد يكربا


663) كذلك حاوى زائدى فعلانا كـغطفان وكـأصـبهـانا


664) كذا مؤنث بهاء مطلـقـا وشـرط منع العار كونه ارتقى


665) فوق الثلاث او كجور او سقر او زيد اسم امراة لا اسم ذكر


666) وجهان في العادم تذكيرا سبق وعجمة كهـند والمنع احق


667) والعجمى الوضع والتعريف مع زيد على الثلاث صرفه امتنع


668) كذالك ذو النون يخص الفعلا او غالب كأحـمـد ويعـلى


669) وما بصير علما من ذي الف زيدت لإلحاق فليس ينصرف


670) والعلم امنع صرفه ان عدلا كفعل التوكيد او كثـعـلا


671) والعدل والتعريف مانعا سحر اذا به التعبين قصدا يعتب


672) وابن على الكسر فعال علما مؤنثا وهو نظير جشمـا


673) عند تميم واصرفن ما نكرا من كل ما التعريف فيه اثرا


674) وما يكون منه منقوصا ففى اعرابه نهج جوار يقتفى


675) ولا ضطرار او تناسب صرف ذو المنع والمصروف قد لا ينصرف


إعراب الفعل

Tuesday, July 3, 2012

XAF : Grouping of Report Data Based on Specific Field

To group report data based on specific field, you should follow the following steps
  • Run XAF desktop application [note that report can't be modified from XAF web app.]
  • Edit your report via XAF Report Designer
  • Right mouse click then put mouse on Insert Band, after that click on GroupHeader.

Wednesday, May 30, 2012

How to write a Stored procedure in SQL-SERVER

Stored Procedure:- Stored Procedure In Sql server can be defined as the set of logically group of sql statement which are grouped to perform a specific task. There are many benefits of using a stored procedure. The main benefit of using a stored procedure is that it increases the performance of the database.The other benefits of using the Stored Procedure is given below:

Benefits of using the Stored Procedure
  1. One of the main benefit of using the Stored procedure is that it reduces the amount of information sent to the database server. It can become more important benefit when the bandwidth of the network is less. Since if we send the sql query (statement)which is executing in a loop to the server through network and the network get disconnected then the execution of the sql statement don't returns the expected results, if the sql query is not used between Transaction statement and rollback statement is not used.
     
  2. Compilation step is required only once when the stored procedure is created. Then after it does not required recompilation before executing unless it is modified and re utilizes the same execution plan whereas the sql statements needs to be compiled every time whenever it is sent for execution even if we send the same sql statement every time.
     
  3. It helps in re usability of the sql code because it can be used by multiple users and by multiple client since we needs to just call the stored procedure instead of writing the same sql statement every time. It helps in reduces the development time.
     
  4. Stored procedure is helpful in enhancing the security since we can grant permission to the user for executing the Stored procedure instead of giving the permission on the tables used in the Stored procedure.
     
  5. Sometime it is useful to use the database for storing the business logic in the form of stored procedure since it make it secure and if any change is needed in the business logic then we may only need to make changes in the stored procedure and not in the files contained on the web server.
How to write a Stored Procedure in SQL Server

Suppose there is a table called tbl_Students whose structure is given below:

CREATE TABLE  tbl_Students

(
    [Studentid] [int] IDENTITY(1,1) NOT NULL,
    [Firstname] [nvarchar](200) NOT  NULL,
    [Lastname] [nvarchar](200)  NULL,
    [Email] [nvarchar](100)  NULL
)
 
Suppose we insert the following data into the above table:
Insert into tbl_Students (Firstname, lastname, Email)
 Values('Vivek', 'Johari', 'vivek@abc.com')

Insert into tbl_Students (Firstname, lastname, Email)
 Values('Pankaj', 'Kumar', 'pankaj@abc.com')

Insert into tbl_Students (Firstname, lastname, Email)
 Values('Amit', 'Singh', 'amit@abc.com')

Insert into tbl_Students (Firstname, lastname, Email)
 Values('Manish', 'Kumar', 'manish@abc.comm')

Insert into tbl_Students (Firstname, lastname, Email)D
 Values('Abhishek', 'Singh', 'abhishek@abc.com')


Friday, May 4, 2012

XAF : Change Listview Default GroupSummary

The following steps will used to change group summary for Listview:
  1. Open model designer by click on application file Model.xafml under YourProject.Web
     
  2. Change GroupSummary Property as shown below:

     
  3. GroupSummary Format Structure {1}:{2},{3}:{4}
    example : TotalPrivateCharge:Sum,TotalPrivateCharge:Sum={0:n2}
     
    1. Property Name
    2. Aggregation Function
    3. Property Name
    4. Aggregation String Format. [Sum={0:n2}]
      1. '0' means first argument which is TotalPrivateCharge
      2. 'n2' means the second argument which is aggregation function value.
    5. Result for this aggregation function is 'Sum=25.12'

Monday, April 30, 2012

XAF : Add Sequence (Serial) Number into a Report

In order to add sequence or serial number such that 1,2,3,4,...etc into a report in devexpress, you should follow the following steps
  • add a Label into a report

  •  Expand Label Tasks dialog

  •  Set Summary Function to Record Number, and Summary Running to Group