public static string UpdatePwdById(int userid, string pwd) { try { TUserInfo person = TUserInfo.FindById(userid); person.Pwd = pwd; person.IsDel = false; //person.CreateUserId = createuserid; //person.CreateTime = createtime; person.Save(); return("1"); } catch { return("0"); } }
public static string AddVipMember(string account, string pwd, string name, int createuserid, DateTime createtime) { try { var VipMember = new TUserInfo(); VipMember.Account = account; VipMember.Pwd = pwd; VipMember.Name = name; VipMember.IsDel = false; VipMember.CreateTime = createtime; VipMember.CreateUserId = createuserid; VipMember.Save(); return("1"); } catch { return("0"); } }
public static string UpdatePersonMemberAccount(int personmemberid, string account, int createuserid, DateTime createtime) { try { TUserInfo person = TUserInfo.FindOne(CK.K["PersonMemberId"] == personmemberid && CK.K["IsDel"] == "False"); person.Account = account; person.IsDel = false; person.CreateUserId = createuserid; person.CreateTime = createtime; person.Save(); return("1"); } catch { return("0"); } }
public static string AddGroupMember(string account, string pwd, string name, int groupmemberid, int createuserid, DateTime createtime) { try { var groupmember = new TUserInfo(); groupmember.Account = account; groupmember.Pwd = pwd; groupmember.Name = name; groupmember.UserTypeId = 5; groupmember.GroupMemberId = groupmemberid; groupmember.IsDel = false; groupmember.CreateUserId = createuserid; groupmember.CreateTime = createtime; groupmember.Save(); return("1"); } catch { return("0"); } }
//新增个人会员 public static string AddPersonMember(string account, string pwd, string name, int personmemberid, int createuserid, DateTime createtime) { try { var personmember = new TUserInfo(); personmember.Account = account; personmember.Pwd = pwd; personmember.Name = name; personmember.UserTypeId = 4; personmember.PersonMemberId = personmemberid; personmember.IsDel = false; personmember.CreateUserId = createuserid; personmember.CreateTime = createtime; personmember.Save(); return("1"); } catch { return("0"); } }
public static string AddAsAdmin(string account, string pwd, string name, int associationid, int createuserid, DateTime createtime) { try { var AsAdmin = new TUserInfo(); AsAdmin.Account = account; AsAdmin.Pwd = pwd; AsAdmin.Name = name; AsAdmin.UserTypeId = 2; AsAdmin.AssociationId = associationid; AsAdmin.IsDel = false; AsAdmin.CreateUserId = createuserid; AsAdmin.CreateTime = createtime; AsAdmin.Save(); return("1"); } catch { return("0"); } }
public static string AddUser(string account, string pwd, string name, int userTypeId, string IDCardNum, string Phone, int createuserid, DateTime createtime) { try { var AsAdmin = new TUserInfo(); AsAdmin.Account = account; AsAdmin.Pwd = pwd; AsAdmin.Name = name; AsAdmin.UserTypeId = userTypeId; AsAdmin.IDCardNum = IDCardNum; AsAdmin.Phone = Phone; AsAdmin.IsDel = false; AsAdmin.CreateUserId = createuserid; AsAdmin.CreateTime = createtime; AsAdmin.Save(); return("1"); } catch { return("0"); } }