From 8e5d569d8362b0bc25b45a8003f8be6be65a8104 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期三, 15 十二月 2021 14:31:58 +0800 Subject: [PATCH] 提交 --- /dev/null | 124 ----------------------------------------- 1 files changed, 0 insertions(+), 124 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Controllers/Expert/ExpertController.cs b/zhengcaioa/zhengcaioa/Controllers/Expert/ExpertController.cs deleted file mode 100644 index 523b23c..0000000 --- a/zhengcaioa/zhengcaioa/Controllers/Expert/ExpertController.cs +++ /dev/null @@ -1,705 +0,0 @@ -锘縰sing Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.Extensions.Logging; -using IServices; -using DTO; -using Newtonsoft.Json; -using zhengcaioa.Models; -using Microsoft.AspNetCore.Http; -using zhengcaioa.IService; -using System.IO; -using Microsoft.Extensions.Configuration; -using System.Transactions; -using CommonToolsCore; -using System.Text; - -namespace zhengcaioa.Controllers.Expert -{ - - public class ExpertController : Controller - { - private readonly ILogger<ExpertController> _logger; - private readonly IExpertService _expertService; - private readonly ILiaotianService _liaotianService; - private readonly IProjectService _projectService; - private readonly IUserService _userService; - private readonly IFiSubjectService _ifiSubjectService; - private readonly ICooperOrderService _cooperOrderService; - private readonly IFiAccountService _fiAccountService; - private readonly IFiAccountRecordService _iFiAccountRecordService; - private readonly IAreaService _iAreaService; - public ExpertController(ILogger<ExpertController> logger, IExpertService expertService, IProjectService projectService, ILiaotianService liaotianService, IUserService userService - , IFiSubjectService ifiSubjectService, ICooperOrderService cooperOrderService, IFiAccountService fiAccountService, IFiAccountRecordService iFiAccountRecordService - , IAreaService iAreaService) - { - _logger = logger; - _expertService = expertService; - _projectService = projectService; - _liaotianService = liaotianService; - _userService = userService; - _ifiSubjectService = ifiSubjectService; - _cooperOrderService = cooperOrderService; - _fiAccountService = fiAccountService; - _iFiAccountRecordService = iFiAccountRecordService; - _iAreaService = iAreaService; - } - [CheckLogin] - public IActionResult Index() - { - 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); - ActionEntity actionEntity1 = new ActionEntity(); - actionEntity1.OpenType = 0; - actionEntity1.ActionUrl = ""; - actionEntity1.ActionFun = "Add"; - actionEntity1.PageIco = "fa fa-plus"; - actionEntity1.ActionName = "鏂板"; - actionlist.Add(actionEntity1); - ViewData["ActionInfo"] = actionlist; - - ViewBag.expertType = _liaotianService.GetSYScode("experts", "expertType").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); - ViewBag.level = _liaotianService.GetSYScode("experts", "level").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); - ViewBag.Province = _projectService.Getsheng().Select(x => new { code = x.CodeId, label = x.Name }).ToList(); - // ViewBag.City = _projectService.Getshi( ).Select(x => new { code = x.CodeId, label = x.Name }).ToList(); - ViewBag.ReviewItem = _liaotianService.GetSYScode("experts", "ReviewItem").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); - return View(); - } - - #region 鏌ヨ - [CheckLogin] - public string GetList(ExpertDTOSearch search) - { - var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); - search.ShenheStatus = "A"; - ViewData["curentuser"] = curentuser; - return JsonConvert.SerializeObject(_expertService.SearchByPaging(search)); - } - #endregion - - - - - - - #region 缂栬緫 - [CheckLogin] - public ActionResult Edit(string id = null, string Province = null, string City = null) - { - - 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 = "Save"; - actionEntity.PageIco = "glyphicon glyphicon-ok"; - actionEntity.ActionName = "淇濆瓨"; - actionlist.Add(actionEntity); - - ViewData["ActionInfo"] = actionlist; - - ExpertDTO expertDTO = new ExpertDTO(); - if (!string.IsNullOrEmpty(id)) - { - expertDTO = _expertService.Get(id); - } - else - { - if (string.IsNullOrEmpty(Province)) - { - expertDTO.Province = "510000"; - } - else - { - expertDTO.Province = Province; - } - if (string.IsNullOrEmpty(City)) - { - expertDTO.City = "510100"; - } - else - { - expertDTO.City = City; - } - expertDTO.ExpertType = "4"; - expertDTO.Level = "1"; - expertDTO.CertiNumber = "SC"; - expertDTO.InfoSource = "01"; - expertDTO.Sex = "1"; - expertDTO.YearJiou = "1"; - } - // var sheng = _projectService.Getsheng(); - - - ViewBag.InfoSource = _liaotianService.GetSYScode("CooperatecustomCustomer", "khly");//.Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); - ViewBag.sex = _liaotianService.GetSYScode("plt_user", "sex");//.Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); - ViewBag.expertType = _liaotianService.GetSYScode("experts", "expertType");//.Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); - ViewBag.level = _liaotianService.GetSYScode("experts", "level");//.Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); - ViewBag.ReviewItem = _liaotianService.GetSYScode("experts", "ReviewItem");//.Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); - - - ViewBag.Province = _projectService.Getsheng();//.Select(x => new { code = x.CodeId, label = x.Name }).ToList(); - ViewBag.City = _projectService.Getshi(expertDTO.Province);//.Select(x => new { code = x.CodeId, label = x.Name }).ToList(); - ViewBag.YearJiou = _liaotianService.GetSYScode("experts", "year_jiou");//.Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); - ViewData.Model = expertDTO; - return View(); - } - - - - /// <summary> - /// 鍥剧墖涓婁紶 - /// </summary> - /// <returns></returns> - public string UploadImage() - { - var files = Request.Form.Files; - if (files.Count == 0) - { - return "File does not exist!"; - } - var file = files[0]; - string fileName = file.FileName; - if (string.IsNullOrEmpty(fileName))//鏈嶅姟鍣ㄦ槸鍚﹀瓨鍦ㄨ鏂囦欢 - { - return "File does not exist!"; - } - // 鑾峰彇涓婁紶鐨勫浘鐗囧悕绉板拰鎵╁睍鍚嶇О - string fileFullName = Path.GetFileName(file.FileName); - string fileExtName = Path.GetExtension(fileFullName); - - - string imgPath = string.Format("{0}\\wwwroot\\{1}\\", Directory.GetCurrentDirectory(), "UploadFile"); - - var newPath = fileFullName.Substring(0, fileFullName.IndexOf(fileExtName)) + System.DateTime.UtcNow.Ticks + fileExtName; - var src = imgPath + newPath; - - // 濡傛灉鐩綍涓嶅瓨鍦ㄥ垯瑕佸厛鍒涘缓 - if (!Directory.Exists(imgPath)) - { - Directory.CreateDirectory(imgPath); - } - using (FileStream fs = System.IO.File.Create(src)) - { - file.CopyTo(fs); - fs.Flush(); - } - // imgPath = string.Format("~/UploadFile/{0}", fileFullName); - return newPath; - } - - public string Get(string id = null) - { - ExpertDTO expertDTO = new ExpertDTO(); - if (!String.IsNullOrEmpty(id)) - { - expertDTO = _expertService.Get(id); - } - - return JsonConvert.SerializeObject(expertDTO); - } - - - /// <summary> - /// 淇濆瓨 - /// </summary> - /// <param name="data">宀椾綅瀹炰綋绫诲璞�</param> - /// <returns></returns> - [HttpPost] - [CheckLogin] - public string Save(ExpertDTO data) - { - var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); - ViewData["curentuser"] = curentuser; - data.ShenheStatus = "A"; - data.ReviewItem = data.ReviewItemSelect; - data.RecStatus = "A"; - if (String.IsNullOrEmpty(data.Id)) - { - data.Creater = curentuser.Id; - data.Createtime = DateTime.Now; - } - data.Modifier = curentuser.Id; - data.Modifytime = DateTime.Now; - - ResultEntity resultEntity = _expertService.save(data); - - return JsonConvert.SerializeObject(resultEntity); - } - #endregion - - - - - - - /// <summary> - /// 鍒犻櫎涓讳俊鎭� - /// </summary> - /// <param name="info">瀹炰綋</param> - /// <returns></returns> - /// - [CheckLogin] - public string Nullify(string Id = "") - { - var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); - ViewData["curentuser"] = curentuser; - return JsonConvert.SerializeObject(_expertService.ModifyStatus(Id, curentuser.Id)); - } - - - #region 鎺ㄥ箍璁板綍 - /// <summary> - /// 鍙栧緱鎺ㄥ箍璁板綍鍒楄〃 - /// </summary> - /// <param name="search"></param> - /// <returns></returns> - [CheckLogin] - public string GetPromoteList(ExpertPromoteDTOSearch search) - { - return JsonConvert.SerializeObject(_expertService.SearchExpPromote(search)); - } - - /// <summary> - /// 鏌ョ湅鎺ㄥ箍璁板綍 - /// </summary> - /// <param name="experId"></param> - /// <returns></returns> - [CheckLogin] - public IActionResult Promote(string experId) - { - // 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; - ViewData["experId"] = experId; - ViewBag.users = _userService.GetList().Select(x => new { code = x.Id, label = x.UserSn }).ToList(); - return View(); - } - - /// <summary> - /// 鏂板鎺ㄥ箍璁板綍 - /// </summary> - /// <param name="experId"></param> - /// <returns></returns> - [CheckLogin] - public IActionResult EditPromote(string experId) - { - ViewData["experId"] = experId; - return View(); - } - - - /// <summary> - /// 淇濆瓨 - /// </summary> - /// <param name="data">淇濆瓨鎺ㄥ箍璁板綍</param> - /// <returns></returns> - [HttpPost] - [CheckLogin] - public string SavePromte(ExpertPromoteDTO data) - { - var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); - ViewData["curentuser"] = curentuser; - data.RecStatus = "A"; - if (String.IsNullOrEmpty(data.Id)) - { - data.Creater = curentuser.Id; - data.Createtime = DateTime.Now; - } - data.Modifier = curentuser.Id; - data.Modifytime = DateTime.Now; - - ResultEntity resultEntity = _expertService.SaveExpPromote(data); - - return JsonConvert.SerializeObject(resultEntity); - } - #endregion - - #region 涓撳娲惧伐 - [CheckLogin] - public IActionResult ExpertOrderDispatch() - { - 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.OrderType = _liaotianService.GetSYScode("CooperVisit", "jtype").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(); - - ViewBag.Khlx = _liaotianService.GetSYScode("CooperatecustomCustomer", "khlx").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); - - ViewBag.HuifangStatus = _liaotianService.GetSYScode("CooperOrder", "huifang_status").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); - - ViewBag.PingjiaStatus = _liaotianService.GetSYScode("CooperOrder", "pingjia_status").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); - ViewBag.Expert = _expertService.GetList().Select(x => new { code = x.Id, label = x.Name }).ToList(); - return View(); - } - [CheckLogin] - public string GetOrderList(ExpertOrderDipatchDTOSearch search) - { - return JsonConvert.SerializeObject(_expertService.SearchOrderDispatch(search)); - } - [CheckLogin] - public IActionResult Dispatch(string orderid) - { - - List<ExpertDTO> list = _expertService.GetList(); - ViewData["experts"] = list; - ViewBag.OrderId = orderid; - return View(); - } - [CheckLogin] - public string SaveDispatch(ExpertOrderDipatchDTO data) - { - var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); - ViewData["curentuser"] = curentuser; - data.RecStatus = "A"; - if (String.IsNullOrEmpty(data.Id)) - { - data.Creater = curentuser.Id; - data.Createtime = DateTime.Now; - data.sort = "D"; - } - data.Modifier = curentuser.Id; - data.Modifytime = DateTime.Now; - - ResultEntity resultEntity = _expertService.SaveDispatch(data); - - return JsonConvert.SerializeObject(resultEntity); - } - #endregion - - - - #region 涓撳璐圭敤缁撶畻 - [CheckLogin] - public IActionResult ExpertFeiyong() - { - 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); - - ActionEntity actionEntity1 = new ActionEntity(); - actionEntity1.OpenType = 0; - actionEntity1.ActionUrl = ""; - actionEntity1.ActionFun = "Jiesuan"; - actionEntity1.PageIco = "fa fa-plus-square"; - actionEntity1.ActionName = "缁撶畻"; - actionlist.Add(actionEntity1); - - - ViewData["ActionInfo"] = actionlist; - - - ViewBag.Expert = _expertService.GetList().Select(x => new { code = x.Id, label = x.Name }).ToList(); - ViewBag.shifou = _liaotianService.GetSYScode("system", "shifou").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); - return View(); - } - - [CheckLogin] - public string GetJiesuanList(ExpertOrderDipatchDTOSearch search) - { - return JsonConvert.SerializeObject(_expertService.SearchJiesuan(search)); - } - - - public IActionResult EditJiesuan(string id) - { - var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); - ViewData["curentuser"] = curentuser; - decimal Money = 0; - FiOrderrecievemoneyDTO dto = new FiOrderrecievemoneyDTO(); - if (!String.IsNullOrEmpty(id)) - { - string[] ids = id.Split(','); - foreach(var iddd in ids) - { - var expertOrderDipatchDTO = _expertService.GetDispatch(iddd); - if(expertOrderDipatchDTO.sort != "A") - { - Money += expertOrderDipatchDTO.Money.Value; - } - - - } - } - dto.PayTime = DateTime.Now; - dto.Id = id; - - dto.Money = Money; - - - ViewData.Model = dto; - - ViewBag.PayType = _liaotianService.GetSYScode("fi_account", "accounttype"); - ViewBag.accounttype = _liaotianService.GetSYScode("fi_account", "accounttype"); - ViewBag.FiSubject = _ifiSubjectService.GetList().Where(x => x.Subjecttype == "02").ToList(); - - - - - - ViewData.Model = dto; - return View(); - } - - - /// <summary> - /// 淇濆瓨 - /// </summary> - /// <param name="data">宀椾綅瀹炰綋绫诲璞�</param> - /// <returns></returns> - /// - [HttpPost] - public IActionResult SaveJiesuan(FiOrderrecievemoneyDTO data) - { - ResultEntity resultEntity = new ResultEntity(); - var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); - ViewData["curentuser"] = curentuser; - using (TransactionScope scope = new TransactionScope()) - { - string[] ids = data.Id.Split(','); - foreach (var iddd in ids) - { - var expertOrderDipatchDTO = _expertService.GetDispatch(iddd); - if(expertOrderDipatchDTO.sort == "A") - { - resultEntity.Result = false; - resultEntity.Message = "瀛樺湪宸茬粡缁撶畻鐨勮鍗�"; - return new JsonResult(resultEntity); - } - - expertOrderDipatchDTO.sort = "A"; - expertOrderDipatchDTO.Modifier = curentuser.Id; - expertOrderDipatchDTO.Modifytime = DateTime.Now; - resultEntity = _expertService.SaveDispatch(expertOrderDipatchDTO); - if (!resultEntity.Result) - { - return new JsonResult(resultEntity); - } - var expertDTO = _expertService.Get(expertOrderDipatchDTO.ExpertId); - var orderDTO = _cooperOrderService.Get(expertOrderDipatchDTO.OrderId); - //鎻掑叆鏀嚭璁板綍 - FiAccountRecordDTO data1 = new FiAccountRecordDTO(); - data1.RecStatus = "A"; - data1.Creater = curentuser.Id; - data1.Createtime = data.PayTime; - data1.Modifier = curentuser.Id; - data1.Modifytime = data.PayTime; - data1.SubjectId = data.SubjectId; - data1.AccountId = data.AccountId; - data1.Money = expertOrderDipatchDTO.Money; - data1.PaymentUnit = expertDTO.Name; - data1.OperationalMatters = expertDTO.Name +" " +orderDTO.OrderNo+ "缁撶畻璐圭敤" ; - - - - FiAccountDTO firmAccount = _fiAccountService.Get(data1.AccountId); - - - data1.RecordTypeId = "2";//鏀跺叆 - data1.Department = ""; - - - firmAccount.AllExpenses = (firmAccount.AllExpenses ?? 0) + data1.Money; - firmAccount.Balance = (firmAccount.Balance ?? 0) - data1.Money; - - - - data1.AccountMoney = firmAccount.Balance; - resultEntity = _iFiAccountRecordService.save(data1); - if (!resultEntity.Result) - { - return new JsonResult(resultEntity); - } - - - resultEntity = _fiAccountService.save(firmAccount); - if (!resultEntity.Result) - { - return new JsonResult(resultEntity); - } - - } - scope.Complete(); - } - - return new JsonResult(resultEntity); - } - - - - - - #endregion - - - - - public IActionResult Duanxin(string id = null) - { - var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); - ViewData["curentuser"] = curentuser; - ViewData["baifangid"] = id; - - - - return View(); - } - - - - public IActionResult Fasong(string neirong, string baifangid) - { - ResultEntity resultEntity = new ResultEntity(); - resultEntity.Result = true; - var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); - ViewData["curentuser"] = curentuser; - List<ExpertDTO> result = new List<ExpertDTO>(); - - if (baifangid != null) - { - result = _expertService.GetList(baifangid.Split(",")); - } - else - { - resultEntity.Result = false; - resultEntity.Message = "鏃犺仈绯讳汉鍙风爜"; - } - string customename = ""; - StringBuilder number = new StringBuilder(); ; - if (result != null && result.Count > 0) - { - for (int i = 0; i < result.Count; i++) - { - number.Append(string.IsNullOrEmpty(result[i].Phone1) ? result[i].Phone2 : result[i].Phone1); - customename += result[i].Name + ","; - if (i != result.Count - 1) - { - number.Append(","); - } - } - } - else - { - resultEntity.Result = false; - resultEntity.Message = "鏃犺仈绯荤數璇�"; - } - - string sss = SMSHelper.PushWToUserMES(number.ToString(), neirong ); - if (int.Parse(sss) <= 0) - { - resultEntity.Result = false; - resultEntity.Message = "鐭俊鍙戦�佸け璐�"; - - } - - _logger.LogInformation(curentuser.UserName + "鍙戦�佺煭淇$粰涓撳" + customename); - return new JsonResult(resultEntity); - } - - - /// <summary> - /// 鍒ゆ柇韬唤璇佹槸鍚﹂噸澶� - /// </summary> - /// <param name="shengid">鐪乮d</param> - /// <returns></returns> - /// - [CheckLogin] - public string IdCardChongfu(string IdCard = "",string Id = "") - { - ResultEntity resultEntity = _expertService.IdCardChongfu(IdCard, Id); - - return JsonConvert.SerializeObject(resultEntity); - - } - - - /// <summary> - /// 鍒ゆ柇涓撳璇佹槸鍚﹂噸澶� - /// </summary> - /// <param name="shengid">鐪乮d</param> - /// <returns></returns> - /// - [CheckLogin] - public string CertiNumberChongfu(string CertiNumber = "", string Id = "") - { - ResultEntity resultEntity = _expertService.CertiNumberChongfu(CertiNumber, Id); - if (resultEntity.Result) - { - //鎷嗚В涓撳璇佸彿 - - var CertiNumber11 = CertiNumber.Replace("SC", ""); - var sysCodeDtls = _liaotianService.GetSYScode("experts", "City"); - - var chengshis = sysCodeDtls.Where(x => CertiNumber11.StartsWith(x.CodeSn)).ToList(); - if (chengshis.Count > 0) - { - var areaDTOs = _iAreaService.GetList(); - - var chengshi = areaDTOs.Where(x => x.Name == chengshis[0].Comments).FirstOrDefault(); - if (chengshi != null) - { - resultEntity.Message = chengshi.CodeId; - resultEntity.Remark = chengshi.ParentId; - } - - } - - } - - return JsonConvert.SerializeObject(resultEntity); - - } - - - /// <summary> - /// 鍒ゆ柇鐢佃瘽鏄惁閲嶅 - /// </summary> - /// <param name="shengid">鐪乮d</param> - /// <returns></returns> - /// - [CheckLogin] - public string Phone1Chongfu(string Phone1 = "", string Id = "") - { - ResultEntity resultEntity = _expertService.Phone1Chongfu(Phone1, Id); - - return JsonConvert.SerializeObject(resultEntity); - - } - - } -} diff --git a/zhengcaioa/zhengcaioa/Controllers/Expert/ExpertsApplyController.cs b/zhengcaioa/zhengcaioa/Controllers/Expert/ExpertsApplyController.cs deleted file mode 100644 index 2473722..0000000 --- a/zhengcaioa/zhengcaioa/Controllers/Expert/ExpertsApplyController.cs +++ /dev/null @@ -1,160 +0,0 @@ -锘縰sing Microsoft.AspNetCore.Mvc; -using System; -using System.Collections.Generic; -using System.Linq; -using Microsoft.Extensions.Logging; -using IServices; -using DTO; -using Newtonsoft.Json; -using zhengcaioa.Models; -using Microsoft.AspNetCore.Http; -using zhengcaioa.IService; -using System.IO; -using Microsoft.Extensions.Configuration; - -namespace zhengcaioa.Controllers.Expert -{ - public class ExpertsApplyController : Controller - { - private readonly ILogger<ExpertsApplyController> _logger; - private readonly IExpertService _expertService; - private readonly ILiaotianService _liaotianService; - private readonly IProjectService _projectService; - private readonly IUserService _userService; - public ExpertsApplyController(ILogger<ExpertsApplyController> logger, IExpertService expertService, IProjectService projectService, ILiaotianService liaotianService, IUserService userService) - { - _logger = logger; - _expertService = expertService; - _projectService = projectService; - _liaotianService = liaotianService; - _userService = userService; - } - - #region 涓撳鐢宠锛岃瘎瀹� - - public ActionResult ExpertsApply(string id = null) - { - - //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 = "Save"; - actionEntity.PageIco = "glyphicon glyphicon-ok"; - actionEntity.ActionName = "淇濆瓨"; - actionlist.Add(actionEntity); - - ViewData["ActionInfo"] = actionlist; - - ExpertDTO expertDTO = new ExpertDTO(); - if (!string.IsNullOrEmpty(id)) - { - expertDTO = _expertService.Get(id); - } - else - { - expertDTO.Province = "510000"; - expertDTO.City = "510100"; - } - // var sheng = _projectService.Getsheng(); - - - // ViewBag.InfoSource = _liaotianService.GetSYScode("CooperatecustomCustomer", "khly");//.Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); - ViewBag.sex = _liaotianService.GetSYScode("plt_user", "sex");//.Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); - // ViewBag.expertType = _liaotianService.GetSYScode("experts", "expertType");//.Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); - // ViewBag.level = _liaotianService.GetSYScode("experts", "level");//.Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); - ViewBag.ReviewItem = _liaotianService.GetSYScode("experts", "ReviewItem");//.Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); - - - ViewBag.Province = _projectService.Getsheng();//.Select(x => new { code = x.CodeId, label = x.Name }).ToList(); - ViewBag.City = _projectService.Getshi(expertDTO.Province);//.Select(x => new { code = x.CodeId, label = x.Name }).ToList(); - ViewData.Model = expertDTO; - return View(); - } - - - - - - //public string Get(string id = null) - //{ - // ExpertDTO expertDTO = new ExpertDTO(); - // if (!String.IsNullOrEmpty(id)) - // { - // expertDTO = _expertService.Get(id); - // } - - // return JsonConvert.SerializeObject(expertDTO); - //} - - - /// <summary> - /// 淇濆瓨 - /// </summary> - /// <param name="data">宀椾綅瀹炰綋绫诲璞�</param> - /// <returns></returns> - [HttpPost] - - public string ExpertsApplySave(ExpertDTO data) - { - //var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); - //ViewData["curentuser"] = curentuser; - data.ReviewItem = data.ReviewItemSelect; - data.InfoSource = "00"; - data.ExpertType = "0"; - data.Level = "0"; - data.RecStatus = "A"; - data.ShenheStatus = "D"; - if (String.IsNullOrEmpty(data.Id)) - { - data.Creater = "1"; - data.Createtime = DateTime.Now; - } - data.Modifier = "1"; - data.Modifytime = DateTime.Now; - - ResultEntity resultEntity = _expertService.save(data); - - return JsonConvert.SerializeObject(resultEntity); - } - #endregion - - - - public IActionResult Index() - { - 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.expertType = _liaotianService.GetSYScode("experts", "expertType").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); - ViewBag.level = _liaotianService.GetSYScode("experts", "level").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); - ViewBag.Province = _projectService.Getsheng().Select(x => new { code = x.CodeId, label = x.Name }).ToList(); - // ViewBag.City = _projectService.Getshi( ).Select(x => new { code = x.CodeId, label = x.Name }).ToList(); - ViewBag.ReviewItem = _liaotianService.GetSYScode("experts", "ReviewItem").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); - return View(); - } - - #region 鏌ヨ - [CheckLogin] - public string GetList(ExpertDTOSearch search) - { - var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); - search.ShenheStatus = "D"; - ViewData["curentuser"] = curentuser; - return JsonConvert.SerializeObject(_expertService.SearchByPaging(search)); - } - #endregion - } -} diff --git a/zhengcaioa/zhengcaioa/Views/Expert/Dispatch.cshtml b/zhengcaioa/zhengcaioa/Views/Expert/Dispatch.cshtml deleted file mode 100644 index b654520..0000000 --- a/zhengcaioa/zhengcaioa/Views/Expert/Dispatch.cshtml +++ /dev/null @@ -1,239 +0,0 @@ -锘緻model DTO.ExpertOrderDipatchDTO -@using DTO; -@using zhengcaioa.Models; -@{ - List<ExpertDTO> listExpert = ViewData["experts"] as List<ExpertDTO>; -} -@{ - Layout = null; -} - -<!DOCTYPE html> -<html> -<head> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> - <meta name="description" content=""> - <meta name="author" content="ThemeBucket"> - <title>@(SiteConfig.SiteName)</title> - <link href="~/css/bootstrap.min.css" rel="stylesheet"> - <link href="~/css/font-awesome.min.css" rel="stylesheet"> - <link href="~/css/animate.min.css" rel="stylesheet"> - - @*<link href="~/css/plugins/iCheck/custom.css" rel="stylesheet">*@ - <link href="~/css/style.min.css" rel="stylesheet"> - <link href="~/css/plugins/chosen/chosen.css" rel="stylesheet"> - <link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet"> - <link href="~/css/plugins/datapicker/datepicker3.css" rel="stylesheet"> - <link href="~/layui/css/modules/laydate/default/laydate.css" rel="stylesheet" /> - <link href="~/css/style.min.css" rel="stylesheet"> - <link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" /> - <link href="~/css/plugins/webuploader/webuploader.css" rel="stylesheet" /> - - <style type="text/css"> - .webuploader-pick { - position: relative; - display: inline-block; - cursor: pointer; - background: #00b7ee; - padding: 8px 14px 7px 14px; - color: #fff; - text-align: center; - border-radius: 3px; - overflow: hidden; - } - - div.clearfix > label { - padding-top: 8px; - } - - .chosen-container { - border-radius: 1px; - border: 1px solid #e5e6e7; - } - - .col-md-1.control-label { - padding-right: 0px; - font-weight: 400; - } - - .data { - width: 240px; - padding-left: 8px; - } - </style> - - <!-- jqgrid--> - <script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script> - <script src="~/js/bootstrap.min.js"></script> - - <!--瀹瑰櫒--> - @*<script language="javascript" src="~/js/datehelper.js" type="text/javascript"></script>*@ - @*<script language="javascript" src="~/js/plugins/query/jquery.query-object.js" type="text/javascript"></script>*@ - @*<script language="javascript" src="~/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>*@ - <script language="javascript" src="~/js/plugins/chosen/chosen.jquery.js" type="text/javascript"></script> - @*<script language="javascript" src="~/js/plugins/datapicker/bootstrap-datepicker.js" type="text/javascript"></script>*@ - <script language="javascript" src="~/js/plugins/layer/layer.js" type="text/javascript"></script> - @*<script src="~/js/plugins/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>*@ - @*<script src="~/js/plugins/jqgrid/i18n/grid.locale-cn.js" type="text/javascript"></script>*@ - <script src="~/js/plugins/toastr/toastr.min.js" type="text/javascript"></script> - <script src="~/js/plugins/webuploader/webuploader.min.js"></script> - - <script language="javascript" src="~/js/common-layout.js" type="text/javascript"></script> - <script src="~/js/plugins/layer/laydate/laydate.js" type="text/javascript"></script> - @*<script src="~/js/plugins/iTexbox/itextbox.js" type="text/javascript"></script>*@ - @*<script src="~/js/plugins/iuploader/iuploader.js"></script>*@ - <script src="~/js/TUJS.js"></script> -</head> -<body class="gray-bg" style="overflow:auto;background:white;"> - <form id="formtest"> - <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;"> - <input type="hidden" id="OrderId" name="OrderId" value="@ViewBag.OrderId" /> - <table> - <tr> - <td> - <label class="text-right control-label">涓� 瀹�</label> - </td> - <td class="data"> - <select id="ExpertId" class="form-control" name="ExpertId" data-placeholder="閫夋嫨 搴忓垪 ..." style="font-weight:normal;"> - <option value="" hassubinfo="true" selected="selected">璇烽�夋嫨</option> - @foreach (var item in listExpert) - { - <option value="@item.Id" hassubinfo="true" > - @item.Name - </option> - - } - - </select> - - - </td> - </tr> - <tr style="height:80px"> - <td> - <label class="text-right control-label">鍔冲姟璐�</label> - </td> - <td class="data"> - <input class="form-control" label="鍔冲姟璐�" name="Money" id="Money" labtype="txt" addvisible="true" value="0" editvisible="true" reg="" ismust="true" type="number" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)"> - </td> - </tr> - </table> - </div> - - <div class="wrapper wrapper-content" style="margin-top:0px"></div> - <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px "> - <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="鍔熻兘鎸夐挳锛氣�滀繚瀛樷�濓紝鈥滃垹闄も��"> - <a class="btn btn-success" href="javascript:void(0)" onclick="SaveDispatch();" style="margin-left:4px; border-radius:4px;"> - <i class="glyphicon glyphicon-ok"></i> <span class="bold">淇濆瓨</span> - </a> - </div> - </div> - - </form> - <script type="text/javascript"> - var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2 - 95; - $("#div_content").height(hh); - - toastr.options = { - "closeButton": true, - "debug": false, - "progressBar": true, - "positionClass": "toast-bottom-right", - "onclick": null, - "showDuration": "300", - "hideDuration": "600", - "timeOut": "4500", - "extendedTimeOut": "600", - "showEasing": "swing", - "hideEasing": "linear", - "showMethod": "fadeIn", - "hideMethod": "fadeOut" - }; - - - - - var bUpload = false; - var bAdd = false; // 鏂板鎿嶄綔 - var fileId = ""; // 涓婁紶鏂囦欢鐢熸垚鐨処d - var bEditFile = false; // 缂栬緫鏃讹紝鏄惁鍏宠仈浜嗛檮浠� - var bDeleteFile = false; // 鍒犻櫎鎿嶄綔 - var attachment_id = 0; // 闄勪欢id - var imgLoad = new Object(); - - - $("#ExpertId").chosen(); - - - // 淇濆瓨宀椾綅淇℃伅 - var SaveDispatch = function () { - if ($("#Content").val() == '') { - toastr.warning("鎺ㄥ箍鍐呭涓嶈兘涓虹┖"); - return; - } - - - - $.ajax({ - type: "POST", - url: "/Expert/SaveDispatch", - dataType: "json", - global: false, - data: $('form').serializeArray(), - success: function (data) { - if (data.Result) { - // parent._afterSave(true); - parent.layer.msg('鎴愬姛淇濆瓨', { icon: 6 }); - //window.location = "/Project/add?id=" + data.ReturnID; - - - try { - _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶 - } - catch (err) { - parent._CloseTab1("/expert/dispatch/"); - } - - } - else { - // toastr.error("澶辫触"); - parent.layer.msg(data.Message, { icon: 5 }); - } - - }, - error: function () { - - - parent.layer.msg('澶辫触', { icon: 5 }); - } - }); - } - - - - laydate({ - elem: '#PromoteDate', //瀵瑰簲id - format: 'YYYY-MM-DD', //鏃ユ湡鏍煎紡 // 鍒嗛殧绗﹀彲浠ヤ换鎰忓畾涔夛紝璇ヤ緥瀛愯〃绀哄彧鏄剧ず骞存湀 - min: '2021-01-01', //璁惧畾鏈�灏忔棩鏈熶负褰撳墠鏃ユ湡 - max: '2099-06-16', //鏈�澶ф棩鏈� - festival: false, //鏄剧ず鑺傛棩 - istime: false, 聽 //鏄惁鏄剧ず鏃跺垎绉� - istoday: true, //鏄惁鏄粖澶� - choose: function (datas) { //閫夋嫨鏃ユ湡瀹屾瘯鐨勫洖璋� - // console.log(this); - // end.min = datas; //寮�濮嬫棩閫夊ソ鍚庯紝閲嶇疆缁撴潫鏃ョ殑鏈�灏忔棩鏈� - // end.start = datas //灏嗙粨鏉熸棩鐨勫垵濮嬪�艰瀹氫负寮�濮嬫棩 - } - }); - function _pageAutoClose() { - parent.window._reloadPageData(); - var index = parent.layer.getFrameIndex(window.name); - parent.layer.isRefresh = true; - parent.layer.closeAll('loading'); - parent.layer.close(index); - return false; - } - </script> -</body> -</html> \ No newline at end of file diff --git a/zhengcaioa/zhengcaioa/Views/Expert/Duanxin.cshtml b/zhengcaioa/zhengcaioa/Views/Expert/Duanxin.cshtml deleted file mode 100644 index 390cef7..0000000 --- a/zhengcaioa/zhengcaioa/Views/Expert/Duanxin.cshtml +++ /dev/null @@ -1,225 +0,0 @@ -锘緻model DTO.ExpertDTO -@using DTO; -@using zhengcaioa.Models; -@{ - string baifangid = ViewData["baifangid"] as string; //鎷滆鏂瑰紡 - - -} -@{ - Layout = null; -} - -<!DOCTYPE html> -<html> -<head> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> - <meta name="description" content=""> - <meta name="author" content="ThemeBucket"> - <title>@(SiteConfig.SiteName)</title> - <link href="~/css/bootstrap.min.css" rel="stylesheet"> - <link href="~/css/font-awesome.min.css" rel="stylesheet"> - <link href="~/css/animate.min.css" rel="stylesheet"> - - @*<link href="~/css/plugins/iCheck/custom.css" rel="stylesheet">*@ - <link href="~/css/style.min.css" rel="stylesheet"> - <link href="~/css/plugins/chosen/chosen.css" rel="stylesheet"> - @*<link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet">*@ - @*<link href="~/css/plugins/datapicker/datepicker3.css" rel="stylesheet">*@ - <link href="~/css/style.min.css" rel="stylesheet"> - <link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" /> - <link href="~/css/plugins/webuploader/webuploader.css" rel="stylesheet" /> - - <style type="text/css"> - .webuploader-pick { - position: relative; - display: inline-block; - cursor: pointer; - background: #00b7ee; - padding: 8px 14px 7px 14px; - color: #fff; - text-align: center; - border-radius: 3px; - overflow: hidden; - } - - div.clearfix > label { - padding-top: 8px; - } - - .chosen-container { - border-radius: 1px; - border: 1px solid #e5e6e7; - } - - .col-md-1.control-label { - padding-right: 0px; - font-weight: 400; - } - </style> - - <!-- jqgrid--> - @*<link href="~/css/plugins/jqgrid/ui.jqgrid.css" rel="stylesheet">*@ - <script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script> - <script src="~/js/bootstrap.min.js"></script> - @*<script src="~/js/plugins/bootstro/bootstro.js"></script>*@ - - <!--瀹瑰櫒--> - @*<script language="javascript" src="~/js/datehelper.js" type="text/javascript"></script>*@ - @*<script language="javascript" src="~/js/plugins/query/jquery.query-object.js" type="text/javascript"></script>*@ - @*<script language="javascript" src="~/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>*@ - <script language="javascript" src="~/js/plugins/chosen/chosen.jquery.js" type="text/javascript"></script> - @*<script language="javascript" src="~/js/plugins/datapicker/bootstrap-datepicker.js" type="text/javascript"></script>*@ - <script language="javascript" src="~/js/plugins/layer/layer.js" type="text/javascript"></script> - @*<script src="~/js/plugins/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>*@ - @*<script src="~/js/plugins/jqgrid/i18n/grid.locale-cn.js" type="text/javascript"></script>*@ - <script src="~/js/plugins/toastr/toastr.min.js" type="text/javascript"></script> - <script src="~/js/plugins/webuploader/webuploader.min.js"></script> - - <script language="javascript" src="~/js/common-layout.js" type="text/javascript"></script> - <script src="~/js/plugins/layer/laydate/laydate.js" type="text/javascript"></script> - @*<script src="~/js/plugins/iTexbox/itextbox.js" type="text/javascript"></script>*@ - @*<script src="~/js/plugins/iuploader/iuploader.js"></script>*@ - <script src="~/js/TUJS.js"></script> -</head> -<body class="gray-bg" style="overflow:auto"> - <form id="formtest"> - <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;"> - <div class="row"> - <div class="col-sm-12"> - <div class="ibox float-e-margins"> - <div class="ibox-title"> - <h5> <i class="fa fa-list"></i> 缇ゅ彂鐭俊</h5> - </div> - <div id="div_content" class="ibox-content" style="background-color:white;"> - <div class="row"> - - <input type="hidden" id="baifangid" name="baifangid" value="@baifangid" /> - - - - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鐭俊鍐呭<i class="red">*</i></label> - <div class="col-sm-8 col-md-8"> - <textarea class="form-control bt" id="neirong" name="neirong" title="鐭俊鍐呭" isempty="" maxlength="4000" length="long"></textarea> - </div> - </div> - - - - - - - - </div> - </div> - </div> - </div> - </div> - </div> - <div class="wrapper wrapper-content" style="margin-top:0px"></div> - <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px "> - <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="鍔熻兘鎸夐挳锛氣�滀繚瀛樷�濓紝鈥滃垹闄も��"> - @*<a class="btn btn-success" href="javascript:void(0)" onclick="delPosition();" style="margin-left:4px; border-radius:4px;"> - <i class="glyphicon glyphicon-remove"></i> <span class="bold">鍒犻櫎</span> - </a>*@ - - <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition();" style="margin-left:4px; border-radius:4px;"> - <i class="glyphicon glyphicon-ok"></i> <span class="bold">鎻愪氦</span> - </a> - </div> - </div> - - </form> - <script type="text/javascript"> - var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2 - 95; - $("#div_content").height(hh); - - toastr.options = { - "closeButton": true, - "debug": false, - "progressBar": true, - "positionClass": "toast-bottom-right", - "onclick": null, - "showDuration": "300", - "hideDuration": "600", - "timeOut": "4500", - "extendedTimeOut": "600", - "showEasing": "swing", - "hideEasing": "linear", - "showMethod": "fadeIn", - "hideMethod": "fadeOut" - }; - - - - - - - // 淇濆瓨宀椾綅淇℃伅 - var savePosition = function () { - - - - - - if ($.trim($("#neirong").val()) == '') { - toastr.warning("浜よ皥鍐呭涓嶈兘涓虹┖"); - return; - } - - - - var data = { neirong: $("#neirong").val(), baifangid: $("#baifangid").val()} - $.ajax({ - type: "POST", - url: "/Expert/Fasong", - dataType: "json", - global: false, - data: data, - success: function (data) { - - - - if (data.Result) { - // parent._afterSave(true); - parent.layer.msg('鐭俊鍙戦�佹垚鍔�', { icon: 6 }); - //window.location = "/Project/add?id=" + data.ReturnID; - - - - _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶 - - - } - else { - // toastr.error("澶辫触"); - parent.layer.msg(data.Message, { icon: 5 }); - } - - }, - error: function () { - - - parent.layer.msg('澶辫触', { icon: 5 }); - } - }); - } - - - - - - - function _pageAutoClose() { - parent.window._reloadPageData(); - var index = parent.layer.getFrameIndex(window.name); - parent.layer.isRefresh = true; - parent.layer.closeAll('loading'); - parent.layer.close(index); - return false; - } - </script> -</body> -</html> \ No newline at end of file diff --git a/zhengcaioa/zhengcaioa/Views/Expert/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/Expert/Edit.cshtml deleted file mode 100644 index afc2f55..0000000 --- a/zhengcaioa/zhengcaioa/Views/Expert/Edit.cshtml +++ /dev/null @@ -1,1176 +0,0 @@ -锘緻model DTO.ExpertDTO -@using DTO; -@using zhengcaioa.Models; -@{ - List<Area> Province = ViewData["Province"] as List<Area>; //鐪� - List<Area> City = ViewData["City"] as List<Area>; //甯� - List<SysCodeDtl> Sex = ViewData["sex"] as List<SysCodeDtl>; //瀹㈡埛绫诲瀷 - List<SysCodeDtl> InfoSource = ViewData["InfoSource"] as List<SysCodeDtl>; //瀹㈡埛鏉ユ簮 - List<SysCodeDtl> expertType = ViewData["expertType"] as List<SysCodeDtl>; //涓撳绫诲瀷 - List<SysCodeDtl> level = ViewData["level"] as List<SysCodeDtl>; //涓撳绛夌骇 - List<SysCodeDtl> ReviewItem = ViewData["ReviewItem"] as List<SysCodeDtl>; //璇勫鍝佺洰 - List<SysCodeDtl> YearJiou = ViewData["YearJiou"] as List<SysCodeDtl>; //鑰冭瘯鏃堕棿 -} -@{ - Layout = null; -} - -<!DOCTYPE html> -<html> -<head> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> - <meta name="description" content=""> - <meta name="author" content="ThemeBucket"> - <title>@(SiteConfig.SiteName)</title> - <link href="~/css/bootstrap.min.css" rel="stylesheet"> - <link href="~/css/font-awesome.min.css" rel="stylesheet"> - <link href="~/css/animate.min.css" rel="stylesheet"> - - @*<link href="~/css/plugins/iCheck/custom.css" rel="stylesheet">*@ - <link href="~/css/style.min.css" rel="stylesheet"> - <link href="~/css/plugins/chosen/chosen.css?v=7" rel="stylesheet"> - @*<link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet">*@ - @*<link href="~/css/plugins/datapicker/datepicker3.css" rel="stylesheet">*@ - <link href="~/css/style.min.css" rel="stylesheet"> - <link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" /> - <link href="~/css/plugins/webuploader/webuploader.css" rel="stylesheet" /> - - <style type="text/css"> - .webuploader-pick { - position: relative; - display: inline-block; - cursor: pointer; - background: #00b7ee; - padding: 8px 14px 7px 14px; - color: #fff; - text-align: center; - border-radius: 3px; - overflow: hidden; - } - - div.clearfix > label { - padding-top: 8px; - } - - .chosen-container { - border-radius: 1px; - border: 1px solid #e5e6e7; - } - - .col-md-1.control-label { - padding-right: 0px; - font-weight: 400; - } - - .img-box { - height: 120px; - width: 120px; - float: left; - padding-left: 0px !important; - padding-right: 20px; - /*border:1px solid #c3cbe5;*/ - } - - .img-box img { - height: 80px; - width: 80px; - } - - .img-box p { - width: 80px; - text-align: center; - } - - .img-row { - height: 80px !important; - padding-right: 2px !important; - } - - .img-row label { - height: 30px; - line-height: 80px; - } - </style> - - <!-- jqgrid--> - <script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script> - <script src="~/js/bootstrap.min.js"></script> - - <!--瀹瑰櫒--> - @*<script language="javascript" src="~/js/datehelper.js" type="text/javascript"></script>*@ - @*<script language="javascript" src="~/js/plugins/query/jquery.query-object.js" type="text/javascript"></script>*@ - @*<script language="javascript" src="~/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>*@ - <script language="javascript" src="~/js/chosen_v1.8.7/chosen.jquery.js" type="text/javascript"></script> - @*<script language="javascript" src="~/js/plugins/datapicker/bootstrap-datepicker.js" type="text/javascript"></script>*@ - <script language="javascript" src="~/js/plugins/layer/layer.js" type="text/javascript"></script> - @*<script src="~/js/plugins/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>*@ - @*<script src="~/js/plugins/jqgrid/i18n/grid.locale-cn.js" type="text/javascript"></script>*@ - <script src="~/js/plugins/toastr/toastr.min.js" type="text/javascript"></script> - <script src="~/js/plugins/webuploader/webuploader.min.js"></script> - - <script language="javascript" src="~/js/common-layout.js" type="text/javascript"></script> - <script src="~/js/plugins/layer/laydate/laydate.js" type="text/javascript"></script> - <script src="~/js/imgUpload.js"></script> - @*<script src="~/js/plugins/iTexbox/itextbox.js" type="text/javascript"></script>*@ - @*<script src="~/js/plugins/iuploader/iuploader.js"></script>*@ - <script src="~/js/TUJS.js"></script> -</head> -<body class="gray-bg" style="overflow:auto"> - <form id="formtest"> - <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;"> - <div class="row"> - <div class="col-sm-12"> - <div class="ibox float-e-margins"> - <div class="ibox-title"> - <h5> <i class="fa fa-list"></i> 鏂板涓撳</h5> - </div> - <div id="div_content" class="ibox-content" style="background-color:white;"> - <div class="row"> - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label class="text-right col-sm-1 col-md-1 control-label">淇℃伅鏉ユ簮<i class="red">*</i></label> - <div class="col-sm-2 col-md-2"> - <select id="InfoSource" class="form-control" name="InfoSource" data-placeholder="閫夋嫨 搴忓垪 ..." style="font-weight:normal;"> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - @foreach (var item in InfoSource) - { - @if (!item.CodeSn.Equals(Model.InfoSource)) - { - <option value="@item.CodeSn" hassubinfo="true"> - @item.Comments - </option> - } - else - { - <option value="@item.CodeSn" hassubinfo="true" selected="selected"> - @item.Comments - </option> - } - - } - } - - </select> - <input type="hidden" id="Id" name="Id" value="@Model.Id" /> - </div> - - - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">涓撳绫诲瀷<i class="red">*</i></label> - <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <select id="ExpertType" class="form-control" name="expertType" data-placeholder="閫夋嫨 搴忓垪 ..."> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - @foreach (var item in expertType) - { - @if (!item.CodeSn.Equals(Model.ExpertType)) - { - <option value="@item.CodeSn" hassubinfo="true"> - @item.Comments - </option> - } - else - { - <option value="@item.CodeSn" hassubinfo="true" selected="selected"> - @item.Comments - </option> - } - - } - } - - </select> - - </div> - <label class="text-right col-sm-1 col-md-1 control-label">涓撳濮撳悕<i class="red">*</i></label> - <div class="col-sm-2 col-md-2"> - <input class="form-control" label="璇︾粏鍦板潃" name="Name" id="Name" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Name" autocomplete="off"> - </div> - <label class="text-right col-sm-1 col-md-1 control-label">鎬у埆</label> - <div class="col-sm-2 col-sm-2" grouptype="Vdata"> - <select id="Sex" class="form-control" name="Sex" data-placeholder="閫夋嫨 搴忓垪 ..." style="font-weight:normal;"> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - @foreach (var item in Sex) - { - @if (!item.CodeSn.Equals(Model.Sex)) - { - <option value="@item.CodeSn" hassubinfo="true"> - @item.Comments - </option> - } - else - { - <option value="@item.CodeSn" hassubinfo="true" selected="selected"> - @item.Comments - </option> - } - - } - } - - </select> - - </div> - - - </div> - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">璇勫鍝佺洰</label> - <div class="col-sm-11 col-md-11" grouptype="Vdata"> - <select id="ReviewItem" class="form-control" name="ReviewItem" multiple data-placeholder="閫夋嫨 搴忓垪 ..."> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - @foreach (var item in ReviewItem) - { - @if (Model.ReviewItem != null && Model.ReviewItem.Split(',').Contains(item.CodeSn)) - { - <option value="@item.CodeSn" hassubinfo="true" selected="selected"> - @item.Comments - </option> - } - else - { - <option value="@item.CodeSn" hassubinfo="true"> - @item.Comments - </option> - } - - } - - - </select> - - - - - </div> - </div> - - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">涓撳绾у埆<i class="red">*</i></label> - <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <select id="Level" class="form-control" name="Level" data-placeholder="閫夋嫨 搴忓垪 ..."> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - @foreach (var item in level) - { - @if (!item.CodeSn.Equals(Model.Level)) - { - <option value="@item.CodeSn" hassubinfo="true"> - @item.Comments - </option> - } - else - { - <option value="@item.CodeSn" hassubinfo="true" selected="selected"> - @item.Comments - </option> - } - - } - - - </select> - - </div> - - <label class="text-right col-sm-1 col-md-1 control-label">韬唤璇佸彿</label> - <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <input class="form-control" label="韬唤璇佸彿" name="IdCard" id="IdCard" labtype="txt" addvisible="true" editvisible="true" maxlength="18" reg="" ismust="true" type="text" value="@Model.IdCard" autocomplete="off"> - </div> - - <label class="text-right col-sm-1 col-md-1 control-label">涓撳璇佸彿<i class="red">*</i></label> - <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <input class="form-control" label="涓撳璇佸彿" name="CertiNumber" id="CertiNumber" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.CertiNumber"> - </div> - - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鑰冭瘯鏃堕棿</label> - <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <select id="YearJiou" class="form-control" name="YearJiou" data-placeholder="閫夋嫨 搴忓垪 ..."> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - @foreach (var item in YearJiou) - { - @if (!item.CodeSn.Equals(Model.YearJiou)) - { - <option value="@item.CodeSn" hassubinfo="true"> - @item.Comments - </option> - } - else - { - <option value="@item.CodeSn" hassubinfo="true" selected="selected"> - @item.Comments - </option> - } - - } - } - - </select> - - </div> - - </div> - - - - - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label class="text-right col-sm-1 col-md-1 control-label">閫氫俊鍦板潃</label> - <div class="col-sm-5 col-md-5"> - <input class="form-control" label="閫氫俊鍦板潃" name="Address" id="Address" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Address" autocomplete="off"> - </div> - - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鎵�灞炲尯鍩�</label> - <div class="col-sm-2 col-md-2"> - <div style="width:110px;float:left;"> - <select id="Province" class="form-control" name="Province" data-placeholder="閫夋嫨 搴忓垪 ..." style="font-weight:normal;"> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - @foreach (var item in Province) - { - @if (!item.CodeId.Equals(Model.Province)) - { - <option value="@item.CodeId" hassubinfo="true"> - @item.Name - </option> - } - else - { - <option value="@item.CodeId" hassubinfo="true" selected="selected"> - @item.Name - </option> - } - - - } - - </select> - </div> - <div style="width:110px;float:left;"> - <select id="City" class="form-control" name="City" data-placeholder="閫夋嫨 搴忓垪 ..." style="font-weight:normal;"> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - @foreach (var item in City) - { - @if (!item.CodeId.Equals(Model.City)) - { - <option value="@item.CodeId" hassubinfo="true"> - @item.Name - </option> - } - else - { - <option value="@item.CodeId" hassubinfo="true" selected="selected"> - @item.Name - </option> - } - - - } - - </select> - </div> - </div> - - - - <label class="text-right col-sm-1 col-md-1 control-label">閭斂缂栫爜</label> - <div class="col-sm-2 col-md-2"> - <input class="form-control" label="閭斂缂栫爜" name="Postal" id="Postal" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Postal" autocomplete="off"> - </div> - - - </div> - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label class="text-right col-sm-1 col-md-1 control-label">鑱旂郴鐢佃瘽1<i class="red">*</i></label> - <div class="col-sm-2 col-md-2"> - <input class="form-control" label="鑱旂郴鐢佃瘽1" name="Phone1" id="Phone1" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Phone1" autocomplete="off"> - </div> - - <label class="text-right col-sm-1 col-md-1 control-label">鑱旂郴鐢佃瘽2</label> - <div class="col-sm-2 col-md-2"> - <input class="form-control" label="鑱旂郴鐢佃瘽2" name="Phone2" id="Phone2" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Phone2" autocomplete="off"> - </div> - - <label class="text-right col-sm-1 col-md-1 control-label">QQ</label> - <div class="col-sm-2 col-md-2"> - <input class="form-control" label="QQ鍙�" name="Qq" id="Qq" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Qq" autocomplete="off"> - </div> - - <label class="text-right col-sm-1 col-md-1 control-label">寰俊</label> - <div class="col-sm-2 col-md-2"> - <input class="form-control" label="寰俊" name="Wechat" id="Wechat" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Wechat" autocomplete="off"> - </div> - - </div> - - - @*<div class="ibox-title"> - <h5> <i class="fa fa-list"></i> 瀹㈡埛璧勬枡</h5> - </div>*@ - <style> - .divImg { - height: 80px; - width: 80px; - } - </style> - - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <div class="col-sm-1 col-md-1 img-row"> - <label class="text-right control-label">涓撳璇佷功</label> - </div> - <div class="col-sm-6 col-md-6"> - <div class="col-sm-2 col-md-2 img-box"> - <div id="frontImg" class="frontImg"></div> - <input type="hidden" id="CertiFont" name="CertiFont" value="@Model.CertiFont" /> - <p>涓婁紶姝i潰</p> - </div> - <div class="col-sm-2 col-md-2 img-box"> - <div id="BackImg" class="BackImg"></div> - <input type="hidden" id="CertiBack" name="CertiBack" value="@Model.CertiBack" /> - <p>涓婁紶鑳岄潰</p> - </div> - </div> - - </div> - - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <div class="col-sm-1 col-md-1 img-row"> - <label class="text-right control-label">鑱岀О璇佷功</label> - </div> - - <div class="col-sm-2 col-md-2 img-box"> - <div id="TitileImg" class="TitileImg"></div> - <input type="hidden" id="TitileCerti" name="TitileCerti" value="@Model.TitileCerti" /> - <p>涓婁紶鑱岀О璇佷功</p> - </div> - <div class="col-sm-2 col-md-2 img-box"> - <div id="TitileImg1" class="TitileImg1"></div> - <input type="hidden" id="TitileCerti1" name="TitileCerti1" value="@Model.TitileCerti1" /> - <p>涓婁紶鑱岀О璇佷功</p> - </div> - <div class="col-sm-2 col-md-2 img-box"> - <div id="TitileImg2" class="TitileImg2"></div> - <input type="hidden" id="TitileCerti2" name="TitileCerti2" value="@Model.TitileCerti2" /> - <p>涓婁紶鑱岀О璇佷功</p> - </div> - <div class="col-sm-2 col-md-2 img-box"> - <div id="TitileImg3" class="TitileImg3"></div> - <input type="hidden" id="TitileCerti3" name="TitileCerti3" value="@Model.TitileCerti3" /> - <p>涓婁紶鑱岀О璇佷功</p> - </div> - <div class="col-sm-2 col-md-2 img-box"> - <div id="TitileImg4" class="TitileImg4"></div> - <input type="hidden" id="TitileCerti4" name="TitileCerti4" value="@Model.TitileCerti4" /> - <p>涓婁紶鑱岀О璇佷功</p> - </div> - @*</div> - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <div class="col-sm-1 col-md-1 img-row"> - - </div>*@ - <div class="col-sm-2 col-md-2 img-box"> - <div id="TitileImg5" class="TitileImg5"></div> - <input type="hidden" id="TitileCerti5" name="TitileCerti5" value="@Model.TitileCerti5" /> - <p>涓婁紶鑱岀О璇佷功</p> - </div> - - - <div class="col-sm-2 col-md-2 img-box"> - <div id="TitileImg6" class="TitileImg6"></div> - <input type="hidden" id="TitileCerti6" name="TitileCerti6" value="@Model.TitileCerti6" /> - <p>涓婁紶鑱岀О璇佷功</p> - </div> - <div class="col-sm-2 col-md-2 img-box"> - <div id="TitileImg7" class="TitileImg7"></div> - <input type="hidden" id="TitileCerti7" name="TitileCerti7" value="@Model.TitileCerti7" /> - <p>涓婁紶鑱岀О璇佷功</p> - </div> - <div class="col-sm-2 col-md-2 img-box"> - <div id="TitileImg8" class="TitileImg8"></div> - <input type="hidden" id="TitileCerti8" name="TitileCerti8" value="@Model.TitileCerti8" /> - <p>涓婁紶鑱岀О璇佷功</p> - </div> - <div class="col-sm-2 col-md-2 img-box"> - <div id="TitileImg9" class="TitileImg9"></div> - <input type="hidden" id="TitileCerti9" name="TitileCerti9" value="@Model.TitileCerti9" /> - <p>涓婁紶鑱岀О璇佷功</p> - </div> - <div class="col-sm-2 col-md-2 img-box"> - <div id="TitileImg10" class="TitileImg10"></div> - <input type="hidden" id="TitileCerti10" name="TitileCerti10" value="@Model.TitileCerti10" /> - <p>涓婁紶鑱岀О璇佷功</p> - </div> - - </div> - - <div class="clearfix layer-area" style="padding-bottom:15px;"> - - <label class="text-right col-sm-1 col-md-1 control-label">涓撳绠�浠�</label> - <div class="col-sm-11 col-md-11"> - <textarea id="Remark" name="Remark" class="form-control bt" style="resize:none;overflow-y:hidden; min-height:80px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'">@Model.Remark </textarea> - </div> - - </div> - - </div> - </div> - </div> - </div> - </div> - </div> - <div class="wrapper wrapper-content" style="margin-top:0px"></div> - <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px "> - <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="鍔熻兘鎸夐挳锛氣�滀繚瀛樷�濓紝鈥滃垹闄も��"> - <a class="btn btn-success" href="javascript:void(0)" onclick="delExpert();" style="margin-left:4px; border-radius:4px;"> - <i class="glyphicon glyphicon-remove"></i> <span class="bold">鍒犻櫎</span> - </a> - - <a class="btn btn-success" href="javascript:void(0)" onclick="saveExpert();" style="margin-left:4px; border-radius:4px;"> - <i class="glyphicon glyphicon-ok"></i> <span class="bold">鎻愪氦</span> - </a> - </div> - </div> - - </form> - <script type="text/javascript"> - var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2 - 95; - $("#div_content").height(hh); - - toastr.options = { - "closeButton": true, - "debug": false, - "progressBar": true, - "positionClass": "toast-bottom-right", - "onclick": null, - "showDuration": "300", - "hideDuration": "600", - "timeOut": "4500", - "extendedTimeOut": "600", - "showEasing": "swing", - "hideEasing": "linear", - "showMethod": "fadeIn", - "hideMethod": "fadeOut" - }; - - var imgs = { - BackImg: '', - BackImg: '', - TitileImg: '', - TitileImg1: '', - TitileImg2: '', - TitileImg3: '', - TitileImg4: '', - TitileImg5: '', - TitileImg6: '', - TitileImg7: '', - TitileImg8: '', - TitileImg9: '', - TitileImg10: '', - - } - - var Remark = document.getElementById("Remark"); - - Remark.style.height = Remark.scrollHeight + 'px'; - - var imgPath = "@Url.Content("~/UploadFile/")"; - - //鍒濆鍖栧浘鐗囦笂浼燿iv - new DragImgUpload("#frontImg", { - callback: function (files) { - imgs.frontImg = imgUploadCallback(files); - if (imgs.frontImg !== "") { - $("#CertiFont").val(imgPath + imgs.frontImg); - } - } - }); - new DragImgUpload("#BackImg", { - callback: function (files) { - imgs.BackImg = imgUploadCallback(files); - if (imgs.BackImg !== "") { - $("#CertiBack").val(imgPath + imgs.BackImg); - } - } - }); - new DragImgUpload("#TitileImg", { - callback: function (files) { - imgs.TitileImg = imgUploadCallback(files); - if (imgs.TitileImg !== "") { - $("#TitileCerti").val(imgPath + imgs.TitileImg); - $("#TitileCerti1").parent().show(); - } - - } - }); - new DragImgUpload("#TitileImg1", { - callback: function (files) { - imgs.TitileImg1 = imgUploadCallback(files); - if (imgs.TitileImg1 !== "") { - $("#TitileCerti1").val(imgPath + imgs.TitileImg1); - $("#TitileCerti2").parent().show(); - } - - } - }); - new DragImgUpload("#TitileImg2", { - callback: function (files) { - imgs.TitileImg2 = imgUploadCallback(files); - if (imgs.TitileImg2 !== "") { - $("#TitileCerti2").val(imgPath + imgs.TitileImg2); - $("#TitileCerti3").parent().show(); - } - - } - }); - new DragImgUpload("#TitileImg3", { - callback: function (files) { - imgs.TitileImg3 = imgUploadCallback(files); - if (imgs.TitileImg3 !== "") { - $("#TitileCerti3").val(imgPath + imgs.TitileImg3); - $("#TitileCerti4").parent().show(); - } - - } - }); - new DragImgUpload("#TitileImg4", { - callback: function (files) { - imgs.TitileImg4 = imgUploadCallback(files); - if (imgs.TitileImg4 !== "") { - $("#TitileCerti4").val(imgPath + imgs.TitileImg4); - $("#TitileCerti5").parent().show(); - } - - } - }); - new DragImgUpload("#TitileImg5", { - callback: function (files) { - imgs.TitileImg5 = imgUploadCallback(files); - if (imgs.TitileImg5 !== "") { - $("#TitileCerti5").val(imgPath + imgs.TitileImg5); - $("#TitileCerti6").parent().show(); - } - - } - }); - new DragImgUpload("#TitileImg6", { - callback: function (files) { - imgs.TitileImg6 = imgUploadCallback(files); - if (imgs.TitileImg6 !== "") { - $("#TitileCerti6").val(imgPath + imgs.TitileImg6); - $("#TitileCerti7").parent().show(); - } - - } - }); - new DragImgUpload("#TitileImg7", { - callback: function (files) { - imgs.TitileImg7 = imgUploadCallback(files); - if (imgs.TitileImg7 !== "") { - $("#TitileCerti7").val(imgPath + imgs.TitileImg7); - $("#TitileCerti8").parent().show(); - } - - } - }); - new DragImgUpload("#TitileImg8", { - callback: function (files) { - imgs.TitileImg8 = imgUploadCallback(files); - if (imgs.TitileImg8 !== "") { - $("#TitileCerti8").val(imgPath + imgs.TitileImg8); - $("#TitileCerti9").parent().show(); - } - - } - }); - new DragImgUpload("#TitileImg9", { - callback: function (files) { - imgs.TitileImg9 = imgUploadCallback(files); - if (imgs.TitileImg9 !== "") { - $("#TitileCerti9").val(imgPath + imgs.TitileImg9); - $("#TitileCerti10").parent().show(); - } - - } - }); - new DragImgUpload("#TitileImg10", { - callback: function (files) { - imgs.TitileImg10 = imgUploadCallback(files); - if (imgs.TitileImg10 !== "") { - $("#TitileCerti10").val(imgPath + imgs.TitileImg10); - } - - } - }); - - $(function () { - $("#TitileCerti1").parent().hide(); - $("#TitileCerti2").parent().hide(); - $("#TitileCerti3").parent().hide(); - $("#TitileCerti4").parent().hide(); - $("#TitileCerti5").parent().hide(); - $("#TitileCerti6").parent().hide(); - $("#TitileCerti7").parent().hide(); - $("#TitileCerti8").parent().hide(); - $("#TitileCerti9").parent().hide(); - $("#TitileCerti10").parent().hide(); - - imgs.frontImg = $.trim( $("#CertiFont").val() ); - imgs.BackImg = $.trim( $("#CertiBack").val()); - imgs.TitileImg = $.trim($("#TitileCerti").val()); - imgs.TitileImg1 = $.trim($("#TitileCerti1").val()); - imgs.TitileImg2 = $.trim($("#TitileCerti2").val()); - imgs.TitileImg3 = $.trim($("#TitileCerti3").val()); - imgs.TitileImg4 = $.trim($("#TitileCerti4").val()); - imgs.TitileImg5 = $.trim($("#TitileCerti5").val()); - imgs.TitileImg6 = $.trim($("#TitileCerti6").val()); - imgs.TitileImg7 = $.trim($("#TitileCerti7").val()); - imgs.TitileImg8 = $.trim($("#TitileCerti8").val()); - imgs.TitileImg9 = $.trim($("#TitileCerti9").val()); - imgs.TitileImg10 = $.trim($("#TitileCerti10").val()); - - if (imgs.frontImg !== "") { - $("#frontImg img").each(function (i) { - $(this).attr("src", imgs.frontImg); - }); - } - - if (imgs.BackImg !== "") { - - $("#BackImg img").each(function (i) { - $(this).attr("src", imgs.BackImg); - }); - } - - if (imgs.TitileImg !== "") { - $("#TitileImg img").each(function (i) { - $(this).attr("src", imgs.TitileImg); - }); - $("#TitileCerti1").parent().show(); - } - - if (imgs.TitileImg1 !== "") { - $("#TitileImg1 img").each(function (i) { - $(this).attr("src", imgs.TitileImg1); - }); - $("#TitileCerti2").parent().show(); - } - - if (imgs.TitileImg2 !== "") { - $("#TitileImg2 img").each(function (i) { - $(this).attr("src", imgs.TitileImg2); - }); - $("#TitileCerti3").parent().show(); - } - - if (imgs.TitileImg3 !== "") { - $("#TitileImg3 img").each(function (i) { - $(this).attr("src", imgs.TitileImg3); - }); - $("#TitileCerti4").parent().show(); - } - - if (imgs.TitileImg4 !== "") { - $("#TitileImg4 img").each(function (i) { - $(this).attr("src", imgs.TitileImg4); - }); - $("#TitileCerti5").parent().show(); - } - - if (imgs.TitileImg5 !== "") { - $("#TitileImg5 img").each(function (i) { - $(this).attr("src", imgs.TitileImg5); - }); - $("#TitileCerti6").parent().show(); - } - - if (imgs.TitileImg6 !== "") { - $("#TitileImg6 img").each(function (i) { - $(this).attr("src", imgs.TitileImg6); - }); - $("#TitileCerti7").parent().show(); - } - - if (imgs.TitileImg7 !== "") { - $("#TitileImg7 img").each(function (i) { - $(this).attr("src", imgs.TitileImg7); - }); - $("#TitileCerti8").parent().show(); - } - - if (imgs.TitileImg8 !== "") { - $("#TitileImg8 img").each(function (i) { - $(this).attr("src", imgs.TitileImg8); - }); - $("#TitileCerti9").parent().show(); - } - - if (imgs.TitileImg9 !== "") { - $("#TitileImg9 img").each(function (i) { - $(this).attr("src", imgs.TitileImg9); - }); - $("#TitileCerti10").parent().show(); - } - - if (imgs.TitileImg10 !== "") { - $("#TitileImg10 img").each(function (i) { - $(this).attr("src", imgs.TitileImg10); - }); - } - - - - $("#ReviewItem").chosen({ - hide_results_on_select: false - }); - - - }); - - - - - function imgUploadCallback(files) { - var fileName = ""; - var file = files[0]; - var sendData = new FormData(); - sendData.append('img', files[0]); - $.ajax({ - type: "post", - url: "@Url.Content("~/Expert/UploadImage")", - data: sendData, - async:false, - contentType: false, - processData: false, - success: function (res) { - fileName = res;// FilePath + file.name; - //parent.layer.msg("淇敼鎴愬姛锛�"); - }, - error: function (data) { - fileName = ""; - } - }); - - return fileName; - }; - var id = '@Model.Id'; - var bUpload = false; - var bAdd = false; // 鏂板鎿嶄綔 - var fileId = ""; // 涓婁紶鏂囦欢鐢熸垚鐨処d - var bEditFile = false; // 缂栬緫鏃讹紝鏄惁鍏宠仈浜嗛檮浠� - var bDeleteFile = false; // 鍒犻櫎鎿嶄綔 - var attachment_id = 0; // 闄勪欢id - var imgLoad = new Object(); - - - - var delExpert = function () { - - - if (id == null || id == '') { - toastr.warning("璇峰厛淇濆瓨"); - return; - } - $.ajax({ - type: "GET", - url: "/Expert/Nullify?id=" + id, - dataType: "json", - global: false, - data: '', - success: function (data) { - - - if (data.Result) { - // parent._afterSave(true); - parent.layer.msg('鍒犻櫎鎴愬姛', { icon: 6 }); - _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶 - } - else { - // toastr.error(""); - parent.layer.msg('鍒犻櫎澶辫触', { icon: 5 }); - } - - }, - error: function () { - if ($.isNumber(imgLoad)) { - parent.layer.close(imgLoad); - } - //toastr.error("淇濆瓨澶辫触"); - - parent.layer.msg('淇濆瓨澶辫触', { icon: 5 }); - } - }); - - } - - // 淇濆瓨宀椾綅淇℃伅 - var saveExpert = function () { - if ($("#InfoSource").val() == '') { - toastr.warning("淇℃伅鏉ユ簮涓嶈兘涓虹┖"); - return; - } - if ($("#ExpertType").val() == '') { - toastr.warning("涓撳绫诲埆涓嶈兘涓虹┖"); - return; - } - if ($("#Name").val() == '') { - toastr.warning("涓撳濮撳悕涓嶈兘涓虹┖"); - return; - }; - if ($.trim($("#Phone1").val()) == '') { - toastr.warning("鑱旂郴鐢佃瘽涓嶈兘涓虹┖"); - return; - } - if ($.trim($("#CertiNumber").val()) == '' || $.trim($("#CertiNumber").val()) == 'SC') { - toastr.warning("涓撳璇佸彿涓嶈兘涓虹┖"); - return; - } - - - - //if ($.trim($("#ReviewItem").val()) == '') { - // toastr.warning("璇勫椤圭洰涓嶈兘涓虹┖"); - // return; - //} - - - //var data = { id: $("#Id").val(), StartTime:$("#StartTime").val(), Sheng: $("#Sheng").val(), job_level: $("#Job_level").val().toString(), ExistsAttachment: fileId != "" } - $.ajax({ - type: "POST", - url: "/Expert/Save?ReviewItemSelect=" + $("#ReviewItem").val(), - dataType: "json", - global: false, - data: $('form').serializeArray(), - success: function (data) { - - - - if (data.Result) { - // parent._afterSave(true); - parent.layer.msg('鎴愬姛淇濆瓨', { icon: 6 }); - //window.location = "/Project/add?id=" + data.ReturnID; - - - try { - _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶 - } - catch (err) { - window.location = "/Expert/Edit?Province=" + $("#Province").val() + "&City=" + $("#City").val(); - - //parent._CloseTab1("/Expert/Edit/"); - } - - } - else { - // toastr.error("澶辫触"); - parent.layer.msg(data.Message, { icon: 5 }); - } - - }, - error: function () { - - - parent.layer.msg('澶辫触', { icon: 5 }); - } - }); - } - - - $("#Province").change(function () { - - var sheng = $("#Province").val(); - $.ajax({ - type: "GET", - url: "/Project/getCity?shengid=" + sheng, - dataType: "json", - global: false, - data: "", - success: function (data) { - - var city = $("#City"); - city.find('option').remove(); - var aaa = '<option value="" hassubinfo="true">璇烽�夋嫨</option>'; - city.append(aaa); - if (data.length > 0) { - for (var i = 0; i < data.length; i++) { - - var o = '<option value="' + data[i].CodeId + '" hassubinfo="true">' + data[i].Name + '</option>'; - city.append(o); - } - } - }, - error: function () { - - - parent.layer.msg('澶辫触', { icon: 5 }); - } - }); - }); - - - - - - function addresschushi() { - var sheng = $.trim($("#Province").find("option:selected").text()); - var city = $.trim($("#City").find("option:selected").text()); - var Address = $("#Address"); - - Address.val(sheng + city ); - } - - if ($("#Id").val() == '') { - - addresschushi(); - } - - - function _pageAutoClose() { - parent.window._reloadPageData(); - var index = parent.layer.getFrameIndex(window.name); - parent.layer.isRefresh = true; - parent.layer.closeAll('loading'); - parent.layer.close(index); - return false; - } - - - $("#IdCard").change(function () { - - var IdCard = $.trim($("#IdCard").val()); - if (IdCard == "") { - return; - } - var Id = $("#Id").val(); - $.ajax({ - type: "GET", - url: "/Expert/IdCardChongfu?IdCard=" + IdCard + "&Id=" + Id, - dataType: "json", - global: false, - data: "", - success: function (data) { - - if (data.Result) { - - } - else { - // toastr.error("澶辫触"); - parent.layer.msg(data.Message, { icon: 5 }); - } - }, - error: function () { - - - parent.layer.msg('澶辫触', { icon: 5 }); - } - }); - }); - - - $("#Phone1").change(function () { - - var Phone1 = $.trim($("#Phone1").val()); - if (Phone1 == "") { - return; - } - var Id = $("#Id").val(); - $.ajax({ - type: "GET", - url: "/Expert/Phone1Chongfu?Phone1=" + Phone1 + "&Id=" + Id, - dataType: "json", - global: false, - data: "", - success: function (data) { - - - if (data.Result) { - - - } - else { - // toastr.error("澶辫触"); - parent.layer.msg(data.Message, { icon: 5 }); - } - }, - error: function () { - - - parent.layer.msg('澶辫触', { icon: 5 }); - } - }); - }); - - - $("#CertiNumber").change(function () { - - var CertiNumber = $.trim($("#CertiNumber").val()); - if (CertiNumber == "") { - return; - } - var Id = $("#Id").val(); - $.ajax({ - type: "GET", - url: "/Expert/CertiNumberChongfu?CertiNumber=" + CertiNumber + "&Id=" + Id, - dataType: "json", - global: false, - data: "", - success: function (data) { - - - if (data.Result) { - if (data.Remark == null || data.Remark == "") { - return; - } - if ($("#Province").val() != data.Remark ) { - $("#Province").val(data.Remark); - - var sheng = $("#Province").val(); - var shi = data.Message; - $.ajax({ - type: "GET", - url: "/Project/getCity?shengid=" + sheng, - dataType: "json", - global: false, - async: false, - data: "", - success: function (data) { - - var city = $("#City"); - city.find('option').remove(); - var aaa = '<option value="" hassubinfo="true">璇烽�夋嫨</option>'; - city.append(aaa); - if (data.length > 0) { - for (var i = 0; i < data.length; i++) { - - var o = '<option value="' + data[i].CodeId + '" hassubinfo="true">' + data[i].Name + '</option>'; - if (data[i].CodeId == shi) { - o = '<option value="' + data[i].CodeId + '" hassubinfo="true" selected="selected" >' + data[i].Name + '</option>'; - } - city.append(o); - } - } - }, - error: function () { - - - parent.layer.msg('澶辫触', { icon: 5 }); - } - }); - } else { - $("#City").val(data.Message); - } - - - - } - else { - // toastr.error("澶辫触"); - parent.layer.msg(data.Message, { icon: 5 }); - } - }, - error: function () { - - - parent.layer.msg('澶辫触', { icon: 5 }); - } - }); - }); - - </script> -</body> -</html> \ No newline at end of file diff --git a/zhengcaioa/zhengcaioa/Views/Expert/EditJiesuan.cshtml b/zhengcaioa/zhengcaioa/Views/Expert/EditJiesuan.cshtml deleted file mode 100644 index c045ba0..0000000 --- a/zhengcaioa/zhengcaioa/Views/Expert/EditJiesuan.cshtml +++ /dev/null @@ -1,361 +0,0 @@ -锘緻model DTO.FiOrderrecievemoneyDTO -@using DTO; -@using zhengcaioa.Models; -@{ - - - List<SysCodeDtl> PayType = ViewData["PayType"] as List<SysCodeDtl>; //浠樻绫诲瀷 - - List<FiSubjectDTO> FiSubject = ViewData["FiSubject"] as List<FiSubjectDTO>; //绉戠洰 - - - List<SysCodeDtl> accounttype = ViewData["accounttype"] as List<SysCodeDtl>; //璐︽埛绫诲瀷 - -} -@{ - Layout = null; -} - -<!DOCTYPE html> -<html> -<head> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> - <meta name="description" content=""> - <meta name="author" content="ThemeBucket"> - <title>@(SiteConfig.SiteName)</title> - <link href="~/css/bootstrap.min.css" rel="stylesheet"> - <link href="~/css/font-awesome.min.css" rel="stylesheet"> - <link href="~/css/animate.min.css" rel="stylesheet"> - - @*<link href="~/css/plugins/iCheck/custom.css" rel="stylesheet">*@ - <link href="~/css/style.min.css" rel="stylesheet"> - <link href="~/css/plugins/chosen/chosen.css" rel="stylesheet"> - @*<link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet">*@ - @*<link href="~/css/plugins/datapicker/datepicker3.css" rel="stylesheet">*@ - <link href="~/css/style.min.css" rel="stylesheet"> - <link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" /> - <link href="~/css/plugins/webuploader/webuploader.css" rel="stylesheet" /> - - <style type="text/css"> - .webuploader-pick { - position: relative; - display: inline-block; - cursor: pointer; - background: #00b7ee; - padding: 8px 14px 7px 14px; - color: #fff; - text-align: center; - border-radius: 3px; - overflow: hidden; - } - - div.clearfix > label { - padding-top: 8px; - } - - .chosen-container { - border-radius: 1px; - border: 1px solid #e5e6e7; - } - - .col-md-1.control-label { - padding-right: 0px; - font-weight: 400; - } - </style> - - <!-- jqgrid--> - @*<link href="~/css/plugins/jqgrid/ui.jqgrid.css" rel="stylesheet">*@ - <script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script> - <script src="~/js/bootstrap.min.js"></script> - @*<script src="~/js/plugins/bootstro/bootstro.js"></script>*@ - - <!--瀹瑰櫒--> - @*<script language="javascript" src="~/js/datehelper.js" type="text/javascript"></script>*@ - @*<script language="javascript" src="~/js/plugins/query/jquery.query-object.js" type="text/javascript"></script>*@ - @*<script language="javascript" src="~/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>*@ - <script language="javascript" src="~/js/plugins/chosen/chosen.jquery.js" type="text/javascript"></script> - @*<script language="javascript" src="~/js/plugins/datapicker/bootstrap-datepicker.js" type="text/javascript"></script>*@ - <script language="javascript" src="~/js/plugins/layer/layer.js" type="text/javascript"></script> - @*<script src="~/js/plugins/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>*@ - @*<script src="~/js/plugins/jqgrid/i18n/grid.locale-cn.js" type="text/javascript"></script>*@ - <script src="~/js/plugins/toastr/toastr.min.js" type="text/javascript"></script> - <script src="~/js/plugins/webuploader/webuploader.min.js"></script> - - <script language="javascript" src="~/js/common-layout.js" type="text/javascript"></script> - <script src="~/js/plugins/layer/laydate/laydate.js" type="text/javascript"></script> - @*<script src="~/js/plugins/iTexbox/itextbox.js" type="text/javascript"></script>*@ - @*<script src="~/js/plugins/iuploader/iuploader.js"></script>*@ - <script src="~/js/TUJS.js"></script> -</head> -<body class="gray-bg" style="overflow:auto"> - <form id="formtest"> - <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;"> - <div class="row"> - <div class="col-sm-12"> - <div class="ibox float-e-margins"> - <div class="ibox-title"> - <h5> <i class="fa fa-list"></i> 鍩烘湰淇℃伅</h5> - </div> - <div id="div_content" class="ibox-content" style="background-color:white;"> - <div class="row"> - - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鏀舵閲戦锛堝厓锛�<i class="red">*</i></label> - <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <input class="form-control" label="鏀舵閲戦锛堝厓锛�" name="Money" id="Money" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="number" value="@Model.Money.ToString("F2")" readonly="readonly"> - - </div> - <label class="text-right col-sm-1 col-md-1 control-label">鏀舵鏂瑰紡<i class="red">*</i></label> - <div class="col-sm-2 col-md-2"> - <select id="PayType" class="form-control" name="PayType" data-placeholder="閫夋嫨 搴忓垪 ..."> - @foreach (var item in PayType) - { - @if (!item.CodeSn.Equals(Model.PayType)) - { - <option value="@item.CodeSn" hassubinfo="true"> - @item.Comments - </option> - } - else - { - <option value="@item.CodeSn" hassubinfo="true" selected="selected"> - @item.Comments - </option> - } - - } - } - - </select> - - </div> - - <label class="text-right col-sm-1 col-md-1 control-label">鏀舵鏃ユ湡<i class="red">*</i></label> - <div class="col-sm-2 col-md-2"> - <input id="PayTime" class="form-control" label="鏀舵鏃ユ湡" name="PayTime" labtype="txt" addvisible="true" editvisible="true" reg="" ismust="true" type="text" value="@Model.PayTime.ToString("yyyy/MM/dd")" readonly="readonly"> - <input type="hidden" id="Id" name="Id" value="@Model.Id" /> - </div> - - - - - </div> - - <div class="clearfix layer-area" style="padding-bottom:15px;"> - - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">璐︽埛鍚嶇О<i class="red">*</i></label> - <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <select id="AccountId" class="form-control" name="AccountId" data-placeholder="閫夋嫨 搴忓垪 ..."> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - - - </select> - - </div> - - - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">绉戠洰鍚嶇О<i class="red">*</i></label> - <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <select id="SubjectId" class="form-control" name="SubjectId" data-placeholder="閫夋嫨 搴忓垪 ..."> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - @foreach (var item in FiSubject) - { - @if (!item.Id.Equals(Model.SubjectId)) - { - <option value="@item.Id" hassubinfo="true"> - @item.Subjectname - </option> - } - else - { - <option value="@item.Id" hassubinfo="true" selected="selected"> - @item.Subjectname - </option> - } - - } - } - - </select> - - </div> - - </div> - - - - - - - - - - - - - </div> - </div> - </div> - </div> - </div> - </div> - <div class="wrapper wrapper-content" style="margin-top:0px"></div> - <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px "> - <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="鍔熻兘鎸夐挳锛氣�滀繚瀛樷�濓紝鈥滃垹闄も��"> - - - <a class="btn btn-success" href="javascript:void(0)" onclick="savePosition();" style="margin-left:4px; border-radius:4px;"> - <i class="glyphicon glyphicon-ok"></i> <span class="bold">鎻愪氦</span> - </a> - </div> - </div> - - </form> - <script type="text/javascript"> - var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2 - 95; - $("#div_content").height(hh); - - toastr.options = { - "closeButton": true, - "debug": false, - "progressBar": true, - "positionClass": "toast-bottom-right", - "onclick": null, - "showDuration": "300", - "hideDuration": "600", - "timeOut": "4500", - "extendedTimeOut": "600", - "showEasing": "swing", - "hideEasing": "linear", - "showMethod": "fadeIn", - "hideMethod": "fadeOut" - }; - - - - - laydate({ elem: "#PayTime", format: 'YYYY/MM/DD', istime: true, event: "focus" }); - - - - - // 淇濆瓨宀椾綅淇℃伅 - var savePosition = function () { - - - - if ($("#Money").val() == '') { - toastr.warning("鏀舵閲戦涓嶈兘涓虹┖"); - return; - } - if ($("#PayType").val() == '') { - toastr.warning("鏀舵鏂瑰紡涓嶈兘涓虹┖"); - return; - } - if ($("#PayTime").val() == '') { - toastr.warning("鏀舵鏃ユ湡涓嶈兘涓虹┖"); - return; - } - if ($("#AccountId").val() == '') { - toastr.warning("鏀舵璐︽埛涓嶈兘涓虹┖"); - return; - } - if ($("#SubjectId").val() == '') { - toastr.warning("鏀舵绉戠洰涓嶈兘涓虹┖"); - return; - } - if (parseFloat($("#Money").val()) <= 0) { - toastr.warning("鏀舵閲戦涓嶈兘灏忎簬0"); - return; - } - - - - //var data = { id: $("#Id").val(), StartTime:$("#StartTime").val(), Sheng: $("#Sheng").val(), job_level: $("#Job_level").val().toString(), ExistsAttachment: fileId != "" } - $.ajax({ - type: "POST", - url: "/Expert/SaveJiesuan", - dataType: "json", - global: false, - data: $('form').serializeArray(), - success: function (data) { - - - - if (data.Result) { - // parent._afterSave(true); - parent.layer.msg('鎴愬姛淇濆瓨', { icon: 6 }); - //window.location = "/Project/add?id=" + data.ReturnID; - - - try { - _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶 - } - catch (err) { - parent._CloseTab1("/Expert/EditJiesuan/"); - } - - } - else { - // toastr.error("澶辫触"); - parent.layer.msg(data.Message, { icon: 5 }); - } - - }, - error: function () { - - - parent.layer.msg('澶辫触', { icon: 5 }); - } - }); - } - - - - $("#PayType").change(function () { - - var PayType = $("#PayType").val(); - $.ajax({ - type: "GET", - url: "/FiAccountIncome/getAccount?Accounttype=" + PayType, - dataType: "json", - global: false, - data: "", - success: function (data) { - - var city = $("#AccountId"); - city.find('option').remove(); - var aaa = '<option value="" hassubinfo="true">璇烽�夋嫨</option>'; - city.append(aaa); - if (data.length > 0) { - for (var i = 0; i < data.length; i++) { - - var o = '<option value="' + data[i].Id + '" hassubinfo="true">' + data[i].Accountname + '</option>'; - city.append(o); - } - } - }, - error: function () { - - - parent.layer.msg('澶辫触', { icon: 5 }); - } - }); - }); - - $("#PayType").trigger("change"); - - - function _pageAutoClose() { - parent.window._reloadPageData(); - var index = parent.layer.getFrameIndex(window.name); - parent.layer.isRefresh = true; - parent.layer.closeAll('loading'); - parent.layer.close(index); - return false; - } - </script> -</body> -</html> \ No newline at end of file diff --git a/zhengcaioa/zhengcaioa/Views/Expert/EditPromote.cshtml b/zhengcaioa/zhengcaioa/Views/Expert/EditPromote.cshtml deleted file mode 100644 index e8b152e..0000000 --- a/zhengcaioa/zhengcaioa/Views/Expert/EditPromote.cshtml +++ /dev/null @@ -1,230 +0,0 @@ -锘緻model DTO.ExpertPromoteDTO -@using DTO; -@using zhengcaioa.Models; -@{ - string experId = ViewData["experId"] as string; -} -@{ - Layout = null; -} - -<!DOCTYPE html> -<html> -<head> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> - <meta name="description" content=""> - <meta name="author" content="ThemeBucket"> - <title>@(SiteConfig.SiteName)</title> - <link href="~/css/bootstrap.min.css" rel="stylesheet"> - <link href="~/css/font-awesome.min.css" rel="stylesheet"> - <link href="~/css/animate.min.css" rel="stylesheet"> - - @*<link href="~/css/plugins/iCheck/custom.css" rel="stylesheet">*@ - <link href="~/css/style.min.css" rel="stylesheet"> - <link href="~/css/plugins/chosen/chosen.css" rel="stylesheet"> - <link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet"> - <link href="~/css/plugins/datapicker/datepicker3.css" rel="stylesheet"> - <link href="~/layui/css/modules/laydate/default/laydate.css" rel="stylesheet" /> - <link href="~/css/style.min.css" rel="stylesheet"> - <link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" /> - <link href="~/css/plugins/webuploader/webuploader.css" rel="stylesheet" /> - - <style type="text/css"> - .webuploader-pick { - position: relative; - display: inline-block; - cursor: pointer; - background: #00b7ee; - padding: 8px 14px 7px 14px; - color: #fff; - text-align: center; - border-radius: 3px; - overflow: hidden; - } - - div.clearfix > label { - padding-top: 8px; - } - - .chosen-container { - border-radius: 1px; - border: 1px solid #e5e6e7; - } - - .col-md-1.control-label { - padding-right: 0px; - font-weight: 400; - } - - .data { - width: 240px; - padding-left: 8px; - } - </style> - - <!-- jqgrid--> - <script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script> - <script src="~/js/bootstrap.min.js"></script> - - <!--瀹瑰櫒--> - @*<script language="javascript" src="~/js/datehelper.js" type="text/javascript"></script>*@ - @*<script language="javascript" src="~/js/plugins/query/jquery.query-object.js" type="text/javascript"></script>*@ - @*<script language="javascript" src="~/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>*@ - <script language="javascript" src="~/js/plugins/chosen/chosen.jquery.js" type="text/javascript"></script> - @*<script language="javascript" src="~/js/plugins/datapicker/bootstrap-datepicker.js" type="text/javascript"></script>*@ - <script language="javascript" src="~/js/plugins/layer/layer.js" type="text/javascript"></script> - @*<script src="~/js/plugins/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>*@ - @*<script src="~/js/plugins/jqgrid/i18n/grid.locale-cn.js" type="text/javascript"></script>*@ - <script src="~/js/plugins/toastr/toastr.min.js" type="text/javascript"></script> - <script src="~/js/plugins/webuploader/webuploader.min.js"></script> - - <script language="javascript" src="~/js/common-layout.js" type="text/javascript"></script> - <script src="~/js/plugins/layer/laydate/laydate.js" type="text/javascript"></script> - @*<script src="~/js/plugins/iTexbox/itextbox.js" type="text/javascript"></script>*@ - @*<script src="~/js/plugins/iuploader/iuploader.js"></script>*@ - <script src="~/js/TUJS.js"></script> -</head> -<body class="gray-bg" style="overflow:auto;background:white;"> - <form id="formtest"> - <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;"> - <input type="hidden" id="ExpertId" name="ExpertId" value="@experId" /> - <table> - <tr> - <td> - <label class="text-right control-label">鎺ㄥ箍鏃堕棿</label> - </td> - <td class="data"> - <input type="text" id="PromoteDate" name="PromoteDate" class="form-control layer-date" placeholder="鎺ㄥ箍鏃堕棿" style="overflow-y:hidden;width:230px; " autocomplete="off"> - - </td> - </tr> - <tr style="height:150px"> - <td> - <label class="text-right control-label">鎺ㄥ箍鍐呭</label> - </td> - <td class="data"> - <textarea id="Content" class="form-control" name="Content" style="width:230px; " cols="20" rows="9"></textarea> - </td> - </tr> - </table> - - - </div> - - <div class="wrapper wrapper-content" style="margin-top:0px"></div> - <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px "> - <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="鍔熻兘鎸夐挳锛氣�滀繚瀛樷�濓紝鈥滃垹闄も��"> - <a class="btn btn-success" href="javascript:void(0)" onclick="saveExpertPromote();" style="margin-left:4px; border-radius:4px;"> - <i class="glyphicon glyphicon-ok"></i> <span class="bold">淇濆瓨</span> - </a> - </div> - </div> - - </form> - <script type="text/javascript"> - var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2 - 95; - $("#div_content").height(hh); - - toastr.options = { - "closeButton": true, - "debug": false, - "progressBar": true, - "positionClass": "toast-bottom-right", - "onclick": null, - "showDuration": "300", - "hideDuration": "600", - "timeOut": "4500", - "extendedTimeOut": "600", - "showEasing": "swing", - "hideEasing": "linear", - "showMethod": "fadeIn", - "hideMethod": "fadeOut" - }; - - - - - var bUpload = false; - var bAdd = false; // 鏂板鎿嶄綔 - var fileId = ""; // 涓婁紶鏂囦欢鐢熸垚鐨処d - var bEditFile = false; // 缂栬緫鏃讹紝鏄惁鍏宠仈浜嗛檮浠� - var bDeleteFile = false; // 鍒犻櫎鎿嶄綔 - var attachment_id = 0; // 闄勪欢id - var imgLoad = new Object(); - - - - - - // 淇濆瓨宀椾綅淇℃伅 - var saveExpertPromote = function () { - if ($("#Content").val() == '') { - toastr.warning("鎺ㄥ箍鍐呭涓嶈兘涓虹┖"); - return; - } - - - - $.ajax({ - type: "POST", - url: "/Expert/SavePromte", - dataType: "json", - global: false, - data: $('form').serializeArray(), - success: function (data) { - if (data.Result) { - // parent._afterSave(true); - parent.layer.msg('鎴愬姛淇濆瓨', { icon: 6 }); - //window.location = "/Project/add?id=" + data.ReturnID; - - - try { - _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶 - } - catch (err) { - parent._CloseTab1("/ExpertPromote/Edit/"); - } - - } - else { - // toastr.error("澶辫触"); - parent.layer.msg(data.Message, { icon: 5 }); - } - - }, - error: function () { - - - parent.layer.msg('澶辫触', { icon: 5 }); - } - }); - } - - - - laydate({ - elem: '#PromoteDate', //瀵瑰簲id - format: 'YYYY-MM-DD', //鏃ユ湡鏍煎紡 // 鍒嗛殧绗﹀彲浠ヤ换鎰忓畾涔夛紝璇ヤ緥瀛愯〃绀哄彧鏄剧ず骞存湀 - min: '2021-01-01', //璁惧畾鏈�灏忔棩鏈熶负褰撳墠鏃ユ湡 - max: '2099-06-16', //鏈�澶ф棩鏈� - festival: false, //鏄剧ず鑺傛棩 - istime: false, 聽 //鏄惁鏄剧ず鏃跺垎绉� - istoday: true, //鏄惁鏄粖澶� - choose: function (datas) { //閫夋嫨鏃ユ湡瀹屾瘯鐨勫洖璋� - // console.log(this); - // end.min = datas; //寮�濮嬫棩閫夊ソ鍚庯紝閲嶇疆缁撴潫鏃ョ殑鏈�灏忔棩鏈� - // end.start = datas //灏嗙粨鏉熸棩鐨勫垵濮嬪�艰瀹氫负寮�濮嬫棩 - } - }); - function _pageAutoClose() { - parent.window._reloadPageData(); - var index = parent.layer.getFrameIndex(window.name); - parent.layer.isRefresh = true; - parent.layer.closeAll('loading'); - parent.layer.close(index); - return false; - } - </script> -</body> -</html> \ No newline at end of file diff --git a/zhengcaioa/zhengcaioa/Views/Expert/ExpertFeiyong.cshtml b/zhengcaioa/zhengcaioa/Views/Expert/ExpertFeiyong.cshtml deleted file mode 100644 index 4a51232..0000000 --- a/zhengcaioa/zhengcaioa/Views/Expert/ExpertFeiyong.cshtml +++ /dev/null @@ -1,106 +0,0 @@ -锘緻{ - ViewBag.Title = "CooperOrder"; - Layout = "~/Views/Shared/_Layout_Search.cshtml"; -} -@section headerStyle{ - <script type="text/javascript"> - - var Expert = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Expert))'; - var shifou = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.shifou))'; - gridConfig = { multiselect: true, selectcol: "Id" }; - //var Dispatch = [{ code: "1", label: "鏄�" }, { code: "0", label: "鍚�" }]; - //loseherght = 60; - dataCol = [ - { label: 'id', name: 'Id', labtype: 'txt', hidden: true }, - { label: '娲惧崟鏃堕棿', name: 'CreatetimeName', labtype: 'txt', hidden: false, width: 100 }, - { - label: '璁㈠崟鍙�', name: 'OrderNo', labtype: 'txt', hidden: false, width: 100 , - //formatter: function (cellvalue, options, rowObject) { - // return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/CooperOrder/Edit?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>"; - //} - }, - { label: '璁㈠崟绫诲埆', name: 'OrderTypeName', labtype: 'txt', hidden: false, width: 100 }, - { label: '瀹㈡埛鍚嶇О', name: 'KhdwName', labtype: 'txt', hidden: false, width: 100 }, - { label: '鏀惰揣鍦板潃', name: 'ShrAddress', labtype: 'txt', hidden: false, width: 200 }, - { label: '鑱旂郴浜�', name: 'Shr', labtype: 'txt', hidden: false, width: 100 }, - { label: '鑱旂郴鐢佃瘽', name: 'ShrTel', labtype: 'txt', hidden: false, width: 100 }, - //{ label: '涓氬姟缁忕悊', name: 'Youhui', labtype: 'txt', hidden: false, width: 100 }, - { - label: '娲惧伐涓撳', ExpertId: 'id', labtype: 'txt', hidden: false, width: 100, - formatter: function (cellvalue, options, rowObject) { - - return rowObject.ExpertName; - - } - }, - - { label: '鍔冲姟璐�(鍏�)', name: 'Money', labtype: 'txt', hidden: false, width: 100 }, - { label: '鏄惁缁撶畻', name: 'sort', labtype: 'txt', hidden: false, width: 100 }, - - ]; - dataUrl = "/Expert/GetJiesuanList"; - searchCol = [ - { label: '娲惧崟鏃堕棿', name: 'PdTime', labtype: 'datearea', hidden: false, cwidth: '5%', cccwidth: '15%'}, - { label: '璁㈠崟缂栧彿', name: 'OrderNo', labtype: 'txt', hidden: false, cwidth: '5%', cccwidth: '8%' }, - { - label: '涓撳', name: 'ExpertId', labtype: 'combox', hidden: false, data: JSON.parse(Expert), cwidth: '5%', cccwidth: '8%' - }, - { - label: '鏄惁缁撶畻', name: 'Sort', labtype: 'combox', hidden: false, data: JSON.parse(shifou), cwidth: '5%', cccwidth: '8%' - }, - - ]; - - var _pageJiesuan = function () { - var duanxin = GetGridSelect(); - var baifangid = ""; - if (duanxin != '') { - for (var i = 0; i < duanxin.length; i++) { - baifangid += duanxin[i] + ',' - } - baifangid = baifangid.substring(0, baifangid.length - 1); - } else { - toastr.error("璇烽�夋嫨璁㈠崟"); - return; - } - OpenWindow('缁撶畻', '98%', '100%', '/Expert/EditJiesuan?id=' + baifangid ) ; - ///Expert/JiesuanOperate ? id = " + baifangid, - } - - - - - - - - - - var _afterSave = function (result) { - if (result) { - toastr.success("淇濆瓨鎴愬姛"); - } else { - toastr.error("淇濆瓨澶辫触"); - } - } - - var _afterDel = function (result) { - if (result) { - toastr.success("鍒犻櫎鎴愬姛"); - } else { - /**/ - toastr.error("鍒犻櫎鎴愬姛"); - /**/ - } -} - </script> -} - -@section footerScripts{ - <script type="text/javascript"> - - - - - - </script> -} diff --git a/zhengcaioa/zhengcaioa/Views/Expert/ExpertOrderDispatch.cshtml b/zhengcaioa/zhengcaioa/Views/Expert/ExpertOrderDispatch.cshtml deleted file mode 100644 index 6ae9050..0000000 --- a/zhengcaioa/zhengcaioa/Views/Expert/ExpertOrderDispatch.cshtml +++ /dev/null @@ -1,100 +0,0 @@ -锘緻{ - ViewBag.Title = "CooperOrder"; - Layout = "~/Views/Shared/_Layout_Search.cshtml"; -} -@section headerStyle{ - <script type="text/javascript"> - var OrderType = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.OrderType))'; - - var users = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.users))'; - var Khlx = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Khlx))'; - var HuifangStatus = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.HuifangStatus))'; - var PingjiaStatus = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.PingjiaStatus))'; - var Expert = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Expert))'; - - - var Dispatch = [{ code: "1", label: "鏄�" }, { code: "0", label: "鍚�" }]; - loseherght = 60; - dataCol = [ - { label: 'id', name: 'Id', labtype: 'txt', hidden: true }, - { label: '涓嬪崟鏃堕棿', name: 'XdTimeName', labtype: 'txt', hidden: false, width: 100 }, - { - label: '璁㈠崟鍙�', name: 'OrderNo', labtype: 'txt', hidden: false, width: 100 , - //formatter: function (cellvalue, options, rowObject) { - // return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/CooperOrder/Edit?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>"; - //} - }, - { label: '璁㈠崟绫诲埆', name: 'OrderTypeName', labtype: 'txt', hidden: false, width: 100 }, - { label: '瀹㈡埛鍚嶇О', name: 'KhdwName', labtype: 'txt', hidden: false, width: 100 }, - { label: '鏀惰揣鍦板潃', name: 'ShrAddress', labtype: 'txt', hidden: false, width: 200 }, - { label: '鑱旂郴浜�', name: 'Shr', labtype: 'txt', hidden: false, width: 100 }, - { label: '鑱旂郴鐢佃瘽', name: 'ShrTel', labtype: 'txt', hidden: false, width: 100 }, - //{ label: '涓氬姟缁忕悊', name: 'Youhui', labtype: 'txt', hidden: false, width: 100 }, - { - label: '娲惧伐涓撳', ExpertId: 'id', labtype: 'txt', hidden: false, width: 100, - formatter: function (cellvalue, options, rowObject) { - if ($.trim(rowObject.ExpertId) !== '') { - return rowObject.ExpertName; - } else { - return '<a href="javascript:void(0)" onclick="ExpertDispatch(\'' + rowObject.OrderId + '\',\'' + rowObject.OrderNo+'\');"> <span style="background: #ECF3FF;"> 娲惧伐 </span> </a > '; - } - } - }, - - { label: '鍔冲姟璐�(鍏�)', name: 'Money', labtype: 'txt', hidden: false, width: 100 }, - - ]; - dataUrl = "/Expert/GetOrderList"; - searchCol = [ - { label: '涓嬪崟鏃堕棿', name: 'XdTime', labtype: 'datearea', hidden: false, cwidth: '5%', cccwidth: '15%'}, - { label: '璁㈠崟缂栧彿', name: 'OrderNo', labtype: 'txt', hidden: false, cwidth: '5%', cccwidth: '8%' }, - { label: '璁㈠崟绫诲瀷', name: 'OrderType', labtype: 'combox', hidden: false, data: JSON.parse(OrderType), cwidth: '5%', cccwidth: '8%' }, - { label: '涓氬姟缁忕悊', name: 'Ywjl', labtype: 'combox', hidden: false, data: JSON.parse(users), cwidth: '5%', cccwidth: '8%' }, - { label: '瀹㈡埛鍚嶇О', name: 'KhdwName', labtype: 'txt', hidden: false, cwidth: '5%', cccwidth: '15%'}, - { label: '瀹㈡埛绫诲瀷', name: 'Khlx', labtype: 'combox', hidden: false, data: JSON.parse(Khlx), cwidth: '5%', cccwidth: '8%' }, - { - label: '鏄惁娲惧伐', name: 'isDispatch', labtype: 'combox', hidden: false, data: Dispatch /*JSON.parse(HuifangStatus)*/, cwidth: '5%', cccwidth: '8%' - }, - { - label: '涓撳', name: 'ExpertId', labtype: 'combox', hidden: false, data: JSON.parse(Expert), cwidth: '5%', cccwidth: '8%' - }, - - - ]; - - function ExpertDispatch(orderid, orderNo) { - OpenWindow("涓撳娲惧伐", "400px", "600px", "/Expert/Dispatch/?orderid=" + orderid); - } - - - - - var _afterSave = function (result) { - if (result) { - toastr.success("淇濆瓨鎴愬姛"); - } else { - toastr.error("淇濆瓨澶辫触"); - } - } - - var _afterDel = function (result) { - if (result) { - toastr.success("鍒犻櫎鎴愬姛"); - } else { - /**/ - toastr.error("鍒犻櫎鎴愬姛"); - /**/ - } -} - </script> -} - -@section footerScripts{ - <script type="text/javascript"> - - - - - - </script> -} diff --git a/zhengcaioa/zhengcaioa/Views/Expert/Index.cshtml b/zhengcaioa/zhengcaioa/Views/Expert/Index.cshtml deleted file mode 100644 index e05866f..0000000 --- a/zhengcaioa/zhengcaioa/Views/Expert/Index.cshtml +++ /dev/null @@ -1,138 +0,0 @@ -锘緻{ - ViewBag.Title = "Expert"; - Layout = "~/Views/Shared/_Layout_Search.cshtml"; -} -@section headerStyle{ - <script type="text/javascript"> - - - var expertType = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.expertType))'; - var Province = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Province))'; - var level = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.level))'; - var ReviewItem = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.ReviewItem))'; - - dataCol = [ - { label: 'id', name: 'Id', labtype: 'txt', hidden: true }, - - { - label: '濮撳悕', name: 'Name', labtype: 'txt', hidden: false, - formatter: function (cellvalue, options, rowObject) { - return "<a onclick=\"OpenWindow('" + cellvalue + "','98%','100%', '/expert/Edit?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>"; - } - }, - { label: '涓撳璇佸彿', name: 'CertiNumber', labtype: 'txt', hidden: false }, - { label: '涓昏璇勫鍝佺洰', name: 'ReviewItem', labtype: 'txt', hidden: true }, - { label: '涓撳绛夌骇', name: 'LevelName', labtype: 'txt', hidden: false }, - { label: '鑱旂郴鐢佃瘽', name: 'Phone1', labtype: 'txt', hidden: false }, - { label: '鍚堜綔娆℃暟', name: 'Level', labtype: 'txt', hidden: true }, - { - label: '涓撳璇�', name: 'CertiFont', align: "center", sortable: false, editable: true,// labtype: 'txt', hidden: false - formatter: function (cellvalue, options, rowObject) { - return '<img src="' + rowObject.CertiFont + '" style="width:50px;height:30px;" />' + - '<img src="' + rowObject.CertiBack + '" style="width:50px;height:30px;" />'; - } - }, - { - label: '鑱岀О璇�', name: 'TitileCerti', align: "center", sortable: false, editable: true, //labtype: 'txt', hidden: false, - formatter: function (cellvalue, options, rowObject) { - // return '<img src="' + cellvalue + '" style="width:50px;height:30px;" />'; - return '<img src="' + rowObject.TitileCerti + '" style="width:50px;height:30px;" />'; - } - }, - { - label: '鍚堜綔璁板綍', name: 'RecStatus', align: "center", align: "center", sortable: false, labtype: 'txt', - formatter: function (cellvalue, options, rowObject) { - return '<a href="javascript:void(0)" onclick="Promote(\'' + rowObject.Id + '\');"> <span style="background: #ECF3FF;"> 鎺ㄥ箍 </span> </a > ' - + ' <a href="javascript:void(0)" onclick="PromoteRecord(\'' + rowObject.Id + '\');"> <span style="background: #ECF3FF;"> 璁板綍 </span></a>' - } - }, - - // { label: '鎿嶄綔', name: '', labtype: 'txt', hidden: false }, - - { label: '鐘舵��', name: 'RecStatus', labtype: 'txt', hidden: true }, - { label: '鍒涘缓浜�', name: 'Creater', labtype: 'txt', hidden: true }, - { label: '鍒涘缓鏃堕棿', name: 'Createtime', labtype: 'txt', hidden: true }, - { label: '淇敼浜�', name: 'Modifier', labtype: 'txt', hidden: true }, - { label: '淇敼鏃堕棿', name: 'Modifytime', labtype: 'txt', hidden: true } - - ]; - dataUrl = "/Expert/GetList"; - searchCol = [ - { label: '褰曞叆鏃堕棿', name: 'Createtime', labtype: 'datearea', hidden: false }, - { label: '鐪�', name: 'Province', labtype: 'combox', hidden: false, data: JSON.parse(Province), cwidth: '5%', cccwidth: '6.5%' }, - { label: '甯�', name: 'City', labtype: 'combox', hidden: false, data: JSON.parse('[]'), cwidth: '1%', cccwidth: '7%' }, - { label: '涓撳濮撳悕', name: 'Name', labtype: 'txt', hidden: false }, - { label: '涓撳绫诲瀷', name: 'ExpertType', labtype: 'combox', hidden: false, data: JSON.parse(expertType)/*,cwidth: '5%', cccwidth: '28%' */ }, - { label: '璇勫鍝佺洰', name: 'ReviewItem', labtype: 'combox', hidden: false, data: JSON.parse(ReviewItem) }, - { label: '涓撳绾у埆', name: 'Level', labtype: 'combox', hidden: false, data: JSON.parse(level) }, - { label: '涓撳璇佸彿', name: 'CertiNumber', labtype: 'txt', hidden: false }, - { label: '鑱旂郴鐢佃瘽', name: 'Phone1', labtype: 'txt', hidden: false }, - { label: '鍚堜綔娆℃暟>=', name: 'JoinCount', labtype: 'txt', hidden: false } - ]; - - var _pageAdd = function () { - OpenWindow("鏂板涓撳", "98%", "90%", "/Expert/Edit/"); - } - - //鏂板鎺ㄥ箍璁板綍 - function Promote(id) { - OpenWindow("鎺ㄥ箍璁板綍", "400px", "300px", "/Expert/EditPromote/?experId="+ id); - } - - //鎺ㄥ箍璁板綍 - function PromoteRecord(id) { - // window.location.href = "/ExpertPromote/Index/?experId=" + id; - OpenWindow("鎺ㄥ箍璁板綍", "98%", "90%", "/Expert/Promote/?experId=" + id); - } - var _afterSave = function (result) { - if (result) { - toastr.success("淇濆瓨鎴愬姛"); - } else { - toastr.error("淇濆瓨澶辫触"); - } - } - - var _afterDel = function (result) { - if (result) { - toastr.success("鍒犻櫎鎴愬姛"); - } else { - /**/ - toastr.error("鍒犻櫎鎴愬姛"); - /**/ - } - } - - - $(function () { - $("#PBSProvince").change(function () { - let Province = $("#PBSProvince").val(); - $.ajax({ - type: "GET", - url: "/Project/getCity?shengid=" + Province, - dataType: "json", - global: false, - data: "", - success: function (data) { - - var city = $("#PBSCity"); - city.find('option').remove(); - var aaa = '<option value="" hassubinfo="true">璇烽�夋嫨</option>'; - city.append(aaa); - if (data.length > 0) { - for (var i = 0; i < data.length; i++) { - - var o = '<option value="' + data[i].CodeId + '" hassubinfo="true">' + data[i].Name + '</option>'; - city.append(o); - } - } - $("#PBSCity").trigger('chosen:updated');//鏇存柊閫夐」 - }, - error: function () { } - }); - }); - - - }); - </script> -} - diff --git a/zhengcaioa/zhengcaioa/Views/Expert/Promote.cshtml b/zhengcaioa/zhengcaioa/Views/Expert/Promote.cshtml deleted file mode 100644 index 2e09375..0000000 --- a/zhengcaioa/zhengcaioa/Views/Expert/Promote.cshtml +++ /dev/null @@ -1,72 +0,0 @@ -锘緻model DTO.ExpertPromoteDTO -@using DTO; -@using zhengcaioa.Models; -@{ - // List<PltUser> Users = ViewData["users"] as List<PltUser>; - string experId = ViewData["experId"] as string; -} -@{ - ViewBag.Title = "涓撳鎺ㄥ箍璁板綍"; - Layout = "~/Views/Shared/_Layout_Search.cshtml"; -} - -@section headerStyle{ - <script type="text/javascript"> - var Users = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewData["users"]))'; - var searchIn = { Createtime: "", ExpertId: "@experId", Creater:""}; - dataCol = [ - { label: 'id', name: 'Id', labtype: 'txt', hidden: true }, - //{ label: '缂栧彿', name: 'SN', labtype: 'txt', hidden: false }, - { label: '鎺ㄥ箍鏃堕棿', name: 'PromoteDate', labtype: 'txt', hidden: false }, - // { label: '涓撳', name: 'Name', labtype: 'txt', hidden: false }, - //{ label: '涓撳璇佸彿', name: 'CertiNumber', labtype: 'txt', hidden: false }, - { label: '鍐呭', name: 'Content', labtype: 'txt', hidden: false }, - // { label: '璁板綍浜�', name: 'creater', labtype: 'txt', hidden: false }, - - { label: '鐘舵��', name: 'RecStatus', labtype: 'txt', hidden: true }, - { label: '鍒涘缓浜�', name: 'Creater', labtype: 'txt', hidden: true }, - { label: '鍒涘缓鏃堕棿', name: 'Createtime', labtype: 'txt', hidden: true }, - { label: '淇敼浜�', name: 'Modifier', labtype: 'txt', hidden: true }, - { label: '淇敼鏃堕棿', name: 'Modifytime', labtype: 'txt', hidden: true } - - ]; - dataUrl = "/Expert/GetPromoteList/?ExpertId=" + "@experId"; - searchCol = [ - // { label: '涓撳id', name: 'ExpertId', labtype: 'txt', hidden: true}, - { label: '褰曞叆鏃堕棿', name: 'Createtime', labtype: 'datearea', hidden: false }, - { label: '璁板綍浜�', name: 'Creater', labtype: 'combox', hidden: false, data: JSON.parse(Users), cwidth: '5%', cccwidth: '6.5%' } - - ]; - - var _afterSave = function (result) { - if (result) { - toastr.success("淇濆瓨鎴愬姛"); - } else { - toastr.error("淇濆瓨澶辫触"); - } - } - - var _afterDel = function (result) { - if (result) { - toastr.success("鍒犻櫎鎴愬姛"); - } else { - /**/ - toastr.error("鍒犻櫎鎴愬姛"); - /**/ - } - } - - @*$(function () { - $("#PBSExpertId").val("@experId"); - let parent = $("#PBSExpertId").parent(); - $(parent).css("display", "none"); - let ele = $("label:contains('涓撳id')"); - if (ele !== undefined) { - $(ele).css("display", "none"); - } - _pageSeach(); - })*@ - - </script> -} - diff --git a/zhengcaioa/zhengcaioa/Views/ExpertsApply/ExpertsApply.cshtml b/zhengcaioa/zhengcaioa/Views/ExpertsApply/ExpertsApply.cshtml deleted file mode 100644 index 6765800..0000000 --- a/zhengcaioa/zhengcaioa/Views/ExpertsApply/ExpertsApply.cshtml +++ /dev/null @@ -1,980 +0,0 @@ -锘緻model DTO.ExpertDTO -@using DTO; -@using zhengcaioa.Models; -@{ - List<Area> Province = ViewData["Province"] as List<Area>; //鐪� - List<Area> City = ViewData["City"] as List<Area>; //甯� - List<SysCodeDtl> Sex = ViewData["sex"] as List<SysCodeDtl>; //瀹㈡埛绫诲瀷 - //List<SysCodeDtl> InfoSource = ViewData["InfoSource"] as List<SysCodeDtl>; //瀹㈡埛鏉ユ簮 - //List<SysCodeDtl> expertType = ViewData["expertType"] as List<SysCodeDtl>; //涓撳绫诲瀷 - //List<SysCodeDtl> level = ViewData["level"] as List<SysCodeDtl>; //涓撳绛夌骇 - List<SysCodeDtl> ReviewItem = ViewData["ReviewItem"] as List<SysCodeDtl>; //璇勫鍝佺洰 - -} -@{ - Layout = null; -} - -<!DOCTYPE html> -<html> -<head> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0"> - <meta name="description" content=""> - <meta name="author" content="ThemeBucket"> - <title>@(SiteConfig.SiteName)</title> - <link href="~/css/bootstrap.min.css" rel="stylesheet"> - <link href="~/css/font-awesome.min.css" rel="stylesheet"> - <link href="~/css/animate.min.css" rel="stylesheet"> - - @*<link href="~/css/plugins/iCheck/custom.css" rel="stylesheet">*@ - <link href="~/css/style.min.css" rel="stylesheet"> - <link href="~/css/plugins/chosen/chosen.css?v=7" rel="stylesheet"> - @*<link href="~/js/plugins/layer/skin/layer.css" rel="stylesheet">*@ - @*<link href="~/css/plugins/datapicker/datepicker3.css" rel="stylesheet">*@ - <link href="~/css/style.min.css" rel="stylesheet"> - <link href="~/css/plugins/toastr/toastr.min.css" rel="stylesheet" /> - <link href="~/css/plugins/webuploader/webuploader.css" rel="stylesheet" /> - - <style type="text/css"> - .webuploader-pick { - position: relative; - display: inline-block; - cursor: pointer; - background: #00b7ee; - padding: 8px 14px 7px 14px; - color: #fff; - text-align: center; - border-radius: 3px; - overflow: hidden; - } - - div.clearfix > label { - padding-top: 8px; - } - - .chosen-container { - border-radius: 1px; - border: 1px solid #e5e6e7; - } - - .col-md-1.control-label { - padding-right: 0px; - font-weight: 400; - } - - .img-box { - height: 120px; - width: 120px; - float: left; - padding-left: 0px !important; - padding-right: 20px; - /*border:1px solid #c3cbe5;*/ - } - - .img-box img { - height: 80px; - width: 80px; - } - - .img-box p { - width: 80px; - text-align: center; - } - - .img-row { - height: 80px !important; - padding-right: 2px !important; - } - - .img-row label { - height: 30px; - line-height: 80px; - } - </style> - - <!-- jqgrid--> - <script language="javascript" src="~/js/jquery.min.js" type="text/javascript"></script> - <script src="~/js/bootstrap.min.js"></script> - - <!--瀹瑰櫒--> - @*<script language="javascript" src="~/js/datehelper.js" type="text/javascript"></script>*@ - @*<script language="javascript" src="~/js/plugins/query/jquery.query-object.js" type="text/javascript"></script>*@ - @*<script language="javascript" src="~/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>*@ - <script language="javascript" src="~/js/chosen_v1.8.7/chosen.jquery.js" type="text/javascript"></script> - @*<script language="javascript" src="~/js/plugins/datapicker/bootstrap-datepicker.js" type="text/javascript"></script>*@ - <script language="javascript" src="~/js/plugins/layer/layer.js" type="text/javascript"></script> - @*<script src="~/js/plugins/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>*@ - @*<script src="~/js/plugins/jqgrid/i18n/grid.locale-cn.js" type="text/javascript"></script>*@ - <script src="~/js/plugins/toastr/toastr.min.js" type="text/javascript"></script> - <script src="~/js/plugins/webuploader/webuploader.min.js"></script> - - <script language="javascript" src="~/js/common-layout.js" type="text/javascript"></script> - <script src="~/js/plugins/layer/laydate/laydate.js" type="text/javascript"></script> - <script src="~/js/imgUpload.js"></script> - @*<script src="~/js/plugins/iTexbox/itextbox.js" type="text/javascript"></script>*@ - @*<script src="~/js/plugins/iuploader/iuploader.js"></script>*@ - <script src="~/js/TUJS.js"></script> -</head> -<body class="gray-bg" style="overflow:auto"> - <form id="formtest"> - <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;"> - <div class="row"> - <div class="col-sm-12"> - <div class="ibox float-e-margins"> - <div class="ibox-title"> - <h5> <i class="fa fa-list"></i> 鏂板涓撳</h5> - </div> - <div id="div_content" class="ibox-content" style="background-color:white;"> - <div class="row"> - <div class="clearfix layer-area" style="padding-bottom:15px;"> - @*<label class="text-right col-sm-1 col-md-1 control-label">淇℃伅鏉ユ簮<i class="red">*</i></label> - <div class="col-sm-2 col-md-2"> - <select id="InfoSource" class="form-control" name="InfoSource" data-placeholder="閫夋嫨 搴忓垪 ..." style="font-weight:normal;"> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - @foreach (var item in InfoSource) - { - @if (!item.CodeSn.Equals(Model.InfoSource)) - { - <option value="@item.CodeSn" hassubinfo="true"> - @item.Comments - </option> - } - else - { - <option value="@item.CodeSn" hassubinfo="true" selected="selected"> - @item.Comments - </option> - } - - } - } - - </select> - <input type="hidden" id="Id" name="Id" value="@Model.Id" /> - </div>*@ - - - @*<label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">涓撳绫诲瀷<i class="red">*</i></label> - <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <select id="ExpertType" class="form-control" name="expertType" data-placeholder="閫夋嫨 搴忓垪 ..."> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - @foreach (var item in expertType) - { - @if (!item.CodeSn.Equals(Model.ExpertType)) - { - <option value="@item.CodeSn" hassubinfo="true"> - @item.Comments - </option> - } - else - { - <option value="@item.CodeSn" hassubinfo="true" selected="selected"> - @item.Comments - </option> - } - - } - } - - </select> - - </div>*@ - <label class="text-right col-sm-1 col-md-1 control-label">涓撳濮撳悕<i class="red">*</i></label> - <div class="col-sm-2 col-md-2"> - <input class="form-control" label="璇︾粏鍦板潃" name="Name" id="Name" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Name" autocomplete="off"> - </div> - <label class="text-right col-sm-1 col-md-1 control-label">鎬у埆<i class="red">*</i></label> - <div class="col-sm-2 col-sm-2" grouptype="Vdata"> - <select id="Sex" class="form-control" name="Sex" data-placeholder="閫夋嫨 搴忓垪 ..." style="font-weight:normal;"> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - @foreach (var item in Sex) - { - @if (!item.CodeId.Equals(Model.Sex)) - { - <option value="@item.CodeId" hassubinfo="true"> - @item.Comments - </option> - } - else - { - <option value="@item.CodeId" hassubinfo="true" selected="selected"> - @item.Comments - </option> - } - - } - } - - </select> - - </div> - - - </div> - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">璇勫鍝佺洰</label> - <div class="col-sm-11 col-md-11" grouptype="Vdata"> - <select id="ReviewItem" class="form-control" name="ReviewItem" multiple data-placeholder="閫夋嫨 搴忓垪 ..."> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - @foreach (var item in ReviewItem) - { - @if (Model.ReviewItem != null && Model.ReviewItem.Split(',').Contains(item.CodeSn)) - { - <option value="@item.CodeSn" hassubinfo="true" selected="selected"> - @item.Comments - </option> - } - else - { - <option value="@item.CodeSn" hassubinfo="true"> - @item.Comments - </option> - } - - } - - - </select> - - - - - </div> - </div> - - <div class="clearfix layer-area" style="padding-bottom:15px;"> - @*<label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">涓撳绾у埆<i class="red">*</i></label> - <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <select id="Level" class="form-control" name="Level" data-placeholder="閫夋嫨 搴忓垪 ..."> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - @foreach (var item in level) - { - @if (!item.CodeSn.Equals(Model.Level)) - { - <option value="@item.CodeSn" hassubinfo="true"> - @item.Comments - </option> - } - else - { - <option value="@item.CodeSn" hassubinfo="true" selected="selected"> - @item.Comments - </option> - } - - } - - - </select> - - </div>*@ - - <label class="text-right col-sm-1 col-md-1 control-label">韬唤璇佸彿<i class="red">*</i></label> - <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <input class="form-control" label="韬唤璇佸彿" name="IdCard" id="IdCard" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.IdCard" autocomplete="off"> - </div> - - <label class="text-right col-sm-1 col-md-1 control-label">涓撳璇佸彿</label> - <div class="col-sm-2 col-md-2" grouptype="Vdata"> - <input class="form-control" label="涓撳璇佸彿" name="CertiNumber" id="CertiNumber" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.CertiNumber"> - </div> - - </div> - - - - - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label class="text-right col-sm-1 col-md-1 control-label">閫氫俊鍦板潃</label> - <div class="col-sm-5 col-md-5"> - <input class="form-control" label="閫氫俊鍦板潃" name="Address" id="Address" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Address" autocomplete="off"> - </div> - - <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">鎵�灞炲尯鍩�</label> - <div class="col-sm-2 col-md-2"> - <div style="width:110px;float:left;"> - <select id="Province" class="form-control" name="Province" data-placeholder="閫夋嫨 搴忓垪 ..." style="font-weight:normal;"> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - @foreach (var item in Province) - { - @if (!item.CodeId.Equals(Model.Province)) - { - <option value="@item.CodeId" hassubinfo="true"> - @item.Name - </option> - } - else - { - <option value="@item.CodeId" hassubinfo="true" selected="selected"> - @item.Name - </option> - } - - - } - - </select> - </div> - <div style="width:110px;float:left;"> - <select id="City" class="form-control" name="City" data-placeholder="閫夋嫨 搴忓垪 ..." style="font-weight:normal;"> - <option value="" hassubinfo="true">璇烽�夋嫨</option> - @foreach (var item in City) - { - @if (!item.CodeId.Equals(Model.City)) - { - <option value="@item.CodeId" hassubinfo="true"> - @item.Name - </option> - } - else - { - <option value="@item.CodeId" hassubinfo="true" selected="selected"> - @item.Name - </option> - } - - - } - - </select> - </div> - </div> - - - - <label class="text-right col-sm-1 col-md-1 control-label">閭斂缂栫爜</label> - <div class="col-sm-2 col-md-2"> - <input class="form-control" label="閭斂缂栫爜" name="Postal" id="Postal" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Postal" autocomplete="off"> - </div> - - - </div> - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label class="text-right col-sm-1 col-md-1 control-label">鑱旂郴鐢佃瘽1</label> - <div class="col-sm-2 col-md-2"> - <input class="form-control" label="鑱旂郴鐢佃瘽1" name="Phone1" id="Phone1" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Phone1" autocomplete="off"> - </div> - - <label class="text-right col-sm-1 col-md-1 control-label">鑱旂郴鐢佃瘽2</label> - <div class="col-sm-2 col-md-2"> - <input class="form-control" label="鑱旂郴鐢佃瘽2" name="Phone2" id="Phone2" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Phone2" autocomplete="off"> - </div> - - <label class="text-right col-sm-1 col-md-1 control-label">QQ</label> - <div class="col-sm-2 col-md-2"> - <input class="form-control" label="QQ鍙�" name="Qq" id="Qq" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Qq" autocomplete="off"> - </div> - - <label class="text-right col-sm-1 col-md-1 control-label">寰俊</label> - <div class="col-sm-2 col-md-2"> - <input class="form-control" label="寰俊" name="Wechat" id="Wechat" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Wechat" autocomplete="off"> - </div> - - </div> - - - @*<div class="ibox-title"> - <h5> <i class="fa fa-list"></i> 瀹㈡埛璧勬枡</h5> - </div>*@ - <style> - .divImg { - height: 80px; - width: 80px; - } - </style> - - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <div class="col-sm-1 col-md-1 img-row"> - <label class="text-right control-label">涓撳璇佷功</label> - </div> - <div class="col-sm-6 col-md-6"> - <div class="col-sm-2 col-md-2 img-box"> - <div id="frontImg" class="frontImg"></div> - <input type="hidden" id="CertiFont" name="CertiFont" value="@Model.CertiFont" /> - <p>涓婁紶姝i潰</p> - </div> - <div class="col-sm-2 col-md-2 img-box"> - <div id="BackImg" class="BackImg"></div> - <input type="hidden" id="CertiBack" name="CertiBack" value="@Model.CertiBack" /> - <p>涓婁紶鑳岄潰</p> - </div> - </div> - - </div> - - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <div class="col-sm-1 col-md-1 img-row"> - <label class="text-right control-label">鑱岀О璇佷功</label> - </div> - - <div class="col-sm-2 col-md-2 img-box"> - <div id="TitileImg" class="TitileImg"></div> - <input type="hidden" id="TitileCerti" name="TitileCerti" value="@Model.TitileCerti" /> - <p>涓婁紶鑱岀О璇佷功</p> - </div> - <div class="col-sm-2 col-md-2 img-box"> - <div id="TitileImg1" class="TitileImg1"></div> - <input type="hidden" id="TitileCerti1" name="TitileCerti1" value="@Model.TitileCerti1" /> - <p>涓婁紶鑱岀О璇佷功</p> - </div> - <div class="col-sm-2 col-md-2 img-box"> - <div id="TitileImg2" class="TitileImg2"></div> - <input type="hidden" id="TitileCerti2" name="TitileCerti2" value="@Model.TitileCerti2" /> - <p>涓婁紶鑱岀О璇佷功</p> - </div> - <div class="col-sm-2 col-md-2 img-box"> - <div id="TitileImg3" class="TitileImg3"></div> - <input type="hidden" id="TitileCerti3" name="TitileCerti3" value="@Model.TitileCerti3" /> - <p>涓婁紶鑱岀О璇佷功</p> - </div> - <div class="col-sm-2 col-md-2 img-box"> - <div id="TitileImg4" class="TitileImg4"></div> - <input type="hidden" id="TitileCerti4" name="TitileCerti4" value="@Model.TitileCerti4" /> - <p>涓婁紶鑱岀О璇佷功</p> - </div> - @*</div> - <div class="clearfix layer-area" style="padding-bottom:15px;"> - <div class="col-sm-1 col-md-1 img-row"> - - </div>*@ - <div class="col-sm-2 col-md-2 img-box"> - <div id="TitileImg5" class="TitileImg5"></div> - <input type="hidden" id="TitileCerti5" name="TitileCerti5" value="@Model.TitileCerti5" /> - <p>涓婁紶鑱岀О璇佷功</p> - </div> - - - <div class="col-sm-2 col-md-2 img-box"> - <div id="TitileImg6" class="TitileImg6"></div> - <input type="hidden" id="TitileCerti6" name="TitileCerti6" value="@Model.TitileCerti6" /> - <p>涓婁紶鑱岀О璇佷功</p> - </div> - <div class="col-sm-2 col-md-2 img-box"> - <div id="TitileImg7" class="TitileImg7"></div> - <input type="hidden" id="TitileCerti7" name="TitileCerti7" value="@Model.TitileCerti7" /> - <p>涓婁紶鑱岀О璇佷功</p> - </div> - <div class="col-sm-2 col-md-2 img-box"> - <div id="TitileImg8" class="TitileImg8"></div> - <input type="hidden" id="TitileCerti8" name="TitileCerti8" value="@Model.TitileCerti8" /> - <p>涓婁紶鑱岀О璇佷功</p> - </div> - <div class="col-sm-2 col-md-2 img-box"> - <div id="TitileImg9" class="TitileImg9"></div> - <input type="hidden" id="TitileCerti9" name="TitileCerti9" value="@Model.TitileCerti9" /> - <p>涓婁紶鑱岀О璇佷功</p> - </div> - <div class="col-sm-2 col-md-2 img-box"> - <div id="TitileImg10" class="TitileImg10"></div> - <input type="hidden" id="TitileCerti10" name="TitileCerti10" value="@Model.TitileCerti10" /> - <p>涓婁紶鑱岀О璇佷功</p> - </div> - - </div> - - <div class="clearfix layer-area" style="padding-bottom:15px;"> - - <label class="text-right col-sm-1 col-md-1 control-label">涓撳绠�浠�</label> - <div class="col-sm-11 col-md-11"> - <textarea id="Remark" name="Remark" class="form-control bt" style="resize:none;overflow-y:hidden; min-height:80px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'">@Model.Remark </textarea> - </div> - - </div> - - </div> - </div> - </div> - </div> - </div> - </div> - <div class="wrapper wrapper-content" style="margin-top:0px"></div> - <div class="ibox-content" id="top" style="z-index:100; position:fixed; height:50px; width:100%;bottom:0; text-align: right; padding-top:8px "> - <div class="" style="float:right;" data-bootstro-width="500px" data-bootstro-content="鍔熻兘鎸夐挳锛氣�滀繚瀛樷�濓紝鈥滃垹闄も��"> - - - <a class="btn btn-success" href="javascript:void(0)" onclick="saveExpert();" style="margin-left:4px; border-radius:4px;"> - <i class="glyphicon glyphicon-ok"></i> <span class="bold">鎻愪氦</span> - </a> - </div> - </div> - - </form> - <script type="text/javascript"> - var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2 - 95; - $("#div_content").height(hh); - - toastr.options = { - "closeButton": true, - "debug": false, - "progressBar": true, - "positionClass": "toast-bottom-right", - "onclick": null, - "showDuration": "300", - "hideDuration": "600", - "timeOut": "4500", - "extendedTimeOut": "600", - "showEasing": "swing", - "hideEasing": "linear", - "showMethod": "fadeIn", - "hideMethod": "fadeOut" - }; - - var imgs = { - BackImg: '', - BackImg: '', - TitileImg: '', - TitileImg1: '', - TitileImg2: '', - TitileImg3: '', - TitileImg4: '', - TitileImg5: '', - TitileImg6: '', - TitileImg7: '', - TitileImg8: '', - TitileImg9: '', - TitileImg10: '', - - } - - var Remark = document.getElementById("Remark"); - - Remark.style.height = Remark.scrollHeight + 'px'; - - var imgPath = "@Url.Content("~/UploadFile/")"; - - //鍒濆鍖栧浘鐗囦笂浼燿iv - new DragImgUpload("#frontImg", { - callback: function (files) { - imgs.frontImg = imgUploadCallback(files); - if (imgs.frontImg !== "") { - $("#CertiFont").val(imgPath + imgs.frontImg); - } - } - }); - new DragImgUpload("#BackImg", { - callback: function (files) { - imgs.BackImg = imgUploadCallback(files); - if (imgs.BackImg !== "") { - $("#CertiBack").val(imgPath + imgs.BackImg); - } - } - }); - new DragImgUpload("#TitileImg", { - callback: function (files) { - imgs.TitileImg = imgUploadCallback(files); - if (imgs.TitileImg !== "") { - $("#TitileCerti").val(imgPath + imgs.TitileImg); - $("#TitileCerti1").parent().show(); - } - - } - }); - new DragImgUpload("#TitileImg1", { - callback: function (files) { - imgs.TitileImg1 = imgUploadCallback(files); - if (imgs.TitileImg1!== "") { - $("#TitileCerti1").val(imgPath + imgs.TitileImg1); - $("#TitileCerti2").parent().show(); - } - - } - }); - new DragImgUpload("#TitileImg2", { - callback: function (files) { - imgs.TitileImg2 = imgUploadCallback(files); - if (imgs.TitileImg2 !== "") { - $("#TitileCerti2").val(imgPath + imgs.TitileImg2); - $("#TitileCerti3").parent().show(); - } - - } - }); - new DragImgUpload("#TitileImg3", { - callback: function (files) { - imgs.TitileImg3 = imgUploadCallback(files); - if (imgs.TitileImg3 !== "") { - $("#TitileCerti3").val(imgPath + imgs.TitileImg3); - $("#TitileCerti4").parent().show(); - } - - } - }); - new DragImgUpload("#TitileImg4", { - callback: function (files) { - imgs.TitileImg4 = imgUploadCallback(files); - if (imgs.TitileImg4 !== "") { - $("#TitileCerti4").val(imgPath + imgs.TitileImg4); - $("#TitileCerti5").parent().show(); - } - - } - }); - new DragImgUpload("#TitileImg5", { - callback: function (files) { - imgs.TitileImg5 = imgUploadCallback(files); - if (imgs.TitileImg5 !== "") { - $("#TitileCerti5").val(imgPath + imgs.TitileImg5); - $("#TitileCerti6").parent().show(); - } - - } - }); - new DragImgUpload("#TitileImg6", { - callback: function (files) { - imgs.TitileImg6 = imgUploadCallback(files); - if (imgs.TitileImg6 !== "") { - $("#TitileCerti6").val(imgPath + imgs.TitileImg6); - $("#TitileCerti7").parent().show(); - } - - } - }); - new DragImgUpload("#TitileImg7", { - callback: function (files) { - imgs.TitileImg7 = imgUploadCallback(files); - if (imgs.TitileImg7 !== "") { - $("#TitileCerti7").val(imgPath + imgs.TitileImg7); - $("#TitileCerti8").parent().show(); - } - - } - }); - new DragImgUpload("#TitileImg8", { - callback: function (files) { - imgs.TitileImg8 = imgUploadCallback(files); - if (imgs.TitileImg8 !== "") { - $("#TitileCerti8").val(imgPath + imgs.TitileImg8); - $("#TitileCerti9").parent().show(); - } - - } - }); - new DragImgUpload("#TitileImg9", { - callback: function (files) { - imgs.TitileImg9 = imgUploadCallback(files); - if (imgs.TitileImg9 !== "") { - $("#TitileCerti9").val(imgPath + imgs.TitileImg9); - $("#TitileCerti10").parent().show(); - } - - } - }); - new DragImgUpload("#TitileImg10", { - callback: function (files) { - imgs.TitileImg10 = imgUploadCallback(files); - if (imgs.TitileImg10 !== "") { - $("#TitileCerti10").val(imgPath + imgs.TitileImg10); - } - - } - }); - - $(function () { - - $("#TitileCerti1").parent().hide(); - $("#TitileCerti2").parent().hide(); - $("#TitileCerti3").parent().hide(); - $("#TitileCerti4").parent().hide(); - $("#TitileCerti5").parent().hide(); - $("#TitileCerti6").parent().hide(); - $("#TitileCerti7").parent().hide(); - $("#TitileCerti8").parent().hide(); - $("#TitileCerti9").parent().hide(); - $("#TitileCerti10").parent().hide(); - - imgs.frontImg = $.trim( $("#CertiFont").val() ); - imgs.BackImg = $.trim( $("#CertiBack").val()); - imgs.TitileImg = $.trim($("#TitileCerti").val()); - imgs.TitileImg1 = $.trim($("#TitileCerti1").val()); - imgs.TitileImg2 = $.trim($("#TitileCerti2").val()); - imgs.TitileImg3 = $.trim($("#TitileCerti3").val()); - imgs.TitileImg4 = $.trim($("#TitileCerti4").val()); - imgs.TitileImg5 = $.trim($("#TitileCerti5").val()); - imgs.TitileImg6 = $.trim($("#TitileCerti6").val()); - imgs.TitileImg7 = $.trim($("#TitileCerti7").val()); - imgs.TitileImg8 = $.trim($("#TitileCerti8").val()); - imgs.TitileImg9 = $.trim($("#TitileCerti9").val()); - imgs.TitileImg10 = $.trim($("#TitileCerti10").val()); - - if (imgs.frontImg !== "") { - $("#frontImg img").each(function (i) { - $(this).attr("src", imgs.frontImg); - }); - } - - if (imgs.BackImg !== "") { - - $("#BackImg img").each(function (i) { - $(this).attr("src", imgs.BackImg); - }); - } - - if (imgs.TitileImg !== "") { - $("#TitileImg img").each(function (i) { - $(this).attr("src", imgs.TitileImg); - }); - $("#TitileCerti1").parent().show(); - } - - if (imgs.TitileImg1 !== "") { - $("#TitileImg1 img").each(function (i) { - $(this).attr("src", imgs.TitileImg1); - }); - $("#TitileCerti2").parent().show(); - } - - if (imgs.TitileImg2 !== "") { - $("#TitileImg2 img").each(function (i) { - $(this).attr("src", imgs.TitileImg2); - }); - $("#TitileCerti3").parent().show(); - } - - if (imgs.TitileImg3 !== "") { - $("#TitileImg3 img").each(function (i) { - $(this).attr("src", imgs.TitileImg3); - }); - $("#TitileCerti4").parent().show(); - } - - if (imgs.TitileImg4 !== "") { - $("#TitileImg4 img").each(function (i) { - $(this).attr("src", imgs.TitileImg4); - }); - $("#TitileCerti5").parent().show(); - } - - if (imgs.TitileImg5 !== "") { - $("#TitileImg5 img").each(function (i) { - $(this).attr("src", imgs.TitileImg5); - }); - $("#TitileCerti6").parent().show(); - } - - if (imgs.TitileImg6 !== "") { - $("#TitileImg6 img").each(function (i) { - $(this).attr("src", imgs.TitileImg6); - }); - $("#TitileCerti7").parent().show(); - } - - if (imgs.TitileImg7 !== "") { - $("#TitileImg7 img").each(function (i) { - $(this).attr("src", imgs.TitileImg7); - }); - $("#TitileCerti8").parent().show(); - } - - if (imgs.TitileImg8 !== "") { - $("#TitileImg8 img").each(function (i) { - $(this).attr("src", imgs.TitileImg8); - }); - $("#TitileCerti9").parent().show(); - } - - if (imgs.TitileImg9 !== "") { - $("#TitileImg9 img").each(function (i) { - $(this).attr("src", imgs.TitileImg9); - }); - $("#TitileCerti10").parent().show(); - } - - if (imgs.TitileImg10 !== "") { - $("#TitileImg10 img").each(function (i) { - $(this).attr("src", imgs.TitileImg10); - }); - } - - - - - $("#ReviewItem").chosen({ - hide_results_on_select: false - }); - - - }); - - - - - function imgUploadCallback(files) { - var fileName = ""; - var file = files[0]; - var sendData = new FormData(); - sendData.append('img', files[0]); - $.ajax({ - type: "post", - url: "@Url.Content("~/Expert/UploadImage")", - data: sendData, - async:false, - contentType: false, - processData: false, - success: function (res) { - fileName = res;// FilePath + file.name; - //parent.layer.msg("淇敼鎴愬姛锛�"); - }, - error: function (data) { - fileName = ""; - } - }); - - return fileName; - }; - var id = '@Model.Id'; - var bUpload = false; - var bAdd = false; // 鏂板鎿嶄綔 - var fileId = ""; // 涓婁紶鏂囦欢鐢熸垚鐨処d - var bEditFile = false; // 缂栬緫鏃讹紝鏄惁鍏宠仈浜嗛檮浠� - var bDeleteFile = false; // 鍒犻櫎鎿嶄綔 - var attachment_id = 0; // 闄勪欢id - var imgLoad = new Object(); - - - - - - // 淇濆瓨宀椾綅淇℃伅 - var saveExpert = function () { - - if ($("#Name").val() == '') { - toastr.warning("涓撳濮撳悕涓嶈兘涓虹┖"); - return; - }; - if (Verify.isNull($("#Province").val()) || Verify.isNull($("#City").val()) ) { - toastr.warning("鍖哄煙涓嶈兘涓虹┖"); - return; - } - if ($("#IdCard").val() == '') { - toastr.warning("韬唤璇佸彿涓嶈兘涓虹┖"); - return; - } - - - - //if ($.trim($("#ReviewItem").val()) == '') { - // toastr.warning("璇勫椤圭洰涓嶈兘涓虹┖"); - // return; - //} - - if ($("#Sex").val() == '') { - toastr.warning("鎬у埆涓嶈兘涓虹┖"); - return; - }; - //var data = { id: $("#Id").val(), StartTime:$("#StartTime").val(), Sheng: $("#Sheng").val(), job_level: $("#Job_level").val().toString(), ExistsAttachment: fileId != "" } - $.ajax({ - type: "POST", - url: "/ExpertsApply/ExpertsApplySave?ReviewItemSelect=" + $("#ReviewItem").val(), - dataType: "json", - global: false, - data: $('form').serializeArray(), - success: function (data) { - - - - if (data.Result) { - // parent._afterSave(true); - - //window.location = "/Project/add?id=" + data.ReturnID; - layer.msg('鎴愬姛淇濆瓨', { icon: 5 }, function () { - try { - _pageAutoClose();//鑷姩鍏抽棴椤甸潰鏂规硶 - } - catch (err) { - try { - parent._CloseTab1("/ExpertsApply/ExpertsApply"); - } - catch (err) { - - var browserName = navigator.appName; - if (browserName == "Netscape") { - window.location.href = "about:blank";聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽//鍏抽敭鏄繖鍙ヨ瘽 - window.close(); - } else if (browserName == "Microsoft Internet Explorer") { - window.opener = null; - window.close(); - } - - } - } - }); - - - - } - else { - // toastr.error("澶辫触"); - layer.msg(data.Message, { icon: 5 }); - } - - }, - error: function () { - - - layer.msg('澶辫触', { icon: 5 }); - } - }); - } - - - $("#Province").change(function () { - - var sheng = $("#Province").val(); - $.ajax({ - type: "GET", - url: "/Project/getCity?shengid=" + sheng, - dataType: "json", - global: false, - data: "", - success: function (data) { - - var city = $("#City"); - city.find('option').remove(); - var aaa = '<option value="" hassubinfo="true">璇烽�夋嫨</option>'; - city.append(aaa); - if (data.length > 0) { - for (var i = 0; i < data.length; i++) { - - var o = '<option value="' + data[i].CodeId + '" hassubinfo="true">' + data[i].Name + '</option>'; - city.append(o); - } - } - }, - error: function () { - - - parent.layer.msg('澶辫触', { icon: 5 }); - } - }); - }); - - - - - - function addresschushi() { - var sheng = $.trim($("#Province").find("option:selected").text()); - var city = $.trim($("#City").find("option:selected").text()); - var Address = $("#Address"); - - Address.val(sheng + city + AreaId.replace("璇烽�夋嫨", "")); - } - - if ($("#Id").val() == '') { - - addresschushi(); - } - - - function _pageAutoClose() { - parent.window._reloadPageData(); - var index = parent.layer.getFrameIndex(window.name); - parent.layer.isRefresh = true; - parent.layer.closeAll('loading'); - parent.layer.close(index); - return false; - } - </script> -</body> -</html> \ No newline at end of file diff --git a/zhengcaioa/zhengcaioa/Views/ExpertsApply/Index.cshtml b/zhengcaioa/zhengcaioa/Views/ExpertsApply/Index.cshtml deleted file mode 100644 index 32db5aa..0000000 --- a/zhengcaioa/zhengcaioa/Views/ExpertsApply/Index.cshtml +++ /dev/null @@ -1,124 +0,0 @@ -锘緻{ - ViewBag.Title = "Expert"; - Layout = "~/Views/Shared/_Layout_Search.cshtml"; -} -@section headerStyle{ - <script type="text/javascript"> - - - @*var expertType = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.expertType))';*@ - var Province = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Province))'; - var ReviewItem = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.ReviewItem))'; - - dataCol = [ - { label: 'id', name: 'Id', labtype: 'txt', hidden: true }, - - { - label: '濮撳悕', name: 'Name', labtype: 'txt', hidden: false - }, - { label: '涓撳璇佸彿', name: 'CertiNumber', labtype: 'txt', hidden: false }, - { label: '涓昏璇勫鍝佺洰', name: 'ReviewItem', labtype: 'txt', hidden: true }, - { label: '涓撳绛夌骇', name: 'LevelName', labtype: 'txt', hidden: true }, - { label: '鑱旂郴鐢佃瘽', name: 'Phone1', labtype: 'txt', hidden: false }, - { label: '鍚堜綔娆℃暟', name: 'Level', labtype: 'txt', hidden: true }, - { - label: '涓撳璇�', name: 'CertiFont', align: "center", sortable: false, editable: true,// labtype: 'txt', hidden: false - formatter: function (cellvalue, options, rowObject) { - return '<img src="' + rowObject.CertiFont + '" style="width:50px;height:30px;" />' + - '<img src="' + rowObject.CertiBack + '" style="width:50px;height:30px;" />'; - } - }, - { - label: '鑱岀О璇�', name: 'TitileCerti', align: "center", sortable: false, editable: true, //labtype: 'txt', hidden: false, - formatter: function (cellvalue, options, rowObject) { - // return '<img src="' + cellvalue + '" style="width:50px;height:30px;" />'; - return '<img src="' + rowObject.TitileCerti + '" style="width:50px;height:30px;" />'; - } - }, - - - { - label: '瀹℃牳', name: '', labtype: 'txt', hidden: false, - formatter: function (cellvalue, options, rowObject) { - return "<a onclick=\"OpenWindow('涓撳瀹℃牳','98%','100%', '/expert/Edit?id=" + rowObject.Id + "')\" >瀹℃牳</a>"; - } - }, - - { label: '鐘舵��', name: 'RecStatus', labtype: 'txt', hidden: true }, - { label: '鍒涘缓浜�', name: 'Creater', labtype: 'txt', hidden: true }, - { label: '鍒涘缓鏃堕棿', name: 'Createtime', labtype: 'txt', hidden: true }, - { label: '淇敼浜�', name: 'Modifier', labtype: 'txt', hidden: true }, - { label: '淇敼鏃堕棿', name: 'Modifytime', labtype: 'txt', hidden: true } - - ]; - dataUrl = "/ExpertsApply/GetList"; - searchCol = [ - { label: '褰曞叆鏃堕棿', name: 'Createtime', labtype: 'datearea', hidden: false }, - { label: '鐪�', name: 'Province', labtype: 'combox', hidden: false, data: JSON.parse(Province), cwidth: '5%', cccwidth: '6.5%' }, - { label: '甯�', name: 'City', labtype: 'combox', hidden: false, data: JSON.parse('[]'), cwidth: '1%', cccwidth: '7%' }, - { label: '涓撳濮撳悕', name: 'Name', labtype: 'txt', hidden: false }, - //{ label: '涓撳绫诲瀷', name: 'ExpertType', labtype: 'combox', hidden: false, data: JSON.parse(expertType)/*,cwidth: '5%', cccwidth: '28%' */ }, - { label: '璇勫鍝佺洰', name: 'ReviewItem', labtype: 'combox', hidden: false, data: JSON.parse(ReviewItem)}, - //{ label: '涓撳绾у埆', name: 'Level', labtype: 'combox', hidden: false, data: JSON.parse(level) }, - { label: '涓撳璇佸彿', name: 'CertiNumber', labtype: 'txt', hidden: false }, - { label: '鑱旂郴鐢佃瘽', name: 'Phone1', labtype: 'txt', hidden: false }, - //{ label: '鍚堜綔娆℃暟>=', name: 'JoinCount', labtype: 'txt', hidden: false } - ]; - - - - - - - var _afterSave = function (result) { - if (result) { - toastr.success("淇濆瓨鎴愬姛"); - } else { - toastr.error("淇濆瓨澶辫触"); - } - } - - var _afterDel = function (result) { - if (result) { - toastr.success("鍒犻櫎鎴愬姛"); - } else { - /**/ - toastr.error("鍒犻櫎鎴愬姛"); - /**/ - } - } - - - $(function () { - $("#PBSProvince").change(function () { - let Province = $("#PBSProvince").val(); - $.ajax({ - type: "GET", - url: "/Project/getCity?shengid=" + Province, - dataType: "json", - global: false, - data: "", - success: function (data) { - - var city = $("#PBSCity"); - city.find('option').remove(); - var aaa = '<option value="" hassubinfo="true">璇烽�夋嫨</option>'; - city.append(aaa); - if (data.length > 0) { - for (var i = 0; i < data.length; i++) { - - var o = '<option value="' + data[i].CodeId + '" hassubinfo="true">' + data[i].Name + '</option>'; - city.append(o); - } - } - $("#PBSCity").trigger('chosen:updated');//鏇存柊閫夐」 - }, - error: function () { } - }); - }); - - - }); - </script> -} - -- Gitblit v1.9.1