示例#1
0
        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]
                    ));
        }
示例#2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         GINDataEditor.DataSource = GINInformation;
         GINDataEditor.DataBind();
         try
         {
             GINReportInfo ginReport = ginProcess.GetGINReport(GINInformation.GINId);
             GeneralDataEditor.DataSource = ginReport;
             GeneralDataEditor.DataBind();
             CommodityDataEditor.DataSource = ginReport;
             CommodityDataEditor.DataBind();
             ProcessDataEditor.DataSource = ginReport;
             ProcessDataEditor.DataBind();
             TransportDataEditor.DataSource = ginReport;
             TransportDataEditor.DataBind();
         }
         catch (Exception ex)
         {
             throw ex;
         }
     }
 }