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);
         }
     }
 }