public InvestigationProcedureCollection(string searchText) { using (SqlDataReader dr = AppDAL.InvestigationProcedureSearch(searchText)) { LoadObjectsFromReader(dr); } }
public InvestigationProcedureCollection(Guid InvestigationProcedureGuid) { using (SqlDataReader dr = AppDAL.InvestigationProcedureSelect(InvestigationProcedureGuid)) { LoadObjectsFromReader(dr); } }
public OPDInvestigationCollection(Guid OPDInvestigationGuid) { using (SqlDataReader dr = AppDAL.OPDInvestigationSelect(OPDInvestigationGuid)) { LoadObjectsFromReader(dr); } }
public OPDInvestigationCollection(string searchText) { using (SqlDataReader dr = AppDAL.OPDInvestigationSearch(searchText)) { LoadObjectsFromReader(dr); } }
protected override bool OpenRecord(Guid key) { bool r = false; using (SqlDataReader dr = AppDAL.InvestigationProcedureSelect(key)) r = dr != null && dr.Read() && this.Populate(dr); return(r); }
protected override bool UpdateRecord() { Guid modifiedBy = AppContext.UserGuid; DateTime modifiedOn; bool r = AppDAL.InvestigationProcedureUpdate(this.mObjectGuid, this.mMainInvestigationGUID, this.mLabInvestigationGUID, this.mRadiologyInvestigation, this.mSpecialInvestigation, this.mInvestigationProcedureDate, modifiedBy, out modifiedOn); if (r) { this.mModifiedByUser = modifiedBy; this.mModifiedOn = modifiedOn; } return(r); }
protected override bool InsertRecord() { Guid createdBy = AppContext.UserGuid; DateTime CreatedOn; bool r = AppDAL.InvestigationProcedureInsert(this.mObjectGuid, this.mMainInvestigationGUID, this.mLabInvestigationGUID, this.mRadiologyInvestigation, this.mSpecialInvestigation, this.mInvestigationProcedureDate, createdBy, out CreatedOn); if (r) { this.mCreatedByUser = createdBy; this.mCreatedOn = CreatedOn; this.mModifiedByUser = createdBy; this.mModifiedOn = CreatedOn; } return(r); }
protected override bool DeleteRecord() { return(AppDAL.InvestigationProcedureDelete(this.mObjectGuid)); }
protected override bool DeleteRecord() { return(AppDAL.OPDInvestigationDelete(this.mObjectGuid)); }