public void CaseDetailAddCancelHandler()
        {
            hkCaseDetailMgrModelAdd.Stop();
            MsgDialog.WindowClose(this.caseNo + "号配件明细");
            CaseDetailMgr detailFrm = new CaseDetailMgr(this.caseNumberID, "", this.caseNo);

            this.Close();
            detailFrm.Show();
        }
Example #2
0
        public void ViewCaseNumberDetail()
        {
            hkCaseMgr.Stop();
            DataTable     dt           = (DataTable)dgCaseList.DataSource;
            string        caseNumberID = dt.Rows[dgCaseList.CurrentRowIndex].ItemArray[2].ToString();
            string        caseNo       = dt.Rows[dgCaseList.CurrentRowIndex].ItemArray[0].ToString();
            CaseDetailMgr detailFrm    = new CaseDetailMgr(caseNumberID, "", caseNo);

            //弹窗关闭返回来设置queue、hkCaseMgr,刷新列表
            //detailFrm.CaseDetailMgrWindowBackDegelate += new CaseDetailMgr.CaseDetailMgrWindowBack(detailFrm_CaseDetailMgrWindowBackDegelate);
            detailFrm.Show();
        }
 void delMsgBox_ConfirmSelectionDelegate(int selection)
 {
     if (selection == 1)
     {
         DeleteDetail();
         MsgDialog.WindowClose(this.caseNo + "号配件明细");
         CaseDetailMgr detailFrm = new CaseDetailMgr(this.caseNumberID, "", this.caseNo);
         this.Close();
         detailFrm.Show();
     }
     else
     {
         hkCaseDetailMgrModelAdd.Start();
     }
 }
 public void CaseDetailAddOKHandler()
 {
     if (Convert.ToInt32(lblTotalNum.Text) > Convert.ToInt32(lblsNum.Text))
     {
         msg.ShowMessage("实发数量不能超过应发数量", 1);
     }
     else
     {
         if (!string.IsNullOrEmpty(txtNum.Text) && Convert.ToInt32(txtNum.Text) > 0)
         {
             SaveDetail(Convert.ToInt32(lblTotalNum.Text));
             hkCaseDetailMgrModelAdd.Stop();
             MsgDialog.WindowClose(this.caseNo + "号配件明细");
             CaseDetailMgr detailFrm = new CaseDetailMgr(this.caseNumberID, "", this.caseNo);
             this.Close();
             detailFrm.Show();
         }
     }
 }