public void LoadMyRecordByConfig(string strConfig) { try { if (string.IsNullOrWhiteSpace(strConfig)) { hideLoadingBar(); HtmlPage.Window.Invoke("loadCompletedSL", "Invoke"); return; } SMT.SAAS.Platform.WebParts.Views.MVCPendingTaskManager pendingTaskView = new WebParts.Views.MVCPendingTaskManager("", "open"); pendingTaskView.isMyrecord = true; pendingTaskView.applicationUrl = strConfig; if (ViewModel.Context.MainPanel != null) { if (ViewModel.Context.MainPanel.DefaultContent != null) { IWebpart webpart = ViewModel.Context.MainPanel.DefaultContent as IWebpart; if (webpart != null) { webpart.Stop(); } } ViewModel.Context.MainPanel.Navigation(pendingTaskView, "我的单据"); } // SMT.SAAS.Platform.WebParts.Views.MyRecord myRecordView = new WebParts.Views.MyRecord(); // myRecordView.ShowMyRecord(strConfig); } catch (Exception ex) { } finally { hideLoadingBar(); HtmlPage.Window.Invoke("loadCompletedSL", "Invoke"); } }
/// <summary> /// 打开我的单据 /// </summary> /// <param name="strConfig"></param> private void LoadMyRecord(string strConfig) { try { if (string.IsNullOrWhiteSpace(strConfig)) { return; } SMT.SAAS.Platform.WebParts.Views.MVCPendingTaskManager pendingTaskView = new WebParts.Views.MVCPendingTaskManager("", "open"); pendingTaskView.isMyrecord = true; pendingTaskView.applicationUrl = strConfig; if (ViewModel.Context.MainPanel != null) { if (ViewModel.Context.MainPanel.DefaultContent != null) { IWebpart webpart = ViewModel.Context.MainPanel.DefaultContent as IWebpart; if (webpart != null) { webpart.Stop(); } } ViewModel.Context.MainPanel.Navigation(pendingTaskView, "我的单据"); } } catch (Exception ex) { string message = string.Format("打开模块'{0}'失败,请联系管理员!", ex.ToString()); AppContext.SystemMessage(message); AppContext.ShowSystemMessageText(); } finally { hideLoadingBar(); HtmlPage.Window.Invoke("loadCompletedSL", "Invoke"); } }
/// <summary> /// 打开我的单据 /// </summary> /// <param name="strConfig"></param> private void LoadMyRecord(string strConfig) { try { if (string.IsNullOrWhiteSpace(strConfig)) { return; } SMT.SAAS.Platform.WebParts.Views.MVCPendingTaskManager pendingTaskView = new WebParts.Views.MVCPendingTaskManager("", "open"); pendingTaskView.isMyrecord = true; pendingTaskView.applicationUrl = strConfig; if (ViewModel.Context.MainPanel != null) { if (ViewModel.Context.MainPanel.DefaultContent != null) { IWebpart webpart = ViewModel.Context.MainPanel.DefaultContent as IWebpart; if (webpart != null) webpart.Stop(); } ViewModel.Context.MainPanel.Navigation(pendingTaskView, "我的单据"); } } catch (Exception ex) { string message = string.Format("打开模块'{0}'失败,请联系管理员!", ex.ToString()); AppContext.SystemMessage(message); AppContext.ShowSystemMessageText(); } finally { hideLoadingBar(); HtmlPage.Window.Invoke("loadCompletedSL", "Invoke"); } }
public void LoadMyRecordByConfig(string strConfig) { try { if (string.IsNullOrWhiteSpace(strConfig)) { hideLoadingBar(); HtmlPage.Window.Invoke("loadCompletedSL", "Invoke"); return; } SMT.SAAS.Platform.WebParts.Views.MVCPendingTaskManager pendingTaskView = new WebParts.Views.MVCPendingTaskManager("", "open"); pendingTaskView.isMyrecord = true; pendingTaskView.applicationUrl = strConfig; if (ViewModel.Context.MainPanel != null) { if (ViewModel.Context.MainPanel.DefaultContent != null) { IWebpart webpart = ViewModel.Context.MainPanel.DefaultContent as IWebpart; if (webpart != null) webpart.Stop(); } ViewModel.Context.MainPanel.Navigation(pendingTaskView, "我的单据"); } // SMT.SAAS.Platform.WebParts.Views.MyRecord myRecordView = new WebParts.Views.MyRecord(); // myRecordView.ShowMyRecord(strConfig); } catch (Exception ex) { } finally { hideLoadingBar(); HtmlPage.Window.Invoke("loadCompletedSL", "Invoke"); } }