void cmdPrintAssign_Click(object sender, EventArgs e) { try { string mayin = ""; int v_AssignId = Utility.Int32Dbnull(grdDetail.GetValue(KcbChidinhclsChitiet.Columns.IdChidinh), -1); string v_AssignCode = Utility.sDbnull(grdDetail.GetValue(KcbChidinhcl.Columns.MaChidinh), -1); string nhomincls = "ALL"; KcbInphieu.InphieuDangkyKiemnghiem(v_AssignId); } catch (Exception ex) { Utility.CatchException(ex); } }
private void cmdInphieuhen_Click(object sender, EventArgs e) { try { DataTable dtphienhen = SPs.KcbThamkhamInphieuhenBenhnhan(Utility.sDbnull(txtPatient_Code.Text, ""), Utility.Int64Dbnull(txtPatient_ID.Text, -1)). GetDataSet().Tables[0]; THU_VIEN_CHUNG.CreateXML(dtphienhen, "thamkham_inphieuhen_benhnhan.xml"); KcbInphieu.INPHIEU_HEN(dtphienhen, "PHIẾU HẸN KHÁM"); } catch (Exception ex) { Utility.ShowMsg(ex.Message); } }
private void InMauChuyenKhoa(string maLuotkham, long idBenhnhan) { try { DataTable _dtInphieu = _KCB_THAMKHAM.InMauPhieuChuyenKhoa(maLuotkham, idBenhnhan).Tables[0]; THU_VIEN_CHUNG.CreateXML(_dtInphieu, "thamkham_phieukham_chuyenkhoa.xml"); string reportcode = ""; if (radkhamchuyenkhoa.Checked) { reportcode = "PHIEUKHAM_CHUYENKHOA"; } else { reportcode = "PHIEUKHAM_BENHPHAM"; } KcbInphieu.INMAU_CHUYENKHAM_CHUYENKHOA(_dtInphieu, "PHIẾU KHÁM CHUYÊN KHOA", reportcode, txtLydo.Text); } catch (Exception ex) { Utility.ShowMsg("Lỗi:" + ex.Message); } }