@ -2054,7 +2054,7 @@ namespace DSWeb.MvcShipping.Controllers
// errstr = enumValue.CUSTNO;
//else
// errstr = errstr + "," + enumValue.CUSTNO;
errstr = errstr + " < br /> "+ enumValue . CUSTNO + "存在费用,请先删除费用才能删除此票业务!" ;
errstr = errstr + " "+ enumValue . CUSTNO + "存在费用,请先删除费用才能删除此票业务!" ;
}
else
@ -2083,31 +2083,36 @@ namespace DSWeb.MvcShipping.Controllers
}
else
{
errstr = errstr + " < br /> " + enumValue . CUSTNO + "此票拼箱主票存在分票业务,请先删除分票信息!" ;
errstr = errstr + " " + enumValue . CUSTNO + "此票拼箱主票存在分票业务,请先删除分票信息!" ;
//var jsonRespose2 = new JsonResponse { Success = false, Message = "此票拼箱主票存在分票业务,请先删除分票信息!" };
//return new ContentResult() { Content = JsonConvert.Serialize(jsonRespose2) };
}
if ( enumValue . INPUTBY ! = Convert . ToString ( Session [ "SHOWNAME" ] ) ) {
errstr = errstr + " < br /> " + enumValue . CUSTNO + "只有录入人本人才能删除此票业务!" ;
errstr = errstr + " " + enumValue . CUSTNO + "只有录入人本人才能删除此票业务!" ;
}
BLCOUNT = T_ALL_DA . GetStrSQL ( "BLCOUNT" , "select count(*) BLCOUNT from Op_SeaCover WHERE bsno='" + enumValue . BSNO + "' AND (COVERTITLE='发送SO' or COVERTITLE='发送SI' ) " ) ;
if ( BLCOUNT ! = "0" )
{
warningstr = warningstr + " < br /> " + enumValue . CUSTNO + "此票已发送EDI" ;
warningstr = warningstr + " " + enumValue . CUSTNO + "此票已发送EDI" ;
}
BLCOUNT = T_ALL_DA . GetStrSQL ( "BLCOUNT" , "select count(*) BLCOUNT from op_ctn_detail WHERE CTN_ID in (select CTN_ID from op_ctn where bsno='" + enumValue . BSNO + "') " ) ;
if ( BLCOUNT ! = "0" )
{
warningstr = warningstr + "< br />" + enumValue . CUSTNO + "此票录入分箱明细" ;
warningstr = warningstr + " " + enumValue . CUSTNO + "此票录入分箱明细" ;
}
BLCOUNT = T_ALL_DA . GetStrSQL ( "BLCOUNT" , "select count(*) BLCOUNT from op_ctn where bsno='" + enumValue . BSNO + "' and ISNULL(CNTRNO,'')<>'' " ) ;
if ( BLCOUNT ! = "0" )
{
warningstr = warningstr + " " + enumValue . CUSTNO + "此票已录入箱号" ;
}
}
else
{
errstr = errstr + " < br /> " + enumValue . CUSTNO + "网上订舱不能删除!" ;
errstr = errstr + " " + enumValue . CUSTNO + "网上订舱不能删除!" ;
}
}
@ -4806,12 +4811,15 @@ namespace DSWeb.MvcShipping.Controllers
else
{
#region 订舱、确认
var type = "YTEDI" ;
if ( carrier = = "ZIM" ) type = "ZIMEDI" ;
var error = MsOpSeaeEdiPortDAL . IsCreateEdi ( headList , "YTEDI" , filetype , filerole , isbill , carrier ) ;
if ( error = = "" )
{
var ftpset = MsCodeFtpSetDAL . GetData ( "EDINAME=' YTEDI ' AND CARRIERID='" + carrier + "'" , Convert . ToString ( Session [ "COMPANYID" ] ) ) ;
var ftpset = MsCodeFtpSetDAL . GetData ( "EDINAME=' "+ type + " ' AND CARRIERID='" + carrier + "'" , Convert . ToString ( Session [ "COMPANYID" ] ) ) ;
var filename = "" ;
filename = MsOpSeaeEdiPortDAL . CreateEdi ( headList , Convert . ToString ( Session [ "USERID" ] ) , path , mblno , filerole , ftpset , "YTEDI" , isbill , 0 , carrier , "" , "" , filetype ) ;
filename = MsOpSeaeEdiPortDAL . CreateEdi ( headList , Convert . ToString ( Session [ "USERID" ] ) , path , mblno , filerole , ftpset , type , isbill , 0 , carrier , "" , "" , filetype ) ;
if ( ftpset . SERVERIP ! = "" & & ftpset . SERVERIP ! = null )
{
@ -4897,10 +4905,14 @@ namespace DSWeb.MvcShipping.Controllers
else
{
#region 订舱、确认
var type = "YTEDI" ;
if ( carrier = = "ZIM" ) type = "ZIMEDI" ;
var error = MsOpSeaeEdiPortDAL . IsCreateEdi ( headList , "YTEDI" , filetype , filerole , 0 , carrier ) ;
if ( error = = "" )
{
var ftpset = MsCodeFtpSetDAL . GetData ( "EDINAME='YTEDI' AND CARRIERID='" + carrier + "'" , Convert . ToString ( Session [ "COMPANYID" ] ) ) ;
var ftpset = MsCodeFtpSetDAL . GetData ( "EDINAME=' "+ type + " ' AND CARRIERID='" + carrier + "'" , Convert . ToString ( Session [ "COMPANYID" ] ) ) ;
if ( ftpset . SENDCODE = = "" | | ftpset . RECEIVECODE = = "" )
{
result . Success = false ;
@ -4909,7 +4921,7 @@ namespace DSWeb.MvcShipping.Controllers
else
{
var filename = "" ;
filename = MsOpSeaeEdiPortDAL . CreateEdi ( headList , Convert . ToString ( Session [ "USERID" ] ) , path , mblno , filerole , ftpset , "YTEDI" , isbill , 0 , carrier , "" , "" , filetype ) ;
filename = MsOpSeaeEdiPortDAL . CreateEdi ( headList , Convert . ToString ( Session [ "USERID" ] ) , path , mblno , filerole , ftpset , type , isbill , 0 , carrier , "" , "" , filetype ) ;
filename = Path . GetFileName ( filename ) ;
result . Data = "../../EDIFiles/SeaeEdi/" + filename ;
result . Success = true ;