SVN r801
SVN-Revision: r801
This commit is contained in:
@@ -951,8 +951,11 @@ namespace Lskj.Control
|
||||
this.treeGridLeft.SetReadOnlyColumns(dtTable, GridCustomColumnStruct.BaseLeftGridView + this.Model.ModuleCode);
|
||||
//主键字段名称
|
||||
this.treeGridLeft.TreeListObj.KeyFieldName = this.LeftRowObj["fieldsqlid"] + "";
|
||||
if (!string.IsNullOrWhiteSpace(this.SysModel.LeftTreeKeyFieldName)) this.treeGridLeft.TreeListObj.KeyFieldName = this.SysModel.LeftTreeKeyFieldName;
|
||||
//父级字段名称
|
||||
this.treeGridLeft.TreeListObj.ParentFieldName = "Pid";
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1814,6 +1817,8 @@ namespace Lskj.Control
|
||||
foreach (DataRow item in table.Rows)
|
||||
{
|
||||
DataRow modelRow = MainImpl.GetSystemdllTab(item["unionModule"] + "");
|
||||
|
||||
//DataRow LeftRow = BaseModuleImpl.GetBaseLeftTreeField(item["unionModule"] + "");//获取表格左侧树字段
|
||||
//modelRow = MainImpl.GetSystemdllTab ("mps001");
|
||||
if (modelRow == null) continue;
|
||||
ModuleModel addModel = new ModuleModel(modelRow);
|
||||
@@ -1834,6 +1839,32 @@ namespace Lskj.Control
|
||||
{
|
||||
GridDragGrid.GridAddCheckBox(modegridEx.ModuleGridObj.GridControlObj.GridView);
|
||||
}
|
||||
string association = item["unionvalue"]+"";
|
||||
if (!string.IsNullOrWhiteSpace(association))
|
||||
{
|
||||
//配置了树节点关联的页签,就绑定主表的左侧控件
|
||||
switch (this.SysModel.MenuType)
|
||||
{
|
||||
case 1:
|
||||
case 4: // 左侧为树节点
|
||||
modegridEx.ModuleGridObj.LeftTreeViewEx = this.treeLeft;
|
||||
modegridEx.ModuleGridObj.ParentKeyField = association;
|
||||
modegridEx.ModuleGridObj.AdditionalAssociatedMain = true;
|
||||
//modegridEx.ModuleGridObj.ParentKeyField = LeftRow["fieldsqlid"] + "";
|
||||
//modegridEx.ModuleGridObj.ParentUnionField LeftRow["fieldname"] + "";
|
||||
break;
|
||||
case 2:
|
||||
case 5: // 左侧为表格
|
||||
modegridEx.ModuleGridObj.LeftGridEx = this.SysModel.IsTreeTable ? this.treeGridLeft : this.gridLeft;
|
||||
modegridEx.ModuleGridObj.ParentKeyField = association;
|
||||
modegridEx.ModuleGridObj.AdditionalAssociatedMain = true;
|
||||
//modegridEx.ModuleGridObj.ParentKeyField = LeftRow["fieldsqlid"] + "";
|
||||
//modegridEx.ModuleGridObj.ParentUnionField = LeftRow["fieldname"] + "";
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
page.Controls.Add(modegridEx);
|
||||
modegridEx.Tag = item;
|
||||
page.Tag = modegridEx;
|
||||
|
||||
Reference in New Issue
Block a user