mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-04-04 23:39:33 +08:00
95 lines
2.7 KiB
C#
95 lines
2.7 KiB
C#
//------------------------------------------------------------------------------
|
||
// <autogenerated>
|
||
// This code was generated by a CodeSmith Template.
|
||
//
|
||
// DO NOT MODIFY contents of this file. Changes to this
|
||
// file will be lost if the code is regenerated.
|
||
// Author:Yubao Li
|
||
// </autogenerated>
|
||
//------------------------------------------------------------------------------
|
||
using Infrastructure;
|
||
namespace OpenAuth.App.Response
|
||
{
|
||
/// <summary>
|
||
/// 表单模板表
|
||
/// </summary>
|
||
public class FormResp
|
||
{
|
||
/// <summary>
|
||
/// 表单名称
|
||
/// </summary>
|
||
public string Id { get; set; }
|
||
|
||
/// <summary>
|
||
/// 表单名称
|
||
/// </summary>
|
||
public string Name { get; set; }
|
||
/// <summary>
|
||
/// 字段个数
|
||
/// </summary>
|
||
public int Fields { get; set; }
|
||
/// <summary>
|
||
/// 表单类型,0:默认动态表单;1:Web自定义表单
|
||
/// </summary>
|
||
public int FrmType { get; set; }
|
||
/// <summary>
|
||
/// 系统页面标识,当表单类型为用Web自定义的表单时,需要标识加载哪个页面
|
||
/// </summary>
|
||
public string WebId { get; set; }
|
||
/// <summary>
|
||
/// 表单中的字段数据
|
||
/// </summary>
|
||
public string ContentData { get; set; }
|
||
/// <summary>
|
||
/// 表单替换的模板 经过处理
|
||
/// </summary>
|
||
public string ContentParse { get; set; }
|
||
/// <summary>
|
||
/// 表单原html模板未经处理的
|
||
/// </summary>
|
||
public string Content { get; set; }
|
||
|
||
/// <summary>
|
||
/// 表单的数据
|
||
/// </summary>
|
||
public string FrmData { get; set; }
|
||
|
||
/// <summary>
|
||
/// 排序码
|
||
/// </summary>
|
||
public int SortCode { get; set; }
|
||
|
||
public string Description { get; set; }
|
||
|
||
|
||
/// <summary>
|
||
/// 数据库名称
|
||
/// </summary>
|
||
public string DbName { get; set; }
|
||
/// <summary>
|
||
/// 用户显示
|
||
/// </summary>
|
||
public string Html
|
||
{
|
||
get { return FormUtil.GetHtml(this); }
|
||
}
|
||
|
||
public string[] CanWriteFormItemIds { get; set; }
|
||
|
||
/// <summary>
|
||
/// 用户显示(表单项包含读写控制权限)
|
||
/// </summary>
|
||
public string HtmlWithCanWriteIds
|
||
{
|
||
get
|
||
{
|
||
if (this.FrmType != Define.FORM_TYPE_DYNAMIC) //只有开原版动态表单才需要转换
|
||
{
|
||
return string.Empty;
|
||
}
|
||
return FormUtil.GetHtml(this.ContentData, this.ContentParse, this.FrmData,"",this.CanWriteFormItemIds);
|
||
}
|
||
}
|
||
|
||
}
|
||
} |