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

            transferedData                = new PageDataTransfer(Request.Path);
            TruckDataEditor.Driver        = GINViewConfigurationReader.GetViewConfiguration("ApproveGINEditRequest", "Truck");
            TruckLoadEditor.Driver        = GINViewConfigurationReader.GetViewConfiguration("ApproveGINEditRequest", "TruckLoad");
            StackGridViewer.Driver        = GINViewConfigurationReader.GetViewConfiguration("ApproveGINEditRequest", "StackGrid");
            TruckWeightEditor.Driver      = GINViewConfigurationReader.GetViewConfiguration("ApproveGINEditRequest", "TruckWeight");
            ReturnedBagsGridViewer.Driver = GINViewConfigurationReader.GetViewConfiguration("ApproveGINEditRequest", "ReturnedBagsGrid");

            ProposedTruckDataEditor.Driver        = GINViewConfigurationReader.GetViewConfiguration("ApproveGINEditRequest", "Truck");
            ProposedTruckLoadEditor.Driver        = GINViewConfigurationReader.GetViewConfiguration("ApproveGINEditRequest", "TruckLoad");
            ProposedStackGridViewer.Driver        = GINViewConfigurationReader.GetViewConfiguration("ApproveGINEditRequest", "StackGrid");
            ProposedTruckWeightEditor.Driver      = GINViewConfigurationReader.GetViewConfiguration("ApproveGINEditRequest", "TruckWeight");
            ProposedReturnedBagsGridViewer.Driver = GINViewConfigurationReader.GetViewConfiguration("ApproveGINEditRequest", "ReturnedBagsGrid");

            TruckDataEditor.IsNew   = false;
            TruckLoadEditor.IsNew   = false;
            TruckWeightEditor.IsNew = false;

            ProposedTruckDataEditor.IsNew   = false;
            ProposedTruckLoadEditor.IsNew   = false;
            ProposedTruckWeightEditor.IsNew = false;

            try
            {
                ginProcess = GINProcessWrapper.GetGINProcess(IsPostBack);

                TruckDataEditor.Lookup        = ginProcess.LookupSource;
                TruckLoadEditor.Lookup        = ginProcess.LookupSource;
                StackGridViewer.Lookup        = ginProcess.LookupSource;
                TruckWeightEditor.Lookup      = ginProcess.LookupSource;
                ReturnedBagsGridViewer.Lookup = ginProcess.LookupSource;

                ProposedTruckDataEditor.Lookup        = ginProcess.LookupSource;
                ProposedTruckLoadEditor.Lookup        = ginProcess.LookupSource;
                ProposedStackGridViewer.Lookup        = ginProcess.LookupSource;
                ProposedTruckWeightEditor.Lookup      = ginProcess.LookupSource;
                ProposedReturnedBagsGridViewer.Lookup = ginProcess.LookupSource;

                TruckDataEditor.Setup();
                TruckLoadEditor.Setup();
                TruckWeightEditor.Setup();

                ProposedTruckDataEditor.Setup();
                ProposedTruckLoadEditor.Setup();
                ProposedTruckWeightEditor.Setup();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemplo 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("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;
            }
        }