예제 #1
0
        public void populateData(bool fetchOtherData)
        {
            //base.SetSearchOpts(index.Value);
            //Special case: Set the filter back if it existed so that if the user "re-visits" the page he gets the previous filter (unless reset or logged off)
            searchOpts = _Session.Search[Filters.list.ActivityLog];

            //vw_ActivityLog searchOptions = (vw_ActivityLog)(searchOpts);

            if (_Session.IsOnlyCustomer) //If its customer he can view only his activity
                (searchOpts as vw_ActivityLog).UserID = _SessionUsr.ID; // searchOptions

            if (fetchOtherData){
            ViewData["Activities"] = new ActivityLogService(ActivityLogService.Activity.Login).GetActivities();
            ViewData["UserList"] = new LookupService().GetLookup(LookupService.Source.User);
            }
        }
 public ActionResult Items(int ClaimID, string ClaimGUID, int? DetailID)
 {
     ViewData["Brands"] = new LookupService().GetLookup(LookupService.Source.BrandItems);
     ViewData["ClaimGUID"] = ClaimGUID;
     return View();
 }
예제 #3
0
 public void doAddEditPopulate()
 {
     // ViewData["oprSuccess"] = base.operationSuccess;//oprSuccess will be reset after this
     ViewData["OrgTypes"] = new LookupService().GetLookup(LookupService.Source.OrgType);
 }
예제 #4
0
        public void populateData(bool fetchOtherData)
        {
            //using (MiniProfiler.Current.Step("Populate lookup Data"))
            {
                vw_Claim_Dashboard searchOptions = (vw_Claim_Dashboard)(searchOpts);
                if (_Session.IsOnlyCustomer) searchOptions.CustID = _SessionUsr.OrgID;//Set the cust filter
                if (_Session.IsOnlyVendor) searchOptions.VendorID = _SessionUsr.OrgID;//Set the Vendor filter
                if (_Session.IsOnlySales) searchOptions.SalespersonID = _SessionUsr.ID;//Set the Sales filter

                if (fetchOtherData)
                    ViewData["Status"] = new LookupService().GetLookup(LookupService.Source.Status);
            }
        }