Ejemplo n.º 1
0
 private void cmd_InPhieu_ChiDinh_Click(object sender, EventArgs e)
 {
     try
     {
         if (grdPatients.CurrentRow == null) return;
         frm_InPhieuChiDinh frm = new frm_InPhieuChiDinh();
         frm.Patient_ID = Utility.Int32Dbnull(grdPatients.GetValue("Patient_ID"), -1);
         frm.ShowDialog();
     }
     catch (Exception ex)
     {
         Utility.ShowMsg(ex.Message);
     }
 }
Ejemplo n.º 2
0
        private void cmd_InPhieu_ChiDinh_Click(object sender, EventArgs e)
        {
            if (grdPatients.CurrentRow == null)
            {
                Utility.ShowMsg("Bạn chưa chọn bệnh nhân để in");
                return;
            }
            frm_InPhieuChiDinh frm = new frm_InPhieuChiDinh();
            if (grdPatients.GetCheckedRows().Count() > 0)
                frm.m_dtTestType = (DataTable) grdTestType.DataSource;

            else
            {
                    DataTable dtreglist = (DataTable) grdTestTypeRegList.DataSource;
                 dtreglist=   dtreglist.DefaultView.ToTable(true, "TestTYpe_ID","TestType_Name","Barcode","Test_ID");
                 frm.m_dtTestType = dtreglist;
            frm.grdList = grdPatients;
            frm.ShowDialog();
            }
        }