diff --git a/FCL/BLL/.vs/BLL.csproj.dtbcache.json b/FCL/BLL/.vs/BLL.csproj.dtbcache.json new file mode 100644 index 0000000..e1a7928 --- /dev/null +++ b/FCL/BLL/.vs/BLL.csproj.dtbcache.json @@ -0,0 +1 @@ +{"RootPath":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\BLL","ProjectFileName":"BLL.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"APIService\\APIFCLService.cs"},{"SourceFile":"APIService\\SyncUserInfoService.cs"},{"SourceFile":"BaseInfo\\ContractorService.cs"},{"SourceFile":"BaseInfo\\CurrencyService.cs"},{"SourceFile":"BaseInfo\\DepartService.cs"},{"SourceFile":"BaseInfo\\DisciplineCategoryService.cs"},{"SourceFile":"BaseInfo\\DisciplineService.cs"},{"SourceFile":"BaseInfo\\FileTypeService.cs"},{"SourceFile":"BaseInfo\\FOTypeService.cs"},{"SourceFile":"BaseInfo\\ItemService.cs"},{"SourceFile":"BaseInfo\\PriceSchemeService.cs"},{"SourceFile":"BaseInfo\\TaxRateService.cs"},{"SourceFile":"BaseInfo\\TemplateTypeService.cs"},{"SourceFile":"BaseInfo\\TypeService.cs"},{"SourceFile":"BaseInfo\\ViolationClauseService.cs"},{"SourceFile":"Common\\AccessTokenModel.cs"},{"SourceFile":"Common\\AttachFileService.cs"},{"SourceFile":"Common\\ChartControlService.cs"},{"SourceFile":"Common\\ConstValue.cs"},{"SourceFile":"Common\\HashtableHelper.cs"},{"SourceFile":"Common\\HttpHelper.cs"},{"SourceFile":"Common\\JsonHelper.cs"},{"SourceFile":"Common\\MailHelper.cs"},{"SourceFile":"Common\\NPOIHelper.cs"},{"SourceFile":"Common\\ReportPrint\\Common_ReportPrintService.cs"},{"SourceFile":"Common\\SqlBulkHelper.cs"},{"SourceFile":"Common\\TemplateHelper.cs"},{"SourceFile":"Common\\UploadAttachmentService.cs"},{"SourceFile":"Common\\CommonService.cs"},{"SourceFile":"Common\\Const.cs"},{"SourceFile":"CPT\\CPTListService.cs"},{"SourceFile":"CPT\\SESReportToCPTService.cs"},{"SourceFile":"DropListService.cs"},{"SourceFile":"DynamicTHeaderHepler.cs"},{"SourceFile":"ErrLogInfo.cs"},{"SourceFile":"FriendlyException.cs"},{"SourceFile":"Funs.cs"},{"SourceFile":"JsonHelper.cs"},{"SourceFile":"MethodRefelect.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"SendEmailService.cs"},{"SourceFile":"SendEmail\\EmailUser.cs"},{"SourceFile":"SendEmail\\SendEmailTemplateService.cs"},{"SourceFile":"SessionName.cs"},{"SourceFile":"SES\\ContractManagementService.cs"},{"SourceFile":"SES\\CTSalesContractManagementService.cs"},{"SourceFile":"SES\\CTSalesContractsService.cs"},{"SourceFile":"SES\\CTSalesSignedContractsService.cs"},{"SourceFile":"SES\\FCListService.cs"},{"SourceFile":"SES\\OneTimeContractManagementService.cs"},{"SourceFile":"SES\\OneTimeContractsService.cs"},{"SourceFile":"SES\\OneTimeSignedContractsService.cs"},{"SourceFile":"SES\\PunishmentService.cs"},{"SourceFile":"SES\\SESRelatedDataService.cs"},{"SourceFile":"SES\\SESReportService.cs"},{"SourceFile":"SES\\SignedContractsService.cs"},{"SourceFile":"SES\\SSRService.cs"},{"SourceFile":"SES\\StandardTemplateService.cs"},{"SourceFile":"SoftRegeditService.cs"},{"SourceFile":"SQLHelper.cs"},{"SourceFile":"Common\\UploadFileService.cs"},{"SourceFile":"SysManage\\Sys_ButtonPowerService.cs"},{"SourceFile":"SysManage\\Sys_LogService.cs"},{"SourceFile":"SysManage\\Sys_RolePowerService.cs"},{"SourceFile":"SysManage\\Sys_RoleService.cs"},{"SourceFile":"SysManage\\Sys_SetService.cs"},{"SourceFile":"SysManage\\Sys_UserService.cs"},{"SourceFile":"SysManage\\Sys_UserShowColumnsService.cs"},{"SourceFile":"SysManage\\Sys_UserToEMialService.cs"},{"SourceFile":"UploadZipService.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.6.1.AssemblyAttributes.cs"}],"References":[{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Portable.BouncyCastle.1.8.9\\lib\\net40\\BouncyCastle.Crypto.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\FineUIPro\\FineUIPro.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\SharpZipLib.1.3.2\\lib\\net45\\ICSharpCode.SharpZipLib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\Microsoft.CSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"D:\\Program Files (x86)\\Microsoft SQL Server\\130\\SDK\\Assemblies\\Microsoft.SQLServer.ManagedDTS.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\Model\\bin\\Debug\\Model.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":true,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Newtonsoft.Json.13.0.1\\lib\\net45\\Newtonsoft.Json.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\NPOI.2.5.5\\lib\\net45\\NPOI.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\NPOI.2.5.5\\lib\\net45\\NPOI.OOXML.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\NPOI.2.5.5\\lib\\net45\\NPOI.OpenXml4Net.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\NPOI.2.5.5\\lib\\net45\\NPOI.OpenXmlFormats.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Configuration.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Data.DataSetExtensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Data.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.DirectoryServices.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Drawing.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.EnterpriseServices.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Management.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Runtime.Serialization.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.ServiceModel.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Web.ApplicationServices.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Web.DataVisualization.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Web.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Web.DynamicData.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Web.Entity.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Web.Extensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Web.Services.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Windows.Forms.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Xml.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\BLL\\bin\\Debug\\BLL.dll","OutputItemRelativePath":"BLL.dll"},{"OutputItemFullPath":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\BLL\\bin\\Debug\\BLL.pdb","OutputItemRelativePath":"BLL.pdb"}],"CopyToOutputEntries":[]} \ No newline at end of file diff --git a/FCL/BLL/APIService/SyncUserInfoService.cs b/FCL/BLL/APIService/SyncUserInfoService.cs index 90612d5..1ddb2bc 100644 --- a/FCL/BLL/APIService/SyncUserInfoService.cs +++ b/FCL/BLL/APIService/SyncUserInfoService.cs @@ -30,12 +30,12 @@ namespace BLL.APIService } public static void GetSyncUserInfo() { - //var token = GetUserToken(); //获取接口token + var token = GetUserToken(); //获取接口token var dic = GetDepartList(); //把本地数据库中的部门全部取出作为字典 var dicUser = GetUserInfoByAccount(); //同上把所有用户取出来 - string file = System.Web.HttpContext.Current.Server.MapPath("~/data.txt"); - string result = System.IO.File.ReadAllText(file); - //string result = BLL.Common.HttpHelper.HttpPostRequest(GETHRINfOAPI, "", token); + //string file = System.Web.HttpContext.Current.Server.MapPath("~/data.txt"); + //string result = System.IO.File.ReadAllText(file); + string result = BLL.Common.HttpHelper.HttpPostRequest(GETHRINfOAPI, "", token); var data = JsonHelper.DeserializeJsonToObject>>(result); List logList = new List(); if (data.code == "200") diff --git a/FCL/BLL/BLL.csproj b/FCL/BLL/BLL.csproj index 6163ce0..64a9024 100644 --- a/FCL/BLL/BLL.csproj +++ b/FCL/BLL/BLL.csproj @@ -110,6 +110,7 @@ + diff --git a/FCL/BLL/BaseInfo/ViolationClauseService.cs b/FCL/BLL/BaseInfo/ViolationClauseService.cs new file mode 100644 index 0000000..e3e0349 --- /dev/null +++ b/FCL/BLL/BaseInfo/ViolationClauseService.cs @@ -0,0 +1,96 @@ +using System.Collections.Generic; +using System.Linq; + +namespace BLL +{ + public class ViolationClauseService + { + /// + /// 根据主键获取类型 + /// + /// + /// + public static Model.EMC_ViolationClause GetViolationClause(string violationClauseId) + { + return Funs.DB.EMC_ViolationClause.FirstOrDefault(e => e.ViolationClauseId == violationClauseId); + } + + public static List GetSupViolationClause() + { + return Funs.DB.EMC_ViolationClause.Where(e => e.SupViolationClause == null).ToList(); + } + + /// + /// 添加 + /// + /// + public static void AddViolationClause(Model.EMC_ViolationClause violationClause) + { + Model.EMC_ViolationClause newType = new Model.EMC_ViolationClause(); + newType.ViolationClauseId = violationClause.ViolationClauseId; + newType.ClauseDef = violationClause.ClauseDef; + newType.DeductionComPany1 = violationClause.DeductionComPany1; + newType.DeductionComPany2 = violationClause.DeductionComPany2; + newType.DeductionComPany3 = violationClause.DeductionComPany3; + newType.DeductionIndividual1 = violationClause.DeductionIndividual1; + newType.DeductionIndividual2 = violationClause.DeductionIndividual2; + newType.DeductionIndividual3 = violationClause.DeductionIndividual3; + newType.ApplicationDef= violationClause.ApplicationDef; + newType.SupViolationClause = violationClause.SupViolationClause; + newType.SortIndex = violationClause.SortIndex; + Funs.DB.EMC_ViolationClause.InsertOnSubmit(newType); + Funs.DB.SubmitChanges(); + } + + /// + /// 修改 + /// + /// + public static void UpdateViolationClause(Model.EMC_ViolationClause violationClause) + { + Model.EMC_ViolationClause newType = Funs.DB.EMC_ViolationClause.FirstOrDefault(e => e.ViolationClauseId == violationClause.ViolationClauseId); + if (newType != null) + { + newType.ClauseDef = violationClause.ClauseDef; + newType.DeductionComPany1 = violationClause.DeductionComPany1; + newType.DeductionComPany2 = violationClause.DeductionComPany2; + newType.DeductionComPany3 = violationClause.DeductionComPany3; + newType.DeductionIndividual1 = violationClause.DeductionIndividual1; + newType.DeductionIndividual2 = violationClause.DeductionIndividual2; + newType.DeductionIndividual3 = violationClause.DeductionIndividual3; + newType.ApplicationDef = violationClause.ApplicationDef; + newType.SortIndex = violationClause.SortIndex; + Funs.DB.SubmitChanges(); + } + } + + /// + /// 根据主键删除类型 + /// + /// + public static void DeleteViolationClause(string violationClauseId) + { + Model.EMC_ViolationClause type = Funs.DB.EMC_ViolationClause.FirstOrDefault(e => e.ViolationClauseId == violationClauseId); + if (type != null) + { + Funs.DB.EMC_ViolationClause.DeleteOnSubmit(type); + Funs.DB.SubmitChanges(); + } + } + + public static void InitViolationClause(FineUIPro.DropDownList dropName, bool isShowPlease) + { + dropName.DataGroupField = "SupClauseDef"; + dropName.DataValueField = "ViolationClauseId"; + dropName.DataTextField = "ClauseDef"; + dropName.DataSource = (from x in Funs.DB.EMC_ViolationClause + join y in Funs.DB.EMC_ViolationClause on x.SupViolationClause equals y.ViolationClauseId + select new { x.ViolationClauseId, x.ClauseDef, SupClauseDef = y.ClauseDef }).ToList(); + dropName.DataBind(); + if (isShowPlease) + { + Funs.FineUIPleaseSelect(dropName); + } + } + } +} diff --git a/FCL/BLL/Common/Const.cs b/FCL/BLL/Common/Const.cs index b192881..3c7b99b 100644 --- a/FCL/BLL/Common/Const.cs +++ b/FCL/BLL/Common/Const.cs @@ -120,6 +120,21 @@ namespace BLL /// public const string BtnOut = "Export"; + /// + /// FC导出 + /// + public const string FCExport = "FCExport"; + + /// + /// Person导出 + /// + public const string PersonExport = "PersonExport"; + + /// + /// Fo导出 + /// + public const string FoExport = "FoExport"; + /// /// 导出分数 /// @@ -316,6 +331,11 @@ namespace BLL /// public const string FOOffsetMenuId = "AE8C4BCB-A7E0-4EC6-B3F3-124C5B77D32F"; + /// + /// 违章条款 + /// + public const string ViolationClauseMenuId = "CCAF3391-23FD-4E4D-A552-0C4AD3CFF44A"; + #endregion #region EMC Contracts diff --git a/FCL/BLL/Common/HttpHelper.cs b/FCL/BLL/Common/HttpHelper.cs index eb2dbca..6c4228e 100644 --- a/FCL/BLL/Common/HttpHelper.cs +++ b/FCL/BLL/Common/HttpHelper.cs @@ -41,7 +41,7 @@ namespace BLL.Common /// public static string HttpPostRequest(string url, string postJsonData,string token) { - BLL.ErrLogInfo.WriteLog("token=" + token); + //BLL.ErrLogInfo.WriteLog("token=" + token); string strPostReponse = string.Empty; try { diff --git a/FCL/BLL/Common/MailHelper.cs b/FCL/BLL/Common/MailHelper.cs index e2f37c5..71cd1eb 100644 --- a/FCL/BLL/Common/MailHelper.cs +++ b/FCL/BLL/Common/MailHelper.cs @@ -84,7 +84,7 @@ namespace BLL.Common //email.To.Add(send); //主题 - email.Subject = mailSubject; + email.Subject = mailSubject.Replace("\r","").Replace("\n", ""); //附件 if (!string.IsNullOrEmpty(mailAttch)) { @@ -273,7 +273,7 @@ namespace BLL.Common //email.To.Add(send); //主题 - email.Subject = mailSubject; + email.Subject = mailSubject.Replace("\r", "").Replace("\n", ""); //附件 //优先级 diff --git a/FCL/BLL/SES/PunishmentService.cs b/FCL/BLL/SES/PunishmentService.cs index 3970fb8..9ad9245 100644 --- a/FCL/BLL/SES/PunishmentService.cs +++ b/FCL/BLL/SES/PunishmentService.cs @@ -23,7 +23,12 @@ namespace BLL return Funs.DB.View_EMC_Punishment.FirstOrDefault(e => e.PunishmentId == punishmentId); } - + public static Model.View_EMC_Que_Punishment GetQuePunishmentViewById(string punishmentId) + { + return Funs.DB.View_EMC_Que_Punishment.FirstOrDefault(e => e.PunishmentId == punishmentId); + } + + /// /// 添加扣款项 @@ -34,6 +39,7 @@ namespace BLL Model.EMC_Punishment newPunishment = new Model.EMC_Punishment(); newPunishment.PunishmentId = punishment.PunishmentId; newPunishment.FO_NO = punishment.FO_NO; + newPunishment.ItemNo = punishment.ItemNo; newPunishment.SES_No = punishment.SES_No; newPunishment.PunishDate = punishment.PunishDate; newPunishment.Location = punishment.Location; @@ -50,6 +56,15 @@ namespace BLL newPunishment.Def=punishment.Def; newPunishment.CreateDate = punishment.CreateDate; + newPunishment.Contractor= punishment.Contractor; + newPunishment.Discipline=punishment.Discipline; + newPunishment.ViolationClauseId= punishment.ViolationClauseId; + newPunishment.IsFrame= punishment.IsFrame; + newPunishment.ViolationPerson =punishment.ViolationPerson; + newPunishment.BYC_Person= punishment.BYC_Person; + newPunishment.Requisitioner=punishment.Requisitioner; + newPunishment.AttachUrl = punishment.AttachUrl; + Funs.DB.EMC_Punishment.InsertOnSubmit(newPunishment); Funs.DB.SubmitChanges(); } @@ -64,6 +79,7 @@ namespace BLL if (newPunishment != null) { newPunishment.FO_NO = punishment.FO_NO; + newPunishment.ItemNo = punishment.ItemNo; newPunishment.SES_No = punishment.SES_No; newPunishment.PunishDate = punishment.PunishDate; newPunishment.Location = punishment.Location; @@ -77,6 +93,16 @@ namespace BLL newPunishment.ViolationRelatedSes = punishment.ViolationRelatedSes; newPunishment.SelectYesNo = punishment.SelectYesNo; newPunishment.Def = punishment.Def; + + newPunishment.Contractor = punishment.Contractor; + newPunishment.Discipline = punishment.Discipline; + newPunishment.ViolationClauseId = punishment.ViolationClauseId; + newPunishment.IsFrame = punishment.IsFrame; + newPunishment.ViolationPerson = punishment.ViolationPerson; + newPunishment.BYC_Person = punishment.BYC_Person; + newPunishment.Requisitioner = punishment.Requisitioner; + newPunishment.AttachUrl = punishment.AttachUrl; + Funs.DB.SubmitChanges(); } } diff --git a/FCL/FineUIPro.Web/.vs/FineUIPro.Web.csproj.dtbcache.json b/FCL/FineUIPro.Web/.vs/FineUIPro.Web.csproj.dtbcache.json index 26e2e82..4ef1a75 100644 --- a/FCL/FineUIPro.Web/.vs/FineUIPro.Web.csproj.dtbcache.json +++ b/FCL/FineUIPro.Web/.vs/FineUIPro.Web.csproj.dtbcache.json @@ -1 +1 @@ -{"RootPath":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\FineUIPro.Web","ProjectFileName":"FineUIPro.Web.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"App_GlobalResources\\Lan.en-US.designer.cs"},{"SourceFile":"App_GlobalResources\\Lan.zh-CN.designer.cs"},{"SourceFile":"App_GlobalResources\\Lan.Designer.cs"},{"SourceFile":"AttachFile\\fileupload.ashx.cs"},{"SourceFile":"AttachFile\\webuploader2.aspx.cs"},{"SourceFile":"AttachFile\\webuploader2.aspx.designer.cs"},{"SourceFile":"AttachFile\\webuploader.aspx.cs"},{"SourceFile":"AttachFile\\webuploader.aspx.designer.cs"},{"SourceFile":"AttachFile\\webuploader3.aspx.cs"},{"SourceFile":"AttachFile\\webuploader3.aspx.designer.cs"},{"SourceFile":"BaseInfo\\ContractorList.aspx.cs"},{"SourceFile":"BaseInfo\\ContractorList.aspx.designer.cs"},{"SourceFile":"BaseInfo\\Currency.aspx.cs"},{"SourceFile":"BaseInfo\\Currency.aspx.designer.cs"},{"SourceFile":"BaseInfo\\Department.aspx.cs"},{"SourceFile":"BaseInfo\\Department.aspx.designer.cs"},{"SourceFile":"BaseInfo\\Discipline.aspx.cs"},{"SourceFile":"BaseInfo\\Discipline.aspx.designer.cs"},{"SourceFile":"BaseInfo\\DisciplineCategory.aspx.cs"},{"SourceFile":"BaseInfo\\DisciplineCategory.aspx.designer.cs"},{"SourceFile":"BaseInfo\\FileType.aspx.cs"},{"SourceFile":"BaseInfo\\FileType.aspx.designer.cs"},{"SourceFile":"BaseInfo\\FOOffset.aspx.cs"},{"SourceFile":"BaseInfo\\FOOffset.aspx.designer.cs"},{"SourceFile":"BaseInfo\\FOType.aspx.cs"},{"SourceFile":"BaseInfo\\FOType.aspx.designer.cs"},{"SourceFile":"BaseInfo\\Item.aspx.cs"},{"SourceFile":"BaseInfo\\Item.aspx.designer.cs"},{"SourceFile":"BaseInfo\\PriceScheme.aspx.cs"},{"SourceFile":"BaseInfo\\PriceScheme.aspx.designer.cs"},{"SourceFile":"BaseInfo\\TaxRate.aspx.cs"},{"SourceFile":"BaseInfo\\TaxRate.aspx.designer.cs"},{"SourceFile":"BaseInfo\\TemplateType.aspx.cs"},{"SourceFile":"BaseInfo\\TemplateType.aspx.designer.cs"},{"SourceFile":"BaseInfo\\Type.aspx.cs"},{"SourceFile":"BaseInfo\\Type.aspx.designer.cs"},{"SourceFile":"CCP\\CcpEdit.aspx.cs"},{"SourceFile":"CCP\\CcpEdit.aspx.designer.cs"},{"SourceFile":"CCP\\CcpList.aspx.cs"},{"SourceFile":"CCP\\CcpList.aspx.designer.cs"},{"SourceFile":"CCP\\CCPUpload.aspx.cs"},{"SourceFile":"CCP\\CCPUpload.aspx.designer.cs"},{"SourceFile":"CCP\\CcpViewList.aspx.cs"},{"SourceFile":"CCP\\CcpViewList.aspx.designer.cs"},{"SourceFile":"common\\LdapAuthentication.cs"},{"SourceFile":"common\\LDAPUser.cs"},{"SourceFile":"common\\main.ashx.cs"},{"SourceFile":"common\\MainSearch.aspx.cs"},{"SourceFile":"common\\MainSearch.aspx.designer.cs"},{"SourceFile":"common\\PageBase.cs"},{"SourceFile":"CPT\\CPTReportList.aspx.cs"},{"SourceFile":"CPT\\CPTReportList.aspx.designer.cs"},{"SourceFile":"CPT\\SESReportToCPT.aspx.cs"},{"SourceFile":"CPT\\SESReportToCPT.aspx.designer.cs"},{"SourceFile":"CPT\\SESReportToCPTEdit.aspx.cs"},{"SourceFile":"CPT\\SESReportToCPTEdit.aspx.designer.cs"},{"SourceFile":"Encrypt.aspx.cs"},{"SourceFile":"Encrypt.aspx.designer.cs"},{"SourceFile":"common\\loading.aspx.cs"},{"SourceFile":"common\\loading.aspx.designer.cs"},{"SourceFile":"common\\Main.aspx.cs"},{"SourceFile":"common\\Main.aspx.designer.cs"},{"SourceFile":"common\\main_bootstrap_pure.aspx.cs"},{"SourceFile":"common\\main_bootstrap_pure.aspx.designer.cs"},{"SourceFile":"common\\main_bootstrap_pure_login.aspx.cs"},{"SourceFile":"common\\main_bootstrap_pure_login.aspx.designer.cs"},{"SourceFile":"common\\ReportPrint\\CalculateChinaEx.aspx.cs"},{"SourceFile":"common\\ReportPrint\\CalculateChinaEx.aspx.designer.cs"},{"SourceFile":"common\\ReportPrint\\ExPrintSet.aspx.cs"},{"SourceFile":"common\\ReportPrint\\ExPrintSet.aspx.designer.cs"},{"SourceFile":"common\\ReportPrint\\ExReportPrint.aspx.cs"},{"SourceFile":"common\\ReportPrint\\ExReportPrint.aspx.designer.cs"},{"SourceFile":"common\\ReportPrint\\PrintDesigner.aspx.cs"},{"SourceFile":"common\\ReportPrint\\PrintDesigner.aspx.designer.cs"},{"SourceFile":"common\\ReportPrint\\ReadExReportFile.aspx.cs"},{"SourceFile":"common\\ReportPrint\\ReadExReportFile.aspx.designer.cs"},{"SourceFile":"common\\ReportPrint\\SaveTabFile.aspx.cs"},{"SourceFile":"common\\ReportPrint\\SaveTabFile.aspx.designer.cs"},{"SourceFile":"common\\source.aspx.cs"},{"SourceFile":"common\\source.aspx.designer.cs"},{"SourceFile":"common\\source_file.aspx.cs"},{"SourceFile":"common\\source_file.aspx.designer.cs"},{"SourceFile":"common\\themes.aspx.cs"},{"SourceFile":"common\\themes.aspx.designer.cs"},{"SourceFile":"config\\ajax.aspx.cs"},{"SourceFile":"config\\ajax.aspx.designer.cs"},{"SourceFile":"config\\enable_gzip_iis6.aspx.cs"},{"SourceFile":"config\\enable_gzip_iis6.aspx.designer.cs"},{"SourceFile":"config\\icons.aspx.cs"},{"SourceFile":"config\\icons.aspx.designer.cs"},{"SourceFile":"config\\icons_font.aspx.cs"},{"SourceFile":"config\\icons_font.aspx.designer.cs"},{"SourceFile":"config\\install_toolbox.aspx.cs"},{"SourceFile":"config\\install_toolbox.aspx.designer.cs"},{"SourceFile":"config\\loading.aspx.cs"},{"SourceFile":"config\\loading.aspx.designer.cs"},{"SourceFile":"config\\modify_webconfig.aspx.cs"},{"SourceFile":"config\\modify_webconfig.aspx.designer.cs"},{"SourceFile":"Controls\\ChartControl.ascx.cs"},{"SourceFile":"Controls\\ChartControl.ascx.designer.cs"},{"SourceFile":"Controls\\ClientJs\\ClientJs.ascx.cs"},{"SourceFile":"Controls\\ClientJs\\ClientJs.ascx.designer.cs"},{"SourceFile":"Controls\\GridNavgator.ascx.cs"},{"SourceFile":"Controls\\GridNavgator.ascx.designer.cs"},{"SourceFile":"Controls\\JDGL\\ChartControl.ascx.cs"},{"SourceFile":"Controls\\JDGL\\ChartControl.ascx.designer.cs"},{"SourceFile":"Controls\\ProgressBox.ascx.cs"},{"SourceFile":"Controls\\ProgressBox.ascx.designer.cs"},{"SourceFile":"Evaluation\\ContractorEvaluation.aspx.cs"},{"SourceFile":"Evaluation\\ContractorEvaluation.aspx.designer.cs"},{"SourceFile":"Evaluation\\ContractorEvaluationEdit.aspx.cs"},{"SourceFile":"Evaluation\\ContractorEvaluationEdit.aspx.designer.cs"},{"SourceFile":"Evaluation\\Evaluation.aspx.cs"},{"SourceFile":"Evaluation\\Evaluation.aspx.designer.cs"},{"SourceFile":"Evaluation\\EvaluationNew.aspx.cs"},{"SourceFile":"Evaluation\\EvaluationNew.aspx.designer.cs"},{"SourceFile":"Evaluation\\EvaluationReport.aspx.cs"},{"SourceFile":"Evaluation\\EvaluationReport.aspx.designer.cs"},{"SourceFile":"Evaluation\\EvaluationUpload.aspx.cs"},{"SourceFile":"Evaluation\\EvaluationUpload.aspx.designer.cs"},{"SourceFile":"Evaluation\\ExportDetails.aspx.cs"},{"SourceFile":"Evaluation\\ExportDetails.aspx.designer.cs"},{"SourceFile":"Evaluation\\FilesManagement.aspx.cs"},{"SourceFile":"Evaluation\\FilesManagement.aspx.designer.cs"},{"SourceFile":"Evaluation\\PerformanceReport.aspx.cs"},{"SourceFile":"Evaluation\\PerformanceReport.aspx.designer.cs"},{"SourceFile":"Evaluation\\SafetyEvaluation.aspx.cs"},{"SourceFile":"Evaluation\\SafetyEvaluation.aspx.designer.cs"},{"SourceFile":"FileManage\\editCAD.aspx.cs"},{"SourceFile":"FileManage\\editCAD.aspx.designer.cs"},{"SourceFile":"FileManage\\EditOffice.aspx.cs"},{"SourceFile":"FileManage\\EditOffice.aspx.designer.cs"},{"SourceFile":"FileManage\\FileManageList.aspx.cs"},{"SourceFile":"FileManage\\FileManageList.aspx.designer.cs"},{"SourceFile":"FileManage\\Read.aspx.cs"},{"SourceFile":"FileManage\\Read.aspx.designer.cs"},{"SourceFile":"FileManage\\ReadCad.aspx.cs"},{"SourceFile":"FileManage\\ReadCad.aspx.designer.cs"},{"SourceFile":"FileManage\\Save.aspx.cs"},{"SourceFile":"FileManage\\Save.aspx.designer.cs"},{"SourceFile":"FileManage\\SaveCAD.aspx.cs"},{"SourceFile":"FileManage\\SaveCAD.aspx.designer.cs"},{"SourceFile":"Global.asax.cs"},{"SourceFile":"index.aspx.cs"},{"SourceFile":"index.aspx.designer.cs"},{"SourceFile":"KPI\\KPI.aspx.cs"},{"SourceFile":"KPI\\KPI.aspx.designer.cs"},{"SourceFile":"Login.aspx.cs"},{"SourceFile":"Login.aspx.designer.cs"},{"SourceFile":"LogOff.aspx.cs"},{"SourceFile":"LogOff.aspx.designer.cs"},{"SourceFile":"MyWebService.asmx.cs"},{"SourceFile":"OperationError.aspx.cs"},{"SourceFile":"OperationError.aspx.designer.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"Report\\FCLDS.cs"},{"SourceFile":"Report\\FCLDS.Designer.cs"},{"SourceFile":"Report\\ReportPrint.aspx.cs"},{"SourceFile":"Report\\ReportPrint.aspx.designer.cs"},{"SourceFile":"Report\\ScoreDataSet.Designer.cs"},{"SourceFile":"Scripts\\index.aspx.cs"},{"SourceFile":"Scripts\\index.aspx.designer.cs"},{"SourceFile":"SendEmail\\SelectUserControl.ascx.cs"},{"SourceFile":"SendEmail\\SelectUserControl.ascx.designer.cs"},{"SourceFile":"SendEmail\\SendEmail.aspx.cs"},{"SourceFile":"SendEmail\\SendEmail.aspx.designer.cs"},{"SourceFile":"SendEmail\\SendEmailLog.aspx.cs"},{"SourceFile":"SendEmail\\SendEmailLog.aspx.designer.cs"},{"SourceFile":"SendEmail\\SendEmailPop.aspx.cs"},{"SourceFile":"SendEmail\\SendEmailPop.aspx.designer.cs"},{"SourceFile":"SendEmail\\SendEmailTemplate.aspx.cs"},{"SourceFile":"SendEmail\\SendEmailTemplate.aspx.designer.cs"},{"SourceFile":"SendEmail\\SendEmailTemplateList.aspx.cs"},{"SourceFile":"SendEmail\\SendEmailTemplateList.aspx.designer.cs"},{"SourceFile":"SES\\ContractorQualification.aspx.cs"},{"SourceFile":"SES\\ContractorQualification.aspx.designer.cs"},{"SourceFile":"SES\\ContractorQualificationEdit.aspx.cs"},{"SourceFile":"SES\\ContractorQualificationEdit.aspx.designer.cs"},{"SourceFile":"SES\\ContractorQueCopy.aspx.cs"},{"SourceFile":"SES\\ContractorQueCopy.aspx.designer.cs"},{"SourceFile":"SES\\CQualityPunish.aspx.cs"},{"SourceFile":"SES\\CQualityPunish.aspx.designer.cs"},{"SourceFile":"SES\\CQualityPunishEdit.aspx.cs"},{"SourceFile":"SES\\CQualityPunishEdit.aspx.designer.cs"},{"SourceFile":"SES\\CSafePunishEdit.aspx.cs"},{"SourceFile":"SES\\CSafePunishEdit.aspx.designer.cs"},{"SourceFile":"SES\\CTSalesContractManagement.aspx.cs"},{"SourceFile":"SES\\CTSalesContractManagement.aspx.designer.cs"},{"SourceFile":"SES\\CTSalesContracts.aspx.cs"},{"SourceFile":"SES\\CTSalesContracts.aspx.designer.cs"},{"SourceFile":"SES\\CTSalesContractsEdit.aspx.cs"},{"SourceFile":"SES\\CTSalesContractsEdit.aspx.designer.cs"},{"SourceFile":"SES\\CTSalesSignedContracts.aspx.cs"},{"SourceFile":"SES\\CTSalesSignedContracts.aspx.designer.cs"},{"SourceFile":"SES\\FCList.aspx.cs"},{"SourceFile":"SES\\FCList.aspx.designer.cs"},{"SourceFile":"SES\\FCListEdit.aspx.cs"},{"SourceFile":"SES\\FCListEdit.aspx.designer.cs"},{"SourceFile":"SES\\OneTimeContractManagement.aspx.cs"},{"SourceFile":"SES\\OneTimeContractManagement.aspx.designer.cs"},{"SourceFile":"SES\\OneTimeContracts.aspx.cs"},{"SourceFile":"SES\\OneTimeContracts.aspx.designer.cs"},{"SourceFile":"SES\\OneTimeContractsEdit.aspx.cs"},{"SourceFile":"SES\\OneTimeContractsEdit.aspx.designer.cs"},{"SourceFile":"SES\\OneTimeSignedContracts.aspx.cs"},{"SourceFile":"SES\\OneTimeSignedContracts.aspx.designer.cs"},{"SourceFile":"SES\\CSafePunish.aspx.cs"},{"SourceFile":"SES\\CSafePunish.aspx.designer.cs"},{"SourceFile":"SES\\SESEvaluateList.aspx.cs"},{"SourceFile":"SES\\SESEvaluateList.aspx.designer.cs"},{"SourceFile":"SES\\SESRelatedData.aspx.cs"},{"SourceFile":"SES\\SESRelatedData.aspx.designer.cs"},{"SourceFile":"SES\\SESRelatedDataContractManage.aspx.cs"},{"SourceFile":"SES\\SESRelatedDataContractManage.aspx.designer.cs"},{"SourceFile":"SES\\SESRelatedDataEdit.aspx.cs"},{"SourceFile":"SES\\SESRelatedDataEdit.aspx.designer.cs"},{"SourceFile":"SES\\SESRelatedDataSearch.aspx.cs"},{"SourceFile":"SES\\SESRelatedDataSearch.aspx.designer.cs"},{"SourceFile":"SES\\SESRelatedDataSigned.aspx.cs"},{"SourceFile":"SES\\SESRelatedDataSigned.aspx.designer.cs"},{"SourceFile":"SES\\SESReport.ashx.cs"},{"SourceFile":"SES\\SESReport.aspx.cs"},{"SourceFile":"SES\\SESReport.aspx.designer.cs"},{"SourceFile":"SES\\SESReportEdit.aspx.cs"},{"SourceFile":"SES\\SESReportEdit.aspx.designer.cs"},{"SourceFile":"SES\\SSR.aspx.cs"},{"SourceFile":"SES\\SSR.aspx.designer.cs"},{"SourceFile":"SES\\SSREdit.aspx.cs"},{"SourceFile":"SES\\SSREdit.aspx.designer.cs"},{"SourceFile":"SES\\StandardTemplate.aspx.cs"},{"SourceFile":"SES\\StandardTemplate.aspx.designer.cs"},{"SourceFile":"SES\\StandardTemplateEdit.aspx.cs"},{"SourceFile":"SES\\StandardTemplateEdit.aspx.designer.cs"},{"SourceFile":"ssocallback.aspx.cs"},{"SourceFile":"ssocallback.aspx.designer.cs"},{"SourceFile":"Styles\\index.aspx.cs"},{"SourceFile":"Styles\\index.aspx.designer.cs"},{"SourceFile":"SysManage\\DataBackup.aspx.cs"},{"SourceFile":"SysManage\\DataBackup.aspx.designer.cs"},{"SourceFile":"SysManage\\LogList.aspx.cs"},{"SourceFile":"SysManage\\LogList.aspx.designer.cs"},{"SourceFile":"SysManage\\RoleList.aspx.cs"},{"SourceFile":"SysManage\\RoleList.aspx.designer.cs"},{"SourceFile":"SysManage\\RoleListEdit.aspx.cs"},{"SourceFile":"SysManage\\RoleListEdit.aspx.designer.cs"},{"SourceFile":"SysManage\\RolePower.aspx.cs"},{"SourceFile":"SysManage\\RolePower.aspx.designer.cs"},{"SourceFile":"SysManage\\SelectUserToEMail.aspx.cs"},{"SourceFile":"SysManage\\SelectUserToEMail.aspx.designer.cs"},{"SourceFile":"SysManage\\SysSet.aspx.cs"},{"SourceFile":"SysManage\\SysSet.aspx.designer.cs"},{"SourceFile":"SysManage\\UpdatePassword.aspx.cs"},{"SourceFile":"SysManage\\UpdatePassword.aspx.designer.cs"},{"SourceFile":"SysManage\\UpdatePasswordEdit.aspx.cs"},{"SourceFile":"SysManage\\UpdatePasswordEdit.aspx.designer.cs"},{"SourceFile":"SysManage\\UserList.aspx.cs"},{"SourceFile":"SysManage\\UserList.aspx.designer.cs"},{"SourceFile":"SysManage\\UserListEdit.aspx.cs"},{"SourceFile":"SysManage\\UserListEdit.aspx.designer.cs"},{"SourceFile":"SysManage\\UserToEMial.aspx.cs"},{"SourceFile":"SysManage\\UserToEMial.aspx.designer.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.8.AssemblyAttributes.cs"}],"References":[{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\FineUIPro.Web\\bin\\AxInterop.SYNCARDOCXLib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\BLL\\bin\\Debug\\BLL.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":true,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Portable.BouncyCastle.1.8.9\\lib\\net40\\BouncyCastle.Crypto.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\FineUIPro\\FineUIPro.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\SharpZipLib.1.3.2\\lib\\net45\\ICSharpCode.SharpZipLib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\Microsoft.CSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\Microsoft.JScript.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\FineUIPro.Web\\bin\\Microsoft.QualityTools.Testing.Fakes.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\FineUIPro.Web\\FakesAssemblies\\Microsoft.ReportViewer.Common.15.0.0.0.Fakes.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1484.0\\lib\\net40\\Microsoft.ReportViewer.Common.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1484.0\\lib\\net40\\Microsoft.ReportViewer.DataVisualization.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1484.0\\lib\\net40\\Microsoft.ReportViewer.Design.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1484.0\\lib\\net40\\Microsoft.ReportViewer.ProcessingObjectModel.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1484.0\\lib\\net40\\Microsoft.ReportViewer.WebDesign.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1484.0\\lib\\net40\\Microsoft.ReportViewer.WebForms.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Microsoft.SqlServer.Types.14.0.1016.290\\lib\\net40\\Microsoft.SqlServer.Types.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\Model\\bin\\Debug\\Model.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":true,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Newtonsoft.Json.13.0.1\\lib\\net45\\Newtonsoft.Json.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\NPOI.2.5.5\\lib\\net45\\NPOI.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\NPOI.2.5.5\\lib\\net45\\NPOI.OOXML.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\NPOI.2.5.5\\lib\\net45\\NPOI.OpenXml4Net.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\NPOI.2.5.5\\lib\\net45\\NPOI.OpenXmlFormats.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Configuration.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Data.DataSetExtensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Data.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.DirectoryServices.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.DirectoryServices.Protocols.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Drawing.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.EnterpriseServices.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.IO.Compression.FileSystem.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Management.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Runtime.Serialization.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.ServiceModel.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Web.ApplicationServices.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Web.DataVisualization.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Web.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Web.DynamicData.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Web.Entity.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Web.Extensions.Design.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Web.Extensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Web.Services.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Windows.Forms.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.8\\System.Xml.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\FineUIPro.Web\\bin\\ThoughtWorks.QRCode.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\FineUIPro.Web\\bin\\FineUIPro.Web.dll","OutputItemRelativePath":"FineUIPro.Web.dll"},{"OutputItemFullPath":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\FineUIPro.Web\\bin\\FineUIPro.Web.pdb","OutputItemRelativePath":"FineUIPro.Web.pdb"}],"CopyToOutputEntries":[]} \ No newline at end of file +{"RootPath":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\FineUIPro.Web","ProjectFileName":"FineUIPro.Web.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"App_GlobalResources\\Lan.en-US.designer.cs"},{"SourceFile":"App_GlobalResources\\Lan.zh-CN.designer.cs"},{"SourceFile":"App_GlobalResources\\Lan.Designer.cs"},{"SourceFile":"AttachFile\\fileupload.ashx.cs"},{"SourceFile":"AttachFile\\webuploader2.aspx.cs"},{"SourceFile":"AttachFile\\webuploader2.aspx.designer.cs"},{"SourceFile":"AttachFile\\webuploader.aspx.cs"},{"SourceFile":"AttachFile\\webuploader.aspx.designer.cs"},{"SourceFile":"AttachFile\\webuploader3.aspx.cs"},{"SourceFile":"AttachFile\\webuploader3.aspx.designer.cs"},{"SourceFile":"BaseInfo\\ContractorList.aspx.cs"},{"SourceFile":"BaseInfo\\ContractorList.aspx.designer.cs"},{"SourceFile":"BaseInfo\\Currency.aspx.cs"},{"SourceFile":"BaseInfo\\Currency.aspx.designer.cs"},{"SourceFile":"BaseInfo\\Department.aspx.cs"},{"SourceFile":"BaseInfo\\Department.aspx.designer.cs"},{"SourceFile":"BaseInfo\\Discipline.aspx.cs"},{"SourceFile":"BaseInfo\\Discipline.aspx.designer.cs"},{"SourceFile":"BaseInfo\\DisciplineCategory.aspx.cs"},{"SourceFile":"BaseInfo\\DisciplineCategory.aspx.designer.cs"},{"SourceFile":"BaseInfo\\FileType.aspx.cs"},{"SourceFile":"BaseInfo\\FileType.aspx.designer.cs"},{"SourceFile":"BaseInfo\\FOOffset.aspx.cs"},{"SourceFile":"BaseInfo\\FOOffset.aspx.designer.cs"},{"SourceFile":"BaseInfo\\FOType.aspx.cs"},{"SourceFile":"BaseInfo\\FOType.aspx.designer.cs"},{"SourceFile":"BaseInfo\\Item.aspx.cs"},{"SourceFile":"BaseInfo\\Item.aspx.designer.cs"},{"SourceFile":"BaseInfo\\PriceScheme.aspx.cs"},{"SourceFile":"BaseInfo\\PriceScheme.aspx.designer.cs"},{"SourceFile":"BaseInfo\\TaxRate.aspx.cs"},{"SourceFile":"BaseInfo\\TaxRate.aspx.designer.cs"},{"SourceFile":"BaseInfo\\TemplateType.aspx.cs"},{"SourceFile":"BaseInfo\\TemplateType.aspx.designer.cs"},{"SourceFile":"BaseInfo\\Type.aspx.cs"},{"SourceFile":"BaseInfo\\Type.aspx.designer.cs"},{"SourceFile":"BaseInfo\\ViolationClause.aspx.cs"},{"SourceFile":"BaseInfo\\ViolationClause.aspx.designer.cs"},{"SourceFile":"CCP\\CcpEdit.aspx.cs"},{"SourceFile":"CCP\\CcpEdit.aspx.designer.cs"},{"SourceFile":"CCP\\CcpList.aspx.cs"},{"SourceFile":"CCP\\CcpList.aspx.designer.cs"},{"SourceFile":"CCP\\CCPUpload.aspx.cs"},{"SourceFile":"CCP\\CCPUpload.aspx.designer.cs"},{"SourceFile":"CCP\\CcpViewList.aspx.cs"},{"SourceFile":"CCP\\CcpViewList.aspx.designer.cs"},{"SourceFile":"common\\LdapAuthentication.cs"},{"SourceFile":"common\\LDAPUser.cs"},{"SourceFile":"common\\main.ashx.cs"},{"SourceFile":"common\\MainSearch.aspx.cs"},{"SourceFile":"common\\MainSearch.aspx.designer.cs"},{"SourceFile":"common\\PageBase.cs"},{"SourceFile":"CPT\\CPTReportList.aspx.cs"},{"SourceFile":"CPT\\CPTReportList.aspx.designer.cs"},{"SourceFile":"CPT\\SESReportToCPT.aspx.cs"},{"SourceFile":"CPT\\SESReportToCPT.aspx.designer.cs"},{"SourceFile":"CPT\\SESReportToCPTEdit.aspx.cs"},{"SourceFile":"CPT\\SESReportToCPTEdit.aspx.designer.cs"},{"SourceFile":"Encrypt.aspx.cs"},{"SourceFile":"Encrypt.aspx.designer.cs"},{"SourceFile":"common\\loading.aspx.cs"},{"SourceFile":"common\\loading.aspx.designer.cs"},{"SourceFile":"common\\Main.aspx.cs"},{"SourceFile":"common\\Main.aspx.designer.cs"},{"SourceFile":"common\\main_bootstrap_pure.aspx.cs"},{"SourceFile":"common\\main_bootstrap_pure.aspx.designer.cs"},{"SourceFile":"common\\main_bootstrap_pure_login.aspx.cs"},{"SourceFile":"common\\main_bootstrap_pure_login.aspx.designer.cs"},{"SourceFile":"common\\ReportPrint\\CalculateChinaEx.aspx.cs"},{"SourceFile":"common\\ReportPrint\\CalculateChinaEx.aspx.designer.cs"},{"SourceFile":"common\\ReportPrint\\ExPrintSet.aspx.cs"},{"SourceFile":"common\\ReportPrint\\ExPrintSet.aspx.designer.cs"},{"SourceFile":"common\\ReportPrint\\ExReportPrint.aspx.cs"},{"SourceFile":"common\\ReportPrint\\ExReportPrint.aspx.designer.cs"},{"SourceFile":"common\\ReportPrint\\PrintDesigner.aspx.cs"},{"SourceFile":"common\\ReportPrint\\PrintDesigner.aspx.designer.cs"},{"SourceFile":"common\\ReportPrint\\ReadExReportFile.aspx.cs"},{"SourceFile":"common\\ReportPrint\\ReadExReportFile.aspx.designer.cs"},{"SourceFile":"common\\ReportPrint\\SaveTabFile.aspx.cs"},{"SourceFile":"common\\ReportPrint\\SaveTabFile.aspx.designer.cs"},{"SourceFile":"common\\source.aspx.cs"},{"SourceFile":"common\\source.aspx.designer.cs"},{"SourceFile":"common\\source_file.aspx.cs"},{"SourceFile":"common\\source_file.aspx.designer.cs"},{"SourceFile":"common\\themes.aspx.cs"},{"SourceFile":"common\\themes.aspx.designer.cs"},{"SourceFile":"config\\ajax.aspx.cs"},{"SourceFile":"config\\ajax.aspx.designer.cs"},{"SourceFile":"config\\enable_gzip_iis6.aspx.cs"},{"SourceFile":"config\\enable_gzip_iis6.aspx.designer.cs"},{"SourceFile":"config\\icons.aspx.cs"},{"SourceFile":"config\\icons.aspx.designer.cs"},{"SourceFile":"config\\icons_font.aspx.cs"},{"SourceFile":"config\\icons_font.aspx.designer.cs"},{"SourceFile":"config\\install_toolbox.aspx.cs"},{"SourceFile":"config\\install_toolbox.aspx.designer.cs"},{"SourceFile":"config\\loading.aspx.cs"},{"SourceFile":"config\\loading.aspx.designer.cs"},{"SourceFile":"config\\modify_webconfig.aspx.cs"},{"SourceFile":"config\\modify_webconfig.aspx.designer.cs"},{"SourceFile":"Controls\\ChartControl.ascx.cs"},{"SourceFile":"Controls\\ChartControl.ascx.designer.cs"},{"SourceFile":"Controls\\ClientJs\\ClientJs.ascx.cs"},{"SourceFile":"Controls\\ClientJs\\ClientJs.ascx.designer.cs"},{"SourceFile":"Controls\\GridNavgator.ascx.cs"},{"SourceFile":"Controls\\GridNavgator.ascx.designer.cs"},{"SourceFile":"Controls\\JDGL\\ChartControl.ascx.cs"},{"SourceFile":"Controls\\JDGL\\ChartControl.ascx.designer.cs"},{"SourceFile":"Controls\\ProgressBox.ascx.cs"},{"SourceFile":"Controls\\ProgressBox.ascx.designer.cs"},{"SourceFile":"Evaluation\\ContractorEvaluation.aspx.cs"},{"SourceFile":"Evaluation\\ContractorEvaluation.aspx.designer.cs"},{"SourceFile":"Evaluation\\ContractorEvaluationEdit.aspx.cs"},{"SourceFile":"Evaluation\\ContractorEvaluationEdit.aspx.designer.cs"},{"SourceFile":"Evaluation\\Evaluation.aspx.cs"},{"SourceFile":"Evaluation\\Evaluation.aspx.designer.cs"},{"SourceFile":"Evaluation\\EvaluationNew.aspx.cs"},{"SourceFile":"Evaluation\\EvaluationNew.aspx.designer.cs"},{"SourceFile":"Evaluation\\EvaluationReport.aspx.cs"},{"SourceFile":"Evaluation\\EvaluationReport.aspx.designer.cs"},{"SourceFile":"Evaluation\\EvaluationUpload.aspx.cs"},{"SourceFile":"Evaluation\\EvaluationUpload.aspx.designer.cs"},{"SourceFile":"Evaluation\\ExportDetails.aspx.cs"},{"SourceFile":"Evaluation\\ExportDetails.aspx.designer.cs"},{"SourceFile":"Evaluation\\FilesManagement.aspx.cs"},{"SourceFile":"Evaluation\\FilesManagement.aspx.designer.cs"},{"SourceFile":"Evaluation\\PerformanceReport.aspx.cs"},{"SourceFile":"Evaluation\\PerformanceReport.aspx.designer.cs"},{"SourceFile":"Evaluation\\SafetyEvaluation.aspx.cs"},{"SourceFile":"Evaluation\\SafetyEvaluation.aspx.designer.cs"},{"SourceFile":"Global.asax.cs"},{"SourceFile":"index.aspx.cs"},{"SourceFile":"index.aspx.designer.cs"},{"SourceFile":"KPI\\KPI.aspx.cs"},{"SourceFile":"KPI\\KPI.aspx.designer.cs"},{"SourceFile":"Login.aspx.cs"},{"SourceFile":"Login.aspx.designer.cs"},{"SourceFile":"loginApi.aspx.cs"},{"SourceFile":"loginApi.aspx.designer.cs"},{"SourceFile":"LogOff.aspx.cs"},{"SourceFile":"LogOff.aspx.designer.cs"},{"SourceFile":"MyWebService.asmx.cs"},{"SourceFile":"OperationError.aspx.cs"},{"SourceFile":"OperationError.aspx.designer.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"Scripts\\index.aspx.cs"},{"SourceFile":"Scripts\\index.aspx.designer.cs"},{"SourceFile":"SendEmail\\SelectUserControl.ascx.cs"},{"SourceFile":"SendEmail\\SelectUserControl.ascx.designer.cs"},{"SourceFile":"SendEmail\\SendEmail.aspx.cs"},{"SourceFile":"SendEmail\\SendEmail.aspx.designer.cs"},{"SourceFile":"SendEmail\\SendEmailLog.aspx.cs"},{"SourceFile":"SendEmail\\SendEmailLog.aspx.designer.cs"},{"SourceFile":"SendEmail\\SendEmailPop.aspx.cs"},{"SourceFile":"SendEmail\\SendEmailPop.aspx.designer.cs"},{"SourceFile":"SendEmail\\SendEmailTemplate.aspx.cs"},{"SourceFile":"SendEmail\\SendEmailTemplate.aspx.designer.cs"},{"SourceFile":"SendEmail\\SendEmailTemplateList.aspx.cs"},{"SourceFile":"SendEmail\\SendEmailTemplateList.aspx.designer.cs"},{"SourceFile":"SES\\ContractorQualification.aspx.cs"},{"SourceFile":"SES\\ContractorQualification.aspx.designer.cs"},{"SourceFile":"SES\\ContractorQualificationEdit.aspx.cs"},{"SourceFile":"SES\\ContractorQualificationEdit.aspx.designer.cs"},{"SourceFile":"SES\\ContractorQueCopy.aspx.cs"},{"SourceFile":"SES\\ContractorQueCopy.aspx.designer.cs"},{"SourceFile":"SES\\CQualityPunish.aspx.cs"},{"SourceFile":"SES\\CQualityPunish.aspx.designer.cs"},{"SourceFile":"SES\\CQualityPunishEdit.aspx.cs"},{"SourceFile":"SES\\CQualityPunishEdit.aspx.designer.cs"},{"SourceFile":"SES\\CSafePunishEdit.aspx.cs"},{"SourceFile":"SES\\CSafePunishEdit.aspx.designer.cs"},{"SourceFile":"SES\\CTSalesContractManagement.aspx.cs"},{"SourceFile":"SES\\CTSalesContractManagement.aspx.designer.cs"},{"SourceFile":"SES\\CTSalesContracts.aspx.cs"},{"SourceFile":"SES\\CTSalesContracts.aspx.designer.cs"},{"SourceFile":"SES\\CTSalesContractsEdit.aspx.cs"},{"SourceFile":"SES\\CTSalesContractsEdit.aspx.designer.cs"},{"SourceFile":"SES\\CTSalesSignedContracts.aspx.cs"},{"SourceFile":"SES\\CTSalesSignedContracts.aspx.designer.cs"},{"SourceFile":"SES\\FCList.aspx.cs"},{"SourceFile":"SES\\FCList.aspx.designer.cs"},{"SourceFile":"SES\\FCListEdit.aspx.cs"},{"SourceFile":"SES\\FCListEdit.aspx.designer.cs"},{"SourceFile":"SES\\OneTimeContractManagement.aspx.cs"},{"SourceFile":"SES\\OneTimeContractManagement.aspx.designer.cs"},{"SourceFile":"SES\\OneTimeContracts.aspx.cs"},{"SourceFile":"SES\\OneTimeContracts.aspx.designer.cs"},{"SourceFile":"SES\\OneTimeContractsEdit.aspx.cs"},{"SourceFile":"SES\\OneTimeContractsEdit.aspx.designer.cs"},{"SourceFile":"SES\\OneTimeSignedContracts.aspx.cs"},{"SourceFile":"SES\\OneTimeSignedContracts.aspx.designer.cs"},{"SourceFile":"SES\\CSafePunish.aspx.cs"},{"SourceFile":"SES\\CSafePunish.aspx.designer.cs"},{"SourceFile":"SES\\SESEvaluateList.aspx.cs"},{"SourceFile":"SES\\SESEvaluateList.aspx.designer.cs"},{"SourceFile":"SES\\SESRelatedData.aspx.cs"},{"SourceFile":"SES\\SESRelatedData.aspx.designer.cs"},{"SourceFile":"SES\\SESRelatedDataContractManage.aspx.cs"},{"SourceFile":"SES\\SESRelatedDataContractManage.aspx.designer.cs"},{"SourceFile":"SES\\SESRelatedDataEdit.aspx.cs"},{"SourceFile":"SES\\SESRelatedDataEdit.aspx.designer.cs"},{"SourceFile":"SES\\SESRelatedDataSearch.aspx.cs"},{"SourceFile":"SES\\SESRelatedDataSearch.aspx.designer.cs"},{"SourceFile":"SES\\SESRelatedDataSigned.aspx.cs"},{"SourceFile":"SES\\SESRelatedDataSigned.aspx.designer.cs"},{"SourceFile":"SES\\SESReport.ashx.cs"},{"SourceFile":"SES\\SESReport.aspx.cs"},{"SourceFile":"SES\\SESReport.aspx.designer.cs"},{"SourceFile":"SES\\SESReportEdit.aspx.cs"},{"SourceFile":"SES\\SESReportEdit.aspx.designer.cs"},{"SourceFile":"SES\\SSR.aspx.cs"},{"SourceFile":"SES\\SSR.aspx.designer.cs"},{"SourceFile":"SES\\SSREdit.aspx.cs"},{"SourceFile":"SES\\SSREdit.aspx.designer.cs"},{"SourceFile":"SES\\StandardTemplate.aspx.cs"},{"SourceFile":"SES\\StandardTemplate.aspx.designer.cs"},{"SourceFile":"SES\\StandardTemplateEdit.aspx.cs"},{"SourceFile":"SES\\StandardTemplateEdit.aspx.designer.cs"},{"SourceFile":"ssocallback.aspx.cs"},{"SourceFile":"ssocallback.aspx.designer.cs"},{"SourceFile":"Styles\\index.aspx.cs"},{"SourceFile":"Styles\\index.aspx.designer.cs"},{"SourceFile":"SysManage\\DataBackup.aspx.cs"},{"SourceFile":"SysManage\\DataBackup.aspx.designer.cs"},{"SourceFile":"SysManage\\LogList.aspx.cs"},{"SourceFile":"SysManage\\LogList.aspx.designer.cs"},{"SourceFile":"SysManage\\RoleList.aspx.cs"},{"SourceFile":"SysManage\\RoleList.aspx.designer.cs"},{"SourceFile":"SysManage\\RoleListEdit.aspx.cs"},{"SourceFile":"SysManage\\RoleListEdit.aspx.designer.cs"},{"SourceFile":"SysManage\\RolePower.aspx.cs"},{"SourceFile":"SysManage\\RolePower.aspx.designer.cs"},{"SourceFile":"SysManage\\SelectUserToEMail.aspx.cs"},{"SourceFile":"SysManage\\SelectUserToEMail.aspx.designer.cs"},{"SourceFile":"SysManage\\SysSet.aspx.cs"},{"SourceFile":"SysManage\\SysSet.aspx.designer.cs"},{"SourceFile":"SysManage\\UpdatePassword.aspx.cs"},{"SourceFile":"SysManage\\UpdatePassword.aspx.designer.cs"},{"SourceFile":"SysManage\\UpdatePasswordEdit.aspx.cs"},{"SourceFile":"SysManage\\UpdatePasswordEdit.aspx.designer.cs"},{"SourceFile":"SysManage\\UserList.aspx.cs"},{"SourceFile":"SysManage\\UserList.aspx.designer.cs"},{"SourceFile":"SysManage\\UserListEdit.aspx.cs"},{"SourceFile":"SysManage\\UserListEdit.aspx.designer.cs"},{"SourceFile":"SysManage\\UserToEMial.aspx.cs"},{"SourceFile":"SysManage\\UserToEMial.aspx.designer.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.6.1.AssemblyAttributes.cs"}],"References":[{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\BLL\\bin\\Debug\\BLL.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":true,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Portable.BouncyCastle.1.8.9\\lib\\net40\\BouncyCastle.Crypto.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\FineUIPro\\FineUIPro.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\SharpZipLib.1.3.2\\lib\\net45\\ICSharpCode.SharpZipLib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Microsoft.Bcl.AsyncInterfaces.1.1.0\\lib\\net461\\Microsoft.Bcl.AsyncInterfaces.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\Microsoft.CSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Microsoft.IdentityModel.Abstractions.7.6.0\\lib\\net461\\Microsoft.IdentityModel.Abstractions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Microsoft.IdentityModel.JsonWebTokens.6.22.1\\lib\\net461\\Microsoft.IdentityModel.JsonWebTokens.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Microsoft.IdentityModel.Logging.7.6.0\\lib\\net461\\Microsoft.IdentityModel.Logging.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Microsoft.IdentityModel.Tokens.6.22.1\\lib\\net461\\Microsoft.IdentityModel.Tokens.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\Microsoft.JScript.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\FineUIPro.Web\\FakesAssemblies\\Microsoft.ReportViewer.Common.15.0.0.0.Fakes.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1484.0\\lib\\net40\\Microsoft.ReportViewer.Common.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1484.0\\lib\\net40\\Microsoft.ReportViewer.DataVisualization.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1484.0\\lib\\net40\\Microsoft.ReportViewer.Design.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1484.0\\lib\\net40\\Microsoft.ReportViewer.ProcessingObjectModel.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1484.0\\lib\\net40\\Microsoft.ReportViewer.WebDesign.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Microsoft.ReportingServices.ReportViewerControl.WebForms.150.1484.0\\lib\\net40\\Microsoft.ReportViewer.WebForms.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Microsoft.SqlServer.Types.14.0.1016.290\\lib\\net40\\Microsoft.SqlServer.Types.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\Model\\bin\\Debug\\Model.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":true,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\Newtonsoft.Json.13.0.1\\lib\\net45\\Newtonsoft.Json.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\NPOI.2.5.5\\lib\\net45\\NPOI.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\NPOI.2.5.5\\lib\\net45\\NPOI.OOXML.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\NPOI.2.5.5\\lib\\net45\\NPOI.OpenXml4Net.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\NPOI.2.5.5\\lib\\net45\\NPOI.OpenXmlFormats.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\System.Buffers.4.5.1\\lib\\net461\\System.Buffers.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Configuration.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Data.DataSetExtensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Data.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.DirectoryServices.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.DirectoryServices.Protocols.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Drawing.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.EnterpriseServices.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\System.IdentityModel.Tokens.Jwt.6.22.1\\lib\\net461\\System.IdentityModel.Tokens.Jwt.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.IO.Compression.FileSystem.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Management.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\System.Memory.4.5.5\\lib\\net461\\System.Memory.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Net.Http.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Numerics.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\System.Numerics.Vectors.4.5.0\\lib\\net46\\System.Numerics.Vectors.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\System.Runtime.CompilerServices.Unsafe.4.6.0\\lib\\netstandard2.0\\System.Runtime.CompilerServices.Unsafe.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Runtime.Serialization.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.ServiceModel.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\System.Text.Encodings.Web.4.7.2\\lib\\net461\\System.Text.Encodings.Web.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\System.Text.Json.4.6.0\\lib\\net461\\System.Text.Json.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\System.Threading.Tasks.Extensions.4.5.4\\lib\\net461\\System.Threading.Tasks.Extensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\packages\\System.ValueTuple.4.5.0\\lib\\net461\\System.ValueTuple.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Web.ApplicationServices.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Web.DataVisualization.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Web.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Web.DynamicData.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Web.Entity.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Web.Extensions.Design.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Web.Extensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Web.Services.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Windows.Forms.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.6.1\\System.Xml.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\FineUIPro.Web\\bin\\FineUIPro.Web.dll","OutputItemRelativePath":"FineUIPro.Web.dll"},{"OutputItemFullPath":"E:\\MyProject\\FCL\\Basf_FCL\\FCL\\FineUIPro.Web\\bin\\FineUIPro.Web.pdb","OutputItemRelativePath":"FineUIPro.Web.pdb"}],"CopyToOutputEntries":[]} \ No newline at end of file diff --git a/FCL/FineUIPro.Web/BaseInfo/ViolationClause.aspx b/FCL/FineUIPro.Web/BaseInfo/ViolationClause.aspx new file mode 100644 index 0000000..250d474 --- /dev/null +++ b/FCL/FineUIPro.Web/BaseInfo/ViolationClause.aspx @@ -0,0 +1,108 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViolationClause.aspx.cs" Inherits="FineUIPro.Web.BaseInfo.ViolationClause" %> + + + + + + Violation Clause + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/FCL/FineUIPro.Web/BaseInfo/ViolationClause.aspx.cs b/FCL/FineUIPro.Web/BaseInfo/ViolationClause.aspx.cs new file mode 100644 index 0000000..61d586c --- /dev/null +++ b/FCL/FineUIPro.Web/BaseInfo/ViolationClause.aspx.cs @@ -0,0 +1,275 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Data; +using System.Data.SqlClient; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.BaseInfo +{ + public partial class ViolationClause : PageBase + { + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + GetButtonPower();//权限设置 + btnDelete.OnClientClick = Grid1.GetNoSelectionAlertReference("Please select at least one item!"); + btnDelete.ConfirmText = String.Format("Are you sure you want to delete the selected   rows?", Grid1.GetSelectedCountReference()); + InitTreeMenu(); + // 绑定表格 + //BindGrid(); + } + } + + #region 加载树 + private void InitTreeMenu() + { + this.tvViolationClause.Nodes.Clear(); + TreeNode rootRole = new TreeNode(); + rootRole.Text = "违章条款"; + rootRole.NodeID = "0"; + rootRole.Expanded = true; + this.tvViolationClause.Nodes.Add(rootRole); + BoundTree(rootRole.Nodes); + } + + /// + /// 遍历节点 + /// + /// + /// + /// + private void BoundTree(TreeNodeCollection nodes) + { + List supVio = BLL.ViolationClauseService.GetSupViolationClause(); + + if (supVio.Count() > 0) + { + TreeNode tn = null; + foreach (var q in supVio) + { + tn = new TreeNode(); + tn.Text = q.ClauseDef; + tn.NodeID = q.ViolationClauseId; + tn.EnableClickEvent = true; + nodes.Add(tn); + } + } + } + #endregion + + #region Tree点击事件 + /// + /// 选择角色事件 + /// + /// + /// + protected void tvViolationClause_NodeCommand(object sender, TreeCommandEventArgs e) + { + this.BindGrid(this.tvViolationClause.SelectedNodeID); + } + #endregion + + private void BindGrid(string supViolationClauseId) + { + string strSql = @"SELECT ViolationClauseId,ClauseDef,ApplicationDef, + (CASE WHEN (DeductionIndividual1=0 OR DeductionIndividual1 IS NULL) THEN 'N/A' ELSE CAST(CAST(DeductionIndividual1 AS REAL) AS VARCHAR) END) AS DeductionIndividual1, + (CASE WHEN (DeductionComPany1=0 OR DeductionComPany1 IS NULL) THEN 'N/A' ELSE CAST(CAST(DeductionComPany1 AS REAL) AS VARCHAR) END) AS DeductionComPany1, + (CASE WHEN (DeductionIndividual2=0 OR DeductionIndividual2 IS NULL) THEN 'N/A' ELSE CAST(CAST(DeductionIndividual2 AS REAL) AS VARCHAR) END) AS DeductionIndividual2, + (CASE WHEN (DeductionComPany2=0 OR DeductionComPany2 IS NULL) THEN 'N/A' ELSE CAST(CAST(DeductionComPany2 AS REAL) AS VARCHAR) END) AS DeductionComPany2, + (CASE WHEN (DeductionIndividual3=0 OR DeductionIndividual3 IS NULL) THEN 'N/A' ELSE CAST(CAST(DeductionIndividual3 AS REAL) AS VARCHAR) END) AS DeductionIndividual3, + (CASE WHEN (DeductionComPany3=0 OR DeductionComPany3 IS NULL) THEN 'N/A' ELSE CAST(CAST(DeductionComPany3 AS REAL) AS VARCHAR) END) AS DeductionComPany3 + FROM dbo.EMC_ViolationClause + WHERE SupViolationClause=@SupViolationClause + ORDER BY SortIndex"; + List parms = new List(); + parms.Add(new SqlParameter("@SupViolationClause", supViolationClauseId)); + SqlParameter[] parameter = parms.ToArray(); + DataTable dt = SQLHelper.GetDataTableRunText(strSql, parameter); + // 2.获取当前分页数据 + Grid1.DataSource = dt; + Grid1.DataBind(); + } + + #region 编辑 + + protected void btnAdd_Click(object sender, EventArgs e) + { + if (tvViolationClause.SelectedNodeID=="" || tvViolationClause.SelectedNodeID =="0") + { + Alert.ShowInParent("Please select Tree Node!"); + return; + } + string Id = tvViolationClause.SelectedNodeID; + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ViolationClauseEdit.aspx?supViolationClauseId={0}", Id, "编辑 - "))); + } + /// + /// 编辑 + /// + /// + /// + protected void btnEdit_Click(object sender, EventArgs e) + { + if (Grid1.SelectedRowIndexArray.Length == 0) + { + Alert.ShowInParent("Please select at least one record!"); + return; + } + string Id = Grid1.SelectedRowID; + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("ViolationClauseEdit.aspx?violationClauseId={0}", Id, "编辑 - "))); + + } + + /// + /// 右键编辑事件 + /// + /// + /// + protected void btnMenuEdit_Click(object sender, EventArgs e) + { + btnEdit_Click(null, null); + } + + /// + /// Grid行双击事件 + /// + /// + /// + protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e) + { + btnEdit_Click(null, null); + } + #endregion + + #region 删除数据 + /// + /// 批量删除数据 + /// + /// + /// + protected void btnDelete_Click(object sender, EventArgs e) + { + this.DeleteData(); + } + + /// + /// 右键删除事件 + /// + /// + /// + protected void btnMenuDelete_Click(object sender, EventArgs e) + { + this.DeleteData(); + } + + /// + /// 删除方法 + /// + private void DeleteData() + { + if (Grid1.SelectedRowIndexArray.Length > 0) + { + foreach (int rowIndex in Grid1.SelectedRowIndexArray) + { + string rowID = Grid1.DataKeys[rowIndex][0].ToString(); + var role = BLL.ViolationClauseService.GetViolationClause(rowID); + if (role != null) + { + if (judgementDelete(rowID, false)) + { + BLL.ViolationClauseService.DeleteViolationClause(rowID); + } + } + } + this.BindGrid(this.tvViolationClause.SelectedNodeID); + BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "Delete Violation Clause"); + ShowNotify("Deleted successfully!"); + } + } + #endregion + + #region 关闭弹出窗口 + /// + /// 关闭窗口 + /// + /// + /// + protected void Window1_Close(object sender, EventArgs e) + { + this.BindGrid(this.tvViolationClause.SelectedNodeID); + } + #endregion + + /// + /// 排序 + /// + /// + /// + protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e) + { + Grid1.SortDirection = e.SortDirection; + Grid1.SortField = e.SortField; + this.BindGrid(this.tvViolationClause.SelectedNodeID); + } + + + #region 判断是否可删除 + /// + /// 判断是否可以删除 + /// + /// + private bool judgementDelete(string id, bool isShow) + { + string content = string.Empty; + if (Funs.DB.EMC_Punishment.FirstOrDefault(x => x.ViolationClauseId == id) != null) + { + content = "This role is already in use in [违章条款] and cannot be deleted!"; + } + + if (string.IsNullOrEmpty(content)) + { + return true; + } + else + { + if (isShow) + { + Alert.ShowInTop(content); + } + return false; + } + } + #endregion + + #region 权限设置 + /// + /// 菜单按钮权限 + /// + private void GetButtonPower() + { + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.UserId, BLL.Const.ViolationClauseMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnAdd)) + { + this.btnNew.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnModify)) + { + this.btnEdit.Hidden = false; + this.btnMenuEdit.Hidden = false; + } + if (buttonList.Contains(BLL.Const.BtnDelete)) + { + this.btnDelete.Hidden = false; + this.btnMenuDelete.Hidden = false; + } + } + } + #endregion + } +} \ No newline at end of file diff --git a/FCL/FineUIPro.Web/BaseInfo/ViolationClause.aspx.designer.cs b/FCL/FineUIPro.Web/BaseInfo/ViolationClause.aspx.designer.cs new file mode 100644 index 0000000..10902f1 --- /dev/null +++ b/FCL/FineUIPro.Web/BaseInfo/ViolationClause.aspx.designer.cs @@ -0,0 +1,152 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.BaseInfo +{ + + + public partial class ViolationClause + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// Panel1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel1; + + /// + /// panelLeftRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelLeftRegion; + + /// + /// tvViolationClause 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Tree tvViolationClause; + + /// + /// panelCenterRegion 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel panelCenterRegion; + + /// + /// Grid1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Grid Grid1; + + /// + /// Toolbar2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar2; + + /// + /// btnNew 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnNew; + + /// + /// btnEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnEdit; + + /// + /// btnDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDelete; + + /// + /// Window1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window Window1; + + /// + /// Menu1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Menu Menu1; + + /// + /// btnMenuEdit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuEdit; + + /// + /// btnMenuDelete 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.MenuButton btnMenuDelete; + } +} diff --git a/FCL/FineUIPro.Web/BaseInfo/ViolationClauseEdit.aspx b/FCL/FineUIPro.Web/BaseInfo/ViolationClauseEdit.aspx new file mode 100644 index 0000000..9cf6875 --- /dev/null +++ b/FCL/FineUIPro.Web/BaseInfo/ViolationClauseEdit.aspx @@ -0,0 +1,79 @@ +<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ViolationClauseEdit.aspx.cs" Inherits="FineUIPro.Web.BaseInfo.ViolationClauseEdit" %> + + + + + + 编辑违章条款 + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/FCL/FineUIPro.Web/BaseInfo/ViolationClauseEdit.aspx.cs b/FCL/FineUIPro.Web/BaseInfo/ViolationClauseEdit.aspx.cs new file mode 100644 index 0000000..d2e3e9a --- /dev/null +++ b/FCL/FineUIPro.Web/BaseInfo/ViolationClauseEdit.aspx.cs @@ -0,0 +1,136 @@ +using BLL; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace FineUIPro.Web.BaseInfo +{ + public partial class ViolationClauseEdit : PageBase + { + protected void Page_Load(object sender, EventArgs e) + { + if (!IsPostBack) + { + GetButtonPower();//按钮权限 + btnClose.OnClientClick = ActiveWindow.GetHideReference(); + string violationClauseId = Request.Params["violationClauseId"]; + + if (!string.IsNullOrEmpty(violationClauseId)) + { + var vio = BLL.ViolationClauseService.GetViolationClause(violationClauseId); + if (vio != null) + { + this.txtClauseDef.Text = vio.ClauseDef; + this.txtApplicationDef.Text = vio.ApplicationDef; + if (vio.DeductionIndividual1 != null && vio.DeductionIndividual1 != 0) + { + numDeductionIndividual1.Text = vio.DeductionIndividual1.ToString(); + } + if (vio.DeductionComPany1 != null && vio.DeductionComPany1 != 0) + { + numDeductionComPany1.Text = vio.DeductionComPany1.ToString(); + } + if (vio.DeductionIndividual2 != null && vio.DeductionIndividual2 != 0) + { + numDeductionIndividual2.Text = vio.DeductionIndividual2.ToString(); + } + if (vio.DeductionComPany2 != null && vio.DeductionComPany2 != 0) + { + numDeductionComPany2.Text = vio.DeductionComPany2.ToString(); + } + if (vio.DeductionIndividual3 != null && vio.DeductionIndividual3 != 0) + { + numDeductionIndividual3.Text = vio.DeductionIndividual3.ToString(); + } + if (vio.DeductionComPany3 != null && vio.DeductionComPany3 != 0) + { + numDeductionComPany3.Text = vio.DeductionComPany3.ToString(); + } + if (vio.SortIndex != null) + { + numSortIndex.Text = vio.SortIndex.ToString(); + } + } + } + } + } + + protected void btnSave_Click(object sender, EventArgs e) + { + string violationClauseId = Request.Params["violationClauseId"]; + string supViolationClauseId = Request.Params["supViolationClauseId"]; + Model.EMC_ViolationClause vio = new Model.EMC_ViolationClause(); + vio.ClauseDef = txtClauseDef.Text.Trim(); + vio.ApplicationDef = txtApplicationDef.Text.Trim(); + if (!string.IsNullOrEmpty(numDeductionIndividual1.Text)) + { + vio.DeductionIndividual1 = Convert.ToDecimal(numDeductionIndividual1.Text); + } + if (!string.IsNullOrEmpty(numDeductionComPany1.Text)) + { + vio.DeductionComPany1 = Convert.ToDecimal(numDeductionComPany1.Text); + } + if (!string.IsNullOrEmpty(numDeductionIndividual2.Text)) + { + vio.DeductionIndividual2 = Convert.ToDecimal(numDeductionIndividual2.Text); + } + if (!string.IsNullOrEmpty(numDeductionComPany2.Text)) + { + vio.DeductionComPany2 = Convert.ToDecimal(numDeductionComPany2.Text); + } + if (!string.IsNullOrEmpty(numDeductionIndividual3.Text)) + { + vio.DeductionIndividual3 = Convert.ToDecimal(numDeductionIndividual3.Text); + } + if (!string.IsNullOrEmpty(numDeductionComPany3.Text)) + { + vio.DeductionComPany3 = Convert.ToDecimal(numDeductionComPany3.Text); + } + if (!string.IsNullOrEmpty(numSortIndex.Text)) + { + vio.SortIndex = Convert.ToInt32(numSortIndex.Text); + } + + if (string.IsNullOrEmpty(violationClauseId)) + { + if (!string.IsNullOrEmpty(supViolationClauseId)) + { + string newKeyID = SQLHelper.GetNewID(typeof(Model.EMC_ViolationClause)); + vio.ViolationClauseId = newKeyID; + vio.SupViolationClause = supViolationClauseId; + BLL.ViolationClauseService.AddViolationClause(vio); + BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "Add Violation Clause!"); + } + } + else + { + vio.ViolationClauseId = violationClauseId; + BLL.ViolationClauseService.UpdateViolationClause(vio); + BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "Modify Violation Clause!"); + } + ShowNotify("Save successfully!", MessageBoxIcon.Success); + PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); + } + + #region 权限设置 + /// + /// 菜单按钮权限 + /// + private void GetButtonPower() + { + var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.UserId, BLL.Const.ViolationClauseMenuId); + if (buttonList.Count() > 0) + { + if (buttonList.Contains(BLL.Const.BtnSave)) + { + this.btnSave.Hidden = false; + } + } + } + #endregion + } +} \ No newline at end of file diff --git a/FCL/FineUIPro.Web/BaseInfo/ViolationClauseEdit.aspx.designer.cs b/FCL/FineUIPro.Web/BaseInfo/ViolationClauseEdit.aspx.designer.cs new file mode 100644 index 0000000..7bceeee --- /dev/null +++ b/FCL/FineUIPro.Web/BaseInfo/ViolationClauseEdit.aspx.designer.cs @@ -0,0 +1,152 @@ +//------------------------------------------------------------------------------ +// <自动生成> +// 此代码由工具生成。 +// +// 对此文件的更改可能导致不正确的行为,如果 +// 重新生成代码,则所做更改将丢失。 +// +//------------------------------------------------------------------------------ + +namespace FineUIPro.Web.BaseInfo +{ + + + public partial class ViolationClauseEdit + { + + /// + /// form1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.HtmlControls.HtmlForm form1; + + /// + /// PageManager1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.PageManager PageManager1; + + /// + /// SimpleForm1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Form SimpleForm1; + + /// + /// txtClauseDef 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtClauseDef; + + /// + /// numDeductionIndividual1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox numDeductionIndividual1; + + /// + /// numDeductionComPany1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox numDeductionComPany1; + + /// + /// numDeductionIndividual2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox numDeductionIndividual2; + + /// + /// numDeductionComPany2 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox numDeductionComPany2; + + /// + /// numDeductionIndividual3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox numDeductionIndividual3; + + /// + /// numDeductionComPany3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox numDeductionComPany3; + + /// + /// numSortIndex 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox numSortIndex; + + /// + /// txtApplicationDef 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextArea txtApplicationDef; + + /// + /// Toolbar1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Toolbar Toolbar1; + + /// + /// btnSave 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnSave; + + /// + /// btnClose 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnClose; + } +} diff --git a/FCL/FineUIPro.Web/CCP/CcpEdit.aspx b/FCL/FineUIPro.Web/CCP/CcpEdit.aspx index ad6eff2..5454701 100644 --- a/FCL/FineUIPro.Web/CCP/CcpEdit.aspx +++ b/FCL/FineUIPro.Web/CCP/CcpEdit.aspx @@ -116,10 +116,10 @@ FieldType="String" HeaderText="项目名称" HeaderTextAlign="Center"> + FieldType="Double" HeaderText="承包商报价" HeaderTextAlign="Center" > + FieldType="Double" HeaderText="CTE/D审价" HeaderTextAlign="Center"> diff --git a/FCL/FineUIPro.Web/Evaluation/ContractorEvaluation.aspx.cs b/FCL/FineUIPro.Web/Evaluation/ContractorEvaluation.aspx.cs index 4e395b3..714a172 100644 --- a/FCL/FineUIPro.Web/Evaluation/ContractorEvaluation.aspx.cs +++ b/FCL/FineUIPro.Web/Evaluation/ContractorEvaluation.aspx.cs @@ -359,30 +359,30 @@ namespace FineUIPro.Web.Evaluation if (reportModel.GetRow(3) == null) reportModel.CreateRow(3); if (reportModel.GetRow(3).GetCell(2) == null) reportModel.GetRow(3).CreateCell(2); reportModel.GetRow(3).GetCell(2).SetCellValue(eva.Discipline); - //7行 - if (reportModel.GetRow(6) == null) reportModel.CreateRow(6); - if (reportModel.GetRow(6).GetCell(2) == null) reportModel.GetRow(6).CreateCell(2); - reportModel.GetRow(6).GetCell(2).SetCellValue(eva.FO_NO); - if (reportModel.GetRow(6).GetCell(6) == null) reportModel.GetRow(6).CreateCell(6); + //6行 + if (reportModel.GetRow(5) == null) reportModel.CreateRow(5); + if (reportModel.GetRow(5).GetCell(2) == null) reportModel.GetRow(5).CreateCell(2); + reportModel.GetRow(5).GetCell(2).SetCellValue(eva.FO_NO); + if (reportModel.GetRow(5).GetCell(6) == null) reportModel.GetRow(5).CreateCell(6); if (eva.Validate_Date.HasValue) { - reportModel.GetRow(6).GetCell(6).SetCellValue(eva.Validate_Date.Value.ToString("yyyy/MM/dd")); + reportModel.GetRow(5).GetCell(6).SetCellValue(eva.Validate_Date.Value.ToString("yyyy/MM/dd")); //reportModel.GetRow(6).GetCell(6).CellStyle = styleDate; } - if (reportModel.GetRow(6).GetCell(8) == null) reportModel.GetRow(6).CreateCell(8); + if (reportModel.GetRow(5).GetCell(8) == null) reportModel.GetRow(5).CreateCell(8); if (eva.Expire_Date.HasValue) { - reportModel.GetRow(6).GetCell(8).SetCellValue(eva.Expire_Date.Value.ToString("yyyy/MM/dd")); + reportModel.GetRow(5).GetCell(8).SetCellValue(eva.Expire_Date.Value.ToString("yyyy/MM/dd")); //reportModel.GetRow(6).GetCell(8).CellStyle = styleDate; } - //8行 - if (reportModel.GetRow(7) == null) reportModel.CreateRow(7); - if (reportModel.GetRow(7).GetCell(2) == null) reportModel.GetRow(7).CreateCell(2); - reportModel.GetRow(7).GetCell(2).SetCellValue(eva.Contractor); - if (reportModel.GetRow(7).GetCell(8) == null) reportModel.GetRow(7).CreateCell(8); - reportModel.GetRow(7).GetCell(8).SetCellValue(eva.VolumeAllocation); + //7行 + if (reportModel.GetRow(6) == null) reportModel.CreateRow(6); + if (reportModel.GetRow(6).GetCell(2) == null) reportModel.GetRow(6).CreateCell(2); + reportModel.GetRow(6).GetCell(2).SetCellValue(eva.Contractor); + if (reportModel.GetRow(6).GetCell(8) == null) reportModel.GetRow(6).CreateCell(8); + reportModel.GetRow(6).GetCell(8).SetCellValue(eva.VolumeAllocation); //9行 if (reportModel.GetRow(8) == null) reportModel.CreateRow(8); @@ -433,26 +433,26 @@ namespace FineUIPro.Web.Evaluation if (sesDataScore.Count(p => p.dataMonth == curDate.ToString("yyyy-MM")) > 0 && Funs.GetNewDecimal(sesDataScore.FirstOrDefault(p => p.dataMonth == curDate.ToString("yyyy-MM")).SumScore) > 0) { var yearNums = float.Parse(sesDataScore.FirstOrDefault(p => p.dataMonth == curDate.ToString("yyyy-MM")).SumScore).ToString("0.##"); - reportModel.GetRow(13 + j).GetCell(1).SetCellValue(yearNums); + reportModel.GetRow(13 + j).GetCell(2).SetCellValue(yearNums); } else { - reportModel.GetRow(13 + j).GetCell(1).SetCellValue(""); + reportModel.GetRow(13 + j).GetCell(2).SetCellValue(""); } } else { - if (reportModel.GetRow(13 + j - 12).GetCell(2) == null) reportModel.GetRow(13 + j - 12).CreateCell(2); - reportModel.GetRow(13 + j - 12).GetCell(2).SetCellValue(curDate.ToString("yyyy-MM")); + if (reportModel.GetRow(13 + j - 12).GetCell(3) == null) reportModel.GetRow(13 + j - 12).CreateCell(3); + reportModel.GetRow(13 + j - 12).GetCell(3).SetCellValue(curDate.ToString("yyyy-MM")); if (sesDataScore.Count(p => p.dataMonth == curDate.ToString("yyyy-MM")) > 0 && Funs.GetNewDecimal(sesDataScore.FirstOrDefault(p => p.dataMonth == curDate.ToString("yyyy-MM")).SumScore) > 0) { var yearNums = float.Parse(sesDataScore.FirstOrDefault(p => p.dataMonth == curDate.ToString("yyyy-MM")).SumScore).ToString("0.##"); - reportModel.GetRow(13 + j - 12).GetCell(3).SetCellValue(yearNums); + reportModel.GetRow(13 + j - 12).GetCell(4).SetCellValue(yearNums); } else { - reportModel.GetRow(13 + j - 12).GetCell(3).SetCellValue(""); + reportModel.GetRow(13 + j - 12).GetCell(4).SetCellValue(""); } } } @@ -542,6 +542,8 @@ namespace FineUIPro.Web.Evaluation //reportModel.GetRow(20).GetCell(5).SetCellValue(priceLevel); // 28 + if (reportModel.GetRow(26) == null) reportModel.CreateRow(26); + if (reportModel.GetRow(27) == null) reportModel.CreateRow(27); if (reportModel.GetRow(28) == null) reportModel.CreateRow(28); if (reportModel.GetRow(29) == null) reportModel.CreateRow(29); if (reportModel.GetRow(31) == null) reportModel.CreateRow(31); @@ -553,220 +555,189 @@ namespace FineUIPro.Web.Evaluation if (reportModel.GetRow(37) == null) reportModel.CreateRow(37); if (reportModel.GetRow(38) == null) reportModel.CreateRow(38); if (reportModel.GetRow(39) == null) reportModel.CreateRow(39); - //if (reportModel.GetRow(40) == null) reportModel.CreateRow(40); - //if (reportModel.GetRow(41) == null) reportModel.CreateRow(41); - //if (reportModel.GetRow(42) == null) reportModel.CreateRow(42); + if (reportModel.GetRow(42) == null) reportModel.CreateRow(42); - if (reportModel.GetRow(43) == null) reportModel.CreateRow(43); - if (reportModel.GetRow(44) == null) reportModel.CreateRow(44); - if (reportModel.GetRow(45) == null) reportModel.CreateRow(45); - if (reportModel.GetRow(46) == null) reportModel.CreateRow(46); - if (reportModel.GetRow(47) == null) reportModel.CreateRow(47); - if (reportModel.GetRow(48) == null) reportModel.CreateRow(48); + //if (reportModel.GetRow(43) == null) reportModel.CreateRow(43); + //if (reportModel.GetRow(44) == null) reportModel.CreateRow(44); + //if (reportModel.GetRow(45) == null) reportModel.CreateRow(45); + //if (reportModel.GetRow(46) == null) reportModel.CreateRow(46); + //if (reportModel.GetRow(47) == null) reportModel.CreateRow(47); + //if (reportModel.GetRow(48) == null) reportModel.CreateRow(48); - if (reportModel.GetRow(49) == null) reportModel.CreateRow(49); - if (reportModel.GetRow(50) == null) reportModel.CreateRow(50); - if (reportModel.GetRow(51) == null) reportModel.CreateRow(51); - if (reportModel.GetRow(52) == null) reportModel.CreateRow(52); - if (reportModel.GetRow(53) == null) reportModel.CreateRow(53); + //if (reportModel.GetRow(49) == null) reportModel.CreateRow(49); + //if (reportModel.GetRow(50) == null) reportModel.CreateRow(50); + //if (reportModel.GetRow(51) == null) reportModel.CreateRow(51); + //if (reportModel.GetRow(52) == null) reportModel.CreateRow(52); + //if (reportModel.GetRow(53) == null) reportModel.CreateRow(53); - if (reportModel.GetRow(29).GetCell(5) == null) reportModel.GetRow(29).CreateCell(5); - reportModel.GetRow(29).GetCell(5).SetCellValue(eva.ReviewOfFC); + if (reportModel.GetRow(26).GetCell(5) == null) reportModel.GetRow(26).CreateCell(5); + reportModel.GetRow(26).GetCell(5).SetCellValue(eva.ReviewOfFC); if (eva.IsInquiry == true) { - reportModel.GetRow(29).GetCell(1).SetCellValue(eva.InquiryNum != null ? eva.InquiryNum.Value.ToString() : "0"); - reportModel.GetRow(28).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(28).GetCell(2).CellStyle.SetFont(content_Font); + reportModel.GetRow(27).GetCell(1).SetCellValue(eva.InquiryNum != null ? eva.InquiryNum.Value.ToString() : "0"); + reportModel.GetRow(26).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(26).GetCell(2).CellStyle.SetFont(content_Font); } else if (eva.IsInquiry == false) { - reportModel.GetRow(29).GetCell(1).SetCellValue(""); - reportModel.GetRow(28).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(28).GetCell(0).CellStyle.SetFont(content_Font); + reportModel.GetRow(27).GetCell(1).SetCellValue(""); + reportModel.GetRow(26).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(26).GetCell(0).CellStyle.SetFont(content_Font); } else { - reportModel.GetRow(28).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(28).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(28).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(28).GetCell(2).CellStyle.SetFont(content_Font); + reportModel.GetRow(26).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(26).GetCell(0).CellStyle.SetFont(content_Font); + reportModel.GetRow(26).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(26).GetCell(2).CellStyle.SetFont(content_Font); } if (eva.NCRIsReview == true) { - reportModel.GetRow(33).GetCell(1).SetCellValue(eva.NCRReviewNum != null ? eva.NCRReviewNum.Value.ToString() : "0"); - reportModel.GetRow(32).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(32).GetCell(2).CellStyle.SetFont(content_Font); + reportModel.GetRow(30).GetCell(1).SetCellValue(eva.NCRReviewNum != null ? eva.NCRReviewNum.Value.ToString() : "0"); + reportModel.GetRow(29).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(29).GetCell(2).CellStyle.SetFont(content_Font); } else if (eva.NCRIsReview == false) { - reportModel.GetRow(33).GetCell(1).SetCellValue(""); - reportModel.GetRow(32).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(32).GetCell(0).CellStyle.SetFont(content_Font); + reportModel.GetRow(30).GetCell(1).SetCellValue(""); + reportModel.GetRow(29).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(29).GetCell(0).CellStyle.SetFont(content_Font); } else { - reportModel.GetRow(32).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(32).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(32).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(32).GetCell(2).CellStyle.SetFont(content_Font); + reportModel.GetRow(29).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(29).GetCell(0).CellStyle.SetFont(content_Font); + reportModel.GetRow(29).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(29).GetCell(2).CellStyle.SetFont(content_Font); } //string auditResult = string.Empty; if (eva.AuditResult == "1") { - reportModel.GetRow(36).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(36).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(37).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(37).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(37).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(37).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(38).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(38).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(38).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(38).GetCell(2).CellStyle.SetFont(content_Font); + reportModel.GetRow(32).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(32).GetCell(2).CellStyle.SetFont(content_Font); + reportModel.GetRow(33).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(33).GetCell(0).CellStyle.SetFont(content_Font); + reportModel.GetRow(33).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(33).GetCell(2).CellStyle.SetFont(content_Font); + reportModel.GetRow(34).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(34).GetCell(0).CellStyle.SetFont(content_Font); + reportModel.GetRow(34).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(34).GetCell(2).CellStyle.SetFont(content_Font); } if (eva.AuditResult == "2") { - reportModel.GetRow(36).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(36).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(37).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(37).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(37).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(37).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(38).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(38).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(38).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(38).GetCell(2).CellStyle.SetFont(content_Font); + reportModel.GetRow(32).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(32).GetCell(0).CellStyle.SetFont(content_Font); + reportModel.GetRow(33).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(33).GetCell(0).CellStyle.SetFont(content_Font); + reportModel.GetRow(33).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(33).GetCell(2).CellStyle.SetFont(content_Font); + reportModel.GetRow(34).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(34).GetCell(0).CellStyle.SetFont(content_Font); + reportModel.GetRow(34).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(34).GetCell(2).CellStyle.SetFont(content_Font); } if (eva.AuditResult == "3") { - reportModel.GetRow(36).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(36).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(36).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(36).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(37).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(37).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(38).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(38).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(38).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(38).GetCell(2).CellStyle.SetFont(content_Font); + reportModel.GetRow(32).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(32).GetCell(0).CellStyle.SetFont(content_Font); + reportModel.GetRow(32).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(32).GetCell(2).CellStyle.SetFont(content_Font); + reportModel.GetRow(33).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(33).GetCell(2).CellStyle.SetFont(content_Font); + reportModel.GetRow(34).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(34).GetCell(0).CellStyle.SetFont(content_Font); + reportModel.GetRow(34).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(34).GetCell(2).CellStyle.SetFont(content_Font); } if (eva.AuditResult == "4") { - reportModel.GetRow(36).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(36).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(36).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(36).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(37).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(37).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(38).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(38).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(38).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(38).GetCell(2).CellStyle.SetFont(content_Font); + reportModel.GetRow(32).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(32).GetCell(0).CellStyle.SetFont(content_Font); + reportModel.GetRow(32).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(32).GetCell(2).CellStyle.SetFont(content_Font); + reportModel.GetRow(33).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(33).GetCell(0).CellStyle.SetFont(content_Font); + reportModel.GetRow(34).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(34).GetCell(0).CellStyle.SetFont(content_Font); + reportModel.GetRow(34).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(34).GetCell(2).CellStyle.SetFont(content_Font); } if (eva.AuditResult == "5") { - reportModel.GetRow(36).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(36).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(36).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(36).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(37).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(37).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(37).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(37).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(38).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(38).GetCell(2).CellStyle.SetFont(content_Font); + reportModel.GetRow(32).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(32).GetCell(0).CellStyle.SetFont(content_Font); + reportModel.GetRow(32).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(32).GetCell(2).CellStyle.SetFont(content_Font); + reportModel.GetRow(33).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(33).GetCell(0).CellStyle.SetFont(content_Font); + reportModel.GetRow(33).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(33).GetCell(2).CellStyle.SetFont(content_Font); + reportModel.GetRow(34).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(34).GetCell(2).CellStyle.SetFont(content_Font); } if (eva.AuditResult == "6") { - reportModel.GetRow(36).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(36).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(36).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(36).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(37).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(37).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(37).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(37).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(38).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(38).GetCell(0).CellStyle.SetFont(content_Font); + reportModel.GetRow(32).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(32).GetCell(0).CellStyle.SetFont(content_Font); + reportModel.GetRow(32).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(32).GetCell(2).CellStyle.SetFont(content_Font); + reportModel.GetRow(33).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(33).GetCell(0).CellStyle.SetFont(content_Font); + reportModel.GetRow(33).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(33).GetCell(2).CellStyle.SetFont(content_Font); + reportModel.GetRow(34).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(34).GetCell(0).CellStyle.SetFont(content_Font); } if (string.IsNullOrEmpty(eva.AuditResult)) + { + reportModel.GetRow(32).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(32).GetCell(0).CellStyle.SetFont(content_Font); + reportModel.GetRow(32).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(32).GetCell(2).CellStyle.SetFont(content_Font); + reportModel.GetRow(33).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(33).GetCell(0).CellStyle.SetFont(content_Font); + reportModel.GetRow(33).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(33).GetCell(2).CellStyle.SetFont(content_Font); + reportModel.GetRow(34).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(34).GetCell(0).CellStyle.SetFont(content_Font); + reportModel.GetRow(34).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(34).GetCell(2).CellStyle.SetFont(content_Font); + } + + + if (eva.IsOthers == true) + { + + reportModel.GetRow(37).GetCell(1).SetCellValue(eva.OtherDef); + reportModel.GetRow(36).GetCell(2).SetCellValue(txtNo); + reportModel.GetRow(36).GetCell(2).CellStyle.SetFont(content_Font); + } + else if (eva.IsOthers == false) + { + reportModel.GetRow(36).GetCell(0).SetCellValue(txtNo); + reportModel.GetRow(36).GetCell(0).CellStyle.SetFont(content_Font); + } + else { reportModel.GetRow(36).GetCell(0).SetCellValue(txtNo); reportModel.GetRow(36).GetCell(0).CellStyle.SetFont(content_Font); reportModel.GetRow(36).GetCell(2).SetCellValue(txtNo); reportModel.GetRow(36).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(37).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(37).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(37).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(37).GetCell(2).CellStyle.SetFont(content_Font); - reportModel.GetRow(38).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(38).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(38).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(38).GetCell(2).CellStyle.SetFont(content_Font); } - // 去年CT/K - //if (eva.BoQIsAudit == true) - //{ - // reportModel.GetRow(41).GetCell(0).SetCellValue(txtNo); - // reportModel.GetRow(41).GetCell(0).CellStyle.SetFont(content_Font); - // if (eva.BoQAuditComments.Length > 0 && eva.BoQAuditComments.Length <= 6) - // { - // reportModel.GetRow(41).GetCell(4).SetCellValue(eva.BoQAuditComments); - - // } - // if (eva.BoQAuditComments.Length > 6) - // { - // reportModel.GetRow(41).GetCell(4).SetCellValue(eva.BoQAuditComments.Substring(0, 6)); - // reportModel.GetRow(42).GetCell(0).SetCellValue(eva.BoQAuditComments.Substring(6, eva.BoQAuditComments.Length - 6)); - // } - - //} - //else if (eva.BoQIsAudit == false) - //{ - // reportModel.GetRow(41).GetCell(2).SetCellValue(txtNo); - // reportModel.GetRow(41).GetCell(2).CellStyle.SetFont(content_Font); - //} - //else - //{ - // reportModel.GetRow(41).GetCell(0).SetCellValue(txtNo); - // reportModel.GetRow(41).GetCell(0).CellStyle.SetFont(content_Font); - // reportModel.GetRow(41).GetCell(2).SetCellValue(txtNo); - // reportModel.GetRow(41).GetCell(2).CellStyle.SetFont(content_Font); - //} - - if (eva.IsOthers == true) - { - - reportModel.GetRow(46).GetCell(1).SetCellValue(eva.OtherDef); - reportModel.GetRow(45).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(45).GetCell(2).CellStyle.SetFont(content_Font); - } - else if (eva.IsOthers == false) - { - reportModel.GetRow(45).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(45).GetCell(0).CellStyle.SetFont(content_Font); - } - else - { - reportModel.GetRow(45).GetCell(0).SetCellValue(txtNo); - reportModel.GetRow(45).GetCell(0).CellStyle.SetFont(content_Font); - reportModel.GetRow(45).GetCell(2).SetCellValue(txtNo); - reportModel.GetRow(45).GetCell(2).CellStyle.SetFont(content_Font); - } - - if (reportModel.GetRow(48).GetCell(3) == null) reportModel.GetRow(48).CreateCell(3); - reportModel.GetRow(48).GetCell(3).SetCellValue(eva.TechnicalBonus); - if (reportModel.GetRow(50).GetCell(3) == null) reportModel.GetRow(50).CreateCell(3); - reportModel.GetRow(50).GetCell(3).SetCellValue(eva.SafetyBonus); - reportModel.GetRow(53).GetCell(0).SetCellValue(eva.Proposed); + if (reportModel.GetRow(38).GetCell(3) == null) reportModel.GetRow(38).CreateCell(3); + reportModel.GetRow(38).GetCell(3).SetCellValue(eva.TechnicalBonus); + if (reportModel.GetRow(39).GetCell(3) == null) reportModel.GetRow(39).CreateCell(3); + reportModel.GetRow(39).GetCell(3).SetCellValue(eva.SafetyBonus); + reportModel.GetRow(42).GetCell(0).SetCellValue(eva.Proposed); } #endregion reportModel.ForceFormulaRecalculation = true; diff --git a/FCL/FineUIPro.Web/File/Excel/承包商评估表.xlsx b/FCL/FineUIPro.Web/File/Excel/承包商评估表.xlsx index 6d5e382..7255768 100644 Binary files a/FCL/FineUIPro.Web/File/Excel/承包商评估表.xlsx and b/FCL/FineUIPro.Web/File/Excel/承包商评估表.xlsx differ diff --git a/FCL/FineUIPro.Web/File/Excel/承包商评估表1.xlsx b/FCL/FineUIPro.Web/File/Excel/承包商评估表1.xlsx index 6a92f0e..6d5e382 100644 Binary files a/FCL/FineUIPro.Web/File/Excel/承包商评估表1.xlsx and b/FCL/FineUIPro.Web/File/Excel/承包商评估表1.xlsx differ diff --git a/FCL/FineUIPro.Web/FineUIPro.Web.csproj b/FCL/FineUIPro.Web/FineUIPro.Web.csproj index 002442e..b905e50 100644 --- a/FCL/FineUIPro.Web/FineUIPro.Web.csproj +++ b/FCL/FineUIPro.Web/FineUIPro.Web.csproj @@ -47,9 +47,13 @@ bin\ TRACE prompt - 4 + 1 7.3 false + 加密密码仅在任何部署设置标记为安全时使用 + true + false + true @@ -192,6 +196,8 @@ + + @@ -354,6 +360,7 @@ + @@ -2172,6 +2179,7 @@ + @@ -2215,6 +2223,7 @@ + @@ -2244,6 +2253,7 @@ + @@ -2382,6 +2392,7 @@ + @@ -2758,6 +2769,20 @@ Type.aspx + + ViolationClause.aspx + ASPXCodeBehind + + + ViolationClause.aspx + + + ViolationClauseEdit.aspx + ASPXCodeBehind + + + ViolationClauseEdit.aspx + CcpEdit.aspx ASPXCodeBehind diff --git a/FCL/FineUIPro.Web/FineUIPro.Web.csproj.user b/FCL/FineUIPro.Web/FineUIPro.Web.csproj.user index c498d8f..accb770 100644 --- a/FCL/FineUIPro.Web/FineUIPro.Web.csproj.user +++ b/FCL/FineUIPro.Web/FineUIPro.Web.csproj.user @@ -1,7 +1,7 @@  - ProjectFiles + ShowAllFiles Release|Any CPU true @@ -11,7 +11,7 @@ - E:\MyProject\FCL\Basf_FCL\FCL\FineUIPro.Web\Properties\PublishProfiles\FolderProfile.pubxml + FolderProfile diff --git a/FCL/FineUIPro.Web/Global.asax.cs b/FCL/FineUIPro.Web/Global.asax.cs index c1f09df..d1dc1de 100644 --- a/FCL/FineUIPro.Web/Global.asax.cs +++ b/FCL/FineUIPro.Web/Global.asax.cs @@ -159,7 +159,18 @@ if (DateTime.Now.Hour == 10) { System.Timers.Timer aTimer = new System.Timers.Timer(); - aTimer.Elapsed += new System.Timers.ElapsedEventHandler(RelatedSes_EmailSend); + aTimer.Elapsed += new System.Timers.ElapsedEventHandler(Safe_RelatedSes_EmailSend); + //60分钟执行一次 + aTimer.Interval = 1000 * 3 * 60 * 60; + aTimer.Enabled = true; + aTimer.Start(); + } + + // 承包商质量违规关联SES号的填写通知 + if (DateTime.Now.Hour == 10) + { + System.Timers.Timer aTimer = new System.Timers.Timer(); + aTimer.Elapsed += new System.Timers.ElapsedEventHandler(CQuality_RelatedSes_EmailSend); //60分钟执行一次 aTimer.Interval = 1000 * 3 * 60 * 60; aTimer.Enabled = true; @@ -1418,14 +1429,15 @@ BLL.SQLHelper.ExecutSql(strSql); } - #region 承包商EHSS违规关联SES号的填写通知 - private void RelatedSes_EmailSend(object sender, System.Timers.ElapsedEventArgs e) + #region 承包商EHSS违规关联SES号的填写通知(5天后如还没录入再发邮件提醒) + private void Safe_RelatedSes_EmailSend(object sender, System.Timers.ElapsedEventArgs e) { var vses = (from x in Funs.DB.EMC_Punishment - where (x.RelatedSesMailIsSend == null || x.RelatedSesMailIsSend == false) - && x.BYC_RU != null && x.BYC_RU.ToUpper() != "NA" - && x.CreateDate.HasValue && x.CreateDate.Value.AddDays(1).Date <= DateTime.Now.Date - select x).ToList(); + where (x.RelatedSesMailIsSend2 == null || x.RelatedSesMailIsSend2 == false) + && x.BYC_RU != null && x.BYC_RU.ToUpper() != "NA" && x.Flag == "1" + && (x.ViolationRelatedSes == null || x.ViolationRelatedSes == "") + && x.CreateDate.HasValue && x.CreateDate.Value.AddDays(5).Date <= DateTime.Now.Date + select x).ToList(); if (vses.Count() > 0) { Model.EmailPop pops = Funs.DB.EmailPop.FirstOrDefault(x => x.EmailID == BLL.Const.EmailPopId); @@ -1484,7 +1496,68 @@ if (result) { - ses.RelatedSesMailIsSend = true; + ses.RelatedSesMailIsSend2 = true; + Funs.DB.SubmitChanges(); + } + } + } + } + } + } + } + #endregion + + #region 承包商质量违规关联SES号的填写通知(5天后如还没录入SES再发邮件提醒) + private void CQuality_RelatedSes_EmailSend(object sender, System.Timers.ElapsedEventArgs e) + { + var vses = (from x in Funs.DB.EMC_Punishment + where (x.RelatedSesMailIsSend2 == null || x.RelatedSesMailIsSend2 == false) + && x.BYC_RU != null && x.BYC_RU.ToUpper() != "NA" && x.Flag == "2" + && (x.ViolationRelatedSes == null || x.ViolationRelatedSes == "") + && x.CreateDate.HasValue && x.CreateDate.Value.AddDays(5).Date <= DateTime.Now.Date + select x).ToList(); + if (vses.Count() > 0) + { + Model.EmailPop pops = Funs.DB.EmailPop.FirstOrDefault(x => x.EmailID == BLL.Const.EmailPopId); + if (pops == null) + { + return; + } + + foreach (var ses in vses) + { + string[] mailTo = null; + string[] mailCC = null; + string resultMessage = ""; + + var emailTemplate = Funs.DB.SendEmailTemplate.Where(x => x.EmailName.Contains("承包商质量违规关联SES号的填写通知")); + if (emailTemplate.Count() > 0) + { + var dep = BLL.DepartService.GetDepartById(ses.BYC_RU); + if (dep != null && !string.IsNullOrEmpty(dep.DepartLeader)) + { + var userTo = from x in Funs.DB.Sys_User + where x.UserId == dep.DepartLeader + && x.Email != null && x.Email != "" + select x; + if (userTo != null) + { + mailTo = userTo.Select(x => x.Email).ToArray(); + } + + if (mailTo.Length > 0) + { + NameValueCollection myPram = new NameValueCollection(); + myPram.Add("ContractNo", ses.FO_NO); + myPram.Add("Contractor", ses.Contractor); + myPram.Add("Date", ses.PunishDate != null ? ses.PunishDate.Value.ToString("yyyy-MM-dd") : ""); + myPram.Add("Time", ses.PunishDate != null ? ses.PunishDate.Value.ToString("HH:mm") : ""); + myPram.Add("Violation Description", ses.Description); + bool result = MailHelper.SendPunishSesMail(pops, myPram, "承包商质量违规关联SES号的填写通知", mailTo, mailCC, out resultMessage); + + if (result) + { + ses.RelatedSesMailIsSend2 = true; Funs.DB.SubmitChanges(); } } diff --git a/FCL/FineUIPro.Web/Login.aspx b/FCL/FineUIPro.Web/Login.aspx index 5232841..9a0e409 100644 --- a/FCL/FineUIPro.Web/Login.aspx +++ b/FCL/FineUIPro.Web/Login.aspx @@ -12,7 +12,7 @@
private void DeleteData() { - if (Grid1.SelectedRowIndexArray.Length > 0) + if (!string.IsNullOrEmpty(Grid1.SelectedRowID)) { - foreach (int rowIndex in Grid1.SelectedRowIndexArray) + string rowID = Grid1.SelectedRowID; + var pun = BLL.PunishmentService.GetPunishmentById(rowID); + if (pun != null) { - string rowID = Grid1.DataKeys[rowIndex][0].ToString(); - var pun = BLL.PunishmentService.GetPunishmentById(rowID); - if (pun != null) + if (pun.IsFrame == true) { - if (judgementDelete(rowID, false)) + var datas = BLL.SESRelatedDataService.GetSESRelatedDataByFoNo(pun.FO_NO); + if (pun.IsAudit == true) // 审核后只有批准人可删除 { - BLL.PunishmentService.DeletePunishmentById(rowID); + if (CurrUser.UserId == pun.AuditMan) + { + if (judgementDelete(rowID, false)) + { + BLL.PunishmentService.DeletePunishmentById(rowID); + } + } + else + { + ShowNotify("已批准!只有批准人有删除权限!", MessageBoxIcon.Warning); + return; + } } + else + { + if (CurrUser.UserId == datas.Main_Coordinator || CurrUser.UserId == pun.Violation_Inspector || CurrUser.UserId == Const.GlyId) + { + if (judgementDelete(rowID, false)) + { + BLL.PunishmentService.DeletePunishmentById(rowID); + } + } + else + { + ShowNotify("只有主协调员,发起人(违章检查人)有删除权限!", MessageBoxIcon.Warning); + return; + } + } + + + } + else + { + if (pun.IsAudit == true) + { + if (CurrUser.UserId == pun.AuditMan) + { + if (judgementDelete(rowID, false)) + { + BLL.PunishmentService.DeletePunishmentById(rowID); + } + } + else + { + ShowNotify("已批准!只有批准人有删除权限!", MessageBoxIcon.Warning); + return; + } + } + + else + { + if (CurrUser.UserId == pun.Requisitioner || CurrUser.UserId == pun.Violation_Inspector || CurrUser.UserId == Const.GlyId) + { + if (judgementDelete(rowID, false)) + { + BLL.PunishmentService.DeletePunishmentById(rowID); + } + } + else + { + ShowNotify("只有合同请购人,发起人(违章检查人)有删除权限!", MessageBoxIcon.Warning); + return; + } + } + } } + BindGrid(); BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "Delete Contractor Safety Punishment"); ShowNotify("Deleted successfully!"); @@ -194,11 +420,7 @@ namespace FineUIPro.Web.SES private bool judgementDelete(string id, bool isShow) { string content = string.Empty; - //if (Funs.DB.Sys_User.FirstOrDefault(x => x.RoleId == id) != null) - //{ - // content = "This role is already in use in [user information] and cannot be deleted!"; - //} - + if (string.IsNullOrEmpty(content)) { return true; diff --git a/FCL/FineUIPro.Web/SES/CQualityPunish.aspx.designer.cs b/FCL/FineUIPro.Web/SES/CQualityPunish.aspx.designer.cs index 7187df9..db4176f 100644 --- a/FCL/FineUIPro.Web/SES/CQualityPunish.aspx.designer.cs +++ b/FCL/FineUIPro.Web/SES/CQualityPunish.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.SES { - - - public partial class CQualityPunish { - +namespace FineUIPro.Web.SES +{ + + + public partial class CQualityPunish + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// Panel1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Panel Panel1; - + /// /// Grid1 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Grid Grid1; - + /// /// Toolbar2 控件。 /// @@ -56,7 +58,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar2; - + /// /// hdID 控件。 /// @@ -65,7 +67,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.HiddenField hdID; - + /// /// txtFO_NO 控件。 /// @@ -74,7 +76,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtFO_NO; - + /// /// drpContractAdmin 控件。 /// @@ -83,7 +85,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpContractAdmin; - + /// /// txtPunishDate 控件。 /// @@ -92,7 +94,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPunishDate; - + /// /// btnSearch 控件。 /// @@ -101,7 +103,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSearch; - + /// /// ToolbarFill1 控件。 /// @@ -110,7 +112,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarFill ToolbarFill1; - + /// /// btnNew 控件。 /// @@ -119,7 +121,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnNew; - + /// /// btnEdit 控件。 /// @@ -128,7 +130,16 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnEdit; - + + /// + /// btnAudit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAudit; + /// /// btnDelete 控件。 /// @@ -137,7 +148,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnDelete; - + /// /// btnExport 控件。 /// @@ -146,7 +157,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnExport; - + /// /// lblNumber 控件。 /// @@ -155,7 +166,16 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.WebControls.Label lblNumber; - + + /// + /// lbtnUrl 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::System.Web.UI.WebControls.LinkButton lbtnUrl; + /// /// ToolbarSeparator1 控件。 /// @@ -164,7 +184,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1; - + /// /// ToolbarText1 控件。 /// @@ -173,7 +193,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.ToolbarText ToolbarText1; - + /// /// ddlPageSize 控件。 /// @@ -182,7 +202,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList ddlPageSize; - + /// /// Window1 控件。 /// @@ -191,7 +211,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Window Window1; - + /// /// Menu1 控件。 /// @@ -200,7 +220,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Menu Menu1; - + /// /// btnMenuEdit 控件。 /// @@ -209,7 +229,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuButton btnMenuEdit; - + /// /// btnMenuDelete 控件。 /// @@ -218,7 +238,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.MenuButton btnMenuDelete; - + /// /// btnMenuView 控件。 /// diff --git a/FCL/FineUIPro.Web/SES/CQualityPunishEdit.aspx b/FCL/FineUIPro.Web/SES/CQualityPunishEdit.aspx index a2d9bcc..8be4d9d 100644 --- a/FCL/FineUIPro.Web/SES/CQualityPunishEdit.aspx +++ b/FCL/FineUIPro.Web/SES/CQualityPunishEdit.aspx @@ -15,88 +15,172 @@ - - + + + + + + + + + + + + + - - - + + + - - + + + - + - + - - - - - - - - + + - - + + + + + + + - + - + + + + + + + + + + + + + + + + + - + + - - - - - + + - + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -107,5 +191,9 @@ + diff --git a/FCL/FineUIPro.Web/SES/CQualityPunishEdit.aspx.cs b/FCL/FineUIPro.Web/SES/CQualityPunishEdit.aspx.cs index de49c9b..131375d 100644 --- a/FCL/FineUIPro.Web/SES/CQualityPunishEdit.aspx.cs +++ b/FCL/FineUIPro.Web/SES/CQualityPunishEdit.aspx.cs @@ -1,10 +1,14 @@ using System; using System.Collections.Generic; +using System.Collections.Specialized; +using System.Diagnostics.Contracts; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using BLL; +using BLL.Common; +using Model; namespace FineUIPro.Web.SES { @@ -17,6 +21,11 @@ namespace FineUIPro.Web.SES { this.btnClose.OnClientClick = ActiveWindow.GetHideReference(); string view = Request.Params["view"]; + string audit = Request.Params["audit"]; + if (!string.IsNullOrEmpty(audit)) + { + GPAudit.Hidden = false; + } if (view == "1") { this.btnSave.Hidden = true; @@ -42,30 +51,28 @@ namespace FineUIPro.Web.SES txtCompletionDate.Enabled = false; } + BLL.ViolationClauseService.InitViolationClause(this.drpViolationClause, true);//违章条款 //BLL.SESRelatedDataService.InitFONoDropDownList(this.drpFO_No, true);//合同号 - BLL.ContractorService.InitDropDownList(drpContractor, true); //承包商; + //BLL.ContractorService.InitDropDownList(drpContractor, true); //承包商; BLL.DepartService.InitDropDownList(this.drpBYC_RU, true);//BYC负责部门 BLL.Sys_UserService.InitUserDropDownList(this.drpViolationInspector, true);//违章检查人 - + //BLL.Sys_UserService.InitUserDropDownList(this.drpBYC_Person, true);// + BLL.Sys_UserService.InitUserDropDownList(this.drpRequisitioner, true);//合同请购人 string punishmentId = Request.Params["punishmentId"]; if (!string.IsNullOrEmpty(punishmentId)) { - Model.View_EMC_Punishment punishment = BLL.PunishmentService.GetPunishmentViewById(punishmentId); + Model.View_EMC_Que_Punishment punishment = BLL.PunishmentService.GetQuePunishmentViewById(punishmentId); Model.EMC_Punishment pun = BLL.PunishmentService.GetPunishmentById(punishmentId); - if (punishment != null) + if (punishment != null && pun!=null) { this.txtPunishDate.Text = punishment.PunishDate != null ? string.Format("{0:yyyy-MM-dd}", punishment.PunishDate) : ""; this.txtPunishTime.Text = punishment.PunishDate != null ? punishment.PunishDate.Value.ToShortTimeString() : ""; + this.txtFO_No.Text = punishment.FO_NO; + txtItemNo.Text = pun.ItemNo; + txtContractor.Text = punishment.Contractor; + txtDiscispline.Text = punishment.Discipline; - if (!string.IsNullOrEmpty(punishment.ContractorId)) - { - this.drpContractor.SelectedValue = punishment.ContractorId; - BLL.SESRelatedDataService.InitFONoDropDownList(this.drpFO_No, drpContractor.SelectedValue, true);//合同号 - this.drpFO_No.SelectedValue = punishment.FO_NO; - } - - this.txtDiscispline.Text = punishment.Discipline; this.txtLocation.Text = punishment.Location; this.txtDescription.Text = punishment.Description; @@ -73,7 +80,7 @@ namespace FineUIPro.Web.SES this.txtIndividual.Text = punishment.Individual.HasValue ? punishment.Individual.ToString() : ""; this.txtBackcharge.Text = punishment.Backcharge.HasValue ? punishment.Backcharge.Value.ToString("0.00") : ""; - if (pun != null && !string.IsNullOrEmpty(pun.ViolationDegree)) + if (!string.IsNullOrEmpty(pun.ViolationDegree)) { drpViolationDegree.SelectedValue = pun.ViolationDegree; } @@ -93,14 +100,78 @@ namespace FineUIPro.Web.SES string depName = BLL.DepartService.GetDepartNameById(user.DepartId); txtInspectionDep.Text = depName; } - + + if (pun.IsFrame == true) + { + rbIsFrame.SelectedValue = "1"; + } + else + { + rbIsFrame.SelectedValue = "0"; + } + + if (!string.IsNullOrEmpty(pun.ViolationClauseId)) + { + drpViolationClause.SelectedValue = pun.ViolationClauseId; + } + txtViolationPerson.Text = pun.ViolationPerson; + + if (!string.IsNullOrEmpty(punishment.Requisitioner)) + { + drpRequisitioner.SelectedValue = punishment.Requisitioner; + } + + if (pun.IsFrame == true && (this.CurrUser.DepartId == punishment.BYC_RU || this.CurrUser.Account == Const.Gly)) + { + GPDep.Hidden= false; + } + else + { + GPDep.Hidden = true; + } + this.txtCompletionDate.Text = punishment.CompletionDate != null ? string.Format("{0:yyyy-MM-dd}", punishment.CompletionDate) : ""; this.txtSESNo.Text = punishment.SES_No; + txtViolationRelatedSes.Text = punishment.ViolationRelatedSes; + txtViolationRelatedSes1.Text = punishment.ViolationRelatedSes; + hdId.Text = punishmentId; + + // 审核 + if (pun.IsPass != null) + { + if (pun.IsPass == true) + { + rbIsPass.SelectedValue = "1"; + } + else + { + rbIsPass.SelectedValue = "0"; + } + } + txtAuditResult.Text = pun.AuditResult; + + if (punishment.IsFrame == true) + { + txtDiscispline.Readonly = true; + drpRequisitioner.Hidden = true; + } + else + { + txtDiscispline.Readonly = false; + txtContractAdmin.Hidden = true; + txtMainCoordinator.Hidden = true; + txtUserRepresentative.Hidden = true; + txtMCDept.Hidden = true; + drpBYC_RU.Hidden = true; + GPRole.Hidden = true; + } } } else { - + this.drpViolationInspector.SelectedValue = CurrUser.UserId; + string depName = BLL.DepartService.GetDepartNameById(CurrUser.DepartId); + txtInspectionDep.Text = depName; } } } @@ -115,19 +186,9 @@ namespace FineUIPro.Web.SES protected void btnSave_Click(object sender, EventArgs e) { string punishmentId = Request.Params["punishmentId"]; + string audit = Request.Params["audit"]; Model.EMC_Punishment punishment = new Model.EMC_Punishment(); - if (this.drpContractor.SelectedValue == BLL.Const._Null) - { - Alert.ShowInTop("Please select Contractor!", MessageBoxIcon.Warning); - return; - } - - if (this.drpFO_No.SelectedValue == BLL.Const._Null) - { - Alert.ShowInTop("Please select Contract No.!", MessageBoxIcon.Warning); - return; - } if (punishmentId == null) { punishmentId = string.Empty; @@ -138,12 +199,19 @@ namespace FineUIPro.Web.SES return; } + if (drpViolationClause.SelectedValue == Const._Null) + { + Alert.ShowInTop("Please select Violation Clause!", MessageBoxIcon.Warning); + return; + } + punishment.PunishDate = Funs.GetNewDateTime(this.txtPunishDate.Text.Trim() + " " + txtPunishTime.Text.Trim()); - punishment.FO_NO = drpFO_No.SelectedValue; + punishment.FO_NO = txtFO_No.Text.Trim(); //drpFO_No.SelectedValue; if (txtSESNo.Text.Trim() != string.Empty) { punishment.SES_No = txtSESNo.Text.Trim(); } + punishment.ItemNo = txtItemNo.Text.Trim(); punishment.Location = txtLocation.Text.Trim(); punishment.Description = txtDescription.Text.Trim(); if (txtCompany.Text != string.Empty) @@ -166,60 +234,486 @@ namespace FineUIPro.Web.SES punishment.CompletionDate = Funs.GetNewDateTime(this.txtCompletionDate.Text.Trim()); punishment.Flag = "2"; - if (!string.IsNullOrEmpty(punishmentId)) + punishment.Contractor=txtContractor.Text.Trim(); + punishment.Discipline=txtDiscispline.Text.Trim(); + punishment.ViolationClauseId = drpViolationClause.SelectedValue; + if (rbIsFrame.SelectedValue == "1") { - punishment.PunishmentId = punishmentId; - BLL.PunishmentService.UpdatePunishment(punishment); - BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "Modify Contractor Quality Punishment!"); - ShowNotify("Save successfully!", MessageBoxIcon.Success); + punishment.IsFrame = true; } else { - punishment.PunishmentId = SQLHelper.GetNewID(typeof(Model.EMC_Punishment)); - BLL.PunishmentService.AddPunishment(punishment); - BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "Add Contractor Quality Punishment!"); + punishment.IsFrame=false; + } + punishment.ViolationPerson=txtViolationPerson.Text.Trim(); + + if (drpRequisitioner.SelectedValue != Const._Null) + { + punishment.Requisitioner = drpRequisitioner.SelectedValue; + } + + if (!string.IsNullOrEmpty(txtViolationRelatedSes1.Text)) + { + punishment.ViolationRelatedSes = txtViolationRelatedSes1.Text.Trim(); + } + else if (!string.IsNullOrEmpty(txtViolationRelatedSes.Text)) + { + punishment.ViolationRelatedSes = txtViolationRelatedSes.Text.Trim(); + } + // 保存 + if (string.IsNullOrEmpty(audit)) + { + if (!string.IsNullOrEmpty(punishmentId)) + { + punishment.PunishmentId = punishmentId; + var att = from x in Funs.DB.AttachFile where x.ToKeyId == punishmentId select x; + if (att.Count() > 0) + { + punishment.AttachUrl = att.First().AttachUrl; + } + BLL.PunishmentService.UpdatePunishment(punishment); + BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "Modify Contractor Quality Punishment!"); + } + else + { + if (!string.IsNullOrEmpty(this.hdId.Text)) + { + punishment.PunishmentId = this.hdId.Text.Trim(); + } + else + { + punishment.PunishmentId = SQLHelper.GetNewID(typeof(Model.EMC_Punishment)); + this.hdId.Text = punishment.PunishmentId; + } + var att = from x in Funs.DB.AttachFile where x.ToKeyId == punishment.PunishmentId select x; + if (att.Count() > 0) + { + punishment.AttachUrl = att.First().AttachUrl; + } + punishment.CreateDate = DateTime.Now; + BLL.PunishmentService.AddPunishment(punishment); + BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "Add Contractor Quality Punishment!"); + } + + #region 发邮件给审核人通知审核 + var pun = BLL.PunishmentService.GetPunishmentById(punishment.PunishmentId); + string auditMan = string.Empty; + if (pun != null) + { + if (pun.IsFrame == true) + { + var fc = BLL.SESRelatedDataService.GetSESRelatedDataByFoNo(pun.FO_NO); + string curUser = this.CurrUser.UserId; // 当前用户 + string violationInspector = pun.Violation_Inspector; // 发起人 + string leader = string.Empty; // 主协调员部门领导 + string mainCoordinator = fc.Main_Coordinator; + + var userInfo = BLL.Sys_UserService.GetUsersByUserId(fc.Main_Coordinator); + if (userInfo != null) + { + var dep = BLL.DepartService.GetDepartById(userInfo.DepartId); + if (dep != null) + { + leader = dep.DepartLeader; + } + } + + // 当前用户不是主调协员 + if (curUser != mainCoordinator) + { + // 当前用户不是主调协员部门领导 发邮件给主调协员 + if (curUser != leader) + { + auditMan = mainCoordinator; + } + } + else // 当前用户是主调协员 + { + // 该主调协员不是部门领导时发邮件 + if (curUser != leader) + { + auditMan = leader; + } + } + } + + // 非框架合同 + else + { + string curUser = this.CurrUser.UserId; // 当前用户 + string violationInspector = pun.Violation_Inspector; // 发起人 + string leader = string.Empty; // 请购人部门领导 + string requisitioner = pun.Requisitioner; // 请购人 + + var userInfo = BLL.Sys_UserService.GetUsersByUserId(pun.Requisitioner); + if (userInfo != null) + { + var dep = BLL.DepartService.GetDepartById(userInfo.DepartId); + if (dep != null) + { + leader = dep.DepartLeader; + } + } + + // 当前用户不是请购人 + if (curUser != requisitioner) + { + // 当前用户是请购人部门领导 不发邮件 + if (curUser != leader) + { + auditMan = requisitioner; + } + } + else // 当前用户是请购人 + { + if (curUser != leader) + { + auditMan = leader; + } + } + } + } + + if (pun.EmailIsSend == null || pun.EmailIsSend == false) + { + Model.EmailPop pops = Funs.DB.EmailPop.FirstOrDefault(x => x.EmailID == BLL.Const.EmailPopId); + if (pops == null) + { + return; + } + string[] mailTo = null; + string[] mailCC = null; + string resultMessage = ""; + + var emailTemplate = Funs.DB.SendEmailTemplate.Where(x => x.EmailName.Contains("承包商质量违规审核通知")); + if (emailTemplate.Count() > 0) + { + var userTo = from x in Funs.DB.Sys_User + where x.UserId == auditMan + && x.Email != null && x.Email != "" + select x; + if (userTo != null) + { + mailTo = userTo.Select(x => x.Email).ToArray(); + } + + if (mailTo.Length > 0) + { + NameValueCollection myPram = new NameValueCollection(); + myPram.Add("ContractNo", pun.FO_NO); + myPram.Add("Contractor", txtContractor.Text); + myPram.Add("编号", pun.FO_NO + "-" + pun.ItemNo); + myPram.Add("Date", pun.PunishDate != null ? pun.PunishDate.Value.ToString("yyyy-MM-dd") : ""); + myPram.Add("Time", pun.PunishDate != null ? pun.PunishDate.Value.ToString("HH:mm") : ""); + myPram.Add("Violation Description", pun.Description); + bool result = MailHelper.SendPunishSesMail(pops, myPram, "承包商质量违规审核通知", mailTo, mailCC, out resultMessage); + + if (result) + { + pun.EmailIsSend = true; + Funs.DB.SubmitChanges(); + } + } + } + } + #endregion ShowNotify("Save successfully!", MessageBoxIcon.Success); } + // 审核 + else + { + var pun = BLL.PunishmentService.GetPunishmentById(punishmentId); + if (pun.AuditEmailIsSend == null || pun.AuditEmailIsSend == false) + { + // 发起人即违章检查人 + string createMan = pun.Violation_Inspector; + string auditMan = Request.Params["auditMan"]; + pun.AuditMan = auditMan; + pun.IsAudit = true; + if (rbIsPass.SelectedValue == "1") + { + pun.IsPass = true; + } + else + { + pun.IsPass = false; + } + + pun.AuditResult = txtAuditResult.Text.Trim(); + + // 发邮件 + #region 发邮件给发起人通知审核结果 + if (rbIsPass.SelectedValue != null) + { + Model.EmailPop pops = Funs.DB.EmailPop.FirstOrDefault(x => x.EmailID == BLL.Const.EmailPopId); + if (pops == null) + { + return; + } + string[] mailTo = null; + string[] mailCC = null; + string resultMessage = ""; + bool result = false; + + // 承包商质量违规审核通过 + if (rbIsPass.SelectedValue == "1") + { + var emailTemplate = Funs.DB.SendEmailTemplate.Where(x => x.EmailName.Contains("承包商质量违规审核通过")); + if (emailTemplate.Count() > 0) + { + // 发给发起人和孙燕 + var userTo = from x in Funs.DB.Sys_User + where (x.UserId == createMan || x.Account == "suny2") + && x.Email != null && x.Email != "" + select x; + if (userTo != null) + { + mailTo = userTo.Select(x => x.Email).ToArray(); + } + + if (mailTo.Length > 0) + { + NameValueCollection myPram = new NameValueCollection(); + myPram.Add("ContractNo", pun.FO_NO); + myPram.Add("Contractor", txtContractor.Text); + myPram.Add("编号", pun.FO_NO + "-" + pun.ItemNo); + myPram.Add("Date", pun.PunishDate != null ? pun.PunishDate.Value.ToString("yyyy-MM-dd") : ""); + myPram.Add("Time", pun.PunishDate != null ? pun.PunishDate.Value.ToString("HH:mm") : ""); + myPram.Add("Violation Description", pun.Description); + result = MailHelper.SendPunishSesMail(pops, myPram, "承包商质量违规审核通过", mailTo, mailCC, out resultMessage); + + } + } + if (result) + { + pun.AuditEmailIsSend = true; + } + + } + + // 承包商质量违规审核被拒绝 + else + { + var emailTemplate = Funs.DB.SendEmailTemplate.Where(x => x.EmailName.Contains("承包商质量违规审核被拒绝")); + if (emailTemplate.Count() > 0) + { + // 发给发起人 + var userTo = from x in Funs.DB.Sys_User + where x.UserId == createMan + && x.Email != null && x.Email != "" + select x; + if (userTo != null) + { + mailTo = userTo.Select(x => x.Email).ToArray(); + } + + if (mailTo.Length > 0) + { + NameValueCollection myPram = new NameValueCollection(); + myPram.Add("ContractNo", pun.FO_NO); + myPram.Add("Contractor", txtContractor.Text); + myPram.Add("编号", pun.FO_NO + "-" + pun.ItemNo); + myPram.Add("Date", pun.PunishDate != null ? pun.PunishDate.Value.ToString("yyyy-MM-dd") : ""); + myPram.Add("Time", pun.PunishDate != null ? pun.PunishDate.Value.ToString("HH:mm") : ""); + myPram.Add("Violation Description", pun.Description); + myPram.Add("拒绝描述", txtAuditResult.Text.Trim()); + result = MailHelper.SendPunishSesMail(pops, myPram, "承包商质量违规审核被拒绝", mailTo, mailCC, out resultMessage); + } + } + if (result) + { + pun.AuditEmailIsSend = true; + } + } + } + #endregion + + #region 当ViolationRelatedSes为空时发送邮件提醒BYC Resp. Dept的部门经理 + if (rbIsPass.SelectedValue == "1") + { + var vses = (from x in Funs.DB.EMC_Punishment + where x.PunishmentId == punishmentId + && x.IsFrame == true + && x.BYC_RU != null && x.BYC_RU.ToUpper() != "NA" + && (x.ViolationRelatedSes == "" || x.ViolationRelatedSes == null) + //x.Flag == "2" + //&& (x.RelatedSesMailIsSend == null || x.RelatedSesMailIsSend == false) + select x).ToList(); + if (vses.Count() > 0) + { + Model.EmailPop pops = Funs.DB.EmailPop.FirstOrDefault(x => x.EmailID == BLL.Const.EmailPopId); + if (pops == null) + { + return; + } + + foreach (var ses in vses) + { + string[] mailTo = null; + string[] mailCC = null; + string resultMessage = ""; + + var emailTemplate = Funs.DB.SendEmailTemplate.Where(x => x.EmailName.Contains("承包商质量违规关联SES号的填写通知")); + if (emailTemplate.Count() > 0) + { + var dep = BLL.DepartService.GetDepartById(ses.BYC_RU); + if (dep != null && !string.IsNullOrEmpty(dep.DepartLeader)) + { + var userTo = from x in Funs.DB.Sys_User + where x.UserId == dep.DepartLeader + && x.Email != null && x.Email != "" + select x; + if (userTo != null) + { + mailTo = userTo.Select(x => x.Email).ToArray(); + } + + if (mailTo.Length > 0) + { + NameValueCollection myPram = new NameValueCollection(); + myPram.Add("ContractNo", ses.FO_NO); + myPram.Add("Contractor", ses.Contractor); + myPram.Add("Date", ses.PunishDate != null ? ses.PunishDate.Value.ToString("yyyy-MM-dd") : ""); + myPram.Add("Time", ses.PunishDate != null ? ses.PunishDate.Value.ToString("HH:mm") : ""); + myPram.Add("Violation Description", ses.Description); + bool result = MailHelper.SendPunishSesMail(pops, myPram, "承包商质量违规关联SES号的填写通知", mailTo, mailCC, out resultMessage); + + if (result) + { + ses.RelatedSesMailIsSend = true; + Funs.DB.SubmitChanges(); + } + } + } + } + } + } + } + #endregion + + Funs.DB.SubmitChanges(); + } + } PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); } #endregion - protected void drpContractor_SelectedIndexChanged(object sender, EventArgs e) - { - if (this.drpContractor.SelectedValue != BLL.Const._Null) - { - this.drpFO_No.Items.Clear(); - BLL.SESRelatedDataService.InitFONoDropDownList(this.drpFO_No, drpContractor.SelectedValue, true);//合同号 - drpFO_No.SelectedValue = BLL.Const._Null; - txtDiscispline.Text = string.Empty; - } - } - protected void drpFO_No_SelectedIndexChanged(object sender, EventArgs e) + protected void txtText_TextChanged(object sender, EventArgs e) { - if (drpFO_No.SelectedValue != Const._Null) + if (!string.IsNullOrEmpty(txtFO_No.Text)) { - string foNO = drpFO_No.SelectedValue; + string foNO = txtFO_No.Text.Trim(); Model.View_FC_SESRelatedData fc = BLL.SESRelatedDataService.GetSESRelatedDataViewByFO(foNO); if (fc != null) - { + { + txtContractor.Text = fc.Contractor; txtDiscispline.Text = fc.Discipline; txtContractAdmin.Text = fc.Contract_Admin; txtMainCoordinator.Text = fc.Main_Coordinator; txtUserRepresentative.Text = fc.User_Representative; txtMCDept.Text = fc.MCDept; + + txtContractAdmin.Hidden = false; + txtMainCoordinator.Hidden = false; + txtUserRepresentative.Hidden = false; + txtMCDept.Hidden = false; + drpBYC_RU.Hidden = false; + GPRole.Hidden = false; + drpRequisitioner.Hidden = true; + txtViolationRelatedSes.Hidden = false; + GPDep.Hidden = false; + + txtDiscispline.Readonly = true; + drpRequisitioner.Required= false; + drpRequisitioner.ShowRedStar = false; + rbIsFrame.SelectedValue = "1"; } + else + { + txtDiscispline.Text = string.Empty; + txtContractor.Text = string.Empty; + txtContractAdmin.Text = string.Empty; + txtMainCoordinator.Text = string.Empty; + txtUserRepresentative.Text = string.Empty; + txtMCDept.Text = string.Empty; + + txtDiscispline.Readonly = false; + txtContractAdmin.Hidden = true; + txtMainCoordinator.Hidden = true; + txtUserRepresentative.Hidden = true; + txtMCDept.Hidden = true; + drpBYC_RU.Hidden = true; + GPRole.Hidden = true; + rbIsFrame.SelectedValue = "0"; + drpRequisitioner.Required = true; + drpRequisitioner.ShowRedStar = true; + txtViolationRelatedSes.Hidden = true; + GPDep.Hidden = true; + } + + // 序号 + var pun=from x in Funs.DB.EMC_Punishment where x.FO_NO== foNO && x.Flag=="2" select x; + if (pun.Count() == 0) + { + txtItemNo.Text = "001"; + } + else + { + var max = pun.Max(x=>x.ItemNo); + if (!string.IsNullOrEmpty(max)) + { + int maxNo = Convert.ToInt32(max) + 1; + txtItemNo.Text = "00" + maxNo.ToString(); + } + else + { + txtItemNo.Text = "001"; + } + + } + } } - protected void drpViolationInspector_SelectedIndexChanged(object sender, EventArgs e) + + //protected void drpViolationInspector_SelectedIndexChanged(object sender, EventArgs e) + //{ + // if (drpViolationInspector.SelectedValue != Const._Null) + // { + // string manId = drpViolationInspector.SelectedValue; + // var user = BLL.Sys_UserService.GetUsersByUserId(manId); + // string depName = BLL.DepartService.GetDepartNameById(user.DepartId); + // txtInspectionDep.Text = depName; + // } + //} + + protected void drpViolationClause_OnSelectedIndexChanged(object sender, EventArgs e) { - if (drpViolationInspector.SelectedValue != Const._Null) - { - string manId = drpViolationInspector.SelectedValue; - var user = BLL.Sys_UserService.GetUsersByUserId(manId); - string depName = BLL.DepartService.GetDepartNameById(user.DepartId); - txtInspectionDep.Text = depName; + if (drpViolationClause.SelectedValue != Const._Null) + { + var vio=BLL.ViolationClauseService.GetViolationClause(drpViolationClause.SelectedValue); + if (vio.DeductionComPany1 != 0) + { + drpViolationDegree.SelectedValue = "1"; + txtCompany.Text = vio.DeductionComPany1.ToString(); + txtIndividual.Text = vio.DeductionIndividual1.ToString(); + txtBackcharge.Text = (vio.DeductionComPany1 + vio.DeductionIndividual1).ToString(); + } + if (vio.DeductionComPany2 != 0) + { + drpViolationDegree.SelectedValue = "2"; + txtCompany.Text = vio.DeductionComPany2.ToString(); + txtIndividual.Text = vio.DeductionIndividual2.ToString(); + txtBackcharge.Text = (vio.DeductionComPany2 + vio.DeductionIndividual2).ToString(); + } + if (vio.DeductionComPany3 != 0) + { + drpViolationDegree.SelectedValue = "3"; + txtCompany.Text = vio.DeductionComPany3.ToString(); + txtIndividual.Text = vio.DeductionIndividual3.ToString(); + txtBackcharge.Text = (vio.DeductionComPany2 + vio.DeductionIndividual3).ToString(); + } } } @@ -239,6 +733,23 @@ namespace FineUIPro.Web.SES txtBackcharge.Text = (numCompany + numIndividual).Value.ToString("0.00"); } + + #region 附件上传 + /// + /// 附件上传 + /// + /// + /// + protected void btnAttach_Click(object sender, EventArgs e) + { + if (string.IsNullOrEmpty(this.hdId.Text)) //新增记录 + { + this.hdId.Text = SQLHelper.GetNewID(typeof(Model.EMC_Punishment)); + } + PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader2.aspx?type=0&toKeyId={0}&path=FileUpload/SES/EMC_Punishment&menuId={1}", this.hdId.Text, BLL.Const.CQualityPunishMenuId))); + } + #endregion + #region 权限设置 /// /// 菜单按钮权限 diff --git a/FCL/FineUIPro.Web/SES/CQualityPunishEdit.aspx.designer.cs b/FCL/FineUIPro.Web/SES/CQualityPunishEdit.aspx.designer.cs index f40baf6..ccc41ce 100644 --- a/FCL/FineUIPro.Web/SES/CQualityPunishEdit.aspx.designer.cs +++ b/FCL/FineUIPro.Web/SES/CQualityPunishEdit.aspx.designer.cs @@ -7,11 +7,13 @@ // //------------------------------------------------------------------------------ -namespace FineUIPro.Web.SES { - - - public partial class CQualityPunishEdit { - +namespace FineUIPro.Web.SES +{ + + + public partial class CQualityPunishEdit + { + /// /// form1 控件。 /// @@ -20,7 +22,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::System.Web.UI.HtmlControls.HtmlForm form1; - + /// /// PageManager1 控件。 /// @@ -29,7 +31,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.PageManager PageManager1; - + /// /// SimpleForm1 控件。 /// @@ -38,7 +40,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Form SimpleForm1; - + /// /// txtPunishDate 控件。 /// @@ -47,7 +49,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPunishDate; - + /// /// txtPunishTime 控件。 /// @@ -56,25 +58,43 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtPunishTime; - + /// - /// drpContractor 控件。 + /// txtFO_No 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.DropDownList drpContractor; - + protected global::FineUIPro.TextBox txtFO_No; + /// - /// drpFO_No 控件。 + /// txtItemNo 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.DropDownList drpFO_No; - + protected global::FineUIPro.TextBox txtItemNo; + + /// + /// rbIsFrame 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList rbIsFrame; + + /// + /// txtContractor 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtContractor; + /// /// txtDiscispline 控件。 /// @@ -83,7 +103,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtDiscispline; - + /// /// txtLocation 控件。 /// @@ -92,7 +112,16 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtLocation; - + + /// + /// txtViolationPerson 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtViolationPerson; + /// /// txtDescription 控件。 /// @@ -101,34 +130,16 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtDescription; - + /// - /// txtCompany 控件。 + /// drpViolationClause 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.NumberBox txtCompany; - - /// - /// txtIndividual 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtIndividual; - - /// - /// txtBackcharge 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.NumberBox txtBackcharge; - + protected global::FineUIPro.DropDownList drpViolationClause; + /// /// drpViolationDegree 控件。 /// @@ -137,7 +148,34 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpViolationDegree; - + + /// + /// txtCompany 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtCompany; + + /// + /// txtIndividual 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtIndividual; + + /// + /// txtBackcharge 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.NumberBox txtBackcharge; + /// /// txtContractAdmin 控件。 /// @@ -146,7 +184,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtContractAdmin; - + /// /// txtMainCoordinator 控件。 /// @@ -155,7 +193,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtMainCoordinator; - + /// /// txtMCDept 控件。 /// @@ -164,7 +202,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtMCDept; - + /// /// txtUserRepresentative 控件。 /// @@ -173,16 +211,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtUserRepresentative; - - /// - /// drpBYC_RU 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.DropDownList drpBYC_RU; - + /// /// drpViolationInspector 控件。 /// @@ -191,7 +220,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DropDownList drpViolationInspector; - + /// /// txtInspectionDep 控件。 /// @@ -200,7 +229,61 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtInspectionDep; - + + /// + /// drpBYC_RU 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpBYC_RU; + + /// + /// txtViolationRelatedSes 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtViolationRelatedSes; + + /// + /// drpRequisitioner 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpRequisitioner; + + /// + /// Panel3 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Panel Panel3; + + /// + /// lblAttach 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Label lblAttach; + + /// + /// btnAttach 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnAttach; + /// /// GPRole 控件。 /// @@ -209,7 +292,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.GroupPanel GPRole; - + /// /// txtSESNo 控件。 /// @@ -218,7 +301,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.TextBox txtSESNo; - + /// /// txtCompletionDate 控件。 /// @@ -227,7 +310,52 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.DatePicker txtCompletionDate; - + + /// + /// GPDep 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GPDep; + + /// + /// txtViolationRelatedSes1 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtViolationRelatedSes1; + + /// + /// GPAudit 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.GroupPanel GPAudit; + + /// + /// rbIsPass 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.RadioButtonList rbIsPass; + + /// + /// txtAuditResult 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.TextBox txtAuditResult; + /// /// Toolbar1 控件。 /// @@ -236,7 +364,16 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Toolbar Toolbar1; - + + /// + /// hdId 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.HiddenField hdId; + /// /// btnSave 控件。 /// @@ -245,7 +382,7 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnSave; - + /// /// btnClose 控件。 /// @@ -254,5 +391,14 @@ namespace FineUIPro.Web.SES { /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// protected global::FineUIPro.Button btnClose; + + /// + /// WindowAtt 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Window WindowAtt; } } diff --git a/FCL/FineUIPro.Web/SES/CSafePunishEdit.aspx.cs b/FCL/FineUIPro.Web/SES/CSafePunishEdit.aspx.cs index 7ac4626..8876632 100644 --- a/FCL/FineUIPro.Web/SES/CSafePunishEdit.aspx.cs +++ b/FCL/FineUIPro.Web/SES/CSafePunishEdit.aspx.cs @@ -302,7 +302,6 @@ namespace FineUIPro.Web.SES punishment.PunishmentId = PunishmentId; BLL.PunishmentService.UpdatePunishment(punishment); BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "Modify Contractor Safety Punishment!"); - ShowNotify("Save successfully!", MessageBoxIcon.Success); } else { @@ -310,59 +309,83 @@ namespace FineUIPro.Web.SES punishment.PunishmentId = PunishmentId; punishment.CreateDate = DateTime.Now; BLL.PunishmentService.AddPunishment(punishment); - - #region 承包商EHSS违规关联SES号的填写通知 改在Golbal里触发 - //Model.EmailPop pops = Funs.DB.EmailPop.FirstOrDefault(x => x.EmailID == BLL.Const.EmailPopId); - //if (pops == null) - //{ - // return; - //} - //string[] mailTo = null; - //string[] mailCC = null; - //string resultMessage = ""; - - //var emailTemplate = Funs.DB.SendEmailTemplate.Where(x => x.EmailName.Contains("承包商EHSS违规关联SES号的填写通知")); - //if (emailTemplate.Count() > 0) - //{ - // var dep = BLL.DepartService.GetDepartById(drpBYC_RU.SelectedValue); - // if (dep != null && !string.IsNullOrEmpty(dep.DepartLeader)) - // { - // var userTo = from x in Funs.DB.Sys_User - // where x.UserId == dep.DepartLeader - // && x.Email != null && x.Email != "" - // select x; - // if (userTo != null) - // { - // mailTo = userTo.Select(x => x.Email).ToArray(); - // } - - // var fo = BLL.SESRelatedDataService.GetSESRelatedDataByFoNo(drpFO_No.SelectedValue); - // if (fo != null) - // { - // var userCC = from x in Funs.DB.Sys_User - // where (x.UserId == fo.Contract_Admin || x.UserId == fo.Main_Coordinator) - // && x.Email != null && x.Email != "" - // select x; - // mailCC = userCC.Select(x => x.Email).Distinct().ToArray(); - // } - - // if (mailTo.Length > 0) - // { - // NameValueCollection myPram = new NameValueCollection(); - // myPram.Add("ContractNo", fo.FO_NO); - // myPram.Add("Contractor", drpContractor.SelectedText); - // myPram.Add("Date", punishment.PunishDate != null ? punishment.PunishDate.Value.ToString("yyyy-MM-dd") : ""); - // myPram.Add("Time", punishment.PunishDate != null ? punishment.PunishDate.Value.ToString("HH:mm") : ""); - // myPram.Add("Violation Description", punishment.Description); - // MailHelper.SendPunishSesMail(pops, myPram, "承包商EHSS违规关联SES号的填写通知", mailTo, mailCC, out resultMessage); - // } - // } - //} - #endregion - BLL.Sys_LogService.AddLog(this.CurrUser.UserId, "Add Contractor Safety Punishment!"); - ShowNotify("Save successfully!", MessageBoxIcon.Success); } + + #region 承包商EHSS违规关联SES号的填写通知 + var vses = (from x in Funs.DB.EMC_Punishment + where (x.RelatedSesMailIsSend == null || x.RelatedSesMailIsSend == false) + && x.BYC_RU != null && x.BYC_RU.ToUpper() != "NA" && x.Flag == "1" + && x.PunishmentId== punishment.PunishmentId + select x).ToList(); + if (vses.Count() > 0) + { + Model.EmailPop pops = Funs.DB.EmailPop.FirstOrDefault(x => x.EmailID == BLL.Const.EmailPopId); + if (pops == null) + { + return; + } + + foreach (var ses in vses) + { + string[] mailTo = null; + string[] mailCC = null; + string resultMessage = ""; + + var emailTemplate = Funs.DB.SendEmailTemplate.Where(x => x.EmailName.Contains("承包商EHSS违规关联SES号的填写通知")); + if (emailTemplate.Count() > 0) + { + var dep = BLL.DepartService.GetDepartById(ses.BYC_RU); + if (dep != null && !string.IsNullOrEmpty(dep.DepartLeader)) + { + var userTo = from x in Funs.DB.Sys_User + where x.UserId == dep.DepartLeader + && x.Email != null && x.Email != "" + select x; + if (userTo != null) + { + mailTo = userTo.Select(x => x.Email).ToArray(); + } + + string contractor = string.Empty; + var fo = BLL.SESRelatedDataService.GetSESRelatedDataByFoNo(ses.FO_NO); + if (fo != null) + { + var userCC = from x in Funs.DB.Sys_User + where (x.UserId == fo.Contract_Admin || x.UserId == fo.Main_Coordinator) + && x.Email != null && x.Email != "" + select x; + mailCC = userCC.Select(x => x.Email).Distinct().ToArray(); + + var con = Funs.DB.View_Contractor_DropDownValue.FirstOrDefault(x => x.ContractorId == fo.Contractor); + if (con != null) + { + contractor = con.Contractor; + } + } + + if (mailTo.Length > 0) + { + NameValueCollection myPram = new NameValueCollection(); + myPram.Add("ContractNo", fo.FO_NO); + myPram.Add("Contractor", contractor); + myPram.Add("Date", ses.PunishDate != null ? ses.PunishDate.Value.ToString("yyyy-MM-dd") : ""); + myPram.Add("Time", ses.PunishDate != null ? ses.PunishDate.Value.ToString("HH:mm") : ""); + myPram.Add("Violation Description", ses.Description); + bool result = MailHelper.SendPunishSesMail(pops, myPram, "承包商EHSS违规关联SES号的填写通知", mailTo, mailCC, out resultMessage); + + if (result) + { + ses.RelatedSesMailIsSend = true; + Funs.DB.SubmitChanges(); + } + } + } + } + } + } + #endregion + ShowNotify("Save successfully!", MessageBoxIcon.Success); PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference()); } #endregion diff --git a/FCL/FineUIPro.Web/SES/SESRelatedData.aspx b/FCL/FineUIPro.Web/SES/SESRelatedData.aspx index 81ff33f..3ee80ad 100644 --- a/FCL/FineUIPro.Web/SES/SESRelatedData.aspx +++ b/FCL/FineUIPro.Web/SES/SESRelatedData.aspx @@ -90,17 +90,17 @@ LabelAlign="Right"> + Icon="DoorOut" EnableAjax="false" DisableControlBeforePostBack="false" Hidden="true"> + Icon="DoorOut" EnableAjax="false" DisableControlBeforePostBack="false" Hidden="true"> + Icon="DoorOut" EnableAjax="false" DisableControlBeforePostBack="false" Hidden="true"> + Icon="DoorOut" EnableAjax="false" DisableControlBeforePostBack="false" Hidden="true"> diff --git a/FCL/FineUIPro.Web/SES/SESRelatedData.aspx.cs b/FCL/FineUIPro.Web/SES/SESRelatedData.aspx.cs index 1939807..ff35186 100644 --- a/FCL/FineUIPro.Web/SES/SESRelatedData.aspx.cs +++ b/FCL/FineUIPro.Web/SES/SESRelatedData.aspx.cs @@ -2034,9 +2034,21 @@ namespace FineUIPro.Web.SES #endregion if (buttonList.Contains(BLL.Const.BtnOut)) + { + this.btnNCRExport.Hidden = false; + } + if (buttonList.Contains(BLL.Const.FCExport)) { this.btnExport.Hidden = false; } + if (buttonList.Contains(BLL.Const.PersonExport)) + { + this.btnExport1.Hidden = false; + } + if (buttonList.Contains(BLL.Const.FoExport)) + { + this.btnFoExport.Hidden = false; + } } } #endregion diff --git a/FCL/FineUIPro.Web/SES/StandardTemplate.aspx.cs b/FCL/FineUIPro.Web/SES/StandardTemplate.aspx.cs index 8a1cd3e..16c29f7 100644 --- a/FCL/FineUIPro.Web/SES/StandardTemplate.aspx.cs +++ b/FCL/FineUIPro.Web/SES/StandardTemplate.aspx.cs @@ -30,7 +30,7 @@ namespace FineUIPro.Web.SES { this.tvStandardTemp.Nodes.Clear(); TreeNode rootRole = new TreeNode(); - rootRole.Text = "TemplateType"; + rootRole.Text = "Template Type"; rootRole.NodeID = "0"; rootRole.Expanded = true; this.tvStandardTemp.Nodes.Add(rootRole); diff --git a/FCL/FineUIPro.Web/Web.config b/FCL/FineUIPro.Web/Web.config index 44e62f5..0bc7abb 100644 --- a/FCL/FineUIPro.Web/Web.config +++ b/FCL/FineUIPro.Web/Web.config @@ -9,7 +9,7 @@
- + diff --git a/FCL/Model/Model.cs b/FCL/Model/Model.cs index 8853f80..4d2b06a 100644 --- a/FCL/Model/Model.cs +++ b/FCL/Model/Model.cs @@ -29,7 +29,11 @@ namespace Model #region 可扩展性方法定义 partial void OnCreated(); - partial void InsertAttachFile(AttachFile instance); + partial void OnCreated() + { + this.CommandTimeout = 600; + } + partial void InsertAttachFile(AttachFile instance); partial void UpdateAttachFile(AttachFile instance); partial void DeleteAttachFile(AttachFile instance); partial void InsertAudiFlow(AudiFlow instance); @@ -113,6 +117,9 @@ namespace Model partial void InsertEMC_Punishment(EMC_Punishment instance); partial void UpdateEMC_Punishment(EMC_Punishment instance); partial void DeleteEMC_Punishment(EMC_Punishment instance); + partial void InsertEMC_ViolationClause(EMC_ViolationClause instance); + partial void UpdateEMC_ViolationClause(EMC_ViolationClause instance); + partial void DeleteEMC_ViolationClause(EMC_ViolationClause instance); partial void InsertFC_ContractManagement(FC_ContractManagement instance); partial void UpdateFC_ContractManagement(FC_ContractManagement instance); partial void DeleteFC_ContractManagement(FC_ContractManagement instance); @@ -479,6 +486,14 @@ namespace Model } } + public System.Data.Linq.Table EMC_ViolationClause + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table FC_AveScoreView { get @@ -807,6 +822,14 @@ namespace Model } } + public System.Data.Linq.Table View_EMC_Que_Punishment + { + get + { + return this.GetTable(); + } + } + public System.Data.Linq.Table View_ExtremeScoresReport { get @@ -9767,6 +9790,36 @@ namespace Model private System.Nullable _IsDepEvaluated; + private string _ViolationClauseId; + + private System.Nullable _IsFrame; + + private string _ViolationPerson; + + private string _BYC_Person; + + private string _Requisitioner; + + private string _Contractor; + + private string _Discipline; + + private System.Nullable _IsAudit; + + private string _AuditMan; + + private System.Nullable _AuditEmailIsSend; + + private System.Nullable _IsPass; + + private string _AuditResult; + + private string _ItemNo; + + private string _AttachUrl; + + private System.Nullable _RelatedSesMailIsSend2; + private EntityRef _Base_Depart; private EntityRef _Sys_User; @@ -9819,6 +9872,36 @@ namespace Model partial void OnIsUserEvaluatedChanged(); partial void OnIsDepEvaluatedChanging(System.Nullable value); partial void OnIsDepEvaluatedChanged(); + partial void OnViolationClauseIdChanging(string value); + partial void OnViolationClauseIdChanged(); + partial void OnIsFrameChanging(System.Nullable value); + partial void OnIsFrameChanged(); + partial void OnViolationPersonChanging(string value); + partial void OnViolationPersonChanged(); + partial void OnBYC_PersonChanging(string value); + partial void OnBYC_PersonChanged(); + partial void OnRequisitionerChanging(string value); + partial void OnRequisitionerChanged(); + partial void OnContractorChanging(string value); + partial void OnContractorChanged(); + partial void OnDisciplineChanging(string value); + partial void OnDisciplineChanged(); + partial void OnIsAuditChanging(System.Nullable value); + partial void OnIsAuditChanged(); + partial void OnAuditManChanging(string value); + partial void OnAuditManChanged(); + partial void OnAuditEmailIsSendChanging(System.Nullable value); + partial void OnAuditEmailIsSendChanged(); + partial void OnIsPassChanging(System.Nullable value); + partial void OnIsPassChanged(); + partial void OnAuditResultChanging(string value); + partial void OnAuditResultChanged(); + partial void OnItemNoChanging(string value); + partial void OnItemNoChanged(); + partial void OnAttachUrlChanging(string value); + partial void OnAttachUrlChanged(); + partial void OnRelatedSesMailIsSend2Changing(System.Nullable value); + partial void OnRelatedSesMailIsSend2Changed(); #endregion public EMC_Punishment() @@ -10276,6 +10359,306 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViolationClauseId", DbType="NVarChar(50)")] + public string ViolationClauseId + { + get + { + return this._ViolationClauseId; + } + set + { + if ((this._ViolationClauseId != value)) + { + this.OnViolationClauseIdChanging(value); + this.SendPropertyChanging(); + this._ViolationClauseId = value; + this.SendPropertyChanged("ViolationClauseId"); + this.OnViolationClauseIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsFrame", DbType="Bit")] + public System.Nullable IsFrame + { + get + { + return this._IsFrame; + } + set + { + if ((this._IsFrame != value)) + { + this.OnIsFrameChanging(value); + this.SendPropertyChanging(); + this._IsFrame = value; + this.SendPropertyChanged("IsFrame"); + this.OnIsFrameChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViolationPerson", DbType="NVarChar(20)")] + public string ViolationPerson + { + get + { + return this._ViolationPerson; + } + set + { + if ((this._ViolationPerson != value)) + { + this.OnViolationPersonChanging(value); + this.SendPropertyChanging(); + this._ViolationPerson = value; + this.SendPropertyChanged("ViolationPerson"); + this.OnViolationPersonChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BYC_Person", DbType="NVarChar(50)")] + public string BYC_Person + { + get + { + return this._BYC_Person; + } + set + { + if ((this._BYC_Person != value)) + { + this.OnBYC_PersonChanging(value); + this.SendPropertyChanging(); + this._BYC_Person = value; + this.SendPropertyChanged("BYC_Person"); + this.OnBYC_PersonChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Requisitioner", DbType="NVarChar(50)")] + public string Requisitioner + { + get + { + return this._Requisitioner; + } + set + { + if ((this._Requisitioner != value)) + { + this.OnRequisitionerChanging(value); + this.SendPropertyChanging(); + this._Requisitioner = value; + this.SendPropertyChanged("Requisitioner"); + this.OnRequisitionerChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Contractor", DbType="NVarChar(150)")] + public string Contractor + { + get + { + return this._Contractor; + } + set + { + if ((this._Contractor != value)) + { + this.OnContractorChanging(value); + this.SendPropertyChanging(); + this._Contractor = value; + this.SendPropertyChanged("Contractor"); + this.OnContractorChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Discipline", DbType="NVarChar(150)")] + public string Discipline + { + get + { + return this._Discipline; + } + set + { + if ((this._Discipline != value)) + { + this.OnDisciplineChanging(value); + this.SendPropertyChanging(); + this._Discipline = value; + this.SendPropertyChanged("Discipline"); + this.OnDisciplineChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsAudit", DbType="Bit")] + public System.Nullable IsAudit + { + get + { + return this._IsAudit; + } + set + { + if ((this._IsAudit != value)) + { + this.OnIsAuditChanging(value); + this.SendPropertyChanging(); + this._IsAudit = value; + this.SendPropertyChanged("IsAudit"); + this.OnIsAuditChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AuditMan", DbType="NVarChar(50)")] + public string AuditMan + { + get + { + return this._AuditMan; + } + set + { + if ((this._AuditMan != value)) + { + this.OnAuditManChanging(value); + this.SendPropertyChanging(); + this._AuditMan = value; + this.SendPropertyChanged("AuditMan"); + this.OnAuditManChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AuditEmailIsSend", DbType="Bit")] + public System.Nullable AuditEmailIsSend + { + get + { + return this._AuditEmailIsSend; + } + set + { + if ((this._AuditEmailIsSend != value)) + { + this.OnAuditEmailIsSendChanging(value); + this.SendPropertyChanging(); + this._AuditEmailIsSend = value; + this.SendPropertyChanged("AuditEmailIsSend"); + this.OnAuditEmailIsSendChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsPass", DbType="Bit")] + public System.Nullable IsPass + { + get + { + return this._IsPass; + } + set + { + if ((this._IsPass != value)) + { + this.OnIsPassChanging(value); + this.SendPropertyChanging(); + this._IsPass = value; + this.SendPropertyChanged("IsPass"); + this.OnIsPassChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AuditResult", DbType="NVarChar(500)")] + public string AuditResult + { + get + { + return this._AuditResult; + } + set + { + if ((this._AuditResult != value)) + { + this.OnAuditResultChanging(value); + this.SendPropertyChanging(); + this._AuditResult = value; + this.SendPropertyChanged("AuditResult"); + this.OnAuditResultChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ItemNo", DbType="NVarChar(10)")] + public string ItemNo + { + get + { + return this._ItemNo; + } + set + { + if ((this._ItemNo != value)) + { + this.OnItemNoChanging(value); + this.SendPropertyChanging(); + this._ItemNo = value; + this.SendPropertyChanged("ItemNo"); + this.OnItemNoChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttachUrl", DbType="NVarChar(500)")] + public string AttachUrl + { + get + { + return this._AttachUrl; + } + set + { + if ((this._AttachUrl != value)) + { + this.OnAttachUrlChanging(value); + this.SendPropertyChanging(); + this._AttachUrl = value; + this.SendPropertyChanged("AttachUrl"); + this.OnAttachUrlChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RelatedSesMailIsSend2", DbType="Bit")] + public System.Nullable RelatedSesMailIsSend2 + { + get + { + return this._RelatedSesMailIsSend2; + } + set + { + if ((this._RelatedSesMailIsSend2 != value)) + { + this.OnRelatedSesMailIsSend2Changing(value); + this.SendPropertyChanging(); + this._RelatedSesMailIsSend2 = value; + this.SendPropertyChanged("RelatedSesMailIsSend2"); + this.OnRelatedSesMailIsSend2Changed(); + } + } + } + [global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_EMC_Punishment_Base_Depart", Storage="_Base_Depart", ThisKey="BYC_RU", OtherKey="DepartId", IsForeignKey=true)] public Base_Depart Base_Depart { @@ -10365,6 +10748,308 @@ namespace Model } } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.EMC_ViolationClause")] + public partial class EMC_ViolationClause : INotifyPropertyChanging, INotifyPropertyChanged + { + + private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty); + + private string _ViolationClauseId; + + private string _ClauseDef; + + private System.Nullable _DeductionIndividual1; + + private System.Nullable _DeductionComPany1; + + private System.Nullable _DeductionIndividual2; + + private System.Nullable _DeductionComPany2; + + private System.Nullable _DeductionIndividual3; + + private System.Nullable _DeductionComPany3; + + private string _ApplicationDef; + + private string _SupViolationClause; + + private System.Nullable _SortIndex; + + #region 可扩展性方法定义 + partial void OnLoaded(); + partial void OnValidate(System.Data.Linq.ChangeAction action); + partial void OnCreated(); + partial void OnViolationClauseIdChanging(string value); + partial void OnViolationClauseIdChanged(); + partial void OnClauseDefChanging(string value); + partial void OnClauseDefChanged(); + partial void OnDeductionIndividual1Changing(System.Nullable value); + partial void OnDeductionIndividual1Changed(); + partial void OnDeductionComPany1Changing(System.Nullable value); + partial void OnDeductionComPany1Changed(); + partial void OnDeductionIndividual2Changing(System.Nullable value); + partial void OnDeductionIndividual2Changed(); + partial void OnDeductionComPany2Changing(System.Nullable value); + partial void OnDeductionComPany2Changed(); + partial void OnDeductionIndividual3Changing(System.Nullable value); + partial void OnDeductionIndividual3Changed(); + partial void OnDeductionComPany3Changing(System.Nullable value); + partial void OnDeductionComPany3Changed(); + partial void OnApplicationDefChanging(string value); + partial void OnApplicationDefChanged(); + partial void OnSupViolationClauseChanging(string value); + partial void OnSupViolationClauseChanged(); + partial void OnSortIndexChanging(System.Nullable value); + partial void OnSortIndexChanged(); + #endregion + + public EMC_ViolationClause() + { + OnCreated(); + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViolationClauseId", DbType="NVarChar(50) NOT NULL", CanBeNull=false, IsPrimaryKey=true)] + public string ViolationClauseId + { + get + { + return this._ViolationClauseId; + } + set + { + if ((this._ViolationClauseId != value)) + { + this.OnViolationClauseIdChanging(value); + this.SendPropertyChanging(); + this._ViolationClauseId = value; + this.SendPropertyChanged("ViolationClauseId"); + this.OnViolationClauseIdChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ClauseDef", DbType="NVarChar(500)")] + public string ClauseDef + { + get + { + return this._ClauseDef; + } + set + { + if ((this._ClauseDef != value)) + { + this.OnClauseDefChanging(value); + this.SendPropertyChanging(); + this._ClauseDef = value; + this.SendPropertyChanged("ClauseDef"); + this.OnClauseDefChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeductionIndividual1", DbType="Money")] + public System.Nullable DeductionIndividual1 + { + get + { + return this._DeductionIndividual1; + } + set + { + if ((this._DeductionIndividual1 != value)) + { + this.OnDeductionIndividual1Changing(value); + this.SendPropertyChanging(); + this._DeductionIndividual1 = value; + this.SendPropertyChanged("DeductionIndividual1"); + this.OnDeductionIndividual1Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeductionComPany1", DbType="Money")] + public System.Nullable DeductionComPany1 + { + get + { + return this._DeductionComPany1; + } + set + { + if ((this._DeductionComPany1 != value)) + { + this.OnDeductionComPany1Changing(value); + this.SendPropertyChanging(); + this._DeductionComPany1 = value; + this.SendPropertyChanged("DeductionComPany1"); + this.OnDeductionComPany1Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeductionIndividual2", DbType="Money")] + public System.Nullable DeductionIndividual2 + { + get + { + return this._DeductionIndividual2; + } + set + { + if ((this._DeductionIndividual2 != value)) + { + this.OnDeductionIndividual2Changing(value); + this.SendPropertyChanging(); + this._DeductionIndividual2 = value; + this.SendPropertyChanged("DeductionIndividual2"); + this.OnDeductionIndividual2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeductionComPany2", DbType="Money")] + public System.Nullable DeductionComPany2 + { + get + { + return this._DeductionComPany2; + } + set + { + if ((this._DeductionComPany2 != value)) + { + this.OnDeductionComPany2Changing(value); + this.SendPropertyChanging(); + this._DeductionComPany2 = value; + this.SendPropertyChanged("DeductionComPany2"); + this.OnDeductionComPany2Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeductionIndividual3", DbType="Money")] + public System.Nullable DeductionIndividual3 + { + get + { + return this._DeductionIndividual3; + } + set + { + if ((this._DeductionIndividual3 != value)) + { + this.OnDeductionIndividual3Changing(value); + this.SendPropertyChanging(); + this._DeductionIndividual3 = value; + this.SendPropertyChanged("DeductionIndividual3"); + this.OnDeductionIndividual3Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DeductionComPany3", DbType="Money")] + public System.Nullable DeductionComPany3 + { + get + { + return this._DeductionComPany3; + } + set + { + if ((this._DeductionComPany3 != value)) + { + this.OnDeductionComPany3Changing(value); + this.SendPropertyChanging(); + this._DeductionComPany3 = value; + this.SendPropertyChanged("DeductionComPany3"); + this.OnDeductionComPany3Changed(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ApplicationDef", DbType="NVarChar(500)")] + public string ApplicationDef + { + get + { + return this._ApplicationDef; + } + set + { + if ((this._ApplicationDef != value)) + { + this.OnApplicationDefChanging(value); + this.SendPropertyChanging(); + this._ApplicationDef = value; + this.SendPropertyChanged("ApplicationDef"); + this.OnApplicationDefChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SupViolationClause", DbType="NVarChar(50)")] + public string SupViolationClause + { + get + { + return this._SupViolationClause; + } + set + { + if ((this._SupViolationClause != value)) + { + this.OnSupViolationClauseChanging(value); + this.SendPropertyChanging(); + this._SupViolationClause = value; + this.SendPropertyChanged("SupViolationClause"); + this.OnSupViolationClauseChanged(); + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SortIndex", DbType="Int")] + public System.Nullable SortIndex + { + get + { + return this._SortIndex; + } + set + { + if ((this._SortIndex != value)) + { + this.OnSortIndexChanging(value); + this.SendPropertyChanging(); + this._SortIndex = value; + this.SendPropertyChanged("SortIndex"); + this.OnSortIndexChanged(); + } + } + } + + public event PropertyChangingEventHandler PropertyChanging; + + public event PropertyChangedEventHandler PropertyChanged; + + protected virtual void SendPropertyChanging() + { + if ((this.PropertyChanging != null)) + { + this.PropertyChanging(this, emptyChangingEventArgs); + } + } + + protected virtual void SendPropertyChanged(String propertyName) + { + if ((this.PropertyChanged != null)) + { + this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); + } + } + } + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.FC_AveScoreView")] public partial class FC_AveScoreView { @@ -27937,6 +28622,8 @@ namespace Model private string _Def; + private System.Nullable _IsFrame; + private string _EmailIsSend; public View_EMC_Punishment() @@ -28487,6 +29174,751 @@ namespace Model } } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsFrame", DbType="Bit")] + public System.Nullable IsFrame + { + get + { + return this._IsFrame; + } + set + { + if ((this._IsFrame != value)) + { + this._IsFrame = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmailIsSend", DbType="VarChar(2) NOT NULL", CanBeNull=false)] + public string EmailIsSend + { + get + { + return this._EmailIsSend; + } + set + { + if ((this._EmailIsSend != value)) + { + this._EmailIsSend = value; + } + } + } + } + + [global::System.Data.Linq.Mapping.TableAttribute(Name="dbo.View_EMC_Que_Punishment")] + public partial class View_EMC_Que_Punishment + { + + private string _PunishmentId; + + private System.Nullable _PunishDate; + + private string _FO_NO; + + private string _SES_No; + + private string _Location; + + private string _Description; + + private System.Nullable _Company; + + private System.Nullable _Individual; + + private System.Nullable _Backcharge; + + private System.Nullable _CompletionDate; + + private System.Nullable _PunishTime; + + private string _ViolationDegree; + + private string _Contractor; + + private string _ContractorId; + + private string _DisciplineEn; + + private string _DisciplineCN; + + private string _ContractorEn; + + private string _ContractorCN; + + private string _Discipline; + + private string _Contract_AdminId; + + private string _Contract_Admin; + + private string _Main_Coordinator; + + private string _MCDept; + + private string _User_Representative; + + private string _BYCRU; + + private string _BYC_Person; + + private string _Violation_Inspector_Name; + + private string _InspectionDep; + + private string _BYC_RU; + + private string _Violation_Inspector; + + private string _ViolationRelatedSes; + + private string _Flag; + + private System.Nullable _SelectYesNo; + + private string _Def; + + private System.Nullable _IsFrame; + + private string _ClauseDef; + + private string _Requisitioner; + + private string _RequisitionerName; + + private string _AttachUrl; + + private string _EmailIsSend; + + public View_EMC_Que_Punishment() + { + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PunishmentId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] + public string PunishmentId + { + get + { + return this._PunishmentId; + } + set + { + if ((this._PunishmentId != value)) + { + this._PunishmentId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PunishDate", DbType="DateTime")] + public System.Nullable PunishDate + { + get + { + return this._PunishDate; + } + set + { + if ((this._PunishDate != value)) + { + this._PunishDate = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FO_NO", DbType="NVarChar(50)")] + public string FO_NO + { + get + { + return this._FO_NO; + } + set + { + if ((this._FO_NO != value)) + { + this._FO_NO = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SES_No", DbType="NVarChar(20)")] + public string SES_No + { + get + { + return this._SES_No; + } + set + { + if ((this._SES_No != value)) + { + this._SES_No = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Location", DbType="NVarChar(100)")] + public string Location + { + get + { + return this._Location; + } + set + { + if ((this._Location != value)) + { + this._Location = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Description", DbType="NVarChar(500)")] + public string Description + { + get + { + return this._Description; + } + set + { + if ((this._Description != value)) + { + this._Description = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Company", DbType="Money")] + public System.Nullable Company + { + get + { + return this._Company; + } + set + { + if ((this._Company != value)) + { + this._Company = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Individual", DbType="Money")] + public System.Nullable Individual + { + get + { + return this._Individual; + } + set + { + if ((this._Individual != value)) + { + this._Individual = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Backcharge", DbType="Money")] + public System.Nullable Backcharge + { + get + { + return this._Backcharge; + } + set + { + if ((this._Backcharge != value)) + { + this._Backcharge = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_CompletionDate", DbType="DateTime")] + public System.Nullable CompletionDate + { + get + { + return this._CompletionDate; + } + set + { + if ((this._CompletionDate != value)) + { + this._CompletionDate = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PunishTime", DbType="DateTime")] + public System.Nullable PunishTime + { + get + { + return this._PunishTime; + } + set + { + if ((this._PunishTime != value)) + { + this._PunishTime = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViolationDegree", DbType="VarChar(10)")] + public string ViolationDegree + { + get + { + return this._ViolationDegree; + } + set + { + if ((this._ViolationDegree != value)) + { + this._ViolationDegree = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Contractor", DbType="NVarChar(400)")] + public string Contractor + { + get + { + return this._Contractor; + } + set + { + if ((this._Contractor != value)) + { + this._Contractor = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractorId", DbType="NVarChar(50)")] + public string ContractorId + { + get + { + return this._ContractorId; + } + set + { + if ((this._ContractorId != value)) + { + this._ContractorId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DisciplineEn", DbType="NVarChar(500)")] + public string DisciplineEn + { + get + { + return this._DisciplineEn; + } + set + { + if ((this._DisciplineEn != value)) + { + this._DisciplineEn = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_DisciplineCN", DbType="NVarChar(500)")] + public string DisciplineCN + { + get + { + return this._DisciplineCN; + } + set + { + if ((this._DisciplineCN != value)) + { + this._DisciplineCN = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractorEn", DbType="NVarChar(200)")] + public string ContractorEn + { + get + { + return this._ContractorEn; + } + set + { + if ((this._ContractorEn != value)) + { + this._ContractorEn = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ContractorCN", DbType="NVarChar(200)")] + public string ContractorCN + { + get + { + return this._ContractorCN; + } + set + { + if ((this._ContractorCN != value)) + { + this._ContractorCN = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Discipline", DbType="NVarChar(1000)")] + public string Discipline + { + get + { + return this._Discipline; + } + set + { + if ((this._Discipline != value)) + { + this._Discipline = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Contract_AdminId", DbType="NVarChar(50)")] + public string Contract_AdminId + { + get + { + return this._Contract_AdminId; + } + set + { + if ((this._Contract_AdminId != value)) + { + this._Contract_AdminId = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Contract_Admin", DbType="NVarChar(50)")] + public string Contract_Admin + { + get + { + return this._Contract_Admin; + } + set + { + if ((this._Contract_Admin != value)) + { + this._Contract_Admin = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Main_Coordinator", DbType="NVarChar(50)")] + public string Main_Coordinator + { + get + { + return this._Main_Coordinator; + } + set + { + if ((this._Main_Coordinator != value)) + { + this._Main_Coordinator = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_MCDept", DbType="NVarChar(50)")] + public string MCDept + { + get + { + return this._MCDept; + } + set + { + if ((this._MCDept != value)) + { + this._MCDept = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_User_Representative", DbType="NVarChar(50)")] + public string User_Representative + { + get + { + return this._User_Representative; + } + set + { + if ((this._User_Representative != value)) + { + this._User_Representative = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BYCRU", DbType="NVarChar(50)")] + public string BYCRU + { + get + { + return this._BYCRU; + } + set + { + if ((this._BYCRU != value)) + { + this._BYCRU = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BYC_Person", DbType="NVarChar(50)")] + public string BYC_Person + { + get + { + return this._BYC_Person; + } + set + { + if ((this._BYC_Person != value)) + { + this._BYC_Person = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Violation_Inspector_Name", DbType="NVarChar(50)")] + public string Violation_Inspector_Name + { + get + { + return this._Violation_Inspector_Name; + } + set + { + if ((this._Violation_Inspector_Name != value)) + { + this._Violation_Inspector_Name = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_InspectionDep", DbType="NVarChar(50)")] + public string InspectionDep + { + get + { + return this._InspectionDep; + } + set + { + if ((this._InspectionDep != value)) + { + this._InspectionDep = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_BYC_RU", DbType="NVarChar(50)")] + public string BYC_RU + { + get + { + return this._BYC_RU; + } + set + { + if ((this._BYC_RU != value)) + { + this._BYC_RU = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Violation_Inspector", DbType="NVarChar(50)")] + public string Violation_Inspector + { + get + { + return this._Violation_Inspector; + } + set + { + if ((this._Violation_Inspector != value)) + { + this._Violation_Inspector = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ViolationRelatedSes", DbType="NVarChar(50)")] + public string ViolationRelatedSes + { + get + { + return this._ViolationRelatedSes; + } + set + { + if ((this._ViolationRelatedSes != value)) + { + this._ViolationRelatedSes = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Flag", DbType="NChar(1)")] + public string Flag + { + get + { + return this._Flag; + } + set + { + if ((this._Flag != value)) + { + this._Flag = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_SelectYesNo", DbType="Bit")] + public System.Nullable SelectYesNo + { + get + { + return this._SelectYesNo; + } + set + { + if ((this._SelectYesNo != value)) + { + this._SelectYesNo = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Def", DbType="NVarChar(300)")] + public string Def + { + get + { + return this._Def; + } + set + { + if ((this._Def != value)) + { + this._Def = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_IsFrame", DbType="Bit")] + public System.Nullable IsFrame + { + get + { + return this._IsFrame; + } + set + { + if ((this._IsFrame != value)) + { + this._IsFrame = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ClauseDef", DbType="NVarChar(500)")] + public string ClauseDef + { + get + { + return this._ClauseDef; + } + set + { + if ((this._ClauseDef != value)) + { + this._ClauseDef = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Requisitioner", DbType="NVarChar(50)")] + public string Requisitioner + { + get + { + return this._Requisitioner; + } + set + { + if ((this._Requisitioner != value)) + { + this._Requisitioner = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_RequisitionerName", DbType="NVarChar(50)")] + public string RequisitionerName + { + get + { + return this._RequisitionerName; + } + set + { + if ((this._RequisitionerName != value)) + { + this._RequisitionerName = value; + } + } + } + + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_AttachUrl", DbType="NVarChar(500)")] + public string AttachUrl + { + get + { + return this._AttachUrl; + } + set + { + if ((this._AttachUrl != value)) + { + this._AttachUrl = value; + } + } + } + [global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_EmailIsSend", DbType="VarChar(2) NOT NULL", CanBeNull=false)] public string EmailIsSend {