Exemple #1
0
 public UCStockCheckAddOrEdit(WindowStatus state, string CheckId, UCStockCheckManager UCCheckManager)
 {
     InitializeComponent();
     DTPickorder_date.Value = DateTime.Now.ToShortDateString();                    //获取当前系统时间
     this.UCCheckBM         = UCCheckManager;                                      //获取其它收货单管理类
     this.status            = state;                                               //获取操作状态
     this.StockCheckId      = CheckId;                                             //其它收货单ID
     base.DeleteEvent      += new ClickHandler(UCStockCheckAddOrEdit_DeleteEvent);
     base.SaveEvent        += new ClickHandler(UCStockCheckAddOrEdit_SaveEvent);   //保存
     base.SubmitEvent      += new ClickHandler(UCStockCheckAddOrEdit_SubmitEvent); //提交
     base.ImportEvent      += new ClickHandler(UCStockCheckAddOrEdit_ImportEvent); //导入
     //设置列表的可编辑状态
     gvPartsMsgList.ReadOnly = false;
     foreach (DataGridViewColumn dgCol in gvPartsMsgList.Columns)
     {
         if (dgCol.Name != colCheck.Name && dgCol.Name != FmOffCount.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;
     FmOffCount.ValueType    = typeof(decimal);
     ProLossCount.ValueType  = typeof(decimal);
 }
        public UCStockCheckAddOrEdit(WindowStatus state, string CheckId, UCStockCheckManager UCCheckManager)
        {
            InitializeComponent();
            DTPickorder_date.Value = DateTime.Now.ToShortDateString();//获取当前系统时间
            this.UCCheckBM = UCCheckManager;//获取其它收货单管理类
            this.status = state;//获取操作状态
            this.StockCheckId = CheckId;//其它收货单ID
            base.DeleteEvent += new ClickHandler(UCStockCheckAddOrEdit_DeleteEvent);
            base.SaveEvent += new ClickHandler(UCStockCheckAddOrEdit_SaveEvent);//保存
            base.SubmitEvent += new ClickHandler(UCStockCheckAddOrEdit_SubmitEvent);//提交
            base.ImportEvent += new ClickHandler(UCStockCheckAddOrEdit_ImportEvent);//导入
            
            //设置列表的可编辑状态
            gvPartsMsgList.ReadOnly = false;
            foreach (DataGridViewColumn dgCol in gvPartsMsgList.Columns)
            {
                if (dgCol.Name != colCheck.Name && dgCol.Name != FmOffCount.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;

        }
        public UCStockCheckAddOrEdit(WindowStatus state, string CheckId, UCStockCheckManager UCCheckManager)
        {
            InitializeComponent();
            DTPickorder_date.Value = DateTime.Now.ToShortDateString();//获取当前系统时间
            this.UCCheckBM = UCCheckManager;//获取其它收货单管理类
            this.status = state;//获取操作状态
            this.StockCheckId = CheckId;//其它收货单ID
            base.SaveEvent += new ClickHandler(UCStockCheckAddOrEdit_SaveEvent);//保存
            base.SubmitEvent += new ClickHandler(UCStockCheckAddOrEdit_SubmitEvent);//提交
            base.ImportEvent += new ClickHandler(UCStockCheckAddOrEdit_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;
            Papcounts.ReadOnly = true;
            ProLossCount.ReadOnly = true;
            BusinesPrice.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;

        }
Exemple #4
0
 public UCStockCheckAddOrEdit(WindowStatus state, string CheckId, UCStockCheckManager UCCheckManager)
 {
     InitializeComponent();
     DTPickorder_date.Value  = DateTime.Now.ToShortDateString();                    //获取当前系统时间
     this.UCCheckBM          = UCCheckManager;                                      //获取其它收货单管理类
     this.status             = state;                                               //获取操作状态
     this.StockCheckId       = CheckId;                                             //其它收货单ID
     base.SaveEvent         += new ClickHandler(UCStockCheckAddOrEdit_SaveEvent);   //保存
     base.SubmitEvent       += new ClickHandler(UCStockCheckAddOrEdit_SubmitEvent); //提交
     base.ImportEvent       += new ClickHandler(UCStockCheckAddOrEdit_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;
     Papcounts.ReadOnly      = true;
     ProLossCount.ReadOnly   = true;
     BusinesPrice.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;
 }
 private void picPdd_Click(object sender, EventArgs e)
 {
     UCStockCheckManager uc = new UCStockCheckManager();
     string tag = "CL_AccessoriesBusiness|CL_StockManagement_Function|CL_StockCheck_Function";
     UCBase.AddUserControl(uc, "盘点单", "CL_StockCheck_Function", tag, "");
 }