派纳发送邮件功能
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.
 
 

700 lines
20 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 UFIDA.U9.Cust.WC.CustPOSendMailUI
{
[Serializable]
public partial class CustPOSendMailUIModel : UIModel
{
#region Constructor
public CustPOSendMailUIModel() : base("CustPOSendMailUI")
{
InitClass();
this.SetResourceInfo("2656be57-c870-47b8-95f6-118655c7b336");
try{
AfterInitModel();
}catch(Exception exception){
IUIModel model = this;
this.ErrorMessage.SetErrorMessage(ref model,exception);
}
}
//just for Clone
private CustPOSendMailUIModel(bool isInit) : base("CustPOSendMailUI")
{}
protected override IUIModel CreateCloneInstance()
{
return new CustPOSendMailUIModel(false);
}
#endregion
#region member
#region views
private CustPOSendMailViewView viewCustPOSendMailView;
private CustPOSendMailPersonView viewCustPOSendMailPerson;
#endregion
#region links
#endregion
#region properties
#endregion
#endregion
#region property
public CustPOSendMailViewView CustPOSendMailView
{
get { return (CustPOSendMailViewView)this["CustPOSendMailView"]; }
}
public CustPOSendMailPersonView CustPOSendMailPerson
{
get { return (CustPOSendMailPersonView)this["CustPOSendMailPerson"]; }
}
#region RealViews
#endregion
#endregion
#region function
private void InitClass()
{
this.viewCustPOSendMailView = new CustPOSendMailViewView(this);
this.viewCustPOSendMailView.SetResourceInfo("8c837754-a92b-4dcd-8250-d198dda19d0f");
this.Views.Add(this.viewCustPOSendMailView);
this.viewCustPOSendMailPerson = new CustPOSendMailPersonView(this);
this.viewCustPOSendMailPerson.SetResourceInfo("0ab05d54-2bbb-4c50-b544-738176736bb3");
this.Views.Add(this.viewCustPOSendMailPerson);
}
public override string AssemblyName
{
get { return "UFIDA.U9.Cust.WC.CustPOSendMailUI"; }
}
#endregion
private void OnValidate_DefualtImpl()
{
}
}
[Serializable]
public partial class CustPOSendMailViewView : UIView
{
#region Constructor
public CustPOSendMailViewView(IUIModel model) : base(model,"CustPOSendMailView","", true)
{
InitClass();
}
//构造空实例,不进行初始化.目前为Clone使用.
private CustPOSendMailViewView():base(null,"CustPOSendMailView","", true)
{
}
protected override IUIView CreateCloneInstance()
{
return new CustPOSendMailViewView();
}
#endregion
#region fiels property filter
public IUIField FieldID
{
get { return this.Fields["ID"]; }
}
public IUIField FieldCreatedOn
{
get { return this.Fields["CreatedOn"]; }
}
public IUIField FieldCreatedBy
{
get { return this.Fields["CreatedBy"]; }
}
public IUIField FieldModifiedOn
{
get { return this.Fields["ModifiedOn"]; }
}
public IUIField FieldModifiedBy
{
get { return this.Fields["ModifiedBy"]; }
}
public IUIField FieldSysVersion
{
get { return this.Fields["SysVersion"]; }
}
public IUIField FieldPrintTemplates
{
get { return this.Fields["PrintTemplates"]; }
}
public IUIField FieldPrintTemplatesName
{
get { return this.Fields["PrintTemplatesName"]; }
}
public IUIField FieldMailTitle
{
get { return this.Fields["MailTitle"]; }
}
public IUIField FieldMailText
{
get { return this.Fields["MailText"]; }
}
public IUIField FieldPrintTemlateName
{
get { return this.Fields["PrintTemlateName"]; }
}
public IUIField FieldNoticeTemplate
{
get { return this.Fields["NoticeTemplate"]; }
}
[Obsolete("请使用CurrentFilter属性,这个方法有可能会导致强弱类型转换出错")]
public CustPOSendMailViewDefaultFilterFilter DefaultFilter
{
get { return (CustPOSendMailViewDefaultFilterFilter)this.CurrentFilter; }
}
#endregion
#region Init
private void InitClass()
{
UIModelRuntimeFactory.AddNewUIField(this,"ID", typeof(Int64), false,"","System.Int64", "", false,false, false, "",false,(UIFieldType)1,"ba391065-6c27-4c82-acc8-b52b1c93a910","11161576-147a-449f-a8be-355e4685ecdb");
UIModelRuntimeFactory.AddNewUIField(this,"CreatedOn", typeof(DateTime), false,"","System.DateTime", "", false,false, false, "",false,(UIFieldType)1,"3834a958-120f-4ac9-8d60-1a7be6d3f12f","9778bcf4-6409-45b5-ace0-c33d8a34490b");
UIModelRuntimeFactory.AddNewUIField(this,"CreatedBy", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","7af72902-e806-45d4-a6ba-adc448d305e8");
UIModelRuntimeFactory.AddNewUIField(this,"ModifiedOn", typeof(DateTime), false,"","System.DateTime", "", false,false, false, "",false,(UIFieldType)1,"3834a958-120f-4ac9-8d60-1a7be6d3f12f","fcb13178-798a-44a7-aa9e-06244fb4f45a");
UIModelRuntimeFactory.AddNewUIField(this,"ModifiedBy", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","30fc2b31-c568-4deb-9cac-442dd9cbb979");
UIModelRuntimeFactory.AddNewUIField(this,"SysVersion", typeof(Int64), false,"","System.Int64", "", false,false, false, "",false,(UIFieldType)1,"ba391065-6c27-4c82-acc8-b52b1c93a910","22b6edb8-e2e5-4028-a988-15ed04fc32d8");
UIModelRuntimeFactory.AddNewUIField(this,"PrintTemplates", typeof(Int64), true,"","UFSoft.UBF.ExportService.PrintReferenceBE.PrintTemplate", "", false,false, false, "",false,(UIFieldType)4,"dd17d05e-e2c0-48c5-802a-f1be67ee311e","e774dd03-9fcd-45b3-ba5e-6bac4545251f");
UIModelRuntimeFactory.AddNewUIField(this,"PrintTemplatesName", typeof(String), true,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","d21450ea-6c23-408c-864b-e307549b96c1");
UIModelRuntimeFactory.AddNewUIField(this,"MailTitle", typeof(String), true,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","5f196656-db98-49e7-bcdc-0bc080c8d73e");
UIModelRuntimeFactory.AddNewUIField(this,"MailText", typeof(String), true,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","f16bc380-10a6-46e8-88c5-d6af09d601e1");
UIModelRuntimeFactory.AddNewUIField(this,"PrintTemlateName", typeof(String), true,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","203d7450-ad05-451f-906a-20ea92f39a02");
UIModelRuntimeFactory.AddNewUIField(this,"NoticeTemplate", typeof(String), true,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","a0c817ed-5f17-493b-b225-1f4e03e70553");
this.CurrentFilter = new CustPOSendMailViewDefaultFilterFilter(this);
}
#endregion
#region override method
protected override IUIRecord BuildNewRecord(IUIRecordBuilder builder)
{
return new CustPOSendMailViewRecord(builder);
}
#endregion
#region new method
public new CustPOSendMailViewRecord FocusedRecord
{
get { return (CustPOSendMailViewRecord)base.FocusedRecord ; }
set { base.FocusedRecord = value ; }
}
public new CustPOSendMailViewRecord AddNewUIRecord()
{
return (CustPOSendMailViewRecord)base.AddNewUIRecord();
}
public new CustPOSendMailViewRecord NewUIRecord()
{
return (CustPOSendMailViewRecord)base.NewUIRecord();
}
#endregion
}
[Serializable]
public class CustPOSendMailViewRecord : UIRecord
{
#region Constructor
public CustPOSendMailViewRecord(IUIRecordBuilder builder):base(builder)
{
}
private CustPOSendMailViewView uiviewCustPOSendMailView
{
get { return (CustPOSendMailViewView)this.ContainerView; }
}
protected override IUIRecord CreateCloneInstance(IUIRecordBuilder builder)
{
return new CustPOSendMailViewRecord(builder);
}
#endregion
#region property
public Int64 ID
{
get{
//object value = this[this.uiviewCustPOSendMailView.FieldID] ;
//return (Int64)value;
return GetValue<Int64>(this.uiviewCustPOSendMailView.FieldID);
}
set{
this[this.uiviewCustPOSendMailView.FieldID] = value;
}
}
public DateTime CreatedOn
{
get{
//object value = this[this.uiviewCustPOSendMailView.FieldCreatedOn] ;
//return (DateTime)value;
return GetValue<DateTime>(this.uiviewCustPOSendMailView.FieldCreatedOn);
}
set{
this[this.uiviewCustPOSendMailView.FieldCreatedOn] = value;
}
}
public String CreatedBy
{
get{
//object value = this[this.uiviewCustPOSendMailView.FieldCreatedBy] ;
//return (String)value;
return GetValue<String>(this.uiviewCustPOSendMailView.FieldCreatedBy);
}
set{
this[this.uiviewCustPOSendMailView.FieldCreatedBy] = value;
}
}
public DateTime ModifiedOn
{
get{
//object value = this[this.uiviewCustPOSendMailView.FieldModifiedOn] ;
//return (DateTime)value;
return GetValue<DateTime>(this.uiviewCustPOSendMailView.FieldModifiedOn);
}
set{
this[this.uiviewCustPOSendMailView.FieldModifiedOn] = value;
}
}
public String ModifiedBy
{
get{
//object value = this[this.uiviewCustPOSendMailView.FieldModifiedBy] ;
//return (String)value;
return GetValue<String>(this.uiviewCustPOSendMailView.FieldModifiedBy);
}
set{
this[this.uiviewCustPOSendMailView.FieldModifiedBy] = value;
}
}
public new Int64 SysVersion
{
get{
//object value = this[this.uiviewCustPOSendMailView.FieldSysVersion] ;
//return (Int64)value;
return GetValue<Int64>(this.uiviewCustPOSendMailView.FieldSysVersion);
}
set{
this[this.uiviewCustPOSendMailView.FieldSysVersion] = value;
}
}
public Int64? PrintTemplates
{
get{
//object value = this[this.uiviewCustPOSendMailView.FieldPrintTemplates] ;
//return (Int64?)value;
return GetValue<Int64?>(this.uiviewCustPOSendMailView.FieldPrintTemplates);
}
set{
this[this.uiviewCustPOSendMailView.FieldPrintTemplates] = value;
}
}
public String PrintTemplatesName
{
get{
//object value = this[this.uiviewCustPOSendMailView.FieldPrintTemplatesName] ;
//return (String)value;
return GetValue<String>(this.uiviewCustPOSendMailView.FieldPrintTemplatesName);
}
set{
this[this.uiviewCustPOSendMailView.FieldPrintTemplatesName] = value;
}
}
public String MailTitle
{
get{
//object value = this[this.uiviewCustPOSendMailView.FieldMailTitle] ;
//return (String)value;
return GetValue<String>(this.uiviewCustPOSendMailView.FieldMailTitle);
}
set{
this[this.uiviewCustPOSendMailView.FieldMailTitle] = value;
}
}
public String MailText
{
get{
//object value = this[this.uiviewCustPOSendMailView.FieldMailText] ;
//return (String)value;
return GetValue<String>(this.uiviewCustPOSendMailView.FieldMailText);
}
set{
this[this.uiviewCustPOSendMailView.FieldMailText] = value;
}
}
public String PrintTemlateName
{
get{
//object value = this[this.uiviewCustPOSendMailView.FieldPrintTemlateName] ;
//return (String)value;
return GetValue<String>(this.uiviewCustPOSendMailView.FieldPrintTemlateName);
}
set{
this[this.uiviewCustPOSendMailView.FieldPrintTemlateName] = value;
}
}
public String NoticeTemplate
{
get{
//object value = this[this.uiviewCustPOSendMailView.FieldNoticeTemplate] ;
//return (String)value;
return GetValue<String>(this.uiviewCustPOSendMailView.FieldNoticeTemplate);
}
set{
this[this.uiviewCustPOSendMailView.FieldNoticeTemplate] = value;
}
}
#endregion
}
[Serializable]
public class CustPOSendMailViewDefaultFilterFilter : UIFilter
{
#region Constructor
public CustPOSendMailViewDefaultFilterFilter(IUIView view)
: base("DefaultFilter",view,@"",@"")
{
InitClass();
}
//for Clone Constructor
private CustPOSendMailViewDefaultFilterFilter()
: base("DefaultFilter",null,"","")
{}
protected override IUIFilter CreateCloneInstance()
{
return new CustPOSendMailViewDefaultFilterFilter();
}
#endregion
#region property
#endregion
#region function
private void InitClass()
{
}
#endregion
}
[Serializable]
public partial class CustPOSendMailPersonView : UIView
{
#region Constructor
public CustPOSendMailPersonView(IUIModel model) : base(model,"CustPOSendMailPerson","", true)
{
InitClass();
}
//构造空实例,不进行初始化.目前为Clone使用.
private CustPOSendMailPersonView():base(null,"CustPOSendMailPerson","", true)
{
}
protected override IUIView CreateCloneInstance()
{
return new CustPOSendMailPersonView();
}
#endregion
#region fiels property filter
public IUIField FieldID
{
get { return this.Fields["ID"]; }
}
public IUIField FieldCreatedOn
{
get { return this.Fields["CreatedOn"]; }
}
public IUIField FieldCreatedBy
{
get { return this.Fields["CreatedBy"]; }
}
public IUIField FieldModifiedOn
{
get { return this.Fields["ModifiedOn"]; }
}
public IUIField FieldModifiedBy
{
get { return this.Fields["ModifiedBy"]; }
}
public IUIField FieldSysVersion
{
get { return this.Fields["SysVersion"]; }
}
public IUIField FieldMailAddress
{
get { return this.Fields["MailAddress"]; }
}
public IUIField FieldTelephone
{
get { return this.Fields["Telephone"]; }
}
public IUIField FieldRcvPerson
{
get { return this.Fields["RcvPerson"]; }
}
[Obsolete("请使用CurrentFilter属性,这个方法有可能会导致强弱类型转换出错")]
public CustPOSendMailPersonDefaultFilterFilter DefaultFilter
{
get { return (CustPOSendMailPersonDefaultFilterFilter)this.CurrentFilter; }
}
#endregion
#region Init
private void InitClass()
{
UIModelRuntimeFactory.AddNewUIField(this,"ID", typeof(Int64), false,"","System.Int64", "", false,false, false, "",false,(UIFieldType)1,"ba391065-6c27-4c82-acc8-b52b1c93a910","643cee82-a076-4967-b713-5da8b2cfed9d");
UIModelRuntimeFactory.AddNewUIField(this,"CreatedOn", typeof(DateTime), false,"","System.DateTime", "", false,false, false, "",false,(UIFieldType)1,"3834a958-120f-4ac9-8d60-1a7be6d3f12f","e8492f1e-25a8-4380-9857-20b00e43b136");
UIModelRuntimeFactory.AddNewUIField(this,"CreatedBy", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","3f9c0cef-c62e-4b8f-8d45-931a57187ef8");
UIModelRuntimeFactory.AddNewUIField(this,"ModifiedOn", typeof(DateTime), false,"","System.DateTime", "", false,false, false, "",false,(UIFieldType)1,"3834a958-120f-4ac9-8d60-1a7be6d3f12f","b1f96cd8-a461-4f5e-8541-81c17a71277e");
UIModelRuntimeFactory.AddNewUIField(this,"ModifiedBy", typeof(String), false,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","116f425e-8cc9-4f77-a9bb-59e5919796bf");
UIModelRuntimeFactory.AddNewUIField(this,"SysVersion", typeof(Int64), false,"","System.Int64", "", false,false, false, "",false,(UIFieldType)1,"ba391065-6c27-4c82-acc8-b52b1c93a910","966d7e9d-0f5e-4027-89cc-372372a6ede4");
UIModelRuntimeFactory.AddNewUIField(this,"MailAddress", typeof(String), true,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","aaf3b6ac-79c7-4090-8385-bf12a6bc817a");
UIModelRuntimeFactory.AddNewUIField(this,"Telephone", typeof(String), true,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","1348c789-74af-450b-b0b3-d74fdafe0518");
UIModelRuntimeFactory.AddNewUIField(this,"RcvPerson", typeof(String), true,"","System.String", "", false,false, false, "",false,(UIFieldType)1,"3d174255-fd12-47f7-8844-3b5e4fae9e8c","c169e85f-31a6-45bc-a7ad-a9a9d17fccb1");
this.CurrentFilter = new CustPOSendMailPersonDefaultFilterFilter(this);
}
#endregion
#region override method
protected override IUIRecord BuildNewRecord(IUIRecordBuilder builder)
{
return new CustPOSendMailPersonRecord(builder);
}
#endregion
#region new method
public new CustPOSendMailPersonRecord FocusedRecord
{
get { return (CustPOSendMailPersonRecord)base.FocusedRecord ; }
set { base.FocusedRecord = value ; }
}
public new CustPOSendMailPersonRecord AddNewUIRecord()
{
return (CustPOSendMailPersonRecord)base.AddNewUIRecord();
}
public new CustPOSendMailPersonRecord NewUIRecord()
{
return (CustPOSendMailPersonRecord)base.NewUIRecord();
}
#endregion
}
[Serializable]
public class CustPOSendMailPersonRecord : UIRecord
{
#region Constructor
public CustPOSendMailPersonRecord(IUIRecordBuilder builder):base(builder)
{
}
private CustPOSendMailPersonView uiviewCustPOSendMailPerson
{
get { return (CustPOSendMailPersonView)this.ContainerView; }
}
protected override IUIRecord CreateCloneInstance(IUIRecordBuilder builder)
{
return new CustPOSendMailPersonRecord(builder);
}
#endregion
#region property
public Int64 ID
{
get{
//object value = this[this.uiviewCustPOSendMailPerson.FieldID] ;
//return (Int64)value;
return GetValue<Int64>(this.uiviewCustPOSendMailPerson.FieldID);
}
set{
this[this.uiviewCustPOSendMailPerson.FieldID] = value;
}
}
public DateTime CreatedOn
{
get{
//object value = this[this.uiviewCustPOSendMailPerson.FieldCreatedOn] ;
//return (DateTime)value;
return GetValue<DateTime>(this.uiviewCustPOSendMailPerson.FieldCreatedOn);
}
set{
this[this.uiviewCustPOSendMailPerson.FieldCreatedOn] = value;
}
}
public String CreatedBy
{
get{
//object value = this[this.uiviewCustPOSendMailPerson.FieldCreatedBy] ;
//return (String)value;
return GetValue<String>(this.uiviewCustPOSendMailPerson.FieldCreatedBy);
}
set{
this[this.uiviewCustPOSendMailPerson.FieldCreatedBy] = value;
}
}
public DateTime ModifiedOn
{
get{
//object value = this[this.uiviewCustPOSendMailPerson.FieldModifiedOn] ;
//return (DateTime)value;
return GetValue<DateTime>(this.uiviewCustPOSendMailPerson.FieldModifiedOn);
}
set{
this[this.uiviewCustPOSendMailPerson.FieldModifiedOn] = value;
}
}
public String ModifiedBy
{
get{
//object value = this[this.uiviewCustPOSendMailPerson.FieldModifiedBy] ;
//return (String)value;
return GetValue<String>(this.uiviewCustPOSendMailPerson.FieldModifiedBy);
}
set{
this[this.uiviewCustPOSendMailPerson.FieldModifiedBy] = value;
}
}
public new Int64 SysVersion
{
get{
//object value = this[this.uiviewCustPOSendMailPerson.FieldSysVersion] ;
//return (Int64)value;
return GetValue<Int64>(this.uiviewCustPOSendMailPerson.FieldSysVersion);
}
set{
this[this.uiviewCustPOSendMailPerson.FieldSysVersion] = value;
}
}
public String MailAddress
{
get{
//object value = this[this.uiviewCustPOSendMailPerson.FieldMailAddress] ;
//return (String)value;
return GetValue<String>(this.uiviewCustPOSendMailPerson.FieldMailAddress);
}
set{
this[this.uiviewCustPOSendMailPerson.FieldMailAddress] = value;
}
}
public String Telephone
{
get{
//object value = this[this.uiviewCustPOSendMailPerson.FieldTelephone] ;
//return (String)value;
return GetValue<String>(this.uiviewCustPOSendMailPerson.FieldTelephone);
}
set{
this[this.uiviewCustPOSendMailPerson.FieldTelephone] = value;
}
}
public String RcvPerson
{
get{
//object value = this[this.uiviewCustPOSendMailPerson.FieldRcvPerson] ;
//return (String)value;
return GetValue<String>(this.uiviewCustPOSendMailPerson.FieldRcvPerson);
}
set{
this[this.uiviewCustPOSendMailPerson.FieldRcvPerson] = value;
}
}
#endregion
}
[Serializable]
public class CustPOSendMailPersonDefaultFilterFilter : UIFilter
{
#region Constructor
public CustPOSendMailPersonDefaultFilterFilter(IUIView view)
: base("DefaultFilter",view,@"",@"")
{
InitClass();
}
//for Clone Constructor
private CustPOSendMailPersonDefaultFilterFilter()
: base("DefaultFilter",null,"","")
{}
protected override IUIFilter CreateCloneInstance()
{
return new CustPOSendMailPersonDefaultFilterFilter();
}
#endregion
#region property
#endregion
#region function
private void InitClass()
{
}
#endregion
}
}