Пример #1
0
 protected void lnkProccess_Click(object sender, EventArgs arg)
 {
     try
     {
         adviceHelper.ReplyAdvice(AdviceID, fckContent.Value.Trim());
         ProccessMsg.Redirect(1, Advice.TypeID, "处理成功!");
     }
     catch (System.Threading.ThreadAbortException ex)
     {
     }
     catch (Exception ex)
     {
         ProccessMsg.Redirect(0, Advice.TypeID, "应用程序错误!错误原因:" + ex.Message);
     }
 }
Пример #2
0
 protected void lnkRefuse_Click(object sender, EventArgs arg)
 {
     try
     {
         adviceHelper.RefuseAdvice(AdviceID, fckContent.Value.Trim());
         ProccessMsg.Redirect(1, Advice.TypeID, "操作成功!当前信息不在受理范围内!");
     }
     catch (System.Threading.ThreadAbortException ex)
     {
     }
     catch (Exception ex)
     {
         ProccessMsg.Redirect(0, Advice.TypeID, "应用程序错误!" + ex.Message);
     }
 }
Пример #3
0
 protected void lnkTransfer_Click(object sender, EventArgs arg)
 {
     try
     {
         if (!String.IsNullOrEmpty(rdAdviceTypeList.SelectedValue))
         {
             string typeID = Advice.TypeID; //防止值在转发后发生变化
             adviceHelper.TransferAdvice(AdviceID, rdAdviceTypeList.SelectedValue, fckContent.Value.Trim());
             ProccessMsg.Redirect(1, typeID, "转办成功!");
         }
         else
         {
             Messages.ShowError("请选择转发项");
         }
     }
     catch (System.Threading.ThreadAbortException ex)
     {
     }
     catch (Exception ex)
     {
         Messages.ShowError("应用程序错误!" + ex.Message);
     }
 }
Пример #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         string id   = Request["id"];
         string type = Request["type"];
         if (!String.IsNullOrEmpty(id))
         {
             try
             {
                 IAdviceHelper helper = AdviceFactory.Create();
                 AdviceInfo    advice = helper.GetAdvice(id);
                 if (advice != null)
                 {
                     helper.UpdateAdviceState(id, 2);
                     ProccessMsg.Redirect(1, advice.TypeID, "受理成功!");
                 }
                 else
                 {
                     ProccessMsg.Redirect(0, advice.TypeID, "当前记录不存在!");
                 }
             }
             catch (System.Threading.ThreadAbortException ex)
             {
             }
             catch (Exception ex)
             {
                 ProccessMsg.Redirect(0, String.Empty, "应用程序错误!错误原因:" + ex.Message);
             }
         }
         else
         {
             ProccessMsg.Redirect(2, String.Empty, "当前记录不存在!");
         }
     }
 }