using BP.En;
using BP.Sys;
namespace BP.WF.Template.Frm
{
///
/// Word表单属性 attr
///
public class MapFrmReferencePanelAttr : MapDataAttr
{
///
/// 标题
///
public const string RefTitle = "RefTitle";
///
/// 工作模式
///
public const string RefWorkModel = "RefWorkModel";
///
/// 连接
///
public const string RefUrl = "RefUrl";
///
/// 触发字段
///
public const string RefBlurField = "RefBlurField";
///
/// 静态的html脚本内容
///
public const string RefHtml = "RefHtml";
}
///
/// Word表单属性
///
public class MapFrmReferencePanel : EntityNoName
{
#region 文件模版属性.
///
/// 模版版本号
///
public string RefTitle
{
get
{
return this.GetValStringByKey(MapFrmReferencePanelAttr.RefTitle);
}
set
{
this.SetValByKey(MapFrmReferencePanelAttr.RefTitle, value);
}
}
#endregion 文件模版属性.
#region 权限控制.
public override UAC HisUAC
{
get
{
UAC uac = new UAC();
if (BP.Web.WebUser.No.Equals("admin") == true)
{
uac.IsDelete = false;
uac.IsUpdate = true;
return uac;
}
uac.Readonly();
return uac;
}
}
#endregion 权限控制.
#region 构造方法
///
/// Word表单属性
///
public MapFrmReferencePanel()
{
}
///
/// Word表单属性
///
/// 表单ID
public MapFrmReferencePanel(string no)
: base(no)
{
}
///
/// EnMap
///
public override Map EnMap
{
get
{
if (this._enMap != null)
return this._enMap;
Map map = new Map("Sys_MapData", "参考面板");
#region 基本属性.
map.AddTBStringPK(MapFrmReferencePanelAttr.No, null, "表单编号", true, true, 1, 190, 20);
map.AddDDLSysEnum(MapFrmReferencePanelAttr.RefWorkModel, 0, "工作模式", true, true,
MapFrmReferencePanelAttr.RefWorkModel, "@0=禁用@1=静态Html脚本@2=静态框架Url@3=动态Url@4=动态Html脚本");
map.AddTBString(MapFrmReferencePanelAttr.RefBlurField, null, "失去焦点字段", true, false, 0, 500, 20, true);
map.SetHelperAlert(MapFrmReferencePanelAttr.RefBlurField, "配置表单字段名字,对【动态url】有效.");
map.AddTBString(MapFrmReferencePanelAttr.RefUrl, null, "连接", true, false, 0, 500, 20, true);
map.AddTBStringDoc(MapFrmReferencePanelAttr.RefHtml, null, "静态Html脚本", true, false, true);
#endregion 基本属性.
this._enMap = map;
return this._enMap;
}
}
#endregion
}
///
/// Word表单属性s
///
public class MapFrmReferencePanels : EntitiesNoName
{
#region 构造
///
/// Word表单属性s
///
public MapFrmReferencePanels()
{
}
///
/// 得到它的 Entity
///
public override Entity GetNewEntity
{
get
{
return new MapFrmReferencePanel();
}
}
#endregion
#region 为了适应自动翻译成java的需要,把实体转换成List.
///
/// 转化成 java list,C#不能调用.
///
/// List
public System.Collections.Generic.IList ToJavaList()
{
return (System.Collections.Generic.IList)this;
}
///
/// 转化成list
///
/// List
public System.Collections.Generic.List Tolist()
{
System.Collections.Generic.List list = new System.Collections.Generic.List();
for (int i = 0; i < this.Count; i++)
{
list.Add((MapFrmReferencePanel)this[i]);
}
return list;
}
#endregion 为了适应自动翻译成java的需要,把实体转换成List.
}
}