|
@@ -63,7 +63,7 @@ namespace fis
|
|
|
dictionary.Add("remedicalCode", remedicalCode);
|
|
|
dictionary.Add("recordCode", recordCode);
|
|
|
var manager = AppManager.Get<ISecondaryWindowManager>();
|
|
|
- await manager.ShowWindowByTypeAsync(WindowType.Measure,"http://" + ShellConfig.Instance.AppHost + "/#/measure/measure_home", dictionary);
|
|
|
+ await manager.ShowWindowByTypeAsync(WindowType.Measure, dictionary);
|
|
|
return true;
|
|
|
}
|
|
|
|
|
@@ -75,7 +75,7 @@ namespace fis
|
|
|
|
|
|
|
|
|
|
|
|
- public bool OpenReportEdit(string token, string patientCode, string reportCode, string recordCode,string referralRecordCode) {
|
|
|
+ public async Task<bool> OpenReportEdit(string token, string patientCode, string reportCode, string recordCode,string referralRecordCode) {
|
|
|
var dictionary = new Dictionary<string, string>();
|
|
|
dictionary.Add("token", token);
|
|
|
dictionary.Add("patientCode", patientCode);
|
|
@@ -83,7 +83,7 @@ namespace fis
|
|
|
dictionary.Add("recordCode", recordCode);
|
|
|
dictionary.Add("referralRecordCode", referralRecordCode);
|
|
|
var manager = AppManager.Get<ISecondaryWindowManager>();
|
|
|
- manager.ShowWindowByTypeAsync(WindowType.ReportEdit, "http://" + ShellConfig.Instance.AppHost + "/#/remedical/report/report_edit", dictionary).GetAwaiter().GetResult();
|
|
|
+ await manager.ShowWindowByTypeAsync(WindowType.ReportEdit, dictionary);
|
|
|
return true;
|
|
|
}
|
|
|
|
|
@@ -94,14 +94,14 @@ namespace fis
|
|
|
|
|
|
|
|
|
|
|
|
- public bool OpenReportPreview(string token, string reportCode, string recordCode)
|
|
|
+ public async Task<bool> OpenReportPreview(string token, string reportCode, string recordCode)
|
|
|
{
|
|
|
var dictionary = new Dictionary<string, string>();
|
|
|
dictionary.Add("token", token);
|
|
|
dictionary.Add("reportCode", reportCode);
|
|
|
dictionary.Add("recordCode", recordCode);
|
|
|
var manager = AppManager.Get<ISecondaryWindowManager>();
|
|
|
- manager.ShowWindowByTypeAsync(WindowType.ReportEdit, "http://" + ShellConfig.Instance.AppHost + "/#/remedical/report/report_edit", dictionary).GetAwaiter().GetResult();
|
|
|
+ await manager.ShowWindowByTypeAsync(WindowType.ReportEdit, dictionary);
|
|
|
return true;
|
|
|
}
|
|
|
|
|
@@ -109,15 +109,17 @@ namespace fis
|
|
|
|
|
|
|
|
|
|
|
|
- public bool OpenReportDesigner(string templateId, string name, string type, string token)
|
|
|
+ public async Task<bool> OpenReportDesigner(string templateId, string name, string type, string token,string json)
|
|
|
{
|
|
|
- var manager = AppManager.Get<ISecondaryWindowManager>();
|
|
|
+ var secondWindowManager = AppManager.Get<ISecondaryWindowManager>();
|
|
|
+ var reportTemplateCacheManager = AppManager.Get<IReportTemplateCacheManager>();
|
|
|
var dictionary = new Dictionary<string, string>();
|
|
|
dictionary.Add("templateId", templateId);
|
|
|
dictionary.Add("templateName", name);
|
|
|
dictionary.Add("templateType", type);
|
|
|
dictionary.Add("token", token);
|
|
|
- manager.ShowWindowByTypeAsync(WindowType.TemplateDesigner,"", dictionary);
|
|
|
+ reportTemplateCacheManager.SetTemplateJson(templateId, json);
|
|
|
+ await secondWindowManager.ShowWindowByTypeAsync(WindowType.TemplateDesigner, dictionary);
|
|
|
return true;
|
|
|
}
|
|
|
|