This commit is contained in:
		
						commit
						3cdec6f99a
					
				|  | @ -5734,3 +5734,4 @@ HJGLPackFile/版本日志/HJGLDB_2024.05.02.sql | |||
| /CreateModel2017.bat | ||||
| /DataBase/版本日志/HJGLDB_2024.05.12.sql | ||||
| /HJGL/.vs/HJGL/v17/.suo | ||||
| /HJGL/WebApi/ErrLog.txt | ||||
|  |  | |||
|  | @ -162,7 +162,7 @@ | |||
|             </site> | ||||
|             <site name="WebApi" id="2"> | ||||
|                 <application path="/" applicationPool="Clr4IntegratedAppPool"> | ||||
|                     <virtualDirectory path="/" physicalPath="E:\MyProject\ZJ_BSF\Basf_TCC7\HJGL\WebApi" /> | ||||
|                     <virtualDirectory path="/" physicalPath="E:\湛江巴斯夫\Basf_TCC7\HJGL\WebApi" /> | ||||
|                 </application> | ||||
|                 <bindings> | ||||
|                     <binding protocol="http" bindingInformation="*:3862:localhost" /> | ||||
|  | @ -250,7 +250,7 @@ | |||
|             </site> | ||||
|             <site name="FineUIPro.Web(10)" id="13"> | ||||
|                 <application path="/" applicationPool="Clr4IntegratedAppPool"> | ||||
|                     <virtualDirectory path="/" physicalPath="E:\MyProject\ZJ_BSF\Basf_TCC7\HJGL\FineUIPro.Web" /> | ||||
|                     <virtualDirectory path="/" physicalPath="E:\湛江巴斯夫\Basf_TCC7\HJGL\FineUIPro.Web" /> | ||||
|                 </application> | ||||
|                 <bindings> | ||||
|                     <binding protocol="http" bindingInformation="*:13960:localhost" /> | ||||
|  |  | |||
|  | @ -161,7 +161,6 @@ | |||
|     <Compile Include="PublicInfo\FileControl\FileControl_DomesticStandardsService.cs" /> | ||||
|     <Compile Include="PublicInfo\FileControl\FileControl_ForeignStandardsService.cs" /> | ||||
|     <Compile Include="PublicInfo\WPQ\WPQListService.cs" /> | ||||
|     <Compile Include="SendEmailService.cs" /> | ||||
|     <Compile Include="SessionName.cs" /> | ||||
|     <Compile Include="SoftRegeditService.cs" /> | ||||
|     <Compile Include="SQLHelper.cs" /> | ||||
|  |  | |||
|  | @ -46,77 +46,92 @@ namespace FineUIPro.Web.common | |||
|                 mailFrom = ps.EmailYx; | ||||
|             } | ||||
| 
 | ||||
|             MailMessage email = new MailMessage(); | ||||
|             //MailAddress emailFrom = new MailAddress(mailFrom); | ||||
|             //MailMessage email = new MailMessage(); | ||||
|             ////MailAddress emailFrom = new MailAddress(mailFrom); | ||||
| 
 | ||||
|             //发件人           | ||||
|             email.From = new MailAddress(mailFrom, ps.EmailYx);//发件人地址 | ||||
|             ////发件人           | ||||
|             //email.From = new MailAddress(mailFrom, ps.EmailYx);//发件人地址 | ||||
| 
 | ||||
|             //收件人  | ||||
|             if (mailTo != null && mailTo.Length > 0) | ||||
|             { | ||||
|                 foreach (string send in mailTo) | ||||
|                 { | ||||
|                     if (!String.IsNullOrEmpty(send)) | ||||
|                     { | ||||
|                         email.To.Add(send); | ||||
|                     }                     | ||||
|                 } | ||||
|             } | ||||
|             ////收件人  | ||||
|             //if (mailTo != null && mailTo.Length > 0) | ||||
|             //{ | ||||
|             //    foreach (string send in mailTo) | ||||
|             //    { | ||||
|             //        if (!String.IsNullOrEmpty(send)) | ||||
|             //        { | ||||
|             //            email.To.Add(send); | ||||
|             //        }                     | ||||
|             //    } | ||||
|             //} | ||||
| 
 | ||||
|             //加抄送 | ||||
|             if (mailCC != null && mailCC.Length > 0) | ||||
|             { | ||||
|             ////加抄送 | ||||
|             //if (mailCC != null && mailCC.Length > 0) | ||||
|             //{ | ||||
| 
 | ||||
|                 foreach (string cc in mailCC) | ||||
|                 { | ||||
|                     if (!String.IsNullOrEmpty(cc)) | ||||
|                     { | ||||
|                         email.CC.Add(cc); | ||||
|                     }                    | ||||
|                 } | ||||
|             } | ||||
|             //    foreach (string cc in mailCC) | ||||
|             //    { | ||||
|             //        if (!String.IsNullOrEmpty(cc)) | ||||
|             //        { | ||||
|             //            email.CC.Add(cc); | ||||
|             //        }                    | ||||
|             //    } | ||||
|             //} | ||||
| 
 | ||||
|             //主题 | ||||
|             email.Subject = mailSubject; | ||||
|             //内容 | ||||
|             email.Body = mailBody; | ||||
|             //附件 | ||||
|             if (!string.IsNullOrEmpty(mailAttch)) | ||||
|             { | ||||
|                 string[] attachments = mailAttch.Split(';'); | ||||
|                 foreach (string file in attachments) | ||||
|                 { | ||||
|                     System.Net.Mail.Attachment attach = new System.Net.Mail.Attachment(file, System.Net.Mime.MediaTypeNames.Application.Octet); | ||||
|                     //为附件添加发送时间 | ||||
|                     System.Net.Mime.ContentDisposition disposition = attach.ContentDisposition; | ||||
|                     disposition.CreationDate = System.IO.File.GetCreationTime(file); | ||||
|                     disposition.ModificationDate = System.IO.File.GetLastWriteTime(file); | ||||
|                     disposition.ReadDate = System.IO.File.GetLastAccessTime(file); | ||||
|                     //添加附件 | ||||
|                     email.Attachments.Add(attach); | ||||
|                 } | ||||
|             } | ||||
|             ////主题 | ||||
|             //email.Subject = mailSubject; | ||||
|             ////内容 | ||||
|             //email.Body = mailBody; | ||||
|             ////附件 | ||||
|             //if (!string.IsNullOrEmpty(mailAttch)) | ||||
|             //{ | ||||
|             //    string[] attachments = mailAttch.Split(';'); | ||||
|             //    foreach (string file in attachments) | ||||
|             //    { | ||||
|             //        System.Net.Mail.Attachment attach = new System.Net.Mail.Attachment(file, System.Net.Mime.MediaTypeNames.Application.Octet); | ||||
|             //        //为附件添加发送时间 | ||||
|             //        System.Net.Mime.ContentDisposition disposition = attach.ContentDisposition; | ||||
|             //        disposition.CreationDate = System.IO.File.GetCreationTime(file); | ||||
|             //        disposition.ModificationDate = System.IO.File.GetLastWriteTime(file); | ||||
|             //        disposition.ReadDate = System.IO.File.GetLastAccessTime(file); | ||||
|             //        //添加附件 | ||||
|             //        email.Attachments.Add(attach); | ||||
|             //    } | ||||
|             //} | ||||
|             //优先级 | ||||
|             email.Priority = (mailPriority == "High") ? System.Net.Mail.MailPriority.High : System.Net.Mail.MailPriority.Normal; | ||||
|             //内容编码、格式 | ||||
|             email.BodyEncoding = System.Text.Encoding.UTF8; | ||||
|             email.IsBodyHtml = true; | ||||
|             //email.Priority = (mailPriority == "High") ? System.Net.Mail.MailPriority.High : System.Net.Mail.MailPriority.Normal; | ||||
|             ////内容编码、格式 | ||||
|             //email.BodyEncoding = System.Text.Encoding.UTF8; | ||||
|             //email.IsBodyHtml = true; | ||||
|             //SMTP服务器 | ||||
|             System.Net.Mail.SmtpClient client = new System.Net.Mail.SmtpClient(ps.EmailFwq); | ||||
| 
 | ||||
|             client.UseDefaultCredentials = true; | ||||
|             //验证(Credentials 凭证) | ||||
|             client.Credentials = new System.Net.NetworkCredential(mailFrom, ps.EmailPass); | ||||
| 
 | ||||
|             //处理待发的电子邮件的方法 (Delivery 发送,传输) | ||||
|             client.DeliveryMethod = System.Net.Mail.SmtpDeliveryMethod.Network; | ||||
|             //System.Net.Mail.SmtpClient client = new System.Net.Mail.SmtpClient(ps.EmailFwq); | ||||
|             //client.EnableSsl = false; | ||||
|             //client.UseDefaultCredentials = true; | ||||
|             ////验证(Credentials 凭证) | ||||
|             //client.Credentials = new System.Net.NetworkCredential(mailFrom, ps.EmailPass); | ||||
| 
 | ||||
|             ////处理待发的电子邮件的方法 (Delivery 发送,传输) | ||||
|             //client.DeliveryMethod = System.Net.Mail.SmtpDeliveryMethod.Network; | ||||
| 
 | ||||
|             System.Web.Mail.MailMessage mail = new System.Web.Mail.MailMessage(); | ||||
|             try | ||||
|             { | ||||
|                 mail.From = ps.EmailYx; | ||||
|                 mail.To = string.Join(",", mailTo); | ||||
|                 mail.Subject = mailSubject; | ||||
|                 mail.BodyFormat = System.Web.Mail.MailFormat.Html; | ||||
|                 mail.Body =mailBody; | ||||
|                 mail.Cc = string.Join(",", mailCC); | ||||
|                 mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); | ||||
|                 mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", ps.EmailYx); | ||||
|                 mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", ps.EmailPass); | ||||
|                 mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpserverport",ps.EmailDk); | ||||
|                 mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpusessl", "true"); | ||||
|                 System.Web.Mail.SmtpMail.SmtpServer = ps.EmailFwq; | ||||
|                 System.Web.Mail.SmtpMail.Send(mail); | ||||
|                 BLL.ErrLogInfo.WriteLog("开始发送邮件"); | ||||
|                 //发送邮件 | ||||
|                 client.Send(email); | ||||
|                 //client.Send(email); | ||||
|                 BLL.ErrLogInfo.WriteLog("发送中..."); | ||||
|                 if (mailTo != null && mailTo.Length > 0) | ||||
|                 { | ||||
|                     foreach (string send in mailTo) | ||||
|  | @ -140,6 +155,7 @@ namespace FineUIPro.Web.common | |||
|             } | ||||
|             catch (Exception ex) | ||||
|             { | ||||
|                 BLL.ErrLogInfo.WriteLog(ex, "发送邮件失败"); | ||||
|                 if (mailTo != null && mailTo.Length > 0) | ||||
|                 { | ||||
|                     List<Email_SendLog> ss = new List<Email_SendLog>(); | ||||
|  | @ -155,6 +171,7 @@ namespace FineUIPro.Web.common | |||
|                             newSendEmail.EmailName = send; | ||||
|                             newSendEmail.EmailStatus = "发送失败"; | ||||
|                             newSendEmail.CreateTime = DateTime.Now; | ||||
|                             newSendEmail.ErrorMsg = ex.Message; | ||||
|                             newSendEmail.CreateName = "sys"; | ||||
|                             BLL.Email_Send.Email_SendLogService.AddEmail_SendLog(newSendEmail); | ||||
|                         } | ||||
|  | @ -166,8 +183,6 @@ namespace FineUIPro.Web.common | |||
|             finally | ||||
|             { | ||||
|                 //及时释放占用的资源   | ||||
|                 email.Attachments.Clear(); | ||||
|                 email.Attachments.Dispose(); | ||||
|             } | ||||
|         } | ||||
|          | ||||
|  |  | |||
|  | @ -1,92 +0,0 @@ | |||
| using System; | ||||
| using System.Collections; | ||||
| using System.Collections.Generic; | ||||
| using System.IO; | ||||
| using System.Linq; | ||||
| using System.Net; | ||||
| using System.Net.Mail; | ||||
| using System.Text; | ||||
| using System.Web; | ||||
| using System.Web.UI; | ||||
| using System.Web.UI.WebControls; | ||||
| using BLL; | ||||
| 
 | ||||
| namespace BLL | ||||
| { | ||||
|     public class SendEmailService | ||||
|     { | ||||
|         /// <summary> | ||||
|         /// | ||||
|         /// </summary> | ||||
|         /// <param name="sender">发件人</param> | ||||
|         /// <param name="receiver">收件人</param> | ||||
|         /// <param name="title">标题</param> | ||||
|         /// <param name="content">内容</param> | ||||
|         /// <param name="FulPath">附件地址</param> | ||||
|         /// <param name="passWord">密码</param> | ||||
|         /// <returns></returns> | ||||
|         public static bool SendEmail(string sender, string receiver, string title, string content, string FulPath, string passWord) | ||||
|         { | ||||
|             bool IsSend = true; | ||||
| 
 | ||||
|             MailMessage mailObject = new MailMessage(); | ||||
|             string fromAddress = sender; //发件人 | ||||
|             MailAddress mayAddress = new MailAddress(fromAddress); | ||||
| 
 | ||||
|             mailObject.SubjectEncoding = System.Text.Encoding.UTF8; | ||||
|             mailObject.BodyEncoding = System.Text.Encoding.UTF8; | ||||
| 
 | ||||
|             //设置邮件的收件人   | ||||
|             string address = ""; | ||||
|             string[] mailNames = (receiver + ";").Split(';'); | ||||
|             foreach (string name in mailNames) | ||||
|             { | ||||
|                 if (name != string.Empty) | ||||
|                 { | ||||
|                     if (name.IndexOf('<') > 0) | ||||
|                     { | ||||
|                         address = name.Substring(name.IndexOf('<') + 1).Replace('>', ' '); | ||||
|                     } | ||||
|                     else | ||||
|                     { | ||||
|                         address = name.Substring(name.IndexOf('<') + 1).Replace('>', ' '); | ||||
|                     } | ||||
| 
 | ||||
|                     mailObject.To.Add(new MailAddress(address));//收件人 | ||||
|                 } | ||||
|             } | ||||
| 
 | ||||
|             mailObject.From = mayAddress; | ||||
|             mailObject.Subject = title;// "标题"; | ||||
|             mailObject.Body = content;//"内容"; | ||||
|             mailObject.IsBodyHtml = false; | ||||
| 
 | ||||
|             //设置邮件的附件,将在客户端选择的附件先上传到服务器保存一个,然后加入到mail中 | ||||
|             //设置邮件的附件,将在客户端选择的附件先上传到服务器保存一个,然后加入到mail中 | ||||
|             if (!String.IsNullOrEmpty(FulPath)) | ||||
|             { | ||||
|                 mailObject.Attachments.Add(new Attachment(FulPath)); | ||||
|                 mailObject.DeliveryNotificationOptions = DeliveryNotificationOptions.OnSuccess; | ||||
|             } | ||||
| 
 | ||||
| 
 | ||||
|             SmtpClient client; | ||||
|             client = new SmtpClient("smtp." + fromAddress.Substring(fromAddress.LastIndexOf("@") + 1)); | ||||
|             client.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis; | ||||
|             client.Timeout = 60000; | ||||
|             client.UseDefaultCredentials = false; | ||||
|             client.Credentials = new System.Net.NetworkCredential(fromAddress, passWord); | ||||
|             client.DeliveryMethod = SmtpDeliveryMethod.Network; | ||||
|             try | ||||
|             { | ||||
|                 client.Send(mailObject); | ||||
|                 return IsSend; | ||||
|             } | ||||
|             catch (Exception ex) | ||||
|             { | ||||
|                 ErrLogInfo.WriteLog(ex); | ||||
|                 return !IsSend; | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | @ -149,7 +149,7 @@ namespace FineUIPro.Web.Email_Send | |||
|                 bool f = MailHelper.SendNetMail(pop, mailFrom, mailTo, mailSubject, mailBody, mailAttch, mailCode, mailPriority, mailCC, out resultMessage); | ||||
|                 if (f == true) | ||||
|                 { | ||||
|                     ShowNotify("Send Successfully!", MessageBoxIcon.Success); | ||||
|                     ShowNotify("发送成功!", MessageBoxIcon.Success); | ||||
|                 } | ||||
|                 else | ||||
|                 { | ||||
|  |  | |||
|  | @ -9,7 +9,7 @@ | |||
|     <section name="FineUIPro" type="FineUIPro.ConfigSection, FineUIPro" requirePermission="false"/> | ||||
|   </configSections> | ||||
|   <connectionStrings> | ||||
|     <add name="HJGLDBConnectionString" connectionString="Data Source=.\sql2016;Initial Catalog=HJGLDB_ZJBSF;uid=sa;pwd=1111;"/> | ||||
|     <add name="HJGLDBConnectionString" connectionString="Data Source=.;Initial Catalog=HJGLDB_ZJBSF;uid=sa;pwd=Sh@nghai9;"/> | ||||
|     <!--<add name="HJGLDBConnectionString" connectionString="Data Source=.;Initial Catalog=HJGLDB;Integrated Security=True" | ||||
|       providerName="System.Data.SqlClient" />--> | ||||
|   </connectionStrings> | ||||
|  |  | |||
|  | @ -13428,6 +13428,8 @@ namespace Model | |||
| 		 | ||||
| 		private string _CreateName; | ||||
| 		 | ||||
| 		private string _ErrorMsg; | ||||
| 		 | ||||
|     #region 可扩展性方法定义 | ||||
|     partial void OnLoaded(); | ||||
|     partial void OnValidate(System.Data.Linq.ChangeAction action); | ||||
|  | @ -13448,6 +13450,8 @@ namespace Model | |||
|     partial void OnCreateTimeChanged(); | ||||
|     partial void OnCreateNameChanging(string value); | ||||
|     partial void OnCreateNameChanged(); | ||||
|     partial void OnErrorMsgChanging(string value); | ||||
|     partial void OnErrorMsgChanged(); | ||||
|     #endregion | ||||
| 		 | ||||
| 		public Email_SendLog() | ||||
|  | @ -13615,6 +13619,26 @@ namespace Model | |||
| 			} | ||||
| 		} | ||||
| 		 | ||||
| 		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ErrorMsg", DbType="NText", UpdateCheck=UpdateCheck.Never)] | ||||
| 		public string ErrorMsg | ||||
| 		{ | ||||
| 			get | ||||
| 			{ | ||||
| 				return this._ErrorMsg; | ||||
| 			} | ||||
| 			set | ||||
| 			{ | ||||
| 				if ((this._ErrorMsg != value)) | ||||
| 				{ | ||||
| 					this.OnErrorMsgChanging(value); | ||||
| 					this.SendPropertyChanging(); | ||||
| 					this._ErrorMsg = value; | ||||
| 					this.SendPropertyChanged("ErrorMsg"); | ||||
| 					this.OnErrorMsgChanged(); | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		 | ||||
| 		public event PropertyChangingEventHandler PropertyChanging; | ||||
| 		 | ||||
| 		public event PropertyChangedEventHandler PropertyChanged; | ||||
|  | @ -22456,12 +22480,12 @@ namespace Model | |||
| 		 | ||||
| 		private string _DetectionStandard; | ||||
| 		 | ||||
| 		private string _Tabler; | ||||
| 		 | ||||
| 		private string _Remark; | ||||
| 		 | ||||
| 		private System.Nullable<System.DateTime> _CreatedTime; | ||||
| 		 | ||||
| 		private string _Tabler; | ||||
| 		 | ||||
|     #region 可扩展性方法定义 | ||||
|     partial void OnLoaded(); | ||||
|     partial void OnValidate(System.Data.Linq.ChangeAction action); | ||||
|  | @ -22480,12 +22504,12 @@ namespace Model | |||
|     partial void OnUnitIdChanged(); | ||||
|     partial void OnDetectionStandardChanging(string value); | ||||
|     partial void OnDetectionStandardChanged(); | ||||
|     partial void OnTablerChanging(string value); | ||||
|     partial void OnTablerChanged(); | ||||
|     partial void OnRemarkChanging(string value); | ||||
|     partial void OnRemarkChanged(); | ||||
|     partial void OnCreatedTimeChanging(System.Nullable<System.DateTime> value); | ||||
|     partial void OnCreatedTimeChanged(); | ||||
|     partial void OnTablerChanging(string value); | ||||
|     partial void OnTablerChanged(); | ||||
|     #endregion | ||||
| 		 | ||||
| 		public PMI_Delegation() | ||||
|  | @ -22553,7 +22577,7 @@ namespace Model | |||
| 			} | ||||
| 		} | ||||
| 		 | ||||
| 		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50) NOT NULL", CanBeNull=false)] | ||||
| 		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_ProjectId", DbType="NVarChar(50)")] | ||||
| 		public string ProjectId | ||||
| 		{ | ||||
| 			get | ||||
|  | @ -22633,26 +22657,6 @@ namespace Model | |||
| 			} | ||||
| 		} | ||||
| 		 | ||||
| 		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Tabler", DbType="NVarChar(50)")] | ||||
| 		public string Tabler | ||||
| 		{ | ||||
| 			get | ||||
| 			{ | ||||
| 				return this._Tabler; | ||||
| 			} | ||||
| 			set | ||||
| 			{ | ||||
| 				if ((this._Tabler != value)) | ||||
| 				{ | ||||
| 					this.OnTablerChanging(value); | ||||
| 					this.SendPropertyChanging(); | ||||
| 					this._Tabler = value; | ||||
| 					this.SendPropertyChanged("Tabler"); | ||||
| 					this.OnTablerChanged(); | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		 | ||||
| 		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Remark", DbType="NVarChar(255)")] | ||||
| 		public string Remark | ||||
| 		{ | ||||
|  | @ -22693,6 +22697,26 @@ namespace Model | |||
| 			} | ||||
| 		} | ||||
| 		 | ||||
| 		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Tabler", DbType="NVarChar(50)")] | ||||
| 		public string Tabler | ||||
| 		{ | ||||
| 			get | ||||
| 			{ | ||||
| 				return this._Tabler; | ||||
| 			} | ||||
| 			set | ||||
| 			{ | ||||
| 				if ((this._Tabler != value)) | ||||
| 				{ | ||||
| 					this.OnTablerChanging(value); | ||||
| 					this.SendPropertyChanging(); | ||||
| 					this._Tabler = value; | ||||
| 					this.SendPropertyChanged("Tabler"); | ||||
| 					this.OnTablerChanged(); | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		 | ||||
| 		public event PropertyChangingEventHandler PropertyChanging; | ||||
| 		 | ||||
| 		public event PropertyChangedEventHandler PropertyChanged; | ||||
|  | @ -22732,10 +22756,10 @@ namespace Model | |||
| 		 | ||||
| 		private int _Status; | ||||
| 		 | ||||
| 		private System.Nullable<System.DateTime> _CheckTime; | ||||
| 		 | ||||
| 		private string _ReportNo; | ||||
| 		 | ||||
| 		private System.Nullable<System.DateTime> _CheckTime; | ||||
| 		 | ||||
| 		private System.Nullable<System.DateTime> _ReportTime; | ||||
| 		 | ||||
|     #region 可扩展性方法定义 | ||||
|  | @ -22754,10 +22778,10 @@ namespace Model | |||
|     partial void OnAcceptanceChanged(); | ||||
|     partial void OnStatusChanging(int value); | ||||
|     partial void OnStatusChanged(); | ||||
|     partial void OnCheckTimeChanging(System.Nullable<System.DateTime> value); | ||||
|     partial void OnCheckTimeChanged(); | ||||
|     partial void OnReportNoChanging(string value); | ||||
|     partial void OnReportNoChanged(); | ||||
|     partial void OnCheckTimeChanging(System.Nullable<System.DateTime> value); | ||||
|     partial void OnCheckTimeChanged(); | ||||
|     partial void OnReportTimeChanging(System.Nullable<System.DateTime> value); | ||||
|     partial void OnReportTimeChanged(); | ||||
|     #endregion | ||||
|  | @ -22867,7 +22891,7 @@ namespace Model | |||
| 			} | ||||
| 		} | ||||
| 		 | ||||
| 		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_Status", DbType="Int NOT NULL")] | ||||
| 		[global::System.Data.Linq.Mapping.ColumnAttribute(Name="status", Storage="_Status", DbType="Int NOT NULL")] | ||||
| 		public int Status | ||||
| 		{ | ||||
| 			get | ||||
|  | @ -22887,26 +22911,6 @@ namespace Model | |||
| 			} | ||||
| 		} | ||||
| 		 | ||||
| 		[global::System.Data.Linq.Mapping.ColumnAttribute(Name="checkTime", Storage="_CheckTime", DbType="DateTime")] | ||||
| 		public System.Nullable<System.DateTime> CheckTime | ||||
| 		{ | ||||
| 			get | ||||
| 			{ | ||||
| 				return this._CheckTime; | ||||
| 			} | ||||
| 			set | ||||
| 			{ | ||||
| 				if ((this._CheckTime != value)) | ||||
| 				{ | ||||
| 					this.OnCheckTimeChanging(value); | ||||
| 					this.SendPropertyChanging(); | ||||
| 					this._CheckTime = value; | ||||
| 					this.SendPropertyChanged("CheckTime"); | ||||
| 					this.OnCheckTimeChanged(); | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		 | ||||
| 		[global::System.Data.Linq.Mapping.ColumnAttribute(Name="reportNo", Storage="_ReportNo", DbType="NVarChar(50)")] | ||||
| 		public string ReportNo | ||||
| 		{ | ||||
|  | @ -22927,6 +22931,26 @@ namespace Model | |||
| 			} | ||||
| 		} | ||||
| 		 | ||||
| 		[global::System.Data.Linq.Mapping.ColumnAttribute(Name="checkTime", Storage="_CheckTime", DbType="DateTime")] | ||||
| 		public System.Nullable<System.DateTime> CheckTime | ||||
| 		{ | ||||
| 			get | ||||
| 			{ | ||||
| 				return this._CheckTime; | ||||
| 			} | ||||
| 			set | ||||
| 			{ | ||||
| 				if ((this._CheckTime != value)) | ||||
| 				{ | ||||
| 					this.OnCheckTimeChanging(value); | ||||
| 					this.SendPropertyChanging(); | ||||
| 					this._CheckTime = value; | ||||
| 					this.SendPropertyChanged("CheckTime"); | ||||
| 					this.OnCheckTimeChanged(); | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		 | ||||
| 		[global::System.Data.Linq.Mapping.ColumnAttribute(Name="reportTime", Storage="_ReportTime", DbType="DateTime")] | ||||
| 		public System.Nullable<System.DateTime> ReportTime | ||||
| 		{ | ||||
|  | @ -38567,6 +38591,8 @@ namespace Model | |||
| 		 | ||||
| 		private string _ProjectId; | ||||
| 		 | ||||
| 		private System.Nullable<bool> _IsPMI; | ||||
| 		 | ||||
| 		private string _PipelineCode; | ||||
| 		 | ||||
| 		private string _PipelineId; | ||||
|  | @ -38697,6 +38723,22 @@ namespace Model | |||
| 			} | ||||
| 		} | ||||
| 		 | ||||
| 		[global::System.Data.Linq.Mapping.ColumnAttribute(Name="isPMI", Storage="_IsPMI", DbType="Bit")] | ||||
| 		public System.Nullable<bool> IsPMI | ||||
| 		{ | ||||
| 			get | ||||
| 			{ | ||||
| 				return this._IsPMI; | ||||
| 			} | ||||
| 			set | ||||
| 			{ | ||||
| 				if ((this._IsPMI != value)) | ||||
| 				{ | ||||
| 					this._IsPMI = value; | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		 | ||||
| 		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PipelineCode", DbType="NVarChar(100)")] | ||||
| 		public string PipelineCode | ||||
| 		{ | ||||
|  | @ -40705,8 +40747,6 @@ namespace Model | |||
| 		 | ||||
| 		private string _PipingClassCode; | ||||
| 		 | ||||
| 		private string _PIPClassCode; | ||||
| 		 | ||||
| 		private string _WeldingDate; | ||||
| 		 | ||||
| 		private System.Nullable<bool> _IsCancel; | ||||
|  | @ -41815,22 +41855,6 @@ namespace Model | |||
| 			} | ||||
| 		} | ||||
| 		 | ||||
| 		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_PIPClassCode", DbType="NVarChar(50)")] | ||||
| 		public string PIPClassCode | ||||
| 		{ | ||||
| 			get | ||||
| 			{ | ||||
| 				return this._PIPClassCode; | ||||
| 			} | ||||
| 			set | ||||
| 			{ | ||||
| 				if ((this._PIPClassCode != value)) | ||||
| 				{ | ||||
| 					this._PIPClassCode = value; | ||||
| 				} | ||||
| 			} | ||||
| 		} | ||||
| 		 | ||||
| 		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WeldingDate", DbType="VarChar(100)")] | ||||
| 		public string WeldingDate | ||||
| 		{ | ||||
|  | @ -46227,7 +46251,7 @@ namespace Model | |||
| 			} | ||||
| 		} | ||||
| 		 | ||||
| 		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WelderIds", DbType="NVarChar(MAX)", UpdateCheck=UpdateCheck.Never)] | ||||
| 		[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_WelderIds", DbType="VarChar(1000)")] | ||||
| 		public string WelderIds | ||||
| 		{ | ||||
| 			get | ||||
|  |  | |||
|  | @ -0,0 +1,18 @@ | |||
| using System; | ||||
| using System.Collections.Generic; | ||||
| using System.Linq; | ||||
| using System.Web; | ||||
| using System.Web.Mvc; | ||||
| 
 | ||||
| namespace WebApi.Controllers | ||||
| { | ||||
|     public class HomeController : Controller | ||||
|     { | ||||
|         public ActionResult Index() | ||||
|         { | ||||
|             ViewBag.Title = "Home Page"; | ||||
| 
 | ||||
|             return View(); | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | @ -1,44 +0,0 @@ | |||
| 
 | ||||
| 错误信息开始=====> | ||||
| 错误类型:NotSupportedException | ||||
| 错误信息:方法“Boolean IsNullOrEmpty(System.String)”不支持转换为 SQL。 | ||||
| 错误堆栈: | ||||
|    在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.TranslateStringStaticMethod(SqlMethodCall mc) | ||||
|    在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.VisitMethodCall(SqlMethodCall mc) | ||||
|    在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) | ||||
|    在 System.Data.Linq.SqlClient.SqlVisitor.VisitExpression(SqlExpression exp) | ||||
|    在 System.Data.Linq.SqlClient.SqlVisitor.VisitUnaryOperator(SqlUnary uo) | ||||
|    在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) | ||||
|    在 System.Data.Linq.SqlClient.SqlVisitor.VisitExpression(SqlExpression exp) | ||||
|    在 System.Data.Linq.SqlClient.SqlVisitor.VisitBinaryOperator(SqlBinary bo) | ||||
|    在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.VisitBinaryOperator(SqlBinary bo) | ||||
|    在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) | ||||
|    在 System.Data.Linq.SqlClient.SqlVisitor.VisitExpression(SqlExpression exp) | ||||
|    在 System.Data.Linq.SqlClient.SqlVisitor.VisitBinaryOperator(SqlBinary bo) | ||||
|    在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.VisitBinaryOperator(SqlBinary bo) | ||||
|    在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) | ||||
|    在 System.Data.Linq.SqlClient.SqlVisitor.VisitExpression(SqlExpression exp) | ||||
|    在 System.Data.Linq.SqlClient.SqlVisitor.VisitSelectCore(SqlSelect select) | ||||
|    在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.VisitSelect(SqlSelect select) | ||||
|    在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) | ||||
|    在 System.Data.Linq.SqlClient.SqlVisitor.VisitAlias(SqlAlias a) | ||||
|    在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) | ||||
|    在 System.Data.Linq.SqlClient.SqlVisitor.VisitSource(SqlSource source) | ||||
|    在 System.Data.Linq.SqlClient.SqlVisitor.VisitSelectCore(SqlSelect select) | ||||
|    在 System.Data.Linq.SqlClient.PostBindDotNetConverter.Visitor.VisitSelect(SqlSelect select) | ||||
|    在 System.Data.Linq.SqlClient.SqlVisitor.Visit(SqlNode node) | ||||
|    在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(ResultShape resultShape, Type resultType, SqlNode node, ReadOnlyCollection`1 parentParameters, SqlNodeAnnotations annotations) | ||||
|    在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations) | ||||
|    在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) | ||||
|    在 System.Data.Linq.DataQuery`1.System.Collections.Generic.IEnumerable<T>.GetEnumerator() | ||||
|    在 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) | ||||
|    在 System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) | ||||
|    在 BLL.Email_Send.Email_SendTemplateService.GetEmailByTemplateId(String templateId, String isCc) 位置 E:\湛江巴斯夫\Basf_TCC7\HJGL\BLL\SendEmail\Email_SendTemplateService.cs:行号 124 | ||||
|    在 BLL.TaskScheduleService.GetNDEAuditEmailTemplate(Int32 type) 位置 E:\湛江巴斯夫\Basf_TCC7\HJGL\BLL\Schedule\TaskScheduleService.cs:行号 51 | ||||
|    在 WebApi.Controllers.TaskController.GetNDEAuditEmailTemplate() 位置 E:\湛江巴斯夫\Basf_TCC7\HJGL\WebApi\Controllers\TaskController.cs:行号 19 | ||||
| 出错时间:05/17/2024 11:16:43 | ||||
| The scheduled task failed to run the unaudited point-of-mail. Procedure | ||||
| 出错时间:05/17/2024 11:16:43 | ||||
| 
 | ||||
| 未检测到发送人邮箱,请先配置邮箱地址 | ||||
| 未检测到发送人邮箱,请先配置邮箱地址 | ||||
|  | @ -157,6 +157,7 @@ | |||
|     <Compile Include="Areas\HelpPage\SampleGeneration\SampleDirection.cs" /> | ||||
|     <Compile Include="Areas\HelpPage\SampleGeneration\TextSample.cs" /> | ||||
|     <Compile Include="Areas\HelpPage\XmlDocumentationProvider.cs" /> | ||||
|     <Compile Include="Controllers\HomeController.cs" /> | ||||
|     <Compile Include="Controllers\TaskController.cs" /> | ||||
|     <Compile Include="Global.asax.cs"> | ||||
|       <DependentUpon>Global.asax</DependentUpon> | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue