public ActionResult CollectionSheetForCustomerFPR() { objLoginHelper = (LoginHelper)Session["LogInInformation"]; if (!securityDal.IsPageAccessible(Helper.ForSales, "CollectionSheetForCustomerFPR", objLoginHelper.UerRoleOrGroupID, Helper.Inactive, out message)) { Session["messageInformation"] = message; return(RedirectToAction("ErrorMessage", "../ErrorHnadle")); } ViewBag.TopMenu = objLoginHelper.TopMenu; ViewBag.OpenMonthYear = "Month: " + objLoginHelper.MonthOpenForSales.ToString("MMMM-yy"); ViewBag.LocationTitle = objLoginHelper.LocationTitle; ViewBag.Location = objLoginHelper.Location; ViewBag.ZoneTitle = objLoginHelper.ZoneTitle; ViewBag.ZoneName = objLoginHelper.LogInForZoneName; ViewBag.RegionTitle = objLoginHelper.RegionTitle; ViewBag.RegionName = objLoginHelper.LogInForRegionName; ViewBag.UnitTitle = objLoginHelper.UnitTitle; ViewBag.UnitName = objLoginHelper.LogInForUnitName; List <EmployeeDetailsInfo> locationWiseEmployee = new List <EmployeeDetailsInfo>(); locationWiseEmployee = new RASolarHRMSService().ReadLocationWiseEmployeeWithUMAcountManager(objLoginHelper.LocationCode); ViewBag.CustomerFPR = locationWiseEmployee; return(View()); }
public string ReadAuditSeqNumberAfterCheckFinishedDate(string locationCode) { IRASolarHRMSService HRMSService = new RASolarHRMSService() { }; return(HRMSService.ReadAuditSeqNumberAfterCheckFinishedDate(locationCode)); }
public List <FixedAssetSerialList> GetCashMemoSerialList(byte storeLocation, string locationCode, string itemCode, string option) { RASolarHRMSService hrmService = new RASolarHRMSService(); List <FixedAssetSerialList> lstFixedAssetSerial = new List <FixedAssetSerialList>(); lstFixedAssetSerial = erpService.GetCashMemoSerialList(storeLocation, locationCode, itemCode, option); //string[] aa = lstFixedAssetSerial.Select(s => s.EmployeeID).Distinct().ToArray(); //List<string> uids = new List<string>(aa); //List<EmployeeDetailsInfo> employeeInfo = new List<EmployeeDetailsInfo>(); //employeeInfo = hrmService.ReadEmployeeInfo(uids); //if (employeeInfo.Count() > 0) //{ // List<FixedAssetSerialList> lstFixedAssetSerial1 = new List<FixedAssetSerialList>(); // lstFixedAssetSerial1 = (from cdrd in lstFixedAssetSerial // join emi in employeeInfo // on cdrd.EmployeeID equals emi.EmployeeID // select new FixedAssetSerialList // { // AllocationSeqNo = cdrd.AllocationSeqNo, // ItemSerialNo = cdrd.ItemSerialNo, // EmployeeID = cdrd.EmployeeID, // EmployeeName = emi.EmployeeName, // AllocationDate = cdrd.AllocationDate, // ItemCode = cdrd.ItemCode, // Remarks = cdrd.Remarks, // }).ToList(); // lstFixedAssetSerial = (from ss in lstFixedAssetSerial // where !(from aaa in lstFixedAssetSerial1 select aaa.EmployeeID).Contains(ss.EmployeeID) // select ss // ).ToList(); // lstFixedAssetSerial = lstFixedAssetSerial.Union(lstFixedAssetSerial1).ToList(); // lstFixedAssetSerial = lstFixedAssetSerial.Union(lstFixedAssetSerial1).ToList(); //} return(lstFixedAssetSerial); }