public int LayTienKhamQuyDinh() { int max = 0; lpkb.LayTienKhamQuyDinh(ref max); return(max); }
public void AddChiTietDanhSach() { int count1 = 0; try { dskb.GetCount(ref count1, "CHITIETDANHSACH", "MaChiTietDanhSach", "CD"); count1++; } catch { } string ID = "CD" + count1.ToString("000"); string IDBenhNhan = "BN" + count1.ToString("000"); int count2 = 0; try { dskb.GetCount(ref count2, "DANHSACHKHAMBENH", "MaDanhSach", "DS"); } catch { } string IDDanhSach = "DS" + count2.ToString("000"); DALLapPhieuKhamBenh tienkham = new DALLapPhieuKhamBenh( ); int _tienkham = 0; tienkham.LayTienKhamQuyDinh(ref _tienkham); dskb.AddChiTietDanhSach(ID, IDDanhSach, IDBenhNhan, "", "", _tienkham, 0, 0); }