SVN r932
SVN-Revision: r932
This commit is contained in:
@@ -486,36 +486,12 @@ namespace Lskj.PubMrpAnalyze
|
|||||||
ModuleGridEx moduleGridEx = null;
|
ModuleGridEx moduleGridEx = null;
|
||||||
|
|
||||||
|
|
||||||
if (moduleObject is ModuleGridDetailEx)
|
|
||||||
{
|
|
||||||
ModuleGridDetailEx moduleGridDetailEx = moduleObject as ModuleGridDetailEx;
|
|
||||||
if (moduleGridDetailEx.ModuleGridObj.SysModel.IncomingSetCondition&& rowItem!=null)
|
|
||||||
{
|
|
||||||
foreach (ControlModel item in moduleGridDetailEx.SearchObj.ControlModels)
|
|
||||||
{
|
|
||||||
if (rowItem.Table.Columns.Contains(item.FieldName))
|
|
||||||
{
|
|
||||||
moduleGridEx.SearchObj.SetControlValue(item, rowItem[item.FieldName] + "");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if (moduleObject is ModuleGridEx)
|
if (moduleObject is ModuleGridEx)
|
||||||
{
|
{
|
||||||
moduleGridEx = moduleObject as ModuleGridEx;
|
moduleGridEx = moduleObject as ModuleGridEx;
|
||||||
|
|
||||||
if (moduleGridEx.SysModel.IncomingSetCondition && rowItem != null)
|
|
||||||
{
|
|
||||||
foreach (ControlModel item in moduleGridEx.SearchObj.ControlModels)
|
|
||||||
{
|
|
||||||
if (rowItem.Table.Columns.Contains(item.FieldName))
|
|
||||||
{
|
|
||||||
moduleGridEx.SearchObj.SetControlValue(item, rowItem[item.FieldName] + "");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//if (this.MoudleMainObj.RefreshTheInterface)
|
//if (this.MoudleMainObj.RefreshTheInterface)
|
||||||
//{
|
//{
|
||||||
// moduleGridEx.OnSaveGridCallBack -= ModuleGridEx_OnSaveGridCallBack;
|
// moduleGridEx.OnSaveGridCallBack -= ModuleGridEx_OnSaveGridCallBack;
|
||||||
@@ -602,6 +578,41 @@ namespace Lskj.PubMrpAnalyze
|
|||||||
grdExAdditional.SetGridViewDataSource(MainImpl.GetDataTableResult(searchAddSql));
|
grdExAdditional.SetGridViewDataSource(MainImpl.GetDataTableResult(searchAddSql));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (tcMain.ReplaceControlEx != null)
|
||||||
|
{
|
||||||
|
DataRow dataRow = tcMain.ReplaceControlEx.GetViewFocusedDataRow();
|
||||||
|
if (moduleObject is ModuleGridDetailEx)
|
||||||
|
{
|
||||||
|
ModuleGridDetailEx moduleGridDetailEx = moduleObject as ModuleGridDetailEx;
|
||||||
|
|
||||||
|
|
||||||
|
foreach (ControlModel item in moduleGridDetailEx.SearchObj.ControlModels)
|
||||||
|
{
|
||||||
|
if (tcMain.ReplaceControlEx.GridView.Columns.ColumnByFieldName(item.FieldName) != null)
|
||||||
|
{
|
||||||
|
string value = dataRow != null && dataRow.Table.Columns.Contains(item.FieldName) ? dataRow[item.FieldName] + "" : "";
|
||||||
|
moduleGridDetailEx.SearchObj.SetControlValue(item, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
if (moduleGridEx != null)
|
||||||
|
{
|
||||||
|
|
||||||
|
|
||||||
|
foreach (ControlModel item in moduleGridEx.SearchObj.ControlModels)
|
||||||
|
{
|
||||||
|
if (tcMain.ReplaceControlEx.GridView.Columns.ColumnByFieldName(item.FieldName) != null)
|
||||||
|
{
|
||||||
|
string value = dataRow != null && dataRow.Table.Columns.Contains(item.FieldName) ? dataRow[item.FieldName] + "" : "";
|
||||||
|
moduleGridEx.SearchObj.SetControlValue(item, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>说明:获取查询条件</para>
|
/// <para>说明:获取查询条件</para>
|
||||||
|
|||||||
Reference in New Issue
Block a user