public ActionResult Pay() { BaseResult br = new BaseResult(); Td_sale_pay_Query model = new Td_sale_pay_Query(); try { Hashtable param = GetParameters(); ParamVessel p = new ParamVessel(); p.Add("dh", String.Empty, HandleType.ReturnMsg); param = param.Trim(p); string dh = param["dh"].ToString(); ViewData["je_pay"] = (long)0; // 订单金额 ViewData["je_payed"] = (long)0; // 已付金额 ViewData["id_gys"] = (long)0; // 供应商id 选择银行账号标识 param.Clear(); param.Add("dh", dh); br = BusinessFactory.Order.Get(param); if (br.Data != null) { Td_Sale_Order_Head head = (Td_Sale_Order_Head)br.Data; model.dh_order = head.dh; ViewData["je_pay"] = head.je_pay; ViewData["je_payed"] = head.je_payed; ViewData["id_gys"] = head.id_gys; model.je = (head.je_pay - head.je_payed) < 0 ? (long)0 : (head.je_pay - head.je_payed); // 尚未付款 // 收款账号 param.Clear(); param.Add("id_gys", head.id_gys); Tb_Gys_Account Bank = BusinessFactory.BankAccount.GetDefault(param).Data as Tb_Gys_Account; if (Bank != null) { model.khr = Bank.khr; model.name_bank = Bank.name_bank; model.account_bank = Bank.account_bank; } } } catch (CySoftException ex) { throw ex; } catch (Exception ex) { throw ex; } return(View(model)); }
public ActionResult DeleteRecord(Td_sale_pay_Query model) { BaseResult br = new BaseResult(); Hashtable param = new Hashtable(); try { param["dh"] = model.dh; param["new_flag_delete"] = 1; br = BusinessFactory.Funds.Update(param); } catch (CySoftException ex) { throw ex; } catch (Exception ex) { throw ex; } return(Json(br)); }