Exemplo n.º 1
0
        public PendingOrders()
            : base()
        {
            InitializeComponent();

            this.toolstripChild = this.toolStripChildForm;

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

            this.baseDTO = new PendingOrderViewModel();
        }
Exemplo n.º 2
0
        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;
        }
Exemplo n.º 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;
        }