提交当前本机整理版本
This commit is contained in:
@@ -31,4 +31,32 @@ 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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user