Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 private void LoadKho()
 {
     try
     {
         if (KIEU_THUOC_VT == "THUOC")
         {
             m_dtKhoLinh   = CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_CHAN();
             m_dtKhoTraLai = CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_LE();
         }
         else
         {
             m_dtKhoLinh   = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_CHAN();
             m_dtKhoTraLai = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_LE(new List <string> {
                 "TATCA", "NGOAITRU", "NOITRU"
             });
         }
         cboNhanVien.SelectedValue = globalVariables.gv_intIDNhanvien;
         DataBinding.BindDataCombobox(cboKhoLinh, m_dtKhoLinh,
                                      TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho, "---Kho lĩnh---", false);
         DataBinding.BindDataCombobox(cboKhoTra, m_dtKhoTraLai,
                                      TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho, "---Kho trả---", false);
     }catch (Exception exception)
     {
     }
 }
Ejemplo n.º 3
0
        /// <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 = CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_CHAN();
                m_dtKhoNhap = CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_LE();
            }
            else
            {
                m_dtKhoXuat = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_CHAN();
                m_dtKhoNhap = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_LE(new List <string> {
                    "TATCA", "NGOAITRU", "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);
        }
Ejemplo n.º 4
0
        /// <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 = CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_CHAN();
                m_dtKhoNhap = CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_LE();
            }
            else
            {
                m_dtKhoXuat = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_CHAN();
                m_dtKhoNhap = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_LE(new List <string> {
                    "TATCA", "NGOAITRU", "NOITRU"
                });
            }

            if (m_dtKhoXuat.Rows.Count > 1)
            {
                txtKhoXuat.Init(m_dtKhoXuat, new List <string>()
                {
                    TDmucKho.Columns.IdKho, TDmucKho.Columns.MaKho, TDmucKho.Columns.TenKho
                });
            }
            //DataBinding.BindDataCombobox(cboKhoXuat, m_dtKhoXuat,
            //                       TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho,
            //                       "---Kho xuất---",false);
            else
            {
                txtKhoXuat.Init(m_dtKhoXuat, new List <string>()
                {
                    TDmucKho.Columns.IdKho, TDmucKho.Columns.MaKho, TDmucKho.Columns.TenKho
                });
            }
            //DataBinding.BindDataCombobox(cboKhoXuat, m_dtKhoXuat,
            //                       TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho, "---Chọn---", true);
            //   txtKhonhap.Init(m_dtDataKhoNhap, new List<string>() { TDmucKho.Columns.IdKho, TDmucKho.Columns.MaKho, TDmucKho.Columns.TenKho });
            txtKhoNhap.Init(m_dtKhoNhap, new List <string>()
            {
                TDmucKho.Columns.IdKho, TDmucKho.Columns.MaKho, TDmucKho.Columns.TenKho
            });
            //DataBinding.BindDataCombobox(cboKhoNhap, m_dtKhoNhap,
            //                          TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho,
            //                          "---Kho nhập---",false);
            txtNhanvien.Init(CommonLoadDuoc.LAYTHONGTIN_NHANVIEN());
            txtTenthuoc.Init(CommonLoadDuoc.LayThongTinThuoc(KIEU_THUOC_VT),
                             new List <string>()
            {
                DmucThuoc.Columns.IdThuoc, DmucThuoc.Columns.MaThuoc, DmucThuoc.Columns.TenThuoc
            });
        }
Ejemplo n.º 5
0
        /// <summary>
        /// hàm hực hiện việc load lại danh mục khởi tạo thông tni
        /// </summary>
        private void InitData()
        {
            try
            {
                cboDepartment.Enabled   = cboStaff.Enabled = globalVariables.IsAdmin;
                dtTuNgay.Value          = DateTime.Now.AddDays(-2);
                dtDenNgay.Value         = DateTime.Now.AddDays(2);
                cboStatus.SelectedIndex = 0;
                DataTable dtKho = new DataTable();
                if (KIEUTHUOC_VT == "THUOC")
                {
                    dtKho = CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_LE_TUTRUC_NOITRU();
                }
                else
                {
                    dtKho = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_LE(new List <string> {
                        "TATCA", "NOITRU"
                    });
                }

                DataBinding.BindDataCombobox(cboKhoxuat, dtKho,
                                             TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho,
                                             "---Chọn kho xuất---", false);

                DataTable dtDoctorAssign = THU_VIEN_CHUNG.Laydanhsachnhanvien("ALL");
                DataBinding.BindDataCombox(cboStaff, dtDoctorAssign, DmucNhanvien.Columns.IdNhanvien,
                                           DmucNhanvien.Columns.TenNhanvien, "---Bác sỹ chỉ định---", true);
                if (globalVariables.gv_intIDNhanvien <= 0)
                {
                    if (cboStaff.Items.Count > 0)
                    {
                        cboStaff.SelectedIndex = 0;
                    }
                }
                else
                {
                    if (cboStaff.Items.Count > 0)
                    {
                        cboStaff.SelectedIndex = Utility.GetSelectedIndex(cboStaff,
                                                                          globalVariables.gv_intIDNhanvien.ToString());
                    }
                }
                LoadDepartments();
            }
            catch
            {
            }
        }
Ejemplo n.º 6
0
 private void frm_phatthuoc_ngoaitru_Load(object sender, EventArgs e)
 {
     if (kieuthuoc_vt == "THUOC")
     {
         m_dtKhothuoc = CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_LE();
     }
     else
     {
         m_dtKhothuoc = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_LE(new List <string> {
             "TATCA", "NGOAITRU"
         });
     }
     DataBinding.BindData(cboKho, m_dtKhothuoc,
                          TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho);
     dtNgayPhatThuoc.Value = globalVariables.SysDate;
     TimKiemThongTinDonThuoc();
     txtPID.Focus();
     txtPID.SelectAll();
 }
Ejemplo n.º 7
0
 private void frm_ChotcapphatThuoc_ngoaitru_Load(object sender, EventArgs e)
 {
     DataBinding.BindDataCombobox(cboObjectType, THU_VIEN_CHUNG.LaydanhsachDoituongKcb(),
                                  DmucDoituongkcb.Columns.MaDoituongKcb, DmucDoituongkcb.Columns.TenDoituongKcb, "---Chọn---", true);
     if (kieuthuoc_vt == "THUOC")
     {
         m_dtKhothuoc = CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_LE_NGOAITRU();
     }
     else
     {
         m_dtKhothuoc = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_LE(new List <string> {
             "NGOAITRU"
         });
     }
     DataBinding.BindData(cboKho, m_dtKhothuoc,
                          TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho);
     TimKiemThongTinDonThuoc();
     ModifyCommand();
     CauHinh();
 }
 /// <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;
 }
Ejemplo n.º 9
0
        private void InitData()
        {
            try
            {
                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
                });

                txtNhanvien.Enabled = globalVariables.IsAdmin;
                DataTable dtKho = new DataTable();
                if (kieu_thuoc_vt == "THUOC")
                {
                    dtKho = CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_LE_TUTRUC_NOITRU();
                }
                else
                {
                    dtKho = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_LE(new List <string> {
                        "TATCA", "NOITRU"
                    });
                }

                txtKhothuoc.Init(dtKho, new List <string>()
                {
                    TDmucKho.Columns.IdKho, TDmucKho.Columns.MaKho, TDmucKho.Columns.TenKho
                });
                txtNhanvien.Init(THU_VIEN_CHUNG.Laydanhsachnhanvien("ALL"), new List <string>()
                {
                    DmucNhanvien.Columns.IdNhanvien, DmucNhanvien.Columns.MaNhanvien, DmucNhanvien.Columns.TenNhanvien
                });
                txtNhanvien.SetId(globalVariables.gv_intIDNhanvien);
            }
            catch
            {
            }
        }
 /// <summary>
 /// hàm thực hiện việc load form hiện tại
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="eventArgs"></param>
 private void frm_baocao_chitiet_thuocdacapphat_benhnhan_Load(object sender, EventArgs e)
 {
     if (kieuthuoc_vt == "THUOC")
     {
         baocaO_TIEUDE1.Init("thuoc_baocao_chitiet_thuoccapphat_benhnhan");
     }
     else
     {
         baocaO_TIEUDE1.Init("vt_baocao_chitiet_vtcapphat_benhnhan");
     }
     DataBinding.BindDataCombobox(cboDoiTuong, THU_VIEN_CHUNG.LaydanhsachDoituongKcb(),
                                  DmucDoituongkcb.Columns.IdDoituongKcb, DmucDoituongkcb.Columns.TenDoituongKcb,
                                  "---Chọn đối tượng---", false);
     DataBinding.BindDataCombobox(cboStock,
                                  kieuthuoc_vt == "THUOC"
                                      ? CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_LE()
                                      : CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_LE(new List <string>
     {
         "TATCA", "NGOAITRU"
     }),
                                  TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho, "---Chọn kho ---", false);
     m_dtKhoathucHien = THU_VIEN_CHUNG.Laydanhmuckhoa("NGOAI", 0);
     Napcauhinh();
 }
Ejemplo n.º 11
0
 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);
 }
Ejemplo n.º 12
0
        private void frm_PhieuTraLai_Kho_Load(object sender, EventArgs e)
        {
            CauHinh();
            cmdCauHinh.Visible = globalVariables.IsAdmin;
            if (KIEU_THUOC_VT == "THUOC")
            {
                m_dtKhoLinh   = CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_CHAN();
                m_dtKhoTraLai = CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_LE();
            }
            else
            {
                m_dtKhoLinh   = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_CHAN();
                m_dtKhoTraLai = CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_LE(new List <string> {
                    "TATCA", "NGOAITRU", "NOITRU"
                });
            }
            DataBinding.BindDataCombobox(cboKhoTra, m_dtKhoTraLai,
                                         TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho, "---Kho trả lại---", false);
            DataBinding.BindDataCombobox(cboKhoLinh, m_dtKhoLinh,
                                         TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho, "----Kho lĩnh", false);

            TimKiemThongTinDonThuoc();
            b_Hasloaded = true;
        }
Ejemplo n.º 13
0
        /// <summary>
        /// load thông tin
        /// của form hiện tai
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void frm_baocao_nhapxuathuoc_Load(object sender, EventArgs e)
        {
            DataTable dtkho = null;

            modifyTieude();

            if (KIEU_THUOC_VT == "THUOC")
            {
                dtkho = KieuKho == "ALL" ? CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_TATCA() : (KieuKho == "CHAN" ? CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_CHAN() : CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_LE());
            }
            else
            {
                dtkho = KieuKho == "ALL" ? CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_TATCA() : (KieuKho == "CHAN" ? CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_CHAN() : CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_LE(new List <string> {
                    "TATCA", "NGOAITRU", "NOITRU"
                }));
            }
            cboKho.DropDownDataSource    = dtkho;
            cboKho.DropDownDataMember    = TDmucKho.Columns.IdKho;
            cboKho.DropDownDisplayMember = TDmucKho.Columns.TenKho;
            cboKho.DropDownValueMember   = TDmucKho.Columns.IdKho;

            //DataBinding.BindData(cboKho, dtkho, TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho);
            DataTable m_dtNhomThuoc = new Select().From(DmucLoaithuoc.Schema).Where(DmucLoaithuoc.Columns.KieuThuocvattu).IsEqualTo(KIEU_THUOC_VT)
                                      .OrderAsc(DmucLoaithuoc.Columns.SttHthi).ExecuteDataSet().Tables[0];

            allowChanged = true;
            cboKho_CheckedValuesChanged(cboKho, e);
            cboThang.SelectedIndex = globalVariables.SysDate.Month - 1;
        }
Ejemplo n.º 14
0
        /// <summary>
        /// load thông tin
        /// của form hiện tai
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void frm_baocao_tonkho_Load(object sender, EventArgs e)
        {
            DataTable dtkho = null;

            if (KIEU_THUOC_VT == "THUOC")
            {
                baocaO_TIEUDE1.Init("thuoc_baocao_nhapxuatton_khochan");
                dtkho = KieuKho == "ALL" ? CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_TATCA() : (KieuKho == "CHAN" ? CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_CHAN() : CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_LE());
            }
            else
            {
                baocaO_TIEUDE1.Init("vt_baocao_nhapxuatton_khochan");
                dtkho = KieuKho == "ALL" ? CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_TATCA() : (KieuKho == "CHAN" ? CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_CHAN() : CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_LE(new List <string> {
                    "TATCA", "NGOAITRU", "NOITRU"
                }));
            }
            DataBinding.BindData(cboKho, dtkho, TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho);
            DataTable m_dtNhomThuoc = new Select().From(DmucLoaithuoc.Schema).Where(DmucLoaithuoc.Columns.KieuThuocvattu).IsEqualTo(KIEU_THUOC_VT)
                                      .OrderAsc(DmucLoaithuoc.Columns.SttHthi).ExecuteDataSet().Tables[0];

            allowChanged = true;
            cboKho_SelectedIndexChanged(cboKho, e);
        }
Ejemplo n.º 15
0
        /// <summary>
        /// load thông tin
        /// của form hiện tai
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void frm_baocao_phanungnang_sautiemchung_Load(object sender, EventArgs e)
        {
            DataTable dtkho = null;

            txtGioitinh.Init();
            if (KIEU_THUOC_VT.Contains("THUOC"))
            {
                baocaO_TIEUDE1.Init("vacxin_baocao_phanungnang_sautiemchung");
                dtkho = KieuKho == "ALL" ? CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_TATCA() : (KieuKho == "CHAN" ? CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_CHAN() : CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_LE());
            }
            else
            {
                baocaO_TIEUDE1.Init("vacxin_baocao_phanungnang_sautiemchung");
                dtkho = KieuKho == "ALL" ? CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_TATCA() : (KieuKho == "CHAN" ? CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_CHAN() : CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_LE(new List <string> {
                    "TATCA", "NGOAITRU", "NOITRU"
                }));
            }

            DataTable m_dtNhomThuoc = new Select().From(DmucLoaithuoc.Schema).Where(DmucLoaithuoc.Columns.KieuThuocvattu).IsEqualTo(KIEU_THUOC_VT)
                                      .OrderAsc(DmucLoaithuoc.Columns.SttHthi).ExecuteDataSet().Tables[0];

            allowChanged = true;
        }
        /// <summary>
        /// load thông tin
        /// của form hiện tai
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void frm_baocao_xuatthuoc_khoanoitru_Load(object sender, EventArgs e)
        {
            DataTable dtkho = null;

            if (KIEU_THUOC_VT == "THUOC")
            {
                baocaO_TIEUDE1.Init("thuoc_baocao_xuatthuocnoitru");
                dtkho = KieuKho == "ALL" ? CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_TATCA() : (KieuKho == "CHAN" ? CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_CHAN() : CommonLoadDuoc.LAYTHONGTIN_KHOTHUOC_LE());
            }
            else
            {
                baocaO_TIEUDE1.Init("thuoc_baocao_xuatthuocnoitru");
                dtkho = KieuKho == "ALL" ? CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_TATCA() : (KieuKho == "CHAN" ? CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_CHAN() : CommonLoadDuoc.LAYTHONGTIN_KHOVATTU_LE(new List <string> {
                    "TATCA", "NGOAITRU", "NOITRU"
                }));
            }

            cboKho.DropDownDataSource    = dtkho;
            cboKho.DropDownDataMember    = TDmucKho.Columns.IdKho;
            cboKho.DropDownDisplayMember = TDmucKho.Columns.TenKho;
            cboKho.DropDownValueMember   = TDmucKho.Columns.IdKho;
            DataTable dtKhoaNoitru = THU_VIEN_CHUNG.Laydanhmuckhoa("NOI", 0);

            cboKhoalinh.DropDownDataSource    = dtKhoaNoitru;
            cboKhoalinh.DropDownDataMember    = DmucKhoaphong.Columns.IdKhoaphong;
            cboKhoalinh.DropDownDisplayMember = DmucKhoaphong.Columns.TenKhoaphong;
            cboKhoalinh.DropDownValueMember   = DmucKhoaphong.Columns.IdKhoaphong;
            //DataBinding.BindData(cboKho, dtkho, TDmucKho.Columns.IdKho, TDmucKho.Columns.TenKho);
            DataTable m_dtNhomThuoc = new Select().From(DmucLoaithuoc.Schema).Where(DmucLoaithuoc.Columns.KieuThuocvattu).IsEqualTo(KIEU_THUOC_VT)
                                      .OrderAsc(DmucLoaithuoc.Columns.SttHthi).ExecuteDataSet().Tables[0];

            allowChanged = true;
            cboKho_CheckedValuesChanged(cboKho, e);
            cboKhoalinh_CheckedValuesChanged(cboKhoalinh, e);
            cboThang.SelectedIndex = globalVariables.SysDate.Month - 1;
        }