Example #1
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            errorDisplayer = new ErrorMessageDisplayer(lblMessage);
            errorDisplayer.ClearErrorMessage();

            transferedData             = new PageDataTransfer(Request.Path);
            GINDataEditor.Driver       = GINViewConfigurationReader.GetViewConfiguration("GenerateGIN", "GIN");
            GeneralDataEditor.Driver   = GINViewConfigurationReader.GetViewConfiguration("GenerateGIN", "General");
            CommodityDataEditor.Driver = GINViewConfigurationReader.GetViewConfiguration("GenerateGIN", "CommoditySpecifics");
            ProcessDataEditor.Driver   = GINViewConfigurationReader.GetViewConfiguration("GenerateGIN", "ProcessSpecifics");
            TransportDataEditor.Driver = GINViewConfigurationReader.GetViewConfiguration("GenerateGIN", "TransportSpecifics");
            try
            {
                ginProcess = GINProcessWrapper.GetGINProcess(IsPostBack);

                GINDataEditor.Lookup       = ginProcess.LookupSource;
                GeneralDataEditor.Lookup   = ginProcess.LookupSource;
                CommodityDataEditor.Lookup = ginProcess.LookupSource;
                ProcessDataEditor.Lookup   = ginProcess.LookupSource;
                TransportDataEditor.Lookup = ginProcess.LookupSource;

                GINDataEditor.Setup();
                GeneralDataEditor.Setup();
                CommodityDataEditor.Setup();
                ProcessDataEditor.Setup();
                TransportDataEditor.Setup();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Example #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;
         }
     }
 }