示例#1
0
        private void FormBrowsePRPlan_Load(object sender, EventArgs e)
        {
            formPRProduce = (FormPRProduce)this.Owner;
            //DataGridViewComboBoxColumn绑定到数据源
            commUse.BindComboBox(this.dgvPRPlanInfo.Columns["OperatorCode"], "OperatorCode", "OperatorName", "select OperatorCode,OperatorName from SYOperator", "SYOperator");
            commUse.BindComboBox(this.dgvPRPlanInfo.Columns["InvenCode"], "InvenCode", "InvenName", "select InvenCode,InvenName from BSInven", "BSInven");
            commUse.BindComboBox(this.dgvPRPlanInfo.Columns["IsFlag"], "Code", "Name", "select * from INCheckFlag", "INCheckFlag");

            this.BindDataGridView(" WHERE IsFlag = '1'");

            if (dgvPRPlanInfo.RowCount <= 0)
            {
                gbInfo.Text = "无已审核订单";
            }
        }
示例#2
0
        private void FormBrowsePRPlan_Load(object sender, EventArgs e)
        {
            formPRProduce = (FormPRProduce) Owner;
            //DataGridViewComboBoxColumn绑定到数据源
            commUse.BindComboBox(dgvPRPlanInfo.Columns["OperatorCode"], "OperatorCode", "OperatorName",
                                 "select OperatorCode,OperatorName from SYOperator", "SYOperator");
            commUse.BindComboBox(dgvPRPlanInfo.Columns["InvenCode"], "InvenCode", "InvenName",
                                 "select InvenCode,InvenName from BSInven", "BSInven");
            commUse.BindComboBox(dgvPRPlanInfo.Columns["IsFlag"], "Code", "Name", "select * from INCheckFlag",
                                 "INCheckFlag");

            BindDataGridView(" WHERE IsFlag = '1'");

            if (dgvPRPlanInfo.RowCount <= 0)
            {
                gbInfo.Text = "无已审核订单";
            }
        }
示例#3
0
        /// <summary>
        ///   打开Form窗体
        /// </summary>
        /// <param name="menuItem"> 菜单项的引用 </param>
        /// <param name="form"> 要打开的窗体的引用 </param>
        public void ShowForm(ToolStripMenuItem menuItem, Form form)
        {
            switch (menuItem.Tag.ToString())
            {
                case "111":

                    FormBSInvenType invenType = new FormBSInvenType();
                    invenType.MdiParent = form;
                    invenType.StartPosition = FormStartPosition.CenterScreen;
                    invenType.Tag = menuItem.Tag.ToString();
                    invenType.Show();
                    break;

                case "112":

                    FormBSDepartment department = new FormBSDepartment();
                    department.MdiParent = form;
                    department.StartPosition = FormStartPosition.CenterScreen;
                    department.Tag = menuItem.Tag.ToString();
                    department.Show();
                    break;

                case "113":

                    FormBSCostType costType = new FormBSCostType();
                    costType.MdiParent = form;
                    costType.StartPosition = FormStartPosition.CenterScreen;
                    costType.Tag = menuItem.Tag.ToString();
                    costType.Show();
                    break;

                case "121":

                    FormBSInven inven = new FormBSInven();
                    inven.MdiParent = form;
                    inven.StartPosition = FormStartPosition.CenterScreen;
                    inven.Tag = menuItem.Tag.ToString();
                    inven.Show();
                    break;

                case "122":

                    FormBSSupplier supplier = new FormBSSupplier();
                    supplier.MdiParent = form;
                    supplier.StartPosition = FormStartPosition.CenterScreen;
                    supplier.Tag = menuItem.Tag.ToString();
                    supplier.Show();
                    break;
                case "123":

                    FormBSCustomer customer = new FormBSCustomer();
                    customer.MdiParent = form;
                    customer.StartPosition = FormStartPosition.CenterScreen;
                    customer.Tag = menuItem.Tag.ToString();
                    customer.Show();
                    break;

                case "124":

                    FormBSCost cost = new FormBSCost();
                    cost.MdiParent = form;
                    cost.StartPosition = FormStartPosition.CenterScreen;
                    cost.Tag = menuItem.Tag.ToString();
                    cost.Show();
                    break;

                case "125":

                    FormBSStore store = new FormBSStore();
                    store.MdiParent = form;
                    store.StartPosition = FormStartPosition.CenterScreen;
                    store.Tag = menuItem.Tag.ToString();
                    store.Show();
                    break;

                case "126":

                    FormBSEmployee employee = new FormBSEmployee();
                    employee.MdiParent = form;
                    employee.StartPosition = FormStartPosition.CenterScreen;
                    employee.Tag = menuItem.Tag.ToString();
                    employee.Show();
                    break;

                case "130":

                    FormBSAccount account = new FormBSAccount();
                    account.MdiParent = form;
                    account.StartPosition = FormStartPosition.CenterScreen;
                    account.Tag = menuItem.Tag.ToString();
                    account.Show();
                    break;

                case "140":

                    FormBSBom bom = new FormBSBom();
                    bom.MdiParent = form;
                    bom.StartPosition = FormStartPosition.CenterScreen;
                    bom.Tag = menuItem.Tag.ToString();
                    bom.Show();
                    break;

                case "150":

                    FormInitStock initStock = new FormInitStock();
                    initStock.MdiParent = form;
                    initStock.StartPosition = FormStartPosition.CenterScreen;
                    initStock.Tag = menuItem.Tag.ToString();
                    initStock.Show();
                    break;

                case "210":

                    FormPUOrder puOrder = new FormPUOrder();
                    puOrder.MdiParent = form;
                    puOrder.StartPosition = FormStartPosition.CenterScreen;
                    puOrder.Tag = menuItem.Tag.ToString();
                    puOrder.Show();
                    break;

                case "220":

                    FormPUInStore puInStore = new FormPUInStore();
                    puInStore.MdiParent = form;
                    puInStore.StartPosition = FormStartPosition.CenterScreen;
                    puInStore.Tag = menuItem.Tag.ToString();
                    puInStore.Show();
                    break;

                case "230":

                    FormPUPay formPUPay = new FormPUPay();
                    formPUPay.MdiParent = form;
                    formPUPay.StartPosition = FormStartPosition.CenterScreen;
                    formPUPay.Tag = menuItem.Tag.ToString();
                    formPUPay.Show();
                    break;

                case "310":

                    FormSEOrder formSEOrder = new FormSEOrder();
                    formSEOrder.MdiParent = form;
                    formSEOrder.StartPosition = FormStartPosition.CenterScreen;
                    formSEOrder.Tag = menuItem.Tag.ToString();
                    formSEOrder.Show();
                    break;

                case "320":

                    FormSEOutStore formSEOutStore = new FormSEOutStore();
                    formSEOutStore.MdiParent = form;
                    formSEOutStore.StartPosition = FormStartPosition.CenterScreen;
                    formSEOutStore.Tag = menuItem.Tag.ToString();
                    formSEOutStore.Show();
                    break;

                case "330":

                    FormSEGather formSEGather = new FormSEGather();
                    formSEGather.MdiParent = form;
                    formSEGather.StartPosition = FormStartPosition.CenterScreen;
                    formSEGather.Tag = menuItem.Tag.ToString();
                    formSEGather.Show();
                    break;

                case "410":

                    FormSTGetMaterial formSTGetMaterial = new FormSTGetMaterial();
                    formSTGetMaterial.MdiParent = form;
                    formSTGetMaterial.StartPosition = FormStartPosition.CenterScreen;
                    formSTGetMaterial.Tag = menuItem.Tag.ToString();
                    formSTGetMaterial.Show();
                    break;

                case "420":

                    FormSTReturnMaterial formSTReturnMaterial = new FormSTReturnMaterial();
                    formSTReturnMaterial.MdiParent = form;
                    formSTReturnMaterial.StartPosition = FormStartPosition.CenterScreen;
                    formSTReturnMaterial.Tag = menuItem.Tag.ToString();
                    formSTReturnMaterial.Show();
                    break;

                case "430":

                    FormSTLoss formSTLoss = new FormSTLoss();
                    formSTLoss.MdiParent = form;
                    formSTLoss.StartPosition = FormStartPosition.CenterScreen;
                    formSTLoss.Tag = menuItem.Tag.ToString();
                    formSTLoss.Show();
                    break;

                case "440":

                    FormSTCheck formSTCheck = new FormSTCheck();
                    formSTCheck.MdiParent = form;
                    formSTCheck.StartPosition = FormStartPosition.CenterScreen;
                    formSTCheck.Tag = menuItem.Tag.ToString();
                    formSTCheck.Show();
                    break;

                case "450":

                    FormStockQuery formStockQuery = new FormStockQuery();
                    formStockQuery.MdiParent = form;
                    formStockQuery.StartPosition = FormStartPosition.CenterScreen;
                    formStockQuery.Tag = menuItem.Tag.ToString();
                    formStockQuery.Show();
                    break;

                case "510":

                    FormPRPlan formPRPlan = new FormPRPlan();
                    formPRPlan.MdiParent = form;
                    formPRPlan.StartPosition = FormStartPosition.CenterScreen;
                    formPRPlan.Tag = menuItem.Tag.ToString();
                    formPRPlan.Show();
                    break;

                case "520":

                    FormPRProduce formPRProduce = new FormPRProduce();
                    formPRProduce.MdiParent = form;
                    formPRProduce.StartPosition = FormStartPosition.CenterScreen;
                    formPRProduce.Tag = menuItem.Tag.ToString();
                    formPRProduce.Show();
                    break;

                case "530":

                    FormProduceComplete formProduceComplete = new FormProduceComplete();
                    formProduceComplete.MdiParent = form;
                    formProduceComplete.StartPosition = FormStartPosition.CenterScreen;
                    formProduceComplete.Tag = menuItem.Tag.ToString();
                    formProduceComplete.Show();
                    break;

                case "540":

                    FormPRInStore formPRInStore = new FormPRInStore();
                    formPRInStore.MdiParent = form;
                    formPRInStore.StartPosition = FormStartPosition.CenterScreen;
                    formPRInStore.Tag = menuItem.Tag.ToString();
                    formPRInStore.Show();
                    break;

                case "610":

                    FormCustomerCourse formCustomerCourse = new FormCustomerCourse();
                    formCustomerCourse.MdiParent = form;
                    formCustomerCourse.StartPosition = FormStartPosition.CenterScreen;
                    formCustomerCourse.Tag = menuItem.Tag.ToString();
                    formCustomerCourse.Show();
                    break;

                case "620":

                    FormBaseType formBaseType = new FormBaseType();
                    formBaseType.MdiParent = form;
                    formBaseType.StartPosition = FormStartPosition.CenterScreen;
                    formBaseType.Tag = menuItem.Tag.ToString();
                    formBaseType.Show();
                    break;

                case "630":

                    FormCustomerAnalyse formCustomerAnalyse = new FormCustomerAnalyse();
                    formCustomerAnalyse.MdiParent = form;
                    formCustomerAnalyse.StartPosition = FormStartPosition.CenterScreen;
                    formCustomerAnalyse.Tag = menuItem.Tag.ToString();
                    formCustomerAnalyse.Show();
                    break;

                case "710":

                    FormFIDeposit formFIDeposit = new FormFIDeposit();
                    formFIDeposit.MdiParent = form;
                    formFIDeposit.StartPosition = FormStartPosition.CenterScreen;
                    formFIDeposit.Tag = menuItem.Tag.ToString();
                    formFIDeposit.Show();
                    break;

                case "720":

                    FormFIPurCost formFIPurCost = new FormFIPurCost();
                    formFIPurCost.MdiParent = form;
                    formFIPurCost.StartPosition = FormStartPosition.CenterScreen;
                    formFIPurCost.Tag = menuItem.Tag.ToString();
                    formFIPurCost.Show();
                    break;

                case "730":

                    FormFISelCost formFISelCost = new FormFISelCost();
                    formFISelCost.MdiParent = form;
                    formFISelCost.StartPosition = FormStartPosition.CenterScreen;
                    formFISelCost.Tag = menuItem.Tag.ToString();
                    formFISelCost.Show();
                    break;

                case "810":

                    FormPurReport formPurReport = new FormPurReport();
                    formPurReport.MdiParent = form;
                    formPurReport.StartPosition = FormStartPosition.CenterScreen;
                    formPurReport.Tag = menuItem.Tag.ToString();
                    formPurReport.Show();
                    break;

                case "820":

                    FormPurCollectReport formPurCollectReport = new FormPurCollectReport();
                    formPurCollectReport.MdiParent = form;
                    formPurCollectReport.StartPosition = FormStartPosition.CenterScreen;
                    formPurCollectReport.Tag = menuItem.Tag.ToString();
                    formPurCollectReport.Show();
                    break;

                case "830":

                    FormSelReport formSelReport = new FormSelReport();
                    formSelReport.MdiParent = form;
                    formSelReport.StartPosition = FormStartPosition.CenterScreen;
                    formSelReport.Tag = menuItem.Tag.ToString();
                    formSelReport.Show();
                    break;

                case "840":

                    FormSelCollectReport formSelCollectReport = new FormSelCollectReport();
                    formSelCollectReport.MdiParent = form;
                    formSelCollectReport.StartPosition = FormStartPosition.CenterScreen;
                    formSelCollectReport.Tag = menuItem.Tag.ToString();
                    formSelCollectReport.Show();
                    break;

                case "850":

                    FormSelProfitReport formSelProfitReport = new FormSelProfitReport();
                    formSelProfitReport.MdiParent = form;
                    formSelProfitReport.StartPosition = FormStartPosition.CenterScreen;
                    formSelProfitReport.Tag = menuItem.Tag.ToString();
                    formSelProfitReport.Show();
                    break;

                case "860":

                    FormSelProfitCollectReport formSelProfitCollectReport = new FormSelProfitCollectReport();
                    formSelProfitCollectReport.MdiParent = form;
                    formSelProfitCollectReport.StartPosition = FormStartPosition.CenterScreen;
                    formSelProfitCollectReport.Tag = menuItem.Tag.ToString();
                    formSelProfitCollectReport.Show();
                    break;

                case "870":

                    FormStockWarnReport formStockWarnReport = new FormStockWarnReport();
                    formStockWarnReport.MdiParent = form;
                    formStockWarnReport.StartPosition = FormStartPosition.CenterScreen;
                    formStockWarnReport.Tag = menuItem.Tag.ToString();
                    formStockWarnReport.Show();
                    break;

                case "910":

                    FormSYOperator formSYOperator = new FormSYOperator();
                    formSYOperator.MdiParent = form;
                    formSYOperator.StartPosition = FormStartPosition.CenterScreen;
                    formSYOperator.Tag = menuItem.Tag.ToString();
                    formSYOperator.Show();
                    break;

                case "920":

                    FormPassWord formPassWord = new FormPassWord();
                    formPassWord.MdiParent = form;
                    formPassWord.StartPosition = FormStartPosition.CenterScreen;
                    formPassWord.Tag = menuItem.Tag.ToString();
                    formPassWord.Show();
                    break;

                case "930":

                    FormAssignRight formAssignRight = new FormAssignRight();
                    formAssignRight.MdiParent = form;
                    formAssignRight.StartPosition = FormStartPosition.CenterScreen;
                    formAssignRight.Tag = menuItem.Tag.ToString();
                    formAssignRight.Show();
                    break;

                default:

                    break;
            }
        }