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>"); } }
public void Delete(int id) { Sms_DataInfo sms_DataInfo = new Sms_DataInfo(); sms_DataInfo.id = id; this.control.DeleteEntity(sms_DataInfo); }
public void Update(Sms_DataInfo com) { Sms_Data.dal.Update(com); }
public void Add(Sms_DataInfo com) { Sms_Data.dal.Add(com); }
public void Update(Sms_DataInfo Sms_Data_) { this.control.UpdateEntity(Sms_Data_, Sms_Data_.id); }
public void Add(Sms_DataInfo Sms_Data_) { this.control.AddEntity(Sms_Data_); }