Ejemplo n.º 1
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XTemplateCatalogInfo info = modelInfo as XTemplateCatalogInfo;

            info.ID          = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "CatalogID"));   //
            info.CatalogID   = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "CatalogID"));   //
            info.Source      = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Source"));      //
            info.CatalogDesc = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "CatalogDesc")); //
            info.BranchID    = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "BranchID"));    //
            info.Memo        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Memo"));        //
            info.StampTime   = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "StampTime"));   //
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XPassWord4FileInfo info = modelInfo as XPassWord4FileInfo;

            info.ID             = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));            //主键
            info.RID            = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));            //主键
            info.PassWordTmpId  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "PassWordTmpId"));  //临时密码ID
            info.PassWord       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "PassWord"));       //下载密码
            info.DownLoadUserId = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "DownLoadUserId")); //下载用户ID
            info.FileID         = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FileID"));         //下载文件ID
            info.DownTime       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "DownTime"));       //下载时间
            info.Remark         = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Remark"));         //备注
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XUseDeptFolderInfo info = modelInfo as XUseDeptFolderInfo;

            info.ID           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));          //
            info.RID          = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));          //
            info.DeptID       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "DeptID"));       //
            info.FolderID     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FolderID"));     //
            info.Remark       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Remark"));       //
            info.InputUserId  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputUserId"));  //
            info.InputTime    = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputTime"));    //
            info.UpdateUserId = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateUserId")); //
            info.UpdateTime   = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateTime"));   //
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XStaffCItemInfo info = modelInfo as XStaffCItemInfo;

            info.ID           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));          //
            info.RID          = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));          //
            info.UserId       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UserId"));       //
            info.CItemId      = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "CItemId"));      //
            info.Remark       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Remark"));       //
            info.InputUserId  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputUserId"));  //
            info.InputTime    = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputTime"));    //
            info.UpdateUserId = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateUserId")); //
            info.UpdateTime   = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateTime"));   //
        }
Ejemplo n.º 5
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XRemindConfigInfo info = modelInfo as XRemindConfigInfo;

            info.ID                 = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));                //主键
            info.RID                = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));                //主键
            info.ConfigType         = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "ConfigType"));         //提醒类型
            info.RemindDays         = XHelper.GetInt(XDataRowHelper.GetFieldValue(modelRow, "RemindDays"));            //提醒天数
            info.RemindInfoTemplate = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RemindInfoTemplate")); //提醒信息模版
            info.Remark             = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Remark"));             //备注信息
            info.InputUserId        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputUserId"));        //录入人
            info.InputTime          = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputTime"));          //录入时间
            info.UpdateUserId       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateUserId"));       //修改人
            info.UpdateTime         = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateTime"));         //修改时间
        }
Ejemplo n.º 6
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XTaskFilesInfo info = modelInfo as XTaskFilesInfo;

            info.ID           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));          //主键
            info.RID          = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));          //主键
            info.MainId       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "MainId"));       //任务ID
            info.FileName     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FileName"));     //文档名称
            info.FileDesc     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FileDesc"));     //文档描述
            info.Remark       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Remark"));       //备注信息
            info.InputUserId  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputUserId"));  //录入人
            info.InputTime    = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputTime"));    //录入时间
            info.UpdateUserId = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateUserId")); //修改人
            info.UpdateTime   = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateTime"));   //修改时间
        }
Ejemplo n.º 7
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XUseErroLogInfo info = modelInfo as XUseErroLogInfo;

            info.ID         = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));        //
            info.RID        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));        //
            info.TargetSite = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "TargetSite")); //
            info.Url        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Url"));        //
            info.Source     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Source"));     //
            info.StackTrace = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "StackTrace")); //
            info.HelpLink   = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "HelpLink"));   //
            info.Message    = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Message"));    //
            info.UserName   = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UserName"));   //
            info.LogTime    = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "LogTime"));    //
        }
Ejemplo n.º 8
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XEquipmentDetectInfo info = modelInfo as XEquipmentDetectInfo;

            info.ID  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));                           //
            info.RID = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));                           //
            info.EquipmentCheckId = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "EquipmentCheckId")); //
            info.DetectUserId     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "DetectUserId"));     //
            info.DetectReport     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "DetectReport"));     //
            info.Remark           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Remark"));           //
            info.InputUserId      = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputUserId"));      //
            info.InputTime        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputTime"));        //
            info.UpdateUserId     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateUserId"));     //
            info.UpdateTime       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateTime"));       //
        }
Ejemplo n.º 9
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XRoleMenusInfo info = modelInfo as XRoleMenusInfo;

            info.ID           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));          //
            info.RID          = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));          //
            info.RoleId       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RoleId"));       //
            info.MenuId       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "MenuId"));       //
            info.OrderIndex   = XHelper.GetInt(XDataRowHelper.GetFieldValue(modelRow, "OrderIndex"));      //
            info.Remark       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Remark"));       //
            info.InputUserId  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputUserId"));  //
            info.InputTime    = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputTime"));    //
            info.UpdateUserId = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateUserId")); //
            info.UpdateTime   = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateTime"));   //
        }
Ejemplo n.º 10
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XTemplateItemInfo info = modelInfo as XTemplateItemInfo;

            info.TemplateID     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "TemplateID"));     //
            info.ID             = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "TemplateItemID")); //
            info.TemplateItemID = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "TemplateItemID")); //
            info.ItemID         = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "ItemID"));         //
            info.X         = XHelper.GetDouble(XDataRowHelper.GetFieldValue(modelRow, "X"));                   //
            info.Y         = XHelper.GetDouble(XDataRowHelper.GetFieldValue(modelRow, "Y"));                   //
            info.Width     = XHelper.GetDouble(XDataRowHelper.GetFieldValue(modelRow, "Width"));               //
            info.Height    = XHelper.GetDouble(XDataRowHelper.GetFieldValue(modelRow, "Height"));              //
            info.FontSize  = XHelper.GetDouble(XDataRowHelper.GetFieldValue(modelRow, "FontSize"));            //
            info.FontName  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FontName"));            //
            info.StampTime = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "StampTime"));           //
            info.BranchID  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "BranchID"));            //
        }
Ejemplo n.º 11
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XStandCheckRecordInfo info = modelInfo as XStandCheckRecordInfo;

            info.ID            = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));           //主键
            info.RID           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));           //主键
            info.StandId       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "StandId"));       //标准ID
            info.CheckUserName = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "CheckUserName")); //检定人
            info.CheckDesc     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "CheckDesc"));     //检定描述
            info.CheckDate     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "CheckDate"));     //检定日期
            info.NextCheckDate = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "NextCheckDate")); //下次送检时间
            info.Remark        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Remark"));        //备注信息
            info.InputUserId   = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputUserId"));   //录入人
            info.InputTime     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputTime"));     //录入时间
            info.UpdateUserId  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateUserId"));  //修改人
            info.UpdateTime    = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateTime"));    //修改时间
        }
Ejemplo n.º 12
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XEquipmentPDFReportInfo info = modelInfo as XEquipmentPDFReportInfo;

            info.ID              = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));             //
            info.RID             = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));             //
            info.FileId          = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FileId"));          //
            info.AtchName        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "AtchName"));        //
            info.AtchDesc        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "AtchDesc"));        //
            info.AtchType        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "AtchType"));        //
            info.AtchSize        = XHelper.GetDouble(XDataRowHelper.GetFieldValue(modelRow, "AtchSize"));        //
            info.AtchPath        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "AtchPath"));        //
            info.AtchShotGifPath = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "AtchShotGifPath")); //
            info.AtchImag        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "AtchImag"));        //
            info.InputUserId     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputUserId"));     //
            info.InputTime       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputTime"));       //
        }
Ejemplo n.º 13
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XFileAttachmentInfo info = modelInfo as XFileAttachmentInfo;

            info.ID              = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));             //主键
            info.RID             = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));             //主键
            info.FileId          = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FileId"));          //文档主键
            info.AtchName        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "AtchName"));        //附件名称
            info.AtchDesc        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "AtchDesc"));        //附件描述
            info.AtchType        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "AtchType"));        //附件类型
            info.AtchSize        = XHelper.GetDouble(XDataRowHelper.GetFieldValue(modelRow, "AtchSize"));        //附件大小
            info.AtchPath        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "AtchPath"));        //附件路径
            info.AtchShotGifPath = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "AtchShotGifPath")); //缩略图路径
            info.AtchImag        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "AtchImag"));        //流文件
            info.InputUserId     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputUserId"));     //录入人
            info.InputTime       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputTime"));       //录入时间
        }
Ejemplo n.º 14
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XUseDeptInfo info = modelInfo as XUseDeptInfo;

            info.ID           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));              //主键
            info.RID          = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));              //主键
            info.ParentID     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "ParentID"));         //父级主键
            info.DeptName     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "DeptName"));         //部门名称
            info.NameNum      = XHelper.GetInt(XDataRowHelper.GetFieldValue(modelRow, "NameNum"));             //数值代码
            info.Spell        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Spell"));            //拼音
            info.SpellHeader  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "SpellHeader"));      //拼音头
            info.IsUsed       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "IsUsed")) == "True"; //是否可用
            info.Remark       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Remark"));           //备注信息
            info.InputUserId  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputUserId"));      //录入人
            info.InputTime    = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputTime"));        //录入时间
            info.UpdateUserId = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateUserId"));     //修改人
            info.UpdateTime   = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateTime"));       //修改时间
        }
Ejemplo n.º 15
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XStandFilesInfo info = modelInfo as XStandFilesInfo;

            info.ID            = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));                    //主键
            info.RID           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));                    //主键
            info.MainId        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "MainId"));                 //标准ID
            info.FileName      = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FileName"));               //文件名称
            info.FileNo        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FileNo"));                 //文件编号
            info.FileDesc      = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FileDesc"));               //文件描述
            info.Remark        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Remark"));                 //备注信息
            info.InputUserId   = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputUserId"));            //录入人
            info.InputTime     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputTime"));              //录入时间
            info.UpdateUserId  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateUserId"));           //修改人
            info.UpdateTime    = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateTime"));             //修改时间
            info.IsMaxVersion  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "IsMaxVersion")) == "True"; //
            info.NextCheckDate = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "NextCheckDate"));          //
            info.IsNeedCheck   = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "IsNeedCheck")) == "True";  //
        }
Ejemplo n.º 16
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XStaffCertificateInfo info = modelInfo as XStaffCertificateInfo;

            info.ID               = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));              //主键
            info.RID              = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));              //主键
            info.UserId           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UserId"));           //人员主键
            info.CertName         = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "CertName"));         //证书名称
            info.CertNo           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "CertNo"));           //证书编号
            info.CertGetTime      = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "CertGetTime"));      //获得时间
            info.CertItem         = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "CertItem"));         //检定项目描述
            info.Remark           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Remark"));           //备注信息
            info.InputUserId      = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputUserId"));      //录入人
            info.InputTime        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputTime"));        //录入时间
            info.UpdateUserId     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateUserId"));     //修改人
            info.UpdateTime       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateTime"));       //修改时间
            info.RegisterDate     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RegisterDate"));     //
            info.NextRegisterDate = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "NextRegisterDate")); //
        }
Ejemplo n.º 17
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XStandardInfo info = modelInfo as XStandardInfo;

            info.ID            = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));           //主键
            info.RID           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));           //主键
            info.StandNo       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "StandNo"));       //标准编号
            info.StandName     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "StandName"));     //标准名称
            info.CreateTime    = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "CreateTime"));    //创建时间
            info.NextCheckTime = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "NextCheckTime")); //下次考核时间
            info.CheckTimes    = XHelper.GetInt(XDataRowHelper.GetFieldValue(modelRow, "CheckTimes"));       //已考核次数
            info.ChargeUserId  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "ChargeUserId"));  //负责人
            info.Remark        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Remark"));        //备注信息
            info.InputUserId   = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputUserId"));   //录入人
            info.InputTime     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputTime"));     //录入时间
            info.UpdateUserId  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateUserId"));  //修改人
            info.UpdateTime    = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateTime"));    //修改时间
            info.StandStatus   = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "StandStatus"));   //
            info.StandDesc     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "StandDesc"));     //
        }
Ejemplo n.º 18
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XEquipmentReceiveInfo info = modelInfo as XEquipmentReceiveInfo;

            info.ID  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));                             //主键
            info.RID = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));                             //主键
            info.EquipmentCheckId  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "EquipmentCheckId"));  //接收设备
            info.CheckUserId       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "CheckUserId"));       //检定员
            info.Remark            = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Remark"));            //备注信息
            info.InputUserId       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputUserId"));       //录入人
            info.InputTime         = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputTime"));         //录入时间
            info.UpdateUserId      = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateUserId"));      //修改人
            info.UpdateTime        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateTime"));        //修改时间
            info.ReceiveUserId     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "ReceiveUserId"));     //
            info.ReceiveDate       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "ReceiveDate"));       //
            info.ReceiveDesc       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "ReceiveDesc"));       //
            info.CurrentStatus     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "CurrentStatus"));     //
            info.FlowStatus        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FlowStatus"));        //
            info.FlowUserId        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FlowUserId"));        //
            info.CheckedUserId     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "CheckedUserId"));     //
            info.CheckedDate       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "CheckedDate"));       //
            info.CheckedDesc       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "CheckedDesc"));       //
            info.VerifyUserId      = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "VerifyUserId"));      //
            info.CheckedReport     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "CheckedReport"));     //
            info.VerifyedUserId    = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "VerifyedUserId"));    //
            info.VerifyedDate      = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "VerifyedDate"));      //
            info.VerifyedDesc      = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "VerifyedDesc"));      //
            info.SignUserId        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "SignUserId"));        //
            info.SignedUserId      = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "SignedUserId"));      //
            info.SignedDate        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "SignedDate"));        //
            info.SignedDesc        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "SignedDesc"));        //
            info.DispatchUserId    = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "DispatchUserId"));    //
            info.IsBack            = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "IsBack")) == "True";  //
            info.BackDate          = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "BackDate"));          //
            info.BackReason        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "BackReason"));        //
            info.BackStatus        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "BackStatus"));        //
            info.BackUserId        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "BackUserId"));        //
            info.Quanlity          = XHelper.GetInt(XDataRowHelper.GetFieldValue(modelRow, "Quanlity"));             //
            info.StandId           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "StandId"));           //
            info.PdfReportFileName = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "PdfReportFileName")); //
        }
Ejemplo n.º 19
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XTemplateInfo info = modelInfo as XTemplateInfo;

            info.CatalogID    = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "CatalogID"));    //
            info.ID           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "TemplateID"));   //
            info.TemplateID   = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "TemplateID"));   //
            info.TemplateName = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "TemplateName")); //
            info.PageSize     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "PageSize"));     //
            info.Height       = XHelper.GetDouble(XDataRowHelper.GetFieldValue(modelRow, "Height"));       //
            info.Width        = XHelper.GetDouble(XDataRowHelper.GetFieldValue(modelRow, "Width"));        //
            info.FontName     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FontName"));     //
            info.FontSize     = XHelper.GetDouble(XDataRowHelper.GetFieldValue(modelRow, "FontSize"));     //
            info.TemplateBlob = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "TemplateBlob")); //
            info.TemplateType = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "TemplateType")); //
            info.Spell        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Spell"));        //
            info.Memo         = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Memo"));         //
            info.IsUsed       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "IsUsed"));       //
            info.BranchID     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "BranchID"));     //
            info.StampTime    = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "StampTime"));    //
        }
Ejemplo n.º 20
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XMeetingProjectInfo info = modelInfo as XMeetingProjectInfo;

            info.ID            = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));           //主键
            info.RID           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));           //主键
            info.ProjectName   = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "ProjectName"));   //工程名称
            info.ProjectDesc   = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "ProjectDesc"));   //工程描述
            info.StartTime     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "StartTime"));     //预计开始时间
            info.EndTime       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "EndTime"));       //预计结束时间
            info.Purveyor      = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Purveyor"));      //承办商
            info.Linkman       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Linkman"));       //联系人
            info.Tel           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Tel"));           //联系电话
            info.ProjectTypeId = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "ProjectTypeId")); //工程资料类别
            info.DeptId        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "DeptId"));        //部门名称
            info.Remark        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Remark"));        //备注信息
            info.InputUserId   = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputUserId"));   //录入人
            info.InputTime     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputTime"));     //录入时间
            info.UpdateUserId  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateUserId"));  //修改人
            info.UpdateTime    = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateTime"));    //修改时间
        }
Ejemplo n.º 21
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XStandEquipmentInfo info = modelInfo as XStandEquipmentInfo;

            info.ID                = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));                   //主键
            info.RID               = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));                   //主键
            info.MainId            = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "MainId"));                //检验标准主键
            info.EquipmentType     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "EquipmentType"));         //设备类型
            info.EquipmentCustId   = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "EquipmentCustId"));       //送检单位
            info.EquipmentNo       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "EquipmentNo"));           //设备编号
            info.EquipmentName     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "EquipmentName"));         //设备名称
            info.FactoryNo         = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FactoryNo"));             //出厂编号
            info.Spec              = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Spec"));                  //规格
            info.Model             = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Model"));                 //型号
            info.FactoryName       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FactoryName"));           //制造单位
            info.SourceTime        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "SourceTime"));            //溯源时间
            info.UseTime           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UseTime"));               //使用时间
            info.SourceCustId      = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "SourceCustId"));          //溯源单位
            info.SourceTypeId      = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "SourceTypeId"));          //溯源方式
            info.EquipmentStatusId = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "EquipmentStatusId"));     //设备状态
            info.SignStatus        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "SignStatus"));            //标识状态
            info.Quanlity          = XHelper.GetInt(XDataRowHelper.GetFieldValue(modelRow, "Quanlity"));                 //数量
            info.LinkMan           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "LinkMan"));               //联系人
            info.Tel               = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Tel"));                   //电话
            info.Email             = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Email"));                 //电子邮件
            info.CheckAccord       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "CheckAccord"));           //坚定依据
            info.LastCheckDate     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "LastCheckDate"));         //最后检定日期
            info.CheckResult       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "CheckResult"));           //坚定结论
            info.ValidDate         = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "ValidDate"));             //有效日期
            info.CertNo            = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "CertNo"));                //检定证书编号
            info.EquipmentDesc     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "EquipmentDesc"));         //设备描述
            info.Remark            = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Remark"));                //备注信息
            info.InputUserId       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputUserId"));           //录入人
            info.InputTime         = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputTime"));             //录入时间
            info.UpdateUserId      = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateUserId"));          //修改人
            info.UpdateTime        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateTime"));            //修改时间
            info.NextCheckDate     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "NextCheckDate"));         //
            info.IsNeedCheck       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "IsNeedCheck")) == "True"; //
        }
Ejemplo n.º 22
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XFileListInfo info = modelInfo as XFileListInfo;

            info.ID           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));          //主键
            info.RID          = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));          //主键
            info.FileNo       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FileNo"));       //文档编号
            info.FileName     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FileName"));     //文档名称
            info.FileDesc     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FileDesc"));     //文档描述
            info.FolderTypeId = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FolderTypeId")); //文件夹类型
            info.FileTypeId   = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FileTypeId"));   //文档类型
            info.FileLevelId  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FileLevelId"));  //文档级别
            info.FileStateId  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FileStateId"));  //文档状态
            info.PageNum      = XHelper.GetInt(XDataRowHelper.GetFieldValue(modelRow, "PageNum"));         //文档页数
            info.UserId       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UserId"));       //用户ID
            info.DeptId       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "DeptId"));       //部门ID
            info.Remark       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Remark"));       //备注信息
            info.InputUserId  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputUserId"));  //录入人
            info.InputTime    = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputTime"));    //录入时间
            info.UpdateUserId = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateUserId")); //修改人
            info.UpdateTime   = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateTime"));   //修改时间
        }
Ejemplo n.º 23
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XUsersInfo info = modelInfo as XUsersInfo;

            info.ID           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));                   //主键
            info.RID          = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));                   //主键
            info.UserType     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UserType"));              //用户类型
            info.UserName     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UserName"));              //用户名
            info.RealName     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RealName"));              //真实姓名
            info.NameNum      = XHelper.GetInt(XDataRowHelper.GetFieldValue(modelRow, "NameNum"));                  //数值代码
            info.PassWord     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "PassWord"));              //密码
            info.UserState    = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UserState"));             //用户状态
            info.IsAdmin      = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "IsAdmin")) == "True";     //是否管理员
            info.IsUsed       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "IsUsed")) == "True";      //是否可用
            info.AuditTel     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "AuditTel"));              //审核临时密码手机号
            info.IsDownPower  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "IsDownPower")) == "True"; //是否超权限下载
            info.OrderIndex   = XHelper.GetInt(XDataRowHelper.GetFieldValue(modelRow, "OrderIndex"));               //排序
            info.Remark       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Remark"));                //备注信息
            info.InputUserId  = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputUserId"));           //录入人
            info.InputTime    = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputTime"));             //录入时间
            info.UpdateUserId = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateUserId"));          //修改人
            info.UpdateTime   = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateTime"));            //修改时间
        }
Ejemplo n.º 24
0
        /// <summary>
        /// 将数据行转换为实体
        /// </summary>
        /// <param name="modelRow">数据行记录</param>
        /// <returns>实体信息</returns>
        protected override void DataRow2ModelBase(XModelBase modelInfo, DataRow modelRow)
        {
            XStaffInfoInfo info = modelInfo as XStaffInfoInfo;

            info.ID                 = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));                //主键
            info.RID                = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RID"));                //主键
            info.UserName           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UserName"));           //姓名
            info.UserSex            = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UserSex"));            //性别
            info.Nationality        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Nationality"));        //民族
            info.UserAge            = XHelper.GetInt(XDataRowHelper.GetFieldValue(modelRow, "UserAge"));               //年龄
            info.Birthday           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Birthday"));           //出生日期
            info.NativePlace        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "NativePlace"));        //籍贯
            info.StartWorkDate      = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "StartWorkDate"));      //参加工作时间
            info.ToCompWorkDate     = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "ToCompWorkDate"));     //到本单位工作时间
            info.PersonID           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "PersonID"));           //身份证号
            info.Specialty          = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Specialty"));          //特长
            info.HouseHoldAddr      = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "HouseHoldAddr"));      //户口所在地
            info.HomeAddress        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "HomeAddress"));        //家庭地址
            info.HomeTel            = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "HomeTel"));            //家庭电话
            info.MobileNo           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "MobileNo"));           //手机号
            info.WorkTel            = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "WorkTel"));            //工作电话
            info.Education          = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Education"));          //文化程度
            info.Major              = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Major"));              //所学专业
            info.University         = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "University"));         //毕业院校
            info.MeasureWorkYears   = XHelper.GetInt(XDataRowHelper.GetFieldValue(modelRow, "MeasureWorkYears"));      //计量工作年限
            info.MeasureWorkContent = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "MeasureWorkContent")); //负责计量工作内容
            info.DeptId             = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "DeptId"));             //部门
            info.Post               = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Post"));               //职务
            info.RoleId             = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "RoleId"));             //角色
            info.UserId             = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UserId"));             //关联用户
            info.Remark             = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "Remark"));             //备注
            info.InputUserId        = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputUserId"));        //录入人
            info.InputTime          = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "InputTime"));          //录入时间
            info.UpdateUserId       = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateUserId"));       //修改人
            info.UpdateTime         = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "UpdateTime"));         //修改时间
            info.FileName           = XHelper.GetString(XDataRowHelper.GetFieldValue(modelRow, "FileName"));           //
        }