| | |
| | | private readonly IFiOrderrecievemoneyService _fiOrderrecievemoneyService; |
| | | private readonly IFiAccountService _fiAccountService; |
| | | private readonly IFiAccountRecordService _iFiAccountRecordService; |
| | | private readonly ISysAttachmentService _sysAttachmentService; |
| | | |
| | | |
| | | public CooperOrderController(ILogger<CooperOrderController> logger, ILiaotianService liaotianService, IUserService userService, ICooperOrderService cooperOrderService |
| | |
| | | , IFiOrderrecievemoneyService fiOrderrecievemoneyService |
| | | , IFiAccountService fiAccountService |
| | | , IFiAccountRecordService iFiAccountRecordService |
| | | , ISysAttachmentService sysAttachmentService |
| | | ) |
| | | { |
| | | _logger = logger; |
| | |
| | | _fiOrderrecievemoneyService = fiOrderrecievemoneyService; |
| | | _fiAccountService = fiAccountService; |
| | | _iFiAccountRecordService = iFiAccountRecordService; |
| | | _sysAttachmentService = sysAttachmentService; |
| | | } |
| | | |
| | | [CheckLogin] |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | if(data.OrderType1 == "民事纠纷" || data.OrderType1 == "其他纠纷") |
| | | { |
| | | data.OrderType2 = data.OrderType3; |
| | | } |
| | | |
| | | using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, |
| | | new TransactionOptions |
| | | { |
| | |
| | | ResultEntity resultEntity = new ResultEntity(); |
| | | resultEntity.Result = false; |
| | | |
| | | using (TransactionScope scope = new TransactionScope()) |
| | | using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, |
| | | new TransactionOptions |
| | | { |
| | | IsolationLevel = IsolationLevel.ReadCommitted, |
| | | Timeout = TransactionManager.MaximumTimeout |
| | | } |
| | | )) |
| | | { |
| | | |
| | | CooperOrderDTO dto = _cooperOrderService.Get(id); |
| | |
| | | } |
| | | |
| | | |
| | | if(dto.Money<=0 && dto.OrderType == "05") |
| | | { |
| | | var cooperatecustomCustomerDTO = _cooperatecustomCustomerService.Get(dto.Khdw); |
| | | var fiMemberDTO = _fiMemberService.Get(dto.OrderType1); |
| | | //开通会员 |
| | | string huiyuanurl = _configuration.GetSection("huiyuanurl").Value; |
| | | string OAWriteChangeAsync = _configuration.GetSection("OAWriteChangeAsync").Value; |
| | | |
| | | Uri postUrl2 = new Uri(huiyuanurl + OAWriteChangeAsync); |
| | | JObject questions2 = new JObject(); |
| | | questions2.Add("UserID", cooperatecustomCustomerDTO.HuiyuanId); |
| | | questions2.Add("PhoneNumber", cooperatecustomCustomerDTO.Tel); |
| | | questions2.Add("VIPName", fiMemberDTO.MemberType); |
| | | questions2.Add("FromName", "OA"); |
| | | questions2.Add("UserName", cooperatecustomCustomerDTO.Name); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | string requestJson2 = questions2.ToString(); |
| | | string result2 = string.Empty; |
| | | |
| | | using (HttpContent httpContent = new StringContent(requestJson2)) |
| | | { |
| | | httpContent.Headers.ContentType = new MediaTypeHeaderValue("application/json"); |
| | | |
| | | using (HttpClient httpClient = new HttpClient()) |
| | | { |
| | | httpClient.Timeout = new TimeSpan(0, 0, 10); |
| | | HttpResponseMessage responseMessage = httpClient.PostAsync(postUrl2, httpContent).Result; |
| | | result2 = responseMessage.Content.ReadAsStringAsync().Result; |
| | | } |
| | | |
| | | } |
| | | |
| | | _logger.LogInformation("result2:" + result2); |
| | | JObject jobjectresult = (JObject)JsonConvert.DeserializeObject(result2); |
| | | |
| | | if (jobjectresult["code"] != null && jobjectresult["code"].ToString() == "1") |
| | | { |
| | | cooperatecustomCustomerDTO.HuiyuanId = jobjectresult["UserID"].ToString(); |
| | | _cooperatecustomCustomerService.save(cooperatecustomCustomerDTO); |
| | | resultEntity.Result = true; |
| | | } |
| | | else |
| | | { |
| | | resultEntity.Result = false; |
| | | resultEntity.Message = "写入会员权限失败"; |
| | | return new JsonResult(resultEntity); |
| | | } |
| | | |
| | | } |
| | | |
| | | dto.Shoulier = curentuser.Id; |
| | | dto.Shoulitime = DateTime.Now; |
| | |
| | | |
| | | ResultEntity resultEntity = new ResultEntity(); |
| | | resultEntity.Result = false; |
| | | |
| | | using (TransactionScope scope = new TransactionScope()) |
| | | { |
| | | |
| | | |
| | | CooperOrderDTO dto = _cooperOrderService.Get(Chedanid); |
| | | if (dto.ShouliStatus != "2") |
| | | { |
| | |
| | | |
| | | |
| | | |
| | | public IActionResult EditZhiyihan(string id = null) |
| | | public IActionResult EditZhiyihan(string id = null, string ReturnID = null) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | |
| | | { |
| | | var sysCodeDtl1 = sysCodeDtls.Where(x => x.CodeSn == sysCodeDtl.Comments).FirstOrDefault(); |
| | | if (sysCodeDtl1 != null) |
| | | sysCodeDtl.CodeSn = sysCodeDtl1.Comments; |
| | | sysCodeDtl.Classify3 = sysCodeDtl1.Comments; |
| | | } |
| | | |
| | | //质疑函 |
| | |
| | | foreach (var challengeItemDTO in challengeletterDTO.challengeItemDTOs) |
| | | { |
| | | var sysCodeDtls2 = sysCodeDtls1.Where(x => x.Classify1 == challengeItemDTO.Question).ToList(); |
| | | if (!string.IsNullOrEmpty(challengeItemDTO.Law) || !string.IsNullOrEmpty(ReturnID)) |
| | | { |
| | | var law = ""; |
| | | if (!string.IsNullOrEmpty(challengeItemDTO.Law)) |
| | | { |
| | | law = challengeItemDTO.Law; |
| | | if (!string.IsNullOrEmpty(ReturnID)) |
| | | { |
| | | law += "," + ReturnID; |
| | | } |
| | | |
| | | } |
| | | else |
| | | { |
| | | law = ReturnID; |
| | | } |
| | | |
| | | if (!string.IsNullOrEmpty(law)) |
| | | { |
| | | sysCodeDtls2 = sysCodeDtls2.Where(x => law.Split(',').Contains(x.CodeSn)).ToList(); |
| | | } |
| | | |
| | | |
| | | } |
| | | challengeItemDTO.sysCodeDtls = sysCodeDtls2; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | challengeletterDTO.challengeItemDTOs = new List<TChallengeItemDTO>() { new TChallengeItemDTO() }; |
| | | var challengeItemDTO = new TChallengeItemDTO(); |
| | | challengeItemDTO.Id = 1; |
| | | challengeletterDTO.challengeItemDTOs = new List<TChallengeItemDTO>() { challengeItemDTO }; |
| | | challengeletterDTO.challengeItemDTOs[0].sysCodeDtls = new List<SysCodeDtl>() { new SysCodeDtl() }; |
| | | } |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | challengeletterDTO.challengeItemDTOs = new List<TChallengeItemDTO>() { new TChallengeItemDTO() }; |
| | | var challengeItemDTO = new TChallengeItemDTO(); |
| | | challengeItemDTO.Id = 1; |
| | | challengeletterDTO.challengeItemDTOs = new List<TChallengeItemDTO>() { challengeItemDTO }; |
| | | challengeletterDTO.challengeItemDTOs[0].sysCodeDtls = new List<SysCodeDtl>() { new SysCodeDtl() }; |
| | | challengeletterDTO.complaintShouquandaibiaoDTOs = new List<TComplaintShouquandaibiaoDTO>() { new TComplaintShouquandaibiaoDTO() }; |
| | | } |
| | |
| | | return new JsonResult(resultEntity); |
| | | } |
| | | |
| | | public IActionResult getQuestionLaw(string id, string no) |
| | | public IActionResult getQuestionLaw(string id, string no,string challengeItemId = "") |
| | | { |
| | | ResultEntity<SysCodeDtl> resultEntity = new ResultEntity<SysCodeDtl>(); |
| | | resultEntity.Result = true; |
| | |
| | | { |
| | | var sysCodeDtl1 = sysCodeDtls1.Where(x => x.CodeSn == sysCodeDtl.Comments).FirstOrDefault(); |
| | | if (sysCodeDtl1 != null) |
| | | sysCodeDtl.CodeSn = sysCodeDtl1.Comments; |
| | | sysCodeDtl.Classify3 = sysCodeDtl1.Comments; |
| | | } |
| | | |
| | | //if (sysCodeDtl != null) |
| | |
| | | // resultEntity.Message = sysCodeDtl.Contents; |
| | | //} |
| | | resultEntity.Message = no; |
| | | resultEntity.Remark = challengeItemId; |
| | | resultEntity.DataList = sysCodeDtls; |
| | | |
| | | return new JsonResult(resultEntity); |
| | |
| | | { |
| | | var sysCodeDtl1 = sysCodeDtls.Where(x => x.CodeSn == sysCodeDtl.Comments).FirstOrDefault(); |
| | | if (sysCodeDtl1 != null) |
| | | sysCodeDtl.CodeSn = sysCodeDtl1.Comments; |
| | | sysCodeDtl.Classify3 = sysCodeDtl1.Comments; |
| | | } |
| | | |
| | | //质疑函 |
| | |
| | | challengeletterDTO.DocumentsDate = data.zhiyiDocumentsDate; |
| | | challengeletterDTO.Modifier = curentuser.Id; |
| | | challengeletterDTO.Modifytime = DateTime.Now; |
| | | challengeletterDTO.Status = 2; |
| | | challengeletterDTO.Status = int.Parse(data.Status); |
| | | challengeletterDTO.RequestInfo = data.RequestInfo; |
| | | challengeletterDTO.PrintNum = data.PrintNum; |
| | | resultEntity = _cooperOrderService.saveChallengeletter(challengeletterDTO); |
| | |
| | | challengeletterDTO.Modifytime = DateTime.Now; |
| | | challengeletterDTO.Creater = curentuser.Id; |
| | | challengeletterDTO.Createtime = challengeletterDTO.Modifytime; |
| | | challengeletterDTO.Status = 2; |
| | | challengeletterDTO.Status = int.Parse(data.Status); ; |
| | | challengeletterDTO.RequestInfo = data.RequestInfo; |
| | | challengeletterDTO.PrintNum = data.PrintNum; |
| | | resultEntity = _cooperOrderService.saveChallengeletter(challengeletterDTO); |
| | |
| | | && string.IsNullOrEmpty(data.Evidential[i]) |
| | | )) |
| | | { |
| | | string Law = ""; |
| | | var challengeItemId = data.challengeItemId[i]; |
| | | var Laws = data.Law; |
| | | var challengeItemIdlaw = data.challengeItemIdlaw; |
| | | if(Laws != null&& Laws.Length > 0) |
| | | { |
| | | for (int j = 0; j < Laws.Length; j++) |
| | | { |
| | | if(challengeItemId == challengeItemIdlaw[j]) |
| | | { |
| | | Law += Laws[j] + ","; |
| | | } |
| | | |
| | | } |
| | | if(!string.IsNullOrEmpty(Law)) |
| | | Law = Law.TrimEnd(','); //移除最后的逗号 |
| | | } |
| | | |
| | | var challengeItemDTO = new TChallengeItemDTO(); |
| | | challengeItemDTO.ChallengeId = challengeletterDTO.Id; |
| | | challengeItemDTO.Question = data.Question[i]; |
| | | challengeItemDTO.Evidential = data.Evidential[i]; |
| | | //challengeItemDTO.Law = data.Law[i]; |
| | | challengeItemDTO.Law = Law; |
| | | //challengeItemDTO.Lawcoment = data.Lawcoment[i]; |
| | | challengeItemDTO.Sort = i; |
| | | resultEntity = _cooperOrderService.saveChallengeItem(challengeItemDTO); |
| | |
| | | { |
| | | var sysCodeDtl1 = sysCodeDtls.Where(x => x.CodeSn == sysCodeDtl.Comments).FirstOrDefault(); |
| | | if (sysCodeDtl1 != null) |
| | | sysCodeDtl.CodeSn = sysCodeDtl1.Comments; |
| | | sysCodeDtl.Classify3 = sysCodeDtl1.Comments; |
| | | } |
| | | //质疑函 |
| | | List<TChallengeletterDTO> challengeletterDTOs = _cooperOrderService.GetListChallengeletter(id); |
| | |
| | | foreach (var challengeItemDTO in challengeletterDTO.challengeItemDTOs) |
| | | { |
| | | var sysCodeDtls2 = sysCodeDtls1.Where(x => x.Classify1 == challengeItemDTO.Question).ToList(); |
| | | if (!string.IsNullOrEmpty(challengeItemDTO.Law)) |
| | | { |
| | | sysCodeDtls2 = sysCodeDtls2.Where(x => challengeItemDTO.Law.Split(',').Contains(x.CodeSn)).ToList(); |
| | | } |
| | | challengeItemDTO.sysCodeDtls = sysCodeDtls2; |
| | | } |
| | | } |
| | |
| | | //ViewBag.law = sysCodeDtls1;//法律依据 |
| | | |
| | | |
| | | var cooperOrderDTO = _cooperOrderService.Get(id); |
| | | var cooperatecustomCustomerDTO = _cooperatecustomCustomerService.Get(cooperOrderDTO.Khdw); |
| | | if (cooperatecustomCustomerDTO.Name.IndexOf("股份有限公司") >= 0) |
| | | { |
| | | cooperatecustomCustomerDTO.Zhiwu = "董事长"; |
| | | } |
| | | else if (cooperatecustomCustomerDTO.Name.IndexOf("有限公司") >= 0 || cooperatecustomCustomerDTO.Name.IndexOf("有限责任公司") >= 0) |
| | | { |
| | | cooperatecustomCustomerDTO.Zhiwu = "执行董事"; |
| | | } |
| | | else if (cooperatecustomCustomerDTO.Name.IndexOf("协会") >= 0) |
| | | { |
| | | cooperatecustomCustomerDTO.Zhiwu = "会长"; |
| | | } |
| | | else |
| | | { |
| | | cooperatecustomCustomerDTO.Zhiwu = "总经理"; |
| | | } |
| | | |
| | | |
| | | ResultDataEntity<SysAttachmentDTO> resultsyinyezhizhao = new ResultDataEntity<SysAttachmentDTO>(); |
| | | |
| | | SysAttachmentDTOSearch searchEntity = new SysAttachmentDTOSearch(); |
| | | searchEntity.page = 1; |
| | | searchEntity.rows = 1000; |
| | | searchEntity.AttObj = "Cooperyinyezhizhao"; |
| | | searchEntity.AttObjid = cooperOrderDTO.Khdw; |
| | | resultsyinyezhizhao = _sysAttachmentService.SearchByPaging(searchEntity); |
| | | |
| | | ViewBag.yinyezhizhao = resultsyinyezhizhao; |
| | | |
| | | |
| | | ResultDataEntity<SysAttachmentDTO> resultshenfenzheng = new ResultDataEntity<SysAttachmentDTO>(); |
| | | |
| | | SysAttachmentDTOSearch searchEntity1 = new SysAttachmentDTOSearch(); |
| | | searchEntity1.page = 1; |
| | | searchEntity1.rows = 1000; |
| | | searchEntity1.AttObj = "Cooperashenfenzheng"; |
| | | searchEntity1.AttObjid = cooperOrderDTO.Khdw; |
| | | resultshenfenzheng = _sysAttachmentService.SearchByPaging(searchEntity1); |
| | | ViewBag.shenfenzheng = resultshenfenzheng; |
| | | |
| | | ViewBag.cooperatecustomCustomerDTO = cooperatecustomCustomerDTO; |
| | | |
| | | ViewData.Model = challengeletterDTO; |
| | | |
| | | |
| | | return View(); |
| | | } |
| | | |
| | | |
| | | public IActionResult EditTousushu(string id = null) |
| | | public IActionResult EditTousushu(string id = null, string ReturnID = null) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | |
| | | { |
| | | var sysCodeDtl1 = sysCodeDtls.Where(x => x.CodeSn == sysCodeDtl.Comments).FirstOrDefault(); |
| | | if (sysCodeDtl1 != null) |
| | | sysCodeDtl.CodeSn = sysCodeDtl1.Comments; |
| | | sysCodeDtl.Classify3 = sysCodeDtl1.Comments; |
| | | } |
| | | //投诉书 |
| | | List<TComplaintletterDTO> complaintletterDTOs = _cooperOrderService.GetListComplaintletter(id); |
| | |
| | | foreach (var complaintItemDTO in complaintletterDTO.complaintItemDTOs) |
| | | { |
| | | var sysCodeDtls2 = sysCodeDtls1.Where(x => x.Classify1 == complaintItemDTO.Question).ToList(); |
| | | |
| | | |
| | | if (!string.IsNullOrEmpty(complaintItemDTO.Law) || !string.IsNullOrEmpty(ReturnID)) |
| | | { |
| | | var law = ""; |
| | | if (!string.IsNullOrEmpty(complaintItemDTO.Law)) |
| | | { |
| | | law = complaintItemDTO.Law; |
| | | if (!string.IsNullOrEmpty(ReturnID)) |
| | | { |
| | | law += "," + ReturnID; |
| | | } |
| | | |
| | | } |
| | | else |
| | | { |
| | | law = ReturnID; |
| | | } |
| | | |
| | | if (!string.IsNullOrEmpty(law)) |
| | | { |
| | | sysCodeDtls2 = sysCodeDtls2.Where(x => law.Split(',').Contains(x.CodeSn)).ToList(); |
| | | } |
| | | |
| | | |
| | | } |
| | | |
| | | complaintItemDTO.sysCodeDtls = sysCodeDtls2; |
| | | } |
| | | } |
| | | else |
| | | { |
| | | complaintletterDTO.complaintItemDTOs = new List<TComplaintItemDTO>() { new TComplaintItemDTO() }; |
| | | var complaintItemDTO = new TComplaintItemDTO(); |
| | | complaintItemDTO.Id = 1; |
| | | complaintletterDTO.complaintItemDTOs = new List<TComplaintItemDTO>() { complaintItemDTO }; |
| | | complaintletterDTO.complaintItemDTOs[0].sysCodeDtls = new List<SysCodeDtl>() { new SysCodeDtl() }; |
| | | } |
| | | |
| | |
| | | } |
| | | else |
| | | { |
| | | complaintletterDTO.complaintItemDTOs = new List<TComplaintItemDTO>() { new TComplaintItemDTO() }; |
| | | var complaintItemDTO = new TComplaintItemDTO(); |
| | | complaintItemDTO.Id = 1; |
| | | complaintletterDTO.complaintItemDTOs = new List<TComplaintItemDTO>() { complaintItemDTO }; |
| | | complaintletterDTO.complaintItemDTOs[0].sysCodeDtls = new List<SysCodeDtl>() { new SysCodeDtl() }; |
| | | complaintletterDTO.complaintRespondentDTOs = new List<TComplaintRespondentDTO>() { new TComplaintRespondentDTO() }; |
| | | complaintletterDTO.complaintShouquandaibiaoDTOs = new List<TComplaintShouquandaibiaoDTO>() { new TComplaintShouquandaibiaoDTO() }; |
| | |
| | | |
| | | complaintletterDTO.Modifier = curentuser.Id; |
| | | complaintletterDTO.Modifytime = DateTime.Now; |
| | | complaintletterDTO.Status = 2; |
| | | complaintletterDTO.Status = int.Parse(data.Status); |
| | | complaintletterDTO.RequestInfo = data.RequestInfo; |
| | | complaintletterDTO.PrintNum = data.PrintNum; |
| | | complaintletterDTO.TsrId = data.TsrId; |
| | |
| | | complaintletterDTO.Modifytime = DateTime.Now; |
| | | complaintletterDTO.Creater = curentuser.Id; |
| | | complaintletterDTO.Createtime = complaintletterDTO.Modifytime; |
| | | complaintletterDTO.Status = 2; |
| | | complaintletterDTO.Status = int.Parse(data.Status); |
| | | complaintletterDTO.RequestInfo = data.RequestInfo; |
| | | complaintletterDTO.PrintNum = data.PrintNum; |
| | | complaintletterDTO.TsrId = data.TsrId; |
| | |
| | | && string.IsNullOrEmpty(data.Evidential[i]) |
| | | )) |
| | | { |
| | | string Law = ""; |
| | | var complaintItemId = data.complaintItemId[i]; |
| | | var Laws = data.Law; |
| | | var complaintItemIdlaw = data.complaintItemIdlaw; |
| | | if (Laws != null && Laws.Length > 0) |
| | | { |
| | | for (int j = 0; j < Laws.Length; j++) |
| | | { |
| | | if (complaintItemId == complaintItemIdlaw[j]) |
| | | { |
| | | Law += Laws[j] + ","; |
| | | } |
| | | |
| | | } |
| | | if (!string.IsNullOrEmpty(Law)) |
| | | Law = Law.TrimEnd(','); //移除最后的逗号 |
| | | } |
| | | |
| | | var complaintItemDTO = new TComplaintItemDTO(); |
| | | complaintItemDTO.ComplaintId = complaintletterDTO.Id; |
| | | complaintItemDTO.Question = data.Question[i]; |
| | | complaintItemDTO.Evidential = data.Evidential[i]; |
| | | //complaintItemDTO.Law = data.Law[i]; |
| | | complaintItemDTO.Law = Law; |
| | | //complaintItemDTO.Lawcoment = data.Lawcoment[i]; |
| | | complaintItemDTO.Sort = i; |
| | | resultEntity = _cooperOrderService.saveComplaintItem(complaintItemDTO); |
| | |
| | | { |
| | | var sysCodeDtl1 = sysCodeDtls.Where(x => x.CodeSn == sysCodeDtl.Comments).FirstOrDefault(); |
| | | if (sysCodeDtl1 != null) |
| | | sysCodeDtl.CodeSn = sysCodeDtl1.Comments; |
| | | sysCodeDtl.Classify3 = sysCodeDtl1.Comments; |
| | | } |
| | | //投诉书 |
| | | List<TComplaintletterDTO> complaintletterDTOs = _cooperOrderService.GetListComplaintletter(id); |
| | |
| | | foreach (var complaintItemDTO in complaintletterDTO.complaintItemDTOs) |
| | | { |
| | | var sysCodeDtls2 = sysCodeDtls1.Where(x => x.Classify1 == complaintItemDTO.Question).ToList(); |
| | | if (!string.IsNullOrEmpty(complaintItemDTO.Law)) |
| | | { |
| | | sysCodeDtls2 = sysCodeDtls2.Where(x => complaintItemDTO.Law.Split(',').Contains(x.CodeSn)).ToList(); |
| | | } |
| | | complaintItemDTO.sysCodeDtls = sysCodeDtls2; |
| | | } |
| | | } |
| | |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | var cooperOrderDTO = _cooperOrderService.Get(id); |
| | | var cooperatecustomCustomerDTO = _cooperatecustomCustomerService.Get(cooperOrderDTO.Khdw); |
| | | if (cooperatecustomCustomerDTO.Name.IndexOf("股份有限公司") >= 0) |
| | | { |
| | | cooperatecustomCustomerDTO.Zhiwu = "董事长"; |
| | | } |
| | | else if (cooperatecustomCustomerDTO.Name.IndexOf("有限公司") >= 0 || cooperatecustomCustomerDTO.Name.IndexOf("有限责任公司") >= 0) |
| | | { |
| | | cooperatecustomCustomerDTO.Zhiwu = "执行董事"; |
| | | } |
| | | else if (cooperatecustomCustomerDTO.Name.IndexOf("协会") >= 0) |
| | | { |
| | | cooperatecustomCustomerDTO.Zhiwu = "会长"; |
| | | } |
| | | else |
| | | { |
| | | cooperatecustomCustomerDTO.Zhiwu = "总经理"; |
| | | } |
| | | |
| | | |
| | | ResultDataEntity<SysAttachmentDTO> resultsyinyezhizhao = new ResultDataEntity<SysAttachmentDTO>(); |
| | | |
| | | SysAttachmentDTOSearch searchEntity = new SysAttachmentDTOSearch(); |
| | | searchEntity.page = 1; |
| | | searchEntity.rows = 1000; |
| | | searchEntity.AttObj = "Cooperyinyezhizhao"; |
| | | searchEntity.AttObjid = cooperOrderDTO.Khdw; |
| | | resultsyinyezhizhao = _sysAttachmentService.SearchByPaging(searchEntity); |
| | | |
| | | ViewBag.yinyezhizhao = resultsyinyezhizhao; |
| | | |
| | | |
| | | ResultDataEntity<SysAttachmentDTO> resultshenfenzheng = new ResultDataEntity<SysAttachmentDTO>(); |
| | | |
| | | SysAttachmentDTOSearch searchEntity1 = new SysAttachmentDTOSearch(); |
| | | searchEntity1.page = 1; |
| | | searchEntity1.rows = 1000; |
| | | searchEntity1.AttObj = "Cooperashenfenzheng"; |
| | | searchEntity1.AttObjid = cooperOrderDTO.Khdw; |
| | | resultshenfenzheng = _sysAttachmentService.SearchByPaging(searchEntity1); |
| | | ViewBag.shenfenzheng = resultshenfenzheng; |
| | | |
| | | ViewBag.cooperatecustomCustomerDTO = cooperatecustomCustomerDTO; |
| | | |
| | | |
| | | ViewData.Model = complaintletterDTO; |
| | | return View(); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | public IActionResult Printbiaoshuhetong(string id = null) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | |
| | | var cooperOrderDTO = _cooperOrderService.Get(id); |
| | | var cooperatecustomCustomerDTO = _cooperatecustomCustomerService.Get(cooperOrderDTO.Khdw); |
| | | cooperOrderDTO.MoneyName = MoneyToUpperHelper.MoneyToUpper(cooperOrderDTO.Money.Value.ToString("0.##")); |
| | | |
| | | ViewData["cooperOrderDTO"] = cooperOrderDTO; |
| | | ViewData["cooperatecustomCustomerDTO"] = cooperatecustomCustomerDTO; |
| | | |
| | | |
| | | return View(); |
| | | } |
| | | |
| | | public IActionResult Printzhiyitousuhetong(string id = null) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | |
| | | var cooperOrderDTO = _cooperOrderService.Get(id); |
| | | var cooperatecustomCustomerDTO = _cooperatecustomCustomerService.Get(cooperOrderDTO.Khdw); |
| | | cooperOrderDTO.MoneyName = MoneyToUpperHelper.MoneyToUpper(cooperOrderDTO.Money.Value.ToString("0.##")); |
| | | |
| | | ViewData["cooperOrderDTO"] = cooperOrderDTO; |
| | | ViewData["cooperatecustomCustomerDTO"] = cooperatecustomCustomerDTO; |
| | | |
| | | |
| | | return View(); |
| | | } |
| | | |
| | | public IActionResult Printhuiyuanhetong(string id = null) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | |
| | | var cooperOrderDTO = _cooperOrderService.Get(id); |
| | | var cooperatecustomCustomerDTO = _cooperatecustomCustomerService.Get(cooperOrderDTO.Khdw); |
| | | cooperOrderDTO.MoneyName = MoneyToUpperHelper.MoneyToUpper(cooperOrderDTO.Money.Value.ToString("0.##")); |
| | | |
| | | FiMemberDTO fiMemberDTO = _fiMemberService.GetList().Where(x => x.Id == cooperOrderDTO.OrderType1).FirstOrDefault(); |
| | | |
| | | if (fiMemberDTO != null) |
| | | { |
| | | cooperOrderDTO.OrderType1Name = fiMemberDTO.MemberType; |
| | | cooperOrderDTO.OrderType2 = fiMemberDTO.MemberAuthority; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | ViewData["cooperOrderDTO"] = cooperOrderDTO; |
| | | ViewData["cooperatecustomCustomerDTO"] = cooperatecustomCustomerDTO; |
| | | |
| | | |
| | | return View(); |
| | | } |
| | | |
| | | public IActionResult Printfengxianhetong(string id = null) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | |
| | | var cooperOrderDTO = _cooperOrderService.Get(id); |
| | | var cooperatecustomCustomerDTO = _cooperatecustomCustomerService.Get(cooperOrderDTO.Khdw); |
| | | cooperOrderDTO.MoneyName = MoneyToUpperHelper.MoneyToUpper(cooperOrderDTO.Money.Value.ToString("0.##")); |
| | | var jichumoney = cooperOrderDTO.Jichumoney.HasValue ? cooperOrderDTO.Jichumoney.Value : 0; |
| | | var tuihuimoney = cooperOrderDTO.Money.Value - jichumoney; |
| | | |
| | | cooperOrderDTO.Jichumoney = tuihuimoney; |
| | | cooperOrderDTO.JichumoneyName = MoneyToUpperHelper.MoneyToUpper(tuihuimoney.ToString("0.##")); |
| | | |
| | | |
| | | |
| | | |
| | | ViewData["cooperOrderDTO"] = cooperOrderDTO; |
| | | ViewData["cooperatecustomCustomerDTO"] = cooperatecustomCustomerDTO; |
| | | |
| | | |
| | | return View(); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |