| | |
| | | using zhengcaioa.Models; |
| | | using System.IdentityModel.Tokens.Jwt; |
| | | using CommonToolsCore; |
| | | using System.Transactions; |
| | | |
| | | namespace zhengcaioa.Controllers |
| | | { |
| | |
| | | } |
| | | data.Modifier = curentuser.Id; |
| | | data.Modifytime = DateTime.Now; |
| | | ResultEntity resultEntity = new ResultEntity(); |
| | | resultEntity.Result = false; |
| | | using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required, |
| | | new TransactionOptions |
| | | { |
| | | IsolationLevel = IsolationLevel.ReadCommitted, |
| | | Timeout = TransactionManager.MaximumTimeout |
| | | } |
| | | )) |
| | | { |
| | | resultEntity = _projectService.saveLiaotian(data); |
| | | scope.Complete(); |
| | | } |
| | | |
| | | ResultEntity resultEntity = _projectService.saveLiaotian(data); |
| | | |
| | | |
| | | return JsonConvert.SerializeObject(resultEntity); |
| | | } |
| | |
| | | ViewBag.Creater = _userService.GetList().Select(x => new { code = x.Id, label = x.UserName }).ToList(); |
| | | ViewBag.flbx = _liaotianService.GetSYScode("system", "shifou").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); |
| | | ViewBag.ShiFouyReasonname = _liaotianService.GetSYScode("Project", "ShiFouyReasonname").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); |
| | | |
| | | ViewBag.Baomingtimebegin = DateTime.Now.AddYears(-1).ToString("yyyy-MM-dd"); |
| | | ViewBag.Baomingtimeend = DateTime.Now.ToString("yyyy-MM-dd"); |
| | | |
| | | return View(); |
| | | } |
| | | |