| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- using System;
- using System.Collections;
- using System.Configuration;
- using System.Data;
- using System.Linq;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.HtmlControls;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Xml.Linq;
- namespace LYZHGDWeb.Communications
- {
- public partial class DXGL_SMSRecv : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- Response.Expires = -1;
- if (!Page.IsPostBack)
- {
- if (!string.IsNullOrEmpty(Request.QueryString["id"]))
- {
- Initialize(Request.QueryString["id"]);
- }
- }
- }
- #region 信息初始化
- void Initialize(string id)
- {
- try
- {
- Obj = new BLL.T_SMS_RecvSMS().GetModel(Convert.ToInt32(id));
- }
- catch (Exception ex)
- {
- Common.SysLog.WriteLog(ex);
- }
- }
- #endregion
- #region 公共属性
- private Model.T_SMS_RecvSMS Obj
- {
- get
- {
- return null;
- }
- set
- {
- if (value != null)
- {
- this.txtPhone.Value = value.CALLERNUM;
- this.txtContent.Value = value.CONTENT;
- this.txtSendTime.Value = value.RECVTIME.ToString();
- this.txtName.Value = value.F_NAME;
- #region 更新查看状态
- if (value.STATE == 0)
- {
- int i = new BLL.T_SMS_RecvSMS().UpdateState(Convert.ToInt32(value.SMSID), 1);
- if (i>0)
- {
- txtupdateres.Value = "success";
- }
- }
- #endregion
- }
- }
- }
- #endregion
- }
- }
|