/// <summary> /// 获取微信绑定用户列表 /// </summary> /// <returns></returns> public DataTable Query(UserReg bean) { return _dal.Query(bean); }
public bool Exist(UserReg bean) { return _dal.Exist(bean); }
public void Del(UserReg bean) { _dal.Del(bean); }
public void Add(UserReg bean) { _dal.Add(bean); }
/// <summary> /// 用户注册 /// </summary> /// <param name="context"></param> public void UserReg1(HttpContext context) { var bll = new UserRegBll(); var qymc = context.Request["qymc"] ?? ""; var lxr = context.Request["lxr"] ?? ""; var phonenumber = context.Request["phonenumber"] ?? ""; try { var bean = new UserReg() { Wxid = qymc, RNumber = qymc,//用户编号 bak2 = lxr,//用户名称 PhoneNumber = phonenumber, }; bll.Add(bean); context.Response.Write("{\"success\":true,\"msg\":\"注册成功!\"}"); } catch (Exception e) { Log.Debug("方法名:UserReg,描述:用户注册方法出错,错误原因:" + e.Message); context.Response.Write("{\"success\":false,\"msg\":\"注册失败!\"}"); } }
/// <summary> /// 用户注册 /// </summary> /// <param name="context"></param> public void UserReg(HttpContext context) { var bll = new UserRegBll(); var wxid = context.Request["wxid"] ?? ""; var qymc = context.Request["qymc"] ?? ""; var lxr = context.Request["lxr"] ?? ""; var phonenumber = context.Request["phonenumber"] ?? ""; var tel = context.Request["tel"] ?? ""; var zhiwu = context.Request["zhiwu"] ?? ""; try { var bean = new UserReg() { Wxid = wxid, RNumber = qymc,//用户编号 bak1 = qymc,//企业名称 bak2 = lxr,//用户名称 bak3 = tel,//固话 bak4 = zhiwu,//职务 PhoneNumber = phonenumber,//手机 }; bll.Add(bean); context.Response.Write("{\"success\":true,\"msg\":\"注册成功!\"}"); } catch (Exception e) { Log.Debug("方法名:UserReg,描述:用户注册方法出错,错误原因:" + e.Message); context.Response.Write("{\"success\":false,\"msg\":\"注册失败!\"}"); } }