SVN r533
SVN-Revision: r533
This commit is contained in:
@@ -73,7 +73,7 @@ namespace Lskj.PubAdd
|
|||||||
//this.SuspendLayout();
|
//this.SuspendLayout();
|
||||||
this.SysModel = new ModuleModel(MainImpl.GetSystemdllTab(this.Model.ModuleCode));
|
this.SysModel = new ModuleModel(MainImpl.GetSystemdllTab(this.Model.ModuleCode));
|
||||||
this.SysModel.ParmaryKey = BaseImpl.GetBasePrimaryKey(this.Model.ModuleCode);
|
this.SysModel.ParmaryKey = BaseImpl.GetBasePrimaryKey(this.Model.ModuleCode);
|
||||||
this.SysModel.maintabFocusedRow = JsonUtil.ToDataRow(Model.MaintabFocusedRowJson);
|
this.SysModel.maintabFocusedRow = Model.GetMaintabFocusedRow();
|
||||||
this.ModuleAddControl.OnAddRecordCallBack += OnAddRecordCallBack;
|
this.ModuleAddControl.OnAddRecordCallBack += OnAddRecordCallBack;
|
||||||
|
|
||||||
this.details = BaseModuleImpl.GetBaseAddTabDetail(Model.ModuleCode);
|
this.details = BaseModuleImpl.GetBaseAddTabDetail(Model.ModuleCode);
|
||||||
@@ -459,6 +459,10 @@ namespace Lskj.PubAdd
|
|||||||
codeSql += string.Format(" '{0}' as {1}", this.ModuleAddControl.PrimaryValue, this.ModuleAddControl.PrimaryKey);
|
codeSql += string.Format(" '{0}' as {1}", this.ModuleAddControl.PrimaryValue, this.ModuleAddControl.PrimaryKey);
|
||||||
gridEx.SetGridViewDataSource(SqlHelper.ExecuteDataTable(ReplaceHelper.ReplaceRowParam(BaseImpl.GetDataRowResult(codeSql), ReplaceHelper.ReplaceWhereCond(detailModel.DetailSql))));
|
gridEx.SetGridViewDataSource(SqlHelper.ExecuteDataTable(ReplaceHelper.ReplaceRowParam(BaseImpl.GetDataRowResult(codeSql), ReplaceHelper.ReplaceWhereCond(detailModel.DetailSql))));
|
||||||
}
|
}
|
||||||
|
else if(this.ModuleAddControl.ControlObj.CurrentData!=null)
|
||||||
|
{
|
||||||
|
gridEx.SetGridViewDataSource(SqlHelper.ExecuteDataTable(ReplaceHelper.ReplaceRowParam(this.ModuleAddControl.ControlObj.CurrentData, ReplaceHelper.ReplaceWhereCond(detailModel.DetailSql))));
|
||||||
|
}
|
||||||
// 自动刷新
|
// 自动刷新
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user