private void tsrbtnUpdate_Click(object sender, EventArgs e) { try { if (_currentMaster.Audit_Flag == 1) { MessageBox.Show("不能对已审核单据进行操作"); return; } FrmSelectOutDept frmSelctDept = new FrmSelectOutDept(); FrmYFApplyorder frmOrder = new FrmYFApplyorder(_currentUserId, _currentDeptId, 1, false); frmOrder._currentMaster = _currentMaster; frmOrder._outDept.DeptID = _currentMaster.SupportDicID; frmOrder._outDept.DeptName = new Deptment((long)(_currentMaster.SupportDicID)).Name; frmOrder._outDept.DeptType1 = "药库"; frmOrder.MdiParent = this.MdiParent; frmOrder.WindowState = FormWindowState.Maximized; ((GWMHIS.BussinessLogicLayer.Interfaces.IInvokForm) this.Parent.Parent.Parent).AddFormToTabPage(frmOrder); frmOrder.Show(); } catch (Exception error) { MessageBox.Show(error.Message); } }
private void tsrbtnNew_Click(object sender, EventArgs e) { FrmSelectOutDept frmSelctDept = new FrmSelectOutDept(); if (frmSelctDept.ShowDialog() == DialogResult.OK) { FrmYFApplyorder frmOrder = new FrmYFApplyorder(_currentUserId, _currentDeptId, 0, false); frmOrder._outDept.DeptID = frmSelctDept._storeDeptId; frmOrder._outDept.DeptName = frmSelctDept._deptName; frmOrder._outDept.DeptType1 = "药库"; frmOrder.MdiParent = this.MdiParent; frmOrder.WindowState = FormWindowState.Maximized; ((GWMHIS.BussinessLogicLayer.Interfaces.IInvokForm) this.Parent.Parent.Parent).AddFormToTabPage(frmOrder); frmOrder.Show(); } }
private void btnBuildPlan_Click(object sender, EventArgs e) { if (_belongSystem == ConfigManager.YK_SYSTEM) { FrmStockPlan frmstockplan = new FrmStockPlan(_currentUserId, _currentDeptId, true); frmstockplan.WindowState = FormWindowState.Maximized; ((GWMHIS.BussinessLogicLayer.Interfaces.IInvokForm) this.Parent.Parent.Parent).AddFormToTabPage(frmstockplan); } else { FrmSelectOutDept frmSelctDept = new FrmSelectOutDept(); if (frmSelctDept.ShowDialog() == DialogResult.OK) { FrmYFApplyorder frmOrder = new FrmYFApplyorder(_currentUserId, _currentDeptId, 0, true); frmOrder._outDept.DeptID = frmSelctDept._storeDeptId; frmOrder._outDept.DeptName = frmSelctDept._deptName; frmOrder._outDept.DeptType1 = "药库"; frmOrder.LimitDt = GetUseLimitRow(); frmOrder.WindowState = FormWindowState.Maximized; ((GWMHIS.BussinessLogicLayer.Interfaces.IInvokForm) this.Parent.Parent.Parent).AddFormToTabPage(frmOrder); } } }