-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged PR 912: merge beta 2019-02-08 to master
merge beta 2019-02-08 to master Related work items: #614
- Loading branch information
Showing
216 changed files
with
10,968 additions
and
4,155 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
IQCare.CCC/BusinessProcess.CCC/ClinicalSummary/BPharmacyHistoryDrugSubstitutionsSwitches.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Data; | ||
using DataAccess.Base; | ||
using DataAccess.Common; | ||
using DataAccess.Entity; | ||
using Interface.CCC.ClinicalSummary; | ||
|
||
namespace BusinessProcess.CCC.ClinicalSummary | ||
{ | ||
public class BPharmacyHistoryDrugSubstitutionsSwitches : ProcessBase, IPharmacyHistoryDrugSubstitutionsSwitches | ||
{ | ||
public List<PharmacyHistory> GetPharmacyDrugsSubstitutionsSwitchesData(int ptn_pk) | ||
{ | ||
List<PharmacyHistory> dataList = new List<PharmacyHistory>(); | ||
ClsObject obj = new ClsObject(); | ||
ClsUtility.Init_Hashtable(); | ||
ClsUtility.AddExtendedParameters("@ptn_pk", SqlDbType.Int, ptn_pk); | ||
|
||
DataTable dt = (DataTable)obj.ReturnObject(ClsUtility.theParams, "Pharmacy_History", ClsUtility.ObjectEnum.DataTable); | ||
if (dt != null && dt.Rows.Count > 0) | ||
{ | ||
foreach (DataRow dataRow in dt.Rows) | ||
{ | ||
var dispensedByDate = dataRow["DispensedByDate"]; | ||
var regimentype = dataRow["regimentype"]; | ||
|
||
dataList.Add(new PharmacyHistory() | ||
{ | ||
DispensedByDate = DateTime.Parse(dispensedByDate.ToString()), | ||
regimentype = regimentype.ToString() | ||
}); | ||
} | ||
} | ||
|
||
return dataList; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
IQCare.CCC/IQCare.CCC.UILogic/PharmacyHistoryDrugSubstitutionsManager.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Application.Presentation; | ||
using Interface.CCC.ClinicalSummary; | ||
|
||
namespace IQCare.CCC.UILogic | ||
{ | ||
public class PharmacyHistoryDrugSubstitutionsManager | ||
{ | ||
IPharmacyHistoryDrugSubstitutionsSwitches _mgr = (IPharmacyHistoryDrugSubstitutionsSwitches)ObjectFactory.CreateInstance("BusinessProcess.CCC.ClinicalSummary.BPharmacyHistoryDrugSubstitutionsSwitches, BusinessProcess.CCC"); | ||
|
||
public List<PharmacyHistory> GetPharmacyDrugsSubstitutionsSwitchesData(int ptn_pk) | ||
{ | ||
try | ||
{ | ||
return _mgr.GetPharmacyDrugsSubstitutionsSwitchesData(ptn_pk); | ||
} | ||
catch (Exception ex) | ||
{ | ||
throw ex; | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.