/// <summary> /// 保存 /// </summary> private void Save() { MDebit model = new MDebit(); model.CompanyId = CurrentUserCompanyID; //实借金额 model.RealAmount = Utils.GetDecimal(Utils.GetFormValue(txt_realAmount.ClientID)); //实领签单数 model.RelSignNum = Utils.GetInt(Utils.GetFormValue(txt_relSignNum.ClientID)); //审批意见 model.Approval = Utils.GetFormValue(txt_approval.ClientID); //借款编号 model.Id = debitID; //审批人ID model.ApproverId = SiteUserInfo.UserId; //审批人Name model.Approver = SiteUserInfo.Name; //审批时间 model.ApproveDate = DateTime.Now; model.Status = EyouSoft.Model.EnumType.FinStructure.FinStatus.账务待支付; if (new BFinance().SetDebitApprove(model)) { AjaxResponse(UtilsCommons.AjaxReturnJson("1")); } else { AjaxResponse(UtilsCommons.AjaxReturnJson("-1")); } }
/// <summary> /// 保存 /// </summary> private void Save() { MDebit model = new MDebit(); //借款编号 model.Id = debitID; //付款人ID model.LenderId = Utils.GetFormValue("txt_lenderID"); //付款人Name model.Lender = Utils.GetFormValue("txt_lenderName"); //支付 model.LendDate = DateTime.Now; model.CompanyId = CurrentUserCompanyID; model.Status = EyouSoft.Model.EnumType.FinStructure.FinStatus.账务已支付; AjaxResponse(UtilsCommons.AjaxReturnJson(new BFinance().PayDebit(model) ? "1" : "-1", "支付失败!")); }