username@email.com
2022-07-15 283f3e33e15409f657c152881620103c95811768
提交修改
21个文件已修改
22617 ■■■■ 已修改文件
zhengcaioa/Crawler/Program.cs 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/Crawler/sichuan/OldSichuanoperation.cs 21145 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/Crawler/sichuan/sichuanoperation.cs 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/DTO/CooperatecustomCustomerDTO.cs 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/DTO/HrDeptDTO.cs 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/Services/HrDeptService.cs 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/Services/SysAttachmentService.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Controllers/BusinessOrder/CooperOrderController.cs 152 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Controllers/Customer/CooperatecustomCustomerController.cs 112 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Controllers/Finance/FiOrderrecievemoneyController.cs 68 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Controllers/HR/HrDeptController.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Views/CooperOrder/IndexWenshu.cshtml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Views/CooperOrder/PrintZhiyihan.cshtml 295 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Views/CooperOrder/Printtousushu.cshtml 448 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Views/CooperatecustomCustomer/Edit.cshtml 256 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Views/FiOrderrecievemoney/Edit.cshtml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Views/SysCode/Editlaw.cshtml 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/Views/SysCode/Indexlaw.cshtml 44 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/appsettings.Development.json 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/zhengcaioa/appsettings.json 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zhengcaioa/Crawler/Program.cs
@@ -1,12 +1,15 @@
using Crawler.sichuan;
using AngleSharp.Html.Parser;
using Crawler.sichuan;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Newtonsoft.Json;
using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using System;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Threading;
using zhengcaioa.Models;
@@ -14,14 +17,14 @@
{
    class Program
    {
        public static string connection = @"server=.;database=WebCrawler;uid=sa;pwd=123456;";
        //public static string connection = @"server=172.26.97.147;database=WebCrawler;uid=sa;pwd=Za20222812;";
        //public static string connection = @"server=.;database=WebCrawler;uid=sa;pwd=123456;";
        public static string connection = @"server=172.26.97.147;database=WebCrawler;uid=sa;pwd=Za20222812;";
        static void Main(string[] args)
        {
zhengcaioa/Crawler/sichuan/OldSichuanoperation.cs
Diff too large
zhengcaioa/Crawler/sichuan/sichuanoperation.cs
@@ -12,8 +12,8 @@
{
   public class sichuanoperation
    {
        public static string api_domain = "http://192.168.0.116:9200";
        //public static string api_domain = "http://localhost:9200";
        //public static string api_domain = "http://192.168.0.116:9200";
        public static string api_domain = "http://localhost:9200";
        public static string sichuanpageurll = "https://zfcg.scsczt.cn";
        public static void operations(WebCrawlerContext _ccontext)
        {
zhengcaioa/DTO/CooperatecustomCustomerDTO.cs
@@ -69,6 +69,16 @@
        public decimal? Moneycountde { get; set; }
        public int? Taocanjianshu { get; set; }
        public string[] attachmentid { get; set; }
        public string[] Filepath { get; set; }
        public string[] Filefullname { get; set; }
        public string[] AttObj { get; set; }
        public string Zhiwu { get; set; }
    }
    public class CooperatecustomCustomerDTOSearch : SearchEntity
zhengcaioa/DTO/HrDeptDTO.cs
@@ -39,6 +39,8 @@
        public string QiyongStatus { get; set; }
        public string DeptnullName { get; set; }
    }
}
zhengcaioa/Services/HrDeptService.cs
@@ -177,6 +177,7 @@
                          && (string.IsNullOrWhiteSpace(searchEntity.DeptType) || a.DeptType == searchEntity.DeptType.Trim())
                          && (string.IsNullOrWhiteSpace(searchEntity.Superior) || (d != null && d.DeptName.Contains(searchEntity.Superior.Trim())))
                            && (string.IsNullOrWhiteSpace(searchEntity.QiyongStatus) || a.QiyongStatus == searchEntity.QiyongStatus.Trim())
                             && (string.IsNullOrWhiteSpace(searchEntity.DeptnullName) || a.DeptName != searchEntity.DeptnullName.Trim())
                         select new HrDeptDTO
                         {
                            Id = a.Id,
@@ -265,20 +266,20 @@
        public List<HrDeptDTO> GetList()
        {
            StringBuilder sql = new StringBuilder();
            sql.Append(" with t as ");
            sql.Append(" ( select b.* from [hr_dept] b where b.[superior] = '' and b.rec_status='A' and b.qiyong_status='A' ");
            sql.Append("  union all ");
            sql.Append("   select a.* from [hr_dept] a join t b on a.[superior]=b.[Id] and a.rec_status='A' and a.qiyong_status='A' ) ");
            sql.Append("  select [Id],[dept_sn], replace(space((CAST([levels] as int)-1)*2)+[dept_name],' ',' ')   [dept_name],[director],[dept_type],[levels],[superior],[superior_top],[sort],[rec_status],[creater],[createtime],[modifier],[modifytime],[qiyong_status]  ");
            sql.Append(" from t ");
            //StringBuilder sql = new StringBuilder();
            //sql.Append(" with t as ");
            //sql.Append(" ( select b.* from [hr_dept] b where b.[superior] = '' and b.rec_status='A' and b.qiyong_status='A' ");
            //sql.Append("  union all ");
            //sql.Append("   select a.* from [hr_dept] a join t b on a.[superior]=b.[Id] and a.rec_status='A' and a.qiyong_status='A' ) ");
            //sql.Append("  select [Id],[dept_sn], replace(space((CAST([levels] as int)-1)*2)+[dept_name],' ',' ')   [dept_name],[director],[dept_type],[levels],[superior],[superior_top],[sort],[rec_status],[creater],[createtime],[modifier],[modifytime],[qiyong_status]  ");
            //sql.Append(" from t ");
            var listPosition = _context.HrDepts.FromSqlRaw(sql.ToString()).ToList();
            //var listPosition = _context.HrDepts.FromSqlRaw(sql.ToString()).ToList();
            var listPositionss = departmentRecursion("",listPosition);
            var list = _mapper.Map<List<HrDeptDTO>>(listPositionss);
            //var listPositionss = departmentRecursion("",listPosition);
            var listPosition = _context.HrDepts.Where(x=>x.RecStatus =="A" && x.QiyongStatus=="A" && x.DeptName!="公司").OrderBy(x => x.DeptSn).ToList();
            var list = _mapper.Map<List<HrDeptDTO>>(listPosition);
            return list;
        }
zhengcaioa/Services/SysAttachmentService.cs
@@ -50,7 +50,7 @@
                }
                _context.SaveChanges();
              var ii =  _context.SaveChanges();
                resultEntity.ReturnID = model.Id;
                resultEntity.Result = true;
            }
zhengcaioa/zhengcaioa/Controllers/BusinessOrder/CooperOrderController.cs
@@ -47,6 +47,7 @@
        private readonly IFiOrderrecievemoneyService _fiOrderrecievemoneyService;
        private readonly IFiAccountService _fiAccountService;
        private readonly IFiAccountRecordService _iFiAccountRecordService;
        private readonly ISysAttachmentService _sysAttachmentService;
        public CooperOrderController(ILogger<CooperOrderController> logger, ILiaotianService liaotianService, IUserService userService, ICooperOrderService cooperOrderService
@@ -60,6 +61,7 @@
            , IFiOrderrecievemoneyService fiOrderrecievemoneyService
            , IFiAccountService fiAccountService
            , IFiAccountRecordService iFiAccountRecordService
             , ISysAttachmentService sysAttachmentService
            )
        {
            _logger = logger;
@@ -80,6 +82,7 @@
            _fiOrderrecievemoneyService = fiOrderrecievemoneyService;
            _fiAccountService = fiAccountService;
            _iFiAccountRecordService = iFiAccountRecordService;
            _sysAttachmentService = sysAttachmentService;
        }
        [CheckLogin]
@@ -1017,7 +1020,13 @@
            ResultEntity resultEntity = new ResultEntity();
            resultEntity.Result = false;
            using (TransactionScope scope = new TransactionScope())
            using (TransactionScope scope = new TransactionScope(TransactionScopeOption.Required,
          new TransactionOptions
          {
              IsolationLevel = IsolationLevel.ReadCommitted,
              Timeout = TransactionManager.MaximumTimeout
          }
          ))
            {
                CooperOrderDTO dto = _cooperOrderService.Get(id);
@@ -1084,6 +1093,59 @@
                }
                if(dto.Money<=0 && dto.OrderType == "05")
                {
                var cooperatecustomCustomerDTO = _cooperatecustomCustomerService.Get(dto.Khdw);
                var fiMemberDTO = _fiMemberService.Get(dto.OrderType1);
                //开通会员
                string huiyuanurl = _configuration.GetSection("huiyuanurl").Value;
                string OAWriteChangeAsync = _configuration.GetSection("OAWriteChangeAsync").Value;
                Uri postUrl2 = new Uri(huiyuanurl + OAWriteChangeAsync);
                JObject questions2 = new JObject();
                questions2.Add("UserID", cooperatecustomCustomerDTO.HuiyuanId);
                questions2.Add("PhoneNumber", cooperatecustomCustomerDTO.Tel);
                questions2.Add("VIPName", fiMemberDTO.MemberType);
                questions2.Add("FromName", "OA");
                questions2.Add("UserName", cooperatecustomCustomerDTO.Name);
                string requestJson2 = questions2.ToString();
                    string result2 = string.Empty;
                    using (HttpContent httpContent = new StringContent(requestJson2))
                    {
                        httpContent.Headers.ContentType = new MediaTypeHeaderValue("application/json");
                        using (HttpClient httpClient = new HttpClient())
                        {
                            httpClient.Timeout = new TimeSpan(0, 0, 10);
                            HttpResponseMessage responseMessage = httpClient.PostAsync(postUrl2, httpContent).Result;
                            result2 = responseMessage.Content.ReadAsStringAsync().Result;
                        }
                    }
                    _logger.LogInformation("result2:" + result2);
                    JObject jobjectresult = (JObject)JsonConvert.DeserializeObject(result2);
                    if (jobjectresult["code"] != null && jobjectresult["code"].ToString() == "1")
                    {
                        cooperatecustomCustomerDTO.HuiyuanId = jobjectresult["UserID"].ToString();
                        _cooperatecustomCustomerService.save(cooperatecustomCustomerDTO);
                        resultEntity.Result = true;
                    }
                    else
                    {
                        resultEntity.Result = false;
                        resultEntity.Message = "写入会员权限失败";
                        return new JsonResult(resultEntity);
                    }
                }
                dto.Shoulier = curentuser.Id;
                dto.Shoulitime = DateTime.Now;
@@ -1140,9 +1202,10 @@
            ResultEntity resultEntity = new ResultEntity();
            resultEntity.Result = false;
            using (TransactionScope scope = new TransactionScope())
            {
                CooperOrderDTO dto = _cooperOrderService.Get(Chedanid);
                if (dto.ShouliStatus != "2")
                {
@@ -2200,10 +2263,53 @@
            //ViewBag.law = sysCodeDtls1;//法律依据
            var cooperOrderDTO = _cooperOrderService.Get(id);
            var cooperatecustomCustomerDTO = _cooperatecustomCustomerService.Get(cooperOrderDTO.Khdw);
            if (cooperatecustomCustomerDTO.Name.IndexOf("股份有限公司") >= 0)
            {
                cooperatecustomCustomerDTO.Zhiwu = "董事长";
            }
            else if (cooperatecustomCustomerDTO.Name.IndexOf("有限公司") >= 0 || cooperatecustomCustomerDTO.Name.IndexOf("有限责任公司") >= 0)
            {
                cooperatecustomCustomerDTO.Zhiwu = "执行董事";
            }
            else if (cooperatecustomCustomerDTO.Name.IndexOf("协会") >= 0)
            {
                cooperatecustomCustomerDTO.Zhiwu = "会长";
            }
            else
            {
                cooperatecustomCustomerDTO.Zhiwu = "总经理";
            }
            ResultDataEntity<SysAttachmentDTO> resultsyinyezhizhao = new ResultDataEntity<SysAttachmentDTO>();
            SysAttachmentDTOSearch searchEntity = new SysAttachmentDTOSearch();
            searchEntity.page = 1;
            searchEntity.rows = 1000;
            searchEntity.AttObj = "Cooperyinyezhizhao";
            searchEntity.AttObjid = cooperOrderDTO.Khdw;
            resultsyinyezhizhao = _sysAttachmentService.SearchByPaging(searchEntity);
            ViewBag.yinyezhizhao = resultsyinyezhizhao;
            ResultDataEntity<SysAttachmentDTO> resultshenfenzheng = new ResultDataEntity<SysAttachmentDTO>();
            SysAttachmentDTOSearch searchEntity1 = new SysAttachmentDTOSearch();
            searchEntity1.page = 1;
            searchEntity1.rows = 1000;
            searchEntity1.AttObj = "Cooperashenfenzheng";
            searchEntity1.AttObjid = cooperOrderDTO.Khdw;
            resultshenfenzheng = _sysAttachmentService.SearchByPaging(searchEntity1);
            ViewBag.shenfenzheng = resultshenfenzheng;
            ViewBag.cooperatecustomCustomerDTO = cooperatecustomCustomerDTO;
            ViewData.Model = challengeletterDTO;
            return View();
        }
@@ -2731,10 +2837,50 @@
                
            }
            var cooperOrderDTO = _cooperOrderService.Get(id);
            var cooperatecustomCustomerDTO = _cooperatecustomCustomerService.Get(cooperOrderDTO.Khdw);
            if (cooperatecustomCustomerDTO.Name.IndexOf("股份有限公司") >= 0)
            {
                cooperatecustomCustomerDTO.Zhiwu = "董事长";
            }
            else if (cooperatecustomCustomerDTO.Name.IndexOf("有限公司") >= 0 || cooperatecustomCustomerDTO.Name.IndexOf("有限责任公司") >= 0)
            {
                cooperatecustomCustomerDTO.Zhiwu = "执行董事";
            }
            else if (cooperatecustomCustomerDTO.Name.IndexOf("协会") >= 0)
            {
                cooperatecustomCustomerDTO.Zhiwu = "会长";
            }
            else
            {
                cooperatecustomCustomerDTO.Zhiwu = "总经理";
            }
            ResultDataEntity<SysAttachmentDTO> resultsyinyezhizhao = new ResultDataEntity<SysAttachmentDTO>();
            SysAttachmentDTOSearch searchEntity = new SysAttachmentDTOSearch();
            searchEntity.page = 1;
            searchEntity.rows = 1000;
            searchEntity.AttObj = "Cooperyinyezhizhao";
            searchEntity.AttObjid = cooperOrderDTO.Khdw;
            resultsyinyezhizhao = _sysAttachmentService.SearchByPaging(searchEntity);
            ViewBag.yinyezhizhao = resultsyinyezhizhao;
            ResultDataEntity<SysAttachmentDTO> resultshenfenzheng = new ResultDataEntity<SysAttachmentDTO>();
            SysAttachmentDTOSearch searchEntity1 = new SysAttachmentDTOSearch();
            searchEntity1.page = 1;
            searchEntity1.rows = 1000;
            searchEntity1.AttObj = "Cooperashenfenzheng";
            searchEntity1.AttObjid = cooperOrderDTO.Khdw;
            resultshenfenzheng = _sysAttachmentService.SearchByPaging(searchEntity1);
            ViewBag.shenfenzheng = resultshenfenzheng;
            ViewBag.cooperatecustomCustomerDTO = cooperatecustomCustomerDTO;
            ViewData.Model = complaintletterDTO;
zhengcaioa/zhengcaioa/Controllers/Customer/CooperatecustomCustomerController.cs
@@ -15,6 +15,7 @@
using System.Threading.Tasks;
using zhengcaioa.Models;
using zhengcaioa.IService;
using System.Transactions;
namespace zhengcaioa.Controllers.Customer
{
@@ -27,9 +28,11 @@
        private readonly ICooperatecustomCustomerService _cooperatecustomCustomerService;
        private readonly IUserService _userService;
        private readonly IHrDeptService _hrDeptService;
        private readonly ISysAttachmentService _sysAttachmentService;
        public CooperatecustomCustomerController(ILogger<CooperatecustomCustomerController> logger, IProjectService projectService, ILiaotianService liaotianService, ICooperatecustomCustomerService cooperatecustomCustomerService, IUserService userService, IHrDeptService hrDeptService)
        public CooperatecustomCustomerController(ILogger<CooperatecustomCustomerController> logger, IProjectService projectService, ILiaotianService liaotianService, ICooperatecustomCustomerService cooperatecustomCustomerService, IUserService userService, IHrDeptService hrDeptService
            , ISysAttachmentService sysAttachmentService)
        {
            _logger = logger;
            _projectService = projectService;
@@ -37,6 +40,7 @@
            _cooperatecustomCustomerService = cooperatecustomCustomerService;
            _userService = userService;
            _hrDeptService = hrDeptService;
            _sysAttachmentService = sysAttachmentService;
        }
        public IActionResult Index()
@@ -182,6 +186,33 @@
            ViewData["quxian"] = quxian;
            ViewData["DeptId"] = _hrDeptService.GetList();
            ViewData.Model = cooperatecustomCustomerDTO;
            ResultDataEntity<SysAttachmentDTO> resultsyinyezhizhao = new ResultDataEntity<SysAttachmentDTO>();
            if (!string.IsNullOrEmpty(id))
            {
                SysAttachmentDTOSearch searchEntity = new SysAttachmentDTOSearch();
                searchEntity.page = 1;
                searchEntity.rows = 1000;
                searchEntity.AttObj = "Cooperyinyezhizhao";
                searchEntity.AttObjid = id;
                resultsyinyezhizhao = _sysAttachmentService.SearchByPaging(searchEntity);
            }
            ViewBag.yinyezhizhao = resultsyinyezhizhao;
            ResultDataEntity<SysAttachmentDTO> resultshenfenzheng = new ResultDataEntity<SysAttachmentDTO>();
            if (!string.IsNullOrEmpty(id))
            {
                SysAttachmentDTOSearch searchEntity = new SysAttachmentDTOSearch();
                searchEntity.page = 1;
                searchEntity.rows = 1000;
                searchEntity.AttObj = "Cooperashenfenzheng";
                searchEntity.AttObjid = id;
                resultshenfenzheng = _sysAttachmentService.SearchByPaging(searchEntity);
            }
            ViewBag.shenfenzheng = resultshenfenzheng;
            return View();
        }
@@ -212,42 +243,79 @@
        [HttpPost]
        public IActionResult Save(CooperatecustomCustomerDTO data)
        {
            ResultEntity resultEntity = new ResultEntity();
            resultEntity.Result = false;
            var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
            ViewData["curentuser"] = curentuser;
            data.RecStatus = "A";
            if (string.IsNullOrEmpty(data.Shifoutianjiaweixin))
            using (TransactionScope scope = new TransactionScope())
            {
                data.Shifoutianjiaweixin = "D";
                data.Weixiner = null;
                data.Weixintime = null;
            }
            else
            {
                if (String.IsNullOrEmpty(data.Id))
                if (string.IsNullOrEmpty(data.Shifoutianjiaweixin))
                {
                    data.Weixiner = curentuser.Id;
                    data.Weixintime = DateTime.Now;
                    data.Shifoutianjiaweixin = "D";
                    data.Weixiner = null;
                    data.Weixintime = null;
                }
                else
                {
                 var cooperatecustomCustomerDTO    =   _cooperatecustomCustomerService.Get(data.Id);
                    if (string.IsNullOrEmpty(cooperatecustomCustomerDTO.Weixiner) )
                    if (String.IsNullOrEmpty(data.Id))
                    {
                        data.Weixiner = curentuser.Id;
                        data.Weixintime = DateTime.Now;
                    }
                    else
                    {
                        var cooperatecustomCustomerDTO = _cooperatecustomCustomerService.Get(data.Id);
                        if (string.IsNullOrEmpty(cooperatecustomCustomerDTO.Weixiner))
                        {
                            data.Weixiner = curentuser.Id;
                            data.Weixintime = DateTime.Now;
                        }
                    }
                }
            }
            if (String.IsNullOrEmpty(data.Id))
            {
                data.Creater = curentuser.Id;
                data.Createtime = DateTime.Now;
            }
            data.Modifier = curentuser.Id;
            data.Modifytime = DateTime.Now;
                if (String.IsNullOrEmpty(data.Id))
                {
                    data.Creater = curentuser.Id;
                    data.Createtime = DateTime.Now;
                }
                data.Modifier = curentuser.Id;
                data.Modifytime = DateTime.Now;
            ResultEntity resultEntity = _cooperatecustomCustomerService.save(data);
                resultEntity = _cooperatecustomCustomerService.save(data);
                string[] Filepaths = data.Filepath;
                if (Filepaths != null && Filepaths.Length > 0)
                {
                    for (int i = 0; i < Filepaths.Length; i++)
                    {
                        if (string.IsNullOrEmpty(data.attachmentid[i]))
                        {
                            SysAttachmentDTO sysAttachmentDTO = new SysAttachmentDTO();
                            //sysAttachmentDTO.Id =
                            sysAttachmentDTO.AttObj = data.AttObj[i];
                            sysAttachmentDTO.AttObjid = data.Id;
                            sysAttachmentDTO.Filefullname = data.Filefullname[i];
                            sysAttachmentDTO.Filepath = data.Filepath[i];
                            sysAttachmentDTO.Creater = curentuser.Id;
                            sysAttachmentDTO.Modifier = curentuser.Id;
                            sysAttachmentDTO.Createtime = DateTime.Now;
                            sysAttachmentDTO.Modifytime = sysAttachmentDTO.Createtime;
                            resultEntity = _sysAttachmentService.save(sysAttachmentDTO);
                            if (resultEntity.Result == false)
                            {
                                return new JsonResult(resultEntity);
                            }
                        }
                    }
                }
                scope.Complete();
            }
            return  new JsonResult(resultEntity);
        }
zhengcaioa/zhengcaioa/Controllers/Finance/FiOrderrecievemoneyController.cs
@@ -18,6 +18,9 @@
using CommonToolsCore;
using Services;
using System.Transactions;
using System.Net.Http.Headers;
using Newtonsoft.Json.Linq;
using Microsoft.Extensions.Configuration;
namespace zhengcaioa.Controllers.Finance
{
@@ -35,12 +38,18 @@
        private readonly IProjectService _projectService;
        private readonly IUserService _userService;
        private readonly IFiCustomerrecievemoneyService _fiCustomerrecievemoneyService;
        private readonly IConfiguration _configuration;
        private readonly IHttpClientFactory _clientFactory;
        private readonly IFiMemberService _iMemberService;
        public FiOrderrecievemoneyController(ILogger<FiOrderrecievemoneyController> logger, ILiaotianService liaotianService, IFiOrderrecievemoneyService fiOrderrecievemoneyService, ICooperOrderService cooperOrderService, IFiSubjectService ifiSubjectService
            , IFiAccountService fiAccountService, IFiAccountRecordService iFiAccountRecordService, ICooperatecustomCustomerService cooperatecustomCustomerService
            , IProjectService projectService
            , IUserService userService
            , IFiCustomerrecievemoneyService fiCustomerrecievemoneyService)
            , IFiCustomerrecievemoneyService fiCustomerrecievemoneyService
              , IConfiguration configuration
            , IHttpClientFactory clientFactory
             , IFiMemberService iMemberService)
        {
            _logger = logger;
            _liaotianService = liaotianService;
@@ -53,6 +62,9 @@
            _projectService = projectService;
            _userService = userService;
            _fiCustomerrecievemoneyService = fiCustomerrecievemoneyService;
            _configuration = configuration;
            _clientFactory = clientFactory;
            _iMemberService = iMemberService;
        }
        public IActionResult Index()
@@ -200,6 +212,60 @@
                
                resultEntity = _fiOrderrecievemoneyService.save(data);
                if (data.WeishouMoney <= data.Recievemoney && cooperOrderDTO.OrderType == "05" )
                {
                    //开通会员
                    var fiMemberDTO = _iMemberService.Get(cooperOrderDTO.OrderType1);
                    //开通会员
                    string huiyuanurl = _configuration.GetSection("huiyuanurl").Value;
                    string OAWriteChangeAsync = _configuration.GetSection("OAWriteChangeAsync").Value;
                    Uri postUrl2 = new Uri(huiyuanurl + OAWriteChangeAsync);
                    JObject questions2 = new JObject();
                    questions2.Add("UserID", cooperatecustomCustomerDTO.HuiyuanId);
                    questions2.Add("PhoneNumber", cooperatecustomCustomerDTO.Tel);
                    questions2.Add("VIPName", fiMemberDTO.MemberType);
                    questions2.Add("UserName", cooperatecustomCustomerDTO.Name);
                    questions2.Add("FromName", "OA");
                    string requestJson2 = questions2.ToString();
                    string result2 = string.Empty;
                    using (HttpContent httpContent = new StringContent(requestJson2))
                    {
                        httpContent.Headers.ContentType = new MediaTypeHeaderValue("application/json");
                        using (HttpClient httpClient = new HttpClient())
                        {
                            httpClient.Timeout = new TimeSpan(0, 0, 10);
                            HttpResponseMessage responseMessage = httpClient.PostAsync(postUrl2, httpContent).Result;
                            result2 = responseMessage.Content.ReadAsStringAsync().Result;
                        }
                    }
                    _logger.LogInformation("result2:" + result2);
                    JObject jobjectresult = (JObject)JsonConvert.DeserializeObject(result2);
                    if (jobjectresult["code"] != null && jobjectresult["code"].ToString() == "1")
                    {
                        cooperatecustomCustomerDTO.HuiyuanId = jobjectresult["UserID"].ToString();
                        _cooperatecustomCustomerService.save(cooperatecustomCustomerDTO);
                        resultEntity.Result = true;
                    }
                    else
                    {
                        resultEntity.Result = false;
                        resultEntity.Message = "写入会员权限失败";
                        return new JsonResult(resultEntity);
                    }
                }
                if (data.PayType != "03")
                {
                    FiAccountRecordDTO data1 = new FiAccountRecordDTO();
zhengcaioa/zhengcaioa/Controllers/HR/HrDeptController.cs
@@ -66,6 +66,7 @@
        {
            var curentuser = JsonConvert.DeserializeObject<PltUser>(HttpContext.Session.GetString("User"));
            ViewData["curentuser"] = curentuser;
            search.DeptnullName = "公司";
            //JsonResult jsonResult =   new JsonResult(_liaotianService.SearchByPaging(search), new Newtonsoft.Json.Serialization.DefaultContractResolver());
            return JsonConvert.SerializeObject(_hrDeptService.SearchByPaging(search));
        }
zhengcaioa/zhengcaioa/Views/CooperOrder/Edit.cshtml
@@ -457,7 +457,7 @@
                                        <div class="col-sm-2 col-md-2" grouptype="Vdata">
                                            <div class="input-group">
                                                <input type="text" name="zhiyiXmPackage" id="zhiyiXmPackage" class="form-control" value="@challengeletterDTO.XmPackage">
                                                <input type="text" name="zhiyiXmPackage" id="zhiyiXmPackage" class="form-control" value="@(string.IsNullOrEmpty(Model.Id)?"第1包":challengeletterDTO.XmPackage)">
                                                <div class="input-group-btn">
                                                    <button type="button" class="btn  dropdown-toggle" data-toggle="dropdown">
@@ -850,7 +850,7 @@
                                        <div class="col-sm-2 col-md-2" grouptype="Vdata">
                                            <div class="input-group">
                                                <input type="text" name="tousuXmPackage" id="tousuXmPackage" class="form-control" value="@complaintletterDTO.XmPackage">
                                                <input type="text" name="tousuXmPackage" id="tousuXmPackage" class="form-control" value="@(string.IsNullOrEmpty(Model.Id)?"第1包":complaintletterDTO.XmPackage) ">
                                                <div class="input-group-btn">
                                                    <button type="button" class="btn  dropdown-toggle" data-toggle="dropdown">
zhengcaioa/zhengcaioa/Views/CooperOrder/IndexWenshu.cshtml
@@ -41,7 +41,7 @@
        ];
        dataUrl = "/CooperOrder/GetListWenshu?Status=1";
        dataUrl = "/CooperOrder/GetListWenshu";
        searchCol = [
            { label: '项目名称', name: 'XmName', labtype: 'txt', hidden: false },
            { label: '项目编号', name: 'XmCode', labtype: 'txt', hidden: false },
zhengcaioa/zhengcaioa/Views/CooperOrder/PrintZhiyihan.cshtml
@@ -14,6 +14,24 @@
    List<TChallengeItemDTO> challengeItemDTOs = Model.challengeItemDTOs;
    int PrintNum = Model.PrintNum.HasValue? Model.PrintNum.Value:0;
 ResultDataEntity<SysAttachmentDTO> yinyezhizhao = ViewBag.yinyezhizhao as ResultDataEntity<SysAttachmentDTO>; //营业执照
    List<SysAttachmentDTO> yinyezhizhaosssss = new List<SysAttachmentDTO>();
    if (yinyezhizhao.DataList != null)
    {
        yinyezhizhaosssss = yinyezhizhao.DataList;
    }
    ResultDataEntity<SysAttachmentDTO> shenfenzheng = ViewBag.shenfenzheng as ResultDataEntity<SysAttachmentDTO>; //法人身份证
    List<SysAttachmentDTO> shenfenzhengsssss = new List<SysAttachmentDTO>();
    if (shenfenzheng.DataList != null)
    {
        shenfenzhengsssss = shenfenzheng.DataList;
    }
  CooperatecustomCustomerDTO cooperatecustomCustomerDTO = ViewBag.cooperatecustomCustomerDTO as CooperatecustomCustomerDTO; //客户
}
@{
    Layout = null;
@@ -34,7 +52,7 @@
    @*<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="~/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" />
@@ -72,7 +90,7 @@
    <form id="formtest">
        <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;">
            <div class="row">
                <div id="content" style="overflow-y:auto;height:100%;background: #fff;width:850px; margin: 0 auto;">
                <div id="content" style="overflow-x: hidden; overflow-y: auto; height: 100%; background: #fff; width: 850px; margin: 0 auto;">
                    <style type="text/css">
                        table {
                            width: 595px;
@@ -108,12 +126,12 @@
                                <td colspan="2" align="left">质疑供应商:<span style="width:460px;">@Model.GysName</span></td>
                            </tr>
                            <tr>
                                <td width="60%" align="left">地址:<span style="width:290px;">@Model.GysAddress</span></td>
                                <td width="40%" align="left">@(string.IsNullOrEmpty(Model.GysPostcode)?"":"邮编:" )<span style="width:160px;">@Model.GysPostcode</span></td>
                                <td colspan="2" align="left">地址:<span style="width:290px;">@Model.GysAddress</span> &nbsp; &nbsp;  @(string.IsNullOrEmpty(Model.GysPostcode)?"":"邮编:" )<span style="width:160px;">@Model.GysPostcode</span></td>
                            </tr>
                            <tr>
                                <td align="left">联系人:<span style="width:265px;">@Model.GysContacts </span></td>
                                <td align="left">联系电话:<span style="width:120px;">@Model.GysPhone </span></td>
                                <td align="left" width="50%">联系人:<span style="width:265px;">@Model.GysContacts </span></td>
                                <td align="left" width="50%">联系电话:<span style="width:120px;">@Model.GysPhone </span></td>
                            </tr>
                            @for (int i = 0; i < challengecomplaintShouquandaibiaoDTOs.Count; i++)
                            {
@@ -125,8 +143,7 @@
                                    <td colspan="2" align="left">联系电话@(i!=0?(i+""):""):<span style="width:480px;">@challengecomplaintShouquandaibiaoDTOs[i].Lianxidianhua </span></td>
                                </tr>
                                <tr>
                                    <td align="left">地址@(i!=0?(i+""):""):<span style="width:290px;">@challengecomplaintShouquandaibiaoDTOs[i].Dizhi </span></td>
                                    <td align="left">@(string.IsNullOrEmpty(challengecomplaintShouquandaibiaoDTOs[i].Youbian)?"":"邮编")@(i!=0?(i+""):""):<span style="width:160px;">@challengecomplaintShouquandaibiaoDTOs[i].Youbian </span></td>
                                    <td align="left" colspan="2">地址@(i!=0?(i+""):""):<span style="width:290px;">@challengecomplaintShouquandaibiaoDTOs[i].Dizhi </span>&nbsp; &nbsp; @(string.IsNullOrEmpty(challengecomplaintShouquandaibiaoDTOs[i].Youbian)?"":"邮编")@(i!=0?(i+""):""):<span style="width:160px;">@challengecomplaintShouquandaibiaoDTOs[i].Youbian </span></td>
                                </tr>
                            }
                            <tr>
@@ -136,8 +153,7 @@
                                <td colspan="2" align="left">质疑项目的名称:<span style="width:415px;">@Model.XmName </span></td>
                            </tr>
                            <tr>
                                <td align="left">质疑项目的编号:<span style="width:180px;">@Model.XmCode </span></td>
                                <td align="left">包号:<span style="width:160px;">@Model.XmPackage </span></td>
                                <td colspan="2" align="left">质疑项目的编号:<span style="width:180px;">@Model.XmCode </span>&nbsp; &nbsp;包号:<span style="width:160px;">@Model.XmPackage </span></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">采购人名称:<span style="width:460px;">@Model.PurchaserName </span></td>
@@ -165,29 +181,36 @@
                                                事实依据:@Html.Raw("<span>" + (string.IsNullOrEmpty(challengeItemDTOs[i].Evidential) ? "" : challengeItemDTOs[i].Evidential.Replace(" ", "&nbsp;").Replace("\r", "<br/>")) + "</span>");
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                法律依据:
                                                @for (int j = 0; j < challengeItemDTOs[i].sysCodeDtls.Count; j++)
                                                {
                                                    var sssss = "";
                                                    if (challengeItemDTOs[i].sysCodeDtls[j].CodeSn.IndexOf("【") >= 0)
                                                    {
                                                        sssss = "《" + challengeItemDTOs[i].sysCodeDtls[j].CodeSn.Insert(challengeItemDTOs[i].sysCodeDtls[j].CodeSn.IndexOf("【"), "》");
                                                    }
                                                    else
                                                    {
                                                        sssss = "《" + challengeItemDTOs[i].sysCodeDtls[j].CodeSn + "》";
                                                    }
                                        @for (int j = 0; j < challengeItemDTOs[i].sysCodeDtls.Count; j++)
                                        {
                                            if (challengeItemDTOs[i].sysCodeDtls.Count == 1)
                                            {
                                                <tr>
                                                    <td colspan="2">
                                                        @Html.Raw("法律依据:<span>《" + challengeItemDTOs[i].sysCodeDtls[j].CodeSn + "》" + challengeItemDTOs[i].sysCodeDtls[j].Classify2 + ":" + challengeItemDTOs[i].sysCodeDtls[j].Contents + "</span>")
                                                    </td>
                                                </tr>
                                            }
                                            else
                                            {
                                                <tr>
                                                    <td colspan="2">
                                                        @Html.Raw("法律依据" + (j + 1) + ":<span>《" + challengeItemDTOs[i].sysCodeDtls[j].CodeSn + "》" + challengeItemDTOs[i].sysCodeDtls[j].Classify2 + ":" + challengeItemDTOs[i].sysCodeDtls[j].Contents + "</span>")
                                                    </td>
                                                </tr>
                                                    if (j != (challengeItemDTOs[i].sysCodeDtls.Count - 1))
                                                    {
                                                        @Html.Raw(sssss + challengeItemDTOs[i].sysCodeDtls[j].Classify2 + "、")
                                                    }
                                                    else
                                                    {
                                                        @Html.Raw(sssss + challengeItemDTOs[i].sysCodeDtls[j].Classify2  )
                                                    }
                                            }
                                                }
                                            </td>
                                        </tr>
                                        }
@@ -205,29 +228,34 @@
                                            </td>
                                        </tr>
                                        @for (int j = 0; j < challengeItemDTOs[i].sysCodeDtls.Count; j++)
                                        {
                                        <tr>
                                            <td colspan="2">
                                                法律依据:
                                                @for (int j = 0; j < challengeItemDTOs[i].sysCodeDtls.Count; j++)
                                                {
                                                    var sssss = "";
                                                    if (challengeItemDTOs[i].sysCodeDtls[j].CodeSn.IndexOf("【") >= 0)
                                                    {
                                                        sssss = "《" + challengeItemDTOs[i].sysCodeDtls[j].CodeSn.Insert(challengeItemDTOs[i].sysCodeDtls[j].CodeSn.IndexOf("【"), "》");
                                                    }
                                                    else
                                                    {
                                                        sssss = "《" + challengeItemDTOs[i].sysCodeDtls[j].CodeSn + "》";
                                                    }
                                                    if (j != (challengeItemDTOs[i].sysCodeDtls.Count - 1))
                                                    {
                                                        @Html.Raw(sssss + challengeItemDTOs[i].sysCodeDtls[j].Classify2 + "、")
                                                    }
                                                    else
                                                    {
                                                        @Html.Raw(sssss + challengeItemDTOs[i].sysCodeDtls[j].Classify2)
                                                    }
                                            if (challengeItemDTOs[i].sysCodeDtls.Count == 1)
                                            {
                                                <tr>
                                                    <td colspan="2">
                                                        @Html.Raw("法律依据:<span>《" + challengeItemDTOs[i].sysCodeDtls[j].CodeSn + "》" + challengeItemDTOs[i].sysCodeDtls[j].Classify2 + ":" + challengeItemDTOs[i].sysCodeDtls[j].Contents + "</span>")
                                                }
                                                    </td>
                                                </tr>
                                            }
                                            else
                                            {
                                                <tr>
                                                    <td colspan="2">
                                                        @Html.Raw("法律依据" + (j + 1) + ":<span>《" + challengeItemDTOs[i].sysCodeDtls[j].CodeSn + "》" + challengeItemDTOs[i].sysCodeDtls[j].Classify2 + ":" + challengeItemDTOs[i].sysCodeDtls[j].Contents + "</span>")
                                                    </td>
                                                </tr>
                                            }
                                        }
                                            </td>
                                        </tr>
                                    }
@@ -248,14 +276,58 @@
                                <td align="left">公章:</td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">日期:@DateTime.Now.ToString("yyyy-MM-dd")</td>
                                <td colspan="2" align="left">日期:@Model.Modifytime.Value.ToString("yyyy年MM月dd日")</td>
                            </tr>
                        </table>
                    </div>
                    <div id="zhuti">
                        @{
                                        for (int i = 0; i < yinyezhizhaosssss.Count; i++)
                                        {
                            <div style="page-break-after:always;">
                                <img src="@yinyezhizhaosssss[i].Filepath" alt="" style="height: auto; max-width: 100%; ">
                            </div>
                                        }
                            for (int i = 0; i < shenfenzhengsssss.Count; i++)
                                        {
                            <div style="page-break-after:always;">
                                <img src="@shenfenzhengsssss[i].Filepath" alt="" style="height: auto; max-width: 100%; ">
                            </div>
                                        }
                        }
                    <div style="page-break-after:always;">
                        <table border="0" align="center" cellpadding="3" cellspacing="0">
                            <tr>
                                <td colspan="2" style="font-size:29.3px;text-align:center">法定代表人资格证明书</td>
                            </tr>
                            <tr>
                                <td colspan="2">兹证明&nbsp;  @(cooperatecustomCustomerDTO.FName)  &nbsp;在   &nbsp;@(cooperatecustomCustomerDTO.Name)  &nbsp; 任    &nbsp;@(cooperatecustomCustomerDTO.Zhiwu) &nbsp;   职务,是   &nbsp;@(cooperatecustomCustomerDTO.Name) &nbsp;  的法定代表人。</td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">&nbsp; &nbsp; 特此证明。</td>
                            </tr>
                            <tr>
                                <td colspan="2" style="height:50px"></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="right">川印文化集团股份有限公司(公章)<img src="~/img/images/gongzhang.png?v=3" alt="" /></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="right">日期:@Model.Modifytime.Value.ToString("yyyy年MM月dd日")</td>
                            </tr>
                        </table>
                    </div>
                    </div>
                </div>
                    </div>
    </div>
    </div>
@@ -277,31 +349,132 @@
    </form>
    <script type="text/javascript">
        var pt = document.getElementById("page1").innerHTML;
        $('#zhuti').hide();
        function printWin() {
         var index  = layer.open({
                title: '打印设置'
                , btn: ['提交', '关闭']
                , content: '   <div class="clearfix layer-area" style="padding-bottom:15px;"> ' +
                    ' <label class="text-right col-sm-6 col-md-6 control-label">副本数量</label>' +
                    '   <div class="col-sm-6 col-md-6">' +
                    ' <input class="form-control" label="副本数量" name="PrintNums" id="PrintNums" labtype="txt" addvisible="true"   type="number" value="@(PrintNum)" oninput="if(value.length>2)value=value.slice(0,2)" >' +
                    '</div>' +
                    '</div>' +
                    '   <div class="clearfix layer-area" style="padding-bottom:15px;"> ' +
                    '<label class="text-right col-sm-6 col-md-6 control-label">打印主体资料</label>' +
                    '<div class="col-sm-6 col-md-6">' +
                    '<select name="zhutiziliao" id="zhutiziliao" class="form-control">' +
                    '<option value="0">是</option>' +
                    '<option value="1">否</option>' +
                    '</select>' +
                    '</div>' +
                    '</div>',
                yes: function (index, layero) {
                    var zhutiziliao = $('#zhutiziliao').val();
                    if (zhutiziliao == "0") {
                        $('#zhuti').show();
                    } else {
                        $('#zhuti').hide();
                    }
                    var a = parseInt($('#PrintNums').val()) ;
                      var pt = document.getElementById("page1").innerHTML;
        pt =  pt.replace("质疑函(正本)","质疑函(副本)");
        var a=  @PrintNum;
        if (a > 0) {
            $('#content').append(' <div id ="fuben"> </div >');
            for (var i = 0; i < a; i++) {
                $('#content').append(' <div style="page-break-after:always;">' + pt +' </div>');
                $('#fuben').append(' <div style="page-break-after:always;">' + pt +' </div>');
            }
        }
            }
            function printWin() {
                var oWin = window.open("", "_blank");
                var pt = document.getElementById("content").innerHTML;
                var pta = document.getElementById("content").innerHTML;
                    $('#fuben').remove();
                oWin.document.write(pt);
                oWin.document.write(pta);
                oWin.focus();
                oWin.document.close();
                oWin.print();
                oWin.close();
                return false;
                    oWin.close();
                    layer.close(index);
                    $('#zhuti').hide();
                    return false;
                }
            })
            }
        function daochuword() {
            $("#content").wordExport("质疑函@(Html.Raw(Model.GysName))");                  //fileName为导出的word文件的命名,content为要导出的html内容容器
             var index  = layer.open({
                title: '打印设置'
                , btn: ['提交', '关闭']
                , content: '   <div class="clearfix layer-area" style="padding-bottom:15px;"> ' +
                    ' <label class="text-right col-sm-6 col-md-6 control-label">副本数量</label>' +
                    '   <div class="col-sm-6 col-md-6">' +
                    ' <input class="form-control" label="副本数量" name="PrintNums" id="PrintNums" labtype="txt" addvisible="true"   type="number" value="0" oninput="if(value.length>2)value=value.slice(0,2)" >' +
                    '</div>' +
                    '</div>' +
                    '   <div class="clearfix layer-area" style="padding-bottom:15px;"> ' +
                    '<label class="text-right col-sm-6 col-md-6 control-label">打印主体资料</label>' +
                    '<div class="col-sm-6 col-md-6">' +
                    '<select name="zhutiziliao" id="zhutiziliao" class="form-control">' +
                    '<option value="0">是</option>' +
                    '<option value="1">否</option>' +
                    '</select>' +
                    '</div>' +
                    '</div>',
                yes: function (index, layero) {
                    var zhutiziliao = $('#zhutiziliao').val();
                    if (zhutiziliao == "0") {
                        $('#zhuti').show();
                    } else {
                        $('#zhuti').hide();
                    }
                    var a = parseInt($('#PrintNums').val()) ;
                      var pt = document.getElementById("page1").innerHTML;
        pt =  pt.replace("质疑函(正本)","质疑函(副本)");
        if (a > 0) {
            $('#content').append(' <div id ="fuben"> </div >');
            for (var i = 0; i < a; i++) {
                $('#fuben').append(' <div style="page-break-after:always;">' + pt +' </div>');
            }
            }
               $("#content").wordExport("质疑函@(Html.Raw(Model.GysName))");                  //fileName为导出的word文件的命名,content为要导出的html内容容器
                    $('#fuben').remove();
                    layer.close(index);
                    $('#zhuti').hide();
                    return false;
                }
            })
        }
zhengcaioa/zhengcaioa/Views/CooperOrder/Printtousushu.cshtml
@@ -18,6 +18,24 @@
    List<TComplaintItemDTO> complaintItemDTOs = Model.complaintItemDTOs;
    int PrintNum = Model.PrintNum.HasValue ? Model.PrintNum.Value : 0;
 ResultDataEntity<SysAttachmentDTO> yinyezhizhao = ViewBag.yinyezhizhao as ResultDataEntity<SysAttachmentDTO>; //营业执照
    List<SysAttachmentDTO> yinyezhizhaosssss = new List<SysAttachmentDTO>();
    if (yinyezhizhao.DataList != null)
    {
        yinyezhizhaosssss = yinyezhizhao.DataList;
    }
    ResultDataEntity<SysAttachmentDTO> shenfenzheng = ViewBag.shenfenzheng as ResultDataEntity<SysAttachmentDTO>; //法人身份证
    List<SysAttachmentDTO> shenfenzhengsssss = new List<SysAttachmentDTO>();
    if (shenfenzheng.DataList != null)
    {
        shenfenzhengsssss = shenfenzheng.DataList;
    }
 CooperatecustomCustomerDTO cooperatecustomCustomerDTO = ViewBag.cooperatecustomCustomerDTO as CooperatecustomCustomerDTO; //客户
}
@{
    Layout = null;
@@ -76,7 +94,7 @@
    <form id="formtest">
        <div class="wrapper wrapper-content" id="ibox-content" style="padding:15px;">
            <div class="row">
                <div id="content" style="overflow-y:auto;height:100%;background: #fff;width:850px; margin: 0 auto;">
                <div id="content" style="overflow-x:hidden;  overflow-y:auto;height:100%;background: #fff;width:850px; margin: 0 auto;">
                    <style type="text/css">
                        table {
                            width: 595px;
@@ -89,7 +107,7 @@
                        span {
                            font-size: 16pt;
                            display: inline;
                          /*  border-bottom: 1px dashed #111;*/
                            /*  border-bottom: 1px dashed #111;*/
                        }
                        s22pan:after {
@@ -97,7 +115,7 @@
                            display: inline;
                            width: 100%;
                            margin-top: -5px;
                           /* border-bottom: 1px dashed #111;*/
                            /* border-bottom: 1px dashed #111;*/
                        }
                    </style>
                    <div id="page1" style="page-break-after:always;">
@@ -106,14 +124,14 @@
                                <td colspan="2" style="font-size:29.3px;text-align:center">投诉书(正本)</td>
                            </tr>
                            <tr>
                                <td colspan="2" ><b>一、投诉相关主体基本信息</b></td>
                                <td colspan="2"><b>一、投诉相关主体基本信息</b></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">投诉人:<span style="width:460px;">@Model.TsrName</span></td>
                            </tr>
                            <tr>
                                <td width="60%" align="left">地址:<span style="width:290px;">@Model.TsrAddress</span></td>
                                <td width="40%" align="left">@(string.IsNullOrEmpty(Model.TsrPostcode)?"":"邮编:")<span style="width:160px;">@Model.TsrPostcode</span></td>
                                <td colspan="2" align="left">地址:<span style="width:290px;">@Model.TsrAddress</span>  &nbsp; &nbsp;  @(string.IsNullOrEmpty(Model.TsrPostcode)?"":"邮编:")<span style="width:160px;">@Model.TsrPostcode</span></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">法定代表人/主要负责人:<span style="width:460px;">@Model.TsrCorporation</span></td>
@@ -126,46 +144,43 @@
                            @for (int i = 0; i < complaintShouquandaibiaoDTOs.Count; i++)
                            {
                                <tr>
                                    <td colspan="2" align="left">授权代表@(i!=0?(i+""):""):<span style="width:480px;">@complaintShouquandaibiaoDTOs[i].Shouquandaibiao </span></td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="left">联系电话@(i!=0?(i+""):""):<span style="width:480px;">@complaintShouquandaibiaoDTOs[i].Lianxidianhua </span></td>
                                </tr>
                                <tr>
                                    <td align="left">地址@(i!=0?(i+""):""):<span style="width:290px;">@complaintShouquandaibiaoDTOs[i].Dizhi </span></td>
                                    <td align="left">@(string.IsNullOrEmpty(complaintShouquandaibiaoDTOs[i].Youbian)?"":"邮编:")@(i!=0?(i+""):"")<span style="width:160px;">@complaintShouquandaibiaoDTOs[i].Youbian </span></td>
                                </tr>
                            <tr>
                                <td colspan="2" align="left">授权代表@(i!=0?(i+""):""):<span style="width:480px;">@complaintShouquandaibiaoDTOs[i].Shouquandaibiao </span></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">联系电话@(i!=0?(i+""):""):<span style="width:480px;">@complaintShouquandaibiaoDTOs[i].Lianxidianhua </span></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">地址@(i!=0?(i+""):""):<span style="width:290px;">@complaintShouquandaibiaoDTOs[i].Dizhi </span>&nbsp; &nbsp; @(string.IsNullOrEmpty(complaintShouquandaibiaoDTOs[i].Youbian)?"":"邮编:")@(i!=0?(i+""):"")<span style="width:160px;">@complaintShouquandaibiaoDTOs[i].Youbian </span></td>
                            </tr>
                            }
                            @for (int i = 0; i < complaintRespondentDTOs.Count; i++)
                            {
                                if (complaintRespondentDTOs.Count == 1)
                                {
                                    <tr>
                                        <td colspan="2" align="left">被投诉人:<span style="width:480px;">@complaintRespondentDTOs[i].Respondent </span></td>
                                    </tr>
                                    <tr>
                                        <td align="left">地址:<span style="width:290px;">@complaintRespondentDTOs[i].Address </span></td>
                                        <td align="left">@(string.IsNullOrEmpty(complaintRespondentDTOs[i].Postcode)?"":"邮编:")<span style="width:160px;">@complaintRespondentDTOs[i].Postcode </span></td>
                                    </tr>
                                    <tr>
                                        <td align="left">联系人:<span style="width:290px;">@complaintRespondentDTOs[i].Contacts </span></td>
                                        <td align="left">联系电话:<span style="width:160px;">@complaintRespondentDTOs[i].Phone </span></td>
                                    </tr>
                            <tr>
                                <td colspan="2" align="left">被投诉人:<span style="width:480px;">@complaintRespondentDTOs[i].Respondent </span></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">地址:<span style="width:290px;">@complaintRespondentDTOs[i].Address </span>&nbsp; &nbsp; @(string.IsNullOrEmpty(complaintRespondentDTOs[i].Postcode)?"":"邮编:")<span style="width:160px;">@complaintRespondentDTOs[i].Postcode </span></td>
                            </tr>
                            <tr>
                                <td align="left" width="50%">联系人:<span style="width:290px;">@complaintRespondentDTOs[i].Contacts </span></td>
                                <td align="left" width="50%">联系电话:<span style="width:160px;">@complaintRespondentDTOs[i].Phone </span></td>
                            </tr>
                                }
                                else
                                {
                                    <tr>
                                        <td colspan="2" align="left">被投诉人@(i+1):<span style="width:480px;">@complaintRespondentDTOs[i].Respondent </span></td>
                                    </tr>
                                    <tr>
                                        <td align="left">地址@(i+1):<span style="width:290px;">@complaintRespondentDTOs[i].Address </span></td>
                                        <td align="left">@(string.IsNullOrEmpty(complaintRespondentDTOs[i].Postcode)?"":"邮编:")@(i+1):<span style="width:160px;">@complaintRespondentDTOs[i].Postcode </span></td>
                                    </tr>
                                    <tr>
                                        <td align="left">联系人@(i+1):<span style="width:290px;">@complaintRespondentDTOs[i].Contacts </span></td>
                                        <td align="left">联系电话@(i+1):<span style="width:160px;">@complaintRespondentDTOs[i].Phone </span></td>
                                    </tr>
                            <tr>
                                <td colspan="2" align="left">被投诉人@(i+1):<span style="width:480px;">@complaintRespondentDTOs[i].Respondent </span></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">地址@(i+1):<span style="width:290px;">@complaintRespondentDTOs[i].Address </span>&nbsp; &nbsp;@(string.IsNullOrEmpty(complaintRespondentDTOs[i].Postcode)?"":"邮编:")@(i+1):<span style="width:160px;">@complaintRespondentDTOs[i].Postcode </span></td>
                            </tr>
                            <tr>
                                <td align="left" width="50%">联系人@(i+1):<span style="width:290px;">@complaintRespondentDTOs[i].Contacts </span></td>
                                <td align="left" width="50%">联系电话@(i+1):<span style="width:160px;">@complaintRespondentDTOs[i].Phone </span></td>
                            </tr>
                                }
@@ -174,44 +189,41 @@
                            {
                                if (complaintGongyingshangDTOs.Count == 1)
                                {
                                    <tr>
                                        <td colspan="2" align="left">相关供应商:<span style="width:480px;">@complaintGongyingshangDTOs[i].Gongytingshang </span></td>
                                    </tr>
                                    <tr>
                                        <td align="left">地址:<span style="width:290px;">@complaintGongyingshangDTOs[i].Dizhi </span></td>
                                        <td align="left">@(string.IsNullOrEmpty(complaintGongyingshangDTOs[i].Youbian)?"":"邮编:")<span style="width:160px;">@complaintGongyingshangDTOs[i].Youbian </span></td>
                                    </tr>
                                    <tr>
                                        <td align="left">联系人:<span style="width:290px;">@complaintGongyingshangDTOs[i].Dizhi </span></td>
                                        <td align="left">联系电话:<span style="width:160px;">@complaintGongyingshangDTOs[i].Youbian </span></td>
                                    </tr>
                            <tr>
                                <td colspan="2" align="left">相关供应商:<span style="width:480px;">@complaintGongyingshangDTOs[i].Gongytingshang </span></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">地址:<span style="width:290px;">@complaintGongyingshangDTOs[i].Dizhi </span>&nbsp; &nbsp;@(string.IsNullOrEmpty(complaintGongyingshangDTOs[i].Youbian)?"":"邮编:")<span style="width:160px;">@complaintGongyingshangDTOs[i].Youbian </span></td>
                            </tr>
                            <tr>
                                <td align="left" width="50%">联系人:<span style="width:290px;">@complaintGongyingshangDTOs[i].Dizhi </span></td>
                                <td align="left" width="50%">联系电话:<span style="width:160px;">@complaintGongyingshangDTOs[i].Youbian </span></td>
                            </tr>
                                }
                                else
                                {
                                    <tr>
                                        <td colspan="2" align="left">相关供应商@(i+1):<span style="width:480px;">@complaintGongyingshangDTOs[i].Gongytingshang </span></td>
                                    </tr>
                                    <tr>
                                        <td align="left">地址@(i+1):<span style="width:290px;">@complaintGongyingshangDTOs[i].Dizhi </span></td>
                                        <td align="left">@(string.IsNullOrEmpty(complaintGongyingshangDTOs[i].Youbian)?"":"邮编:")@(i+1):<span style="width:160px;">@complaintGongyingshangDTOs[i].Youbian </span></td>
                                    </tr>
                                    <tr>
                                        <td align="left">联系人@(i+1):<span style="width:290px;">@complaintGongyingshangDTOs[i].Dizhi </span></td>
                                        <td align="left">联系电话@(i+1):<span style="width:160px;">@complaintGongyingshangDTOs[i].Youbian </span></td>
                                    </tr>
                            <tr>
                                <td colspan="2" align="left">相关供应商@(i+1):<span style="width:480px;">@complaintGongyingshangDTOs[i].Gongytingshang </span></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">地址@(i+1):<span style="width:290px;">@complaintGongyingshangDTOs[i].Dizhi </span>&nbsp; &nbsp;@(string.IsNullOrEmpty(complaintGongyingshangDTOs[i].Youbian)?"":"邮编:")@(i+1):<span style="width:160px;">@complaintGongyingshangDTOs[i].Youbian </span></td>
                            </tr>
                            <tr>
                                <td align="left" width="50%">联系人@(i+1):<span style="width:290px;">@complaintGongyingshangDTOs[i].Dizhi </span></td>
                                <td align="left" width="50%">联系电话@(i+1):<span style="width:160px;">@complaintGongyingshangDTOs[i].Youbian </span></td>
                            </tr>
                                }
                            }
                            <tr>
                                <td colspan="2" ><b>二、投诉项目基本情况</b></td>
                                <td colspan="2"><b>二、投诉项目基本情况</b></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">采购项目的名称:<span style="width:415px;font-size:13pt;">@Model.XmName </span></td>
                            </tr>
                            <tr>
                                <td align="left">采购项目的编号:<span style="width:180px;">@Model.XmCode </span></td>
                                <td align="left">包号:<span style="width:160px;">@Model.XmPackage </span></td>
                                <td colspan="2" align="left">采购项目的编号:<span style="width:180px;">@Model.XmCode </span>&nbsp;&nbsp;包号:<span style="width:160px;">@Model.XmPackage </span></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">采购人名称:<span style="width:460px;">@Model.PurchaserName </span></td>
@@ -228,18 +240,18 @@
                                <td align="left">公告期限:<span style="width:160px;">@Model.ResultnoticeDateName </span></td>
                            </tr>
                            <tr>
                                <td colspan="2" ><b>三、质疑基本情况</b></td>
                                <td colspan="2"><b>三、质疑基本情况</b></td>
                            </tr>
                            <tr>
                                <td align="left" colspan="2">
                                    投诉人于<span>@(Model.ChallengeDateName)</span>,向<span>@(Model.Questioned)</span>提出质疑,质疑事项为:
                                    @if (string.IsNullOrEmpty(Model.SqdbId))
                                    {
                                        @Html.Raw("<span>                          </span>");
                                    @Html.Raw("<span>                          </span>");
                                    }
                                    else
                                    {
                                        @Html.Raw("<span>" + @Model.SqdbId + "</span>");
                                    @Html.Raw("<span>" + @Model.SqdbId + "</span>");
                                    }
@@ -254,7 +266,7 @@
                            </tr>
                            <tr>
                                <td colspan="2"  ><b>四、投诉事项具体内容</b></td>
                                <td colspan="2"><b>四、投诉事项具体内容</b></td>
                            </tr>
                            @{
@@ -262,82 +274,94 @@
                                {
                                    if (complaintItemDTOs.Count == 1)
                                    {
                                        <tr>
                                            <td colspan="2">
                                                投诉事项:<span style="text-indent:10px">@complaintItemDTOs[i].QuestionName </span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                事实依据: @Html.Raw("<span>" + (string.IsNullOrEmpty(complaintItemDTOs[i].Evidential) ? "" : complaintItemDTOs[i].Evidential.Replace(" ", "&nbsp;").Replace("\r", "<br/>")) + "</span>");
                                            </td>
                                        </tr>
                                <tr>
                                    <td colspan="2">
                                        投诉事项:<span style="text-indent:10px">@complaintItemDTOs[i].QuestionName </span>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        事实依据: @Html.Raw("<span>" + (string.IsNullOrEmpty(complaintItemDTOs[i].Evidential) ? "" : complaintItemDTOs[i].Evidential.Replace(" ", "&nbsp;").Replace("\r", "<br/>")) + "</span>");
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        法律依据:
                                        @for (int j = 0; j < complaintItemDTOs[i].sysCodeDtls.Count; j++)
                                        {
                                                {
                                                    var sssss = "";
                                                    if (complaintItemDTOs[i].sysCodeDtls[j].CodeSn.IndexOf("【")>=0)
                                                    {
                                                        sssss = "《" + complaintItemDTOs[i].sysCodeDtls[j].CodeSn.Insert(complaintItemDTOs[i].sysCodeDtls[j].CodeSn.IndexOf("【"), "》");
                                                    }
                                                    else
                                                    {
                                                        sssss = "《" + complaintItemDTOs[i].sysCodeDtls[j].CodeSn + "》";
                                                    }
                                                    if (j != (complaintItemDTOs[i].sysCodeDtls.Count - 1))
                                                    {
                                        @Html.Raw(sssss + complaintItemDTOs[i].sysCodeDtls[j].Classify2 + "、")
                                                    }
                                                    else
                                                    {
                                        @Html.Raw(sssss + complaintItemDTOs[i].sysCodeDtls[j].Classify2)
                                                    }
                                                }
                                    </td>
                                </tr>
                                            if (complaintItemDTOs[i].sysCodeDtls.Count == 1)
                                            {
                                                <tr>
                                                    <td colspan="2">
                                                        @Html.Raw("法律依据:<span>《" + complaintItemDTOs[i].sysCodeDtls[j].CodeSn + "》" + complaintItemDTOs[i].sysCodeDtls[j].Classify2 + ":" + complaintItemDTOs[i].sysCodeDtls[j].Contents + "</span>")
                                                    </td>
                                                </tr>
                                            }
                                            else
                                            {
                                                <tr>
                                                    <td colspan="2">
                                                        @Html.Raw("法律依据" + (j + 1) + ":<span>《" + complaintItemDTOs[i].sysCodeDtls[j].CodeSn + "》" + complaintItemDTOs[i].sysCodeDtls[j].Classify2 + ":" + complaintItemDTOs[i].sysCodeDtls[j].Contents + "</span>")
                                                    </td>
                                                </tr>
                                            }
                                        }
                                    }
                                    else
                                    {
                                        <tr>
                                            <td colspan="2">
                                                投诉事项@((i+1)+""):<span style="text-indent:10px">@complaintItemDTOs[i].QuestionName </span>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td colspan="2">
                                                事实依据@((i+1)+""):@Html.Raw("<span>" + (string.IsNullOrEmpty(complaintItemDTOs[i].Evidential) ? "" : complaintItemDTOs[i].Evidential.Replace(" ", "&nbsp;").Replace("\r", "<br/>")) + "</span>");
                                            </td>
                                        </tr>
                                <tr>
                                    <td colspan="2">
                                        投诉事项@((i+1)+""):<span style="text-indent:10px">@complaintItemDTOs[i].QuestionName </span>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        事实依据@((i+1)+""):@Html.Raw("<span>" + (string.IsNullOrEmpty(complaintItemDTOs[i].Evidential) ? "" : complaintItemDTOs[i].Evidential.Replace(" ", "&nbsp;").Replace("\r", "<br/>")) + "</span>");
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2">
                                        法律依据:
                                        @for (int j = 0; j < complaintItemDTOs[i].sysCodeDtls.Count; j++)
                                        {
                                                {
                                                    var sssss = "";
                                                    if (complaintItemDTOs[i].sysCodeDtls[j].CodeSn.IndexOf("【") >= 0)
                                                    {
                                                        sssss = "《" + complaintItemDTOs[i].sysCodeDtls[j].CodeSn.Insert(complaintItemDTOs[i].sysCodeDtls[j].CodeSn.IndexOf("【"), "》");
                                                    }
                                                    else
                                                    {
                                                        sssss = "《" + complaintItemDTOs[i].sysCodeDtls[j].CodeSn + "》";
                                                    }
                                                    if (j != (complaintItemDTOs[i].sysCodeDtls.Count - 1))
                                                    {
                                        @Html.Raw(sssss + complaintItemDTOs[i].sysCodeDtls[j].Classify2 + "、")
                                                    }
                                                    else
                                                    {
                                        @Html.Raw(sssss + complaintItemDTOs[i].sysCodeDtls[j].Classify2)
                                                    }
                                                }
                                            if (complaintItemDTOs[i].sysCodeDtls.Count == 1)
                                            {
                                                <tr>
                                                    <td colspan="2">
                                                        @Html.Raw("法律依据:<span>《" + complaintItemDTOs[i].sysCodeDtls[j].CodeSn + "》" + complaintItemDTOs[i].sysCodeDtls[j].Classify2 + ":" + complaintItemDTOs[i].sysCodeDtls[j].Contents + "</span>")
                                                    </td>
                                                </tr>
                                            }
                                            else
                                            {
                                                <tr>
                                                    <td colspan="2">
                                                        @Html.Raw("法律依据" + (j + 1) + ":<span>《" + complaintItemDTOs[i].sysCodeDtls[j].CodeSn + "》" + complaintItemDTOs[i].sysCodeDtls[j].Classify2 + ":" + complaintItemDTOs[i].sysCodeDtls[j].Contents + "</span>")
                                                    </td>
                                                </tr>
                                            }
                                        }
                                    </td>
                                </tr>
                                    }
                                }
                            }
                            <tr>
                                <td colspan="2" ><b>五、与投诉事项相关的投诉请求</b></td>
                                <td colspan="2"><b>五、与投诉事项相关的投诉请求</b></td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">请求:<span>@Model.RequestInfoName</span></td>
@@ -350,12 +374,56 @@
                                <td align="left">公章:</td>
                            </tr>
                            <tr>
                                <td colspan="2" align="left">日期:@DateTime.Now.ToString("yyyy-MM-dd")</td>
                                <td colspan="2" align="left">日期:@Model.Modifytime.Value.ToString("yyyy年MM月dd日")</td>
                            </tr>
                        </table>
                    </div>
                    <div id="zhuti">
                        @{
                                        for (int i = 0; i < yinyezhizhaosssss.Count; i++)
                                        {
                            <div style="page-break-after:always;">
                                <img src="@yinyezhizhaosssss[i].Filepath" alt="" style="height: auto; max-width: 100%; ">
                            </div>
                                        }
                            for (int i = 0; i < shenfenzhengsssss.Count; i++)
                                        {
                            <div style="page-break-after:always;">
                                <img src="@shenfenzhengsssss[i].Filepath" alt="" style="height: auto; max-width: 100%; ">
                            </div>
                                        }
                        }
                        <div style="page-break-after:always;">
                            <table border="0" align="center" cellpadding="3" cellspacing="0">
                                <tr>
                                    <td colspan="2" style="font-size:29.3px;text-align:center">法定代表人资格证明书</td>
                                </tr>
                                <tr>
                                    <td colspan="2">兹证明&nbsp;  @(cooperatecustomCustomerDTO.FName)  &nbsp;在   &nbsp;@(cooperatecustomCustomerDTO.Name)  &nbsp; 任    &nbsp;@(cooperatecustomCustomerDTO.Zhiwu) &nbsp;   职务,是   &nbsp;@(cooperatecustomCustomerDTO.Name) &nbsp;  的法定代表人。</td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="left">&nbsp; &nbsp; 特此证明。</td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="height:50px"></td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="right">川印文化集团股份有限公司(公章)<img src="~/img/images/gongzhang.png?v=3" alt="" /></td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="right">日期:@Model.Modifytime.Value.ToString("yyyy年MM月dd日")</td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
@@ -380,33 +448,133 @@
    </form>
    <script type="text/javascript">
        var pt = document.getElementById("page1").innerHTML;
        pt = pt.replace("投诉书(正本)","投诉书(副本)");
        var a=  @PrintNum;
        $('#zhuti').hide();
        function printWin() {
         var index  = layer.open({
                title: '打印设置'
                , btn: ['提交', '关闭']
                , content: '   <div class="clearfix layer-area" style="padding-bottom:15px;"> ' +
                    ' <label class="text-right col-sm-6 col-md-6 control-label">副本数量</label>' +
                    '   <div class="col-sm-6 col-md-6">' +
                    ' <input class="form-control" label="副本数量" name="PrintNums" id="PrintNums" labtype="txt" addvisible="true"   type="number" value="@(PrintNum)" oninput="if(value.length>2)value=value.slice(0,2)" >' +
                    '</div>' +
                    '</div>' +
                    '   <div class="clearfix layer-area" style="padding-bottom:15px;"> ' +
                    '<label class="text-right col-sm-6 col-md-6 control-label">打印主体资料</label>' +
                    '<div class="col-sm-6 col-md-6">' +
                    '<select name="zhutiziliao" id="zhutiziliao" class="form-control">' +
                    '<option value="0">是</option>' +
                    '<option value="1">否</option>' +
                    '</select>' +
                    '</div>' +
                    '</div>',
                yes: function (index, layero) {
                    var zhutiziliao = $('#zhutiziliao').val();
                    if (zhutiziliao == "0") {
                        $('#zhuti').show();
                    } else {
                        $('#zhuti').hide();
                    }
                    var a = parseInt($('#PrintNums').val()) ;
                      var pt = document.getElementById("page1").innerHTML;
                    pt = pt.replace("投诉书(正本)","投诉书(副本)");
        if (a > 0) {
            $('#content').append(' <div id ="fuben"> </div >');
            for (var i = 0; i < a; i++) {
                $('#content').append(' <div style="page-break-after:always;">' + pt +' </div>');
                $('#fuben').append(' <div style="page-break-after:always;">' + pt +' </div>');
            }
        }
            }
            function printWin() {
                var oWin = window.open("", "_blank");
                var pt = document.getElementById("content").innerHTML;
                var pta = document.getElementById("content").innerHTML;
                    $('#fuben').remove();
                oWin.document.write(pt);
                oWin.document.write(pta);
                oWin.focus();
                oWin.document.close();
                oWin.print();
                oWin.close();
                return false;
                    oWin.close();
                    layer.close(index);
                    $('#zhuti').hide();
                    return false;
                }
            })
            }
        function daochuword() {
            $("#content").wordExport("投诉书@(Html.Raw(Model.TsrName))");                  //fileName为导出的word文件的命名,content为要导出的html内容容器
             var index  = layer.open({
                title: '打印设置'
                , btn: ['提交', '关闭']
                , content: '   <div class="clearfix layer-area" style="padding-bottom:15px;"> ' +
                    ' <label class="text-right col-sm-6 col-md-6 control-label">副本数量</label>' +
                    '   <div class="col-sm-6 col-md-6">' +
                    ' <input class="form-control" label="副本数量" name="PrintNums" id="PrintNums" labtype="txt" addvisible="true"   type="number" value="0" oninput="if(value.length>2)value=value.slice(0,2)" >' +
                    '</div>' +
                    '</div>' +
                    '   <div class="clearfix layer-area" style="padding-bottom:15px;"> ' +
                    '<label class="text-right col-sm-6 col-md-6 control-label">打印主体资料</label>' +
                    '<div class="col-sm-6 col-md-6">' +
                    '<select name="zhutiziliao" id="zhutiziliao" class="form-control">' +
                    '<option value="0">是</option>' +
                    '<option value="1">否</option>' +
                    '</select>' +
                    '</div>' +
                    '</div>',
                yes: function (index, layero) {
                    var zhutiziliao = $('#zhutiziliao').val();
                    if (zhutiziliao == "0") {
                        $('#zhuti').show();
                    } else {
                        $('#zhuti').hide();
                    }
                    var a = parseInt($('#PrintNums').val()) ;
                      var pt = document.getElementById("page1").innerHTML;
                    pt = pt.replace("投诉书(正本)","投诉书(副本)");
        if (a > 0) {
            $('#content').append(' <div id ="fuben"> </div >');
            for (var i = 0; i < a; i++) {
                $('#fuben').append(' <div style="page-break-after:always;">' + pt +' </div>');
            }
            }
                    $("#content").wordExport("投诉书@(Html.Raw(Model.TsrName))");                  //fileName为导出的word文件的命名,content为要导出的html内容容器
                    $('#fuben').remove();
                    layer.close(index);
                    $('#zhuti').hide();
                    return false;
                }
            })
        }
zhengcaioa/zhengcaioa/Views/CooperatecustomCustomer/Edit.cshtml
@@ -13,7 +13,19 @@
    List<HrDeptDTO> DeptId = ViewData["DeptId"] as List<HrDeptDTO>; //部门
    ResultDataEntity<SysAttachmentDTO> yinyezhizhao = ViewBag.yinyezhizhao as ResultDataEntity<SysAttachmentDTO>; //营业执照
    List<SysAttachmentDTO> yinyezhizhaosssss = new List<SysAttachmentDTO>();
    if (yinyezhizhao.DataList != null)
    {
        yinyezhizhaosssss = yinyezhizhao.DataList;
    }
    ResultDataEntity<SysAttachmentDTO> shenfenzheng = ViewBag.shenfenzheng as ResultDataEntity<SysAttachmentDTO>; //法人身份证
    List<SysAttachmentDTO> shenfenzhengsssss = new List<SysAttachmentDTO>();
    if (shenfenzheng.DataList != null)
    {
        shenfenzhengsssss = shenfenzheng.DataList;
    }
    //string[] arrJobLevel = (Model.Zhuanjia ?? "").Split(',');
@@ -95,6 +107,8 @@
    @*<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>
    <link rel="stylesheet" href="~/viewerjs-master/dist/viewer.min.css">
    <script src="~/viewerjs-master/dist/viewer.min.js"></script>
</head>
<body class="gray-bg" style="overflow:auto">
    <form id="formtest">
@@ -376,7 +390,7 @@
                                </div>
                                <div class="clearfix layer-area" style="padding-bottom:15px;">
                                    <label class="text-right col-sm-1 col-md-1 control-label">联系电话</label>
                                    <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="Tel" id="Tel" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="true" type="text" value="@Model.Tel">
                                    </div>
@@ -467,6 +481,52 @@
                                        <textarea class="form-control bt" id="Remark" name="Remark" title="备注" isempty="" maxlength="4000" length="long">@Model.Remark</textarea>
                                    </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-2 col-md-2">
                                        <input type="file" name="fileyinyezhizhaosssss" id="fileyinyezhizhaosssss" multiple>
                                    </div>
                                </div>
                                <div id='file-list-display-yinyezhizhaosssss' style="width: 100%;text-align: left; background-color:white">
                                    @{
                                        for (int i = 0; i < yinyezhizhaosssss.Count; i++)
                                        {
                                            <div>
                                                <img src="@yinyezhizhaosssss[i].Filepath" alt="" style="width:200px;">     &nbsp;  <a href='javascript: void (0);' onclick='js_method(this,"@yinyezhizhaosssss[i].Id")'><i class='glyphicon glyphicon-remove'></i> </a>
                                                <input type="hidden" name="attachmentid" value="@yinyezhizhaosssss[i].Id" />
                                                <input type="hidden" name="Filepath" value="@yinyezhizhaosssss[i].Filepath" />
                                                <input type="hidden" name="Filefullname" value="@yinyezhizhaosssss[i].Filefullname" />
                                                <input type="hidden" name="AttObj" value="@yinyezhizhaosssss[i].AttObj" />
                                            </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-2 col-md-2">
                                        <input type="file" name="fileshenfenzhengsssss" id="fileshenfenzhengsssss" multiple>
                                    </div>
                                </div>
                                <div id='file-list-display-shenfenzhengsssss' style="width: 100%;text-align: left; background-color:white">
                                    @{
                                        for (int i = 0; i < shenfenzhengsssss.Count; i++)
                                        {
                                            <div>
                                                <img src="@shenfenzhengsssss[i].Filepath" alt="" style="width:200px;">     &nbsp;  <a href='javascript: void (0);' onclick='js_method(this,"@shenfenzhengsssss[i].Id")'><i class='glyphicon glyphicon-remove'></i> </a>
                                                <input type="hidden" name="attachmentid" value="@shenfenzhengsssss[i].Id" />
                                                <input type="hidden" name="Filepath" value="@shenfenzhengsssss[i].Filepath" />
                                                <input type="hidden" name="Filefullname" value="@shenfenzhengsssss[i].Filefullname" />
                                                <input type="hidden" name="AttObj" value="@shenfenzhengsssss[i].AttObj" />
                                            </div>
                                        }
                                    }
                                </div>
                            </div>
                        </div>
                    </div>
@@ -520,7 +580,158 @@
        var attachment_id = 0; // 附件id
        var imgLoad = new Object();
        var viewer1 = new Viewer(document.getElementById('file-list-display-yinyezhizhaosssss'));
        var viewer2 = new Viewer(document.getElementById('file-list-display-shenfenzhengsssss'));
        $("#fileyinyezhizhaosssss").on("change", function () {
            var fileM = document.querySelector("#fileyinyezhizhaosssss");
            //获取文件对象,files是文件选取控件的属性,存储的是文件选取控件选取的文件对象,类型是一个数组
            var fileList = fileM.files;
            if (!fileList || fileList.length == 0) {
                toastr.warning("请选择文件!");
                return
            }
            //创建formdata对象,formData用来存储表单的数据,表单数据时以键值对形式存储的。
            var formData = new FormData();
            for (var i = 0; i < fileList.length; i++) {
                var file = fileList[i];
                var fileName = file.name; //文件名
                var extName = fileName.substring(fileName.lastIndexOf('.') + 1);    //后缀名
                var arr = ["jpeg", "jpg", "png", "JPEG", "JPG", "PNG"];
                if (arr.indexOf(extName) == -1) {
                    toastr.warning("只能上传jpeg,jpg,png图片");
                    return;
                }
                var filePath = file.value;    //js中无法获取文件的真是路径
                var fileSize = file.size
                var isLt10M = fileSize / 1024 / 1024 < 10
                if (!isLt10M) {
                    toastr.warning(file.name + " 上传文件大小不能超过10M");
                    file = ''
                    return
                }
                formData.append('files', file, file.name);
            }
            $.ajax({
                url: "/Systemsetting/fileUpTongYong/",
                type: "post",
                dataType: "json",
                data: formData,
                async: false,
                cache: false,
                contentType: false,
                processData: false,
                success: function (data) {
                    if (data.Result) {
                        parent.layer.msg('上传成功', { icon: 6 });
                        var fileListDisplay = $("#file-list-display-yinyezhizhaosssss");
                        if (data.DataList && data.DataList.length > 0) {
                            for (var i = 0; i < data.DataList.length; i++) {
                                var aaa = "<div>  <img src='" + data.DataList[i].Filepath + "' alt='' style='width:200px;'>   &nbsp;  <a   href='javascript: void (0);' onclick='js_method(this,\"\")' ><i class='glyphicon glyphicon-remove'></i> </a> "
                                aaa += ' <input type="hidden"  name="attachmentid" value="" />   ';
                                aaa += ' <input type="hidden"  name="Filepath" value="' + data.DataList[i].Filepath + '" />  ';
                                aaa += '  <input type="hidden"  name="Filefullname" value="' + data.DataList[i].Filefullname + '" />  ';
                                aaa += '  <input type="hidden"  name="AttObj" value="Cooperyinyezhizhao" />  ';
                                aaa += "</div>";
                                fileListDisplay.append(aaa);
                            }
                        }
                        //$("#Logo1").attr("src", data.Message);
                        //$("#Logo").val(data.Message);
                    }
                    else {
                        toastr.error("上传失败");
                    }
                },
            });
        });
        $("#fileshenfenzhengsssss").on("change", function () {
            var fileM = document.querySelector("#fileshenfenzhengsssss");
            //获取文件对象,files是文件选取控件的属性,存储的是文件选取控件选取的文件对象,类型是一个数组
            var fileList = fileM.files;
            if (!fileList || fileList.length == 0) {
                toastr.warning("请选择文件!");
                return
            }
            //创建formdata对象,formData用来存储表单的数据,表单数据时以键值对形式存储的。
            var formData = new FormData();
            for (var i = 0; i < fileList.length; i++) {
                var file = fileList[i];
                var fileName = file.name; //文件名
                var extName = fileName.substring(fileName.lastIndexOf('.') + 1);    //后缀名
                var arr = ["jpeg", "jpg", "png", "JPEG", "JPG", "PNG"];
                if (arr.indexOf(extName) == -1) {
                    toastr.warning("只能上传jpeg,jpg,png图片");
                    return;
                }
                var filePath = file.value;    //js中无法获取文件的真是路径
                var fileSize = file.size
                var isLt10M = fileSize / 1024 / 1024 < 10
                if (!isLt10M) {
                    toastr.warning(file.name + " 上传文件大小不能超过10M");
                    file = ''
                    return
                }
                formData.append('files', file, file.name);
            }
            $.ajax({
                url: "/Systemsetting/fileUpTongYong/",
                type: "post",
                dataType: "json",
                data: formData,
                async: false,
                cache: false,
                contentType: false,
                processData: false,
                success: function (data) {
                    if (data.Result) {
                        parent.layer.msg('上传成功', { icon: 6 });
                        var fileListDisplay = $("#file-list-display-shenfenzhengsssss");
                        if (data.DataList && data.DataList.length > 0) {
                            for (var i = 0; i < data.DataList.length; i++) {
                                var aaa = "<div>  <img src='" + data.DataList[i].Filepath + "' alt='' style='width:200px;'>   &nbsp;  <a   href='javascript: void (0);' onclick='js_method(this,\"\")' ><i class='glyphicon glyphicon-remove'></i> </a> "
                                aaa += ' <input type="hidden"  name="attachmentid" value="" />   ';
                                aaa += ' <input type="hidden"  name="Filepath" value="' + data.DataList[i].Filepath + '" />  ';
                                aaa += '  <input type="hidden"  name="Filefullname" value="' + data.DataList[i].Filefullname + '" />  ';
                                aaa += '  <input type="hidden"  name="AttObj" value="Cooperashenfenzheng" />  ';
                                aaa += "</div>";
                                fileListDisplay.append(aaa);
                            }
                        }
                        //$("#Logo1").attr("src", data.Message);
                        //$("#Logo").val(data.Message);
                    }
                    else {
                        toastr.error("上传失败");
                    }
                },
            });
        });
        var delPosition = function () {
@@ -587,7 +798,11 @@
                return;
            }
            if ($.trim($("#Tel").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",
@@ -750,7 +965,42 @@
                    parent.layer.msg('失败', { icon: 5 });
                }
            });
        });
          });
        function js_method(obj, id) {
            if (id && id != "") {
                $.ajax({
                    url: "/Systemsetting/fileUpremove?id=" + id,
                    type: "post",
                    dataType: "json",
                    data: "",
                    async: false,
                    cache: false,
                    contentType: false,
                    processData: false,
                    success: function (data) {
                        if (data.Result) {
                            $(obj).parent().remove();
                            toastr.error("删除成功");
                        }
                        else {
                            toastr.error("删除失败");
                        }
                    },
                });
            } else {
                $(obj).parent().remove();
            }
        }
        function _pageAutoClose() {
            parent.window._reloadPageData();
zhengcaioa/zhengcaioa/Views/FiOrderrecievemoney/Edit.cshtml
@@ -110,7 +110,8 @@
                                    <label class="text-left col-sm-1 col-md-1 control-label"> @Model.YishouMoney.ToString("F2") </label>
                                    <label class="text-left col-sm-1 col-md-1 control-label">   </label>
                                    <label class="text-right col-sm-1 col-md-1 control-label">未收款(元)</label>
                                    <label id="WeishouMoney" class="text-left col-sm-1 col-md-1 control-label"> @Model.WeishouMoney.ToString("F2") </label>
                                    <label id="WeishouMoney1" class="text-left col-sm-1 col-md-1 control-label"> @Model.WeishouMoney.ToString("F2") </label>
                                    <input type="hidden" id="WeishouMoney" name="WeishouMoney" value="@Model.WeishouMoney.ToString("F2")" />
                                    <label class="text-left col-sm-1 col-md-1 control-label">  </label>
                                </div>
                                <div class="clearfix layer-area" style="padding-bottom:15px;">
@@ -303,7 +304,7 @@
                return;
            }
            if (parseFloat($("#Recievemoney").val()) > parseFloat($("#WeishouMoney").html().trim())) {
            if (parseFloat($("#Recievemoney").val()) > parseFloat($("#WeishouMoney1").html().trim())) {
                
                toastr.warning("本次收款金额大于订单未付款!为了您的账务正确性请重新复查!");
                return;
zhengcaioa/zhengcaioa/Views/SysCode/Editlaw.cshtml
@@ -144,20 +144,14 @@
                                                <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-2 col-md-2" style="width:5%;">
                                                        <input class="form-control" label="编码"   name="CodeSns" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="@sysCodeDtlEntities[i].CodeSn">
                                                        <input class="form-control" label="编码" name="CodeSns" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="@sysCodeDtlEntities[i].CodeSn">
                                                        <input type="hidden" name="Id" value="@Model.Id" />
                                                    </div>
                                                    @if (i == 0)
                                                    {
                                                        <div class="col-sm-1 col-md-1" style="width:80px;">
                                                            <button type="button" class="addBtn" onclick="addBtn(this)" data-type="2" style="width:32px">+</button>
                                                            <button type="button" class="delBtn" onclick="delBtn(this)" data-type="2" style="width:32px">-</button>
                                                        </div>
                                                    }
                                                </div>
@@ -167,7 +161,7 @@
                                                    <div class="col-sm-10 col-md-10">
                                                        @*<input class="form-control" label="法律名称" id="Comments" name="Comments" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="100" ismust="true" type="text" value="@Model.Comments">*@
                                                        <select  class="form-control" name="Commentss" data-placeholder="选择 序列 ...">
                                                        <select class="form-control" name="Commentss" data-placeholder="选择 序列 ...">
                                                            <option value="" hassubinfo="true">请选择</option>
                                                            @foreach (var item in falv)
                                                            {
@@ -201,23 +195,30 @@
                                                    <div class="col-sm-10 col-md-10">
                                                        @*<input class="form-control" label="内容" id="Contents" name="Contents" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="300" ismust="true" type="text" value="@Model.Contents">*@
                                                        <textarea class="form-control bt"   name="Contentss" title="内容" isempty="" maxlength="300" length="long" style="resize:none;overflow-y:hidden; min-height:60px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'">@sysCodeDtlEntities[i].Contents</textarea>
                                                        <textarea class="form-control bt" name="Contentss" title="内容" isempty="" maxlength="300" length="long" style="resize:none;overflow-y:hidden; min-height:60px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'">@sysCodeDtlEntities[i].Contents</textarea>
                                                    </div>
                                                </div>
                                                <div class="clearfix layer-area" style="padding-bottom:15px;display:none;">
                                                    <label class="text-right col-sm-1 col-md-1 control-label">排序</label>
                                                    <div class="col-sm-2 col-md-2" style="width:5%;">
                                                        <input class="form-control" label="排序"  name="Sorts" labtype="txt" addvisible="true" editvisible="true" maxlength="100" reg="" ismust="flase" type="text" value="@sysCodeDtlEntities[i].Sort" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
                                                        <input class="form-control" label="排序" name="Sorts" labtype="txt" addvisible="true" editvisible="true" maxlength="100" reg="" ismust="flase" type="text" value="@sysCodeDtlEntities[i].Sort" oninput="if(value.length>8)value=value.slice(0,18)" onkeyup="value=value.toString().match(/^\d+(?:\.\d{0,2})?/)">
                                                    </div>
                                                </div>
                                            </div>
                                        }
                                    </div>
                                    <div class="clearfix layer-area" style="padding-bottom:15px;">
                                        <div class="col-sm-1 col-md-1">
                                            <button type="button" class="addBtn" onclick="addBtn(this)" data-type="2" style="width:32px">+</button>
                                            <button type="button" class="delBtn" onclick="delBtn(this)" data-type="2" style="width:32px">-</button>
                                        </div>
                                    </div>
zhengcaioa/zhengcaioa/Views/SysCode/Indexlaw.cshtml
@@ -74,7 +74,49 @@
                toastr.error("删除成功");
        /**/
    }
}
        }
        function _afterLoadData() {
            //得到显示到界面的id集合
            var mya = $("#jqGrid").getDataIDs();
            //当前显示多少条
            var length = mya.length;
            for (var i = 0; i < length; i++) {
                //从上到下获取一条信息
                var before = $("#jqGrid").jqGrid('getRowData', mya[i]);
                //定义合并行数
                var rowSpanTaxCount = 1;
                for (j = i + 1; j <= length; j++) {
                    console.log("length===========" + length);
                    //和上边的信息对比 如果值一样就合并行数+1 然后设置rowspan 让当前单元格隐藏
                    var end = $("#jqGrid").jqGrid('getRowData', mya[j]);
                    if (before["Classify1Name"] == end["Classify1Name"]) {
                        rowSpanTaxCount++;
                        $("#jqGrid").setCell(mya[j], "Classify1Name", '', { display: 'none' });
                    } else {
                        rowSpanTaxCount = 1;
                        break;
                    }
                    if (rowSpanTaxCount != 1) {
                         $("#jqGrid").find('[aria-describedby="jqGrid_Classify1Name"]').eq(i).attr('rowspan',  rowSpanTaxCount  );
                    }
                }
            }
        }
    </script>
}
zhengcaioa/zhengcaioa/appsettings.Development.json
@@ -24,6 +24,7 @@
  "GetYGYaoQingYonghu": "/api/ZCBackgRound/GetYGYaoQingYonghu",
  "yaoqingma": "https://applet.51zhengcai.com:8088/code/",
  "PassPoints": "/api/UserPoints/PassPoints",
  "OaWriteTrainClassOder": "/api/ZCBackgRound/OaWriteTrainClassOder"
  "OaWriteTrainClassOder": "/api/ZCBackgRound/OaWriteTrainClassOder",
  "OAWriteChangeAsync": "/api/ZCBackgRound/OAWriteChangeAsync"
}
zhengcaioa/zhengcaioa/appsettings.json
@@ -24,5 +24,6 @@
  "GetYGYaoQingYonghu": "/api/ZCBackgRound/GetYGYaoQingYonghu",
  "yaoqingma": "https://applet.51zhengcai.com:8088/code/",
  "PassPoints": "/api/UserPoints/PassPoints",
  "OaWriteTrainClassOder": "/api/ZCBackgRound/OaWriteTrainClassOder"
  "OaWriteTrainClassOder": "/api/ZCBackgRound/OaWriteTrainClassOder",
  "OAWriteChangeAsync": "/api/ZCBackgRound/OAWriteChangeAsync"
}