public static UserInfo ConvertUserInfo(tbl_User_NoPhoto user) { var userinfo = new UserInfo(); userinfo.Key = user.keyid; userinfo.Name = user.C_Name; userinfo.LoginName = user.C_LoginName; userinfo.UpdatedDate = user.C_UpdatedDate + string.Empty; userinfo.CreatedDate = user.C_CreatedDate + string.Empty; userinfo.Sex = user.C_Sex; return(userinfo); }
public static UserInfo ConvertUserInfo(tbl_User_NoPhoto user) { var encryter = new DES(); var userinfo = new UserInfo(); userinfo.Key = user.keyid; userinfo.Name = user.C_Name + string.Empty; userinfo.PassWord = encryter.DesDecrypt(user.C_PassWord); userinfo.LoginName = user.C_LoginName + string.Empty; userinfo.Sex = user.C_Sex; userinfo.CreatedDate = user.C_CreatedDate.ToString(); if (user.C_UpdatedDate == null) { userinfo.UpdatedDate = "----"; } else { userinfo.UpdatedDate = user.C_UpdatedDate.ToString(); } return(userinfo); }