/// <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);
        }
Exemplo n.º 3
0
        /// <summary>
        ///     读取Form传过来的数据
        /// </summary>
        /// <param name="data">数据</param>
        /// <param name="convert">转化器</param>
        protected override void ReadFormData(PageItemData data, FormConvert convert)
        {
            data.Name        = convert.ToString("Name", false);
            data.Json        = convert.ToString("Json", false);
            data.ExtendValue = convert.ToString("ExtendValue", false);
            data.Caption     = convert.ToString("Caption", false);
            //data.Folder = convert.ToString("Folder", false);
            data.Url      = convert.ToString("Url", true);
            data.Icon     = convert.ToString("Icon", true);
            data.ItemType = (PageItemType)convert.ToInteger("ItemType", 0);
            data.Index    = convert.ToInteger("Index", 0);
            data.ParentId = convert.ToInteger("ParentId", 0);
            data.Memo     = convert.ToString("Memo", true);


            data.SystemType = convert.ToString("type");
            data.IsHide     = convert.ToBoolean("hide");
            data.Audit      = convert.ToBoolean("audit");
            data.LevelAudit = convert.ToBoolean("level_audit");
            data.DataState  = convert.ToBoolean("data_state");
            data.AuditPage  = convert.ToInteger("audit_page");
            data.Edit       = convert.ToBoolean("edit");
            data.MasterPage = convert.ToInteger("master_page");
        }