Exemple #1
0
        /// <summary>
        /// 学生列表转换
        /// </summary>
        /// <param name="arg"></param>
        /// <returns></returns>
        private OurUser GetUserListTran(IDataReader arg)
        {
            OurUser ourUser = new OurUser();

            ourUser.UserID     = DataRecord.GetInt32(arg, "UserID");
            ourUser.Tel        = DataRecord.GetString(arg, "Tel");
            ourUser.UserName   = DataRecord.GetString(arg, "UserName");
            ourUser.CreateTime = DataRecord.GetDateTime(arg, "CreateTime");
            return(ourUser);
        }
Exemple #2
0
        /// <summary>
        /// 机构列表转换
        /// </summary>
        /// <param name="arg"></param>
        /// <returns></returns>
        private Org GetOrgListTran(IDataReader arg)
        {
            Org org = new Org();

            org.OrgId   = DataRecord.GetInt32(arg, "OrgId");
            org.OrgName = DataRecord.GetString(arg, "OrgName");

            org.ImgUrl  = DataRecord.GetString(arg, "ImgUrl");
            org.Content = DataRecord.GetString(arg, "Content");
            org.LinkTel = DataRecord.GetString(arg, "LinkTel");
            org.LInkMan = DataRecord.GetString(arg, "LInkMan");
            org.Address = DataRecord.GetString(arg, "Address");


            org.UpdateTime = DataRecord.GetDateTime(arg, "UpdateTime").ToString("yyyy-MM-dd HH:mm");

            return(org);
        }