洛阳中航光电项目,为12年项目,此处使用反编译工具恢复源码,恢复为.netframe4.0版本,但仍需使用ie8访问; 数据库使用oracle,现再192.168.8.3服务器,访问账户scott,密码800100

DXGL_SMSRecv.aspx.cs 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. using System;
  2. using System.Collections;
  3. using System.Configuration;
  4. using System.Data;
  5. using System.Linq;
  6. using System.Web;
  7. using System.Web.Security;
  8. using System.Web.UI;
  9. using System.Web.UI.HtmlControls;
  10. using System.Web.UI.WebControls;
  11. using System.Web.UI.WebControls.WebParts;
  12. using System.Xml.Linq;
  13. namespace LYZHGDWeb.Communications
  14. {
  15. public partial class DXGL_SMSRecv : System.Web.UI.Page
  16. {
  17. protected void Page_Load(object sender, EventArgs e)
  18. {
  19. Response.Expires = -1;
  20. if (!Page.IsPostBack)
  21. {
  22. if (!string.IsNullOrEmpty(Request.QueryString["id"]))
  23. {
  24. Initialize(Request.QueryString["id"]);
  25. }
  26. }
  27. }
  28. #region 信息初始化
  29. void Initialize(string id)
  30. {
  31. try
  32. {
  33. Obj = new BLL.T_SMS_RecvSMS().GetModel(Convert.ToInt32(id));
  34. }
  35. catch (Exception ex)
  36. {
  37. Common.SysLog.WriteLog(ex);
  38. }
  39. }
  40. #endregion
  41. #region 公共属性
  42. private Model.T_SMS_RecvSMS Obj
  43. {
  44. get
  45. {
  46. return null;
  47. }
  48. set
  49. {
  50. if (value != null)
  51. {
  52. this.txtPhone.Value = value.CALLERNUM;
  53. this.txtContent.Value = value.CONTENT;
  54. this.txtSendTime.Value = value.RECVTIME.ToString();
  55. this.txtName.Value = value.F_NAME;
  56. #region 更新查看状态
  57. if (value.STATE == 0)
  58. {
  59. int i = new BLL.T_SMS_RecvSMS().UpdateState(Convert.ToInt32(value.SMSID), 1);
  60. if (i>0)
  61. {
  62. txtupdateres.Value = "success";
  63. }
  64. }
  65. #endregion
  66. }
  67. }
  68. }
  69. #endregion
  70. }
  71. }