public MessageOpenApplicationModel ToModel(MessageOpenApplicationInfo info) { if (info.publicName != null) { this.publicName = info.publicName; this.publicCardName = info.publicCardName; this.publicCardNumber = info.publicCardNumber; this.publicAddress = info.publicAddress; this.publicPostalCode = info.publicPostalCode; this.publicPhone = info.publicPhone; this.publicFax = info.publicFax; this.publicMail = info.publicMail; } if (info.OtherName != null) { this.OtherName = info.OtherName; this.OtherCode = info.OtherCode; this.OtherAddress = info.OtherAddress; this.OtherDeputy = info.OtherDeputy; this.OtherContactName = info.OtherContactName; this.OtherContactPhone = info.OtherContactPhone; this.OtherFax = info.OtherFax; this.Othermail = info.Othermail; } this.Details = info.Details; this.ClaimNumber = info.ClaimNumber; this.purpose = info.purpose; this.ApplyCost = info.ApplyCost; this.ApplyProviding = info.ApplyProviding; this.Applyinformation = info.Applyinformation; this.OtherWays = info.OtherWays; this.Feedback = info.Feedback; return(this); }
public MessageOpenApplicationInfo FormData(MessageOpenApplicationInfo info) { info.Id = info.Id; info.IsDelete = info.IsDelete;; info.CreateDate = info.CreateDate; info.UpdateDate = info.CreateDate; info.publicName = info.publicName; info.publicCardName = info.publicCardName; info.publicCardNumber = info.publicCardNumber; info.publicAddress = info.publicAddress; info.publicPostalCode = info.publicPostalCode; info.publicPhone = info.publicPhone; info.publicFax = info.publicFax; info.publicMail = info.publicMail; info.OtherName = info.OtherName; info.OtherCode = info.OtherCode; info.OtherAddress = info.OtherAddress; info.OtherDeputy = info.OtherDeputy; info.OtherContactName = info.OtherContactName; info.OtherContactPhone = info.OtherContactPhone; info.OtherFax = info.OtherFax; info.Othermail = info.Othermail; info.Details = info.Details; info.ClaimNumber = info.ClaimNumber; info.purpose = info.purpose; info.ApplyCost = info.ApplyCost; info.ApplyProviding = info.ApplyProviding; info.Applyinformation = info.Applyinformation; info.OtherWays = info.OtherWays; info.IsPublic = info.IsPublic; info.Feedback = this.Feedback; return(info); }