| | |
| | | private readonly IAdmGoodsRecordService _admGoodsRecordService; |
| | | |
| | | private readonly IAdmGoodsManageService _admGoodsManageService; |
| | | private readonly IFiOrderrecievemoneyService _fiOrderrecievemoneyService; |
| | | private readonly IFiAccountService _fiAccountService; |
| | | private readonly IFiAccountRecordService _iFiAccountRecordService; |
| | | |
| | | |
| | | public CooperOrderController(ILogger<CooperOrderController> logger, ILiaotianService liaotianService, IUserService userService, ICooperOrderService cooperOrderService |
| | |
| | | , IAskService askService |
| | | , IAdmGoodsRecordService admGoodsRecordService |
| | | , IAdmGoodsManageService admGoodsManageService |
| | | , IFiOrderrecievemoneyService fiOrderrecievemoneyService |
| | | , IFiAccountService fiAccountService |
| | | , IFiAccountRecordService iFiAccountRecordService |
| | | ) |
| | | { |
| | | _logger = logger; |
| | |
| | | _askService = askService; |
| | | _admGoodsRecordService = admGoodsRecordService; |
| | | _admGoodsManageService = admGoodsManageService; |
| | | _fiOrderrecievemoneyService = fiOrderrecievemoneyService; |
| | | _fiAccountService = fiAccountService; |
| | | _iFiAccountRecordService = iFiAccountRecordService; |
| | | } |
| | | |
| | | [CheckLogin] |
| | |
| | | dto.ShouliStatus = "0"; |
| | | |
| | | resultEntity = _cooperOrderService.chedan(dto); |
| | | |
| | | |
| | | var fiAccountRecordDTOs = _iFiAccountRecordService.GetList("订单收款"+dto.OrderNo); |
| | | if (fiAccountRecordDTOs!= null && fiAccountRecordDTOs.Count > 0) |
| | | { |
| | | foreach (var fiAccountRecordDTO in fiAccountRecordDTOs) |
| | | { |
| | | CooperatecustomCustomerDTO cooperatecustomCustomerDTO = _cooperatecustomCustomerService.Get(dto.Khdw); |
| | | FiAccountRecordDTO data1 = new FiAccountRecordDTO(); |
| | | data1.RecStatus = "A"; |
| | | data1.Creater = curentuser.Id; |
| | | data1.Createtime = DateTime.Now; |
| | | data1.Modifier = curentuser.Id; |
| | | data1.Modifytime = DateTime.Now; |
| | | data1.SubjectId = fiAccountRecordDTO.SubjectId; |
| | | |
| | | data1.AccountId = fiAccountRecordDTO.AccountId; |
| | | data1.Money = fiAccountRecordDTO.Money; |
| | | data1.PaymentUnit = cooperatecustomCustomerDTO.Name; |
| | | data1.OperationalMatters = "订单撤单" + dto.OrderNo; |
| | | |
| | | |
| | | |
| | | FiAccountDTO firmAccount = _fiAccountService.Get(data1.AccountId); |
| | | |
| | | |
| | | data1.RecordTypeId = "2";//退款 |
| | | data1.Department = ""; |
| | | |
| | | |
| | | |
| | | firmAccount.AllExpenses = (firmAccount.AllExpenses ?? 0) + fiAccountRecordDTO.Money; |
| | | firmAccount.Balance = (firmAccount.Balance ?? 0) - fiAccountRecordDTO.Money; |
| | | |
| | | data1.AccountMoney = firmAccount.Balance; |
| | | resultEntity = _iFiAccountRecordService.save(data1); |
| | | resultEntity = _fiAccountService.save(firmAccount); |
| | | } |
| | | } |
| | | scope.Complete(); |
| | | } |
| | | return new JsonResult(resultEntity); |
| | |
| | | |
| | | |
| | | |
| | | ViewBag.request_info = _liaotianService.GetSYScode("t_challengeletter", "request_info");//质疑请求 |
| | | ViewBag.question = _liaotianService.GetSYScode("t_challenge_items", "question"); // 质疑事项 |
| | | var sysCodeDtls = _liaotianService.GetSYScode("expert_test_topicjiexi", "falv");//法律 |
| | | var sysCodeDtls1 = _liaotianService.GetSYScode("t_complaint_items", "law");//法律依据 |
| | | ViewBag.request_info = _liaotianService.GetSYScode("t_challengeletter", "request_info").OrderBy(x=>x.CodeSn).ToList();//质疑请求 |
| | | ViewBag.question = _liaotianService.GetSYScode("t_challenge_items", "question").OrderBy(x => x.CodeSn).ToList(); // 质疑事项 |
| | | var sysCodeDtls = _liaotianService.GetSYScode("expert_test_topicjiexi", "falv").OrderBy(x => x.CodeSn).ToList();//法律 |
| | | var sysCodeDtls1 = _liaotianService.GetSYScode("t_complaint_items", "law").OrderBy(x => x.CodeSn).ToList();//法律依据 |
| | | foreach ( var sysCodeDtl in sysCodeDtls1) |
| | | { |
| | | var sysCodeDtl1 = sysCodeDtls.Where(x => x.CodeSn == sysCodeDtl.Comments).FirstOrDefault(); |
| | |
| | | return new JsonResult(resultEntity); |
| | | } |
| | | |
| | | public IActionResult getQuestionLaw(string id, string no) |
| | | { |
| | | ResultEntity<SysCodeDtl> resultEntity = new ResultEntity<SysCodeDtl>(); |
| | | resultEntity.Result = true; |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | |
| | | var sysCodeDtls = _liaotianService.GetSYScode("t_complaint_items", "law").Where(x => x.Classify1 == id).OrderBy(x => x.CodeSn).ToList().ToList();//法律依据 |
| | | var sysCodeDtls1 = _liaotianService.GetSYScode("expert_test_topicjiexi", "falv");//法律 |
| | | foreach (var sysCodeDtl in sysCodeDtls) |
| | | { |
| | | var sysCodeDtl1 = sysCodeDtls1.Where(x => x.CodeSn == sysCodeDtl.Comments).FirstOrDefault(); |
| | | if (sysCodeDtl1 != null) |
| | | sysCodeDtl.Comments = sysCodeDtl1.Comments; |
| | | } |
| | | |
| | | //if (sysCodeDtl != null) |
| | | //{ |
| | | // resultEntity.Message = sysCodeDtl.Contents; |
| | | //} |
| | | resultEntity.Message = no; |
| | | resultEntity.DataList = sysCodeDtls; |
| | | |
| | | return new JsonResult(resultEntity); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 保存 |
| | |
| | | |
| | | |
| | | |
| | | ViewBag.request_info = _liaotianService.GetSYScode("t_challengeletter", "request_info");//质疑请求 |
| | | ViewBag.question = _liaotianService.GetSYScode("t_challenge_items", "question"); // 质疑事项 |
| | | var sysCodeDtls = _liaotianService.GetSYScode("expert_test_topicjiexi", "falv");//法律 |
| | | var sysCodeDtls1 = _liaotianService.GetSYScode("t_complaint_items", "law");//法律依据 |
| | | ViewBag.request_info = _liaotianService.GetSYScode("t_challengeletter", "request_info").OrderBy(x => x.CodeSn).ToList();//质疑请求 |
| | | ViewBag.question = _liaotianService.GetSYScode("t_challenge_items", "question").OrderBy(x => x.CodeSn).ToList(); // 质疑事项 |
| | | var sysCodeDtls = _liaotianService.GetSYScode("expert_test_topicjiexi", "falv").OrderBy(x => x.CodeSn).ToList();//法律 |
| | | var sysCodeDtls1 = _liaotianService.GetSYScode("t_complaint_items", "law").OrderBy(x => x.CodeSn).ToList();//法律依据 |
| | | |
| | | foreach (var sysCodeDtl in sysCodeDtls1) |
| | | { |