예제 #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
파일: GoodsIssues.cs 프로젝트: Proerp/LAVIE
        public GoodsIssues()
            : base()
        {
            InitializeComponent();

            this.toolstripChild = this.toolStripChildForm;
            this.fastListIndex  = this.fastGoodsIssueIndex;

            this.goodsIssueAPIs = new GoodsIssueAPIs(CommonNinject.Kernel.Get <IGoodsIssueAPIRepository>());

            this.goodsIssueViewModel = CommonNinject.Kernel.Get <GoodsIssueViewModel>();
            this.goodsIssueViewModel.PropertyChanged += new PropertyChangedEventHandler(ModelDTO_PropertyChanged);
            this.baseDTO = this.goodsIssueViewModel;
        }
예제 #3
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;
        }