Ejemplo n.º 1
0
 /// <summary>
 /// hà thực hiện khởi tạo thông tin của Form
 /// </summary>
 private void InitalData()
 {
     try
     {
         dtDept = THU_VIEN_CHUNG.Laydanhmuckhoa("NGOAI", 0);
         //Khởi tạo danh mục Loại khám
         DataTable v_ExamTypeList = new DmucKieukhamCollection().Load().ToDataTable();
         Utility.AddColumnAlltoDataTable(ref v_ExamTypeList, DmucDichvukcb.Columns.IdKieukham, DmucKieukham.Columns.TenKieukham, "====Chọn====");
         v_ExamTypeList.DefaultView.Sort = DmucKieukham.Columns.SttHthi + " ASC";
         cboLoaiKham.DataSource          = v_ExamTypeList.DefaultView;
         cboLoaiKham.ValueMember         = DmucDichvukcb.Columns.IdKieukham;
         cboLoaiKham.DisplayMember       = DmucKieukham.Columns.TenKieukham;
         cboLoaiKham.SelectedValue       = -1;
         //Khởi tạo danh mục Loại khám
         DataTable v_ObjectTypeList = new DmucDoituongkcbCollection().Load().ToDataTable();
         Utility.AddColumnAlltoDataTable(ref v_ObjectTypeList, DmucDichvukcb.Columns.IdDoituongKcb, DmucDoituongkcb.Columns.TenDoituongKcb, "====Chọn====");
         v_ObjectTypeList.DefaultView.Sort = DmucDoituongkcb.Columns.SttHthi + " ASC";
         cboDoituong.DataSource            = v_ObjectTypeList.DefaultView;
         cboDoituong.ValueMember           = DmucDichvukcb.Columns.IdDoituongKcb;
         cboDoituong.DisplayMember         = DmucDoituongkcb.Columns.TenDoituongKcb;
         //Phòng ban
         BindDepartment();
     }
     catch
     {
     }
 }
Ejemplo n.º 2
0
 public DmucDoituongkcbCollection FetchAll()
 {
     DmucDoituongkcbCollection coll = new DmucDoituongkcbCollection();
     Query qry = new Query(DmucDoituongkcb.Schema);
     coll.LoadAndCloseReader(qry.ExecuteReader());
     return coll;
 }
Ejemplo n.º 3
0
 public DmucDoituongkcbCollection FetchByQuery(Query qry)
 {
     DmucDoituongkcbCollection coll = new DmucDoituongkcbCollection();
     coll.LoadAndCloseReader(qry.ExecuteReader());
     return coll;
 }
Ejemplo n.º 4
0
 public DmucDoituongkcbCollection FetchByID(object IdDoituongKcb)
 {
     DmucDoituongkcbCollection coll = new DmucDoituongkcbCollection().Where("id_doituong_kcb", IdDoituongKcb).Load();
     return coll;
 }
Ejemplo n.º 5
0
        /// <summary>
        /// hà thực hiện khởi tạo thông tin của Form
        /// </summary>
        private void InitalData()
        {
            try
            {
                dtDept = THU_VIEN_CHUNG.Laydanhmuckhoa("NGOAI",0);
                //Khởi tạo danh mục Loại khám
                DataTable v_ExamTypeList = new DmucKieukhamCollection().Load().ToDataTable();
                Utility.AddColumnAlltoDataTable(ref v_ExamTypeList, DmucDichvukcb.Columns.IdKieukham, DmucKieukham.Columns.TenKieukham, "====Chọn====");
                v_ExamTypeList.DefaultView.Sort =DmucKieukham.Columns.SttHthi+ " ASC";
                cboLoaiKham.DataSource = v_ExamTypeList.DefaultView;
                cboLoaiKham.ValueMember = DmucDichvukcb.Columns.IdKieukham;
                cboLoaiKham.DisplayMember = DmucKieukham.Columns.TenKieukham;
                cboLoaiKham.SelectedValue = -1;
                //Khởi tạo danh mục Loại khám
                DataTable v_ObjectTypeList = new DmucDoituongkcbCollection().Load().ToDataTable();
                Utility.AddColumnAlltoDataTable(ref v_ObjectTypeList, DmucDichvukcb.Columns.IdDoituongKcb, DmucDoituongkcb.Columns.TenDoituongKcb, "====Chọn====");
                v_ObjectTypeList.DefaultView.Sort =DmucDoituongkcb.Columns.SttHthi+ " ASC";
                cboDoituong.DataSource = v_ObjectTypeList.DefaultView;
                cboDoituong.ValueMember = DmucDichvukcb.Columns.IdDoituongKcb;
                cboDoituong.DisplayMember = DmucDoituongkcb.Columns.TenDoituongKcb;
                //Phòng ban
                BindDepartment();

            }
            catch
            {
            }
        }