SVN r314
SVN-Revision: r314
This commit is contained in:
@@ -3052,14 +3052,33 @@ namespace Lskj.Control
|
||||
leftValue = this.ParentKeyValue;
|
||||
}
|
||||
|
||||
string ImportReturnName= this.SearchObj.getImportReturnValueControl();
|
||||
string ImportReturnValue = string.Empty;
|
||||
if (!string.IsNullOrWhiteSpace(ImportReturnName))
|
||||
{
|
||||
BaseUserControl baseUserControl=this.SearchObj.FindControl(ImportReturnName);
|
||||
ImportReturnValue = BaseImpl.GetDefaultValue(baseUserControl.Model.Default);
|
||||
this.SearchObj.SetControlValue(ImportReturnName, ImportReturnValue);
|
||||
}
|
||||
|
||||
|
||||
FrmImport import = new FrmImport(this.SysModel.MenuTable, this.Model.ModuleCode, _parmaryKey, this.gcMain, this.SysModel.PrefixKey, leftField, leftValue, this.Model.FormText, this.SysModel.ConcatenatedPrefix);
|
||||
import.ParentGridEx = this.ParentGridEx;
|
||||
import.ImportReturnName = ImportReturnName;
|
||||
import.ImportReturnValue = ImportReturnValue;
|
||||
DialogResult result = import.ShowDialog();
|
||||
if (result == DialogResult.OK)
|
||||
{
|
||||
// 刷新数据
|
||||
this.SearchObj.SearchLastGrid();
|
||||
if (!string.IsNullOrWhiteSpace(ImportReturnName))
|
||||
{
|
||||
this.SearchObj.SearchGrid();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.SearchObj.SearchLastGrid();
|
||||
}
|
||||
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(this.SysModel.afterimportSql))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user