コード例 #1
0
        public UCStockShippingAddOrEdit(WindowStatus state, string ShippingId, UCStockShippingManager UCShipManager)
        {
            InitializeComponent();
            DTPickorder_date.Value = DateTime.Now.ToShortDateString();                       //获取当前系统时间
            this.UCShippingBM      = UCShipManager;                                          //获取其它发货单管理类
            this.status            = state;                                                  //获取操作状态
            this.StockShippingId   = ShippingId;                                             //其它发货单ID
            base.SaveEvent        += new ClickHandler(UCStockShippingAddOrEdit_SaveEvent);   //保存
            base.DeleteEvent      += new ClickHandler(UCStockShippingAddOrEdit_DeleteEvent);
            base.SubmitEvent      += new ClickHandler(UCStockShippingAddOrEdit_SubmitEvent); //提交
            base.ImportEvent      += new ClickHandler(UCStockShippingAddOrEdit_ImportEvent); //导入
            //设置列表的可编辑状态
            gvPartsMsgList.ReadOnly = false;
            foreach (DataGridViewColumn dgCol in gvPartsMsgList.Columns)
            {
                if (dgCol.Name != colCheck.Name && dgCol.Name != counts.Name && dgCol.Name != Unitprice.Name && dgCol.Name != remarks.Name)
                {
                    dgCol.ReadOnly = true;
                }
            }

            base.btnExport.Visible  = false;
            base.btnConfirm.Visible = false;
            base.btnEdit.Visible    = false;
            base.btnBalance.Visible = false;
            base.btnPrint.Visible   = false;
        }
コード例 #2
0
        public UCStockShippingAddOrEdit(WindowStatus state, string ShippingId, UCStockShippingManager UCShipManager)
        {
            InitializeComponent();
            DTPickorder_date.Value = DateTime.Now.ToShortDateString();                       //获取当前系统时间
            this.UCShippingBM      = UCShipManager;                                          //获取其它发货单管理类
            this.status            = state;                                                  //获取操作状态
            this.StockShippingId   = ShippingId;                                             //其它发货单ID
            base.SaveEvent        += new ClickHandler(UCStockShippingAddOrEdit_SaveEvent);   //保存
            base.SubmitEvent      += new ClickHandler(UCStockShippingAddOrEdit_SubmitEvent); //提交
            base.ImportEvent      += new ClickHandler(UCStockShippingAddOrEdit_ImportEvent); //导入

            gvPartsMsgList.ReadOnly = false;
            ID.ReadOnly             = true;
            partsnum.ReadOnly       = true;
            partname.ReadOnly       = true;
            PartSpec.ReadOnly       = true;
            drawingnum.ReadOnly     = true;
            unitname.ReadOnly       = true;
            partbrand.ReadOnly      = true;
            CarFactoryCode.ReadOnly = true;
            BarCode.ReadOnly        = true;
            Calcmoney.ReadOnly      = true;
            base.btnExport.Enabled  = false;
            base.btnConfirm.Enabled = false;
            base.btnEdit.Enabled    = false;
            base.btnBalance.Enabled = false;
            base.btnPrint.Enabled   = false;
        }
コード例 #3
0
        public UCStockShippingAddOrEdit(WindowStatus state, string ShippingId, UCStockShippingManager UCShipManager)
        {
            InitializeComponent();
            DTPickorder_date.Value = DateTime.Now.ToShortDateString();//获取当前系统时间
            this.UCShippingBM = UCShipManager;//获取其它发货单管理类
            this.status = state;//获取操作状态
            this.StockShippingId = ShippingId;//其它发货单ID
            base.SaveEvent += new ClickHandler(UCStockShippingAddOrEdit_SaveEvent);//保存
            base.SubmitEvent += new ClickHandler(UCStockShippingAddOrEdit_SubmitEvent);//提交
            base.ImportEvent += new ClickHandler(UCStockShippingAddOrEdit_ImportEvent);//导入

            gvPartsMsgList.ReadOnly = false;
            ID.ReadOnly = true;
            partsnum.ReadOnly = true;
            partname.ReadOnly = true;
            PartSpec.ReadOnly = true;
            drawingnum.ReadOnly = true;
            unitname.ReadOnly = true;
            partbrand.ReadOnly = true;
            CarFactoryCode.ReadOnly = true;
            BarCode.ReadOnly = true;
            Calcmoney.ReadOnly = true;
            base.btnExport.Enabled = false;
            base.btnConfirm.Enabled = false;
            base.btnEdit.Enabled = false;
            base.btnBalance.Enabled = false;
            base.btnPrint.Enabled = false;
        }
コード例 #4
0
        public UCStockShippingAddOrEdit(WindowStatus state, string ShippingId, UCStockShippingManager UCShipManager)
        {
            InitializeComponent();
            DTPickorder_date.Value = DateTime.Now.ToShortDateString();//获取当前系统时间
            this.UCShippingBM = UCShipManager;//获取其它发货单管理类
            this.status = state;//获取操作状态
            this.StockShippingId = ShippingId;//其它发货单ID
            base.SaveEvent += new ClickHandler(UCStockShippingAddOrEdit_SaveEvent);//保存
            base.DeleteEvent += new ClickHandler(UCStockShippingAddOrEdit_DeleteEvent);
            base.SubmitEvent += new ClickHandler(UCStockShippingAddOrEdit_SubmitEvent);//提交
            base.ImportEvent += new ClickHandler(UCStockShippingAddOrEdit_ImportEvent);//导入
            //设置列表的可编辑状态
            gvPartsMsgList.ReadOnly = false;
            foreach (DataGridViewColumn dgCol in gvPartsMsgList.Columns)
            {
                if (dgCol.Name != colCheck.Name && dgCol.Name != counts.Name && dgCol.Name != Unitprice.Name&&dgCol.Name!=remarks.Name) dgCol.ReadOnly = true;
            }

            base.btnExport.Visible = false;
            base.btnConfirm.Visible = false;
            base.btnEdit.Visible = false;
            base.btnBalance.Visible = false;
            base.btnPrint.Visible = false;
        }
コード例 #5
0
 private void picQtfhd_Click(object sender, EventArgs e)
 {
     UCStockShippingManager uc = new UCStockShippingManager();
     string tag = "CL_AccessoriesBusiness|CL_StockManagement_Function|CL_StockShipping_Function";
     UCBase.AddUserControl(uc, "其它发货单", "CL_StockShipping_Function", tag, "");
 }