派纳发送邮件功能
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

271 lines
6.1 KiB

#region Using directives
using System;
using System.Collections;
using System.Data;
using UFSoft.UBF.UI.MD.Runtime;
using UFSoft.UBF.UI.MD.Runtime.Implement;
#endregion
namespace CustPrintReferenceRef
{
[Serializable]
public partial class CustPrintReferenceRefModel : UIModel
{
#region Constructor
public CustPrintReferenceRefModel() : base("CustPrintReferenceRef")
{
InitClass();
this.SetResourceInfo("1d17c30a-3581-49f1-b0c4-5428b2772690");
try{
AfterInitModel();
}catch(Exception exception){
IUIModel model = this;
this.ErrorMessage.SetErrorMessage(ref model,exception);
}
}
//just for Clone
private CustPrintReferenceRefModel(bool isInit) : base("CustPrintReferenceRef")
{}
protected override IUIModel CreateCloneInstance()
{
return new CustPrintReferenceRefModel(false);
}
#endregion
#region member
#region views
private cRefView viewcRef;
#endregion
#region links
#endregion
#region properties
#endregion
#endregion
#region property
public cRefView cRef
{
get { return (cRefView)this["cRef"]; }
}
#region RealViews
#endregion
#endregion
#region function
private void InitClass()
{
this.viewcRef = new cRefView(this);
this.viewcRef.SetResourceInfo("7e500986-4c2b-4442-838c-52edfc75fa01");
this.Views.Add(this.viewcRef);
}
public override string AssemblyName
{
get { return "UFIDA.U9.Cust.WC.CustPOSendMailUI"; }
}
#endregion
private void OnValidate_DefualtImpl()
{
}
}
[Serializable]
public partial class cRefView : UIView
{
#region Constructor
public cRefView(IUIModel model) : base(model,"cRef","UFSoft.UBF.ExportService.PrintReferenceBE.PrintTemplate", true)
{
InitClass();
}
//构造空实例,不进行初始化.目前为Clone使用.
private cRefView():base(null,"cRef","UFSoft.UBF.ExportService.PrintReferenceBE.PrintTemplate", true)
{
}
protected override IUIView CreateCloneInstance()
{
return new cRefView();
}
#endregion
#region fiels property filter
public IUIField FieldID
{
get { return this.Fields["ID"]; }
}
public IUIField FieldTemplateName
{
get { return this.Fields["TemplateName"]; }
}
public IUIField FieldIsDefault
{
get { return this.Fields["IsDefault"]; }
}
public IUIField FieldTemplateID
{
get { return this.Fields["TemplateID"]; }
}
[Obsolete("请使用CurrentFilter属性,这个方法有可能会导致强弱类型转换出错")]
public cRefDefaultFilterFilter DefaultFilter
{
get { return (cRefDefaultFilterFilter)this.CurrentFilter; }
}
#endregion
#region Init
private void InitClass()
{
UIModelRuntimeFactory.AddNewUIField(this,"ID", typeof(Int64), false,"","System.Int64", "ID", true,true, false, "",false,(UIFieldType)1,"ba391065-6c27-4c82-acc8-b52b1c93a910","15f1ae4b-2181-484e-a167-ec8b636dfd7d");
UIModelRuntimeFactory.AddNewUIField(this,"TemplateName", typeof(String), true,"","System.String", "TemplateName", true,true, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","07f616e9-79bd-4b28-878b-3fefe06d09fc");
UIModelRuntimeFactory.AddNewUIField(this,"IsDefault", typeof(Boolean), false,"","System.Boolean", "IsDefault", true,true, false, "",false,(UIFieldType)1,"5efeea06-cae7-4cc0-82e9-20a789e4e582","6844fc13-b0cb-4160-a8a4-4d085db49205");
UIModelRuntimeFactory.AddNewUIField(this,"TemplateID", typeof(String), false,"","System.String", "TemplateID", true,true, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","e1af8e4f-edc7-4bc7-a0ad-04ae4c598d83");
this.CurrentFilter = new cRefDefaultFilterFilter(this);
}
#endregion
#region override method
protected override IUIRecord BuildNewRecord(IUIRecordBuilder builder)
{
return new cRefRecord(builder);
}
#endregion
#region new method
public new cRefRecord FocusedRecord
{
get { return (cRefRecord)base.FocusedRecord ; }
set { base.FocusedRecord = value ; }
}
public new cRefRecord AddNewUIRecord()
{
return (cRefRecord)base.AddNewUIRecord();
}
public new cRefRecord NewUIRecord()
{
return (cRefRecord)base.NewUIRecord();
}
#endregion
}
[Serializable]
public class cRefRecord : UIRecord
{
#region Constructor
public cRefRecord(IUIRecordBuilder builder):base(builder)
{
}
private cRefView uiviewcRef
{
get { return (cRefView)this.ContainerView; }
}
protected override IUIRecord CreateCloneInstance(IUIRecordBuilder builder)
{
return new cRefRecord(builder);
}
#endregion
#region property
public Int64 ID
{
get{
//object value = this[this.uiviewcRef.FieldID] ;
//return (Int64)value;
return GetValue<Int64>(this.uiviewcRef.FieldID);
}
set{
this[this.uiviewcRef.FieldID] = value;
}
}
public String TemplateName
{
get{
//object value = this[this.uiviewcRef.FieldTemplateName] ;
//return (String)value;
return GetValue<String>(this.uiviewcRef.FieldTemplateName);
}
set{
this[this.uiviewcRef.FieldTemplateName] = value;
}
}
public Boolean IsDefault
{
get{
//object value = this[this.uiviewcRef.FieldIsDefault] ;
//return (Boolean)value;
return GetValue<Boolean>(this.uiviewcRef.FieldIsDefault);
}
set{
this[this.uiviewcRef.FieldIsDefault] = value;
}
}
public String TemplateID
{
get{
//object value = this[this.uiviewcRef.FieldTemplateID] ;
//return (String)value;
return GetValue<String>(this.uiviewcRef.FieldTemplateID);
}
set{
this[this.uiviewcRef.FieldTemplateID] = value;
}
}
#endregion
}
[Serializable]
public class cRefDefaultFilterFilter : UIFilter
{
#region Constructor
public cRefDefaultFilterFilter(IUIView view)
: base("DefaultFilter",view,@"",@"")
{
InitClass();
}
//for Clone Constructor
private cRefDefaultFilterFilter()
: base("DefaultFilter",null,"","")
{}
protected override IUIFilter CreateCloneInstance()
{
return new cRefDefaultFilterFilter();
}
#endregion
#region property
#endregion
#region function
private void InitClass()
{
}
#endregion
}
}