SVN r1172
SVN-Revision: r1172
This commit is contained in:
@@ -163,6 +163,9 @@ namespace Lskj.PubModuleDetail3
|
||||
gridEx.SetReadOnlyColumns(model.GridColumns, model.GridCustomColumnKey);
|
||||
gridEx.SetGridRightMenus(BaseModuleImpl.GetBaseGridRightMenus(model.FormKey), this.Model, OnGridViewRightCallBack);
|
||||
gridEx.SetGridRowColors(BaseModuleImpl.GetBaseGridRowColors(model.FormKey));
|
||||
|
||||
if (model.IsCheck == 1) GridDragGrid.GridAddCheckBox(gridEx.GridView);
|
||||
|
||||
if (IsDragDetail && this.ParentGridEx != null && model.IsDrag)
|
||||
{
|
||||
// 拖拽模式,绑定拖拽对象
|
||||
@@ -207,6 +210,19 @@ namespace Lskj.PubModuleDetail3
|
||||
gridEx.ParentKeyField = string.IsNullOrEmpty(model.UnionParentField) ? model.SystemModel.ParmaryKey : model.UnionParentField;
|
||||
gridEx.DetailKeyField = model.UnionValue;
|
||||
gridEx.OnSaveGridCallBack += new EventHandler(OnGridViewAllCallBack);
|
||||
|
||||
|
||||
if (model.IsCheck == 1)
|
||||
{
|
||||
GridDragGrid.GridAddCheckBox(gridEx.GridControlObj.GridView);
|
||||
//if (model.RecordDetailsCheckbox &&
|
||||
// ParentGridEx?.GridView.OptionsSelection.MultiSelect == true)
|
||||
//{
|
||||
// gridEx.TagName = model.DetailName;
|
||||
// gridEx.GridControlObj.GridView.SelectionChanged += GridView_SelectionChanged;
|
||||
//}
|
||||
}
|
||||
|
||||
if (IsDragDetail && this.ParentGridEx != null && model.IsDrag)
|
||||
{
|
||||
// 拖拽模式,绑定拖拽对象
|
||||
@@ -228,6 +244,7 @@ namespace Lskj.PubModuleDetail3
|
||||
splitLeftControl.SplitterPositionChanged += SplitLeftControl_SplitterMoved;
|
||||
|
||||
TabIntoAddControl tabAdd = new TabIntoAddControl();
|
||||
tabAdd.Model = dyncModel;
|
||||
//tabAdd.splitContainerControl.Horizontal = false;//上下结构
|
||||
tabAdd.InitTabPages(_gridIntoDetail);
|
||||
tabAdd.Dock = DockStyle.Fill;
|
||||
@@ -881,35 +898,4 @@ namespace Lskj.PubModuleDetail3
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:分割条位置改变事件</para>
|
||||
/// <para>创建人:王一帆</para>
|
||||
/// <para>创建日期:2020-06-19 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
private void SplitLeftControl_SplitterMoved(object sender, EventArgs e)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (_isInitFinish && this.splitContainer != null)
|
||||
{
|
||||
IniHelper.Write(string.Format("PubModuleDetail3RightLower_SplitterPositionMain_{0}", this.splitContainer.Tag + ""), this.splitContainer.SplitterPosition + "");
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string Message = ErrorMessage.PromptErrorMessage(ex);
|
||||
MessageUtil.Show(Message, ex.Message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
///
|
||||
Reference in New Issue
Block a user