SVN r794
SVN-Revision: r794
This commit is contained in:
@@ -641,10 +641,42 @@ namespace Lskj.PubBillSpecial
|
||||
MessageUtil.Show("没有找到编号为" + this.BillModel.RightModuleCode + "的模块信息");
|
||||
return;
|
||||
}
|
||||
ModuleModel SystemModel= new ModuleModel(moduleInformation);
|
||||
|
||||
ModuleModel model = new ModuleModel(moduleInformation);
|
||||
ModuleGridEx gridEx = new ModuleGridEx();
|
||||
model.ParmaryKey = BaseImpl.GetBasePrimaryKey(this.BillModel.RightModuleCode);
|
||||
gridEx.OnSaveGridCallBack += OnDetailSaveGridCallBack;
|
||||
gridEx.DetailRightGridCallBack += OnDetailRightCallback;
|
||||
gridEx.Name = "gridEx";
|
||||
gridEx.IsDetail = true;
|
||||
gridEx.Dock = DockStyle.Fill;
|
||||
gridEx.OperShortMode = false; // 不显示简短模式
|
||||
gridEx.VisibleSearchPanel = false;
|
||||
gridEx.VisibleOperPanel =true;
|
||||
gridEx.InitializeControl(model, dyncModel);
|
||||
gridEx.GridControlObj.Tag = model;//都在本地图可留着备用
|
||||
//gridEx.ParentControlEx = this.gcMain;
|
||||
gridEx.ParentControlObj = this.ControlObj;
|
||||
gridEx.ParentGridEx = this.gcMain;//父级关联明细可扩展
|
||||
//gridEx.ParentKeyField = string.IsNullOrEmpty(model.UnionParentField) ? model.SystemModel.ParmaryKey : model.UnionParentField;
|
||||
//gridEx.DetailKeyField = model.UnionValue;//新增关联可拖拽刷新数据源
|
||||
gridEx.GridControlObj.ParentControl = gridEx.SearchObj;
|
||||
this.splitMainControl.Panel2.Controls.Add(gridEx);
|
||||
gridEx.SearchObj.SearchGrid();
|
||||
}
|
||||
|
||||
#region 衍生表格数据操作
|
||||
private void OnDetailRightCallback(object sender, EventArgs e)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
private void OnDetailSaveGridCallBack(object sender, EventArgs e)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:初始化红蓝字单</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
|
||||
Reference in New Issue
Block a user