SVN r241
SVN-Revision: r241
This commit is contained in:
@@ -31,32 +31,4 @@ namespace Lskj.PubModuleDetail
|
||||
main.Model = moduleModel;
|
||||
moduleModel.DataCaches = new Dictionary<object, Hashtable>();
|
||||
if (SystemInfo.Instance.OptimizationSpeed) main.GetDataCaches(moduleModel.DataCaches);
|
||||
GridEnum gridEnum = GridEnum.GridView;
|
||||
|
||||
if (!moduleModel.DataCaches.GetValue(main, "FormType", out int formType))
|
||||
{
|
||||
formType = BaseImpl.GetBaseType(moduleModel.ModuleCode);
|
||||
}
|
||||
if (formType == 1)
|
||||
{
|
||||
gridEnum = GridEnum.BandedGridView;
|
||||
}
|
||||
if (formType == 2)
|
||||
{
|
||||
gridEnum = GridEnum.TreeListGridView; // 基础档案暂时注释GridEnum.TreeListGridView此类型,TrcReport和手机端显示卡片冲突.
|
||||
}
|
||||
main.Model.GridEnumObj = gridEnum;
|
||||
this.SubForm = main;
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
LogUtil.WriteError("Lskj.PubModuleDetail.dll--参数错误-->" + obj.ToString(), ex);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 窗口
|
||||
/// </summary>
|
||||
public Form SubForm { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ namespace Lskj.PubModuleDetail
|
||||
public FrmMain()
|
||||
{
|
||||
InitializeComponent();
|
||||
this.Disposed += OnFrmMainDisposed;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -63,9 +64,9 @@ namespace Lskj.PubModuleDetail
|
||||
}
|
||||
this.Model.Privilege = privilege;
|
||||
this.mControl.LeftCond = Model.LeftCond;//用户控件的左侧条件=动态链接库对象左侧树结构
|
||||
//ModuleConditionsPanelEx mcpex = new ModuleConditionsPanelEx();
|
||||
//mcpex.InitializeControl(new ModuleModel(MainImpl.GetSystemdllTab(this.Model.ModuleCode)), Model);
|
||||
if (!dataCaches.GetValue(this, "Details", out List<GridDetailModel> details))
|
||||
//ModuleConditionsPanelEx mcpex = new ModuleConditionsPanelEx();
|
||||
//mcpex.InitializeControl(new ModuleModel(MainImpl.GetSystemdllTab(this.Model.ModuleCode)), Model);
|
||||
if (!dataCaches.GetValue(this, "Details", out List<GridDetailModel> details))
|
||||
{
|
||||
details = GetDetails();
|
||||
}
|
||||
@@ -144,8 +145,6 @@ namespace Lskj.PubModuleDetail
|
||||
mControl.GetDataCaches(cachesDic);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 关闭模块时发生
|
||||
/// </summary>
|
||||
@@ -186,21 +185,4 @@ namespace Lskj.PubModuleDetail
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <returns>List<GridDetailModel>.</returns>
|
||||
private List<GridDetailModel> GetDetails()
|
||||
{
|
||||
List<GridDetailModel> details = new List<GridDetailModel>();//表格明细对象的集合
|
||||
DataTable table = BaseModuleImpl.GetBaseDetailPages(Model.ModuleCode);// 根据传入的模块编号获得基础档案底部标签的数据
|
||||
foreach (DataRow item in table.Rows)
|
||||
{
|
||||
DataTable gridColumns = ReportImpl.GetReportDetailColumns(Model.ModuleCode, item["id"] + "");//获取报表明细列
|
||||
details.Add(new GridDetailModel(item, gridColumns, GridCustomColumnStruct.BaseDetailGridView));
|
||||
}
|
||||
return details;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
/// <
|
||||
Reference in New Issue
Block a user