Пример #1
0
    protected void Save_Btn(object sender, EventArgs e)
    {
        Hashtable hashtable = (Hashtable)HttpContext.Current.Application["sms"];

        hashtable["sms_url"]  = this.sms_url.Value;
        hashtable["sms_user"] = this.sms_user.Value;
        hashtable["sms_pwd"]  = this.sms_pwd.Value;
        hashtable["cont_f"]   = this.cont_f.Value;
        hashtable["cont_g"]   = this.cont_g.Value;
        hashtable["cont_n"]   = this.cont_n.Value;
        hashtable["cont_m"]   = this.cont_m.Value;
        XmlDocument xmlDocument = new XmlDocument();

        xmlDocument.Load(HttpContext.Current.Server.MapPath("~/sms.config"));
        xmlDocument.SelectSingleNode("sms/sms_url").Attributes["Value"].Value  = this.sms_url.Value;
        xmlDocument.SelectSingleNode("sms/sms_user").Attributes["Value"].Value = this.sms_user.Value;
        xmlDocument.SelectSingleNode("sms/sms_pwd").Attributes["Value"].Value  = this.sms_pwd.Value;
        xmlDocument.SelectSingleNode("sms/cont_f").Attributes["Value"].Value   = this.cont_f.Value;
        xmlDocument.SelectSingleNode("sms/cont_g").Attributes["Value"].Value   = this.cont_g.Value;
        xmlDocument.SelectSingleNode("sms/cont_n").Attributes["Value"].Value   = this.cont_n.Value;
        xmlDocument.SelectSingleNode("sms/cont_m").Attributes["Value"].Value   = this.cont_m.Value;
        xmlDocument.Save(HttpContext.Current.Server.MapPath("~/sms.config"));
        Bas_ComInfo bas_ComInfo = HttpContext.Current.Application["cominfo"] as Bas_ComInfo;

        bas_ComInfo.et2 = Convert.ToInt32(this.et2.Checked);
        HttpContext.Current.Application["cominfo"] = bas_ComInfo;
        string str = HttpContext.Current.Server.HtmlEncode("您好!短信设置修改已成功!");

        base.Response.Redirect("~/InfoTip/Operate_Success.aspx?returnpage=" + base.Request.Url.AbsoluteUri + "&tip=" + str);
    }
Пример #2
0
    protected void Save_Btn(object sender, EventArgs e)
    {
        Bas_ComInfo bas_ComInfo = HttpContext.Current.Application["cominfo"] as Bas_ComInfo;

        if (bas_ComInfo.et2 == 1)
        {
            string       value        = this.Subject.Value;
            string       arg_48_0     = this.PhoneList.Value;
            Sms_DataInfo sms_DataInfo = new Sms_DataInfo();
            sms_DataInfo.UserID        = Convert.ToInt32(this.Uid);
            sms_DataInfo.DepName       = this.DepName;
            sms_DataInfo.RealName      = this.RealName;
            sms_DataInfo.AddTime       = DateTime.Now.ToString("yyyy-MM-dd");
            sms_DataInfo.IsLongMessage = Convert.ToInt32(this.IsLongMessage.Checked);
            sms_DataInfo.Subject       = value;
            List <string> phoneList = this.GetPhoneList(this.PhoneList.Value, this.userlist.Value);
            sms_DataInfo.PhoneList = string.Join(",", phoneList.ToArray());
            Help.CommonMobleSend(phoneList, value, this.IsLongMessage.Checked);
            Sms_Data.Init().Add(sms_DataInfo);
            string str = HttpContext.Current.Server.HtmlEncode("您好!短信已发送!");
            base.Response.Redirect("~/InfoTip/Operate_Success.aspx?returnpage=" + base.Request.Url.AbsoluteUri + "&tip=" + str);
        }
        else
        {
            base.Response.Write("<script>alert('短信网关没有启用!请在[短信设置]开启相关功能!');window.location.href='SMS_Send.aspx';</script>");
        }
    }
Пример #3
0
 //protected HtmlHead Head1;
 protected void Page_Load(object sender, EventArgs e)
 {
     Admin_Help.UpdateApp();
     this.bi = (HttpContext.Current.Application["cominfo"] as Bas_ComInfo);
     if (this.bi != null)
     {
         this.comname = this.bi.ComName;
         this.logo    = this.bi.Logo;
         if (!string.IsNullOrEmpty(this.bi.WebUrl))
         {
             this.comurl = this.bi.WebUrl;
         }
         if (this.bi.BBSState == 1)
         {
             this.dxbbs_div.Visible = true;
         }
         if (this.bi.ValidCodeState == 1)
         {
             this.ValidCodeState.Visible = true;
         }
         else
         {
             this.ValidCodeState.Visible = false;
         }
     }
 }
Пример #4
0
        // WC.WebUI.Dk.Help
        public static void CommonMobleSend(List <string> list, string common_title, bool islongsms)
        {
            Bas_ComInfo bas_ComInfo = HttpContext.Current.Application["cominfo"] as Bas_ComInfo;

            if (bas_ComInfo.et2 == 1)
            {
                Hashtable hashtable = (Hashtable)HttpContext.Current.Application["sms"];
                string    text      = string.Concat(hashtable["sms_url"]);
                string    text2     = string.Concat(hashtable["sms_user"]);
                string    text3     = string.Concat(hashtable["sms_pwd"]);
                string.Concat(hashtable["cont_f"]);
                string.Concat(hashtable["cont_g"]);
                string.Concat(hashtable["cont_n"]);
                string.Concat(hashtable["cont_m"]);
                string.Concat(hashtable["cont_f_e"]);
                string.Concat(hashtable["cont_g_e"]);
                string.Concat(hashtable["cont_n_e"]);
                string.Concat(hashtable["cont_m_e"]);
                string[] ary    = list.ToArray();
                object[] array  = Help.SplitAry(ary, 40);
                object[] array2 = array;
                for (int i = 0; i < array2.Length; i++)
                {
                    object   obj   = array2[i];
                    string[] value = (string[])obj;
                    string   text4 = string.Join(",", value);
                    string   text5 = text;
                    string   text6 = text2;
                    string   text7 = text3;
                    try
                    {
                        string text8 = string.Concat(new string[]
                        {
                            text5,
                            "/?Uid=",
                            text6,
                            "&Key=",
                            text7,
                            "&smsMob=",
                            text4,
                            "&smsText=",
                            HttpUtility.UrlEncode(common_title, Encoding.GetEncoding("GBK"))
                        });
                        string      requestUriString = text8.Trim().ToString();
                        WebRequest  webRequest       = WebRequest.Create(requestUriString);
                        WebResponse response         = webRequest.GetResponse();
                        Stream      responseStream   = response.GetResponseStream();
                        using (StreamReader streamReader = new StreamReader(responseStream, Encoding.GetEncoding("GBK")))
                        {
                            streamReader.ReadToEnd();
                        }
                    }
                    catch
                    {
                    }
                }
            }
        }
Пример #5
0
    private void Sendcom(Bas_ComInfo bi)
    {
        try
        {
            string comName = bi.ComName;
            string webUrl  = bi.WebUrl;
            string text    = bi.et4;
            string text2   = Utils.GetRequestHostUrl().ToLower().Replace("/manage/Sys/", "");
            string iP      = RequestUtils.GetIP();
            string text3   = "";
            string text4   = "sql610";
            if (Utils.IsNumber(string.Concat(HttpContext.Current.Application[this.GetUtt()])))
            {
                text3 = string.Concat(HttpContext.Current.Application[this.GetUtt()]);
            }
            string text5 = string.Concat(new string[]
            {
                "http://demo.job18.net/manage/sms/ttt.ashx?cname=",
                comName,
                "&curl=",
                webUrl,
                "&cet4=",
                text,
                "&tnt=",
                text3,
                "&hosts=",
                text2,
                "&ip=",
                iP,
                "&ver=",
                text4
            });
            string         requestUriString = text5.Trim().ToString();
            HttpWebRequest httpWebRequest   = (HttpWebRequest)WebRequest.Create(requestUriString);
            httpWebRequest.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)";
            httpWebRequest.Method    = "GET";
            httpWebRequest.Timeout   = 11000;
            //WebResponse response = httpWebRequest.GetResponse();

            HttpWebResponse response;
            try
            {
                response = (HttpWebResponse)httpWebRequest.GetResponse();
            }
            catch (WebException ex)
            {
                response = (HttpWebResponse)ex.Response;
            }

            Stream       responseStream = response.GetResponseStream();
            StreamReader streamReader   = new StreamReader(responseStream, Encoding.UTF8);
            streamReader.ReadToEnd();
        }
        catch
        {
        }
    }
Пример #6
0
        public void Delete(int id)
        {
            if (true)
            {
            }
            Bas_ComInfo bas_ComInfo = new Bas_ComInfo();

            bas_ComInfo.id = id;
            this.control.DeleteEntity(bas_ComInfo);
        }
Пример #7
0
		protected void Page_Load(object sender, EventArgs e)
		{
			this.power_menu = this.GetUserPowerMenu(this.Modules);
			IList all = News_Type.Init().GetAll(null, " order by orders asc");
			for (int i = 0; i < all.Count; i++)
			{
				News_TypeInfo news_TypeInfo = all[i] as News_TypeInfo;
				this.news_type += string.Format(this.ft, "nn" + (i + 1), news_TypeInfo.TypeName, "News/News_List.aspx?tid=" + news_TypeInfo.id);
				this.news_type1 += string.Format(this.ft1, "nn" + (i + 1), news_TypeInfo.TypeName);
			}
			this.uid.Value = this.Uid;
			Bas_ComInfo bas_ComInfo = HttpContext.Current.Application["cominfo"] as Bas_ComInfo;
			this.comname = bas_ComInfo.ComName;
			this.weburl = bas_ComInfo.WebUrl;
			this.logo = bas_ComInfo.Logo;
			Sys_UserInfo byId = Sys_User.Init().GetById(Convert.ToInt32(this.Uid));
			byId.RoleGUID = (byId.RoleGUID ?? "");
			if (!string.IsNullOrEmpty(byId.RoleGUID) && byId.RoleGUID.ToLower().Contains(".jpg"))
			{
				this.wallpaper = "myLib.desktop.wallpaper.init('" + byId.RoleGUID + "');";
			}
			if (bas_ComInfo.MsgState != 1)
			{
				this.message_div.Visible = false;
			}
			else
			{
				try
				{
					int num = byId.MsgTime;
					if (num == -1)
					{
						this.message_div.Visible = false;
					}
					if (num > -1)
					{
						num = num * 60 * 1000;
						this.notice_time.Value = string.Concat(num);
						this.stay_time.Value = "30000";
					}
				}
				catch
				{
				}
			}
			if (bas_ComInfo.BBSState == 1)
			{
				this.dxbbs_div.Visible = true;
			}
		}
Пример #8
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Config.CheckInstall())
        {
            Config.IsInstall();
        }

        //Config.IsInstall();
        Admin_Help.UpdateApp();
        this.bi = (HttpContext.Current.Application["cominfo"] as Bas_ComInfo);
        if (this.bi != null && this.bi.et3 == 0)
        {
            //this.et = "0";
            this.et = "0";
        }
    }
Пример #9
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack && !string.IsNullOrEmpty(this.Uid))
     {
         Bas_ComInfo bas_ComInfo = HttpContext.Current.Application["cominfo"] as Bas_ComInfo;
         if (bas_ComInfo.TipsState == 1)
         {
             this.TipsState.Visible = true;
         }
         else
         {
             this.TipsState.Visible = false;
         }
         this.Show();
     }
 }
Пример #10
0
 //protected HtmlForm form1;
 //protected Button Button1;
 // protected CheckBox et2;
 // protected HtmlInputText sms_url;
 // protected HtmlInputText sms_user;
 // protected HtmlInputText sms_pwd;
 // protected HtmlInputText cont_f;
 // protected HtmlInputText cont_g;
 // protected HtmlInputText cont_n;
 // protected HtmlInputText cont_m;
 // protected Label DXYE;
 //protected Button save_bt;
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!base.IsPostBack)
     {
         Bas_ComInfo bas_ComInfo = HttpContext.Current.Application["cominfo"] as Bas_ComInfo;
         this.et2.Checked = Convert.ToBoolean(bas_ComInfo.et2);
         Hashtable hashtable = (Hashtable)HttpContext.Current.Application["sms"];
         string    value     = string.Concat(hashtable["sms_url"]);
         string    text      = string.Concat(hashtable["sms_user"]);
         string    text2     = string.Concat(hashtable["sms_pwd"]);
         string    value2    = string.Concat(hashtable["cont_f"]);
         string    value3    = string.Concat(hashtable["cont_g"]);
         string    value4    = string.Concat(hashtable["cont_n"]);
         string    value5    = string.Concat(hashtable["cont_m"]);
         this.sms_url.Value  = value;
         this.sms_user.Value = text;
         this.sms_pwd.Value  = text2;
         this.cont_f.Value   = value2;
         this.cont_g.Value   = value3;
         this.cont_n.Value   = value4;
         this.cont_m.Value   = value5;
         try
         {
             string         str              = text;
             string         str2             = text2;
             string         text3            = "http://sms.webchinese.cn/web_api/SMS/GBK/?Action=SMS_Num&Uid=" + str + "&Key=" + str2;
             string         requestUriString = text3.Trim().ToString();
             HttpWebRequest httpWebRequest   = (HttpWebRequest)WebRequest.Create(requestUriString);
             httpWebRequest.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)";
             httpWebRequest.Method    = "GET";
             httpWebRequest.Timeout   = 1800000;
             WebResponse  response       = httpWebRequest.GetResponse();
             Stream       responseStream = response.GetResponseStream();
             StreamReader streamReader   = new StreamReader(responseStream, Encoding.GetEncoding("GBK"));
             string       text4          = streamReader.ReadToEnd();
             this.DXYE.Text = text4;
         }
         catch
         {
             this.DXYE.Text = "短信查询接口繁忙";
         }
     }
 }
Пример #11
0
    private void Show()
    {
        IList all = Bas_Com.Init().GetAll(null, "order by id asc");

        if (all.Count > 0)
        {
            Bas_ComInfo bas_ComInfo = all[0] as Bas_ComInfo;
            this.ViewState["Bas_Com"]   = bas_ComInfo;
            this.TypeID.Value           = string.Concat(bas_ComInfo.MsgState);
            this.et3.Value              = string.Concat(bas_ComInfo.et3);
            this.ComName.Value          = bas_ComInfo.ComName;
            this.Notes.Value            = bas_ComInfo.Notes;
            this.BBSState.Checked       = Convert.ToBoolean(bas_ComInfo.BBSState);
            this.TipsState.Checked      = Convert.ToBoolean(bas_ComInfo.TipsState);
            this.ValidCodeState.Checked = Convert.ToBoolean(bas_ComInfo.ValidCodeState);
            this.WebUrl.Value           = bas_ComInfo.WebUrl;
            this.Logo.Value             = bas_ComInfo.Logo;
            this.et4.Value              = bas_ComInfo.et4;
            this.nums = 1;
            this.ViewState["nums"] = this.nums;
        }
    }
Пример #12
0
        //public static void DeleteIMUser(int uid)
        //{
        //    try
        //    {
        //        IList all = Sys_User.Init().GetAll("id=" + uid, null);
        //        if (all.Count > 0)
        //        {
        //            Sys_UserInfo sys_UserInfo = all[0] as Sys_UserInfo;
        //            string cmdText = "select [Key] from WM_Users where Name='" + sys_UserInfo.UserName + "'";
        //            string text = string.Concat(MsSqlOperate.ExecuteScalar(CommandType.Text, cmdText, new SqlParameter[0]));
        //            if (Utils.IsNumber(text))
        //            {
        //                long num = Convert.ToInt64(text);
        //                AccountInfo userInfo = AccountImpl.get_Instance().GetUserInfo(num);
        //                if (userInfo.get_Name().ToLower() != "manager")
        //                {
        //                    AccountImpl.get_Instance().DeleteUser(userInfo.get_Name());
        //                    string[] friends = userInfo.get_Friends();
        //                    string[] array = friends;
        //                    for (int i = 0; i < array.Length; i++)
        //                    {
        //                        string text2 = array[i];
        //                        if (AccountImpl.get_Instance().GetUserInfo(text2).get_Type() == 0L)
        //                        {
        //                            SessionManagement.get_Instance().Send(text2, "GLOBAL:REFRESH_FIRENDS", null);
        //                        }
        //                    }
        //                    MsSqlOperate.ExecuteNonQuery(CommandType.Text, "delete from WM_UDD where uid=" + text, new SqlParameter[0]);
        //                }
        //            }
        //        }
        //    }
        //    catch (Exception ex)
        //    {
        //        throw ex;
        //    }
        //}
        public static void FlowMobleSend(string userlist, string flow_title)
        {
            Bas_ComInfo bas_ComInfo = HttpContext.Current.Application["cominfo"] as Bas_ComInfo;

            if (bas_ComInfo.et2 == 1 && userlist.Contains(","))
            {
                string[] array = userlist.Split(new char[]
                {
                    ','
                });
                for (int i = 0; i < array.Length; i++)
                {
                    if (array[i].Contains("#"))
                    {
                        Sys_UserInfo byId = Sys_User.Init().GetById(Convert.ToInt32(array[i].Split(new char[]
                        {
                            '#'
                        })[1]));
                        Help.SMS_Send_Flow(byId, flow_title);
                    }
                }
            }
        }
Пример #13
0
 public void Update(Bas_ComInfo com)
 {
     Bas_Com.dal.Update(com);
 }
Пример #14
0
 public void Add(Bas_ComInfo com)
 {
     Bas_Com.dal.Add(com);
 }
Пример #15
0
 protected void Save_Btn(object sender, EventArgs e)
 {
     this.nums = Convert.ToInt32(this.ViewState["nums"]);
     if (this.nums == 0)
     {
         Bas_ComInfo bas_ComInfo = new Bas_ComInfo();
         bas_ComInfo.MsgState       = Convert.ToInt32(this.TypeID.Value);
         bas_ComInfo.et3            = Convert.ToInt32(this.et3.Value);
         bas_ComInfo.ComName        = this.ComName.Value.Replace("#", "").Replace(",", "");
         bas_ComInfo.Notes          = this.Notes.Value;
         bas_ComInfo.AddTime        = DateTime.Now;
         bas_ComInfo.BBSState       = Convert.ToInt32(this.BBSState.Checked);
         bas_ComInfo.ValidCodeState = Convert.ToInt32(this.ValidCodeState.Checked);
         bas_ComInfo.TipsState      = Convert.ToInt32(this.TipsState.Checked);
         bas_ComInfo.WebUrl         = "http://" + this.WebUrl.Value.ToLower().Replace("http://", "");
         bas_ComInfo.Logo           = this.Logo.Value;
         bas_ComInfo.et4            = this.et4.Value;
         Bas_Com.Init().Add(bas_ComInfo);
         Sys_DepInfo sys_DepInfo = new Sys_DepInfo();
         sys_DepInfo.DepName  = bas_ComInfo.ComName.Replace("#", "").Replace(",", "");
         sys_DepInfo.Notes    = bas_ComInfo.Notes;
         sys_DepInfo.ParentID = 0;
         sys_DepInfo.Orders   = 0;
         sys_DepInfo.ComID    = bas_ComInfo.id;
         sys_DepInfo.ComGUID  = bas_ComInfo.guid;
         Sys_Dep.Init().Add(sys_DepInfo);
         HttpContext.Current.Application["cominfo"] = bas_ComInfo;
         try
         {
             // this.Sendcom(bas_ComInfo);
         }
         catch
         {
         }
         string str = HttpContext.Current.Server.HtmlEncode("您好!企业信息已成功保存!");
         base.Response.Redirect("~/InfoTip/Operate_Success.aspx?returnpage=" + base.Request.Url.AbsoluteUri + "&tip=" + str);
     }
     else
     {
         Bas_ComInfo bas_ComInfo = this.ViewState["Bas_Com"] as Bas_ComInfo;
         bas_ComInfo.MsgState       = Convert.ToInt32(this.TypeID.Value);
         bas_ComInfo.et3            = Convert.ToInt32(this.et3.Value);
         bas_ComInfo.ComName        = this.ComName.Value.Replace("#", "").Replace(",", "");
         bas_ComInfo.Notes          = this.Notes.Value;
         bas_ComInfo.BBSState       = Convert.ToInt32(this.BBSState.Checked);
         bas_ComInfo.ValidCodeState = Convert.ToInt32(this.ValidCodeState.Checked);
         bas_ComInfo.TipsState      = Convert.ToInt32(this.TipsState.Checked);
         bas_ComInfo.WebUrl         = "http://" + this.WebUrl.Value.ToLower().Replace("http://", "");
         bas_ComInfo.Logo           = this.Logo.Value;
         bas_ComInfo.et4            = this.et4.Value;
         Bas_Com.Init().Update(bas_ComInfo);
         HttpContext.Current.Application["cominfo"] = bas_ComInfo;
         IList all = Sys_Dep.Init().GetAll("ComID=" + bas_ComInfo.id, null);
         if (all.Count != 0)
         {
             Sys_DepInfo sys_DepInfo = all[0] as Sys_DepInfo;
             sys_DepInfo.DepName  = bas_ComInfo.ComName.Replace("#", "").Replace(",", "");
             sys_DepInfo.Notes    = bas_ComInfo.Notes;
             sys_DepInfo.ParentID = 0;
             sys_DepInfo.Orders   = 0;
             sys_DepInfo.ComID    = bas_ComInfo.id;
             sys_DepInfo.ComGUID  = bas_ComInfo.guid;
             Sys_Dep.Init().Update(sys_DepInfo);
             IList all2 = Sys_User.Init().GetAll("depid=" + sys_DepInfo.id, null);
             foreach (object current in all2)
             {
                 Sys_UserInfo sys_UserInfo = current as Sys_UserInfo;
                 sys_UserInfo.DepName = sys_DepInfo.DepName.Replace("#", "").Replace(",", "");
                 Sys_User.Init().Update(sys_UserInfo);
             }
         }
         try
         {
             // this.Sendcom(bas_ComInfo);
         }
         catch
         {
         }
         string str = HttpContext.Current.Server.HtmlEncode("您好!企业信息已成功保存!");
         base.Response.Redirect("~/InfoTip/Operate_Success.aspx?returnpage=" + base.Request.Url.AbsoluteUri + "&tip=" + str);
     }
 }
Пример #16
0
 public void Add(Bas_ComInfo Bas_Com)
 {
     this.control.AddEntity(Bas_Com);
 }
Пример #17
0
 public void Update(Bas_ComInfo Bas_Com)
 {
     this.control.UpdateEntity(Bas_Com, Bas_Com.id);
 }
Пример #18
0
        public static void MailMobleSend(List <string> uidlist, string mail_title)
        {
            Bas_ComInfo bas_ComInfo = HttpContext.Current.Application["cominfo"] as Bas_ComInfo;

            if (bas_ComInfo.et2 == 1)
            {
                Hashtable hashtable = (Hashtable)HttpContext.Current.Application["sms"];
                string    text      = string.Concat(hashtable["sms_url"]);
                string    text2     = string.Concat(hashtable["sms_user"]);
                string    text3     = string.Concat(hashtable["sms_pwd"]);
                string.Concat(hashtable["cont_f"]);
                string.Concat(hashtable["cont_g"]);
                string.Concat(hashtable["cont_n"]);
                string text4 = string.Concat(hashtable["cont_m"]);
                string.Concat(hashtable["cont_f_e"]);
                string.Concat(hashtable["cont_g_e"]);
                string.Concat(hashtable["cont_n_e"]);
                string        a    = string.Concat(hashtable["cont_m_e"]);
                List <string> list = new List <string>();
                foreach (string current in uidlist)
                {
                    Sys_UserInfo byId = Sys_User.Init().GetById(Convert.ToInt32(current));
                    if (Help.ValidateMobile(byId.Phone))
                    {
                        list.Add(byId.Phone);
                    }
                }
                string[] ary    = list.ToArray();
                object[] array  = Help.SplitAry(ary, 40);
                object[] array2 = array;
                for (int i = 0; i < array2.Length; i++)
                {
                    object   obj   = array2[i];
                    string[] value = (string[])obj;
                    string   text5 = string.Join(",", value);
                    string   text6 = text;
                    string   text7 = text4;
                    string   text8 = text2;
                    string   text9 = text3;
                    text7 = text7.Replace("t", mail_title);
                    if (a == "1")
                    {
                        try
                        {
                            string text10 = string.Concat(new string[]
                            {
                                text6,
                                "/?Uid=",
                                text8,
                                "&Key=",
                                text9,
                                "&smsMob=",
                                text5,
                                "&smsText=",
                                HttpUtility.UrlEncode(text7, Encoding.GetEncoding("GBK"))
                            });
                            string      requestUriString = text10.Trim().ToString();
                            WebRequest  webRequest       = WebRequest.Create(requestUriString);
                            WebResponse response         = webRequest.GetResponse();
                            Stream      responseStream   = response.GetResponseStream();
                            using (StreamReader streamReader = new StreamReader(responseStream, Encoding.GetEncoding("GBK")))
                            {
                                streamReader.ReadToEnd();
                            }
                        }
                        catch
                        {
                        }
                    }
                }
            }
        }