/// <summary>
 /// 获取代理商的分配的通道
 /// </summary>
 public void GetManagerSpgates()
 {
     string strUserID = "";
     if (object.Equals(null, Request.Form["userid"]))
     {
         Response.Write("{success:false}");
         return;
     }
     else
     {
         try
         {
             strUserID = Request.Form["userid"].ToString();
         }
         catch
         {
             Response.Write("{success:false}");
             return;
         }
     }
     SmsServer.BLL.SmsSpgate bll = new SmsServer.BLL.SmsSpgate();
     string strJson = bll.GetSpgateEx(strUserID);
     strJson = strJson.Replace("\"leaf\":1", "\"leaf\":true");
     strJson = strJson.Replace("\"leaf\":0", "\"leaf\":false");
     strJson = strJson.Replace("\"checked\":\"1\"", "\"checked\":true");
     strJson = strJson.Replace("\"checked\":\"0\"", "\"checked\":false");
     Response.Write(strJson);
 }
示例#2
0
        /// <summary>
        /// 获取代理商的分配的通道
        /// </summary>
        public void GetManagerSpgates()
        {
            string strUserID = "";

            if (object.Equals(null, Request.Form["userid"]))
            {
                Response.Write("{success:false}");
                return;
            }
            else
            {
                try
                {
                    strUserID = Request.Form["userid"].ToString();
                }
                catch
                {
                    Response.Write("{success:false}");
                    return;
                }
            }
            SmsServer.BLL.SmsSpgate bll = new SmsServer.BLL.SmsSpgate();
            string strJson = bll.GetSpgateEx(strUserID);

            strJson = strJson.Replace("\"leaf\":1", "\"leaf\":true");
            strJson = strJson.Replace("\"leaf\":0", "\"leaf\":false");
            strJson = strJson.Replace("\"checked\":\"1\"", "\"checked\":true");
            strJson = strJson.Replace("\"checked\":\"0\"", "\"checked\":false");
            Response.Write(strJson);
        }
        /// <summary>
        /// 获取指定代理商的通道信息列表
        /// </summary>
        public void GetManagerSpgates()
        {
            SmsServer.BLL.SmsSpgate bll = new SmsServer.BLL.SmsSpgate();
            string strJson = bll.GetSpgate(Session["admin"].ToString());

            Response.Write(strJson);
        }
        /// <summary>
        /// 获取指定通道的属性
        /// </summary>
        public void GetSelectSpgateFields()
        {
            if (object.Equals(null, Request.Form["spgateno"]))
            {
                Response.Write("{success:false,errorInfo:'非法操作'}");
                return;
            }
            string strSpgate = Request.Form["spgateno"].ToString();

            SmsServer.BLL.SmsSpgate bll = new SmsServer.BLL.SmsSpgate();
            string strJson = bll.GetSpgateFields(strSpgate);

            Response.Write(strJson);
        }
 /// <summary>
 /// ��ȡָ��ͨ��������
 /// </summary>
 public void GetSelectSpgateFields()
 {
     if (object.Equals(null, Request.Form["spgateno"]))
     {
         Response.Write("{success:false,errorInfo:'�Ƿ�����'}");
         return;
     }
     string strSpgate= Request.Form["spgateno"].ToString();
     SmsServer.BLL.SmsSpgate bll = new SmsServer.BLL.SmsSpgate();
     string strJson = bll.GetSpgateFields(strSpgate);
     Response.Write(strJson);
 }
 /// <summary>
 /// ��ȡָ�������̵�ͨ����Ϣ�б�
 /// </summary>
 public void GetManagerSpgates()
 {
     SmsServer.BLL.SmsSpgate bll = new SmsServer.BLL.SmsSpgate();
     string strJson = bll.GetSpgate(Session["admin"].ToString());
     Response.Write(strJson);
 }