OpenAuth.Net/OpenAuth.App/Form/Response/FormResp.cs

95 lines
2.7 KiB
C#
Raw Normal View History

//------------------------------------------------------------------------------
// <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>
//------------------------------------------------------------------------------
2025-04-02 23:31:38 +08:00
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默认动态表单1Web自定义表单
/// </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
{
2021-07-22 20:16:20 +08:00
get
{
2025-04-02 23:31:38 +08:00
if (this.FrmType != Define.FORM_TYPE_DYNAMIC) //只有开原版动态表单才需要转换
2021-07-22 20:16:20 +08:00
{
return string.Empty;
}
return FormUtil.GetHtml(this.ContentData, this.ContentParse, this.FrmData,"",this.CanWriteFormItemIds);
}
}
}
2018-03-24 09:56:32 +08:00
}