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

            transferedData         = new PageDataTransfer(Request.Path);
            TruckLoadEditor.Driver = GINViewConfigurationReader.GetViewConfiguration("EditTruckLoading", "TruckLoad");
            StackDataEditor.Driver = GINViewConfigurationReader.GetViewConfiguration("EditTruckLoading", "Stack");
            StackGridViewer.Driver = GINViewConfigurationReader.GetViewConfiguration("EditTruckLoading", "StackGrid");


            StackDataEditor.Ok     += new EventHandler(StackDataEditor_Ok);
            StackDataEditor.Cancel += new EventHandler(StackDataEditor_Cancel);

            try
            {
                ginProcess = GINProcessWrapper.GetGINProcess(IsPostBack);

                TruckLoadEditor.Lookup = ginProcess.LookupSource;
                StackDataEditor.Lookup = ginProcess.LookupSource;
                StackGridViewer.Lookup = ginProcess.LookupSource;

                TruckLoadEditor.Setup();
                StackDataEditor.Setup();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemple #2
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            errorDisplayer = new ErrorMessageDisplayer(lblMessage);
            errorDisplayer.ClearErrorMessage();

            transferedData = new PageDataTransfer(Request.Path);

            PUNADataEditor.Driver    = GINViewConfigurationReader.GetViewConfiguration("TruckRegistration", "PUNAcknowledgement");
            DriverDataEditor.Driver  = GINViewConfigurationReader.GetViewConfiguration("TruckRegistration", "RegisteredTruck");
            TruckDataEditor.Driver   = GINViewConfigurationReader.GetViewConfiguration("TruckRegistration", "TruckData");
            TrailerDataEditor.Driver = GINViewConfigurationReader.GetViewConfiguration("TruckRegistration", "TrailerData");
            TruckGridViewer.Driver   = GINViewConfigurationReader.GetViewConfiguration("TruckRegistration", "RegisteredTruckGrid");
            PUNADataEditor.IsNew     = false;
            try
            {
                ginProcess = GINProcessWrapper.GetGINProcess(IsPostBack);

                PUNADataEditor.Lookup    = ginProcess.LookupSource;
                TruckDataEditor.Lookup   = ginProcess.LookupSource;
                DriverDataEditor.Lookup  = ginProcess.LookupSource;
                TrailerDataEditor.Lookup = ginProcess.LookupSource;
                TruckGridViewer.Lookup   = ginProcess.LookupSource;

                PUNADataEditor.Setup();
                TruckDataEditor.Setup();
                DriverDataEditor.Setup();
                TrailerDataEditor.Setup();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemple #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("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;
            }
        }
Exemple #4
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;
            }
        }
Exemple #5
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            errorDisplayer = new ErrorMessageDisplayer(lblMessage);
            errorDisplayer.ClearErrorMessage();

            transferedData = new PageDataTransfer(Request.Path);

            GINGridViewer1.Driver  = TruckGridViewDriver;
            GINDataEditor1.Driver  = GINViewConfigurationReader.GetViewConfiguration("GINProcess", "PUNSummary");
            GINDataEditor2.Driver  = GINViewConfigurationReader.GetViewConfiguration("GINProcess", "Truck");
            GINDataEditor2.Ok     += new EventHandler(GINDataEditor2_Ok);
            GINDataEditor2.Cancel += new EventHandler(GINDataEditor2_Cancel);
            btnAddTruck.Visible    = ((WorkflowTaskType)transferedData.GetTransferedData("WorkflowTask") == WorkflowTaskType.LoadTruck) &&
                                     ((transferedData.GetTransferedData("IsGINTransaction") == null) ||
                                      (bool)(transferedData.GetTransferedData("IsGINTransaction")));
            try
            {
                ginProcess                = GINProcessWrapper.GetGINProcess(IsPostBack);
                GINGridViewer1.Lookup     = ginProcess.LookupSource;
                GINDataEditor1.Lookup     = ginProcess.LookupSource;
                GINDataEditor2.Lookup     = ginProcess.LookupSource;
                GINGridViewer1.DataSource = ginProcess.GINProcessInformation.Trucks;
                GINDataEditor1.Setup();
                GINDataEditor2.Setup();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemple #6
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            errorDisplayer = new ErrorMessageDisplayer(lblMessage);
            errorDisplayer.ClearErrorMessage();

            transferedData = new PageDataTransfer(Request.Path);

            PUNADataEditor.Driver = GINViewConfigurationReader.GetViewConfiguration("VerifyGINAvailability", "PUNAcknowledgement");
            PUNADataEditor.IsNew  = false;

            //PUNADataEditor.Ok += new EventHandler(PUNADataEditor_Ok);
            //PUNADataEditor.Cancel += new EventHandler(PUNADataEditor_Cancel);
            try
            {
                ginProcess = GINProcessWrapper.GetGINProcess(IsPostBack);

                PUNADataEditor.Lookup = ginProcess.LookupSource;

                PUNADataEditor.Setup();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemple #7
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;
            }
        }
Exemple #8
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;
            }
        }
Exemple #9
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            errorDisplayer = new ErrorMessageDisplayer(lblMessage);
            errorDisplayer.ClearErrorMessage();
            transferedData         = new PageDataTransfer(Request.Path);
            PUNADataEditor.Driver  = GINViewConfigurationReader.GetViewConfiguration("PickupNoticeAkcnowledged", "PUNAcknowledgement");
            PUNADataEditor.Ok     += new EventHandler(PUNADataEditor_Ok);
            PUNADataEditor.Cancel += new EventHandler(PUNADataEditor_Cancel);
            try
            {
                pickupNotice          = PUNWrapper.GetPUN(IsPostBack);
                PUNADataEditor.Lookup = pickupNotice.LookupSource;

                PUNADataEditor.Setup();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Exemple #10
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;
            }
        }
Exemple #11
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            errorDisplayer = new ErrorMessageDisplayer(lblMessage);
            errorDisplayer.ClearErrorMessage();

            transferedData              = new PageDataTransfer(Request.Path);
            PhysicalCountEditor.Driver  = GINViewConfigurationReader.GetViewConfiguration("TakePhysicalCount", "PhysicalCount");
            InspectorDataEditor.Driver  = GINViewConfigurationReader.GetViewConfiguration("TakePhysicalCount", "Inspector");
            StackCountDataEditor.Driver = GINViewConfigurationReader.GetViewConfiguration("TakePhysicalCount", "StackCount");
            InspectorGridViewer.Driver  = GINViewConfigurationReader.GetViewConfiguration("TakePhysicalCount", "InspectorGrid");
            PhysicalCountEditor.IsNew   = false;

            InspectorDataEditor.Ok     += new EventHandler(InspectorDataEditor_Ok);
            InspectorDataEditor.Cancel += new EventHandler(InspectorDataEditor_Cancel);

            StackCountDataEditor.Ok     += new EventHandler(StackCountDataEditor_Ok);
            StackCountDataEditor.Cancel += new EventHandler(StackCountDataEditor_Cancel);
            try
            {
                inventoryService         = InventoryServices.GetInventoryService();
                physicalCountInformation = InventoryServiceWrapper.GetPhysicalCountInformation(IsPostBack);

                PhysicalCountEditor.Lookup  = inventoryService.LookupSource;
                InspectorDataEditor.Lookup  = inventoryService.LookupSource;
                StackCountDataEditor.Lookup = inventoryService.LookupSource;
                InspectorGridViewer.Lookup  = inventoryService.LookupSource;

                PhysicalCountEditor.Setup();
                InspectorDataEditor.Setup();
                StackCountDataEditor.Setup();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }