| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- namespace LYZHGDWeb.Communications
- {
- public partial class CZGL_FaxCloseAddLast : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- }
- protected void btnEdit_Click(object sender, EventArgs e)
- {
- try
- {
- if (!string.IsNullOrEmpty(Request.QueryString["strfaxid"]))
- {
- BLL.T_FAX_RECVFAX bll_recvfax = new JAnCallCenter.BLL.T_FAX_RECVFAX();
- Model.T_FAX_RECVFAX obj_recvfax = bll_recvfax.GetModel(int.Parse(Request.QueryString["strfaxid"].ToString()));
- string filenum = obj_recvfax.FAXFILENUM;
- if (obj_recvfax != null)
- {
- for (int i = 1; i <= int.Parse(txtLast.Text); i++)
- {
- Model.T_FAX_RECVFAX obj = obj_recvfax;
- obj.FAXFILENUM = filenum + "-" + i.ToString();
- bll_recvfax.AddNew(obj);
- }
- }
- Response.Write("<script language='javascript'>parent.OpenMessage('framemessage', '操作提示', '添加成功', 220, 0);</script>");
- }
- }
- catch (Exception ex)
- {
- Response.Write("<script language='javascript'>parent.OpenMessage('framemessage', '操作提示', '添加失败:" + ex.Message + "', 220, 0);</script>");
- }
- }
- }
- }
|