SVN-Revision: r314
This commit is contained in:
cyf
2025-03-12 01:55:33 +00:00
parent 16f8be76e7
commit 4b0551b1c5
6 changed files with 91 additions and 36 deletions
+20 -1
View File
@@ -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))
{