private void LoadKho() { if (KIEU_THUOC_VT == "THUOC") { m_dtKhoXuat = CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_LE_NOITRU(); m_dtKhoLinh = CommonLoadDuoc.LAYTHONGTIN_TUTHUOC(); } else { m_dtKhoXuat = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_CHAN(); m_dtKhoLinh = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_LE(new List <string> { "TATCA", "NOITRU" }); } DataBinding.BindDataCombobox(cboKhonhan, m_dtKhoLinh, TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho, "---Kho nhận---", true); cboNhanVien.SelectedValue = globalVariables.gv_intIDNhanvien; DataBinding.BindDataCombobox(cboKhoxuat, m_dtKhoXuat, TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho, "---Kho xuất---", true); DataBinding.BindDataCombobox(cboKhoalinh, m_KhoaLinh, DmucKhoaphong.Columns.IdKhoaphong, DmucKhoaphong.Columns.TenKhoaphong, "--Khoa lĩnh--", true); }
/// <summary> /// hàm thực hiện việc khởi tạo thông tin của Form /// </summary> private void InitData() { if (KIEU_THUOC_VT == "THUOC") { m_dtKhoXuat = Noitru ? CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_LE_NOITRU() : CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_LE_NGOAITRU(); m_dtKhoNhap = CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_AO(Noitru); } else { m_dtKhoXuat = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_LE(new List <string> { "TATCA", "NGOAITRU", "NOITRU" }); m_dtKhoNhap = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_AO(Noitru); } if (m_dtKhoXuat.Rows.Count > 1) { DataBinding.BindDataCombobox(cboKhoXuat, m_dtKhoXuat, TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho, "---Kho xuất---", false); } else { DataBinding.BindDataCombobox(cboKhoXuat, m_dtKhoXuat, TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho, "---Chọn---", true); } DataBinding.BindDataCombobox(cboKhoNhap, m_dtKhoNhap, TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho, "---Kho nhập---", false); }
/// <summary> /// hàm thực hiện việc khởi tạo thông tin của Form /// </summary> private void InitData() { DataTable m_dtKhoaNoitru = THU_VIEN_CHUNG.Laydanhmuckhoa("NOI", 0); txtKhoanoitru.Init(m_dtKhoaNoitru, new List <string>() { DmucKhoaphong.Columns.IdKhoaphong, DmucKhoaphong.Columns.MaKhoaphong, DmucKhoaphong.Columns.TenKhoaphong }); if (KIEU_THUOC_VT == "THUOC") { m_dtKhoNhan = CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_LE_NOITRU(); } else { m_dtKhoNhan = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_CHAN(); } txtKhothuoc.Init(m_dtKhoNhan, new List <string>() { TDmucKho.Columns.IdKho, TDmucKho.Columns.MaKho, TDmucKho.Columns.TenKho }); DataTable dtnhanvien = THU_VIEN_CHUNG.Laydanhsachnhanvien("ALL"); txtNguoinhan.Init(dtnhanvien, new List <string>() { DmucNhanvien.Columns.IdNhanvien, DmucNhanvien.Columns.MaNhanvien, DmucNhanvien.Columns.TenNhanvien }); txtNguoitra.Init(dtnhanvien, new List <string>() { DmucNhanvien.Columns.IdNhanvien, DmucNhanvien.Columns.MaNhanvien, DmucNhanvien.Columns.TenNhanvien }); b_Hasloaded = true; }
/// <summary> /// hàm thực hiện việc khởi tạo thông tin của Form /// </summary> private void InitData() { m_KhoaLinh = THU_VIEN_CHUNG.Laydanhmuckhoa("NOI", 0); if (KIEU_THUOC_VT == "THUOC") { m_dtKhoXuat = CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_LE_NOITRU(); m_dtKhonhan = CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_AO(true); } else { m_dtKhoXuat = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_CHAN(); m_dtKhonhan = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_AO(true); } DataBinding.BindDataCombobox(cboKhoxuat, m_dtKhoXuat, TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho, "---Kho xuất---", true); DataBinding.BindDataCombobox(cboKhoaLinh, m_KhoaLinh, DmucKhoaphong.Columns.IdKhoaphong, DmucKhoaphong.Columns.TenKhoaphong, "---Khoa lĩnh---", true); b_Hasloaded = true; }
private void LoadKho() { if (KIEU_THUOC_VT == "THUOC") { m_dtKhoNhap = CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_LE_NOITRU(); m_dtKhoTra = CommonLoadDuoc.LAYTHONGTIN_TUTHUOC(); } else { m_dtKhoNhap = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_CHAN(); m_dtKhoTra = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_LE_TUTRUC();//new List<string> { "TATCA", "NOITRU" }); } //m_dtKhoNhap = CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_LE(); //m_dtKhoTra = m_dtKhoNhap.Copy(); cboNhanVien.SelectedValue = globalVariables.gv_intIDNhanvien; DataBinding.BindDataCombobox(cboKhoNhap, m_dtKhoNhap, TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho, "---Kho nhập---", false); DataBinding.BindDataCombobox(cboKhoaTra, m_KhoaTra, DmucKhoaphong.Columns.IdKhoaphong, DmucKhoaphong.Columns.TenKhoaphong, "---Khoa trả---", false); }
/// <summary> /// hàm thực hiện việc khởi tạo thông tin của Form /// </summary> private void InitData() { m_KhoaLinh = THU_VIEN_CHUNG.Laydanhmuckhoa("NOI", 0); if (KIEU_THUOC_VT == "THUOC") { m_dtKhoNhan = CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_LE_NOITRU(); m_dtKhoTra = CommonLoadDuoc.LAYTHONGTIN_TUTHUOC(); } else { m_dtKhoNhan = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_CHAN(); m_dtKhoTra = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_LE(new List <string> { "TATCA", "NOITRU" }); } DataBinding.BindDataCombobox(cboKhoNhan, m_dtKhoNhan, TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho, "---kho nhận---", true); DataBinding.BindDataCombobox(cboKhoaLinh, m_KhoaLinh, DmucKhoaphong.Columns.IdKhoaphong, DmucKhoaphong.Columns.TenKhoaphong, "---Khoa trả---", true); b_Hasloaded = true; }
private void LoadKho() { if (KIEU_THUOC_VT == "THUOC") { m_dtKhoXuat = CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_LE_NOITRU(); m_dtKhoLinh = CommonLoadDuoc.LAYTHONGTIN_TUTHUOC(); } else { m_dtKhoXuat = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_CHAN(); m_dtKhoLinh = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_LE(new List <string> { "TATCA", "NOITRU" }); } DataBinding.BindDataCombobox(cboKhonhan, m_dtKhoLinh, TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho, "---Kho nhận---", true); DataBinding.BindDataCombobox(cboKhoxuat, m_dtKhoXuat, TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho, "---Kho xuất---", true); m_KhoaLinh = THU_VIEN_CHUNG.Laydanhmuckhoa("NOI", 0); DataBinding.BindDataCombobox(cboKhoalinh, m_KhoaLinh, DmucKhoaphong.Columns.IdKhoaphong, DmucKhoaphong.Columns.TenKhoaphong, "--Khoa lĩnh--", true); }