Пример #1
0
        void load()
        {
            string channel = Request.QueryString["channel"];

            SMSModel.RPCResult <SMSModel.Channel> r = ZHSMSProxy.GetZHSMSPlatService().GetSMSChannel(channel);
            if (r.Success)
            {
                SMSModel.Channel config = r.Value;
                if (config != null)
                {
                    lbl_channelID.Text   = config.ChannelID;
                    txt_channelName.Text = config.ChannelName;
                    txt_remark.Text      = config.Remark;
                }
            }
        }
Пример #2
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            string channel = Request.QueryString["channel"];

            SMSModel.Channel c = new SMSModel.Channel();

            c.ChannelID   = channel;
            c.ChannelName = txt_channelName.Text;
            c.Remark      = txt_remark.Text;
            SMSModel.RPCResult r = ZHSMSProxy.GetZHSMSPlatService().UpdateChannel(c);

            if (r.Success)
            {
                Message.Success(this, "操作成功", "null");
            }
            else
            {
                Message.Alert(this, r.Message, "null");
            }
        }
Пример #3
0
        protected void btnSubmit_Click(object sender, EventArgs e)
        {
            SMSModel.Channel c = new SMSModel.Channel();

            c.ChannelID   = txt_channelID.Text.Trim();
            c.ChannelName = txt_channelName.Text.Trim();
            c.Remark      = txt_remark.Text.Trim();
            if (c.ChannelID == "-1-")
            {
                Message.Alert(this, "已存在此短信通道", "null");
                return;
            }
            SMSModel.RPCResult r = ZHSMSProxy.GetZHSMSPlatService().AddChannel(c);
            if (r.Success)
            {
                Message.Success(this, "添加成功", "null");
            }
            else
            {
                Message.Alert(this, r.Message, "null");
            }
        }