DS7_HYRD
hanxuntao 1 year ago
parent 93e89e9845
commit ad498c128e

@ -78,7 +78,7 @@ namespace JobSendAgentMail
message.Body = bodyBuilder.ToMessageBody(); message.Body = bodyBuilder.ToMessageBody();
using (var client = new SmtpClient()) using (var client = new SmtpClient())
{ {
client.Connect(MAILSENDSERVICE, Convert.ToInt16(MAILSENDPORT), Convert.ToBoolean(MAILISSSL)); client.Connect(MAILSENDSERVICE, Convert.ToInt16(MAILSENDPORT),false);
client.Authenticate(MAILSENDACCOUNT, MAILSENDPASSWORD); client.Authenticate(MAILSENDACCOUNT, MAILSENDPASSWORD);
client.Send(message); client.Send(message);
client.Disconnect(true); client.Disconnect(true);

@ -10,55 +10,36 @@
<name>JobSendBooking</name> <name>JobSendBooking</name>
<group>Job</group> <group>Job</group>
<description>订阅数据</description> <description>订阅数据</description>
<job-type>JobSendAgentMail.JobSendBooking,JobSendAgentMail</job-type> <job-type>JobSendAgentMail.JobSendCtn,JobSendAgentMail</job-type>
<durable>true</durable> <durable>true</durable>
<recover>false</recover> <recover>false</recover>
<job-data-map> <job-data-map>
<!--连接字符串--> <!--连接字符串-->
<entry> <entry>
<key>ConnectString</key> <key>ConnectString</key>
<value>Data Source=www.perways.net,18866;Initial Catalog=ShippingWeb_SZYT;Persist Security Info=True;User ID=sa;Password=Ds20040201</value> <value>Data Source=119.167.78.10,1433;Initial Catalog=DATA;Persist Security Info=True;User ID=sa;Password=yongfa_123</value>
</entry> </entry>
<!--查询SQL--> <!--查询SQL-->
<entry> <entry>
<key>QuerySql</key> <key>QuerySql</key>
<value> <value>
select BSNO,MBLNO,ORDERNO,OPERATORFAX AS BLREMARK,AGENTID,BLFRT,PORTLOAD,PORTDISCHARGE,DESTINATION,CONVERT(varchar(100), ETD, 23) AS ETD,ATD,HBLNO,CONVERT(varchar(100), ETA, 23) ETA,CNTRTOTAL,( SELECT 箱号 FROM [dbo].[t_op_ctn_detail] where isnull(是否还箱,0)=0 and (GETDATE()-动态时间)>180
SELECT CODENAME FROM info_client WHERE SHORTNAME=OP_SEAE.CARRIER) CARRIERID,(CASE WHEN ISSUETYPE='电放' then 'Telex release'else case when ISSUETYPE='正本' then 'Original Bill' else case when ISSUETYPE='SWB' then 'Seaway Bill' else case when issuetype='云提单'then'INTELLIGENT BL'else '' end end end end) ISSUETYPE,(SELECT TOP 1 USERNAME FROM [user] where SHOWNAME=op_seae.OP) OPNAME,(SELECT TOP 1 email1 FROM [VW_user] where SHOWNAME=op_seae.OP) OPEMAIL, (((SELECT TOP 1 EMAIL FROM info_client where SHORTNAME=op_seae.AGENTID ))+';'+( SELECT TOP 1 email1 FROM [VW_userquan] where SHOWNAME=op_seae.SALE )) AGENTEMAIL from op_seae WHERE custno like 'CXE22050397'
</value> </value>
</entry> </entry>
<entry>
<key>HblQuerySql</key>
<value>
select HBLNO,(CASE WHEN ISSUETYPE='电放' then 'Telex release'else
case when ISSUETYPE='正本' then 'Original Bill' else case when ISSUETYPE='SWB' then 'Seaway Bill' else case when issuetype='云提单'then'INTELLIGENT BL'else '' end end end end ) ISSUETYPE
from op_seae_billmanage
</value>
</entry>
<!--单据类型-->
<entry>
<key>DocType</key>
<value>PA</value>
</entry>
<!--DS7绝对路径-->
<entry>
<key>D7FilePath</key>
<value>D:\东胜\DONGSHENGWEB\</value>
</entry>
<!--DS7邮箱发送账号--> <!--DS7邮箱发送账号-->
<entry> <entry>
<key>MAILSENDACCOUNT</key> <key>MAILSENDACCOUNT</key>
<value>szytcus@perways.com</value> <value>han_xuntao@163.com</value>
</entry> </entry>
<!--DS7邮箱发送密码--> <!--DS7邮箱发送密码-->
<entry> <entry>
<key>MAILSENDPASSWORD</key> <key>MAILSENDPASSWORD</key>
<value>PER202100558YT12</value> <value>ds20040201</value>
</entry> </entry>
<!--DS7邮箱发送账号--> <!--DS7邮箱发送账号-->
<entry> <entry>
<key>MAILSENDSERVICE</key> <key>MAILSENDSERVICE</key>
<value>smtp.263.net</value> <value>smtp.163.com</value>
</entry> </entry>
<!--DS7邮箱发送账号--> <!--DS7邮箱发送账号-->
<entry> <entry>
@ -71,8 +52,13 @@
<value>false</value> <value>false</value>
</entry> </entry>
<entry> <entry>
<key>MAILTEMPLATE</key> <key>MAILRECEIVER</key>
<value>MailTemplate.html</value> <value>e.control@win-fast.com.cn,e.control2@win-fast.com.cn</value>
</entry>
<entry>
<key>MAILTITLE</key>
<value>集装箱超期提醒</value>
</entry> </entry>
</job-data-map> </job-data-map>
</job> </job>
@ -85,19 +71,10 @@
<description>订阅数据触发器</description> <description>订阅数据触发器</description>
<job-name>JobSendBooking</job-name> <job-name>JobSendBooking</job-name>
<job-group>Job</job-group> <job-group>Job</job-group>
<cron-expression>0 34 14 * * ?</cron-expression> <cron-expression>0 55 14 * * ?</cron-expression>
</cron> </cron>
</trigger> </trigger>
<!--<trigger>
<simple>
<name>TriggerBooking</name>
<group>Job</group>
<description>订阅数据触发器</description>
<job-name>JobSendBooking</job-name>
<job-group>Job</job-group>
<cron-expression>0 5,10 9 * * ?</cron-expression>
</simple>
</trigger>-->
</schedule> </schedule>
</job-scheduling-data> </job-scheduling-data>
Loading…
Cancel
Save