Exemple #1
0
 private void tsmAddDetail_Click(object sender, EventArgs e)
 {
     try
     {
         if (grdTestInfo.CurrentRow == null | tabTestInfo.SelectedTab.Name != "tabResult") return;
         var obj = new frmTestTypeRegistration();
         obj.LoadType = "ForResultDetail";
         obj.currentTest_ID = Utility.Int32Dbnull(grdTestInfo.GetValue("Test_ID"));
         obj.currentTestType_ID = Utility.Int32Dbnull(grdTestInfo.GetValue("TestType_ID"));
         if (Utility.Int32Dbnull(grdPatients.GetValue("Patient_ID")) <= 0)
         {
             Utility.ShowMsg("Mã loại xét nghiệm không đúng !");
             obj.Dispose();
             return;
         }
         obj.patientId = Utility.Int32Dbnull(grdPatients.GetValue("Patient_ID"));
         obj.dtResultDetail = m_dtResultDetail;
         obj.ShowDialog();
         FocusColumnResult();
     }
     catch (Exception ex)
     {
         Utility.ShowMsg(ex.Message);
     }
     //btnParaEntry.PerformClick();
 }