Example #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     RegisterOEMSkins("form.css");
     if (!IsPostBack)
     {
         setBackButton();
         decimal applyformId;
         if (decimal.TryParse(Request.QueryString["id"], out applyformId))
         {
             string lockErrorMsg;
             if (Lock(applyformId, LockRole.Provider, "退款", out lockErrorMsg))
             {
                 BalanceRefundApplyform applyform = ApplyformQueryService.QueryBalanceRefundApplyform(applyformId);
                 if (applyform == null)
                 {
                     showErrorMessage("差额退款申请单不存在");
                 }
                 else
                 {
                     bindData(applyform);
                 }
             }
             else
             {
                 showErrorMessage("锁定申请单失败。原因:" + lockErrorMsg);
             }
         }
         else
         {
             showErrorMessage("参数错误");
         }
     }
 }
Example #2
0
        private void bindApplyInfo(RefundOrScrapApplyform applyform, decimal applyformId)
        {
            BalanceRefundApplyform form = ApplyformQueryService.QueryBalanceRefundApplyform(applyformId);
            DateTime?submitTime         = form.RefundBill.TradeTime;
            string   remark             = form.RefundBill.Remark;
            var      InfoHTML           = new StringBuilder();

            InfoHTML.Append("<table><tr><th>提交时间</th><th>差错备注</th></tr>");
            InfoHTML.Append("<tr>");
            InfoHTML.AppendFormat("<td>{0}</td><td>{1}</td>", submitTime, remark);
            InfoHTML.Append("</table>");
            divApplication.InnerHtml = InfoHTML.ToString();
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     RegisterOEMSkins("form.css");
     if (!IsPostBack)
     {
         setBackButton();
         if (decimal.TryParse(Request.QueryString["id"], out applyformId))
         {
             ; BalanceRefundApplyform applyform = ApplyformQueryService.QueryBalanceRefundApplyform(applyformId);
             if (applyform == null)
             {
                 showErrorMessage("差额退款申请单不存在");
             }
             else
             {
                 bindData(applyform);
             }
         }
         else
         {
             showErrorMessage("参数错误");
         }
     }
 }