SVN r1102
SVN-Revision: r1102
This commit is contained in:
@@ -415,7 +415,38 @@ namespace Lskj.BaseInfo
|
|||||||
//GridControlEx grdExMain = (tabPage.Tag as GridControlEx);
|
//GridControlEx grdExMain = (tabPage.Tag as GridControlEx);
|
||||||
//if (!isDetailAttach) grdExMain.LastSearchSql = sqlValue;
|
//if (!isDetailAttach) grdExMain.LastSearchSql = sqlValue;
|
||||||
//this.baseTab.SetGridDataSource(tabPage, this.ControlObj.ReplaceControlValue(sqlValue));
|
//this.baseTab.SetGridDataSource(tabPage, this.ControlObj.ReplaceControlValue(sqlValue));
|
||||||
if (tabPage.Tag is GridControlEx)
|
|
||||||
|
if (tabPage.Tag is ModuleWebView)
|
||||||
|
{
|
||||||
|
// 加载网页
|
||||||
|
string url = ReplaceHelper.ReplaceRowParam(this._currentControlSource, ReplaceHelper.ReplaceUserInfo(model.DetailSql));
|
||||||
|
url = url.StartsWith("http") ? url : SystemInfo.Instance.OAUrl + url;
|
||||||
|
ModuleWebView webView = tabPage.Tag as ModuleWebView;
|
||||||
|
webView.Dock = DockStyle.Fill;
|
||||||
|
webView.Tag = model;
|
||||||
|
webView.Navigate(url);
|
||||||
|
}
|
||||||
|
else if (tabPage.Tag is FrmWebBrowser)
|
||||||
|
{
|
||||||
|
// 加载网页
|
||||||
|
string url = ReplaceHelper.ReplaceRowParam(this._currentControlSource, ReplaceHelper.ReplaceUserInfo(model.DetailSql));
|
||||||
|
url = url.StartsWith("http") ? url : SystemInfo.Instance.OAUrl + url;
|
||||||
|
FrmWebBrowser webView = tabPage.Tag as FrmWebBrowser;
|
||||||
|
webView.Dock = DockStyle.Fill;
|
||||||
|
webView.Tag = model;
|
||||||
|
webView.LoadUrl(url);
|
||||||
|
}
|
||||||
|
else if (tabPage.Tag is FrmMiniBlink)
|
||||||
|
{
|
||||||
|
// 加载网页
|
||||||
|
string url = ReplaceHelper.ReplaceRowParam(this._currentControlSource, ReplaceHelper.ReplaceUserInfo(model.DetailSql));
|
||||||
|
url = url.StartsWith("http") ? url : SystemInfo.Instance.OAUrl + url;
|
||||||
|
FrmMiniBlink webView = tabPage.Tag as FrmMiniBlink;
|
||||||
|
webView.Dock = DockStyle.Fill;
|
||||||
|
webView.Tag = model;
|
||||||
|
webView.LoadUrl(url);
|
||||||
|
}
|
||||||
|
else if (tabPage.Tag is GridControlEx)
|
||||||
{
|
{
|
||||||
string sqlValue = isDetailAttach ? model.DetailSql : GetSearchSql(model);
|
string sqlValue = isDetailAttach ? model.DetailSql : GetSearchSql(model);
|
||||||
GridControlEx grdExMain = (tabPage.Tag as GridControlEx);
|
GridControlEx grdExMain = (tabPage.Tag as GridControlEx);
|
||||||
|
|||||||
Reference in New Issue
Block a user