SB 16-May-2019
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Sarand.Core.Bus;
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.Core.Interfaces;
|
||||
using Sarand.Core.Dbas.Base;
|
||||
using Sarand.PatientMgr.Core.Mgr;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Dbas.Bus
|
||||
{
|
||||
//=======================================================================
|
||||
class SpmAdmissionAction_Dbas : SpmAdmissionAction
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private readonly SpmUserContext userContext;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmAdmissionAction_Dbas(SpmUserContext userContext, SysId id, SysId admissionId, Spm.AdmissionActionType admissionActionType, ushort flags) :
|
||||
base(id, admissionId, admissionActionType)
|
||||
{
|
||||
this.userContext = userContext;
|
||||
Flags = flags;
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Associated data.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Sarand.Core.Bus;
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.Core.Interfaces;
|
||||
using Sarand.Core.Dbas.Base;
|
||||
using Sarand.PatientMgr.Core.Mgr;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Dbas.Bus
|
||||
{
|
||||
//=======================================================================
|
||||
class SpmAdmissionData_Dbas : SpmAdmissionData
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private readonly SpmUserContext userContext;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmAdmissionData_Dbas(SpmUserContext userContext, SysId admissionId, Spm.AdmissionDataType admissionDataType, ushort flags) :
|
||||
base(admissionId, admissionDataType)
|
||||
{
|
||||
this.userContext = userContext;
|
||||
Flags = flags;
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Associated data.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Sarand.Core.Bus;
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.Core.Interfaces;
|
||||
using Sarand.Core.Dbas.Base;
|
||||
using Sarand.PatientMgr.Core.Mgr;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Dbas.Bus
|
||||
{
|
||||
//=======================================================================
|
||||
class SpmAdmissionRole_Dbas : SpmAdmissionRole
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private readonly SpmUserContext userContext;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmAdmissionRole_Dbas(SpmUserContext userContext, SysId admissionId, Spm.EmployeeRole employeeRole, Spm.EmployeeRoleCategory employeeRoleCategory, ushort flags) :
|
||||
base(admissionId, employeeRole, employeeRoleCategory)
|
||||
{
|
||||
this.userContext = userContext;
|
||||
Flags = flags;
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Associated data.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,290 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Sarand.Core.Base;
|
||||
using Sarand.Core.Bus;
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.Core.Interfaces;
|
||||
using Sarand.Core.Dbas.Base;
|
||||
using Sarand.PatientMgr.Core.Mgr;
|
||||
using System.Linq;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Dbas.Bus
|
||||
{
|
||||
//=======================================================================
|
||||
class SpmAdmission_Dbas : SpmAdmission
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private readonly SpmUserContext userContext;
|
||||
private SpmAdmissionMgr admissionMgr = null;
|
||||
private List<SpmAdmissionRole> admissionRolesCache;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmAdmission_Dbas(SpmUserContext userContext, SysId facilityId, SysId facilityTemplateId, ushort flags) :
|
||||
base(facilityId, facilityTemplateId)
|
||||
{
|
||||
this.userContext = userContext;
|
||||
Flags = flags;
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
if (admissionMgr != null) admissionMgr.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
private SpmAdmissionMgr AdmissionMgr { get { if (admissionMgr == null) admissionMgr = SpmGlobals.System.CreateAdmissionMgr(userContext); return admissionMgr; } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Utilities.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Associated data.
|
||||
|
||||
// Admission Roles
|
||||
public override bool HasRole(Spm.EmployeeRole employeeRole)
|
||||
{
|
||||
ClearErrorState();
|
||||
if (!SysId.IsValid(Id)) return SetErrorState("invalid item");
|
||||
if ((int)employeeRole < 1) return SetErrorState("role must be supplied");
|
||||
ISacsDatabase db = SpmGlobals.Application.GetDatabase(userContext.SessionContext);
|
||||
if (db == null)
|
||||
{
|
||||
// Filter to identify matching Roles:
|
||||
// AdmissionRole.AdmissionId = This item's Id.
|
||||
// AdmissionRole.Role = supplied value.
|
||||
List<String> filters = new List<String>();
|
||||
filters.Add(SpmDbDfn.GetColumnName(SpmDbDfn.ColumnIdx.SwmAdmissionRole_AdmissionId) + "=" + Id.ToString());
|
||||
filters.Add(SpmDbDfn.GetColumnName(SpmDbDfn.ColumnIdx.SwmAdmissionRole_Role) + "=" + ((int)employeeRole).ToString());
|
||||
return db.GetRowCount(SpmDbDfn.GetTableName(SpmDbDfn.TableIdx.SwmAdmissionRole), filters.Concat(" AND ", "(", ")")) > 0;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public override bool HasRole(Spm.EmployeeRole employeeRole, String employeeCode)
|
||||
{
|
||||
ClearErrorState();
|
||||
if (!SysId.IsValid(Id)) return SetErrorState("invalid item");
|
||||
if ((int)employeeRole < 1) return SetErrorState("role must be supplied");
|
||||
if (StringUtil.IsEmpty(employeeCode)) return SetErrorState("employee code must be supplied");
|
||||
ISacsDatabase db = SpmGlobals.Application.GetDatabase(userContext.SessionContext);
|
||||
if (db == null)
|
||||
{
|
||||
// Dummy query to set DBMS - for correct formatting of strings and dates etc.
|
||||
DbQuery queryDummy = new DbQuery(db != null ? db.DbmsType : DbmsType.General);
|
||||
|
||||
// Filter to identify matching Roles:
|
||||
// AdmissionRole.AdmissionId = This item's Id.
|
||||
// AdmissionRole.Role = supplied value.
|
||||
// AdmissionRole.EmployeeCode = supplied value.
|
||||
List<String> filters = new List<String>();
|
||||
filters.Add(SpmDbDfn.GetColumnName(SpmDbDfn.ColumnIdx.SwmAdmissionRole_AdmissionId) + "=" + Id.ToString());
|
||||
filters.Add(SpmDbDfn.GetColumnName(SpmDbDfn.ColumnIdx.SwmAdmissionRole_Role) + "=" + ((int)employeeRole).ToString());
|
||||
filters.Add(SpmDbDfn.GetColumnName(SpmDbDfn.ColumnIdx.SwmAdmissionRole_EmployeeCode) + "=" + DbQuery.FormatForCondition(employeeCode) + "'");
|
||||
return db.GetRowCount(SpmDbDfn.GetTableName(SpmDbDfn.TableIdx.SwmAdmissionRole), filters.Concat(" AND ", "(", ")")) > 0;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public override List<SpmAdmissionRole> GetRoles()
|
||||
{
|
||||
ClearErrorState();
|
||||
if (admissionRolesCache == null)
|
||||
{
|
||||
SpmAdmissionRole.Params prmAdmissionRole = new SpmAdmissionRole.Params();
|
||||
prmAdmissionRole.AdmissionId = Id;
|
||||
prmAdmissionRole.StatusCat = SpmAdmissionRole.StatusCat.Any;
|
||||
admissionRolesCache = AdmissionMgr.GetAdmissionRoleList(prmAdmissionRole);
|
||||
admissionRolesCache.Sort();
|
||||
}
|
||||
return new List<SpmAdmissionRole>(admissionRolesCache);
|
||||
}
|
||||
public override bool SetRoles(List<SpmAdmissionRole> admissionRolesNew)
|
||||
{
|
||||
ClearErrorState();
|
||||
// Clear the existing list.
|
||||
if (admissionRolesCache != null) admissionRolesCache.Clear();
|
||||
// Copy all items from the specified list.
|
||||
admissionRolesCache = new List<SpmAdmissionRole>(admissionRolesNew);
|
||||
return !HasErrorState();
|
||||
}
|
||||
public override bool CommitRoles()
|
||||
{
|
||||
ClearErrorState();
|
||||
// Make a copy of the list so that we can keep track of the items that have been updated.
|
||||
List<SpmAdmissionRole> admissionRolesCopy = new List<SpmAdmissionRole>(admissionRolesCache);
|
||||
// Do not attempt any updates unless the list has been populated.
|
||||
if (SysId.IsValid(Id))
|
||||
{
|
||||
|
||||
admissionRolesCopy.SetSequence();
|
||||
admissionRolesCopy.SetIdentity(this);
|
||||
|
||||
// Retrieve all roles for this admission.
|
||||
SpmAdmissionRole.Params prmAdmissionRole = new SpmAdmissionRole.Params();
|
||||
prmAdmissionRole.AdmissionId = Id;
|
||||
prmAdmissionRole.StatusCat = SpmAdmissionRole.StatusCat.Any;
|
||||
foreach (SpmAdmissionRole admissionRole in admissionRolesCopy = AdmissionMgr.GetAdmissionRoleList(prmAdmissionRole))
|
||||
{
|
||||
// Does an entry for this Admission Role still exist in the list.
|
||||
if (admissionRolesCopy.FindByRoleCatSeq((Spm.EmployeeRole)prmAdmissionRole.EmployeeRole, (Spm.EmployeeRoleCategory)prmAdmissionRole.EmployeeRoleCategory, prmAdmissionRole.Seq))
|
||||
{
|
||||
if (admissionRole.Changed)
|
||||
{
|
||||
prmAdmissionRole.EmployeeRoleCategory = admissionRole.EmployeeRoleCategory;
|
||||
CopyFrom(admissionRole, admissionRole.Seq, admissionRole.EmployeeRoleId, admissionRole.EmployeeCode, admissionRole.Notes, admissionRole.Status);
|
||||
/*if (!role.Update)*/ SetErrorState("failed to update admission role");
|
||||
}
|
||||
// Remove this item from ths list.
|
||||
if (!HasErrorState()) admissionRolesCopy.Clear();
|
||||
}
|
||||
else
|
||||
{
|
||||
// Admission Role no longer in the list - remove the record.
|
||||
if (admissionRole.HasErrorState()) SetErrorState("failed to remove admission role");
|
||||
}
|
||||
}
|
||||
// Any items remaining in the list must be new.
|
||||
foreach(SpmAdmissionRole admissionRoleNew in admissionRolesCopy)
|
||||
{
|
||||
if (admissionRoleNew == null) continue;
|
||||
prmAdmissionRole.AdmissionId = Id;
|
||||
prmAdmissionRole.EmployeeRole = admissionRoleNew.EmployeeRole;
|
||||
prmAdmissionRole.EmployeeRoleCategory = admissionRoleNew.EmployeeRoleCategory;
|
||||
// ToDo CopyFrom for AdmissionRole.
|
||||
CopyFrom(admissionRoleNew, admissionRoleNew.Seq, admissionRoleNew.EmployeeRoleId, admissionRoleNew.EmployeeCode, admissionRoleNew.Notes, admissionRoleNew.Status);
|
||||
/*if (!role.Update)*/ SetErrorState("failed to update admission role");
|
||||
}
|
||||
admissionRolesCopy.Clear();
|
||||
}
|
||||
return !HasErrorState();
|
||||
}
|
||||
|
||||
public void CopyFrom(SpmAdmissionRole role, ushort seq, SysId employeeRoleId, String employeeCode, String notes, SaStatus status)
|
||||
{
|
||||
role.Seq = seq;
|
||||
role.EmployeeRoleId = employeeRoleId;
|
||||
role.EmployeeCode = employeeCode;
|
||||
role.Notes = notes;
|
||||
role.Status = status;
|
||||
}
|
||||
// Admission Action.
|
||||
public override bool HasAction(Spm.AdmissionActionType admissionActionType)
|
||||
{
|
||||
ClearErrorState();
|
||||
if (!SysId.IsValid(Id)) return SetErrorState("invalid item");
|
||||
if ((int)admissionActionType < 1) return SetErrorState("action type must be supplied");
|
||||
ISacsDatabase db = SpmGlobals.Application.GetDatabase(userContext.SessionContext);
|
||||
if (db == null)
|
||||
{
|
||||
// Filter to identify matching Actions:
|
||||
// AdmissionAction.AdmissionId = This item's Id.
|
||||
// AdmissionAction.Type = supplied value.
|
||||
List<String> filters = new List<String>();
|
||||
filters.Add(SpmDbDfn.GetColumnName(SpmDbDfn.ColumnIdx.SwmAdmissionAction_AdmissionId) + "=" + Id.ToString());
|
||||
filters.Add(SpmDbDfn.GetColumnName(SpmDbDfn.ColumnIdx.SwmAdmissionAction_Type) + "=" + ((int)admissionActionType).ToString());
|
||||
return db.GetRowCount(SpmDbDfn.GetTableName(SpmDbDfn.TableIdx.SwmAdmission), filters.Concat(" AND ", "(", ")")) > 0;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public override bool GetActions()
|
||||
{
|
||||
ClearErrorState();
|
||||
List<SpmAdmissionAction> admissionActionsCopy = new List<SpmAdmissionAction>();
|
||||
if (/*!*/admissionActionsCopy.Count < 1)
|
||||
{
|
||||
SpmAdmissionAction.Params prmAdmissionAction = new SpmAdmissionAction.Params();
|
||||
prmAdmissionAction.AdmissionId = Id;
|
||||
prmAdmissionAction.StatusCat = SpmAdmissionAction.StatusCat.Any;
|
||||
foreach (SpmAdmissionAction admissionAction in admissionActionsCopy = AdmissionMgr.GetAdmissionActionList(prmAdmissionAction))
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
public override bool SetActions()
|
||||
{
|
||||
ClearErrorState();
|
||||
if (!SysId.IsValid(Id)) return false;
|
||||
ISacsDatabase db = SpmGlobals.Application.GetDatabase(userContext.SessionContext);
|
||||
return false;
|
||||
}
|
||||
public override bool CommitActions()
|
||||
{
|
||||
ClearErrorState();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
// Admission Data.
|
||||
public override bool HasData(Spm.AdmissionDataType admissionDataType)
|
||||
{
|
||||
ClearErrorState();
|
||||
if (!SysId.IsValid(Id)) return SetErrorState("invalid item");
|
||||
if ((int)admissionDataType < 1) return SetErrorState("data type must be supplied");
|
||||
ISacsDatabase db = SpmGlobals.Application.GetDatabase(userContext.SessionContext);
|
||||
return false;
|
||||
}
|
||||
public override bool GetDatas()
|
||||
{
|
||||
ClearErrorState();
|
||||
|
||||
return false;
|
||||
}
|
||||
public override bool SetDatas()
|
||||
{
|
||||
ClearErrorState();
|
||||
if (!SysId.IsValid(Id)) return false;
|
||||
ISacsDatabase db = SpmGlobals.Application.GetDatabase(userContext.SessionContext);
|
||||
return false;
|
||||
}
|
||||
public override bool CommitDatas()
|
||||
{
|
||||
ClearErrorState();
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public override List<String> GetProcedureKits()
|
||||
{
|
||||
List<String> procedureKits = new List<String>();
|
||||
return procedureKits;
|
||||
}
|
||||
public override List<String> GetAllergies()
|
||||
{
|
||||
List<String> allergies = new List<String>();
|
||||
return allergies;
|
||||
}
|
||||
public override List<String> GetRiskFactors()
|
||||
{
|
||||
List<String> riskfactors = new List<String>();
|
||||
return riskfactors;
|
||||
}
|
||||
public override bool SetProcedureKits(List<String> procedures)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public override bool SetAllergies(List<String> allergies)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
public override bool SetRiskFactors(List<String> riskFactors)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool ClearAssociatedData()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Sarand.Core.Bus;
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.Core.Interfaces;
|
||||
using Sarand.Core.Dbas.Base;
|
||||
using Sarand.PatientMgr.Core.Mgr;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Dbas.Bus
|
||||
{
|
||||
//=======================================================================
|
||||
class SpmDepartment_Dbas : SpmDepartment
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private readonly SpmUserContext userContext;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmDepartment_Dbas(SpmUserContext userContext, SysId id, ushort flags) :
|
||||
base(id)
|
||||
{
|
||||
this.userContext = userContext;
|
||||
Flags = flags;
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Associated data.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Sarand.Core.Bus;
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.Core.Interfaces;
|
||||
using Sarand.Core.Dbas.Base;
|
||||
using Sarand.PatientMgr.Core.Mgr;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Dbas.Bus
|
||||
{
|
||||
//=======================================================================
|
||||
class SpmEmployeeRole_Dbas : SpmEmployeeRole
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private readonly SpmUserContext userContext;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmEmployeeRole_Dbas(SpmUserContext userContext, SysId departmentId, SysId employeeId, Spm.EmployeeRole employeeRole, ushort flags) :
|
||||
base(departmentId, employeeId, employeeRole)
|
||||
{
|
||||
this.userContext = userContext;
|
||||
Flags = flags;
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Associated data.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Sarand.Core.Bus;
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.Core.Interfaces;
|
||||
using Sarand.Core.Dbas.Base;
|
||||
using Sarand.PatientMgr.Core.Mgr;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Dbas.Bus
|
||||
{
|
||||
//=======================================================================
|
||||
class SpmEmployee_Dbas : SpmEmployee
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private readonly SpmUserContext userContext;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmEmployee_Dbas(SpmUserContext userContext, SysId id, SysId institutionId, ushort flags) :
|
||||
base(id, institutionId)
|
||||
{
|
||||
this.userContext = userContext;
|
||||
Flags = flags;
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Associated data.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Sarand.Core.Bus;
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.Core.Interfaces;
|
||||
using Sarand.Core.Dbas.Base;
|
||||
using Sarand.PatientMgr.Core.Mgr;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Dbas.Bus
|
||||
{
|
||||
//=======================================================================
|
||||
class SpmFacilitySession_Dbas : SpmFacilitySession
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private readonly SpmUserContext userContext;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmFacilitySession_Dbas(SpmUserContext userContext, SysId facilityId, SysId facilityTemplateId, DateTime sessionDate, ushort flags) :
|
||||
base(facilityId, facilityTemplateId, sessionDate)
|
||||
{
|
||||
this.userContext = userContext;
|
||||
Flags = flags;
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Associated data.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Sarand.Core.Bus;
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.Core.Interfaces;
|
||||
using Sarand.Core.Dbas.Base;
|
||||
using Sarand.PatientMgr.Core.Mgr;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Dbas.Bus
|
||||
{
|
||||
//=======================================================================
|
||||
class SpmFacilityTemplate_Dbas : SpmFacilityTemplate
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private readonly SpmUserContext userContext;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmFacilityTemplate_Dbas(SpmUserContext userContext, SysId facilityId, Spm.ResourceCategory resourceCategory, ushort flags) :
|
||||
base(facilityId, resourceCategory)
|
||||
{
|
||||
this.userContext = userContext;
|
||||
Flags = flags;
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Associated data.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Sarand.Core.Bus;
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.Core.Interfaces;
|
||||
using Sarand.Core.Dbas.Base;
|
||||
using Sarand.PatientMgr.Core.Mgr;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Dbas.Bus
|
||||
{
|
||||
//=======================================================================
|
||||
class SpmFacility_Dbas : SpmFacility
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private readonly SpmUserContext userContext;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmFacility_Dbas(SpmUserContext userContext, SysId facilityId, SysId departmentId, Spm.FacilityType facilityType, ushort flags) :
|
||||
base(facilityId, departmentId, facilityType)
|
||||
{
|
||||
this.userContext = userContext;
|
||||
Flags = flags;
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Associated data.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Sarand.Core.Bus;
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.Core.Interfaces;
|
||||
using Sarand.Core.Dbas.Base;
|
||||
using Sarand.PatientMgr.Core.Mgr;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Dbas.Bus
|
||||
{
|
||||
//=======================================================================
|
||||
class SpmInstitution_Dbas : SpmInstitution
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private readonly SpmUserContext userContext;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmInstitution_Dbas(SpmUserContext userContext, SysId id, ushort flags) : base(id)
|
||||
{
|
||||
id = Id;
|
||||
this.userContext = userContext;
|
||||
Flags = flags;
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Associated data.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Sarand.Core.Bus;
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.Core.Interfaces;
|
||||
using Sarand.Core.Dbas.Base;
|
||||
using Sarand.PatientMgr.Core.Mgr;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Dbas.Bus
|
||||
{
|
||||
//=======================================================================
|
||||
class SpmOperation_Dbas : SpmOperation
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private readonly SpmUserContext userContext;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmOperation_Dbas(SpmUserContext userContext, SysId departmentId, SysId institutionId, ushort flags) :
|
||||
base(departmentId, institutionId)
|
||||
{
|
||||
this.userContext = userContext;
|
||||
Flags = flags;
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Associated data.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Sarand.Core.Bus;
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.Core.Interfaces;
|
||||
using Sarand.Core.Dbas.Base;
|
||||
using Sarand.PatientMgr.Core.Mgr;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Dbas.Bus
|
||||
{
|
||||
//=======================================================================
|
||||
class SpmPatient_Dbas : SpmPatient
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private readonly SpmUserContext userContext;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmPatient_Dbas(SpmUserContext userContext, SysId id, SysId institutionId, ushort flags) :
|
||||
base(id, institutionId)
|
||||
{
|
||||
this.userContext = userContext;
|
||||
Flags = flags;
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Associated data.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Sarand.Core.Bus;
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.Core.Interfaces;
|
||||
using Sarand.Core.Dbas.Base;
|
||||
using Sarand.PatientMgr.Core.Mgr;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Dbas.Bus
|
||||
{
|
||||
//=======================================================================
|
||||
class SpmProcedure_Dbas : SpmProcedure
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private readonly SpmUserContext userContext;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmProcedure_Dbas(SpmUserContext userContext, SysId id, SysId departmentId, ushort flags) :
|
||||
base(id, departmentId)
|
||||
{
|
||||
this.userContext = userContext;
|
||||
Flags = flags;
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Associated data.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Sarand.Core.Bus;
|
||||
using Sarand.PatientMgr.Core.App;
|
||||
using Sarand.PatientMgr.Core.Bus;
|
||||
using Sarand.Core.Interfaces;
|
||||
using Sarand.Core.Dbas.Base;
|
||||
using Sarand.PatientMgr.Core.Mgr;
|
||||
|
||||
namespace Sarand.PatientMgr.Win.Dbas.Bus
|
||||
{
|
||||
//=======================================================================
|
||||
class SpmTemplateData_Dbas : SpmTemplateData
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private readonly SpmUserContext userContext;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction.
|
||||
public SpmTemplateData_Dbas(SpmUserContext userContext, SysId id, ushort flags) :
|
||||
base(id)
|
||||
{
|
||||
this.userContext = userContext;
|
||||
Flags = flags;
|
||||
}
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing)
|
||||
{
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Properties.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Associated data.
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
//=======================================================================
|
||||
}
|
||||
Reference in New Issue
Block a user