Esempio n. 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;
            }
        }
Esempio n. 2
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("TruckLeftCompound", "GIN");
            GINDataEditor.IsNew  = false;

            GINDataEditor.Ok     += new EventHandler(GINDataEditor_Ok);
            GINDataEditor.Cancel += new EventHandler(GINDataEditor_Cancel);
            try
            {
                ginProcess = GINProcessWrapper.GetGINProcess(IsPostBack);

                GINDataEditor.Lookup = ginProcess.LookupSource;

                GINDataEditor.Setup();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Esempio n. 3
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("TruckScaling", "GIN");
            TruckWeightEditor.Driver      = GINViewConfigurationReader.GetViewConfiguration("TruckScaling", "TruckWeight");
            GINIssuanceEditor.Driver      = GINViewConfigurationReader.GetViewConfiguration("TruckScaling", "GINIssuance");
            ReturnedBagsDataEditor.Driver = GINViewConfigurationReader.GetViewConfiguration("TruckScaling", "ReturnedBags");
            ReturnedBagsGridViewer.Driver = GINViewConfigurationReader.GetViewConfiguration("TruckScaling", "ReturnedBagsGrid");
            AddedBagsDataEditor.Driver    = GINViewConfigurationReader.GetViewConfiguration("TruckScaling", "AddedBags");
            AddedBagsGridViewer.Driver    = GINViewConfigurationReader.GetViewConfiguration("TruckScaling", "AddedBagsGrid");

            GINDataEditor.IsNew     = false;
            TruckWeightEditor.IsNew = false;
            GINIssuanceEditor.IsNew = false;

            ReturnedBagsDataEditor.Ok     += new EventHandler(ReturnedBagsDataEditor_Ok);
            ReturnedBagsDataEditor.Cancel += new EventHandler(ReturnedBagsDataEditor_Cancel);
            AddedBagsDataEditor.Ok        += new EventHandler(AddedBagsDataEditor_Ok);
            AddedBagsDataEditor.Cancel    += new EventHandler(AddedBagsDataEditor_Cancel);

            try
            {
                ginProcess                    = GINProcessWrapper.GetGINProcess(IsPostBack);
                GINDataEditor.Lookup          = ginProcess.LookupSource;
                TruckWeightEditor.Lookup      = ginProcess.LookupSource;
                GINIssuanceEditor.Lookup      = ginProcess.LookupSource;
                ReturnedBagsDataEditor.Lookup = ginProcess.LookupSource;
                ReturnedBagsGridViewer.Lookup = ginProcess.LookupSource;
                AddedBagsDataEditor.Lookup    = ginProcess.LookupSource;
                AddedBagsGridViewer.Lookup    = ginProcess.LookupSource;

                GINDataEditor.Setup();
                TruckWeightEditor.Setup();
                GINIssuanceEditor.Setup();
                ReturnedBagsDataEditor.Setup();
                AddedBagsDataEditor.Setup();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Esempio n. 4
0
        protected override void OnInit(EventArgs e)
        {
            errorDisplayer = new ErrorMessageDisplayer(lblMessage);
            errorDisplayer.ClearErrorMessage();
            base.OnInit(e);
            transferedData = new PageDataTransfer(Request.Path);

            GINDataEditor.Driver = GINViewConfigurationReader.GetViewConfiguration("ClientAcknowledgeGIN", "GIN");

            try
            {
                ginProcess = GINProcessWrapper.GetGINProcess(IsPostBack);

                GINDataEditor.Lookup = ginProcess.LookupSource;

                GINDataEditor.Setup();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }