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

CZGL_FaxCloseAddLast.aspx.cs 1.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. using System.Web.UI;
  6. using System.Web.UI.WebControls;
  7. namespace LYZHGDWeb.Communications
  8. {
  9. public partial class CZGL_FaxCloseAddLast : System.Web.UI.Page
  10. {
  11. protected void Page_Load(object sender, EventArgs e)
  12. {
  13. }
  14. protected void btnEdit_Click(object sender, EventArgs e)
  15. {
  16. try
  17. {
  18. if (!string.IsNullOrEmpty(Request.QueryString["strfaxid"]))
  19. {
  20. BLL.T_FAX_RECVFAX bll_recvfax = new JAnCallCenter.BLL.T_FAX_RECVFAX();
  21. Model.T_FAX_RECVFAX obj_recvfax = bll_recvfax.GetModel(int.Parse(Request.QueryString["strfaxid"].ToString()));
  22. string filenum = obj_recvfax.FAXFILENUM;
  23. if (obj_recvfax != null)
  24. {
  25. for (int i = 1; i <= int.Parse(txtLast.Text); i++)
  26. {
  27. Model.T_FAX_RECVFAX obj = obj_recvfax;
  28. obj.FAXFILENUM = filenum + "-" + i.ToString();
  29. bll_recvfax.AddNew(obj);
  30. }
  31. }
  32. Response.Write("<script language='javascript'>parent.OpenMessage('framemessage', '操作提示', '添加成功', 220, 0);</script>");
  33. }
  34. }
  35. catch (Exception ex)
  36. {
  37. Response.Write("<script language='javascript'>parent.OpenMessage('framemessage', '操作提示', '添加失败:" + ex.Message + "', 220, 0);</script>");
  38. }
  39. }
  40. }
  41. }