示例#1
0
 public HistoryCollection()
 {
     using (SqlDataReader dr = AppDAL.HistorySelectAll())
     {
         LoadObjectsFromReader(dr);
     }
 }
示例#2
0
 public Treatments(string searchText)
 {
     using (SqlDataReader dr = AppDAL.TreatmentSearch(searchText))
     {
         LoadObjectsFromReader(dr);
     }
 }
示例#3
0
 public Permissions(Guid userRoleGuid, Guid entityGuid)
 {
     using (SqlDataReader dr = AppDAL.PermssionSelect(userRoleGuid, entityGuid))
     {
         LoadObjectsFromReader(dr);
     }
 }
示例#4
0
 private bool OpenRecord(Guid userRoleGuid, Guid fieldGuid)
 {
     bool r = false;
     using (SqlDataReader dr = AppDAL.FieldPermssionSelect(userRoleGuid, fieldGuid))
         r = dr != null && dr.Read() && this.Populate(dr);
     return r;
 }
示例#5
0
 public FieldPermissions(UserRole userRole)
 {
     if (!Objectbase.IsNullOrEmpty(userRole))
     {
         this.mUserRole = userRole;
         using (SqlDataReader dr = AppDAL.FieldPermssionSelectAllEntityByUser(userRole.ObjectGuid))
         {
             if (dr != null)
             {
                 while (dr.Read())
                 {
                     FieldPermission obj = null;
                     if (AppShared.IsNull(dr[FieldPermission.Columns.PermisionFieldGuid]))
                     {
                         Field field = new Field();
                         if (field.Populate(dr))
                         {
                             obj = new FieldPermission(userRole, field);
                             this.Add(obj);
                         }
                     }
                     else
                     {
                         obj = new FieldPermission();
                         if (obj.Populate(dr))
                             this.Add(obj);
                     }
                 }
             }
         }
     }
 }
示例#6
0
 public OPDInvestigationProcedureCollection(Guid patientGuid)
 {
     using (SqlDataReader dr = AppDAL.OPDInvestigationProcedureSearch(patientGuid))
     {
         LoadObjectsFromReader(dr);
     }
 }
示例#7
0
 public LabInvestigationCollection(string searchText)
 {
     using (SqlDataReader dr = AppDAL.LabInvestigationSearch(searchText))
     {
         LoadObjectsFromReader(dr);
     }
 }
示例#8
0
 public OPDMainInvestigations(Guid InvestigationProcedureGuid)
 {
     using (SqlDataReader dr = AppDAL.OPDInvestigationProcedureMainInvestigationSelectAll(InvestigationProcedureGuid))
     {
         LoadObjectsFromReader(dr);
     }
 }
示例#9
0
 public Rooms()
 {
     using (SqlDataReader dr = AppDAL.RoomSelectAll())
     {
         LoadObjectsFromReader(dr);
     }
 }
示例#10
0
 public FieldCollection(Guid userRoleGuid)
 {
     using (SqlDataReader dr = AppDAL.FieldPermissionSelectByUser(userRoleGuid))
     {
         LoadObjectsFromReader(dr);
     }
 }
示例#11
0
 public PatientProcedures(Guid patientGuid)
 {
     using (SqlDataReader dr = AppDAL.PatientProcedureSearch(patientGuid))
     {
         LoadObjectsFromReader(dr);
     }
 }
示例#12
0
 public FieldCollection()
 {
     using (SqlDataReader dr = AppDAL.FieldSelectAll())
     {
         LoadObjectsFromReader(dr);
     }
 }
示例#13
0
 public HistoryCollection(Guid HistoryGuid)
 {
     using (SqlDataReader dr = AppDAL.HistorySelect(HistoryGuid))
     {
         LoadObjectsFromReader(dr);
     }
 }
示例#14
0
 public HistoryCollection(string searchText)
 {
     using (SqlDataReader dr = AppDAL.HistorySearch(searchText))
     {
         LoadObjectsFromReader(dr);
     }
 }
示例#15
0
 public MedicineSaleCollection()
 {
     using (SqlDataReader dr = AppDAL.MedicineSaleSelectAll())
     {
         LoadObjectsFromReader(dr);
     }
 }
示例#16
0
 public Rooms(string searchText)
 {
     using (SqlDataReader dr = AppDAL.RoomSearch(searchText))
     {
         LoadObjectsFromReader(dr);
     }
 }
示例#17
0
 public OPDInvestigationProcedureCollection()
 {
     using (SqlDataReader dr = AppDAL.OPDInvestigationProcedureSelectAll())
     {
         LoadObjectsFromReader(dr);
     }
 }
示例#18
0
 public OPDMedicines(Guid PrescriptionProcedureGuid)
 {
     using (SqlDataReader dr = AppDAL.OPDPrescriptionProcedureMedicineSelectAll(PrescriptionProcedureGuid))
     {
         LoadObjectsFromReader(dr);
     }
 }
示例#19
0
        //public PatientBillCollection()
        //{
        //    using (SqlDataReader dr = AppDAL.PatientSelectAll())
        //    {
        //        LoadObjectsFromReader(dr);
        //    }
        //}

        #endregion

        #region PatientCollection
        public PatientBillCollection(string searchText)
        {
            using (SqlDataReader dr = AppDAL.PatientBillSearch(searchText))
            {
                LoadObjectsFromReader(dr);
            }
        }
 public PatientMedicineSaleCollection(Guid billGuid)
 {
     using (SqlDataReader dr = AppDAL.PatientMedicineSaleSearchByBill(billGuid))
     {
         LoadObjectsFromReader(dr);
     }
 }
示例#21
0
 public LabInvestigationCollection(Guid LabInvestigationGuid)
 {
     using (SqlDataReader dr = AppDAL.LabInvestigationSelect(LabInvestigationGuid))
     {
         LoadObjectsFromReader(dr);
     }
 }
 public OPDPrescriptionCollection()
 {
     using (SqlDataReader dr = AppDAL.OPDPrescriptionSelectAll())
     {
         LoadObjectsFromReader(dr);
     }
 }
示例#23
0
 public FieldPermissions(Guid userRoleGuid, Guid fieldGuid)
 {
     using (SqlDataReader dr = AppDAL.FieldPermssionSelect(userRoleGuid, fieldGuid))
     {
         LoadObjectsFromReader(dr);
     }
 }
 public OPDPrescriptionCollection(Guid PatientGuid)
 {
     using (SqlDataReader dr = AppDAL.OPDPrescriptionSearch(PatientGuid))
     {
         LoadObjectsFromReader(dr);
     }
 }
示例#25
0
 public Treatments()
 {
     using (SqlDataReader dr = AppDAL.TreatmentSelectAll())
     {
         LoadObjectsFromReader(dr);
     }
 }
 public OPDChiefComplains(Guid historyProcedureGuid)
 {
     using (SqlDataReader dr = AppDAL.OPDHistoryProcedureChiefComplainSelectAll(historyProcedureGuid))
     {
         LoadObjectsFromReader(dr);
     }
 }
示例#27
0
 public Permissions()
 {
     using (SqlDataReader dr = AppDAL.PermissionSelectAll())
     {
         LoadObjectsFromReader(dr);
     }
 }
示例#28
0
 public MedicineSaleCollection(string searchText)
 {
     using (SqlDataReader dr = AppDAL.MedicineSaleSearch(searchText))
     {
         LoadObjectsFromReader(dr);
     }
 }
示例#29
0
 public Permissions(UserRole userRole)
 {
     if (!Objectbase.IsNullOrEmpty(userRole))
     {
         this.mUserRole = userRole;
         using (SqlDataReader dr = AppDAL.PermssionSelect_AllEntityByUser(userRole.ObjectGuid))
         {
             if (dr != null)
             {
                 while (dr.Read())
                 {
                     Permission obj = null;
                     if (AppShared.IsNull(dr[Permission.Columns.PermissionEntityGuid]))
                     {
                         Entity entity = new Entity();
                         if (entity.Populate(dr))
                         {
                             obj = new Permission(userRole, entity);
                             this.Add(obj);
                         }
                     }
                     else
                     {
                         obj = new Permission();
                         if (obj.Populate(dr))
                         {
                             this.Add(obj);
                         }
                     }
                 }
             }
         }
     }
 }
示例#30
0
 public Procedures(string searchText)
 {
     using (SqlDataReader dr = AppDAL.ProcedureSearch(searchText))
     {
         LoadObjectsFromReader(dr);
     }
 }