SVN r249
SVN-Revision: r249
This commit is contained in:
@@ -5989,7 +5989,7 @@ namespace Lskj.Control
|
||||
modelLookUp.EditValue = string.Empty;
|
||||
}
|
||||
//多选关联单据头
|
||||
string SourceSQL = modelLookUp.SysModel.MenuSql.Replace("#", "")+ model.SplicingConditions;
|
||||
string SourceSQL = modelLookUp.SysModel.MenuSql.Replace("#", "") + model.SplicingConditions;
|
||||
//单据头关联取值
|
||||
if (this.ParentControl != null)
|
||||
{
|
||||
@@ -5997,6 +5997,7 @@ namespace Lskj.Control
|
||||
}
|
||||
|
||||
modelLookUp.NewSourceSQL = ReplaceHelper.ReplaceRowParam(this.gridView.GetFocusedDataRow(), SourceSQL);
|
||||
modelLookUp.AddModuleResult = model.addModuleResult;
|
||||
//modelLookUp.DataSource = BaseImpl.GetDataTableResult(modelLookUp.SourceSQL);
|
||||
modelLookUp.InitControls(modelLookUp.UnionModuleCodel);
|
||||
DialogResult result = modelLookUp.ShowDialog();
|
||||
@@ -6007,11 +6008,12 @@ namespace Lskj.Control
|
||||
DataRow focusedRow = this.gridView.GetFocusedDataRow();
|
||||
if (focusedRow != null)
|
||||
{
|
||||
foreach (string resultField in resultFields)
|
||||
foreach (string resultKey in modelLookUp.ModuleResultDic.Keys)
|
||||
{
|
||||
if (focusedRow.Table.Columns.Contains(resultField))
|
||||
string resultValue = modelLookUp.ModuleResultDic[resultKey];
|
||||
if (focusedRow.Table.Columns.Contains(resultKey))
|
||||
{
|
||||
focusedRow[resultField] = modelLookUp.EditText;
|
||||
focusedRow[resultKey] = resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user