| | |
| | | private readonly IFiAccountService _fiAccountService; |
| | | private readonly IFiAccountRecordService _iFiAccountRecordService; |
| | | private readonly ICooperatecustomCustomerService _cooperatecustomCustomerService; |
| | | private readonly IProjectService _projectService; |
| | | private readonly IUserService _userService; |
| | | |
| | | public FiOrderrecievemoneyController(ILogger<FiOrderrecievemoneyController> logger, ILiaotianService liaotianService, IFiOrderrecievemoneyService fiOrderrecievemoneyService, ICooperOrderService cooperOrderService, IFiSubjectService ifiSubjectService |
| | | , IFiAccountService fiAccountService, IFiAccountRecordService iFiAccountRecordService, ICooperatecustomCustomerService cooperatecustomCustomerService) |
| | | , IFiAccountService fiAccountService, IFiAccountRecordService iFiAccountRecordService, ICooperatecustomCustomerService cooperatecustomCustomerService |
| | | , IProjectService projectService |
| | | , IUserService userService) |
| | | { |
| | | _logger = logger; |
| | | _liaotianService = liaotianService; |
| | |
| | | _fiAccountService = fiAccountService; |
| | | _iFiAccountRecordService = iFiAccountRecordService; |
| | | _cooperatecustomCustomerService = cooperatecustomCustomerService; |
| | | |
| | | |
| | | _projectService = projectService; |
| | | _userService = userService; |
| | | } |
| | | |
| | | public IActionResult Index() |
| | |
| | | ViewData["curentuser"] = curentuser; |
| | | return new JsonResult(_fiOrderrecievemoneyService.ModifyStatus(Id, curentuser.Id)); |
| | | } |
| | | |
| | | |
| | | public IActionResult IndexCustomer() |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | List<ActionEntity> actionlist = new List<ActionEntity>(); |
| | | ActionEntity actionEntity = new ActionEntity(); |
| | | actionEntity.OpenType = 0; |
| | | actionEntity.ActionUrl = ""; |
| | | actionEntity.ActionFun = "Search"; |
| | | actionEntity.PageIco = "fa fa-search"; |
| | | actionEntity.ActionName = "查询"; |
| | | actionlist.Add(actionEntity); |
| | | |
| | | |
| | | ViewData["ActionInfo"] = actionlist; |
| | | |
| | | |
| | | ViewBag.khlx = _liaotianService.GetSYScode("CooperatecustomCustomer", "khlx").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); |
| | | ViewBag.khly = _liaotianService.GetSYScode("CooperatecustomCustomer", "khly").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); |
| | | ViewBag.hyfl = _liaotianService.GetSYScode("CooperatecustomCustomer", "hyfl").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); |
| | | ViewBag.shifou = _liaotianService.GetSYScode("system", "shifou").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); |
| | | ViewBag.users = _userService.GetList().Where(x => x.IsYwjl == "A").Select(x => new { code = x.Id, label = x.UserName }).ToList(); |
| | | |
| | | var areaDTOs = _projectService.Getsheng().ToList(); |
| | | foreach (var areaDTO in areaDTOs) |
| | | { |
| | | if (areaDTO.CodeId == "510000") |
| | | { |
| | | areaDTOs.Remove(areaDTO); |
| | | break; |
| | | } |
| | | } |
| | | var areaDTOsic = new Area(); |
| | | areaDTOsic.CodeId = "510000"; |
| | | areaDTOsic.Name = "四川省"; |
| | | areaDTOsic.ParentId = "0 "; |
| | | areaDTOs.Insert(1, areaDTOsic); |
| | | ViewBag.ShengDropDown = areaDTOs.Select(x => new { code = x.CodeId, label = x.Name }).ToList(); |
| | | |
| | | return View(); |
| | | |
| | | } |
| | | } |
| | | } |