Пример #1
0
        /// <summary>
        /// GoodsIssueViewModel goodsIssueViewModel: CURRENT DETAILS OF GOODSISSUE
        /// List<IPendingPrimaryDetail> pendingPrimaryDetails: COLLECTION OF PENDING ITEMS REQUESTED FOR DELIVERY (HERE WE USE IPendingPrimaryDetail FOR TWO CASE: PendingDeliveryAdviceDetail AND PendingTransferOrderDetail WHICH ARE IMPLEMENTED interface IPendingPrimaryDetail
        /// IPendingPrimaryDetail pendingPrimaryDetail: CURRENT SELECTED PENDING ITEM (CURRENT SELECTED OF PendingDeliveryAdviceDetail OR PendingTransferOrderDetail). THIS PARAMETER IS REQUIRED BY TABLET MODE: MEANS: WHEN USING BY THE FORFLIFT DRIVER TO MANUAL SELECT BY BARCODE OR BIN LOCATION
        /// string fileName: WHEN IMPORTED FORM TEXT FILE
        /// </summary>
        /// <param name="goodsIssueViewModel"></param>
        /// <param name="pendingPrimaryDetails"></param>
        /// <param name="pendingPrimaryDetail"></param>
        /// <param name="fileName"></param>
        public WizardDetail(GoodsIssueViewModel goodsIssueViewModel, List <IPendingPrimaryDetail> pendingPrimaryDetails, IPendingPrimaryDetail pendingPrimaryDetail, string fileName)
        {
            InitializeComponent();

            if (!this.UsingPack)
            {
                this.fastAvailablePacks.Dock = DockStyle.None; this.fastAvailablePacks.Visible = false;
            }

            this.toolstripChild = this.toolStripBottom;
            this.customTabBatch = new CustomTabControl();

            this.customTabBatch.Font         = this.fastAvailablePallets.Font;
            this.customTabBatch.DisplayStyle = TabStyle.VisualStudio;
            this.customTabBatch.DisplayStyleProvider.ImageAlign = ContentAlignment.MiddleLeft;

            this.customTabBatch.TabPages.Add("tabAvailablePallets", "Available pallets");
            this.customTabBatch.TabPages.Add("tabAvailableCartons", "Available cartons");
            if (this.UsingPack)
            {
                this.customTabBatch.TabPages.Add("tabAvailablePacks", "Available packs");
            }
            this.customTabBatch.TabPages[0].Controls.Add(this.fastAvailablePallets);
            this.customTabBatch.TabPages[1].Controls.Add(this.fastAvailableCartons);
            if (this.UsingPack)
            {
                this.customTabBatch.TabPages[2].Controls.Add(this.fastAvailablePacks);
            }


            this.customTabBatch.Dock       = DockStyle.Fill;
            this.fastAvailablePallets.Dock = DockStyle.Fill;
            this.fastAvailableCartons.Dock = DockStyle.Fill;
            if (this.UsingPack)
            {
                this.fastAvailablePacks.Dock = DockStyle.Fill;
            }
            this.panelMaster.Controls.Add(this.customTabBatch);

            if (GlobalVariables.ConfigID == (int)GlobalVariables.FillingLine.GoodsIssue)
            {
                ViewHelpers.SetFont(this, new Font("Calibri", 11), new Font("Calibri", 11), new Font("Calibri", 11));
            }

            this.goodsIssueViewModel = goodsIssueViewModel;

            this.pendingPrimaryDetails = pendingPrimaryDetails;
            this.pendingPrimaryDetail  = pendingPrimaryDetail;

            this.fileName = fileName;

            if (this.fileName != null)
            {
                this.toolStripBottom.Visible        = true;
                this.fastMismatchedBarcodes.Visible = true;
                this.customTabBatch.TabPages.Add("tabMismatchedBarcodes", "Mismatched Barcodes");
                this.customTabBatch.TabPages[this.customTabBatch.TabPages.Count - 1].Controls.Add(this.fastMismatchedBarcodes);
                this.fastMismatchedBarcodes.Dock = DockStyle.Fill;
            }
        }
Пример #2
0
        public WizardMaster(PickupViewModel pickupViewModel)
        {
            InitializeComponent();

            if (GlobalVariables.ConfigID == (int)GlobalVariables.FillingLine.Pickup)
            {
                ViewHelpers.SetFont(this, new Font("Calibri", 11), new Font("Calibri", 11), new Font("Calibri", 11));
            }

            this.pickupViewModel = pickupViewModel;
        }
Пример #3
0
        protected override void InitializeTabControl()
        {
            try
            {
                base.InitializeTabControl();

                this.naviIndex.Bands[0].ClientArea.Controls.Add(this.fastGoodsIssueIndex);

                this.customTabCenter = new CustomTabControl();
                this.customTabCenter.DisplayStyle = TabStyle.VisualStudio;

                this.customTabCenter.TabPages.Add("tabDetailPallets", "Pallet Details        ");
                this.customTabCenter.TabPages.Add("tabDetailPallets", "Carton Details        ");
                this.customTabCenter.TabPages.Add("tabDescription", "Description         ");
                this.customTabCenter.TabPages.Add("tabRemarks", "Remarks                 ");
                this.customTabCenter.TabPages[0].Controls.Add(this.gridexPalletDetails);
                this.customTabCenter.TabPages[1].Controls.Add(this.gridexCartonDetails);
                this.customTabCenter.TabPages[2].Controls.Add(this.textexDescription);
                this.customTabCenter.TabPages[3].Controls.Add(this.textexRemarks);

                this.customTabCenter.TabPages[2].Padding = new Padding(30, 30, 30, 30);
                this.customTabCenter.TabPages[3].Padding = new Padding(30, 30, 30, 30);

                this.customTabCenter.Dock     = DockStyle.Fill;
                this.gridexPalletDetails.Dock = DockStyle.Fill;
                this.gridexCartonDetails.Dock = DockStyle.Fill;
                this.textexDescription.Dock   = DockStyle.Fill;
                this.textexRemarks.Dock       = DockStyle.Fill;
                this.panelMaster.Controls.Add(this.customTabCenter);

                this.naviDetails.ExpandedHeight = this.naviDetails.HeaderHeight + this.textexVoucherCodes.Size.Height + this.textexVehicle.Size.Height + this.textexVehicleDriver.Size.Height + 4 * 5 + 5;
                this.naviDetails.Expanded       = false;

                this.labelCaption.Left = 68; this.labelCaption.Top = 12;
                if (GlobalVariables.ConfigID == (int)GlobalVariables.FillingLine.GoodsIssue)
                {
                    ViewHelpers.SetFont(this, new Font("Calibri", 11), new Font("Calibri", 11), new Font("Calibri", 11)); ViewHelpers.SetFont(this.MdiParent, new Font("Calibri", 11), new Font("Calibri", 11), new Font("Calibri", 11));
                }
                else
                {
                    this.labelCaption.Top = this.labelCaption.Top + 1;
                }

                this.customTabCenter.SelectedIndexChanged += customTabCenter_SelectedIndexChanged;
            }
            catch (Exception exception)
            {
                ExceptionHandlers.ShowExceptionMessageBox(this, exception);
            }
        }
Пример #4
0
        protected override void InitializeTabControl()
        {
            try
            {
                base.InitializeTabControl();

                this.naviIndex.Bands[0].ClientArea.Controls.Add(this.fastPickupIndex);

                this.customTabCenter = new CustomTabControl();

                this.customTabCenter.DisplayStyle = TabStyle.VisualStudio;

                this.customTabCenter.TabPages.Add("tabDetailPallets", "Pickup pallet list   ");
                this.customTabCenter.TabPages.Add("tabDescription", "Description  ");
                this.customTabCenter.TabPages.Add("tabRemarks", "Remarks    ");
                this.customTabCenter.TabPages[0].Controls.Add(this.gridexPalletDetails);
                this.customTabCenter.TabPages[1].Controls.Add(this.textexDescription);
                this.customTabCenter.TabPages[2].Controls.Add(this.textexRemarks);

                this.customTabCenter.TabPages[1].Padding = new Padding(30, 30, 30, 30);
                this.customTabCenter.TabPages[2].Padding = new Padding(30, 30, 30, 30);

                this.customTabCenter.Dock     = DockStyle.Fill;
                this.gridexPalletDetails.Dock = DockStyle.Fill;
                this.textexDescription.Dock   = DockStyle.Fill;
                this.textexRemarks.Dock       = DockStyle.Fill;
                this.panelMaster.Controls.Add(this.customTabCenter);

                this.naviDetails.ExpandedHeight = this.naviDetails.HeaderHeight + this.textexTotalPalletCounts.Size.Height + this.textexTotalQuantity.Size.Height + this.textexTotalLineVolume.Size.Height + 5 + 4 * 10 + 6;
                this.naviDetails.Expanded       = false;

                this.labelFillingLineName.Left = 78; this.labelFillingLineName.Top = 12;
                if (GlobalVariables.ConfigID == (int)GlobalVariables.FillingLine.Pickup)
                {
                    ViewHelpers.SetFont(this, new Font("Calibri", 11), new Font("Calibri", 11), new Font("Calibri", 11));
                }                                                                                                                                                                                  //ViewHelpers.SetFont(this.MdiParent, new Font("Calibri", 11), new Font("Calibri", 11), new Font("Calibri", 11));
            }
            catch (Exception exception)
            {
                ExceptionHandlers.ShowExceptionMessageBox(this, exception);
            }
        }
Пример #5
0
        public WizardMaster(GoodsIssueAPIs goodsIssueAPIs, GoodsIssueViewModel goodsIssueViewModel)
        {
            InitializeComponent();

            this.customTabBatch = new CustomTabControl();

            this.customTabBatch.Font         = this.fastPendingDeliveryAdvices.Font;
            this.customTabBatch.DisplayStyle = TabStyle.VisualStudio;
            this.customTabBatch.DisplayStyleProvider.ImageAlign = ContentAlignment.MiddleLeft;

            this.customTabBatch.TabPages.Add("tabPendingDeliveryAdvices", "Issue by every advice    ");
            this.customTabBatch.TabPages.Add("tabPendingDeliveryAdviceCustomers", "Cumulate advices per customer  ");
            this.customTabBatch.TabPages.Add("tabPendingDeliveryAdvices", "Issue by every transfer order ");
            this.customTabBatch.TabPages.Add("tabPendingDeliveryAdvices", "Cumulate transfer orders per warehouse ");
            this.customTabBatch.TabPages[0].Controls.Add(this.fastPendingDeliveryAdvices);
            this.customTabBatch.TabPages[1].Controls.Add(this.fastPendingDeliveryAdviceCustomers);
            this.customTabBatch.TabPages[2].Controls.Add(this.fastPendingTransferOrders);
            this.customTabBatch.TabPages[3].Controls.Add(this.fastPendingTransferOrderWarehouses);

            this.customTabBatch.Dock = DockStyle.Fill;

            this.fastPendingDeliveryAdvices.Dock         = DockStyle.Fill;
            this.fastPendingDeliveryAdviceCustomers.Dock = DockStyle.Fill;

            this.fastPendingTransferOrders.Dock          = DockStyle.Fill;
            this.fastPendingTransferOrderWarehouses.Dock = DockStyle.Fill;

            this.panelMaster.Controls.Add(this.customTabBatch);

            if (GlobalVariables.ConfigID == (int)GlobalVariables.FillingLine.GoodsIssue)
            {
                ViewHelpers.SetFont(this, new Font("Calibri", 11), new Font("Calibri", 11), new Font("Calibri", 11));
            }

            this.goodsIssueAPIs      = goodsIssueAPIs;
            this.goodsIssueViewModel = goodsIssueViewModel;
        }
Пример #6
0
        public WizardDetail(ILineDetailBinlLocation pickupDetailDTO)
        {
            InitializeComponent();

            this.toolstripChild = this.toolStripAction;
            this.tabBinLocation = new CustomTabControl();
            this.tabBinLocation.DisplayStyle = TabStyle.VisualStudio;

            this.tabBinLocation.TabPages.Add("tabBinLocations", "Available Bin Location   ");
            this.tabBinLocation.TabPages[0].Controls.Add(this.fastBinLocations);

            this.tabBinLocation.Dock   = DockStyle.Fill;
            this.fastBinLocations.Dock = DockStyle.Fill;
            this.splitContainerCenter.Panel2.Controls.Add(this.tabBinLocation);

            if (GlobalVariables.ConfigID == (int)GlobalVariables.FillingLine.Pickup)
            {
                ViewHelpers.SetFont(this, new Font("Calibri", 11), new Font("Calibri", 11), new Font("Calibri", 11));
            }

            this.splitContainerCenter.SplitterDistance = this.textexCode.Height + this.textexCaption.Height + this.textexBinLocationCode.Height + 5 * 3 + 12;

            this.pickupDetailDTO = pickupDetailDTO;
        }