public GINReportDataCollection(GINReportInfo ginReportInfo, ILookupSource lookupSource) { _site = null; List.Add( new GINReportData( ginReportInfo.GINNo, ginReportInfo.DateIssued, lookupSource.GetLookup("Warehouse")[ginReportInfo.WarehouseId], lookupSource.GetLookup("Client")[ginReportInfo.ClientId], lookupSource.GetLookup("ClientId")[ginReportInfo.ClientId], lookupSource.GetLookup("PUNAgent")[ginReportInfo.PickupNoticeAgentId], ginReportInfo.PUNAIdNo, lookupSource.GetLookup("NIDType")[ginReportInfo.PUNANIDType], lookupSource.GetLookup("CommodityGrade")[ginReportInfo.CommodityGradeId], ginReportInfo.Quantity, ginReportInfo.Weight, ginReportInfo.ScaleTicketNo, lookupSource.GetLookup("BagType")[ginReportInfo.BagType], ginReportInfo.Bags, false, string.Empty, string.Empty, ginReportInfo.DriverName, ginReportInfo.LicenseNo, ginReportInfo.IssuedBy, ginReportInfo.PlateNo, lookupSource.GetLookup("GINStatus")[ginReportInfo.Status] )); }
protected void Page_Load(object sender, EventArgs e) { inventoryServiceLookup = InventoryServices.StaticLookupSource; SearchConditionSelector1.LookupSource = inventoryServiceLookup; if (!IsPostBack) { SearchConditionSelector1.DataFilter = InventoryServices.GetPhysicalCountCatalogFilter("CompleteFilterSet"); } SetCatalogData(); }
protected void Page_Load(object sender, EventArgs e) { ginLookup = GINProcessBLL.StaticLookupSource; SearchConditionSelector1.LookupSource = ginLookup; if (!IsPostBack) { SearchConditionSelector1.DataFilter = GINProcessBLL.GetCatalogFilter("CompleteFilterSet"); } SetCatalogData(); }
public static void NotifyGIN(Guid truckId) { IGINProcess ginProcess = GetGINProcess(true); ILookupSource lookup = ginProcess.LookupSource; GINProcessInfo ginProcessInfo = ginProcess.GINProcessInformation; GINTruckInfo truck = (from trk in ginProcessInfo.Trucks where trk.TruckId == truckId select trk).Single(); ECXCD.WR wr = new WarehouseApplication.ECXCD.WR(); wr.SaveGIN( truck.GIN.GINId, truck.GIN.GINNo, ginProcessInfo.PickupNoticeId, Convert.ToDouble(truck.GIN.GrossWeight), Convert.ToDouble(truck.GIN.NetWeight), Convert.ToDouble(truck.GIN.Quantity), truck.GIN.DateIssued, truck.GIN.SignedByClient, truck.GIN.DateApproved, truck.GIN.ApprovedBy, truck.Load.Remark + Environment.NewLine + truck.Weight.Remark, lookup.GetLookup("GINStatus")[truck.GIN.Status]); }
public PickupNoticeBLL(Guid pickupNoticeId) { Dictionary <string, object> contextParameters = new Dictionary <string, object>(); contextParameters.Add("PickupNoticeId", pickupNoticeId); try { XmlSerializer s = new XmlSerializer(typeof(PickupNoticeInformation)); XmlDocument document = PersistenceTransactionFactory.CreatePersistenceTransaction().Open( "spOpenPickupNotice", contextParameters); StringBuilder sb = new StringBuilder(); TextWriter writer = new StringWriter(sb); document.Save(writer); punInformation = (PickupNoticeInformation)s.Deserialize(new StringReader(sb.ToString())); } catch (Exception ex) { throw new Exception("The database failed to load the requested Pickup Notice ", ex); } lookupSource = new PickupNoticeLookupSource(punInformation); }
public static ActiveReport GetReport() { ActiveReport report = null; PageDataTransfer transferedData = new PageDataTransfer(HttpContext.Current.Request.Path); string requestedReport = (string)(transferedData.GetTransferedData("RequestedReport")); IGINProcess ginProcess = null; switch (requestedReport) { case "rptGINReport": ginProcess = GINProcessWrapper.GetGINProcess(false); ILookupSource lookupSource = ginProcess.LookupSource; report = new Reports.rptGINReport(); report.DataSource = new GINReportDataCollection(ginProcess.GetGINReport(ginProcess.GINProcessInformation.Trucks[0].TruckId), lookupSource); return(report); case "rptPUNTrackingReport": ginProcess = GINProcessWrapper.GetGINProcess(false); report = new Reports.rptPUNTrackingReport(); report.DataSource = new TrackingReportDataCollection(ginProcess.PUNTrackingReportData); return(report); case "rptGINTrackingReport": report = new Reports.rptGINTrackingReport(); GINTrackingReportDataCollection gtrDataSource = new GINTrackingReportDataCollection(); gtrDataSource.AddList((List <GINTrackingReportData>)transferedData.GetTransferedData("GINTrackingReportData")); report.DataSource = gtrDataSource; return(report); case "rptPUNReport": report = new Reports.rptPUNReport(); PUNReportDataCollection puDataSource = new PUNReportDataCollection((PUNReportData)transferedData.GetTransferedData("PUNReportData")); report.DataSource = puDataSource; return(report); } return(null); }