| | |
| | | public DateTime? tousuNoticeDate { get; set; } |
| | | public string tousuIsResultnotice { get; set; } |
| | | public DateTime? tousuResultnoticeDate { get; set; } |
| | | |
| | | public string XmName { get; set; } |
| | | public string XmCode { get; set; } |
| | | public string PurchaserName { get; set; } |
| | | public string Agency { get; set; } |
| | | public decimal YishouMoney { get; set; } |
| | | public decimal WeishouMoney { get; set; } |
| | | } |
| | | |
| | | public class CooperOrderDTOSearch : SearchEntity |
| | |
| | | public string Ywjl { get; set; } |
| | | public string OrderType { get; set; } |
| | | public string OrderNo { get; set; } |
| | | public string XdTime { get; set; } |
| | | public string KhdwName { get; set; } |
| | | |
| | | |
| | | public string Khlx { get; set; } |
| | | public string HuifangStatus { get; set; } |
| | | public string PingjiaStatus { get; set; } |
| | |
| | | |
| | | public string HuiyuanId { get; set; } |
| | | |
| | | |
| | | public string XmName { get; set; } |
| | | public string XmCode { get; set; } |
| | | public string PurchaserName { get; set; } |
| | | public string Agency { get; set; } |
| | | public string KhdwName { get; set; } |
| | | public string Wenshuleixing { get; set; } |
| | | public string XdTime { get; set; } |
| | | public string Fkzt { get; set; } |
| | | public int Status { get; set; } |
| | | |
| | | } |
| | | } |
| | |
| | | |
| | | List<TComplaintShouquandaibiaoDTO> GetListComplaintShouquandaibiao(string ComplaintId); |
| | | |
| | | |
| | | |
| | | |
| | | ResultDataEntity<CooperOrderDTO> SearchByPagingWenshu(CooperOrderDTOSearch searchEntity); |
| | | |
| | | } |
| | | } |
| | |
| | | |
| | | ResultEntity ModifyStatus(string id, string userid); |
| | | |
| | | List<CooperatecustomCustomerDTO> GetList(string[] id); |
| | | List<CooperatecustomCustomerDTO> GetList(string[] id=null); |
| | | |
| | | List<CooperVisitDTO> GetListsalary(string userid, DateTime datemin, DateTime datemax); |
| | | } |
| | |
| | | public List<TChallengeletterDTO> GetListChallengeletter(string OrderId) |
| | | { |
| | | |
| | | var entity = _context.TChallengeletters.Where(x => x.Status == 1 && x.OrderId == OrderId).ToList(); |
| | | var entity = _context.TChallengeletters.Where(x =>/* x.Status == 1 && */x.OrderId == OrderId).ToList(); |
| | | |
| | | |
| | | |
| | |
| | | public List<TComplaintletterDTO> GetListComplaintletter(string OrderId) |
| | | { |
| | | |
| | | var entity = _context.TComplaintletters.Where(x => x.Status == 1 && x.OrderId == OrderId).ToList(); |
| | | var entity = _context.TComplaintletters.Where(x => /*x.Status == 1 &&*/ x.OrderId == OrderId).ToList(); |
| | | |
| | | |
| | | |
| | |
| | | _context.SaveChanges(); |
| | | return result; |
| | | } |
| | | |
| | | |
| | | |
| | | public ResultDataEntity<CooperOrderDTO> SearchByPagingWenshu(CooperOrderDTOSearch searchEntity) |
| | | { |
| | | |
| | | |
| | | |
| | | ResultDataEntity<CooperOrderDTO> data = new ResultDataEntity<CooperOrderDTO>(); |
| | | List<CooperOrderDTO> list = new List<CooperOrderDTO>(); |
| | | |
| | | |
| | | |
| | | |
| | | var listCode = (from a in _context.SysCodeDtls |
| | | join b in _context.SysCodes |
| | | on a.CodeId equals b.Id |
| | | where a.RecStatus == "A" |
| | | && b.RecStatus == "A" |
| | | select new CodeDataEntity() |
| | | { |
| | | CodeId = b.Id, |
| | | CodeTable = b.CodeTable, |
| | | CodeField = b.CodeField, |
| | | CodeSn = a.CodeSn, |
| | | Comments = a.Comments, |
| | | Contents = a.Contents, |
| | | RecStatus = a.RecStatus, |
| | | Sort = a.Sort |
| | | } |
| | | ); |
| | | DateTime XdTimestart = DateTime.Now; |
| | | DateTime XdTimeend = DateTime.Now; |
| | | if (!string.IsNullOrWhiteSpace(searchEntity.XdTime)) |
| | | { |
| | | string[] XdTimes = searchEntity.XdTime.Split("|"); |
| | | DateTime.TryParse(XdTimes[0], out XdTimestart); |
| | | DateTime.TryParse(XdTimes[1], out XdTimeend); |
| | | XdTimeend = XdTimeend.AddDays(1); |
| | | } |
| | | |
| | | |
| | | var query2 = (from a in _context.CooperOrders |
| | | |
| | | join b in _context.TChallengeletters |
| | | on a.Id equals b.OrderId |
| | | |
| | | |
| | | |
| | | join g in _context.CooperatecustomCustomers.Where(x => x.RecStatus == "A") |
| | | on a.Khdw equals g.Id |
| | | into gsss |
| | | from ggg in gsss.DefaultIfEmpty() |
| | | |
| | | join l in _context.FiOrderrecievemoneys.Where(x => x.RecStatus == "A").GroupBy(q => new { q.OrderId }).Select(q => new |
| | | { |
| | | OrderId = q.Key.OrderId, |
| | | YishouMoney = q.Sum(x => x.Recievemoney), |
| | | } |
| | | ) |
| | | on a.Id equals l.OrderId |
| | | into lsss |
| | | from lll in lsss.DefaultIfEmpty() |
| | | |
| | | where a.RecStatus == "A" && a.OrderType1 == "代拟质疑函" |
| | | && (string.IsNullOrWhiteSpace(searchEntity.XdTime) || (b.Createtime >= XdTimestart && b.Createtime <= XdTimeend)) |
| | | && (string.IsNullOrWhiteSpace(searchEntity.Wenshuleixing) || a.OrderType1 == searchEntity.Wenshuleixing.Trim()) |
| | | && (string.IsNullOrWhiteSpace(searchEntity.XmName) || b.XmName.Contains(searchEntity.XmName.Trim())) |
| | | && (string.IsNullOrWhiteSpace(searchEntity.XmCode) || b.XmCode.Contains(searchEntity.XmCode.Trim())) |
| | | && (string.IsNullOrWhiteSpace(searchEntity.PurchaserName) || b.PurchaserName.Contains(searchEntity.PurchaserName.Trim())) |
| | | //&& (string.IsNullOrWhiteSpace(searchEntity.Agency) || b.Agency.Contains(searchEntity.Agency.Trim())) |
| | | && (string.IsNullOrWhiteSpace(searchEntity.KhdwName) || ggg.Name.Contains(searchEntity.KhdwName.Trim())) |
| | | && (searchEntity.Status <= 0 || b.Status == searchEntity.Status) |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | select new CooperOrderDTO |
| | | { |
| | | Id = a.Id, |
| | | |
| | | XmCode = b.XmCode, |
| | | XmName = b.XmName, |
| | | PurchaserName = b.PurchaserName, |
| | | Agency = "", |
| | | KhdwName = ggg.Name, |
| | | XdTime = a.Createtime, |
| | | XdTimeName = a.Createtime.ToString("yyyy-MM-dd"), |
| | | YishouMoney = lll.YishouMoney ?? 0, |
| | | WeishouMoney = (a.Money ?? 0) /*- (a.Youhui ?? 0)*/ - (lll.YishouMoney ?? 0), |
| | | OrderType1 = a.OrderType1, |
| | | } |
| | | ).ToList(); |
| | | |
| | | |
| | | var query1 =(from a in _context.CooperOrders |
| | | join b in _context.TComplaintletters.Where(x => x.Status == 1) |
| | | on a.Id equals b.OrderId |
| | | |
| | | |
| | | join g in _context.CooperatecustomCustomers.Where(x => x.RecStatus == "A") |
| | | on a.Khdw equals g.Id |
| | | into gsss |
| | | from ggg in gsss.DefaultIfEmpty() |
| | | |
| | | join l in _context.FiOrderrecievemoneys.Where(x => x.RecStatus == "A").GroupBy(q => new { q.OrderId }).Select(q => new |
| | | { |
| | | OrderId = q.Key.OrderId, |
| | | YishouMoney = q.Sum(x => x.Recievemoney), |
| | | } |
| | | ) |
| | | on a.Id equals l.OrderId |
| | | into lsss |
| | | from lll in lsss.DefaultIfEmpty() |
| | | |
| | | where a.RecStatus == "A" && a.OrderType1 == "代拟投诉书" |
| | | && (string.IsNullOrWhiteSpace(searchEntity.XdTime) || (b.Createtime >= XdTimestart && b.Createtime <= XdTimeend)) |
| | | && (string.IsNullOrWhiteSpace(searchEntity.Wenshuleixing) || a.OrderType1 == searchEntity.Wenshuleixing.Trim()) |
| | | && (string.IsNullOrWhiteSpace(searchEntity.XmCode) || b.XmCode.Contains(searchEntity.XmCode.Trim())) |
| | | && (string.IsNullOrWhiteSpace(searchEntity.XmName) || b.XmName.Contains(searchEntity.XmName.Trim())) |
| | | && (string.IsNullOrWhiteSpace(searchEntity.PurchaserName) || b.PurchaserName.Contains(searchEntity.PurchaserName.Trim())) |
| | | && (string.IsNullOrWhiteSpace(searchEntity.Agency) || b.Agency.Contains(searchEntity.Agency.Trim())) |
| | | && (string.IsNullOrWhiteSpace(searchEntity.KhdwName) || ggg.Name.Contains(searchEntity.KhdwName.Trim())) |
| | | && (searchEntity.Status <= 0 || b.Status == searchEntity.Status) |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | select new CooperOrderDTO |
| | | { |
| | | Id = a.Id, |
| | | |
| | | XmCode = b.XmCode, |
| | | XmName = b.XmName, |
| | | PurchaserName = b.PurchaserName, |
| | | Agency = b.Agency, |
| | | KhdwName = ggg.Name, |
| | | XdTime = b.Createtime.Value, |
| | | XdTimeName = b.Createtime.Value.ToString("yyyy-MM-dd"), |
| | | YishouMoney = lll.YishouMoney ?? 0, |
| | | WeishouMoney = (a.Money ?? 0) /*- (a.Youhui ?? 0)*/ - (lll.YishouMoney ?? 0), |
| | | OrderType1 = a.OrderType1, |
| | | } |
| | | ).ToList(); |
| | | |
| | | query2.AddRange(query1); |
| | | var query = query2.Where(x => x.WeishouMoney <= 0).OrderByDescending(x => x.Createtime).ToList(); |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //if (searchEntity.totalrows == 0) |
| | | searchEntity.totalrows = query.Count(); |
| | | var lianlist = query.Skip((searchEntity.page - 1) * searchEntity.rows).Take(searchEntity.rows).ToList(); |
| | | data.LoadData(searchEntity, lianlist); |
| | | return data; |
| | | } |
| | | } |
| | | } |
| | |
| | | /// 获取所有有效合作客户 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | public List<CooperatecustomCustomerDTO> GetList(string[] id) |
| | | public List<CooperatecustomCustomerDTO> GetList(string[] id=null) |
| | | { |
| | | List<CooperatecustomCustomerDTO> result = new List<CooperatecustomCustomerDTO>(); |
| | | if (id != null) |
| | |
| | | |
| | | result = _mapper.Map<List<CooperatecustomCustomerDTO>>(listCooperatecustomCustomers); |
| | | } |
| | | else |
| | | { |
| | | var listCooperatecustomCustomers = _context.CooperatecustomCustomers.ToList(); |
| | | |
| | | result = _mapper.Map<List<CooperatecustomCustomerDTO>>(listCooperatecustomCustomers); |
| | | } |
| | | |
| | | |
| | | |
| | |
| | | return new JsonResult(returnMsg); |
| | | } |
| | | |
| | | |
| | | |
| | | [CheckLogin] |
| | | public IActionResult IndexWenshu() |
| | | { |
| | | 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; |
| | | |
| | | |
| | | |
| | | |
| | | return View(); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | [CheckLogin] |
| | | public IActionResult GetListWenshu(CooperOrderDTOSearch search) |
| | | { |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | //search.Status = 1; |
| | | //search.Creater = curentuser.Id; |
| | | //JsonResult jsonResult = new JsonResult(_liaotianService.SearchByPaging(search), new Newtonsoft.Json.Serialization.DefaultContractResolver()); |
| | | return new JsonResult(_cooperOrderService.SearchByPagingWenshu(search)); |
| | | } |
| | | |
| | | |
| | | [CheckLogin] |
| | | public IActionResult selectWenshu() |
| | | { |
| | | 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.Wenshuleixing = _liaotianService.GetSYScode("t_challengeletter", "Wenshuleixing").Select(x => new { code = x.CodeSn, label = x.Comments }).ToList(); |
| | | |
| | | |
| | | return View(); |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | |
| | | var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User")); |
| | | ViewData["curentuser"] = curentuser; |
| | | List<CooperatecustomCustomerDTO> result = new List<CooperatecustomCustomerDTO>(); |
| | | |
| | | if (baifangid != null) |
| | | { |
| | | result = _cooperVisitService.GetList(baifangid.Split(",")); |
| | |
| | | CusFangwenjiluDTO dto = new CusFangwenjiluDTO(); |
| | | dto.Fasongfangshi = "01"; |
| | | dto.Fasongneirong = neirong; |
| | | dto.Jieshouren = baifangid; |
| | | dto.Jieshouren = baifangid.Length>2000? baifangid.Substring(0,2000): baifangid; |
| | | dto.RecStatus = "A"; |
| | | dto.Creater = curentuser.Id; |
| | | dto.Modifytime = DateTime.Now; |
| | |
| | | CusFangwenjiluDTO dto = new CusFangwenjiluDTO(); |
| | | dto.Fasongfangshi = "02"; |
| | | dto.Fasongneirong = neirong; |
| | | dto.Jieshouren = baifangid; |
| | | dto.Jieshouren = baifangid.Length > 2000 ? baifangid.Substring(0, 2000) : baifangid; ; |
| | | dto.RecStatus = "A"; |
| | | dto.Creater = curentuser.Id; |
| | | dto.Modifytime = DateTime.Now; |
| | |
| | | actionlist.Add(actionEntity); |
| | | } |
| | | |
| | | ActionEntity actionEntity4 = new ActionEntity(); |
| | | actionEntity4.OpenType = 0; |
| | | actionEntity4.ActionUrl = ""; |
| | | actionEntity4.ActionFun = "Duanxin"; |
| | | actionEntity4.PageIco = ""; |
| | | actionEntity4.ActionName = "群发短信"; |
| | | actionlist.Add(actionEntity4); |
| | | |
| | | ViewData["ActionInfo"] = actionlist; |
| | | |
| | | |
| | |
| | | CusFangwenjiluDTO dto = new CusFangwenjiluDTO(); |
| | | dto.Fasongfangshi = "01"; |
| | | dto.Fasongneirong = neirong; |
| | | dto.Jieshouren = baifangid; |
| | | dto.Jieshouren = baifangid.Length > 2000 ? baifangid.Substring(0, 2000) : baifangid; ; |
| | | dto.RecStatus = "A"; |
| | | dto.Creater = curentuser.Id; |
| | | dto.Modifytime = DateTime.Now; |
| | |
| | | CusFangwenjiluDTO dto = new CusFangwenjiluDTO(); |
| | | dto.Fasongfangshi = "02"; |
| | | dto.Fasongneirong = neirong; |
| | | dto.Jieshouren = baifangid; |
| | | dto.Jieshouren = baifangid.Length > 2000 ? baifangid.Substring(0, 2000) : baifangid; ; |
| | | dto.RecStatus = "A"; |
| | | dto.Creater = curentuser.Id; |
| | | dto.Modifytime = DateTime.Now; |
New file |
| | |
| | | @{ |
| | | ViewBag.Title = "CooperOrder"; |
| | | Layout = "~/Views/Shared/_Layout_Search.cshtml"; |
| | | } |
| | | @section headerStyle{ |
| | | <script type="text/javascript"> |
| | | |
| | | gridConfig = { multiselect: true, selectcol: "Id" }; |
| | | loseherght = 40; |
| | | dataCol = [ |
| | | { label: 'id', name: 'Id', labtype: 'txt', hidden: true }, |
| | | { label: '创建日期', name: 'XdTimeName', labtype: 'txt', hidden: false, width: 100 }, |
| | | { |
| | | label: '项目编号', name: 'XmCode', labtype: 'txt', hidden: false, width: 100 |
| | | //, |
| | | //formatter: function (cellvalue, options, rowObject) { |
| | | // return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/OrderBanciOrder/Edit?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>"; |
| | | //} |
| | | }, |
| | | { label: '项目名称', name: 'XmName', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '采购人', name: 'PurchaserName', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '采购代理机构', name: 'Agency', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '客户单位', name: 'KhdwName', labtype: 'txt', hidden: false, width: 100 }, |
| | | |
| | | { |
| | | label: '生成文书', name: 'Status', labtype: 'txt', hidden: false, width: 100 |
| | | , |
| | | formatter: function (cellvalue, options, rowObject) { |
| | | |
| | | if (rowObject.OrderType1 == "代拟投诉书") { |
| | | return "<a onclick=\"OpenWindow('生成投诉书','98%','100%', '/OrderBanciOrder/Edit?id=" + rowObject.Id + "')\" >生成投诉书</a>"; |
| | | } |
| | | else if (rowObject.OrderType1 == "代拟质疑函") { |
| | | return "<a onclick=\"OpenWindow('生成质疑函','98%','100%', '/OrderBanciOrder/Edit?id=" + rowObject.Id + "')\" >生成质疑函</a>"; |
| | | } |
| | | |
| | | |
| | | } |
| | | }, |
| | | |
| | | |
| | | ]; |
| | | dataUrl = "/CooperOrder/GetListWenshu"; |
| | | searchCol = [ |
| | | { label: '项目名称', name: 'XmName', labtype: 'txt', hidden: false }, |
| | | { label: '项目编号', name: 'XmCode', labtype: 'txt', hidden: false }, |
| | | |
| | | { label: '采购人', name: 'PurchaserName', labtype: 'txt', hidden: false }, |
| | | { label: '采购代理机构', name: 'Agency', labtype: 'txt', hidden: false }, |
| | | { label: '客户名称', name: 'KhdwName', labtype: 'txt', hidden: false }, |
| | | //{ label: '文书类别', name: 'Wenshuleixing', labtype: 'txt', hidden: false }, |
| | | //{ label: '时间', name: 'XdTime', labtype: 'datearea', hidden: false }, |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | ]; |
| | | //var _pageAdd = function () { |
| | | // OpenWindow("新增班次", "98%", "90%", "/CooperOrder/Edit/"); |
| | | //} |
| | | |
| | | |
| | | |
| | | |
| | | var _afterSave = function (result) { |
| | | if (result) { |
| | | toastr.success("保存成功"); |
| | | } else { |
| | | toastr.error("保存失败"); |
| | | } |
| | | } |
| | | |
| | | var _afterDel = function (result) { |
| | | if (result) { |
| | | toastr.success("删除成功"); |
| | | } else { |
| | | /**/ |
| | | toastr.error("删除成功"); |
| | | /**/ |
| | | } |
| | | } |
| | | |
| | | var _pageDuanxin = 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("群发短信", "50%", "50%", "/OrderBanciOrder/Duanxin?id=" + baifangid); |
| | | |
| | | } |
| | | |
| | | |
| | | var _pagePrint = function () { |
| | | |
| | | var Baomingtime = $("#PBSBaomingtime").val(); |
| | | var Peixunbanci = $("#PBSPeixunbanci").val(); |
| | | var Kechengleixing = $("#PBSKechengleixing").val(); |
| | | var Xingming = $("#PBSXingming").val(); |
| | | var Lianxidianhua = $("#PBSLianxidianhua").val(); |
| | | |
| | | |
| | | |
| | | var Createtimestart = $("#PBSCreatetimestart").val(); |
| | | |
| | | var Createtimeend = $("#PBSCreatetimeend").val(); |
| | | var Createtime = ''; |
| | | if (Createtimestart != '' && Createtimeend != '') { |
| | | Createtime = Createtimestart + '|' + Createtimeend; |
| | | } |
| | | |
| | | |
| | | var url = "/OrderBanciOrder/print?Baomingtime=" + Baomingtime + "&Peixunbanci=" + Peixunbanci + "&Kechengleixing=" + Kechengleixing + "&Xingming=" + Xingming + "&Lianxidianhua=" + Lianxidianhua; |
| | | var me = window.open(url, "打印"); //打开新窗口 |
| | | |
| | | |
| | | } |
| | | |
| | | </script> |
| | | } |
| | | |
| | | @section footerScripts{ |
| | | <script type="text/javascript"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </script> |
| | | } |
New file |
| | |
| | | @{ |
| | | ViewBag.Title = "CooperOrder"; |
| | | Layout = "~/Views/Shared/_Layout_Search.cshtml"; |
| | | } |
| | | @section headerStyle{ |
| | | <script type="text/javascript"> |
| | | var Wenshuleixing = '@Html.Raw(Newtonsoft.Json.JsonConvert.SerializeObject(ViewBag.Wenshuleixing))'; |
| | | gridConfig = { multiselect: true, selectcol: "Id" }; |
| | | loseherght = 40; |
| | | dataCol = [ |
| | | { label: 'id', name: 'Id', labtype: 'txt', hidden: true }, |
| | | { label: '创建日期', name: 'XdTimeName', labtype: 'txt', hidden: false, width: 100 }, |
| | | { |
| | | label: '项目编号', name: 'XmCode', labtype: 'txt', hidden: false, width: 100 |
| | | //, |
| | | //formatter: function (cellvalue, options, rowObject) { |
| | | // return "<a onclick=\"OpenWindow('" + cellvalue.replace(/'/g, '') + "','98%','100%', '/OrderBanciOrder/Edit?id=" + rowObject.Id + "')\" >" + cellvalue + "</a>"; |
| | | //} |
| | | }, |
| | | { label: '项目名称', name: 'XmName', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '采购人', name: 'PurchaserName', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '采购代理机构', name: 'Agency', labtype: 'txt', hidden: false, width: 100 }, |
| | | { label: '客户单位', name: 'KhdwName', labtype: 'txt', hidden: false, width: 100 }, |
| | | |
| | | { |
| | | label: '查看文书', name: 'Status', labtype: 'txt', hidden: false, width: 100 |
| | | , |
| | | formatter: function (cellvalue, options, rowObject) { |
| | | |
| | | if (rowObject.OrderType1 == "代拟投诉书") { |
| | | return "<a onclick=\"OpenWindow('查看投诉书','98%','100%', '/OrderBanciOrder/Edit?id=" + rowObject.Id + "')\" >查看投诉书</a>"; |
| | | } |
| | | else if (rowObject.OrderType1 == "代拟质疑函") { |
| | | return "<a onclick=\"OpenWindow('查看质疑函','98%','100%', '/OrderBanciOrder/Edit?id=" + rowObject.Id + "')\" >查看质疑函</a>"; |
| | | } |
| | | } |
| | | }, |
| | | |
| | | |
| | | ]; |
| | | dataUrl = "/CooperOrder/GetListWenshu"; |
| | | searchCol = [ |
| | | { label: '时间', name: 'XdTime', labtype: 'datearea', hidden: false }, |
| | | { label: '文书类别', name: 'Wenshuleixing', labtype: 'combox', hidden: false, data: JSON.parse(Wenshuleixing) }, |
| | | { label: '项目名称', name: 'XmName', labtype: 'txt', hidden: false }, |
| | | { label: '项目编号', name: 'XmCode', labtype: 'txt', hidden: false }, |
| | | |
| | | { label: '采购人', name: 'PurchaserName', labtype: 'txt', hidden: false }, |
| | | { label: '采购代理机构', name: 'Agency', labtype: 'txt', hidden: false }, |
| | | { label: '客户名称', name: 'KhdwName', labtype: 'txt', hidden: false }, |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | ]; |
| | | //var _pageAdd = function () { |
| | | // OpenWindow("新增班次", "98%", "90%", "/CooperOrder/Edit/"); |
| | | //} |
| | | |
| | | |
| | | |
| | | |
| | | var _afterSave = function (result) { |
| | | if (result) { |
| | | toastr.success("保存成功"); |
| | | } else { |
| | | toastr.error("保存失败"); |
| | | } |
| | | } |
| | | |
| | | var _afterDel = function (result) { |
| | | if (result) { |
| | | toastr.success("删除成功"); |
| | | } else { |
| | | /**/ |
| | | toastr.error("删除成功"); |
| | | /**/ |
| | | } |
| | | } |
| | | |
| | | var _pageDuanxin = 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("群发短信", "50%", "50%", "/OrderBanciOrder/Duanxin?id=" + baifangid); |
| | | |
| | | } |
| | | |
| | | |
| | | var _pagePrint = function () { |
| | | |
| | | var Baomingtime = $("#PBSBaomingtime").val(); |
| | | var Peixunbanci = $("#PBSPeixunbanci").val(); |
| | | var Kechengleixing = $("#PBSKechengleixing").val(); |
| | | var Xingming = $("#PBSXingming").val(); |
| | | var Lianxidianhua = $("#PBSLianxidianhua").val(); |
| | | |
| | | |
| | | |
| | | var Createtimestart = $("#PBSCreatetimestart").val(); |
| | | |
| | | var Createtimeend = $("#PBSCreatetimeend").val(); |
| | | var Createtime = ''; |
| | | if (Createtimestart != '' && Createtimeend != '') { |
| | | Createtime = Createtimestart + '|' + Createtimeend; |
| | | } |
| | | |
| | | |
| | | var url = "/OrderBanciOrder/print?Baomingtime=" + Baomingtime + "&Peixunbanci=" + Peixunbanci + "&Kechengleixing=" + Kechengleixing + "&Xingming=" + Xingming + "&Lianxidianhua=" + Lianxidianhua; |
| | | var me = window.open(url, "打印"); //打开新窗口 |
| | | |
| | | |
| | | } |
| | | |
| | | </script> |
| | | } |
| | | |
| | | @section footerScripts{ |
| | | <script type="text/javascript"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | </script> |
| | | } |
| | |
| | | |
| | | |
| | | |
| | | var _pageDuanxin = 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("群发短信", "50%", "50%", "/IntentionVisit/Duanxin?id=" + baifangid); |
| | | |
| | | } |
| | | |
| | | |
| | | |