@ -187,7 +187,13 @@ namespace JobCreateFee
if ( BSTYPE = = "分单" )
if ( BSTYPE = = "分单" )
{
{
dbcon . Open ( ) ;
dbcon . Open ( ) ;
var cmdInsertCtnSQL = "insert into t_op_ctn_fendan (AS_ID,代码,尺寸,箱型,数量,TEU,表现形式,箱号,封号,件数,包装,重量,尺码) values ("
var cmdDeleteCtnSQL = "delete from t_op_ctn_fendan where AS_ID='" + BSNO + "' " ;
SqlCommand cmdDeleteCtn = new SqlCommand ( cmdDeleteCtnSQL , dbcon ) ;
cmdDeleteCtn . ExecuteNonQuery ( ) ;
var cmdInsertCtnSQL = "insert into t_op_ctn_fendan (AS_ID,代码,尺寸,箱型,数量,TEU,表现形式,箱号,封号,件数,包装,重量,尺码) values ("
+ "'" + BSNO + "','" + CtnCode . CTNCODE + "','" + CtnCode . CTNSIZE + "','" + CtnCode . CTNTYPE + "',1," + TEU . ToString ( ) + ",'" + CtnCode . CTNALL . Replace ( "'" , "''" ) + "','" + ContainerNumber + "','" + SealNumber + "','" + Convert . ToString ( rowmhdata [ "Quantity" ] ) + "','" + PackageType + "'," + Convert . ToString ( rowmhdata [ "Weight" ] ) + "," + Convert . ToString ( rowmhdata [ "Measurement" ] ) + " )" ;
+ "'" + BSNO + "','" + CtnCode . CTNCODE + "','" + CtnCode . CTNSIZE + "','" + CtnCode . CTNTYPE + "',1," + TEU . ToString ( ) + ",'" + CtnCode . CTNALL . Replace ( "'" , "''" ) + "','" + ContainerNumber + "','" + SealNumber + "','" + Convert . ToString ( rowmhdata [ "Quantity" ] ) + "','" + PackageType + "'," + Convert . ToString ( rowmhdata [ "Weight" ] ) + "," + Convert . ToString ( rowmhdata [ "Measurement" ] ) + " )" ;
SqlCommand cmdInsertCtn = new SqlCommand ( cmdInsertCtnSQL , dbcon ) ;
SqlCommand cmdInsertCtn = new SqlCommand ( cmdInsertCtnSQL , dbcon ) ;
@ -199,7 +205,12 @@ namespace JobCreateFee
{
{
dbcon . Open ( ) ;
dbcon . Open ( ) ;
var cmdInsertCtnSQL = "insert into t_op_ctn (编号,代码,尺寸,箱型,数量,TEU,表现形式,箱号,封号,件数,包装,重量,尺码) values ("
var cmdDeleteCtnSQL = "delete from t_op_ctn where 编号='" + BSNO + "' " ;
SqlCommand cmdDeleteCtn = new SqlCommand ( cmdDeleteCtnSQL , dbcon ) ;
cmdDeleteCtn . ExecuteNonQuery ( ) ;
var cmdInsertCtnSQL = "insert into t_op_ctn (编号,代码,尺寸,箱型,数量,TEU,表现形式,箱号,封号,件数,包装,重量,尺码) values ("
+ "'" + BSNO + "','" + CtnCode . CTNCODE + "','" + CtnCode . CTNSIZE + "','" + CtnCode . CTNTYPE + "',1," + TEU . ToString ( ) + ",'" + CtnCode . CTNALL . Replace ( "'" , "''" ) + "','" + ContainerNumber + "','" + SealNumber + "','" + Convert . ToString ( rowmhdata [ "Quantity" ] ) + "','" + PackageType + "'," + Convert . ToString ( rowmhdata [ "Weight" ] ) + "," + Convert . ToString ( rowmhdata [ "Measurement" ] ) + " )" ;
+ "'" + BSNO + "','" + CtnCode . CTNCODE + "','" + CtnCode . CTNSIZE + "','" + CtnCode . CTNTYPE + "',1," + TEU . ToString ( ) + ",'" + CtnCode . CTNALL . Replace ( "'" , "''" ) + "','" + ContainerNumber + "','" + SealNumber + "','" + Convert . ToString ( rowmhdata [ "Quantity" ] ) + "','" + PackageType + "'," + Convert . ToString ( rowmhdata [ "Weight" ] ) + "," + Convert . ToString ( rowmhdata [ "Measurement" ] ) + " )" ;
SqlCommand cmdInsertCtn = new SqlCommand ( cmdInsertCtnSQL , dbcon ) ;
SqlCommand cmdInsertCtn = new SqlCommand ( cmdInsertCtnSQL , dbcon ) ;