/// <summary> /// 会员登录 /// </summary> /// <param name="RGUserGuid"></param> /// <param name="RGUserName"></param> private void RG_Login(string RGLoginID) { #region rgUser.RefreshSession(RGLoginID); //获取密码 //string pwd FormsAuthentication.SetAuthCookie(HttpUtility.UrlEncode(RGLoginID), false); //保存登录名到HttpCookie HttpCookie cookie1 = new HttpCookie("RegisterUser_LoginID"); cookie1.Value = HttpUtility.UrlEncode(RGLoginID); DateTime dtNow = DateTime.Now; TimeSpan tsMinute = new TimeSpan(1000, 0, 0, 0); cookie1.Expires = dtNow + tsMinute; Response.AppendCookie(cookie1); //CopyMail(); LoginRecord(); //InitOnlineChatSession(); string FramePageUrl = ApplicationOperate.GetConfigValueByName("RegisterUser_FramePageUrl"); if (FramePageUrl == "") { FramePageUrl = "../../Pages/Frame2/Default.aspx"; } Response.Redirect(FramePageUrl); #endregion }
protected void btnEdit_Click(object sender, System.EventArgs e) { //if (TJDate_2021.Text == "") //{ // TJDate_2021.Text = DateTime.Now.ToString(); //} string message = ""; //message = RG_DW.ChenkZYFuZeRen(Request["RowGuid"], DWGuid_2021.Text, ZiZhiDJCode_2021.Text); //if (message != "")//说明有些专业没有配置人 //{ // WriteAjaxMessage("alert('" + message + "');"); // return; //} TJRGuid_2021.Text = this.UserGuid; TJDate_2021.Text = DateTime.Now.ToString(); oEditPage.SaveTableValues(Request["RowGuid"], tdContainer); if (ApplicationOperate.GetConfigValueByName("IsHoldCurPage", "0") == "1") { this.WriteAjaxMessage("refreshParentHoldCurPage();"); } else { this.WriteAjaxMessage("refreshParent();"); } this.WriteAjaxMessage("EP_ShowMessageDiv(" + tdContainer.ClientID + ",'数据保存成功')"); }
protected void SaveOpinion(string Opinion2, bool needSendSMS) { string Opinion = "审核通过"; if (SHOpinion.Text.Trim() != "") { Opinion += ",审核意见为:" + Epoint.MisBizLogic2.DB.SQL_Encode(SHOpinion.Text.Trim()); } RG_DW.InsertSHOpinion(Request["RowGuid"], this.DisplayName, Opinion, ""); //AlertAjaxMessage("操作成功"); tabOP.Visible = false; //删除待办事宜 new HTProject_Bizlogic.DB_Messages_Center().WaitHandle_Delete("备案信息审核", Request["RowGuid"]); AlertAjaxMessage("操作成功"); if (needSendSMS) { //添加短信 string IsSendSMS = ApplicationOperate.GetConfigValueByName("IsSendOUSMS"); if (IsSendSMS == "1") { Detail_RG_User D_R_User = DB_R_User.GetDetail(TJRGuid_2021.Text); if (D_R_User.Mobile != "") { HTSMS.SendSMS(this.DisplayName, D_R_User.DispName, "您提交的" + XMName_2021.Text + "的项目备案信息已被" + Opinion2 + "审核通过,请及时关注,谢谢", D_R_User.Mobile); } } } }
protected void btnNoPass_Click(object sender, System.EventArgs e) { //Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow(oDetailPage.TableDetail.SQL_TableName, Request["RowGuid"]); //oRow["Status"] = "80"; //oRow.Update(); tabOP.Visible = false; //AlertAjaxMessage("操作成功"); //删除待办事宜 new HTProject_Bizlogic.DB_Messages_Center().WaitHandle_Delete("人员信息审核", Request["RowGuid"]); AlertAjaxMessage("操作成功"); //添加短信 string IsSendSMS = ApplicationOperate.GetConfigValueByName("IsSendOUSMS"); if (IsSendSMS == "1") { Detail_RG_User D_R_User = DB_R_User.GetDetail(TJRGuid_2019.Text); if (D_R_User.Mobile != "") { HTSMS.SendSMS(this.DisplayName, D_R_User.DispName, "您提交的" + XM_2019.Text + "的离职申请审核未通过,请及时关注,谢谢", D_R_User.Mobile); } } this.WriteAjaxMessage("refreshParent();"); this.WriteAjaxMessage("window.close();"); }
protected void btnEdit_Click(object sender, System.EventArgs e) { if (RG_DW.IsExistByZiZhi(ZiZhiCode_2020.Text.Trim(), Request["RowGuid"])) { this.WriteAjaxMessage("alert('该资质编号已存在');"); return; } //看看状态,是编辑中,还是已通过 //if (Status_2020.SelectedValue == "90")//审核通过的,保存是变成变更状态 //{ // Status_2020.SelectedValue = "85"; //} ZiZhiText_2020.Text = RegionTreeView.Text; ZiZhiTextCode_2020.Text = RegionTreeView.Value; oEditPage.SaveTableValues(Request["RowGuid"], tdContainer); if (ApplicationOperate.GetConfigValueByName("IsHoldCurPage", "0") == "1") { this.WriteAjaxMessage("refreshParentHoldCurPage();"); } else { this.WriteAjaxMessage("refreshParent();"); } //this.WriteAjaxMessage("EP_ShowMessageDiv(" + tdContainer.ClientID + ",'数据保存成功')"); this.WriteAjaxMessage("alert('保存成功');"); }
protected void btnNoPass_Click(object sender, System.EventArgs e) { Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow(oDetailPage.TableDetail.SQL_TableName, Request["RowGuid"]); oRow["Status"] = "80"; oRow.Update(); string Opinion = "审核不通过"; if (SHOpinion.Text.Trim() != "") { Opinion += ",审核意见为:" + Epoint.MisBizLogic2.DB.SQL_Encode(SHOpinion.Text.Trim()); } RG_DW.InsertSHOpinion(Request["RowGuid"], this.DisplayName, Opinion, ""); tabOP.Visible = false; //AlertAjaxMessage("操作成功"); //删除待办事宜 new HTProject_Bizlogic.DB_Messages_Center().WaitHandle_Delete("备案信息审核", Request["RowGuid"]); AlertAjaxMessage("操作成功"); //添加短信 string IsSendSMS = ApplicationOperate.GetConfigValueByName("IsSendOUSMS"); if (IsSendSMS == "1") { Detail_RG_User D_R_User = DB_R_User.GetDetail(TJRGuid_2021.Text); if (D_R_User.Mobile != "") { HTSMS.SendSMS(this.DisplayName, D_R_User.DispName, "您提交的" + XMName_2021.Text + "的项目备案信息审核未通过,请及时关注,谢谢", D_R_User.Mobile); } } this.WriteAjaxMessage("refreshParent();"); this.WriteAjaxMessage("window.close();"); }
protected void btSubmit_Click(object sender, System.EventArgs e) { //先将原来的删除,防止重复 new HTProject_Bizlogic.DB_Messages_Center().DeleteWH("审核企业", Request["RowGuid"]); RegistAddress_2017.Text = RegionTreeView.Text; RegistAddressCode_2017.Text = RegionTreeView.Value; TJRGuid_2017.Text = this.UserGuid; //Status_2017.Text = "70"; oEditPage.SaveTableValues(Request["RowGuid"], tdContainer); Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow(oEditPage.TableDetail.SQL_TableName, Request["RowGuid"]); oRow["Status"] = "70"; oRow["UpdateUserName"] = this.DisplayName; oRow["UpdateUserGuid"] = this.UserGuid; oRow["UpdateTime"] = DateTime.Now.ToString(); oRow.Update(); //this.WriteAjaxMessage("refreshParent();"); //this.WriteAjaxMessage("EP_ShowMessageDiv(" + tdContainer.ClientID + ",'数据保存成功')"); //发送待审核事宜,根据角色来 DataView dv = DBF.GetUserByRoleName("企业信息审核"); for (int m = 0; m < dv.Count; m++) { string messageGuid = Guid.NewGuid().ToString(); new HTProject_Bizlogic.DB_Messages_Center().WaitHandle_Insert(messageGuid, EnterpriseName_2017.Text + "信息审核", "", dv[m]["UserGuid"].ToString(), dv[m]["DisplayName"].ToString(), "", "", "", @"HTProject/Pages/RG_OU/RG_OU_All_Detail.aspx?stype=shenhe&RowGuid=" + Request["RowGuid"], "", "", 1, "", "", "" ); //更新标志位 string strSql = "update messages_center set PType='审核企业',PGuid='" + Request["RowGuid"] + "' where MessageItemGuid='" + messageGuid + "'"; Epoint.MisBizLogic2.DB.ExecuteNonQuery(strSql); //添加短信 string IsSendADSMS = ApplicationOperate.GetConfigValueByName("IsSendADSMS"); if (IsSendADSMS == "1") { if (dv[m]["Mobile"].ToString() != "") { HTSMS.SendSMS(this.DisplayName, dv[m]["DisplayName"], EnterpriseName_2017.Text + "提交企业信息审核", dv[m]["Mobile"]); } } } AlertAjaxMessage("提交成功"); this.WriteAjaxMessage("refreshParent();window.close();"); }
protected void btSubmit_Click(object sender, System.EventArgs e) { //if (RG_DW.IsExistByZiZhi(ZiZhiCode_2020.Text.Trim(), Request["RowGuid"])) //{ // this.WriteAjaxMessage("alert('该资质编号已存在');"); // return; //} //先将原来的删除,防止重复 new HTProject_Bizlogic.DB_Messages_Center().DeleteWH("审核企业资质", Request["RowGuid"]); ZiZhiText_2020.Text = RegionTreeView.Text; ZiZhiTextCode_2020.Text = RegionTreeView.Value; Status_2020.SelectedValue = "70"; TJ_Date_2020.Text = DateTime.Now.ToString("yyyy-MM-dd"); TJRGuid_2020.Text = this.UserGuid; oEditPage.SaveTableValues(Request["RowGuid"], tdContainer); //发送待审核事宜,根据角色来 DataView dv = DBF.GetUserByRoleName("企业资质审核"); for (int m = 0; m < dv.Count; m++) { string messageGuid = Guid.NewGuid().ToString(); new HTProject_Bizlogic.DB_Messages_Center().WaitHandle_Insert(messageGuid, lblDWName.Text + "资质信息审核", "", dv[m]["UserGuid"].ToString(), dv[m]["DisplayName"].ToString(), "", "", "", @"HTProject/Pages/RG_QYZiZhi/RG_QYZiZhi_ADDetail.aspx?stype=shenhe&RowGuid=" + Request["RowGuid"], "", "", 1, "", "", "" ); //更新标志位 string strSql = "update messages_center set PType='审核企业资质',PGuid='" + Request["RowGuid"] + "' where MessageItemGuid='" + messageGuid + "'"; Epoint.MisBizLogic2.DB.ExecuteNonQuery(strSql); //添加短信 string IsSendADSMS = ApplicationOperate.GetConfigValueByName("IsSendADSMS"); if (IsSendADSMS == "1") { if (dv[m]["Mobile"].ToString() != "") { HTSMS.SendSMS(this.DisplayName, dv[m]["DisplayName"], lblDWName.Text + "提交资质信息审核", dv[m]["Mobile"]); } } } AlertAjaxMessage("提交成功"); this.WriteAjaxMessage("refreshParent();window.close();"); }
protected void btnPass_Click(object sender, System.EventArgs e) { //判断人员和资质是否有没有审核的 string strSql = "SELECT COUNT(*) FROM RG_QiYeZiZhi WHERE Status='70' AND DelStatus=0 AND DWGuid='" + Request["RowGuid"] + "'"; //if (Epoint.MisBizLogic2.DB.ExecuteToInt(strSql) > 0) //{ // AlertAjaxMessage("存在未审核的企业资质"); // return; //} //strSql = "SELECT COUNT(*) FROM RG_QYUser WHERE Status='70' AND DelStatus=0 AND DWGuid='" + Request["RowGuid"] + "'"; //if (Epoint.MisBizLogic2.DB.ExecuteToInt(strSql) > 0) //{ // AlertAjaxMessage("存在未审核的企业人员"); // return; //} Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow(oDetailPage.TableDetail.SQL_TableName, Request["RowGuid"]); oRow["Status"] = "90"; oRow["TG_Date"] = DateTime.Now.ToString(); oRow.Update(); //AlertAjaxMessage("操作成功"); string Opinion = "审核通过"; if (SHOpinion.Text.Trim() != "") { Opinion += ",审核意见为:" + Epoint.MisBizLogic2.DB.SQL_Encode(SHOpinion.Text.Trim()); } RG_DW.InsertSHOpinion(Request["RowGuid"], this.DisplayName, Opinion, ""); //AlertAjaxMessage("操作成功"); tabOP.Visible = false; //删除待办事宜 new HTProject_Bizlogic.DB_Messages_Center().WaitHandle_Delete("审核企业", Request["RowGuid"]); AlertAjaxMessage("操作成功"); //添加短信 string IsSendSMS = ApplicationOperate.GetConfigValueByName("IsSendOUSMS"); if (IsSendSMS == "1") { Detail_RG_User D_R_User = DB_R_User.GetDetail(TJRGuid_2017.Text); if (D_R_User.Mobile != "") { HTSMS.SendSMS(this.DisplayName, D_R_User.DispName, "您提交的企业信息已审核通过,请及时关注,谢谢", D_R_User.Mobile); } } this.WriteAjaxMessage("refreshParent();"); this.WriteAjaxMessage("window.close();"); }
protected void btnLiZhi_Click(object sender, System.EventArgs e) { TJRGuid_2019.Text = this.UserGuid; oEditPage.SaveTableValues(Request["RowGuid"], tdContainer); Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow(oEditPage.TableDetail.SQL_TableName, Request["RowGuid"]); //先将原来的删除,防止重复 new HTProject_Bizlogic.DB_Messages_Center().DeleteWH("人员信息审核", Request["RowGuid"]); //发送待审核事宜,根据角色来 DataView dv = DBF.GetUserByRoleName("人员信息审核"); for (int m = 0; m < dv.Count; m++) { string messageGuid = Guid.NewGuid().ToString(); new HTProject_Bizlogic.DB_Messages_Center().WaitHandle_Insert(messageGuid, oRow["XM"] + "[" + lblDWName.Text + "]离职申请审核", "", dv[m]["UserGuid"].ToString(), dv[m]["DisplayName"].ToString(), "", "", "", @"HTProject/Pages/RG_QYUser/RG_QYUser_LiZhi_Detail.aspx?RowGuid=" + Request["RowGuid"], "", "", 1, "", "", "" ); //更新标志位 string strSql = "update messages_center set PType='人员信息审核',PGuid='" + Request["RowGuid"] + "' where MessageItemGuid='" + messageGuid + "'"; Epoint.MisBizLogic2.DB.ExecuteNonQuery(strSql); //添加短信 string IsSendADSMS = ApplicationOperate.GetConfigValueByName("IsSendADSMS"); if (IsSendADSMS == "1") { if (dv[m]["Mobile"].ToString() != "") { HTSMS.SendSMS(this.DisplayName, dv[m]["DisplayName"], lblDWName.Text + "提交人员离职申请", dv[m]["Mobile"]); } } } AlertAjaxMessage("提交成功"); WriteAjaxMessage("window.close();"); }
protected void btnEdit_Click(object sender, System.EventArgs e) { RegistAddress_2017.Text = RegionTreeView.Text; RegistAddressCode_2017.Text = RegionTreeView.Value; oEditPage.SaveTableValues(Request["RowGuid"], tdContainer); if (ApplicationOperate.GetConfigValueByName("IsHoldCurPage", "0") == "1") { this.WriteAjaxMessage("refreshParentHoldCurPage();"); } else { this.WriteAjaxMessage("refreshParent();"); } this.WriteAjaxMessage("EP_ShowMessageDiv(" + tdContainer.ClientID + ",'数据保存成功')"); }
protected void btnEdit_Click(object sender, System.EventArgs e) { Status_2017.Text = "85";//变更中 RegistAddress_2017.Text = RegionTreeView.Text; RegistAddressCode_2017.Text = RegionTreeView.Value; oEditPage.SaveTableValues(Request["RowGuid"], tdContainer); Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow(oEditPage.TableDetail.SQL_TableName, Request["RowGuid"]); oRow["Status"] = "85"; oRow.Update(); if (ApplicationOperate.GetConfigValueByName("IsHoldCurPage", "0") == "1") { this.WriteAjaxMessage("refreshParentHoldCurPage();"); } else { this.WriteAjaxMessage("refreshParent();"); } this.WriteAjaxMessage("EP_ShowMessageDiv(" + tdContainer.ClientID + ",'数据保存成功')"); }
public string CreateRnd(int Leng) { string Ar1 = "A,B,C,D,E,F,G,H,J,K,L,M,N,P,Q,R,S,T,U,V,W,X,Y,Z,2,3,4,5,6,7,8,9"; //登录页面验证是否简单验证,即验证码为数字组成,否则由数字+字母组成。如果简单=1,否则=0 string LoginSimpleVlidate = ApplicationOperate.GetConfigValueByName("LoginSimpleVlidate"); if (LoginSimpleVlidate == "1") { Ar1 = "0,1,2,3,4,5,6,7,8,9"; } string[] ListAr = Ar1.Split(','); Random RD = new Random(); int rnd = 0; string strRnd = ""; for (int j = 1; j < Leng; j++) { rnd = RD.Next(0, ListAr.Length); strRnd += ListAr[rnd]; } return(strRnd); }
protected void btnEdit_Click(object sender, System.EventArgs e) { //判断下身份证s是否已经有了 string oName = ""; if (RG_DW.IsExistByIDNO(IDNum_2019.Text.Trim(), out oName, Request["RowGuid"])) { this.WriteAjaxMessage("alert('该身份证已经存在,姓名为:" + oName + "');"); return; } //看注册章 if (YinZhangNo_2019.Text.Trim() != "") { if (ZCZ_YXQ_2019.Text == "") { //ZCZ_YXQ_2019.Text = DateTime.Now.AddMonths(1).ToString("yyyy-MM-dd"); this.WriteAjaxMessage("alert('请填写注册章1有效期');"); return; } } else { ZCZ_YXQ_2019.Text = ""; } if (YinZhangNo1_2019.Text.Trim() != "") { if (ZCZ_YXQ1_2019.Text == "") { //ZCZ_YXQ_2019.Text = DateTime.Now.AddMonths(1).ToString("yyyy-MM-dd"); this.WriteAjaxMessage("alert('请填写注册章2有效期');"); return; } } else { ZCZ_YXQ1_2019.Text = ""; } if (YinZhangNo2_2019.Text.Trim() != "") { if (ZCZ_YXQ2_2019.Text == "") { //ZCZ_YXQ_2019.Text = DateTime.Now.AddMonths(1).ToString("yyyy-MM-dd"); this.WriteAjaxMessage("alert('请填写注册章3有效期');"); return; } } else { ZCZ_YXQ2_2019.Text = ""; } //看看状态,是编辑中,还是已通过 if (Status_2019.SelectedValue == "90")//审核通过的,保存是变成变更状态 { Status_2019.SelectedValue = "85"; } ZhuanYeCS_2019.Text = RegionTreeView.Text; ZhuanYeCSCode_2019.Text = RegionTreeView.Value; TJRGuid_2019.Text = this.UserGuid; oEditPage.SaveTableValues(Request["RowGuid"], tdContainer); if (ApplicationOperate.GetConfigValueByName("IsHoldCurPage", "0") == "1") { this.WriteAjaxMessage("refreshParentHoldCurPage();"); } else { this.WriteAjaxMessage("refreshParent();"); } this.WriteAjaxMessage("EP_ShowMessageDiv(" + tdContainer.ClientID + ",'数据保存成功')"); }
protected void btnSub_Click(object sender, System.EventArgs e) { string strSql = "SELECT Status FROM RG_OUInfo WHERE RowGuid='" + Request["DWGuid"] + "'"; if (Epoint.MisBizLogic2.DB.ExecuteToString(strSql) != "90") { WriteAjaxMessage("alert('企业信息还未审核通过,不能维护备案信息');window.close();"); return; } string message = ""; if (this.LoginID != "lift")//lift //13328457-X { //增加对人员的限制 message = RG_DW.ChenkZYRY(Request["RowGuid"], DWGuid_2021.Text, ZiZhiDJCode_2021.Text); if (message != "")//说明有些必须配置人专业没有配置人 { WriteAjaxMessage("alert('" + message + "');"); return; } //项目负责人 message = RG_DW.CheckXMFuZeRen(Request["RowGuid"]); if (message != "")//项目负责人有且只有一个人 { WriteAjaxMessage("alert('" + message + "');"); return; } //专业负责人 message = RG_DW.ChenkZYFuZeRen(Request["RowGuid"], DWGuid_2021.Text, ZiZhiDJCode_2021.Text); if (message != "")//专业负责人不满足要求 { WriteAjaxMessage("alert('" + message + "');"); return; } //看看有没有备案表,没有备案表就不能提交 Epoint.Frame.Bizlogic.AttachStorageInfo.StorageCom StorgCom = new Epoint.Frame.Bizlogic.AttachStorageInfo.StorageCom(); string CliGuid = Request["RowGuid"] + "XM_HTBA"; DataView dvAttch = StorgCom.Select(CliGuid); if (dvAttch.Count == 0) { this.WriteAjaxMessage("alert('请上传项目备案表');"); return; } CliGuid = Request["RowGuid"] + "XM_SJHT"; dvAttch = StorgCom.Select(CliGuid); if (dvAttch.Count == 0) { this.WriteAjaxMessage("alert('请上传合同');"); return; } } //发送待审核事宜,根据角色来 //还要看是不是属于宜兴、江阴的项目,如果是,就重新获取 //Status_2021.SelectedValue = "70";//这个地方要注意,如果是江阴、宜兴的项目,要先到江阴、宜兴审核,然后再到市总办审核 DataView dv = DBF.GetUserByRoleName("备案信息初审"); if (XMAdd_2021.SelectedValue == "320282")//宜兴 { dv = DBF.GetUserByRoleName("宜兴备案信息审核"); Status_2021.SelectedValue = "69"; } else if (XMAdd_2021.SelectedValue == "320281")//江阴 { dv = DBF.GetUserByRoleName("江阴备案信息审核"); Status_2021.SelectedValue = "69"; } else { Status_2021.SelectedValue = "70"; } TJRGuid_2021.Text = this.UserGuid; TJDate_2021.Text = DateTime.Now.ToString("yyyy-MM-dd"); oEditPage.SaveTableValues(Request["RowGuid"], tdContainer); for (int m = 0; m < dv.Count; m++) { string messageGuid = Guid.NewGuid().ToString(); new HTProject_Bizlogic.DB_Messages_Center().WaitHandle_Insert(messageGuid, XMName_2021.Text + "备案初审", "", dv[m]["UserGuid"].ToString(), dv[m]["DisplayName"].ToString(), "", "", "", @"HTProject/Pages/RG_XMBeiAn/RG_XMBeiAnAD_Detail.aspx?RowGuid=" + Request["RowGuid"], "", "", 1, "", "", "" ); //更新标志位 strSql = "update messages_center set PType='备案信息审核',PGuid='" + Request["RowGuid"] + "' where MessageItemGuid='" + messageGuid + "'"; Epoint.MisBizLogic2.DB.ExecuteNonQuery(strSql); //添加短信 string IsSendADSMS = ApplicationOperate.GetConfigValueByName("IsSendADSMS"); if (IsSendADSMS == "1") { if (dv[m]["Mobile"].ToString() != "") { HTSMS.SendSMS(this.DisplayName, dv[m]["DisplayName"], XMName_2021.Text + "提交备案信息审核", dv[m]["Mobile"]); } } } AlertAjaxMessage("提交成功"); this.WriteAjaxMessage("refreshParent();window.close();"); }
private void Login2(string UserGuid, string LoginID, Boolean IsSuperAdmin) { //在登录的时候,是否检查此用户是否已登录,如已登录,则提醒。如果=1,这检查,否则不检查 String ISSingleLogin = ApplicationOperate.GetConfigValueByName("ISSingleLogin"); string strAlertInfo = ""; if (ISSingleLogin == "1") { Epoint.Frame.Bizlogic.UserManage.Detail_Frame_OnlineUser d_OnlineUser = new Epoint.Frame.Bizlogic.UserManage.DB_Frame_OnlineUser().GetDetail(UserGuid); if (d_OnlineUser.DisplayName != null && d_OnlineUser.DisplayName != "" && d_OnlineUser.IsOnline == 1) { strAlertInfo = "请注意:此账号已经在IP地址为:" + d_OnlineUser.LoginIP + "的机器上登录,并正在使用中!"; } } #region 2009.03.05 增加 判断当前是启用IP和用户对应关系,如果启用,判断当前用户的IP是否设置,如果设置,检查当前用户使用的IP是否和配置相同,如果不同,则提示 //通过参数LoginCheckingIP=1来检查是否启用此判断 if (ApplicationOperate.GetConfigValueByName("LoginCheckingIP") == "1") { String UserAllowIP = new DB_Frame_User_ExtendInfo().GetDetail(UserGuid).LoginIP; if (UserAllowIP != "") { UserAllowIP = ";" + UserAllowIP + ";"; if (UserAllowIP.IndexOf(";" + common.GetClientIp() + ";") == -1) { AlertAjaxMessage("您当前使用的IP不在系统配置中,不允许登录,请联系系统管理员!"); return; } } } #endregion #region FormsAuthentication.SetAuthCookie(HttpUtility.UrlEncode(LoginID), false); //保存登录名到HttpCookie HttpCookie cookie1 = new HttpCookie("EpointNetoffice7_LoginID"); cookie1.Value = HttpUtility.UrlEncode(LoginID); DateTime dtNow = DateTime.Now; TimeSpan tsMinute = new TimeSpan(1000, 0, 0, 0); cookie1.Expires = dtNow + tsMinute; Response.AppendCookie(cookie1); BasePage.mySessionRefresh += new RefreshSessionHandler(RefreshSession); string TargetPage = ""; //Add By XGC 添加是否有兼职的判断 Session["UserGuid"] = UserGuid; AddLoginInfo(1); //if (new User().IsExists_SecondOU(UserGuid)) //{ // string OUGuid = new DB_Frame_UserConfig().GetConfigValue_String(UserGuid, "IsDefaultOU"); // if (OUGuid != "") // SessionOperate.RefreshSessionFromUserGuid(UserGuid, OUGuid, IsSuperAdmin); // else // { // this.WriteAjaxMessage("ShowSecondOU('" + getTargetUrl(strAlertInfo, true) + "');"); // return; // } //} //else common.RefreshSessionFromUserGuid(UserGuid, IsSuperAdmin); TargetPage = getTargetUrl(strAlertInfo, false); if (TargetPage != "") { Response.Redirect(TargetPage); } //定义引用 #endregion }
protected void btnSubmit_Click(object sender, System.EventArgs e) { //判断下身份证s是否已经有了 string oName = ""; if (RG_DW.IsExistByIDNO(IDNum_2019.Text.Trim(), out oName, Request["RowGuid"])) { this.WriteAjaxMessage("alert('该身份证已经存在,姓名为:" + oName + "');"); return; } //看注册章 if (YinZhangNo_2019.Text.Trim() != "") { if (ZCZ_YXQ_2019.Text == "") { //ZCZ_YXQ_2019.Text = DateTime.Now.AddMonths(1).ToString("yyyy-MM-dd"); this.WriteAjaxMessage("alert('请填写注册章1有效期');"); return; } } else { ZCZ_YXQ_2019.Text = ""; } if (YinZhangNo1_2019.Text.Trim() != "") { if (ZCZ_YXQ1_2019.Text == "") { //ZCZ_YXQ_2019.Text = DateTime.Now.AddMonths(1).ToString("yyyy-MM-dd"); this.WriteAjaxMessage("alert('请填写注册章2有效期');"); return; } } else { ZCZ_YXQ1_2019.Text = ""; } if (YinZhangNo2_2019.Text.Trim() != "") { if (ZCZ_YXQ2_2019.Text == "") { //ZCZ_YXQ_2019.Text = DateTime.Now.AddMonths(1).ToString("yyyy-MM-dd"); this.WriteAjaxMessage("alert('请填写注册章3有效期');"); return; } } else { ZCZ_YXQ2_2019.Text = ""; } //看看有没有上传个人签名 Epoint.Frame.Bizlogic.AttachStorageInfo.StorageCom StorgCom = new Epoint.Frame.Bizlogic.AttachStorageInfo.StorageCom(); string CliGuid = Request["RowGuid"] + "RY_GRQM"; DataView dvAttch = StorgCom.Select(CliGuid); if (dvAttch.Count == 0) { this.WriteAjaxMessage("alert('请上传个人签名');"); return; } //先将原来的删除,防止重复 new HTProject_Bizlogic.DB_Messages_Center().DeleteWH("人员信息审核", Request["RowGuid"]); ZhuanYeCS_2019.Text = RegionTreeView.Text; ZhuanYeCSCode_2019.Text = RegionTreeView.Value; TJRGuid_2019.Text = this.UserGuid; Status_2019.SelectedValue = "70"; TJ_Date_2019.Text = DateTime.Now.ToString("yyyy-MM-dd"); oEditPage.SaveTableValues(Request["RowGuid"], tdContainer); //if (ApplicationOperate.GetConfigValueByName("IsHoldCurPage", "0") == "1") // this.WriteAjaxMessage("refreshParentHoldCurPage();"); //else // this.WriteAjaxMessage("refreshParent();"); //this.WriteAjaxMessage("EP_ShowMessageDiv(" + tdContainer.ClientID + ",'数据保存成功')"); //发送待审核事宜,根据角色来 DataView dv = DBF.GetUserByRoleName("人员信息审核"); for (int m = 0; m < dv.Count; m++) { string messageGuid = Guid.NewGuid().ToString(); new HTProject_Bizlogic.DB_Messages_Center().WaitHandle_Insert(messageGuid, XM_2019.Text + "[" + lblDWName.Text + "]信息审核", "", dv[m]["UserGuid"].ToString(), dv[m]["DisplayName"].ToString(), "", "", "", @"HTProject/Pages/RG_QYUser/RG_QYUser_Detail.aspx?stype=shenhe&RowGuid=" + Request["RowGuid"], "", "", 1, "", "", "" ); //更新标志位 string strSql = "update messages_center set PType='人员信息审核',PGuid='" + Request["RowGuid"] + "' where MessageItemGuid='" + messageGuid + "'"; Epoint.MisBizLogic2.DB.ExecuteNonQuery(strSql); //添加短信 string IsSendADSMS = ApplicationOperate.GetConfigValueByName("IsSendADSMS"); if (IsSendADSMS == "1") { if (dv[m]["Mobile"].ToString() != "") { HTSMS.SendSMS(this.DisplayName, dv[m]["DisplayName"], lblDWName.Text + "提交人员信息审核", dv[m]["Mobile"]); } } } AlertAjaxMessage("提交成功"); }
protected void btSubmit_Click(object sender, System.EventArgs e) { //先将原来的删除,防止重复 DB_MC.DeleteWH("审核企业", Request["RowGuid"]); RegistAddress_2017.Text = RegionTreeView.Text; RegistAddressCode_2017.Text = RegionTreeView.Value; TJRGuid_2017.Text = this.UserGuid; //Status_2017.Text = "70"; oEditPage.SaveTableValues(Request["RowGuid"], tdContainer); Epoint.MisBizLogic2.Data.MisGuidRow oRow = new Epoint.MisBizLogic2.Data.MisGuidRow(oEditPage.TableDetail.SQL_TableName, Request["RowGuid"]); oRow["Status"] = "70"; oRow["UpdateUserName"] = this.DisplayName; oRow["UpdateUserGuid"] = this.UserGuid; oRow["UpdateTime"] = DateTime.Now.ToString(); oRow.Update(); //将人员、资质中处于编辑状态和审核退回状态的,都修改为待审核状态 string strSql = ""; //资质 strSql = "SELECT * FROM RG_QiYeZiZhi WHERE Status IN ('60','80','85') AND DWGuid='" + Request["RowGuid"] + "'"; DataView dv = Epoint.MisBizLogic2.DB.ExecuteDataView(strSql); for (int m = 0; m < dv.Count; m++) { strSql = "UPDATE RG_QiYeZiZhi SET Status='70' WHERE ROWGUID='" + dv[m]["RowGuid"] + "' "; Epoint.MisBizLogic2.DB.ExecuteNonQuery(strSql); //将该单位其他资质的审核待办删除 DB_MC.DeleteWH("审核企业资质", dv[m]["RowGuid"].ToString()); } //人员 strSql = "SELECT * FROM RG_QYUser WHERE Status IN ('60','80','85') AND DWGuid='" + Request["RowGuid"] + "'"; dv = Epoint.MisBizLogic2.DB.ExecuteDataView(strSql); for (int m = 0; m < dv.Count; m++) { strSql = "UPDATE RG_QYUser SET Status='70' WHERE ROWGUID='" + dv[m]["RowGuid"] + "' "; Epoint.MisBizLogic2.DB.ExecuteNonQuery(strSql); //将该单位其他资质的审核待办删除 DB_MC.DeleteWH("人员信息审核", dv[m]["RowGuid"].ToString()); } //strSql = "UPDATE RG_QYUser SET Status='70' WHERE Status IN ('60','80','85') AND DWGuid='" + Request["RowGuid"] + "'"; //Epoint.MisBizLogic2.DB.ExecuteNonQuery(strSql); //发送待审核事宜,根据角色来 dv = DBF.GetUserByRoleName("企业信息审核"); for (int m = 0; m < dv.Count; m++) { string messageGuid = Guid.NewGuid().ToString(); new HTProject_Bizlogic.DB_Messages_Center().WaitHandle_Insert(messageGuid, EnterpriseName_2017.Text + "信息审核", "", dv[m]["UserGuid"].ToString(), dv[m]["DisplayName"].ToString(), "", "", "", @"HTProject/Pages/RG_OU/RG_OU_All_Detail.aspx?type=shenhe&RowGuid=" + Request["RowGuid"], "", "", 1, "", "", "" ); //更新标志位 strSql = "update messages_center set PType='审核企业',PGuid='" + Request["RowGuid"] + "' where MessageItemGuid='" + messageGuid + "'"; Epoint.MisBizLogic2.DB.ExecuteNonQuery(strSql); //添加短信 string IsSendADSMS = ApplicationOperate.GetConfigValueByName("IsSendADSMS"); if (IsSendADSMS == "1") { if (dv[m]["Mobile"].ToString() != "") { HTSMS.SendSMS(this.DisplayName, dv[m]["DisplayName"], EnterpriseName_2017.Text + "提交企业信息审核", dv[m]["Mobile"]); } } } AlertAjaxMessage("提交成功"); this.WriteAjaxMessage("refreshParent();window.close();"); }