Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Enterprisehandler handler = new Enterprisehandler();
     PageList<SmsEnterpriseInfo> infos = handler.GetAllList();
     foreach (SmsEnterpriseInfo smsEnterpriseInfo in infos)
     {
         enterpise += "   <option value='" + smsEnterpriseInfo.ID + "'>" + smsEnterpriseInfo.EnterpriseName + "</option>";
     }
     Page.DataBind();
 }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Enterprisehandler handler = new Enterprisehandler();
            List<SmsEnterpriseCfgInfo> infos = handler.getCfgList(AppContent.Current.GetCurrentUser().EnterpriseID);
            foreach (SmsEnterpriseCfgInfo smsEnterpriseCfgInfo in infos)
            {
                if (smsEnterpriseCfgInfo.CfgKey == "smslength")
                {
                    smslength = smsEnterpriseCfgInfo.CfgValue;
                    break;
                    ;
                }

            }
            signature = AppContent.Current.GetCurrentUser().Signature;
            Page.DataBind();
        }
Exemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     Enterprisehandler enterprisehandler = new Enterprisehandler();
     List<SmsEnterpriseCfgInfo> infos = enterprisehandler.getCfgList(int.Parse(Request.Params["eid"]));
     enterpriseid = Request.Params["eid"];
     foreach (SmsEnterpriseCfgInfo smsEnterpriseCfgInfo in infos)
     {
         if (smsEnterpriseCfgInfo.CfgKey == "smsprice")
             smsprice = smsEnterpriseCfgInfo.CfgValue;
         if (smsEnterpriseCfgInfo.CfgKey == "chinamobile")
             chinamobile = smsEnterpriseCfgInfo.CfgValue;
         if (smsEnterpriseCfgInfo.CfgKey == "union")
             union = smsEnterpriseCfgInfo.CfgValue;
         if (smsEnterpriseCfgInfo.CfgKey == "cdma")
             cdma = smsEnterpriseCfgInfo.CfgValue;
         if (smsEnterpriseCfgInfo.CfgKey == "smslength")
             smslength = smsEnterpriseCfgInfo.CfgValue;
     }
     Page.DataBind();
 }