private void picCrkd_Click(object sender, EventArgs e) { UCAllocationBillManager uc = new UCAllocationBillManager(); string tag = "CL_AccessoriesBusiness|CL_StockManagement_Function|CL_AllocationBill_Function"; UCBase.AddUserControl(uc, "出入库单", "CL_AllocationBill_Function", tag, ""); }
StringBuilder sb_Fields = new StringBuilder();//字符串集合 #endregion /// <summary> /// 初始化出入单窗体信息 /// </summary> public UCAllocationBillAddOrEdit(WindowStatus state, string InOutId, UCAllocationBillManager UCABManager) { InitializeComponent(); DTPickorder_date.Value = DateTime.Now.ToShortDateString();//获取当前系统时间 this.UCAllocBM = UCABManager;//获取出入库单管理类 this.status = state;//获取操作状态 this.stockinoutid = InOutId;//出入库单ID base.SaveEvent += new ClickHandler(UCAllocationBillAddOrEdit_SaveEvent);//保存 base.SubmitEvent += new ClickHandler(UCAllocationBillAddOrEdit_SubmitEvent);//提交 base.ImportEvent += new ClickHandler(UCAllocationBillAddOrEdit_ImportEvent);//导入 base.DeleteEvent += new ClickHandler(UCAllocationBillAddOrEdit_DeleteEvent);//删除 base.btnExport.Visible = false; base.btnConfirm.Visible = false; base.btnEdit.Visible = false; base.btnBalance.Visible = false; base.btnPrint.Visible = false; base.btnVerify.Visible = false; //设置列表的可编辑状态 gvPartsMsgList.ReadOnly = false; foreach (DataGridViewColumn dgCol in gvPartsMsgList.Columns) { if (dgCol.Name != colCheck.Name && dgCol.Name != counts.Name && dgCol.Name != isgif.Name && dgCol.Name != remarks.Name) dgCol.ReadOnly = true; } if (string.IsNullOrEmpty(InOutId)) { label14.Visible = false; label15.Visible = false; lblupdate_name.Visible = false; lblupdate_time.Visible = false; } //设置GridView单元格内容显示位置 gvPartsMsgList.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter; }
StringBuilder sb_Fields = new StringBuilder();//字符串集合 #endregion /// <summary> /// 初始化出入单窗体信息 /// </summary> public UCAllocationBillAddOrEdit(WindowStatus state, string InOutId, UCAllocationBillManager UCABManager) { InitializeComponent(); gvPartsMsgList.ReadOnly = false; partsnum.ReadOnly = true; partname.ReadOnly = true; PartSpec.ReadOnly = true; drawingnum.ReadOnly = true; UntName.ReadOnly = true; partbrand.ReadOnly = true; DTPickorder_date.Value = DateTime.Now.ToShortDateString();//获取当前系统时间 this.UCAllocBM = UCABManager;//获取出入库单管理类 this.status = state;//获取操作状态 this.stockinoutid = InOutId;//出入库单ID base.SaveEvent += new ClickHandler(UCAllocationBillAddOrEdit_SaveEvent);//保存 base.SubmitEvent += new ClickHandler(UCAllocationBillAddOrEdit_SubmitEvent);//提交 base.ImportEvent += new ClickHandler(UCAllocationBillAddOrEdit_ImportEvent);//导入 base.btnExport.Enabled = false; base.btnConfirm.Enabled = false; base.btnEdit.Enabled = false; base.btnBalance.Enabled = false; base.btnPrint.Enabled = false; if (string.IsNullOrEmpty(InOutId)) { label14.Visible = false; label15.Visible = false; lblupdate_name.Visible = false; lblupdate_time.Visible = false; } }