Friday, May 3, 2013

Understanding 2.1

Code Business logic Deliverable Creation.

Load Deliverable type in dropdown.

1.        Check maximum role of current user.
2.        Retrieve of all routine and non routine deliverable with active flag yes(Why we are calling two method with parameter routine and non routine although that can be done by without parameter) : Answer : Routine deliverable would be shown to BAA role only.
3.        Retrieve group list for the current user.
4.   Remove all the deliverable type by checking group of user and deliverable type group one by one(DeliverableTypes.RemoveAll(d => !dLogSrv.IsDeliverableTypeContainsUserGroup(groups, d.GroupIDs))
5.        Show groups in dropdown which match user group and deliverable type group. 






Ad hoc reporting.
1.        Getting configuration values from web.config like logpath, site url, userid , pwd etc.
2.        Logs are logged with each event of deliverable
3.        SynchStatus check whether it is the first time deliverable list exporting to database or in case it has already exported, only the deliverable between last run date and today inserted into database. The same way for removing the deliverable.
4.        Get list of deliverable and field collection(internal name, display name), get the type of each field and values. Inserted values according to the type.
5.        Synching all data if the parameter set to 1 and incremental if the parameter is set to 0, incremental rule is last execution date to next day date.


Search & Report :-
Populate data for Groups
1.        List<string> calling business logic function to get List of usergroups
2.        Business logic function retrieving this from SPQuery object and assign to splistitemcollection object finally splistitemcollection assigned to linq variable and manipulating the query i.e order by and with some where clauses finally assigning the var to List<string>
var query = from SPListItem item in itemCols
                         where item["Workgroup"] == null || string.IsNullOrEmpty(item["Workgroup"].ToString())
            select ConvertObjectToString(item["Group"]);
            userGroups = query.OrderBy(d => d).ToList<string>();
3.    Loop through each item of List<string> and add to the dropdown. Always accessible web using spcontext.current.web

Populate data for DeliverableType



Export to Excel
Export to PDF

If I will will be owner of search I will do like this.
1.        Add all the controls on the page and with the help of div in first div I display default and second I display all
2.        Polulate all the controls on the page layout with the data
3.        Create function which will create the search query as per the user selected data and retrieve this into datatable.
4.        Bind datatable with grid
5.        Create function to export to excel
6.        Create function to export to PDF with the predefined function of itextsharpdll



Try to do Environment setup
Understand WCF Service and Json




Homepage
Loading and maintain groups
Upcoming milestone
Next Deliverable Due
System Ann cement







No comments:

Post a Comment