/// <summary> /// 读取Form传过来的数据 /// </summary> /// <param name="data">数据</param> /// <param name="convert">转化器</param> protected void DefaultReadFormData(PersonnelData data, FormConvert convert) { //数据 data.FullName = convert.ToString("FullName"); data.Six = convert.ToBoolean("Six"); data.Birthday = convert.ToDateTime("Birthday"); data.Tel = convert.ToString("Tel"); data.Mobile = convert.ToString("Mobile"); //备注 data.Memo = convert.ToString("Memo"); }
/// <summary> /// 读取Form传过来的数据 /// </summary> /// <param name="data">数据</param> /// <param name="convert">转化器</param> protected override void ReadFormData(PositionPersonnelData data, FormConvert convert) { //数据 data.Appellation = convert.ToString("Appellation"); data.Personnel = convert.ToString("Personnel", false); data.Six = convert.ToBoolean("Six"); data.Birthday = convert.ToDateTime("Birthday"); data.Tel = convert.ToString("Tel", false); data.Mobile = convert.ToString("Mobile", false); data.RoleId = convert.ToInteger("RoleId", 0); data.OrganizePositionId = convert.ToInteger("OrganizePositionId", 0); //备注 data.Memo = convert.ToString("Memo", true); }
/// <summary> /// 读取Form传过来的数据 /// </summary> /// <param name="data">数据</param> /// <param name="convert">转化器</param> protected void DefaultReadFormData(UserJobData data, FormConvert convert) { //数据 data.Title = convert.ToString("Title"); data.Date = convert.ToDateTime("Date"); data.Message = convert.ToString("Message"); data.JobType = (UserJobType)convert.ToInteger("JobType"); data.JobStatus = (JobStatusType)convert.ToInteger("JobStatus"); data.CommandType = (JobCommandType)convert.ToInteger("CommandType"); data.LinkId = convert.ToInteger("LinkId"); data.EntityType = convert.ToInteger("EntityType"); data.ToUserId = convert.ToInteger("ToUserId"); data.ToUserName = convert.ToString("ToUserName"); data.FromUserId = convert.ToInteger("FromUserId"); data.FromUserName = convert.ToString("FromUserName"); }