|
@@ -38,7 +38,7 @@ namespace fis
|
|
|
/// 副窗口Token过期时,关闭第二窗口,通知主窗口退出登录
|
|
|
/// </summary>
|
|
|
public void CloseSlaveWindow() {
|
|
|
- var manager = AppManager.Get<ISecondaryScreenManager>();
|
|
|
+ var manager = AppManager.Get<ISecondaryWindowManager>();
|
|
|
var window = manager.SlaveWindow;
|
|
|
if (window != null)
|
|
|
{
|
|
@@ -62,7 +62,7 @@ namespace fis
|
|
|
dictionary.Add("patientCode", patientCode);
|
|
|
dictionary.Add("remedicalCode", remedicalCode);
|
|
|
dictionary.Add("recordCode", recordCode);
|
|
|
- var manager = AppManager.Get<ISecondaryScreenManager>();
|
|
|
+ var manager = AppManager.Get<ISecondaryWindowManager>();
|
|
|
await manager.ShowWindowByTypeAsync(WindowType.Measure,"http://" + ShellConfig.Instance.AppHost + "/#/measure/measure_home", dictionary);
|
|
|
return true;
|
|
|
}
|
|
@@ -82,7 +82,7 @@ namespace fis
|
|
|
dictionary.Add("reportCode", reportCode);
|
|
|
dictionary.Add("recordCode", recordCode);
|
|
|
dictionary.Add("referralRecordCode", referralRecordCode);
|
|
|
- var manager = AppManager.Get<ISecondaryScreenManager>();
|
|
|
+ var manager = AppManager.Get<ISecondaryWindowManager>();
|
|
|
manager.ShowWindowByTypeAsync(WindowType.ReportEdit, "http://" + ShellConfig.Instance.AppHost + "/#/remedical/report/report_edit", dictionary).GetAwaiter().GetResult();
|
|
|
return true;
|
|
|
}
|
|
@@ -100,7 +100,7 @@ namespace fis
|
|
|
dictionary.Add("token", token);
|
|
|
dictionary.Add("reportCode", reportCode);
|
|
|
dictionary.Add("recordCode", recordCode);
|
|
|
- var manager = AppManager.Get<ISecondaryScreenManager>();
|
|
|
+ var manager = AppManager.Get<ISecondaryWindowManager>();
|
|
|
manager.ShowWindowByTypeAsync(WindowType.ReportEdit, "http://" + ShellConfig.Instance.AppHost + "/#/remedical/report/report_edit", dictionary).GetAwaiter().GetResult();
|
|
|
return true;
|
|
|
}
|
|
@@ -111,7 +111,7 @@ namespace fis
|
|
|
/// <returns></returns>
|
|
|
public bool OpenReportDesigner(string templateId, string name, string type, string token)
|
|
|
{
|
|
|
- var manager = AppManager.Get<ISecondaryScreenManager>();
|
|
|
+ var manager = AppManager.Get<ISecondaryWindowManager>();
|
|
|
var dictionary = new Dictionary<string, string>();
|
|
|
dictionary.Add("templateId", templateId);
|
|
|
dictionary.Add("templateName", name);
|
|
@@ -130,7 +130,7 @@ namespace fis
|
|
|
/// <param name="templateJson"></param>
|
|
|
public void SaveReportTemplate(string templateId, string name, string useObject, string templateJson)
|
|
|
{
|
|
|
- var manager = AppManager.Get<ISecondaryScreenManager>();
|
|
|
+ var manager = AppManager.Get<ISecondaryWindowManager>();
|
|
|
var window = manager.SlaveWindow;
|
|
|
var args = new List<string>();
|
|
|
args.Add(templateId);
|
|
@@ -232,7 +232,7 @@ namespace fis
|
|
|
//
|
|
|
}
|
|
|
|
|
|
- public virtual async Task<int> GetWindowStateAsync(string windowName)
|
|
|
+ public virtual int GetWindowStateAsync(string windowName)
|
|
|
{
|
|
|
return 0;
|
|
|
}
|