@ -5546,7 +5546,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
#region 退舱或推航次申请
public static DBResult SubmitTuiShen ( String USERID , List < MsOpSeae > billList , string tuioptype , string reason )
public static DBResult SubmitTuiShen ( String USERID , List < MsOpSeae > billList , string tuioptype , string reason ,string REASONCMB )
{
var result = new DBResult ( ) ;
var WorkFlowName = "OpTuiShenAudit" ;
@ -5614,7 +5614,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
{
var cmdUpdateOrder2 = db . GetSqlStringCommand ( "update op_seae_pre set ISORDER=0,ISUP=0,ORDNO='' where ORDNO='" + OPPRE . ORDNO + "'" ) ;
db . ExecuteNonQuery ( cmdUpdateOrder2 , tran ) ;
SENDCANCELORDNO ( OPPRE , billno , reason );
SENDCANCELORDNO ( OPPRE , billno , reason , REASONCMB );
}
else {
var cmdUpdateOrder2 = db . GetSqlStringCommand ( "update op_seae_pre set ISTUI=1where ORDNO='" + OPPRE . ORDNO + "'" ) ;
@ -5789,7 +5789,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
if ( ! string . IsNullOrEmpty ( OPPRE . ORDNO ) ) {
var cmdUpdateOrder2 = db . GetSqlStringCommand ( "update op_seae_pre set ISORDER=0,ISUP=0,ORDNO='' where ORDNO='" + OPPRE . ORDNO + "'" ) ;
db . ExecuteNonQuery ( cmdUpdateOrder2 , tran ) ;
SENDCANCELORDNO ( OPPRE , enumValue , "" );
SENDCANCELORDNO ( OPPRE , enumValue , "" ,"" );
}
@ -5833,12 +5833,27 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
return result ;
}
public static DBResult SENDCANCELORDNO ( MsOpSeaePre headData , MsOpSeae opSeae , string reason )
public static DBResult SENDCANCELORDNO ( MsOpSeaePre headData , MsOpSeae opSeae , string reason ,string REASONCMB )
{
var result = new DBResult ( ) ;
//向:做确认订舱操作的人、该业务的销售、该业务的录入人 发送邮件
headData . DbOperationType = DbOperationType . DbotUpd ;
headData . MBLNO = opSeae . MBLNO ;
headData . ORDERNO = opSeae . ORDERNO ;
headData . CARRIER = opSeae . CARRIER ;
headData . HSCODE = opSeae . HSCODE ;
headData . GOODSNAME = opSeae . GOODSNAME ;
headData . CONTRACTNO = opSeae . CONTRACTNO ;
headData . PORTLOAD = opSeae . PORTLOAD ;
headData . PORTLOADID = opSeae . PORTLOADID ;
headData . PORTDISCHARGE = opSeae . PORTDISCHARGE ;
headData . PORTDISCHARGEID = opSeae . PORTDISCHARGEID ;
headData . LANE = opSeae . LANE ;
headData . VESSEL = opSeae . VESSEL ;
headData . VOYNO = opSeae . VOYNO ;
headData . FORWARDER = opSeae . FORWARDER ;
var modb = new ModelObjectDB ( ) ;
modb . Save ( headData ) ;
var mailtitle = "舱位回收 " ;
if ( ! string . IsNullOrEmpty ( opSeae . CARRIER ) )
mailtitle = mailtitle + "-" + opSeae . CARRIER ;
@ -5871,7 +5886,8 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
Body . Append ( "<br />订舱代理:" + opSeae . FORWARDER ) ;
Body . Append ( "<br />订舱号:" + opSeae . ORDERNO ) ;
Body . Append ( "<br />退仓客户:" + opSeae . CUSTOMERNAME ) ;
Body . Append ( "<br />退仓原因:" + reason ) ;
Body . Append ( "<br />退仓原因:" + REASONCMB ) ;
Body . Append ( "<br />退仓备注:" + reason ) ;
Body . Append ( "</Body></html> " ) ;
var mailto = "" ;
void mailtoAdd ( string mail )