protected void Save_Btn_Click(object sender, EventArgs e) { string telephone = Telephone_T.Text.Replace(" ", ""); string mobile = Mobile_T.Text.Replace(" ", ""); if (string.IsNullOrEmpty(telephone) && string.IsNullOrEmpty(mobile)) { function.Script(this, "alert('电话和手机不能同时为空!');"); return; } upMod = B_User_Plat.GetLogin(); JObject json = new JObject(); json.Add("mail", Mails_T.Text); json.Add("mobile", mobile); json.Add("telephone", telephone); json.Add("compid", upMod.CompID); json.Add("compshort", CompShort_T.Text); ualyMod = new M_Common_UserApply(); ualyMod.ZType = "plat_compcert"; ualyMod.UserID = upMod.UserID; ualyMod.UserName = upMod.UserName; ualyMod.Remind = CompName_T.Text; ualyMod.UserRemind = JsonConvert.SerializeObject(json); ualyBll.Insert(ualyMod); function.WriteSuccessMsg("申请已提交,请等待管理员审核", "/Plat/"); }
//申请加入 protected void Apply_B_Click(object sender, EventArgs e) { int compid = DataConverter.CLng(compId_Hid.Value); M_UserInfo mu = buser.GetLogin(); //记录用户信息并写入 ualyMod.UserID = mu.UserID; ualyMod.ZType = "plat_joincomp"; ualyMod.UserName = mu.UserName + "(" + mu.TrueName + ")"; ualyMod.Remind = compid.ToString(); ualyMod.IP = IPScaner.GetUserIP(); ualyBll.Insert(ualyMod); function.WriteSuccessMsg("申请成功,请等待管理员审核"); }
//申请加入公司(一张表用于存其)//ZL_Plat_JoinCompApply protected void AddComp_Btn_Click(object sender, EventArgs e) { M_User_Plat upMod = B_User_Plat.GetLogin(); //记录用户信息并写入 M_Common_UserApply ualyMod = new M_Common_UserApply(); B_Common_UserApply ualyBll = new B_Common_UserApply(); ualyMod.UserID = upMod.UserID; ualyMod.ZType = "plat_joincomp"; ualyMod.UserName = upMod.UserName + "(" + upMod.TrueName + ")"; ualyMod.Remind = CompID.ToString(); ualyMod.IP = IPScaner.GetUserIP(); ualyBll.Insert(ualyMod); function.WriteSuccessMsg("申请成功,请等待管理员审核", "/Plat/"); }
protected void Save_Btn_Click(object sender, EventArgs e) { M_UserInfo mu = buser.GetLogin(); M_Common_UserApply alyMod = new M_Common_UserApply("plat_applyopen"); alyMod.UserID = mu.UserID; alyMod.UserName = mu.UserName; alyMod.Remind = UserRemind_T.Text; alyMod.CompName = CompName_T.Text; alyMod.Info1 = CompShort_T.Text; alyMod.Contact = Contact_T.Text; alyMod.Email = Email_T.Text; alyMod.Mobile = Mobile_T.Text; alyMod.QQ = QQ_T.Text; alyBll.Insert(alyMod); function.WriteSuccessMsg("您已经成功申请,系统审核后会以电子邮件通知您"); }