Exemple #1
0
    protected void Send(int id)
    {
        if (id != 0)
        {
            ZWL.BLL.ERPMobile MyModel = new ZWL.BLL.ERPMobile();
            MyModel.GetModel(id);

            if (ZWL.Common.PublicMethod.StrIFIn("内部人员:", MyModel.ToUserList) == true)
            {
                //内部
                Mobile.SendSMS(MyModel.FaSongUser, MyModel.ToUserList.Replace("内部人员:", ""), MyModel.ContentStr);
            }
            else
            {
                //外部
                Mobile.SendSMS2(MyModel.FaSongUser, MyModel.ToUserList.Replace("外部人员:", ""), MyModel.ContentStr);
            }
        }

        DataBindToGridview();
        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户发送已发送手机短信中的信息";
        MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();
        Response.Write("<script>alert(手机短信发送完毕!');</script>");
    }
Exemple #2
0
    protected void Send(int id)
    {
        if (id != 0)
        {
            ZWL.BLL.ERPMobile MyModel = new ZWL.BLL.ERPMobile();
            MyModel.GetModel(id);

            if (ZWL.Common.PublicMethod.StrIFIn("内部人员:", MyModel.ToUserList) == true)
            {
                //内部
                Mobile.SendSMS(MyModel.FaSongUser, MyModel.ToUserList.Replace("内部人员:", ""), MyModel.ContentStr);
            }
            else
            {
                //外部
                Mobile.SendSMS2(MyModel.FaSongUser, MyModel.ToUserList.Replace("外部人员:", ""), MyModel.ContentStr);
            }
        }

        DataBindToGridview();
        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户发送已发送手机短信中的信息";
        MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();
        Response.Write("<script>alert(手机短信发送完毕!');</script>");
    }
Exemple #3
0
    protected void ImageButton5_Click(object sender, ImageClickEventArgs e)
    {
        string IDlist = ZWL.Common.PublicMethod.CheckCbx(this.GVData, "CheckSelect", "LabVisible");

        string[] IDArray = IDlist.Split(',');
        for (int jk = 0; jk < IDArray.Length; jk++)
        {
            if (IDArray[jk].Trim().Length > 0 && IDArray[jk].Trim() != "0")
            {
                ZWL.BLL.ERPMobile MyModel = new ZWL.BLL.ERPMobile();
                MyModel.GetModel(int.Parse(IDArray[jk].Trim()));

                if (ZWL.Common.PublicMethod.StrIFIn("内部人员:", MyModel.ToUserList) == true)
                {
                    //内部
                    //Mobile.SendSMS(MyModel.FaSongUser, MyModel.ToUserList.Replace("内部人员:", ""), MyModel.ContentStr);
                    string WrongUser = Mobile.UserToTel(MyModel.ToUserList.Replace("内部人员:", ""), MyModel.ContentStr);
                }
                else
                {
                    //外部
                    //Mobile.SendSMS2(MyModel.FaSongUser, MyModel.ToUserList.Replace("外部人员:", ""), MyModel.ContentStr);
                    string WrongUser = Mobile.send(MyModel.ToUserList.Replace("外部人员:", ""), MyModel.ContentStr); //发送人和发送内容
                }
            }
        }
        DataBindToGridview();
        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName    = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户发送已发送手机短信中的信息";
        MyRiZhi.IpStr       = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();
        Response.Write("<script>alert(手机短信发送完毕!');</script>");
    }
Exemple #4
0
    protected void btn_Send_Click(object sender, EventArgs e)
    {
        string IDlist = ZWL.Common.PublicMethod.CheckCbx(this.GVData, "CheckSelect", "LabVisible");
        string[] IDArray = IDlist.Split(',');
        for(int jk = 0; jk < IDArray.Length; jk++) {
            if(IDArray[jk].Trim().Length > 0 && IDArray[jk].Trim() != "0") {
                ZWL.BLL.ERPMobile MyModel = new ZWL.BLL.ERPMobile();
                MyModel.GetModel(int.Parse(IDArray[jk].Trim()));

                if(ZWL.Common.PublicMethod.StrIFIn("内部人员:", MyModel.ToUserList) == true) {
                    //内部
                    //Mobile.SendSMS(MyModel.FaSongUser, MyModel.ToUserList.Replace("内部人员:", ""), MyModel.ContentStr);
                    string WrongUser = Mobile.UserToTel(MyModel.ToUserList.Replace("内部人员:", ""), MyModel.ContentStr);
                }
                else {
                    //外部
                    //Mobile.SendSMS2(MyModel.FaSongUser, MyModel.ToUserList.Replace("外部人员:", ""), MyModel.ContentStr);
                    string WrongUser = Mobile.send(MyModel.ToUserList.Replace("外部人员:", ""), MyModel.ContentStr); //发送人和发送内容
                }
            }
        }
        DataBindToGridview();
        //写系统日志
        ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
        MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
        MyRiZhi.DoSomething = "用户发送已发送手机短信中的信息";
        MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
        MyRiZhi.Add();
        Response.Write("<script>alert(手机短信发送完毕!');</script>");
    }