提交当前本机整理版本
This commit is contained in:
@@ -34,4 +34,33 @@ namespace Lskj.Report
|
||||
GridEnum gridEnum = GridEnum.GridView;
|
||||
|
||||
|
||||
if (!reportModel.DataCaches.GetValu
|
||||
if (!reportModel.DataCaches.GetValue(mainForm, "FormType", out int formType))
|
||||
{
|
||||
formType = BaseImpl.GetBaseType(reportModel.ModuleCode);
|
||||
}
|
||||
if (formType == 1)
|
||||
{
|
||||
gridEnum = GridEnum.BandedGridView;
|
||||
}
|
||||
if (formType == 2)
|
||||
{
|
||||
gridEnum = GridEnum.TreeListGridView; // 基础档案暂时注释GridEnum.TreeListGridView此类型,TrcReport和手机端显示卡片冲突.
|
||||
}
|
||||
|
||||
mainForm.Model.GridEnumObj = gridEnum;
|
||||
this.SubForm = mainForm;
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
MessageUtil.Show(ex);
|
||||
LogHelper.Instance.WriteError(ex);
|
||||
LogUtil.WriteError("Lskj.Report.dll--参数错误-->" + obj.ToString(), ex);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 窗口
|
||||
/// </summary>
|
||||
public Form SubForm { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user