You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1658 lines
129 KiB
C#

12 months ago
using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using DSWeb.DataAccess;
using DSWeb.Models;
using System.Data.SqlClient;
using System.Collections.Generic;
namespace DSWeb.EntityDA
{
public class TempOpSeaeEdiDA
{
private const string PARM_MODULE_GID = "@BSNO";
private const string PARM_SEAE_BSNO = "@bsno";
private const string SQL_SELECT_BY_GROUP_ID = "@DOCGID";
private const string SQL_SELECT_INFO = "select BSNO,MASTERNO,BSSTATUS,FEESTATUS,BSDATE,ACCDATE,MBLNO,HBLNO,CUSTNO,TRANSNO,CUSTOMERNAME,BLTYPE,SHIPPERID,CONSIGNEEID,NOTIFYPARTYID,SHIPPER,CONSIGNEE,NOTIFYPARTY,AGENTID,AGENT,YARD,VESSEL,VOYNO,ETD,CLOSINGDATE,ETA,PlACERECEIPT,PORTLOADID,PORTLOAD,PORTDISCHARGEID,PORTDISCHARGE,PLACEDELIVERYID,PLACEDELIVERY,DESTINATIONID,DESTINATION,NOBILL,ISSUETYPE,ISSUEDATE,ISSUEPLACE,BLFRT,PREPARDAT,PAYABLEAT,SERVICE,MARKS,CNTRSEALNO,NOPKGS,DESCRIPTION,GOODSNAME,GROSSWEIGHT,MEASUREMENT,PKGS,KINDPKGS,KGS,CBM,TOTALNO,CNTRNO,CNTR1,CNTR2,CNTR3,CNTR4,CNTR5,CNTR6,CNTR7,CNTR8,CNTR9,CNTR10,OTCNTR,TEU,CNTRTOTAL,INPUTBY,OP,CUSTSERVICE,LANE,SALE,CARRIER,FORWARDER,CUSTOMSER,TRUCKER,INVNO,CARGOID,DCLASS,DUNNO,REEFERF,TEMPID,TEMPSET,TEMPMAX,TEMPMIN,BSSOURCE,BSSOURCEDETAIL,CUSTOMSNUM,CONTRACTNO,ORDTYPE,ORDERNO,INSURANCEER,INSURANCENO,INAMOUT,ISVOU,VOUNO,REMARK,STATUS1,STATUS2,STATUS3,STATUS4,STATUS5,ISFUMIGATION,ISSTORAGE,ISLAND,ISCUSTOMS,ISINSPECTION,ISBOOKING,ISAGENT,ISHBLNO,SERVICE9,SERVICE10,DOC,PACKINGTYPE,WAREHOUSE,CLOSEDOCDATE,INTOPORTDATE,CORPID,SALEDEPT,MBLFRT,CREATETIME,STLNAME,STLDATE,ORDERTYPE,OPERATORCODE,OPERATOR,OPERATOREMAIL,OPERATORTEL,OPERATORFAX,FINANCIALSTAFFCODE,FINANCIALSTAFF,FINANCIALSTAFFEMAIL,FINANCIALSTAFFTEL,FINANCIALSTAFFFAX,GID,DOCGID,ISOK,CAUSE from temp_op_seae_edi where BSNO=@BSNO";
private const string SQL_SELECT_BY_GROUP = "select BSNO,MASTERNO,BSSTATUS,FEESTATUS,BSDATE,ACCDATE,MBLNO,HBLNO,CUSTNO,TRANSNO,CUSTOMERNAME,BLTYPE,SHIPPERID,CONSIGNEEID,NOTIFYPARTYID,SHIPPER,CONSIGNEE,NOTIFYPARTY,AGENTID,AGENT,YARD,VESSEL,VOYNO,ETD,CLOSINGDATE,ETA,PlACERECEIPT,PORTLOADID,PORTLOAD,PORTDISCHARGEID,PORTDISCHARGE,PLACEDELIVERYID,PLACEDELIVERY,DESTINATIONID,DESTINATION,NOBILL,ISSUETYPE,ISSUEDATE,ISSUEPLACE,BLFRT,PREPARDAT,PAYABLEAT,SERVICE,MARKS,CNTRSEALNO,NOPKGS,DESCRIPTION,GOODSNAME,GROSSWEIGHT,MEASUREMENT,PKGS,KINDPKGS,KGS,CBM,TOTALNO,CNTRNO,CNTR1,CNTR2,CNTR3,CNTR4,CNTR5,CNTR6,CNTR7,CNTR8,CNTR9,CNTR10,OTCNTR,TEU,CNTRTOTAL,INPUTBY,OP,CUSTSERVICE,LANE,SALE,CARRIER,FORWARDER,CUSTOMSER,TRUCKER,INVNO,CARGOID,DCLASS,DUNNO,REEFERF,TEMPID,TEMPSET,TEMPMAX,TEMPMIN,BSSOURCE,BSSOURCEDETAIL,CUSTOMSNUM,CONTRACTNO,ORDTYPE,ORDERNO,INSURANCEER,INSURANCENO,INAMOUT,ISVOU,VOUNO,REMARK,STATUS1,STATUS2,STATUS3,STATUS4,STATUS5,ISFUMIGATION,ISSTORAGE,ISLAND,ISCUSTOMS,ISINSPECTION,ISBOOKING,ISAGENT,ISHBLNO,SERVICE9,SERVICE10,DOC,PACKINGTYPE,WAREHOUSE,CLOSEDOCDATE,INTOPORTDATE,CORPID,SALEDEPT,MBLFRT,CREATETIME,STLNAME,STLDATE,ORDERTYPE,OPERATORCODE,OPERATOR,OPERATOREMAIL,OPERATORTEL,OPERATORFAX,FINANCIALSTAFFCODE,FINANCIALSTAFF,FINANCIALSTAFFEMAIL,FINANCIALSTAFFTEL,FINANCIALSTAFFFAX,GID,DOCGID,ISOK,CAUSE from temp_op_seae_edi where DOCGID=@DOCGID and ISOK='True'";
private const string SQL_DELETE_INFO = "DELETE FROM temp_op_seae_edi WHERE BSNO = @bsno";
private string strSql = "insert into temp_op_seae_edi(BSNO,MASTERNO,BSSTATUS,FEESTATUS,BSDATE,ACCDATE,MBLNO,HBLNO,CUSTNO,TRANSNO,CUSTOMERNAME,BLTYPE,SHIPPERID,"
+ " CONSIGNEEID,NOTIFYPARTYID,SHIPPER,CONSIGNEE,NOTIFYPARTY,AGENTID,AGENT,YARD,VESSEL,VOYNO,{0}{10}{4}PlACERECEIPT,PORTLOADID,PORTLOAD,PORTDISCHARGEID,PORTDISCHARGE,"
+ " PLACEDELIVERYID,PLACEDELIVERY,DESTINATIONID,DESTINATION,NOBILL,ISSUETYPE,{6}ISSUEPLACE,BLFRT,PREPARDAT,PAYABLEAT,SERVICE,MARKS,CNTRSEALNO,NOPKGS,DESCRIPTION,GOODSNAME,"
+ " GROSSWEIGHT,MEASUREMENT,PKGS,KINDPKGS,KGS,CBM,TOTALNO,CNTRNO,CNTR1,CNTR2,CNTR3,CNTR4,CNTR5,CNTR6,CNTR7,CNTR8,CNTR9,CNTR10,OTCNTR,TEU,CNTRTOTAL,INPUTBY,OP,CUSTSERVICE,LANE,SALE,"
+ " CARRIER,FORWARDER,CUSTOMSER,TRUCKER,INVNO,CARGOID,DCLASS,DUNNO,REEFERF,TEMPID,TEMPSET,TEMPMAX,TEMPMIN,BSSOURCE,BSSOURCEDETAIL,CUSTOMSNUM,CONTRACTNO,ORDTYPE,ORDERNO,INSURANCEER,"
+ " INSURANCENO,INAMOUT,ISVOU,VOUNO,REMARK,STATUS1,STATUS2,STATUS3,STATUS4,STATUS5,ISFUMIGATION,ISSTORAGE,ISLAND,"
+ " ISCUSTOMS,ISINSPECTION,ISBOOKING,ISAGENT,ISHBLNO,SERVICE9,SERVICE10,DOC,PACKINGTYPE,WAREHOUSE,{8}{2}CORPID,SALEDEPT,MBLFRT,{12}STLNAME,ORDERTYPE,CREATETIME,OPERATORCODE,OPERATOR,OPERATOREMAIL,OPERATORTEL,OPERATORFAX,FINANCIALSTAFFCODE,FINANCIALSTAFF,FINANCIALSTAFFEMAIL,FINANCIALSTAFFTEL,FINANCIALSTAFFFAX,GID,DOCGID,ISOK,CAUSE) "
+ " values(@BSNO,@MASTERNO,@BSSTATUS,@FEESTATUS,GETDATE(),@ACCDATE,@MBLNO,@HBLNO,@CUSTNO,@TRANSNO,@CUSTOMERNAME,@BLTYPE,@SHIPPERID,@CONSIGNEEID,@NOTIFYPARTYID,@SHIPPER,@CONSIGNEE,"
+ " @NOTIFYPARTY,@AGENTID,@AGENT,@YARD,@VESSEL,@VOYNO,{1}{11}{5}@PlACERECEIPT,@PORTLOADID,@PORTLOAD,@PORTDISCHARGEID,@PORTDISCHARGE,@PLACEDELIVERYID,@PLACEDELIVERY,"
+ " @DESTINATIONID,@DESTINATION,@NOBILL,@ISSUETYPE,{7}@ISSUEPLACE,@BLFRT,@PREPARDAT,@PAYABLEAT,@SERVICE,@MARKS,@CNTRSEALNO,@NOPKGS,@DESCRIPTION,@GOODSNAME,@GROSSWEIGHT,"
+ " @MEASUREMENT,@PKGS,@KINDPKGS,@KGS,@CBM,@TOTALNO,@CNTRNO,@CNTR1,@CNTR2,@CNTR3,@CNTR4,@CNTR5,@CNTR6,@CNTR7,@CNTR8,@CNTR9,@CNTR10,@OTCNTR,@TEU,@CNTRTOTAL,@INPUTBY,@OP,@CUSTSERVICE,"
+ " @LANE,@SALE,@CARRIER,@FORWARDER,@CUSTOMSER,@TRUCKER,@INVNO,@CARGOID,@DCLASS,@DUNNO,@REEFERF,@TEMPID,@TEMPSET,@TEMPMAX,@TEMPMIN,@BSSOURCE,@BSSOURCEDETAIL,@CUSTOMSNUM,@CONTRACTNO,"
+ " @ORDTYPE,@ORDERNO,@INSURANCEER,@INSURANCENO,@INAMOUT,@ISVOU,@VOUNO,@REMARK,@STATUS1,@STATUS2,@STATUS3,@STATUS4,@STATUS5,@ISFUMIGATION,@ISSTORAGE,@ISLAND,@ISCUSTOMS,@ISINSPECTION,@ISBOOKING,@ISAGENT,@ISHBLNO,@SERVICE9,@SERVICE10,@DOC,"
+ " @PACKINGTYPE,@WAREHOUSE,{9}{3}@CORPID,@SALEDEPT,@MBLFRT,{13}@STLNAME,@ORDERTYPE,GETDATE(),@OPERATORCODE,@OPERATOR,@OPERATOREMAIL,@OPERATORTEL,@OPERATORFAX,@FINANCIALSTAFFCODE,@FINANCIALSTAFF,@FINANCIALSTAFFEMAIL,@FINANCIALSTAFFTEL,@FINANCIALSTAFFFAX,@GID,@DOCGID,@ISOK,@CAUSE)";//@BSDATE
private string strSqlUpdateInfo = "update temp_op_seae_edi set MBLNO=@MBLNO,HBLNO=@HBLNO,CUSTNO=@CUSTNO,TRANSNO=@TRANSNO,CUSTOMERNAME=@CUSTOMERNAME,SHIPPERID=@SHIPPERID,CONSIGNEEID=@CONSIGNEEID,NOTIFYPARTYID=@NOTIFYPARTYID,SHIPPER=@SHIPPER,CONSIGNEE=@CONSIGNEE,NOTIFYPARTY=@NOTIFYPARTY,AGENTID=@AGENTID,AGENT=@AGENT,YARD=@YARD,VESSEL=@VESSEL,VOYNO=@VOYNO,{2}{3}{4}{5}{0}{1}PlACERECEIPT=@PlACERECEIPT,PORTLOADID=@PORTLOADID,PORTLOAD=@PORTLOAD,PORTDISCHARGEID=@PORTDISCHARGEID,PORTDISCHARGE=@PORTDISCHARGE,PLACEDELIVERYID=@PLACEDELIVERYID,PLACEDELIVERY=@PLACEDELIVERY,DESTINATIONID=@DESTINATIONID,DESTINATION=@DESTINATION,NOBILL=@NOBILL,ISSUETYPE=@ISSUETYPE,{6}{7}ISSUEPLACE=@ISSUEPLACE,BLFRT=@BLFRT,PREPARDAT=@PREPARDAT,PAYABLEAT=@PAYABLEAT,SERVICE=@SERVICE,MARKS=@MARKS,CNTRSEALNO=@CNTRSEALNO,NOPKGS=@NOPKGS,DESCRIPTION=@DESCRIPTION,GOODSNAME=@GOODSNAME,GROSSWEIGHT=@GROSSWEIGHT,MEASUREMENT=@MEASUREMENT,PKGS=@PKGS,KINDPKGS=@KINDPKGS,KGS=@KGS,CBM=@CBM,TOTALNO=@TOTALNO,CNTRNO=@CNTRNO,CNTR1=@CNTR1,CNTR2=@CNTR2,CNTR3=@CNTR3,CNTR4=@CNTR4,CNTR5=@CNTR5,CNTR6=@CNTR6,CNTR7=@CNTR7,CNTR8=@CNTR8,CNTR9=@CNTR9,CNTR10=@CNTR10,OTCNTR=@OTCNTR,TEU=@TEU,CNTRTOTAL=@CNTRTOTAL,INPUTBY=@INPUTBY,OP=@OP,CUSTSERVICE=@CUSTSERVICE,LANE=@LANE,SALE=@SALE,CARRIER=@CARRIER,FORWARDER=@FORWARDER,CUSTOMSER=@CUSTOMSER,TRUCKER=@TRUCKER,INVNO=@INVNO,CARGOID=@CARGOID,DCLASS=@DCLASS,DUNNO=@DUNNO,REEFERF=@REEFERF,TEMPID=@TEMPID,TEMPSET=@TEMPSET,TEMPMAX=@TEMPMAX,TEMPMIN=@TEMPMIN,BSSOURCE=@BSSOURCE,BSSOURCEDETAIL=@BSSOURCEDETAIL,CUSTOMSNUM=@CUSTOMSNUM,CONTRACTNO=@CONTRACTNO,ORDTYPE=@ORDTYPE,ORDERNO=@ORDERNO,INSURANCEER=@INSURANCEER,INSURANCENO=@INSURANCENO,INAMOUT=@INAMOUT,ISVOU=@ISVOU,VOUNO=@VOUNO,REMARK=@REMARK,STATUS1=@STATUS1,STATUS2=@STATUS2,STATUS3=@STATUS3,STATUS4=@STATUS4,STATUS5=@STATUS5,ISFUMIGATION=@ISFUMIGATION,ISSTORAGE=@ISSTORAGE,ISLAND=@ISLAND,ISCUSTOMS=@ISCUSTOMS,ISINSPECTION=@ISINSPECTION,ISBOOKING=@ISBOOKING,ISAGENT=@ISAGENT,ISHBLNO=@ISHBLNO,SERVICE9=@SERVICE9,SERVICE10=@SERVICE10,DOC=@DOC,PACKINGTYPE=@PACKINGTYPE,WAREHOUSE=@WAREHOUSE,{8}{9}{10}{11}CORPID=@CORPID,SALEDEPT=@SALEDEPT,MBLFRT=@MBLFRT,{12}{13}STLNAME=@STLNAME,OPERATORCODE=@OPERATORCODE,OPERATOR=@OPERATOR,OPERATOREMAIL=@OPERATOREMAIL,OPERATORTEL=@OPERATORTEL,OPERATORFAX=@OPERATORFAX,FINANCIALSTAFFCODE=@FINANCIALSTAFFCODE,FINANCIALSTAFF=@FINANCIALSTAFF,FINANCIALSTAFFEMAIL=@FINANCIALSTAFFEMAIL,FINANCIALSTAFFTEL=@FINANCIALSTAFFTEL,FINANCIALSTAFFFAX=@FINANCIALSTAFFFAX,BSNO=@BSNO,ISOK=@ISOK,CAUSE=@CAUSE where GID=@GID and DOCGID=@DOCGID";
private string strSql_CF = "insert into temp_op_seae_edi(BSNO,MASTERNO,BSSTATUS,FEESTATUS,BSDATE,ACCDATE,MBLNO,HBLNO,CUSTNO,TRANSNO,CUSTOMERNAME,BLTYPE,SHIPPERID,"
+ " CONSIGNEEID,NOTIFYPARTYID,SHIPPER,CONSIGNEE,NOTIFYPARTY,AGENTID,AGENT,YARD,VESSEL,VOYNO,{0}{6}{2}PlACERECEIPT,PORTLOADID,PORTLOAD,PORTDISCHARGEID,PORTDISCHARGE,"
+ " PLACEDELIVERYID,PLACEDELIVERY,DESTINATIONID,DESTINATION,NOBILL,ISSUETYPE,{4}ISSUEPLACE,BLFRT,PREPARDAT,PAYABLEAT,SERVICE,MARKS,CNTRSEALNO,NOPKGS,DESCRIPTION,GOODSNAME,"
+ " GROSSWEIGHT,MEASUREMENT,PKGS,KINDPKGS,KGS,CBM,TOTALNO,GID,DOCGID,ISOK,CAUSE) "
+ " values(@BSNO,@MASTERNO,@BSSTATUS,@FEESTATUS,GETDATE(),@ACCDATE,@MBLNO,@HBLNO,@CUSTNO,@TRANSNO,@CUSTOMERNAME,@BLTYPE,@SHIPPERID,@CONSIGNEEID,@NOTIFYPARTYID,@SHIPPER,@CONSIGNEE,"
+ " @NOTIFYPARTY,@AGENTID,@AGENT,@YARD,@VESSEL,@VOYNO,{1}{7}{3}@PlACERECEIPT,@PORTLOADID,@PORTLOAD,@PORTDISCHARGEID,@PORTDISCHARGE,@PLACEDELIVERYID,@PLACEDELIVERY,"
+ " @DESTINATIONID,@DESTINATION,@NOBILL,@ISSUETYPE,{5}@ISSUEPLACE,@BLFRT,@PREPARDAT,@PAYABLEAT,@SERVICE,@MARKS,@CNTRSEALNO,@NOPKGS,@DESCRIPTION,@GOODSNAME,@GROSSWEIGHT,"
+ " @MEASUREMENT,@PKGS,@KINDPKGS,@KGS,@CBM,@TOTALNO,@GID,@DOCGID,@ISOK,@CAUSE)";//@BSDATE
private string strSqlUpdateInfo_CF = "update temp_op_seae_edi set CNTRNO=@CNTRNO,CNTR1=@CNTR1,CNTR2=@CNTR2,CNTR3=@CNTR3,CNTR4=@CNTR4,CNTR5=@CNTR5,CNTR6=@CNTR6,CNTR7=@CNTR7,CNTR8=@CNTR8,CNTR9=@CNTR9,CNTR10=@CNTR10,OTCNTR=@OTCNTR,TEU=@TEU,CNTRTOTAL=@CNTRTOTAL,INPUTBY=@INPUTBY,OP=@OP,CUSTSERVICE=@CUSTSERVICE,LANE=@LANE,SALE=@SALE,"
+ " CARRIER=@CARRIER,FORWARDER=@FORWARDER,CUSTOMSER=@CUSTOMSER,TRUCKER=@TRUCKER,INVNO=@INVNO,CARGOID=@CARGOID,DCLASS=@DCLASS,DUNNO=@DUNNO,REEFERF=@REEFERF,TEMPID=@TEMPID,TEMPSET=@TEMPSET,TEMPMAX=@TEMPMAX,TEMPMIN=@TEMPMIN,BSSOURCE=@BSSOURCE,BSSOURCEDETAIL=@BSSOURCEDETAIL,CUSTOMSNUM=@CUSTOMSNUM,CONTRACTNO=@CONTRACTNO,ORDTYPE=@ORDTYPE,ORDERNO=@ORDERNO,INSURANCEER=@INSURANCEER,"
+ " INSURANCENO=@INSURANCENO,INAMOUT=@INAMOUT,ISVOU=@ISVOU,VOUNO=@VOUNO,REMARK=@REMARK,STATUS1=@STATUS1,STATUS2=@STATUS2,STATUS3=@STATUS3,STATUS4=@STATUS4,STATUS5=@STATUS5,ISFUMIGATION=@ISFUMIGATION,ISSTORAGE=@ISSTORAGE,ISLAND=@ISLAND,"
+ " ISCUSTOMS=@ISCUSTOMS,ISINSPECTION=@ISINSPECTION,ISBOOKING=@ISBOOKING,ISAGENT=@ISAGENT,ISHBLNO=@ISHBLNO,SERVICE9=@SERVICE9,SERVICE10=@SERVICE10,DOC=@DOC,PACKINGTYPE=@PACKINGTYPE,WAREHOUSE=@WAREHOUSE,{2}{3}{0}{1}CORPID=@CORPID,SALEDEPT=@SALEDEPT,MBLFRT=@MBLFRT,{4}{5}5STLNAME=@STLNAME,ORDERTYPE=@ORDERTYPE,CREATETIME=@CREATETIME,OPERATORCODE=@OPERATORCODE,OPERATOR=@OPERATOR,OPERATOREMAIL=@OPERATOREMAIL,OPERATORTEL=@OPERATORTEL,OPERATORFAX=@OPERATORFAX,FINANCIALSTAFFCODE=@FINANCIALSTAFFCODE,FINANCIALSTAFF=@FINANCIALSTAFF,FINANCIALSTAFFEMAIL=@FINANCIALSTAFFEMAIL,FINANCIALSTAFFTEL=@FINANCIALSTAFFTEL,FINANCIALSTAFFFAX=@FINANCIALSTAFFFAX where GID=@GID and DOCGID=@DOCGID";//@BSDATE
public TempOpSeaeEdiDA()
{
}
#region 根据业务更改单 ParentID值获取实体类组
/// <summary>
/// 根据临时委托 ParentID值获取实体类组
/// </summary>
/// <param name="tempParentID">ParentID</param>
/// <returns>返回IList TempOpSeaeEdiEntity实体类组</returns>
public IList<TempOpSeaeEdiEntity> GetByGroupID(string tempParentID)
{
IList<TempOpSeaeEdiEntity> TempOpSeaeEdiEntities = new List<TempOpSeaeEdiEntity>();
SqlParameter parm = new SqlParameter(SQL_SELECT_BY_GROUP_ID, SqlDbType.VarChar, 100);
parm.Value = tempParentID;
using (SqlDataReader sqlRead = SqlHelper.ExecuteReader(SqlHelper.ConnectionStringLocalTransaction, CommandType.Text, SQL_SELECT_BY_GROUP, parm))
{
try
{
while (sqlRead.Read())
{
TempOpSeaeEdiEntity TempOpSeaeEdiEntity = new TempOpSeaeEdiEntity();
if (!sqlRead.IsDBNull(0)) { TempOpSeaeEdiEntity.BSNO = sqlRead.GetString(0); } //业务编号
if (!sqlRead.IsDBNull(1)) { TempOpSeaeEdiEntity.MASTERNO = sqlRead.GetString(1); } //主编号
if (!sqlRead.IsDBNull(2)) { TempOpSeaeEdiEntity.BSSTATUS = sqlRead.GetBoolean(2); } //业务状态
if (!sqlRead.IsDBNull(3)) { TempOpSeaeEdiEntity.FEESTATUS = sqlRead.GetBoolean(3); } //费用状态
if (!sqlRead.IsDBNull(4)) { TempOpSeaeEdiEntity.BSDATE = sqlRead.GetDateTime(4); } //录入日期
if (!sqlRead.IsDBNull(5)) { TempOpSeaeEdiEntity.ACCDATE = sqlRead.GetString(5); } //会计期间
if (!sqlRead.IsDBNull(6)) { TempOpSeaeEdiEntity.MBLNO = sqlRead.GetString(6); } //主提单号
if (!sqlRead.IsDBNull(7)) { TempOpSeaeEdiEntity.HBLNO = sqlRead.GetString(7); } //分提单号
if (!sqlRead.IsDBNull(8)) { TempOpSeaeEdiEntity.CUSTNO = sqlRead.GetString(8); } //委托编号
if (!sqlRead.IsDBNull(9)) { TempOpSeaeEdiEntity.TRANSNO = sqlRead.GetString(9); } //运单号
if (!sqlRead.IsDBNull(10)) { TempOpSeaeEdiEntity.CUSTOMERNAME = sqlRead.GetString(10); } //委托单位
if (!sqlRead.IsDBNull(11)) { TempOpSeaeEdiEntity.BLTYPE = sqlRead.GetString(11); } //装运方式
if (!sqlRead.IsDBNull(12)) { TempOpSeaeEdiEntity.SHIPPERID = sqlRead.GetString(12); } //发货人
if (!sqlRead.IsDBNull(13)) { TempOpSeaeEdiEntity.CONSIGNEEID = sqlRead.GetString(13); } //收货人
if (!sqlRead.IsDBNull(14)) { TempOpSeaeEdiEntity.NOTIFYPARTYID = sqlRead.GetString(14); } //通知人
if (!sqlRead.IsDBNull(15)) { TempOpSeaeEdiEntity.SHIPPER = sqlRead.GetString(15); } //发货人内容
if (!sqlRead.IsDBNull(16)) { TempOpSeaeEdiEntity.CONSIGNEE = sqlRead.GetString(16); } //收货人内容
if (!sqlRead.IsDBNull(17)) { TempOpSeaeEdiEntity.NOTIFYPARTY = sqlRead.GetString(17); } //通知人内容
if (!sqlRead.IsDBNull(18)) { TempOpSeaeEdiEntity.AGENTID = sqlRead.GetString(18); } //国外代理
if (!sqlRead.IsDBNull(19)) { TempOpSeaeEdiEntity.AGENT = sqlRead.GetString(19); } //国外代理内容
if (!sqlRead.IsDBNull(20)) { TempOpSeaeEdiEntity.YARD = sqlRead.GetString(20); } //场站
if (!sqlRead.IsDBNull(21)) { TempOpSeaeEdiEntity.VESSEL = sqlRead.GetString(21); } //船名
if (!sqlRead.IsDBNull(22)) { TempOpSeaeEdiEntity.VOYNO = sqlRead.GetString(22); } //航次
if (!sqlRead.IsDBNull(23)) { TempOpSeaeEdiEntity.ETD = sqlRead.GetDateTime(23); } //开船日期
if (!sqlRead.IsDBNull(24)) { TempOpSeaeEdiEntity.CLOSINGDATE = sqlRead.GetDateTime(24); } //截港日期
if (!sqlRead.IsDBNull(25)) { TempOpSeaeEdiEntity.ETA = sqlRead.GetDateTime(25); } //预抵日期
if (!sqlRead.IsDBNull(26)) { TempOpSeaeEdiEntity.PlACERECEIPT = sqlRead.GetString(26); } //收货地
if (!sqlRead.IsDBNull(27)) { TempOpSeaeEdiEntity.PORTLOADID = sqlRead.GetString(27); } //装货港代码
if (!sqlRead.IsDBNull(28)) { TempOpSeaeEdiEntity.PORTLOAD = sqlRead.GetString(28); } //装货港
if (!sqlRead.IsDBNull(29)) { TempOpSeaeEdiEntity.PORTDISCHARGEID = sqlRead.GetString(29); } //卸货港代码
if (!sqlRead.IsDBNull(30)) { TempOpSeaeEdiEntity.PORTDISCHARGE = sqlRead.GetString(30); } //卸货港
if (!sqlRead.IsDBNull(31)) { TempOpSeaeEdiEntity.PLACEDELIVERYID = sqlRead.GetString(31); } //交货地代码
if (!sqlRead.IsDBNull(32)) { TempOpSeaeEdiEntity.PLACEDELIVERY = sqlRead.GetString(32); } //交货地
if (!sqlRead.IsDBNull(33)) { TempOpSeaeEdiEntity.DESTINATIONID = sqlRead.GetString(33); } //目的地代码
if (!sqlRead.IsDBNull(34)) { TempOpSeaeEdiEntity.DESTINATION = sqlRead.GetString(34); } //目的地
if (!sqlRead.IsDBNull(35)) { TempOpSeaeEdiEntity.NOBILL = sqlRead.GetString(35); } //提单份数
if (!sqlRead.IsDBNull(36)) { TempOpSeaeEdiEntity.ISSUETYPE = sqlRead.GetString(36); } //签单方式
if (!sqlRead.IsDBNull(37)) { TempOpSeaeEdiEntity.ISSUEDATE = sqlRead.GetDateTime(37); } //签单日期
if (!sqlRead.IsDBNull(38)) { TempOpSeaeEdiEntity.ISSUEPLACE = sqlRead.GetString(38); } //签单地点
if (!sqlRead.IsDBNull(39)) { TempOpSeaeEdiEntity.BLFRT = sqlRead.GetString(39); } //付费方式
if (!sqlRead.IsDBNull(40)) { TempOpSeaeEdiEntity.PREPARDAT = sqlRead.GetString(40); } //预付地点
if (!sqlRead.IsDBNull(41)) { TempOpSeaeEdiEntity.PAYABLEAT = sqlRead.GetString(41); } //到付地点
if (!sqlRead.IsDBNull(42)) { TempOpSeaeEdiEntity.SERVICE = sqlRead.GetString(42); } //运输条款
if (!sqlRead.IsDBNull(43)) { TempOpSeaeEdiEntity.MARKS = sqlRead.GetString(43); } //唛头
if (!sqlRead.IsDBNull(44)) { TempOpSeaeEdiEntity.CNTRSEALNO = sqlRead.GetString(44); } //箱号封号
if (!sqlRead.IsDBNull(45)) { TempOpSeaeEdiEntity.NOPKGS = sqlRead.GetString(45); } //件数包装
if (!sqlRead.IsDBNull(46)) { TempOpSeaeEdiEntity.DESCRIPTION = sqlRead.GetString(46); } //货物描述
if (!sqlRead.IsDBNull(47)) { TempOpSeaeEdiEntity.GOODSNAME = sqlRead.GetString(47); } //品名
if (!sqlRead.IsDBNull(48)) { TempOpSeaeEdiEntity.GROSSWEIGHT = sqlRead.GetString(48); } //货物毛重
if (!sqlRead.IsDBNull(49)) { TempOpSeaeEdiEntity.MEASUREMENT = sqlRead.GetString(49); } //货物尺码
if (!sqlRead.IsDBNull(50)) { TempOpSeaeEdiEntity.PKGS = sqlRead.GetInt32(50); } //件数
if (!sqlRead.IsDBNull(51)) { TempOpSeaeEdiEntity.KINDPKGS = sqlRead.GetString(51); } //包装
if (!sqlRead.IsDBNull(52)) { TempOpSeaeEdiEntity.KGS = sqlRead.GetDecimal(52); } //毛重
if (!sqlRead.IsDBNull(53)) { TempOpSeaeEdiEntity.CBM = sqlRead.GetDecimal(53); } //尺码
if (!sqlRead.IsDBNull(54)) { TempOpSeaeEdiEntity.TOTALNO = sqlRead.GetString(54); } //件数大写
if (!sqlRead.IsDBNull(55)) { TempOpSeaeEdiEntity.CNTRNO = sqlRead.GetString(55); } //集装箱大写
if (!sqlRead.IsDBNull(56)) { TempOpSeaeEdiEntity.CNTR1 = sqlRead.GetInt32(56); } //箱型1
if (!sqlRead.IsDBNull(57)) { TempOpSeaeEdiEntity.CNTR2 = sqlRead.GetInt32(57); } //箱型2
if (!sqlRead.IsDBNull(58)) { TempOpSeaeEdiEntity.CNTR3 = sqlRead.GetInt32(58); } //箱型3
if (!sqlRead.IsDBNull(59)) { TempOpSeaeEdiEntity.CNTR4 = sqlRead.GetInt32(59); } //箱型4
if (!sqlRead.IsDBNull(60)) { TempOpSeaeEdiEntity.CNTR5 = sqlRead.GetInt32(60); } //箱型5
if (!sqlRead.IsDBNull(61)) { TempOpSeaeEdiEntity.CNTR6 = sqlRead.GetInt32(61); } //箱型6
if (!sqlRead.IsDBNull(62)) { TempOpSeaeEdiEntity.CNTR7 = sqlRead.GetInt32(62); } //箱型7
if (!sqlRead.IsDBNull(63)) { TempOpSeaeEdiEntity.CNTR8 = sqlRead.GetInt32(63); } //箱型8
if (!sqlRead.IsDBNull(64)) { TempOpSeaeEdiEntity.CNTR9 = sqlRead.GetInt32(64); } //箱型9
if (!sqlRead.IsDBNull(65)) { TempOpSeaeEdiEntity.CNTR10 = sqlRead.GetInt32(65); } //箱型10
if (!sqlRead.IsDBNull(66)) { TempOpSeaeEdiEntity.OTCNTR = sqlRead.GetInt32(66); } //其他箱型
if (!sqlRead.IsDBNull(67)) { TempOpSeaeEdiEntity.TEU = sqlRead.GetInt32(67); } //箱TEU
if (!sqlRead.IsDBNull(68)) { TempOpSeaeEdiEntity.CNTRTOTAL = sqlRead.GetString(68); } //集装箱
if (!sqlRead.IsDBNull(69)) { TempOpSeaeEdiEntity.INPUTBY = sqlRead.GetString(69); } //录入人
if (!sqlRead.IsDBNull(70)) { TempOpSeaeEdiEntity.OP = sqlRead.GetString(70); } //操作员
if (!sqlRead.IsDBNull(71)) { TempOpSeaeEdiEntity.CUSTSERVICE = sqlRead.GetString(71); } //客服
if (!sqlRead.IsDBNull(72)) { TempOpSeaeEdiEntity.LANE = sqlRead.GetString(72); } //航线
if (!sqlRead.IsDBNull(73)) { TempOpSeaeEdiEntity.SALE = sqlRead.GetString(73); } //揽货人
if (!sqlRead.IsDBNull(74)) { TempOpSeaeEdiEntity.CARRIER = sqlRead.GetString(74); } //船公司
if (!sqlRead.IsDBNull(75)) { TempOpSeaeEdiEntity.FORWARDER = sqlRead.GetString(75); } //订舱代理
if (!sqlRead.IsDBNull(76)) { TempOpSeaeEdiEntity.CUSTOMSER = sqlRead.GetString(76); } //报关行
if (!sqlRead.IsDBNull(77)) { TempOpSeaeEdiEntity.TRUCKER = sqlRead.GetString(77); } //承运车队
if (!sqlRead.IsDBNull(78)) { TempOpSeaeEdiEntity.INVNO = sqlRead.GetString(78); } //发票号
if (!sqlRead.IsDBNull(79)) { TempOpSeaeEdiEntity.CARGOID = sqlRead.GetString(79); } //货物标识
if (!sqlRead.IsDBNull(80)) { TempOpSeaeEdiEntity.DCLASS = sqlRead.GetString(80); } //危险品分类/等级
if (!sqlRead.IsDBNull(81)) { TempOpSeaeEdiEntity.DUNNO = sqlRead.GetString(81); } //危险品编号
if (!sqlRead.IsDBNull(82)) { TempOpSeaeEdiEntity.REEFERF = sqlRead.GetString(82); } //冷藏通风量
if (!sqlRead.IsDBNull(83)) { TempOpSeaeEdiEntity.TEMPID = sqlRead.GetString(83); } //温度单位
if (!sqlRead.IsDBNull(84)) { TempOpSeaeEdiEntity.TEMPSET = sqlRead.GetString(84); } //设置温度
if (!sqlRead.IsDBNull(85)) { TempOpSeaeEdiEntity.TEMPMAX = sqlRead.GetString(85); } //最高温度
if (!sqlRead.IsDBNull(86)) { TempOpSeaeEdiEntity.TEMPMIN = sqlRead.GetString(86); } //最低温度
if (!sqlRead.IsDBNull(87)) { TempOpSeaeEdiEntity.BSSOURCE = sqlRead.GetString(87); } //业务来源
if (!sqlRead.IsDBNull(88)) { TempOpSeaeEdiEntity.BSSOURCEDETAIL = sqlRead.GetString(88); } //来源明细
if (!sqlRead.IsDBNull(89)) { TempOpSeaeEdiEntity.CUSTOMSNUM = sqlRead.GetInt16(89); } //报关票数
if (!sqlRead.IsDBNull(90)) { TempOpSeaeEdiEntity.CONTRACTNO = sqlRead.GetString(90); } //运费协议号
if (!sqlRead.IsDBNull(91)) { TempOpSeaeEdiEntity.ORDTYPE = sqlRead.GetString(91); } //订舱类型
if (!sqlRead.IsDBNull(92)) { TempOpSeaeEdiEntity.ORDERNO = sqlRead.GetString(92); } //订舱编号
if (!sqlRead.IsDBNull(93)) { TempOpSeaeEdiEntity.INSURANCEER = sqlRead.GetString(93); } //保险人
if (!sqlRead.IsDBNull(94)) { TempOpSeaeEdiEntity.INSURANCENO = sqlRead.GetString(94); } //保险单号
if (!sqlRead.IsDBNull(95)) { TempOpSeaeEdiEntity.INAMOUT = sqlRead.GetDecimal(95); } //保险金额
if (!sqlRead.IsDBNull(96)) { TempOpSeaeEdiEntity.ISVOU = sqlRead.GetBoolean(96); } //是否生成凭证
if (!sqlRead.IsDBNull(97)) { TempOpSeaeEdiEntity.VOUNO = sqlRead.GetString(97); } //凭证号
if (!sqlRead.IsDBNull(98)) { TempOpSeaeEdiEntity.REMARK = sqlRead.GetString(98); } //备注
if (!sqlRead.IsDBNull(99)) { TempOpSeaeEdiEntity.STATUS1 = sqlRead.GetBoolean(99); } //状态1
if (!sqlRead.IsDBNull(100)) { TempOpSeaeEdiEntity.STATUS2 = sqlRead.GetBoolean(100); } //状态2
if (!sqlRead.IsDBNull(101)) { TempOpSeaeEdiEntity.STATUS3 = sqlRead.GetBoolean(101); } //状态3
if (!sqlRead.IsDBNull(102)) { TempOpSeaeEdiEntity.STATUS4 = sqlRead.GetBoolean(102); } //状态4
if (!sqlRead.IsDBNull(103)) { TempOpSeaeEdiEntity.STATUS5 = sqlRead.GetBoolean(103); } //状态5
if (!sqlRead.IsDBNull(104)) { TempOpSeaeEdiEntity.ISFUMIGATION = sqlRead.GetBoolean(104); } //熏蒸
if (!sqlRead.IsDBNull(105)) { TempOpSeaeEdiEntity.ISSTORAGE = sqlRead.GetBoolean(105); } //仓储
if (!sqlRead.IsDBNull(106)) { TempOpSeaeEdiEntity.ISLAND = sqlRead.GetBoolean(106); } //陆运
if (!sqlRead.IsDBNull(107)) { TempOpSeaeEdiEntity.ISCUSTOMS = sqlRead.GetBoolean(107); } //报关
if (!sqlRead.IsDBNull(108)) { TempOpSeaeEdiEntity.ISINSPECTION = sqlRead.GetBoolean(108); } //报检
if (!sqlRead.IsDBNull(109)) { TempOpSeaeEdiEntity.ISBOOKING = sqlRead.GetBoolean(109); } //订舱
if (!sqlRead.IsDBNull(110)) { TempOpSeaeEdiEntity.ISAGENT = sqlRead.GetBoolean(110); } //使用代理
if (!sqlRead.IsDBNull(111)) { TempOpSeaeEdiEntity.ISHBLNO = sqlRead.GetBoolean(111); } //分单签单
if (!sqlRead.IsDBNull(112)) { TempOpSeaeEdiEntity.SERVICE9 = sqlRead.GetBoolean(112); } //服务项目9
if (!sqlRead.IsDBNull(113)) { TempOpSeaeEdiEntity.SERVICE10 = sqlRead.GetBoolean(113); } //服务项目10
if (!sqlRead.IsDBNull(114)) { TempOpSeaeEdiEntity.DOC = sqlRead.GetString(114); } //单证
if (!sqlRead.IsDBNull(115)) { TempOpSeaeEdiEntity.PACKINGTYPE = sqlRead.GetString(115); } //装箱类型
if (!sqlRead.IsDBNull(116)) { TempOpSeaeEdiEntity.WAREHOUSE = sqlRead.GetString(116); } //仓库
if (!sqlRead.IsDBNull(117)) { TempOpSeaeEdiEntity.CLOSEDOCDATE = sqlRead.GetDateTime(117); } //截单日期
if (!sqlRead.IsDBNull(118)) { TempOpSeaeEdiEntity.INTOPORTDATE = sqlRead.GetDateTime(118); } //集港日期
if (!sqlRead.IsDBNull(119)) { TempOpSeaeEdiEntity.CORPID = sqlRead.GetString(119); } //分公司代码
if (!sqlRead.IsDBNull(120)) { TempOpSeaeEdiEntity.SALEDEPT = sqlRead.GetString(120); } //所属业务部门
if (!sqlRead.IsDBNull(121)) { TempOpSeaeEdiEntity.MBLFRT = sqlRead.GetString(121); } //MBL付费方式
if (!sqlRead.IsDBNull(122)) { TempOpSeaeEdiEntity.CREATETIME = sqlRead.GetDateTime(122); } //创建日期
if (!sqlRead.IsDBNull(123)) { TempOpSeaeEdiEntity.STLNAME = sqlRead.GetString(123); } //结算方式
if (!sqlRead.IsDBNull(124)) { TempOpSeaeEdiEntity.STLDATE = sqlRead.GetDateTime(124); } //结算日期
if (!sqlRead.IsDBNull(125)) { TempOpSeaeEdiEntity.ORDERTYPE = sqlRead.GetString(125); } //委托方式
if (!sqlRead.IsDBNull(126)) { TempOpSeaeEdiEntity.OPERATORCODE = sqlRead.GetString(126); } //客户操作代码
if (!sqlRead.IsDBNull(127)) { TempOpSeaeEdiEntity.OPERATOR = sqlRead.GetString(127); } //客户操作名称
if (!sqlRead.IsDBNull(128)) { TempOpSeaeEdiEntity.OPERATOREMAIL = sqlRead.GetString(128); } //操作电子邮箱
if (!sqlRead.IsDBNull(129)) { TempOpSeaeEdiEntity.OPERATORTEL = sqlRead.GetString(129); } //操作电话
if (!sqlRead.IsDBNull(130)) { TempOpSeaeEdiEntity.OPERATORFAX = sqlRead.GetString(130); } //操作传真
if (!sqlRead.IsDBNull(131)) { TempOpSeaeEdiEntity.FINANCIALSTAFFCODE = sqlRead.GetString(131); } //客户财务代码
if (!sqlRead.IsDBNull(132)) { TempOpSeaeEdiEntity.FINANCIALSTAFF = sqlRead.GetString(132); } //客户财务名称
if (!sqlRead.IsDBNull(133)) { TempOpSeaeEdiEntity.FINANCIALSTAFFEMAIL = sqlRead.GetString(133); } //财务电子邮箱
if (!sqlRead.IsDBNull(134)) { TempOpSeaeEdiEntity.FINANCIALSTAFFTEL = sqlRead.GetString(134); } //财务电话
if (!sqlRead.IsDBNull(135)) { TempOpSeaeEdiEntity.FINANCIALSTAFFFAX = sqlRead.GetString(135); } //财务传真
if (!sqlRead.IsDBNull(136)) { TempOpSeaeEdiEntity.GID = sqlRead.GetString(136); } //编号
if (!sqlRead.IsDBNull(137)) { TempOpSeaeEdiEntity.DOCGID = sqlRead.GetString(137); } //Edi文件编码
if (!sqlRead.IsDBNull(138)) { TempOpSeaeEdiEntity.ISOK = sqlRead.GetBoolean(138); } //是否导入成功
if (!sqlRead.IsDBNull(139)) { TempOpSeaeEdiEntity.CAUSE = sqlRead.GetString(139); } //失败的原因
TempOpSeaeEdiEntities.Add(TempOpSeaeEdiEntity);
}
}
catch (Exception execError)
{
throw execError;
}
}
return TempOpSeaeEdiEntities;
}
#endregion
#region 根据GID获取信息
/// <summary>
/// 根据GID获取信息
/// </summary>
/// <param name="strRoleGID"></param>
/// <returns></returns>
public TempOpSeaeEdiEntity GetID(string strGID)
{
//初始化返回变量
TempOpSeaeEdiEntity TempOpSeaeEdiEntity = null;
//初始化参数并赋值
SqlParameter parm = new SqlParameter(PARM_MODULE_GID, SqlDbType.VarChar, 100);
parm.Value = strGID;
using (SqlDataReader sqlRead = SqlHelper.ExecuteReader(SqlHelper.ConnectionStringLocalTransaction, CommandType.Text, SQL_SELECT_INFO, parm))
{
try
{
TempOpSeaeEdiEntity = new TempOpSeaeEdiEntity();
//读取字段值
while (sqlRead.Read())
{
if (!sqlRead.IsDBNull(0)) { TempOpSeaeEdiEntity.BSNO = sqlRead.GetString(0); } //业务编号
if (!sqlRead.IsDBNull(1)) { TempOpSeaeEdiEntity.MASTERNO = sqlRead.GetString(1); } //主编号
if (!sqlRead.IsDBNull(2)) { TempOpSeaeEdiEntity.BSSTATUS = sqlRead.GetBoolean(2); } //业务状态
if (!sqlRead.IsDBNull(3)) { TempOpSeaeEdiEntity.FEESTATUS = sqlRead.GetBoolean(3); } //费用状态
if (!sqlRead.IsDBNull(4)) { TempOpSeaeEdiEntity.BSDATE = sqlRead.GetDateTime(4); } //录入日期
if (!sqlRead.IsDBNull(5)) { TempOpSeaeEdiEntity.ACCDATE = sqlRead.GetString(5); } //会计期间
if (!sqlRead.IsDBNull(6)) { TempOpSeaeEdiEntity.MBLNO = sqlRead.GetString(6); } //主提单号
if (!sqlRead.IsDBNull(7)) { TempOpSeaeEdiEntity.HBLNO = sqlRead.GetString(7); } //分提单号
if (!sqlRead.IsDBNull(8)) { TempOpSeaeEdiEntity.CUSTNO = sqlRead.GetString(8); } //委托编号
if (!sqlRead.IsDBNull(9)) { TempOpSeaeEdiEntity.TRANSNO = sqlRead.GetString(9); } //运单号
if (!sqlRead.IsDBNull(10)) { TempOpSeaeEdiEntity.CUSTOMERNAME = sqlRead.GetString(10); } //委托单位
if (!sqlRead.IsDBNull(11)) { TempOpSeaeEdiEntity.BLTYPE = sqlRead.GetString(11); } //装运方式
if (!sqlRead.IsDBNull(12)) { TempOpSeaeEdiEntity.SHIPPERID = sqlRead.GetString(12); } //发货人
if (!sqlRead.IsDBNull(13)) { TempOpSeaeEdiEntity.CONSIGNEEID = sqlRead.GetString(13); } //收货人
if (!sqlRead.IsDBNull(14)) { TempOpSeaeEdiEntity.NOTIFYPARTYID = sqlRead.GetString(14); } //通知人
if (!sqlRead.IsDBNull(15)) { TempOpSeaeEdiEntity.SHIPPER = sqlRead.GetString(15); } //发货人内容
if (!sqlRead.IsDBNull(16)) { TempOpSeaeEdiEntity.CONSIGNEE = sqlRead.GetString(16); } //收货人内容
if (!sqlRead.IsDBNull(17)) { TempOpSeaeEdiEntity.NOTIFYPARTY = sqlRead.GetString(17); } //通知人内容
if (!sqlRead.IsDBNull(18)) { TempOpSeaeEdiEntity.AGENTID = sqlRead.GetString(18); } //国外代理
if (!sqlRead.IsDBNull(19)) { TempOpSeaeEdiEntity.AGENT = sqlRead.GetString(19); } //国外代理内容
if (!sqlRead.IsDBNull(20)) { TempOpSeaeEdiEntity.YARD = sqlRead.GetString(20); } //场站
if (!sqlRead.IsDBNull(21)) { TempOpSeaeEdiEntity.VESSEL = sqlRead.GetString(21); } //船名
if (!sqlRead.IsDBNull(22)) { TempOpSeaeEdiEntity.VOYNO = sqlRead.GetString(22); } //航次
if (!sqlRead.IsDBNull(23)) { TempOpSeaeEdiEntity.ETD = sqlRead.GetDateTime(23); } //开船日期
if (!sqlRead.IsDBNull(24)) { TempOpSeaeEdiEntity.CLOSINGDATE = sqlRead.GetDateTime(24); } //截港日期
if (!sqlRead.IsDBNull(25)) { TempOpSeaeEdiEntity.ETA = sqlRead.GetDateTime(25); } //预抵日期
if (!sqlRead.IsDBNull(26)) { TempOpSeaeEdiEntity.PlACERECEIPT = sqlRead.GetString(26); } //收货地
if (!sqlRead.IsDBNull(27)) { TempOpSeaeEdiEntity.PORTLOADID = sqlRead.GetString(27); } //装货港代码
if (!sqlRead.IsDBNull(28)) { TempOpSeaeEdiEntity.PORTLOAD = sqlRead.GetString(28); } //装货港
if (!sqlRead.IsDBNull(29)) { TempOpSeaeEdiEntity.PORTDISCHARGEID = sqlRead.GetString(29); } //卸货港代码
if (!sqlRead.IsDBNull(30)) { TempOpSeaeEdiEntity.PORTDISCHARGE = sqlRead.GetString(30); } //卸货港
if (!sqlRead.IsDBNull(31)) { TempOpSeaeEdiEntity.PLACEDELIVERYID = sqlRead.GetString(31); } //交货地代码
if (!sqlRead.IsDBNull(32)) { TempOpSeaeEdiEntity.PLACEDELIVERY = sqlRead.GetString(32); } //交货地
if (!sqlRead.IsDBNull(33)) { TempOpSeaeEdiEntity.DESTINATIONID = sqlRead.GetString(33); } //目的地代码
if (!sqlRead.IsDBNull(34)) { TempOpSeaeEdiEntity.DESTINATION = sqlRead.GetString(34); } //目的地
if (!sqlRead.IsDBNull(35)) { TempOpSeaeEdiEntity.NOBILL = sqlRead.GetString(35); } //提单份数
if (!sqlRead.IsDBNull(36)) { TempOpSeaeEdiEntity.ISSUETYPE = sqlRead.GetString(36); } //签单方式
if (!sqlRead.IsDBNull(37)) { TempOpSeaeEdiEntity.ISSUEDATE = sqlRead.GetDateTime(37); } //签单日期
if (!sqlRead.IsDBNull(38)) { TempOpSeaeEdiEntity.ISSUEPLACE = sqlRead.GetString(38); } //签单地点
if (!sqlRead.IsDBNull(39)) { TempOpSeaeEdiEntity.BLFRT = sqlRead.GetString(39); } //付费方式
if (!sqlRead.IsDBNull(40)) { TempOpSeaeEdiEntity.PREPARDAT = sqlRead.GetString(40); } //预付地点
if (!sqlRead.IsDBNull(41)) { TempOpSeaeEdiEntity.PAYABLEAT = sqlRead.GetString(41); } //到付地点
if (!sqlRead.IsDBNull(42)) { TempOpSeaeEdiEntity.SERVICE = sqlRead.GetString(42); } //运输条款
if (!sqlRead.IsDBNull(43)) { TempOpSeaeEdiEntity.MARKS = sqlRead.GetString(43); } //唛头
if (!sqlRead.IsDBNull(44)) { TempOpSeaeEdiEntity.CNTRSEALNO = sqlRead.GetString(44); } //箱号封号
if (!sqlRead.IsDBNull(45)) { TempOpSeaeEdiEntity.NOPKGS = sqlRead.GetString(45); } //件数包装
if (!sqlRead.IsDBNull(46)) { TempOpSeaeEdiEntity.DESCRIPTION = sqlRead.GetString(46); } //货物描述
if (!sqlRead.IsDBNull(47)) { TempOpSeaeEdiEntity.GOODSNAME = sqlRead.GetString(47); } //品名
if (!sqlRead.IsDBNull(48)) { TempOpSeaeEdiEntity.GROSSWEIGHT = sqlRead.GetString(48); } //货物毛重
if (!sqlRead.IsDBNull(49)) { TempOpSeaeEdiEntity.MEASUREMENT = sqlRead.GetString(49); } //货物尺码
if (!sqlRead.IsDBNull(50)) { TempOpSeaeEdiEntity.PKGS = sqlRead.GetInt32(50); } //件数
if (!sqlRead.IsDBNull(51)) { TempOpSeaeEdiEntity.KINDPKGS = sqlRead.GetString(51); } //包装
if (!sqlRead.IsDBNull(52)) { TempOpSeaeEdiEntity.KGS = sqlRead.GetDecimal(52); } //毛重
if (!sqlRead.IsDBNull(53)) { TempOpSeaeEdiEntity.CBM = sqlRead.GetDecimal(53); } //尺码
if (!sqlRead.IsDBNull(54)) { TempOpSeaeEdiEntity.TOTALNO = sqlRead.GetString(54); } //件数大写
if (!sqlRead.IsDBNull(55)) { TempOpSeaeEdiEntity.CNTRNO = sqlRead.GetString(55); } //集装箱大写
if (!sqlRead.IsDBNull(56)) { TempOpSeaeEdiEntity.CNTR1 = sqlRead.GetInt32(56); } //箱型1
if (!sqlRead.IsDBNull(57)) { TempOpSeaeEdiEntity.CNTR2 = sqlRead.GetInt32(57); } //箱型2
if (!sqlRead.IsDBNull(58)) { TempOpSeaeEdiEntity.CNTR3 = sqlRead.GetInt32(58); } //箱型3
if (!sqlRead.IsDBNull(59)) { TempOpSeaeEdiEntity.CNTR4 = sqlRead.GetInt32(59); } //箱型4
if (!sqlRead.IsDBNull(60)) { TempOpSeaeEdiEntity.CNTR5 = sqlRead.GetInt32(60); } //箱型5
if (!sqlRead.IsDBNull(61)) { TempOpSeaeEdiEntity.CNTR6 = sqlRead.GetInt32(61); } //箱型6
if (!sqlRead.IsDBNull(62)) { TempOpSeaeEdiEntity.CNTR7 = sqlRead.GetInt32(62); } //箱型7
if (!sqlRead.IsDBNull(63)) { TempOpSeaeEdiEntity.CNTR8 = sqlRead.GetInt32(63); } //箱型8
if (!sqlRead.IsDBNull(64)) { TempOpSeaeEdiEntity.CNTR9 = sqlRead.GetInt32(64); } //箱型9
if (!sqlRead.IsDBNull(65)) { TempOpSeaeEdiEntity.CNTR10 = sqlRead.GetInt32(65); } //箱型10
if (!sqlRead.IsDBNull(66)) { TempOpSeaeEdiEntity.OTCNTR = sqlRead.GetInt32(66); } //其他箱型
if (!sqlRead.IsDBNull(67)) { TempOpSeaeEdiEntity.TEU = sqlRead.GetInt32(67); } //箱TEU
if (!sqlRead.IsDBNull(68)) { TempOpSeaeEdiEntity.CNTRTOTAL = sqlRead.GetString(68); } //集装箱
if (!sqlRead.IsDBNull(69)) { TempOpSeaeEdiEntity.INPUTBY = sqlRead.GetString(69); } //录入人
if (!sqlRead.IsDBNull(70)) { TempOpSeaeEdiEntity.OP = sqlRead.GetString(70); } //操作员
if (!sqlRead.IsDBNull(71)) { TempOpSeaeEdiEntity.CUSTSERVICE = sqlRead.GetString(71); } //客服
if (!sqlRead.IsDBNull(72)) { TempOpSeaeEdiEntity.LANE = sqlRead.GetString(72); } //航线
if (!sqlRead.IsDBNull(73)) { TempOpSeaeEdiEntity.SALE = sqlRead.GetString(73); } //揽货人
if (!sqlRead.IsDBNull(74)) { TempOpSeaeEdiEntity.CARRIER = sqlRead.GetString(74); } //船公司
if (!sqlRead.IsDBNull(75)) { TempOpSeaeEdiEntity.FORWARDER = sqlRead.GetString(75); } //订舱代理
if (!sqlRead.IsDBNull(76)) { TempOpSeaeEdiEntity.CUSTOMSER = sqlRead.GetString(76); } //报关行
if (!sqlRead.IsDBNull(77)) { TempOpSeaeEdiEntity.TRUCKER = sqlRead.GetString(77); } //承运车队
if (!sqlRead.IsDBNull(78)) { TempOpSeaeEdiEntity.INVNO = sqlRead.GetString(78); } //发票号
if (!sqlRead.IsDBNull(79)) { TempOpSeaeEdiEntity.CARGOID = sqlRead.GetString(79); } //货物标识
if (!sqlRead.IsDBNull(80)) { TempOpSeaeEdiEntity.DCLASS = sqlRead.GetString(80); } //危险品分类/等级
if (!sqlRead.IsDBNull(81)) { TempOpSeaeEdiEntity.DUNNO = sqlRead.GetString(81); } //危险品编号
if (!sqlRead.IsDBNull(82)) { TempOpSeaeEdiEntity.REEFERF = sqlRead.GetString(82); } //冷藏通风量
if (!sqlRead.IsDBNull(83)) { TempOpSeaeEdiEntity.TEMPID = sqlRead.GetString(83); } //温度单位
if (!sqlRead.IsDBNull(84)) { TempOpSeaeEdiEntity.TEMPSET = sqlRead.GetString(84); } //设置温度
if (!sqlRead.IsDBNull(85)) { TempOpSeaeEdiEntity.TEMPMAX = sqlRead.GetString(85); } //最高温度
if (!sqlRead.IsDBNull(86)) { TempOpSeaeEdiEntity.TEMPMIN = sqlRead.GetString(86); } //最低温度
if (!sqlRead.IsDBNull(87)) { TempOpSeaeEdiEntity.BSSOURCE = sqlRead.GetString(87); } //业务来源
if (!sqlRead.IsDBNull(88)) { TempOpSeaeEdiEntity.BSSOURCEDETAIL = sqlRead.GetString(88); } //来源明细
if (!sqlRead.IsDBNull(89)) { TempOpSeaeEdiEntity.CUSTOMSNUM = sqlRead.GetInt16(89); } //报关票数
if (!sqlRead.IsDBNull(90)) { TempOpSeaeEdiEntity.CONTRACTNO = sqlRead.GetString(90); } //运费协议号
if (!sqlRead.IsDBNull(91)) { TempOpSeaeEdiEntity.ORDTYPE = sqlRead.GetString(91); } //订舱类型
if (!sqlRead.IsDBNull(92)) { TempOpSeaeEdiEntity.ORDERNO = sqlRead.GetString(92); } //订舱编号
if (!sqlRead.IsDBNull(93)) { TempOpSeaeEdiEntity.INSURANCEER = sqlRead.GetString(93); } //保险人
if (!sqlRead.IsDBNull(94)) { TempOpSeaeEdiEntity.INSURANCENO = sqlRead.GetString(94); } //保险单号
if (!sqlRead.IsDBNull(95)) { TempOpSeaeEdiEntity.INAMOUT = sqlRead.GetDecimal(95); } //保险金额
if (!sqlRead.IsDBNull(96)) { TempOpSeaeEdiEntity.ISVOU = sqlRead.GetBoolean(96); } //是否生成凭证
if (!sqlRead.IsDBNull(97)) { TempOpSeaeEdiEntity.VOUNO = sqlRead.GetString(97); } //凭证号
if (!sqlRead.IsDBNull(98)) { TempOpSeaeEdiEntity.REMARK = sqlRead.GetString(98); } //备注
if (!sqlRead.IsDBNull(99)) { TempOpSeaeEdiEntity.STATUS1 = sqlRead.GetBoolean(99); } //状态1
if (!sqlRead.IsDBNull(100)) { TempOpSeaeEdiEntity.STATUS2 = sqlRead.GetBoolean(100); } //状态2
if (!sqlRead.IsDBNull(101)) { TempOpSeaeEdiEntity.STATUS3 = sqlRead.GetBoolean(101); } //状态3
if (!sqlRead.IsDBNull(102)) { TempOpSeaeEdiEntity.STATUS4 = sqlRead.GetBoolean(102); } //状态4
if (!sqlRead.IsDBNull(103)) { TempOpSeaeEdiEntity.STATUS5 = sqlRead.GetBoolean(103); } //状态5
if (!sqlRead.IsDBNull(104)) { TempOpSeaeEdiEntity.ISFUMIGATION = sqlRead.GetBoolean(104); } //熏蒸
if (!sqlRead.IsDBNull(105)) { TempOpSeaeEdiEntity.ISSTORAGE = sqlRead.GetBoolean(105); } //仓储
if (!sqlRead.IsDBNull(106)) { TempOpSeaeEdiEntity.ISLAND = sqlRead.GetBoolean(106); } //陆运
if (!sqlRead.IsDBNull(107)) { TempOpSeaeEdiEntity.ISCUSTOMS = sqlRead.GetBoolean(107); } //报关
if (!sqlRead.IsDBNull(108)) { TempOpSeaeEdiEntity.ISINSPECTION = sqlRead.GetBoolean(108); } //报检
if (!sqlRead.IsDBNull(109)) { TempOpSeaeEdiEntity.ISBOOKING = sqlRead.GetBoolean(109); } //订舱
if (!sqlRead.IsDBNull(110)) { TempOpSeaeEdiEntity.ISAGENT = sqlRead.GetBoolean(110); } //使用代理
if (!sqlRead.IsDBNull(111)) { TempOpSeaeEdiEntity.ISHBLNO = sqlRead.GetBoolean(111); } //分单签单
if (!sqlRead.IsDBNull(112)) { TempOpSeaeEdiEntity.SERVICE9 = sqlRead.GetBoolean(112); } //服务项目9
if (!sqlRead.IsDBNull(113)) { TempOpSeaeEdiEntity.SERVICE10 = sqlRead.GetBoolean(113); } //服务项目10
if (!sqlRead.IsDBNull(114)) { TempOpSeaeEdiEntity.DOC = sqlRead.GetString(114); } //单证
if (!sqlRead.IsDBNull(115)) { TempOpSeaeEdiEntity.PACKINGTYPE = sqlRead.GetString(115); } //装箱类型
if (!sqlRead.IsDBNull(116)) { TempOpSeaeEdiEntity.WAREHOUSE = sqlRead.GetString(116); } //仓库
if (!sqlRead.IsDBNull(117)) { TempOpSeaeEdiEntity.CLOSEDOCDATE = sqlRead.GetDateTime(117); } //截单日期
if (!sqlRead.IsDBNull(118)) { TempOpSeaeEdiEntity.INTOPORTDATE = sqlRead.GetDateTime(118); } //集港日期
if (!sqlRead.IsDBNull(119)) { TempOpSeaeEdiEntity.CORPID = sqlRead.GetString(119); } //分公司代码
if (!sqlRead.IsDBNull(120)) { TempOpSeaeEdiEntity.SALEDEPT = sqlRead.GetString(120); } //所属业务部门
if (!sqlRead.IsDBNull(121)) { TempOpSeaeEdiEntity.MBLFRT = sqlRead.GetString(121); } //MBL付费方式
if (!sqlRead.IsDBNull(122)) { TempOpSeaeEdiEntity.CREATETIME = sqlRead.GetDateTime(122); } //创建日期
if (!sqlRead.IsDBNull(123)) { TempOpSeaeEdiEntity.STLNAME = sqlRead.GetString(123); } //结算方式
if (!sqlRead.IsDBNull(124)) { TempOpSeaeEdiEntity.STLDATE = sqlRead.GetDateTime(124); } //结算日期
if (!sqlRead.IsDBNull(125)) { TempOpSeaeEdiEntity.ORDERTYPE = sqlRead.GetString(125); } //委托方式
if (!sqlRead.IsDBNull(126)) { TempOpSeaeEdiEntity.OPERATORCODE = sqlRead.GetString(126); } //客户操作代码
if (!sqlRead.IsDBNull(127)) { TempOpSeaeEdiEntity.OPERATOR = sqlRead.GetString(127); } //客户操作名称
if (!sqlRead.IsDBNull(128)) { TempOpSeaeEdiEntity.OPERATOREMAIL = sqlRead.GetString(128); } //操作电子邮箱
if (!sqlRead.IsDBNull(129)) { TempOpSeaeEdiEntity.OPERATORTEL = sqlRead.GetString(129); } //操作电话
if (!sqlRead.IsDBNull(130)) { TempOpSeaeEdiEntity.OPERATORFAX = sqlRead.GetString(130); } //操作传真
if (!sqlRead.IsDBNull(131)) { TempOpSeaeEdiEntity.FINANCIALSTAFFCODE = sqlRead.GetString(131); } //客户财务代码
if (!sqlRead.IsDBNull(132)) { TempOpSeaeEdiEntity.FINANCIALSTAFF = sqlRead.GetString(132); } //客户财务名称
if (!sqlRead.IsDBNull(133)) { TempOpSeaeEdiEntity.FINANCIALSTAFFEMAIL = sqlRead.GetString(133); } //财务电子邮箱
if (!sqlRead.IsDBNull(134)) { TempOpSeaeEdiEntity.FINANCIALSTAFFTEL = sqlRead.GetString(134); } //财务电话
if (!sqlRead.IsDBNull(135)) { TempOpSeaeEdiEntity.FINANCIALSTAFFFAX = sqlRead.GetString(135); } //财务传真
if (!sqlRead.IsDBNull(136)) { TempOpSeaeEdiEntity.GID = sqlRead.GetString(136); } //编号
if (!sqlRead.IsDBNull(137)) { TempOpSeaeEdiEntity.DOCGID = sqlRead.GetString(137); } //Edi文件编码
if (!sqlRead.IsDBNull(138)) { TempOpSeaeEdiEntity.ISOK = sqlRead.GetBoolean(138); } //是否导入成功
if (!sqlRead.IsDBNull(139)) { TempOpSeaeEdiEntity.CAUSE = sqlRead.GetString(139); } //失败的原因
}
}
catch (Exception exceError)
{
//抛出异常
throw exceError;
}
}
return TempOpSeaeEdiEntity;
}
#endregion
/// <summary>
/// 插入信息
/// </summary>
/// <param name="TempOpSeaeEdiEntity">实体类</param>
/// <returns>值为1插入数据正常,-1操作异常</returns>
public int InserInfo(TempOpSeaeEdiEntity infoEntity)
{
int iResult = 0;
//获取参数
SqlParameter[] parms = GetInsertParms();
parms[0].Value = infoEntity.BSNO;//业务编号
parms[1].Value = infoEntity.MASTERNO;//主编号
parms[2].Value = infoEntity.BSSTATUS;//业务状态
parms[3].Value = infoEntity.FEESTATUS;//费用状态
parms[4].Value = infoEntity.ACCDATE;//会计期间
parms[5].Value = infoEntity.MBLNO;//主提单号
parms[6].Value = infoEntity.HBLNO;//分提单号
parms[7].Value = infoEntity.CUSTNO;//委托编号
parms[8].Value = infoEntity.TRANSNO;//运单号
parms[9].Value = infoEntity.CUSTOMERNAME;//委托单位
parms[10].Value = infoEntity.BLTYPE;//装运方式
parms[11].Value = infoEntity.SHIPPERID;//发货人
parms[12].Value = infoEntity.CONSIGNEEID;//收货人
parms[13].Value = infoEntity.NOTIFYPARTYID;//通知人
parms[14].Value = infoEntity.SHIPPER;//发货人内容
parms[15].Value = infoEntity.CONSIGNEE;//收货人内容
parms[16].Value = infoEntity.NOTIFYPARTY;//通知人内容
parms[17].Value = infoEntity.AGENTID;//国外代理
parms[18].Value = infoEntity.AGENT;//国外代理内容
parms[19].Value = infoEntity.YARD;//场站
parms[20].Value = infoEntity.VESSEL;//船名
parms[21].Value = infoEntity.VOYNO;//航次
parms[22].Value = infoEntity.PlACERECEIPT;//收货地
parms[23].Value = infoEntity.PORTLOADID;//装货港代码
parms[24].Value = infoEntity.PORTLOAD;//装货港
parms[25].Value = infoEntity.PORTDISCHARGEID;//卸货港代码
parms[26].Value = infoEntity.PORTDISCHARGE;//卸货港
parms[27].Value = infoEntity.PLACEDELIVERYID;//交货地代码
parms[28].Value = infoEntity.PLACEDELIVERY;//交货地
parms[29].Value = infoEntity.DESTINATIONID;//目的地代码
parms[30].Value = infoEntity.DESTINATION;//目的地
parms[31].Value = infoEntity.NOBILL;//提单份数
parms[32].Value = infoEntity.ISSUETYPE;//签单方式
parms[33].Value = infoEntity.ISSUEPLACE;//签单地点
parms[34].Value = infoEntity.BLFRT;//付费方式
parms[35].Value = infoEntity.PREPARDAT;//预付地点
parms[36].Value = infoEntity.PAYABLEAT;//到付地点
parms[37].Value = infoEntity.SERVICE;//运输条款
parms[38].Value = infoEntity.MARKS;//唛头
parms[39].Value = infoEntity.CNTRSEALNO;//箱号封号
parms[40].Value = infoEntity.NOPKGS;//件数包装
parms[41].Value = infoEntity.DESCRIPTION;//货物描述
parms[42].Value = infoEntity.GOODSNAME;//品名
parms[43].Value = infoEntity.GROSSWEIGHT;//货物毛重
parms[44].Value = infoEntity.MEASUREMENT;//货物尺码
parms[45].Value = infoEntity.PKGS;//件数
parms[46].Value = infoEntity.KINDPKGS;//包装
parms[47].Value = infoEntity.KGS;//毛重
parms[48].Value = infoEntity.CBM;//尺码
parms[49].Value = infoEntity.TOTALNO;//件数大写
parms[50].Value = infoEntity.CNTRNO;//集装箱大写
parms[51].Value = infoEntity.CNTR1;//箱型1
parms[52].Value = infoEntity.CNTR2;//箱型2
parms[53].Value = infoEntity.CNTR3;//箱型3
parms[54].Value = infoEntity.CNTR4;//箱型4
parms[55].Value = infoEntity.CNTR5;//箱型5
parms[56].Value = infoEntity.CNTR6;//箱型6
parms[57].Value = infoEntity.CNTR7;//箱型7
parms[58].Value = infoEntity.CNTR8;//箱型8
parms[59].Value = infoEntity.CNTR9;//箱型9
parms[60].Value = infoEntity.CNTR10;//箱型10
parms[61].Value = infoEntity.OTCNTR;//其他箱型
parms[62].Value = infoEntity.TEU;//箱TEU
parms[63].Value = infoEntity.CNTRTOTAL;//集装箱
parms[64].Value = infoEntity.INPUTBY;//录入人
parms[65].Value = infoEntity.OP;//操作员
parms[66].Value = infoEntity.CUSTSERVICE;//客服
parms[67].Value = infoEntity.LANE;//航线
parms[68].Value = infoEntity.SALE;//揽货人
parms[69].Value = infoEntity.CARRIER;//船公司
parms[70].Value = infoEntity.FORWARDER;//订舱代理
parms[71].Value = infoEntity.CUSTOMSER;//报关行
parms[72].Value = infoEntity.TRUCKER;//承运车队
parms[73].Value = infoEntity.INVNO;//发票号
parms[74].Value = infoEntity.CARGOID;//货物标识;//CHAR
parms[75].Value = infoEntity.DCLASS;//危险品分类/等级
parms[76].Value = infoEntity.DUNNO;//危险品编号
parms[77].Value = infoEntity.REEFERF;//冷藏通风量
parms[78].Value = infoEntity.TEMPID;//温度单位;//char
parms[79].Value = infoEntity.TEMPSET;//设置温度
parms[80].Value = infoEntity.TEMPMAX;//最高温度
parms[81].Value = infoEntity.TEMPMIN;//最低温度
parms[82].Value = infoEntity.BSSOURCE;//业务来源
parms[83].Value = infoEntity.BSSOURCEDETAIL;//来源明细
parms[84].Value = infoEntity.CUSTOMSNUM;//报关票数
parms[85].Value = infoEntity.CONTRACTNO;//运费协议号
parms[86].Value = infoEntity.ORDTYPE;//订舱类型
parms[87].Value = infoEntity.ORDERNO;//订舱编号
parms[88].Value = infoEntity.INSURANCEER;//保险人
parms[89].Value = infoEntity.INSURANCENO;//保险单号
parms[90].Value = infoEntity.INAMOUT;//保险金额
parms[91].Value = infoEntity.ISVOU;//是否生成凭证
parms[92].Value = infoEntity.VOUNO;//凭证号
parms[93].Value = infoEntity.REMARK;//备注
parms[94].Value = infoEntity.STATUS1;//状态1
parms[95].Value = infoEntity.STATUS2;//状态2
parms[96].Value = infoEntity.STATUS3;//状态3
parms[97].Value = infoEntity.STATUS4;//状态4
parms[98].Value = infoEntity.STATUS5;//状态5
parms[99].Value = infoEntity.ISFUMIGATION;//熏蒸
parms[100].Value = infoEntity.ISSTORAGE;//仓储
parms[101].Value = infoEntity.ISLAND;//陆运
parms[102].Value = infoEntity.ISCUSTOMS;//报关
parms[103].Value = infoEntity.ISINSPECTION;//报检
parms[104].Value = infoEntity.DOC;//单证
parms[105].Value = infoEntity.PACKINGTYPE;//装箱类型
parms[106].Value = infoEntity.WAREHOUSE;//仓库
parms[107].Value = infoEntity.CORPID;//分公司代码
parms[108].Value = infoEntity.SALEDEPT;//所属业务部门
parms[109].Value = infoEntity.MBLFRT;//MBL付费方式
parms[110].Value = infoEntity.ISBOOKING;//订舱
parms[111].Value = infoEntity.ISAGENT;//使用代理
parms[112].Value = infoEntity.ISHBLNO;//分单签单
parms[113].Value = infoEntity.SERVICE9;//服务项目9
parms[114].Value = infoEntity.SERVICE10;//服务项目10
parms[115].Value = infoEntity.STLNAME;//结算方式
parms[116].Value = infoEntity.ORDERTYPE;//委托方式
parms[117].Value = infoEntity.OPERATORCODE;// 客户操作代码
parms[118].Value = infoEntity.OPERATOR;// 客户操作名称
parms[119].Value = infoEntity.OPERATOREMAIL;// 操作电子邮箱
parms[120].Value = infoEntity.OPERATORTEL;// 操作电话
parms[121].Value = infoEntity.OPERATORFAX;// 操作传真
parms[122].Value = infoEntity.FINANCIALSTAFFCODE;// 客户财务代码
parms[123].Value = infoEntity.FINANCIALSTAFF;// 客户财务名称
parms[124].Value = infoEntity.FINANCIALSTAFFEMAIL;// 财务电子邮箱
parms[125].Value = infoEntity.FINANCIALSTAFFTEL;// 财务电话
parms[126].Value = infoEntity.FINANCIALSTAFFFAX;// 财务传真
parms[127].Value = infoEntity.GID;// 编号
parms[128].Value = infoEntity.DOCGID;// Edi文件编码
parms[129].Value = infoEntity.ISOK;// 是否导入成功
parms[130].Value = infoEntity.CAUSE;// 失败的原因
//parms[116].Value = infoEntity.STLDATE;//结算日期
//parms[110].Value = infoEntity.ETD;//开船日期
//parms[111].Value = infoEntity.CLOSINGDATE;//截港日期
//parms[112].Value = infoEntity.ETA;//预抵日期
//parms[113].Value = infoEntity.ISSUEDATE;//签单日期
//parms[114].Value = infoEntity.CLOSEDOCDATE;//截单日期
//parms[115].Value = infoEntity.INTOPORTDATE;//集港日期
//parms[116].Value = infoEntity.BSDATE;//录入日期
string strETA = infoEntity.ETA.ToString().IndexOf("0001")>-1 ? "" : "'" + infoEntity.ETA.ToString() + "',";
string strETA_name = strETA.Equals("") ? "" : "ETA,";
string strETD = infoEntity.ETD.ToString().IndexOf("0001")>-1 ? "" : "'" + infoEntity.ETD.ToString() + "',";
string strETD_name = strETD.Equals("") ? "" : "ETD,";
string strCLOSINGDATE = infoEntity.CLOSINGDATE.ToString().IndexOf("0001")>-1 ? "" : "'" + infoEntity.CLOSINGDATE.ToString() + "',";
string strCLOSINGDATE_name = strCLOSINGDATE.Equals("") ? "" : "CLOSINGDATE,";
string strISSUEDATE = infoEntity.ISSUEDATE.ToString().IndexOf("0001")>-1 ? "" : "'" + infoEntity.ISSUEDATE.ToString() + "',";
string strISSUEDATE_name = strISSUEDATE.Equals("") ? "" : "ISSUEDATE,";
string strCLOSEDOCDATE = infoEntity.CLOSEDOCDATE.ToString().IndexOf("0001")>-1 ? "" : "'" + infoEntity.CLOSEDOCDATE.ToString() + "',";
string strCLOSEDOCDATE_name = strCLOSEDOCDATE.Equals("") ? "" : "CLOSEDOCDATE,";
string strINTOPORTDATE = infoEntity.INTOPORTDATE.ToString().IndexOf("0001")>-1 ? "" : "'" + infoEntity.INTOPORTDATE.ToString() + "',";
string strINTOPORTDATE_name = strINTOPORTDATE.Equals("") ? "" : "INTOPORTDATE,";
string strSTLDATE = infoEntity.STLDATE.ToString().IndexOf("0001")>-1 ? "" : "'" + infoEntity.STLDATE.ToString() + "',";
string strSTLDATE_name = strSTLDATE.Equals("") ? "" : "STLDATE,";
strSql = String.Format(strSql, strETA_name, strETA, strETD_name, strETD, strCLOSINGDATE_name, strCLOSINGDATE, strISSUEDATE_name, strISSUEDATE, strCLOSEDOCDATE_name, strCLOSEDOCDATE, strINTOPORTDATE_name, strINTOPORTDATE, strSTLDATE_name, strSTLDATE);
//
using (SqlConnection conn = new SqlConnection(SqlHelper.ConnectionStringLocalTransaction))
{
try
{
/*
string strSqlls = "insert into temp_op_seae_edi(BSNO,MASTERNO,BSSTATUS,FEESTATUS,BSDATE,ACCDATE,MBLNO,HBLNO,CUSTNO,TRANSNO,CUSTOMERNAME,BLTYPE,SHIPPERID,"
+ " CONSIGNEEID,NOTIFYPARTYID,SHIPPER,CONSIGNEE,NOTIFYPARTY,AGENTID,AGENT,YARD,VESSEL,VOYNO," + strETA_name + strINTOPORTDATE_name + strCLOSINGDATE_name + "PlACERECEIPT,PORTLOADID,PORTLOAD,PORTDISCHARGEID,PORTDISCHARGE,"
+ " PLACEDELIVERYID,PLACEDELIVERY,DESTINATIONID,DESTINATION,NOBILL,ISSUETYPE," + strISSUEDATE_name + "ISSUEPLACE,BLFRT,PREPARDAT,PAYABLEAT,SERVICE,MARKS,CNTRSEALNO,NOPKGS,DESCRIPTION,GOODSNAME,"
+ " GROSSWEIGHT,MEASUREMENT,PKGS,KINDPKGS,KGS,CBM,TOTALNO,CNTRNO,CNTR1,CNTR2,CNTR3,CNTR4,CNTR5,CNTR6,CNTR7,CNTR8,CNTR9,CNTR10,OTCNTR,TEU,CNTRTOTAL,INPUTBY,OP,CUSTSERVICE,LANE,SALE,"
+ " CARRIER,FORWARDER,CUSTOMSER,TRUCKER,INVNO,CARGOID,DCLASS,DUNNO,REEFERF,TEMPID,TEMPSET,TEMPMAX,TEMPMIN,BSSOURCE,BSSOURCEDETAIL,CUSTOMSNUM,CONTRACTNO,ORDTYPE,ORDERNO,INSURANCEER,"
+ " INSURANCENO,INAMOUT,ISVOU,VOUNO,REMARK,STATUS1,STATUS2,STATUS3,STATUS4,STATUS5,ISFUMIGATION,ISSTORAGE,ISLAND,"
+ " ISCUSTOMS,ISINSPECTION,ISBOOKING,ISAGENT,ISHBLNO,SERVICE9,SERVICE10,DOC,PACKINGTYPE,WAREHOUSE," + strCLOSEDOCDATE_name + strETD_name + "CORPID,SALEDEPT,MBLFRT," + strSTLDATE_name + "STLNAME,ORDERTYPE,CREATETIME,OPERATORCODE,OPERATOR,OPERATOREMAIL,OPERATORTEL,OPERATORFAX,FINANCIALSTAFFCODE,FINANCIALSTAFF,FINANCIALSTAFFEMAIL,FINANCIALSTAFFTEL,FINANCIALSTAFFFAX,GID,DOCGID,ISOK,CAUSE) "
+ " values('" + parms[0].Value + "','" + parms[1].Value + "','" + parms[2].Value + "','" + parms[3].Value + "',GETDATE(),'" + parms[4].Value + "','" + parms[5].Value + "','" + parms[6].Value + "','" + parms[7].Value + "','" + parms[8].Value + "','" + parms[9].Value + "','" + parms[10].Value + "','" + parms[11].Value + "','" + parms[12].Value + "','" + parms[13].Value + "','" + parms[14].Value + "','" + parms[15].Value + "',"
+ " '" + parms[16].Value + "','" + parms[17].Value + "','" + parms[18].Value + "','" + parms[19].Value + "','" + parms[20].Value + "','" + parms[21].Value + "'," + strETA + strINTOPORTDATE + strCLOSINGDATE + "'" + parms[22].Value + "','" + parms[23].Value + "','" + parms[24].Value + "','" + parms[25].Value + "','" + parms[26].Value + "','" + parms[27].Value + "','" + parms[28].Value + "',"
+ " '" + parms[29].Value + "','" + parms[30].Value + "','" + parms[31].Value + "','" + parms[32].Value + "'," + strISSUEDATE + "'" + parms[33].Value + "','" + parms[34].Value + "','" + parms[35].Value + "','" + parms[36].Value + "','" + parms[37].Value + "','" + parms[38].Value + "','" + parms[39].Value + "','" + parms[40].Value + "','" + parms[41].Value + "','" + parms[42].Value + "','" + parms[43].Value + "',"
+ " '" + parms[44].Value + "','" + parms[45].Value + "','" + parms[46].Value + "','" + parms[47].Value + "','" + parms[48].Value + "','" + parms[49].Value + "','" + parms[50].Value + "','" + parms[51].Value + "','" + parms[52].Value + "','" + parms[53].Value + "','" + parms[54].Value + "','" + parms[55].Value + "','" + parms[56].Value + "','" + parms[57].Value + "','" + parms[58].Value + "','" + parms[59].Value + "','" + parms[60].Value + "','" + parms[61].Value + "','" + parms[62].Value + "','" + parms[63].Value + "','" + parms[64].Value + "','" + parms[65].Value + "','" + parms[66].Value + "',"
+ " '" + parms[67].Value + "','" + parms[68].Value + "','" + parms[69].Value + "','" + parms[70].Value + "','" + parms[71].Value + "','" + parms[72].Value + "','" + parms[73].Value + "','" + parms[74].Value + "','" + parms[75].Value + "','" + parms[76].Value + "','" + parms[77].Value + "','" + parms[78].Value + "','" + parms[79].Value + "','" + parms[80].Value + "','" + parms[81].Value + "','" + parms[82].Value + "','" + parms[83].Value + "','" + parms[84].Value + "','" + parms[85].Value + "',"
+ " '" + parms[86].Value + "','" + parms[87].Value + "','" + parms[88].Value + "','" + parms[89].Value + "','" + parms[90].Value + "','" + parms[91].Value + "','" + parms[92].Value + "','" + parms[93].Value + "','" + parms[94].Value + "','" + parms[95].Value + "','" + parms[96].Value + "','" + parms[97].Value + "','" + parms[98].Value + "','" + parms[99].Value + "','" + parms[100].Value + "','" + parms[101].Value + "','" + parms[102].Value + "','" + parms[103].Value + "','" + parms[104].Value + "','" + parms[105].Value + "','" + parms[106].Value + "','" + parms[107].Value + "','" + parms[108].Value + "','" + parms[109].Value + "',"
+ " '" + parms[110].Value + "','" + parms[111].Value + "'," + strCLOSEDOCDATE + strETD + "'" + parms[112].Value + "','" + parms[113].Value + "','" + parms[114].Value + "'," + strSTLDATE + "'" + parms[115].Value + "','" + parms[116].Value + "',GETDATE(),'" + parms[117].Value + "','" + parms[118].Value + "','" + parms[119].Value + "','" + parms[120].Value + "','" + parms[121].Value + "','" + parms[122].Value + "','" + parms[123].Value + "','" + parms[124].Value + "','" + parms[125].Value + "','" + parms[126].Value + "','" + parms[127].Value + "','" + parms[128].Value + "','" + parms[129].Value + "','" + parms[130].Value + "')";//@BSDATE
*/
int existVal = SqlHelper.ExecuteNonQuery(conn, CommandType.Text, strSql, parms);
if (existVal > 0)
{
iResult = 1;
//
//string str0 = "insert into sys_log(NAME,LOGTYPE,LOGCONTENT,CREATEUSER) values('插入temp_op_seae_edi海运业务信息表','插入操作','BSNO=" + infoEntity.BSNO + "','" + strUserID + "')";
//bool bl0 = SqlHelper.ExecuteSqlCommand(SqlHelper.ConnectionStringLocalTransaction, str0);
}
else
{
iResult = -1;//执行异常
}
}
catch (Exception error)
{
throw error;
}
}
return iResult;
}
/// <summary>
/// 更新信息
/// </summary>
/// <param name="TempOpSeaeEdiEntity">实体类</param>
/// <returns>值为1更新数据正常,-1操作异常</returns>
public int UpdateInfo(TempOpSeaeEdiEntity infoEntity)
{
int iResult = 0;
//获取参数
SqlParameter[] parms = GetUpdateParms();
parms[0].Value = infoEntity.BSNO;//业务编号
parms[1].Value = infoEntity.MBLNO;//主提单号
parms[2].Value = infoEntity.HBLNO;//分提单号
parms[3].Value = infoEntity.CUSTNO;//委托编号
parms[4].Value = infoEntity.TRANSNO;//运单号
parms[5].Value = infoEntity.CUSTOMERNAME;//委托单位
parms[6].Value = infoEntity.SHIPPERID;//发货人
parms[7].Value = infoEntity.CONSIGNEEID;//收货人
parms[8].Value = infoEntity.NOTIFYPARTYID;//通知人
parms[9].Value = infoEntity.SHIPPER;//发货人内容
parms[10].Value = infoEntity.CONSIGNEE;//收货人内容
parms[11].Value = infoEntity.NOTIFYPARTY;//通知人内容
parms[12].Value = infoEntity.AGENTID;//国外代理
parms[13].Value = infoEntity.AGENT;//国外代理内容
parms[14].Value = infoEntity.YARD;//场站
parms[15].Value = infoEntity.VESSEL;//船名
parms[16].Value = infoEntity.VOYNO;//航次
parms[17].Value = infoEntity.PlACERECEIPT;//收货地
parms[18].Value = infoEntity.PORTLOADID;//装货港代码
parms[19].Value = infoEntity.PORTLOAD;//装货港
parms[20].Value = infoEntity.PORTDISCHARGEID;//卸货港代码
parms[21].Value = infoEntity.PORTDISCHARGE;//卸货港
parms[22].Value = infoEntity.PLACEDELIVERYID;//交货地代码
parms[23].Value = infoEntity.PLACEDELIVERY;//交货地
parms[24].Value = infoEntity.DESTINATIONID;//目的地代码
parms[25].Value = infoEntity.DESTINATION;//目的地
parms[26].Value = infoEntity.NOBILL;//提单份数
parms[27].Value = infoEntity.ISSUETYPE;//签单方式
parms[28].Value = infoEntity.ISSUEPLACE;//签单地点
parms[29].Value = infoEntity.BLFRT;//付费方式
parms[30].Value = infoEntity.PREPARDAT;//预付地点
parms[31].Value = infoEntity.PAYABLEAT;//到付地点
parms[32].Value = infoEntity.SERVICE;//运输条款
parms[33].Value = infoEntity.MARKS;//唛头
parms[34].Value = infoEntity.CNTRSEALNO;//箱号封号
parms[35].Value = infoEntity.NOPKGS;//件数包装
parms[36].Value = infoEntity.DESCRIPTION;//货物描述
parms[37].Value = infoEntity.GOODSNAME;//品名
parms[38].Value = infoEntity.GROSSWEIGHT;//货物毛重
parms[39].Value = infoEntity.MEASUREMENT;//货物尺码
parms[40].Value = infoEntity.PKGS;//件数
parms[41].Value = infoEntity.KINDPKGS;//包装
parms[42].Value = infoEntity.KGS;//毛重
parms[43].Value = infoEntity.CBM;//尺码
parms[44].Value = infoEntity.TOTALNO;//件数大写
parms[45].Value = infoEntity.CNTRNO;//集装箱大写
parms[46].Value = infoEntity.CNTR1;//箱型1
parms[47].Value = infoEntity.CNTR2;//箱型2
parms[48].Value = infoEntity.CNTR3;//箱型3
parms[49].Value = infoEntity.CNTR4;//箱型4
parms[50].Value = infoEntity.CNTR5;//箱型5
parms[51].Value = infoEntity.CNTR6;//箱型6
parms[52].Value = infoEntity.CNTR7;//箱型7
parms[53].Value = infoEntity.CNTR8;//箱型8
parms[54].Value = infoEntity.CNTR9;//箱型9
parms[55].Value = infoEntity.CNTR10;//箱型10
parms[56].Value = infoEntity.OTCNTR;//其他箱型
parms[57].Value = infoEntity.TEU;//箱TEU
parms[58].Value = infoEntity.CNTRTOTAL;//集装箱
parms[59].Value = infoEntity.INPUTBY;//录入人
parms[60].Value = infoEntity.OP;//操作员
parms[61].Value = infoEntity.CUSTSERVICE;//客服
parms[62].Value = infoEntity.LANE;//航线
parms[63].Value = infoEntity.SALE;//揽货人
parms[64].Value = infoEntity.CARRIER;//船公司
parms[65].Value = infoEntity.FORWARDER;//订舱代理
parms[66].Value = infoEntity.CUSTOMSER;//报关行
parms[67].Value = infoEntity.TRUCKER;//承运车队
parms[68].Value = infoEntity.INVNO;//发票号
parms[69].Value = infoEntity.CARGOID;//货物标识;//CHAR
parms[70].Value = infoEntity.DCLASS;//危险品分类/等级
parms[71].Value = infoEntity.DUNNO;//危险品编号
parms[72].Value = infoEntity.REEFERF;//冷藏通风量
parms[73].Value = infoEntity.TEMPID;//温度单位;//char
parms[74].Value = infoEntity.TEMPSET;//设置温度
parms[75].Value = infoEntity.TEMPMAX;//最高温度
parms[76].Value = infoEntity.TEMPMIN;//最低温度
parms[77].Value = infoEntity.BSSOURCE;//业务来源
parms[78].Value = infoEntity.BSSOURCEDETAIL;//来源明细
parms[79].Value = infoEntity.CUSTOMSNUM;//报关票数
parms[80].Value = infoEntity.CONTRACTNO;//运费协议号
parms[81].Value = infoEntity.ORDTYPE;//订舱类型
parms[82].Value = infoEntity.ORDERNO;//订舱编号
parms[83].Value = infoEntity.INSURANCEER;//保险人
parms[84].Value = infoEntity.INSURANCENO;//保险单号
parms[85].Value = infoEntity.INAMOUT;//保险金额
parms[86].Value = infoEntity.ISVOU;//是否生成凭证
parms[87].Value = infoEntity.VOUNO;//凭证号
parms[88].Value = infoEntity.REMARK;//备注
parms[89].Value = infoEntity.STATUS1;//状态1
parms[90].Value = infoEntity.STATUS2;//状态2
parms[91].Value = infoEntity.STATUS3;//状态3
parms[92].Value = infoEntity.STATUS4;//状态4
parms[93].Value = infoEntity.STATUS5;//状态5
parms[94].Value = infoEntity.ISFUMIGATION;//熏蒸
parms[95].Value = infoEntity.ISSTORAGE;//仓储
parms[96].Value = infoEntity.ISLAND;//陆运
parms[97].Value = infoEntity.ISCUSTOMS;//报关
parms[98].Value = infoEntity.ISINSPECTION;//报检
parms[99].Value = infoEntity.DOC;//单证
parms[100].Value = infoEntity.PACKINGTYPE;//装箱类型
parms[101].Value = infoEntity.WAREHOUSE;//仓库
parms[102].Value = infoEntity.CORPID;//分公司代码
parms[103].Value = infoEntity.SALEDEPT;//所属业务部门
parms[104].Value = infoEntity.MBLFRT;//MBL付费方式
parms[105].Value = infoEntity.ISBOOKING;//订舱
parms[106].Value = infoEntity.ISAGENT;//使用代理
parms[107].Value = infoEntity.ISHBLNO;//分单签单
parms[108].Value = infoEntity.SERVICE9;//服务项目9
parms[109].Value = infoEntity.SERVICE10;//服务项目10
parms[110].Value = infoEntity.STLNAME;//结算方式
parms[111].Value = infoEntity.OPERATORCODE;// 客户操作代码
parms[112].Value = infoEntity.OPERATOR;// 客户操作名称
parms[113].Value = infoEntity.OPERATOREMAIL;// 操作电子邮箱
parms[114].Value = infoEntity.OPERATORTEL;// 操作电话
parms[115].Value = infoEntity.OPERATORFAX;// 操作传真
parms[116].Value = infoEntity.FINANCIALSTAFFCODE;// 客户财务代码
parms[117].Value = infoEntity.FINANCIALSTAFF;// 客户财务名称
parms[118].Value = infoEntity.FINANCIALSTAFFEMAIL;// 财务电子邮箱
parms[119].Value = infoEntity.FINANCIALSTAFFTEL;// 财务电话
parms[120].Value = infoEntity.FINANCIALSTAFFFAX;// 财务传真
parms[127].Value = infoEntity.GID;// 编号
parms[128].Value = infoEntity.DOCGID;// Edi文件编码
parms[129].Value = infoEntity.ISOK;// 是否导入成功
parms[130].Value = infoEntity.CAUSE;// 失败的原因
//parms[111].Value = infoEntity.STLDATE;//结算日期
//parms[105].Value = infoEntity.ETD;//开船日期
//parms[106].Value = infoEntity.CLOSINGDATE;//截港日期
//parms[107].Value = infoEntity.ETA;//预抵日期
//parms[108].Value = infoEntity.ISSUEDATE;//签单日期
//parms[109].Value = infoEntity.CLOSEDOCDATE;//截单日期
//parms[110].Value = infoEntity.INTOPORTDATE;//集港日期
//
string strETA = infoEntity.ETA.ToString().IndexOf("0001")>-1 ? "null," : "'" + infoEntity.ETA.ToString() + "',";
string strETA_name = "ETA="; //strETA.Equals("") ? "" : "ETA=";
string strETD = infoEntity.ETD.ToString().IndexOf("0001")>-1 ? "null," : "'" + infoEntity.ETD.ToString() + "',";
string strETD_name = "ETD=";//strETD.Equals("") ? "" : "ETD=";
string strCLOSINGDATE = infoEntity.CLOSINGDATE.ToString().IndexOf("0001")>-1 ? "null," : "'" + infoEntity.CLOSINGDATE.ToString() + "',";
string strCLOSINGDATE_name = "CLOSINGDATE=";//strCLOSINGDATE.Equals("") ? "" : "CLOSINGDATE=";
string strISSUEDATE = infoEntity.ISSUEDATE.ToString().IndexOf("0001")>-1 ? "null," : "'" + infoEntity.ISSUEDATE.ToString() + "',";
string strISSUEDATE_name = "ISSUEDATE=";//strISSUEDATE.Equals("") ? "" : "ISSUEDATE=";
string strCLOSEDOCDATE = infoEntity.CLOSEDOCDATE.ToString().IndexOf("0001")>-1 ? "null," : "'" + infoEntity.CLOSEDOCDATE.ToString() + "',";
string strCLOSEDOCDATE_name = "CLOSEDOCDATE=";//strCLOSEDOCDATE.Equals("") ? "" : "CLOSEDOCDATE=";
string strINTOPORTDATE = infoEntity.INTOPORTDATE.ToString().IndexOf("0001")>-1 ? "null," : "'" + infoEntity.INTOPORTDATE.ToString() + "',";
string strINTOPORTDATE_name = "INTOPORTDATE=";//strINTOPORTDATE.Equals("") ? "" : "INTOPORTDATE=";
string strSTLDATE = infoEntity.STLDATE.ToString().IndexOf("0001")>-1 ? "null," : "'" + infoEntity.STLDATE.ToString() + "',";
string strSTLDATE_name = "STLDATE=";//strSTLDATE.Equals("") ? "" : "STLDATE=";
strSqlUpdateInfo = String.Format(strSqlUpdateInfo, strETA_name, strETA, strETD_name, strETD, strCLOSINGDATE_name, strCLOSINGDATE, strISSUEDATE_name, strISSUEDATE, strCLOSEDOCDATE_name, strCLOSEDOCDATE, strINTOPORTDATE_name, strINTOPORTDATE, strSTLDATE_name, strSTLDATE);
//
using (SqlConnection conn = new SqlConnection(SqlHelper.ConnectionStringLocalTransaction))
{
int existVal = SqlHelper.ExecuteNonQuery(conn, CommandType.Text, strSqlUpdateInfo, parms);
if (existVal > 0)
{
iResult = 1;
//
//string str0 = "insert into sys_log(NAME,LOGTYPE,LOGCONTENT,CREATEUSER) values('更新temp_op_seae_edi海运业务信息表','更新操作','BSNO=" + infoEntity.BSNO + "','" + strUserID + "')";
//bool bl0 = SqlHelper.ExecuteSqlCommand(SqlHelper.ConnectionStringLocalTransaction, str0);
}
else
{
iResult = -1;//执行异常
}
}
return iResult;
}
#region 生成插入语句参数
/// <summary>
/// 生成插入语句参数
/// </summary>
/// <returns>返回SqlParameter数组</returns>
private SqlParameter[] GetInsertParms()
{
SqlParameter[] parms = new SqlParameter[]{
new SqlParameter("@BSNO",SqlDbType.VarChar,100),//业务编号
new SqlParameter("@MASTERNO",SqlDbType.VarChar,100),//主编号
new SqlParameter("@BSSTATUS",SqlDbType.Bit),//业务状态
new SqlParameter("@FEESTATUS",SqlDbType.Bit),//费用状态
//new SqlParameter("@BSDATE",SqlDbType.SmallDateTime),//录入日期
new SqlParameter("@ACCDATE",SqlDbType.VarChar,7),//会计期间
new SqlParameter("@MBLNO",SqlDbType.VarChar,30),//主提单号
new SqlParameter("@HBLNO",SqlDbType.VarChar,30),//分提单号
new SqlParameter("@CUSTNO",SqlDbType.VarChar,30),//委托编号
new SqlParameter("@TRANSNO",SqlDbType.VarChar,30),//运单号
new SqlParameter("@CUSTOMERNAME",SqlDbType.VarChar,20),//委托单位
new SqlParameter("@BLTYPE",SqlDbType.VarChar,8),//装运方式
new SqlParameter("@SHIPPERID",SqlDbType.VarChar,20),//发货人
new SqlParameter("@CONSIGNEEID",SqlDbType.VarChar,20),//收货人
new SqlParameter("@NOTIFYPARTYID",SqlDbType.VarChar,20),//通知人
new SqlParameter("@SHIPPER",SqlDbType.VarChar,600),//发货人内容
new SqlParameter("@CONSIGNEE",SqlDbType.VarChar,600),//收货人内容
new SqlParameter("@NOTIFYPARTY",SqlDbType.VarChar,600),//通知人内容
new SqlParameter("@AGENTID",SqlDbType.VarChar,20),//国外代理
new SqlParameter("@AGENT",SqlDbType.VarChar,600),//国外代理内容
new SqlParameter("@YARD",SqlDbType.VarChar,20),//场站
new SqlParameter("@VESSEL",SqlDbType.VarChar,60),//船名
new SqlParameter("@VOYNO",SqlDbType.VarChar,12),//航次
//new SqlParameter("@ETD",SqlDbType.SmallDateTime),//开船日期
//new SqlParameter("@CLOSINGDATE",SqlDbType.SmallDateTime),//截港日期
//new SqlParameter("@ETA",SqlDbType.SmallDateTime),//预抵日期
new SqlParameter("@PlACERECEIPT",SqlDbType.VarChar,60),//收货地
new SqlParameter("@PORTLOADID",SqlDbType.VarChar,36),//装货港代码
new SqlParameter("@PORTLOAD",SqlDbType.VarChar,60),//装货港
new SqlParameter("@PORTDISCHARGEID",SqlDbType.VarChar,36),//卸货港代码
new SqlParameter("@PORTDISCHARGE",SqlDbType.VarChar,60),//卸货港
new SqlParameter("@PLACEDELIVERYID",SqlDbType.VarChar,36),//交货地代码
new SqlParameter("@PLACEDELIVERY",SqlDbType.VarChar,60),//交货地
new SqlParameter("@DESTINATIONID",SqlDbType.VarChar,36),//目的地代码
new SqlParameter("@DESTINATION",SqlDbType.VarChar,60),//目的地
new SqlParameter("@NOBILL",SqlDbType.VarChar,5),//提单份数
new SqlParameter("@ISSUETYPE",SqlDbType.VarChar,12),//签单方式
//new SqlParameter("@ISSUEDATE",SqlDbType.SmallDateTime),//签单日期
new SqlParameter("@ISSUEPLACE",SqlDbType.VarChar,60),//签单地点
new SqlParameter("@BLFRT",SqlDbType.VarChar,20),//付费方式
new SqlParameter("@PREPARDAT",SqlDbType.VarChar,50),//预付地点
new SqlParameter("@PAYABLEAT",SqlDbType.VarChar,50),//到付地点
new SqlParameter("@SERVICE",SqlDbType.VarChar,10),//运输条款
new SqlParameter("@MARKS",SqlDbType.VarChar,600),//唛头
new SqlParameter("@CNTRSEALNO",SqlDbType.VarChar,4000),//箱号封号
new SqlParameter("@NOPKGS",SqlDbType.VarChar,120),//件数包装
new SqlParameter("@DESCRIPTION",SqlDbType.VarChar,600),//货物描述
new SqlParameter("@GOODSNAME",SqlDbType.VarChar,30),//品名
new SqlParameter("@GROSSWEIGHT",SqlDbType.VarChar,600),//货物毛重
new SqlParameter("@MEASUREMENT",SqlDbType.VarChar,600),//货物尺码
new SqlParameter("@PKGS",SqlDbType.Int),//件数
new SqlParameter("@KINDPKGS",SqlDbType.VarChar,20),//包装
new SqlParameter("@KGS",SqlDbType.Decimal),//毛重
new SqlParameter("@CBM",SqlDbType.Decimal),//尺码
new SqlParameter("@TOTALNO",SqlDbType.VarChar,100),//件数大写
new SqlParameter("@CNTRNO",SqlDbType.VarChar,100),//集装箱大写
new SqlParameter("@CNTR1",SqlDbType.Int),//箱型1
new SqlParameter("@CNTR2",SqlDbType.Int),//箱型2
new SqlParameter("@CNTR3",SqlDbType.Int),//箱型3
new SqlParameter("@CNTR4",SqlDbType.Int),//箱型4
new SqlParameter("@CNTR5",SqlDbType.Int),//箱型5
new SqlParameter("@CNTR6",SqlDbType.Int),//箱型6
new SqlParameter("@CNTR7",SqlDbType.Int),//箱型7
new SqlParameter("@CNTR8",SqlDbType.Int),//箱型8
new SqlParameter("@CNTR9",SqlDbType.Int),//箱型9
new SqlParameter("@CNTR10",SqlDbType.Int),//箱型10
new SqlParameter("@OTCNTR",SqlDbType.Int),//其他箱型
new SqlParameter("@TEU",SqlDbType.Int),//箱TEU
new SqlParameter("@CNTRTOTAL",SqlDbType.VarChar,4000),//集装箱
new SqlParameter("@INPUTBY",SqlDbType.VarChar,10),//录入人
new SqlParameter("@OP",SqlDbType.VarChar,10),//操作员
new SqlParameter("@CUSTSERVICE",SqlDbType.VarChar,10),//客服
new SqlParameter("@LANE",SqlDbType.VarChar,30),//航线
new SqlParameter("@SALE",SqlDbType.VarChar,10),//揽货人
new SqlParameter("@CARRIER",SqlDbType.VarChar,20),//船公司
new SqlParameter("@FORWARDER",SqlDbType.VarChar,20),//订舱代理
new SqlParameter("@CUSTOMSER",SqlDbType.VarChar,20),//报关行
new SqlParameter("@TRUCKER",SqlDbType.VarChar,20),//承运车队
new SqlParameter("@INVNO",SqlDbType.VarChar,20),//发票号
new SqlParameter("@CARGOID",SqlDbType.Char,1),//货物标识
new SqlParameter("@DCLASS",SqlDbType.VarChar,5),//危险品分类/等级
new SqlParameter("@DUNNO",SqlDbType.VarChar,16),//危险品编号
new SqlParameter("@REEFERF",SqlDbType.VarChar,5),//冷藏通风量
new SqlParameter("@TEMPID",SqlDbType.Char,1),//温度单位
new SqlParameter("@TEMPSET",SqlDbType.VarChar,5),//设置温度
new SqlParameter("@TEMPMAX",SqlDbType.VarChar,5),//最高温度
new SqlParameter("@TEMPMIN",SqlDbType.VarChar,5),//最低温度
new SqlParameter("@BSSOURCE",SqlDbType.VarChar,36),//业务来源
new SqlParameter("@BSSOURCEDETAIL",SqlDbType.VarChar,36),//来源明细
new SqlParameter("@CUSTOMSNUM",SqlDbType.SmallInt),//报关票数
new SqlParameter("@CONTRACTNO",SqlDbType.VarChar,100),//运费协议号
new SqlParameter("@ORDTYPE",SqlDbType.VarChar,10),//订舱类型
new SqlParameter("@ORDERNO",SqlDbType.VarChar,20),//订舱编号
new SqlParameter("@INSURANCEER",SqlDbType.VarChar,30),//保险人
new SqlParameter("@INSURANCENO",SqlDbType.VarChar,20),//保险单号
new SqlParameter("@INAMOUT",SqlDbType.Decimal),//保险金额
new SqlParameter("@ISVOU",SqlDbType.Bit),//是否生成凭证
new SqlParameter("@VOUNO",SqlDbType.VarChar,12),//凭证号
new SqlParameter("@REMARK",SqlDbType.VarChar,200),//备注
new SqlParameter("@STATUS1",SqlDbType.Bit),//状态1
new SqlParameter("@STATUS2",SqlDbType.Bit),//状态2
new SqlParameter("@STATUS3",SqlDbType.Bit),//状态3
new SqlParameter("@STATUS4",SqlDbType.Bit),//状态4
new SqlParameter("@STATUS5",SqlDbType.Bit),//状态5
new SqlParameter("@ISFUMIGATION",SqlDbType.Bit),//熏蒸
new SqlParameter("@ISSTORAGE",SqlDbType.Bit),//仓储
new SqlParameter("@ISLAND",SqlDbType.Bit),//陆运
new SqlParameter("@ISCUSTOMS",SqlDbType.Bit),//报关
new SqlParameter("@ISINSPECTION",SqlDbType.Bit),//报检
new SqlParameter("@DOC",SqlDbType.VarChar,10),//单证
new SqlParameter("@PACKINGTYPE",SqlDbType.VarChar,10),//装箱类型
new SqlParameter("@WAREHOUSE",SqlDbType.VarChar,20),//仓库
//new SqlParameter("@CLOSEDOCDATE",SqlDbType.SmallDateTime),//截单日期
//new SqlParameter("@INTOPORTDATE",SqlDbType.SmallDateTime),//集港日期
new SqlParameter("@CORPID",SqlDbType.VarChar,36),//分公司代码
new SqlParameter("@SALEDEPT",SqlDbType.VarChar,20),//所属业务部门
new SqlParameter("@MBLFRT",SqlDbType.VarChar,20),//MBL付费方式
new SqlParameter("@ISBOOKING",SqlDbType.Bit),//订舱
new SqlParameter("@ISAGENT",SqlDbType.Bit),//使用代理
new SqlParameter("@ISHBLNO",SqlDbType.Bit),//分单签单
new SqlParameter("@SERVICE9",SqlDbType.Bit),//服务项目9
new SqlParameter("@SERVICE10",SqlDbType.Bit),//服务项目10
new SqlParameter("@STLNAME",SqlDbType.VarChar,6),//结算方式
new SqlParameter("@ORDERTYPE",SqlDbType.VarChar,10),//委托方式
new SqlParameter("@OPERATORCODE",SqlDbType.VarChar,6),// 客户操作代码
new SqlParameter("@OPERATOR",SqlDbType.VarChar,20),// 客户操作名称
new SqlParameter("@OPERATOREMAIL",SqlDbType.VarChar,50),// 操作电子邮箱
new SqlParameter("@OPERATORTEL",SqlDbType.VarChar,50),// 操作电话
new SqlParameter("@OPERATORFAX",SqlDbType.VarChar,50),// 操作传真
new SqlParameter("@FINANCIALSTAFFCODE",SqlDbType.VarChar,6),// 客户财务代码
new SqlParameter("@FINANCIALSTAFF",SqlDbType.VarChar,20),// 客户财务名称
new SqlParameter("@FINANCIALSTAFFEMAIL",SqlDbType.VarChar,50),// 财务电子邮箱
new SqlParameter("@FINANCIALSTAFFTEL",SqlDbType.VarChar,50),// 财务电话
new SqlParameter("@FINANCIALSTAFFFAX",SqlDbType.VarChar,50),// 财务传真
new SqlParameter("@GID",SqlDbType.VarChar,36),//编号
new SqlParameter("@DOCGID",SqlDbType.VarChar,36),//Edi文件编码
new SqlParameter("@ISOK",SqlDbType.Bit),//是否导入成功
new SqlParameter("@CAUSE",SqlDbType.VarChar,100)//失败的原因
//new SqlParameter("@STLNAME",SqlDbType.DateTime)//结算日期
};
return parms;
}
#endregion
#region 生成更新语句参数
/// <summary>
/// 生成更新语句参数
/// </summary>
/// <returns>返回SqlParameter数组</returns>
private SqlParameter[] GetUpdateParms()
{
SqlParameter[] parms = new SqlParameter[]{
new SqlParameter("@BSNO",SqlDbType.VarChar,100),//业务编号
new SqlParameter("@MBLNO",SqlDbType.VarChar,30),//主提单号
new SqlParameter("@HBLNO",SqlDbType.VarChar,30),//分提单号
new SqlParameter("@CUSTNO",SqlDbType.VarChar,30),//委托编号
new SqlParameter("@TRANSNO",SqlDbType.VarChar,30),//运单号
new SqlParameter("@CUSTOMERNAME",SqlDbType.VarChar,20),//委托单位
new SqlParameter("@SHIPPERID",SqlDbType.VarChar,20),//发货人
new SqlParameter("@CONSIGNEEID",SqlDbType.VarChar,20),//收货人
new SqlParameter("@NOTIFYPARTYID",SqlDbType.VarChar,20),//通知人
new SqlParameter("@SHIPPER",SqlDbType.VarChar,600),//发货人内容
new SqlParameter("@CONSIGNEE",SqlDbType.VarChar,600),//收货人内容
new SqlParameter("@NOTIFYPARTY",SqlDbType.VarChar,600),//通知人内容
new SqlParameter("@AGENTID",SqlDbType.VarChar,20),//国外代理
new SqlParameter("@AGENT",SqlDbType.VarChar,600),//国外代理内容
new SqlParameter("@YARD",SqlDbType.VarChar,20),//场站
new SqlParameter("@VESSEL",SqlDbType.VarChar,60),//船名
new SqlParameter("@VOYNO",SqlDbType.VarChar,12),//航次
//new SqlParameter("@ETD",SqlDbType.SmallDateTime),//开船日期
//new SqlParameter("@CLOSINGDATE",SqlDbType.SmallDateTime),//截港日期
//new SqlParameter("@ETA",SqlDbType.SmallDateTime),//预抵日期
new SqlParameter("@PlACERECEIPT",SqlDbType.VarChar,60),//收货地
new SqlParameter("@PORTLOADID",SqlDbType.VarChar,36),//装货港代码
new SqlParameter("@PORTLOAD",SqlDbType.VarChar,60),//装货港
new SqlParameter("@PORTDISCHARGEID",SqlDbType.VarChar,36),//卸货港代码
new SqlParameter("@PORTDISCHARGE",SqlDbType.VarChar,60),//卸货港
new SqlParameter("@PLACEDELIVERYID",SqlDbType.VarChar,36),//交货地代码
new SqlParameter("@PLACEDELIVERY",SqlDbType.VarChar,60),//交货地
new SqlParameter("@DESTINATIONID",SqlDbType.VarChar,36),//目的地代码
new SqlParameter("@DESTINATION",SqlDbType.VarChar,60),//目的地
new SqlParameter("@NOBILL",SqlDbType.VarChar,5),//提单份数
new SqlParameter("@ISSUETYPE",SqlDbType.VarChar,12),//签单方式
//new SqlParameter("@ISSUEDATE",SqlDbType.SmallDateTime),//签单日期
new SqlParameter("@ISSUEPLACE",SqlDbType.VarChar,60),//签单地点
new SqlParameter("@BLFRT",SqlDbType.VarChar,20),//付费方式
new SqlParameter("@PREPARDAT",SqlDbType.VarChar,50),//预付地点
new SqlParameter("@PAYABLEAT",SqlDbType.VarChar,50),//到付地点
new SqlParameter("@SERVICE",SqlDbType.VarChar,10),//运输条款
new SqlParameter("@MARKS",SqlDbType.VarChar,600),//唛头
new SqlParameter("@CNTRSEALNO",SqlDbType.VarChar,4000),//箱号封号
new SqlParameter("@NOPKGS",SqlDbType.VarChar,120),//件数包装
new SqlParameter("@DESCRIPTION",SqlDbType.VarChar,600),//货物描述
new SqlParameter("@GOODSNAME",SqlDbType.VarChar,30),//品名
new SqlParameter("@GROSSWEIGHT",SqlDbType.VarChar,600),//货物毛重
new SqlParameter("@MEASUREMENT",SqlDbType.VarChar,600),//货物尺码
new SqlParameter("@PKGS",SqlDbType.Int),//件数
new SqlParameter("@KINDPKGS",SqlDbType.VarChar,20),//包装
new SqlParameter("@KGS",SqlDbType.Decimal),//毛重
new SqlParameter("@CBM",SqlDbType.Decimal),//尺码
new SqlParameter("@TOTALNO",SqlDbType.VarChar,100),//件数大写
new SqlParameter("@CNTRNO",SqlDbType.VarChar,100),//集装箱大写
new SqlParameter("@CNTR1",SqlDbType.Int),//箱型1
new SqlParameter("@CNTR2",SqlDbType.Int),//箱型2
new SqlParameter("@CNTR3",SqlDbType.Int),//箱型3
new SqlParameter("@CNTR4",SqlDbType.Int),//箱型4
new SqlParameter("@CNTR5",SqlDbType.Int),//箱型5
new SqlParameter("@CNTR6",SqlDbType.Int),//箱型6
new SqlParameter("@CNTR7",SqlDbType.Int),//箱型7
new SqlParameter("@CNTR8",SqlDbType.Int),//箱型8
new SqlParameter("@CNTR9",SqlDbType.Int),//箱型9
new SqlParameter("@CNTR10",SqlDbType.Int),//箱型10
new SqlParameter("@OTCNTR",SqlDbType.Int),//其他箱型
new SqlParameter("@TEU",SqlDbType.Int),//箱TEU
new SqlParameter("@CNTRTOTAL",SqlDbType.VarChar,4000),//集装箱
new SqlParameter("@INPUTBY",SqlDbType.VarChar,10),//录入人
new SqlParameter("@OP",SqlDbType.VarChar,10),//操作员
new SqlParameter("@CUSTSERVICE",SqlDbType.VarChar,10),//客服
new SqlParameter("@LANE",SqlDbType.VarChar,30),//航线
new SqlParameter("@SALE",SqlDbType.VarChar,10),//揽货人
new SqlParameter("@CARRIER",SqlDbType.VarChar,20),//船公司
new SqlParameter("@FORWARDER",SqlDbType.VarChar,20),//订舱代理
new SqlParameter("@CUSTOMSER",SqlDbType.VarChar,20),//报关行
new SqlParameter("@TRUCKER",SqlDbType.VarChar,20),//承运车队
new SqlParameter("@INVNO",SqlDbType.VarChar,20),//发票号
new SqlParameter("@CARGOID",SqlDbType.Char,1),//货物标识
new SqlParameter("@DCLASS",SqlDbType.VarChar,5),//危险品分类/等级
new SqlParameter("@DUNNO",SqlDbType.VarChar,16),//危险品编号
new SqlParameter("@REEFERF",SqlDbType.VarChar,5),//冷藏通风量
new SqlParameter("@TEMPID",SqlDbType.Char,1),//温度单位
new SqlParameter("@TEMPSET",SqlDbType.VarChar,5),//设置温度
new SqlParameter("@TEMPMAX",SqlDbType.VarChar,5),//最高温度
new SqlParameter("@TEMPMIN",SqlDbType.VarChar,5),//最低温度
new SqlParameter("@BSSOURCE",SqlDbType.VarChar,36),//业务来源
new SqlParameter("@BSSOURCEDETAIL",SqlDbType.VarChar,36),//来源明细
new SqlParameter("@CUSTOMSNUM",SqlDbType.SmallInt),//报关票数
new SqlParameter("@CONTRACTNO",SqlDbType.VarChar,100),//运费协议号
new SqlParameter("@ORDTYPE",SqlDbType.VarChar,10),//订舱类型
new SqlParameter("@ORDERNO",SqlDbType.VarChar,20),//订舱编号
new SqlParameter("@INSURANCEER",SqlDbType.VarChar,30),//保险人
new SqlParameter("@INSURANCENO",SqlDbType.VarChar,20),//保险单号
new SqlParameter("@INAMOUT",SqlDbType.Decimal),//保险金额
new SqlParameter("@ISVOU",SqlDbType.Bit),//是否生成凭证
new SqlParameter("@VOUNO",SqlDbType.VarChar,12),//凭证号
new SqlParameter("@REMARK",SqlDbType.VarChar,200),//备注
new SqlParameter("@STATUS1",SqlDbType.Bit),//状态1
new SqlParameter("@STATUS2",SqlDbType.Bit),//状态2
new SqlParameter("@STATUS3",SqlDbType.Bit),//状态3
new SqlParameter("@STATUS4",SqlDbType.Bit),//状态4
new SqlParameter("@STATUS5",SqlDbType.Bit),//状态5
new SqlParameter("@ISFUMIGATION",SqlDbType.Bit),//熏蒸
new SqlParameter("@ISSTORAGE",SqlDbType.Bit),//仓储
new SqlParameter("@ISLAND",SqlDbType.Bit),//陆运
new SqlParameter("@ISCUSTOMS",SqlDbType.Bit),//报关
new SqlParameter("@ISINSPECTION",SqlDbType.Bit),//报检
new SqlParameter("@DOC",SqlDbType.VarChar,10),//单证
new SqlParameter("@PACKINGTYPE",SqlDbType.VarChar,10),//装箱类型
new SqlParameter("@WAREHOUSE",SqlDbType.VarChar,20),//仓库
//new SqlParameter("@CLOSEDOCDATE",SqlDbType.SmallDateTime),//截单日期
//new SqlParameter("@INTOPORTDATE",SqlDbType.SmallDateTime),//集港日期
new SqlParameter("@CORPID",SqlDbType.VarChar,36),//分公司代码
new SqlParameter("@SALEDEPT",SqlDbType.VarChar,20),//所属业务部门
new SqlParameter("@MBLFRT",SqlDbType.VarChar,20),//MBL付费方式
new SqlParameter("@ISBOOKING",SqlDbType.Bit),//订舱
new SqlParameter("@ISAGENT",SqlDbType.Bit),//使用代理
new SqlParameter("@ISHBLNO",SqlDbType.Bit),//分单签单
new SqlParameter("@SERVICE9",SqlDbType.Bit),//服务项目9
new SqlParameter("@SERVICE10",SqlDbType.Bit),//服务项目10
new SqlParameter("@STLNAME",SqlDbType.VarChar,6),//结算方式
new SqlParameter("@OPERATORCODE",SqlDbType.VarChar,6),// 客户操作代码
new SqlParameter("@OPERATOR",SqlDbType.VarChar,20),// 客户操作名称
new SqlParameter("@OPERATOREMAIL",SqlDbType.VarChar,50),// 操作电子邮箱
new SqlParameter("@OPERATORTEL",SqlDbType.VarChar,50),// 操作电话
new SqlParameter("@OPERATORFAX",SqlDbType.VarChar,50),// 操作传真
new SqlParameter("@FINANCIALSTAFFCODE",SqlDbType.VarChar,6),// 客户财务代码
new SqlParameter("@FINANCIALSTAFF",SqlDbType.VarChar,20),// 客户财务名称
new SqlParameter("@FINANCIALSTAFFEMAIL",SqlDbType.VarChar,50),// 财务电子邮箱
new SqlParameter("@FINANCIALSTAFFTEL",SqlDbType.VarChar,50),// 财务电话
new SqlParameter("@FINANCIALSTAFFFAX",SqlDbType.VarChar,50),// 财务传真
new SqlParameter("@GID",SqlDbType.VarChar,36),//编号
new SqlParameter("@DOCGID",SqlDbType.VarChar,36),//Edi文件编码
new SqlParameter("@ISOK",SqlDbType.Bit),//是否导入成功
new SqlParameter("@CAUSE",SqlDbType.VarChar,100)//失败的原因
//new SqlParameter("@STLNAME",SqlDbType.DateTime)//结算日期
};
return parms;
}
#endregion
#region 返回所有海运出口数据集
/// <summary>
/// 返回所有海运出口数据集
/// </summary>
/// <param name="strSql"></param>
/// <returns></returns>
public DataSet GetSeaExportList()
{
DataSet userSet = new DataSet();
userSet = SqlHelper.ExecuteDataset(SqlHelper.ConnectionStringLocalTransaction, CommandType.Text, SQL_SELECT_INFO);
return userSet;
}
#endregion
#region 根据SQL语句查询海运出口数据集
/// <summary>
/// 根据SQL语句查询海运出口数据集
/// </summary>
/// <param name="strSql"></param>
/// <returns></returns>
public DataSet GetSeaExportListByCondition(string strSql)
{
DataSet userSet = new DataSet();
userSet = SqlHelper.ExecuteDataset(SqlHelper.ConnectionStringLocalTransaction, CommandType.Text, strSql);
return userSet;
}
#endregion
#region 根据SQL语句查询海运出口数据集
/// <summary>
/// 返回 某字段
/// </summary>
/// <returns></returns>
public DataSet GetFieldAll(string strBSNO)
{
string str = "select * from temp_op_seae_edi where BSNO='" + strBSNO + "'";
DataSet DS = SqlHelper.OpenSqlDataSet(SqlHelper.ConnectionStringLocalTransaction, str);
try
{
if (DS.Tables[0].Rows.Count <= 0)
{
DS = null;
}
}
catch
{
DS = null;
}
return DS;
}
#endregion
#region 获取海运出口委托记录总页数
/// <summary>
/// 获取海运出口委托记录总页数
/// </summary>
/// <param name="strSql">sql查询语句</param>
/// <returns>返回int型海运出口委托记录总页数</returns>
public int GetPageTotal(string strSql)
{
int iResult = 0;
using (SqlDataReader sqlRead = SqlHelper.ExecuteReader(SqlHelper.ConnectionStringLocalTransaction, CommandType.Text, strSql, null))
{
try
{
while (sqlRead.Read())
{
iResult = sqlRead.GetInt32(0);
}
}
catch (Exception error)
{
throw error;
}
}
return iResult;
}
#endregion
#region 删除委托信息
/// <summary>
/// 删除委托信息
/// </summary>
/// <param name="tempBSNO">委托信息GID</param>
/// <returns>值1表示删除成功 值-1表示有异常删除失败 值-2表示插入异常,事务已回滚成功</returns>
public int DeleteOrder(string tempBSNO)
{
int iResult = 0;
SqlParameter parm = new SqlParameter(PARM_SEAE_BSNO, SqlDbType.VarChar, 100);
parm.Value = tempBSNO;
using (SqlTransaction sqlTran = SqlHelper.BeginTransaction(SqlHelper.ConnectionStringLocalTransaction))
{
try
{
SqlHelper.ExecuteNonQuery(SqlHelper.ConnectionStringLocalTransaction, CommandType.Text, SQL_DELETE_INFO, parm);
iResult = 1;//状态为1表示删除成功
sqlTran.Commit();
}
catch (Exception execError)
{
iResult = -1;//有异常,删除失败
sqlTran.Rollback();
iResult = -2;//插入异常,事务已回滚成功
throw execError;
}
finally
{
SqlHelper.CloseConnection();
}
}
return iResult;
}
#endregion
/// <summary>
/// 插入信息
/// </summary>
/// <param name="TempOpSeaeEdiEntity">实体类</param>
/// <returns>值为1插入数据正常,-1操作异常</returns>
public int InserInfo_CF(TempOpSeaeEdiEntity infoEntity)
{
int iResult = 0;
using (SqlTransaction sqlTran = SqlHelper.BeginTransaction(SqlHelper.ConnectionStringLocalTransaction))
{
try
{
//获取参数
SqlParameter[] parms = GetInsertParms_CF();
parms[0].Value = infoEntity.BSNO;//业务编号
parms[1].Value = infoEntity.MASTERNO;//主编号
parms[2].Value = infoEntity.BSSTATUS;//业务状态
parms[3].Value = infoEntity.FEESTATUS;//费用状态
parms[4].Value = infoEntity.ACCDATE;//会计期间
parms[5].Value = infoEntity.MBLNO;//主提单号
parms[6].Value = infoEntity.HBLNO;//分提单号
parms[7].Value = infoEntity.CUSTNO;//委托编号
parms[8].Value = infoEntity.TRANSNO;//运单号
parms[9].Value = infoEntity.CUSTOMERNAME;//委托单位
parms[10].Value = infoEntity.BLTYPE;//装运方式
parms[11].Value = infoEntity.SHIPPERID;//发货人
parms[12].Value = infoEntity.CONSIGNEEID;//收货人
parms[13].Value = infoEntity.NOTIFYPARTYID;//通知人
parms[14].Value = infoEntity.SHIPPER;//发货人内容
parms[15].Value = infoEntity.CONSIGNEE;//收货人内容
parms[16].Value = infoEntity.NOTIFYPARTY;//通知人内容
parms[17].Value = infoEntity.AGENTID;//国外代理
parms[18].Value = infoEntity.AGENT;//国外代理内容
parms[19].Value = infoEntity.YARD;//场站
parms[20].Value = infoEntity.VESSEL;//船名
parms[21].Value = infoEntity.VOYNO;//航次
parms[22].Value = infoEntity.PlACERECEIPT;//收货地
parms[23].Value = infoEntity.PORTLOADID;//装货港代码
parms[24].Value = infoEntity.PORTLOAD;//装货港
parms[25].Value = infoEntity.PORTDISCHARGEID;//卸货港代码
parms[26].Value = infoEntity.PORTDISCHARGE;//卸货港
parms[27].Value = infoEntity.PLACEDELIVERYID;//交货地代码
parms[28].Value = infoEntity.PLACEDELIVERY;//交货地
parms[29].Value = infoEntity.DESTINATIONID;//目的地代码
parms[30].Value = infoEntity.DESTINATION;//目的地
parms[31].Value = infoEntity.NOBILL;//提单份数
parms[32].Value = infoEntity.ISSUETYPE;//签单方式
parms[33].Value = infoEntity.ISSUEPLACE;//签单地点
parms[34].Value = infoEntity.BLFRT;//付费方式
parms[35].Value = infoEntity.PREPARDAT;//预付地点
parms[36].Value = infoEntity.PAYABLEAT;//到付地点
parms[37].Value = infoEntity.SERVICE;//运输条款
parms[38].Value = infoEntity.MARKS;//唛头
parms[39].Value = infoEntity.CNTRSEALNO;//箱号封号
parms[40].Value = infoEntity.NOPKGS;//件数包装
parms[41].Value = infoEntity.DESCRIPTION;//货物描述
parms[42].Value = infoEntity.GOODSNAME;//品名
parms[43].Value = infoEntity.GROSSWEIGHT;//货物毛重
parms[44].Value = infoEntity.MEASUREMENT;//货物尺码
parms[45].Value = infoEntity.PKGS;//件数
parms[46].Value = infoEntity.KINDPKGS;//包装
parms[47].Value = infoEntity.KGS;//毛重
parms[48].Value = infoEntity.CBM;//尺码
parms[49].Value = infoEntity.TOTALNO;//件数大写
parms[50].Value = infoEntity.GID;// 编号
parms[51].Value = infoEntity.DOCGID;// Edi文件编码
parms[52].Value = infoEntity.ISOK;// 是否导入成功
parms[53].Value = infoEntity.CAUSE;// 失败的原因
//parms[116].Value = infoEntity.STLDATE;//结算日期
//parms[110].Value = infoEntity.ETD;//开船日期
//parms[111].Value = infoEntity.CLOSINGDATE;//截港日期
//parms[112].Value = infoEntity.ETA;//预抵日期
//parms[113].Value = infoEntity.ISSUEDATE;//签单日期
//parms[114].Value = infoEntity.CLOSEDOCDATE;//截单日期
//parms[115].Value = infoEntity.INTOPORTDATE;//集港日期
//parms[116].Value = infoEntity.BSDATE;//录入日期
string strETA = infoEntity.ETA.ToString().IndexOf("0001")>-1 ? "" : "'" + infoEntity.ETA.ToString() + "',";
string strETA_name = strETA.Equals("") ? "" : "ETA,";
string strETD = infoEntity.ETD.ToString().IndexOf("0001")>-1 ? "" : "'" + infoEntity.ETD.ToString() + "',";
string strETD_name = strETD.Equals("") ? "" : "ETD,";
string strCLOSINGDATE = infoEntity.CLOSINGDATE.ToString().IndexOf("0001")>-1 ? "" : "'" + infoEntity.CLOSINGDATE.ToString() + "',";
string strCLOSINGDATE_name = strCLOSINGDATE.Equals("") ? "" : "CLOSINGDATE,";
string strISSUEDATE = infoEntity.ISSUEDATE.ToString().IndexOf("0001")>-1 ? "" : "'" + infoEntity.ISSUEDATE.ToString() + "',";
string strISSUEDATE_name = strISSUEDATE.Equals("") ? "" : "ISSUEDATE,";
string strCLOSEDOCDATE = infoEntity.CLOSEDOCDATE.ToString().IndexOf("0001")>-1 ? "" : "'" + infoEntity.CLOSEDOCDATE.ToString() + "',";
string strCLOSEDOCDATE_name = strCLOSEDOCDATE.Equals("") ? "" : "CLOSEDOCDATE,";
string strINTOPORTDATE = infoEntity.INTOPORTDATE.ToString().IndexOf("0001")>-1 ? "" : "'" + infoEntity.INTOPORTDATE.ToString() + "',";
string strINTOPORTDATE_name = strINTOPORTDATE.Equals("") ? "" : "INTOPORTDATE,";
string strSTLDATE = infoEntity.STLDATE.ToString().IndexOf("0001")>-1 ? "" : "'" + infoEntity.STLDATE.ToString() + "',";
string strSTLDATE_name = strSTLDATE.Equals("") ? "" : "STLDATE,";
strSql_CF = String.Format(strSql_CF, strETA_name, strETA, strCLOSINGDATE_name, strCLOSINGDATE, strISSUEDATE_name, strISSUEDATE, strINTOPORTDATE_name, strINTOPORTDATE);
iResult = -3;//edi插入一票数据的前50条
int existVal = SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSql_CF, parms);
//-----------------
//获取参数
SqlParameter[] parms_up = GetInsertParms();
parms_up[0].Value = infoEntity.CNTRNO;//集装箱大写
parms_up[1].Value = infoEntity.CNTR1;//箱型1
parms_up[2].Value = infoEntity.CNTR2;//箱型2
parms_up[3].Value = infoEntity.CNTR3;//箱型3
parms_up[4].Value = infoEntity.CNTR4;//箱型4
parms_up[5].Value = infoEntity.CNTR5;//箱型5
parms_up[6].Value = infoEntity.CNTR6;//箱型6
parms_up[7].Value = infoEntity.CNTR7;//箱型7
parms_up[8].Value = infoEntity.CNTR8;//箱型8
parms_up[9].Value = infoEntity.CNTR9;//箱型9
parms_up[10].Value = infoEntity.CNTR10;//箱型10
parms_up[11].Value = infoEntity.OTCNTR;//其他箱型
parms_up[12].Value = infoEntity.TEU;//箱TEU
parms_up[13].Value = infoEntity.CNTRTOTAL;//集装箱
parms_up[14].Value = infoEntity.INPUTBY;//录入人
parms_up[15].Value = infoEntity.OP;//操作员
parms_up[16].Value = infoEntity.CUSTSERVICE;//客服
parms_up[17].Value = infoEntity.LANE;//航线
parms_up[18].Value = infoEntity.SALE;//揽货人
parms_up[19].Value = infoEntity.CARRIER;//船公司
parms_up[20].Value = infoEntity.FORWARDER;//订舱代理
parms_up[21].Value = infoEntity.CUSTOMSER;//报关行
parms_up[22].Value = infoEntity.TRUCKER;//承运车队
parms_up[23].Value = infoEntity.INVNO;//发票号
parms_up[24].Value = infoEntity.CARGOID;//货物标识;//CHAR
parms_up[25].Value = infoEntity.DCLASS;//危险品分类/等级
parms_up[26].Value = infoEntity.DUNNO;//危险品编号
parms_up[27].Value = infoEntity.REEFERF;//冷藏通风量
parms_up[28].Value = infoEntity.TEMPID;//温度单位;//char
parms_up[29].Value = infoEntity.TEMPSET;//设置温度
parms_up[30].Value = infoEntity.TEMPMAX;//最高温度
parms_up[31].Value = infoEntity.TEMPMIN;//最低温度
parms_up[32].Value = infoEntity.BSSOURCE;//业务来源
parms_up[33].Value = infoEntity.BSSOURCEDETAIL;//来源明细
parms_up[34].Value = infoEntity.CUSTOMSNUM;//报关票数
parms_up[35].Value = infoEntity.CONTRACTNO;//运费协议号
parms_up[36].Value = infoEntity.ORDTYPE;//订舱类型
parms_up[37].Value = infoEntity.ORDERNO;//订舱编号
parms_up[38].Value = infoEntity.INSURANCEER;//保险人
parms_up[39].Value = infoEntity.INSURANCENO;//保险单号
parms_up[40].Value = infoEntity.INAMOUT;//保险金额
parms_up[41].Value = infoEntity.ISVOU;//是否生成凭证
parms_up[42].Value = infoEntity.VOUNO;//凭证号
parms_up[43].Value = infoEntity.REMARK;//备注
parms_up[44].Value = infoEntity.STATUS1;//状态1
parms_up[45].Value = infoEntity.STATUS2;//状态2
parms_up[46].Value = infoEntity.STATUS3;//状态3
parms_up[47].Value = infoEntity.STATUS4;//状态4
parms_up[48].Value = infoEntity.STATUS5;//状态5
parms_up[49].Value = infoEntity.ISFUMIGATION;//熏蒸
parms_up[50].Value = infoEntity.ISSTORAGE;//仓储
parms_up[51].Value = infoEntity.ISLAND;//陆运
parms_up[52].Value = infoEntity.ISCUSTOMS;//报关
parms_up[53].Value = infoEntity.ISINSPECTION;//报检
parms_up[54].Value = infoEntity.DOC;//单证
parms_up[55].Value = infoEntity.PACKINGTYPE;//装箱类型
parms_up[56].Value = infoEntity.WAREHOUSE;//仓库
parms_up[57].Value = infoEntity.CORPID;//分公司代码
parms_up[58].Value = infoEntity.SALEDEPT;//所属业务部门
parms_up[59].Value = infoEntity.MBLFRT;//MBL付费方式
parms_up[60].Value = infoEntity.ISBOOKING;//订舱
parms_up[61].Value = infoEntity.ISAGENT;//使用代理
parms_up[62].Value = infoEntity.ISHBLNO;//分单签单
parms_up[63].Value = infoEntity.SERVICE9;//服务项目9
parms_up[64].Value = infoEntity.SERVICE10;//服务项目10
parms_up[65].Value = infoEntity.STLNAME;//结算方式
parms_up[66].Value = infoEntity.ORDERTYPE;//委托方式
parms_up[67].Value = infoEntity.OPERATORCODE;//
parms_up[68].Value = infoEntity.OPERATOR;//
parms_up[69].Value = infoEntity.OPERATOREMAIL;//
parms_up[70].Value = infoEntity.OPERATORTEL;//
parms_up[71].Value = infoEntity.OPERATORFAX;//
parms_up[72].Value = infoEntity.FINANCIALSTAFFCODE;//
parms_up[73].Value = infoEntity.FINANCIALSTAFF;//
parms_up[74].Value = infoEntity.FINANCIALSTAFFEMAIL;//
parms_up[75].Value = infoEntity.FINANCIALSTAFFTEL;//
parms_up[76].Value = infoEntity.FINANCIALSTAFFFAX;//
parms_up[77].Value = infoEntity.GID;//
parms_up[78].Value = infoEntity.DOCGID;//
//parms[116].Value = infoEntity.STLDATE;//结算日期
//parms[110].Value = infoEntity.ETD;//开船日期
//parms[111].Value = infoEntity.CLOSINGDATE;//截港日期
//parms[112].Value = infoEntity.ETA;//预抵日期
//parms[113].Value = infoEntity.ISSUEDATE;//签单日期
//parms[114].Value = infoEntity.CLOSEDOCDATE;//截单日期
//parms[115].Value = infoEntity.INTOPORTDATE;//集港日期
//parms[116].Value = infoEntity.BSDATE;//录入日期
strSqlUpdateInfo_CF = String.Format(strSqlUpdateInfo_CF, strETD_name, strETD, strCLOSEDOCDATE_name, strCLOSEDOCDATE,strSTLDATE_name, strSTLDATE);
iResult = -4;//edi插入一票数据的后78条
existVal = SqlHelper.ExecuteNonQuery(sqlTran, CommandType.Text, strSqlUpdateInfo_CF, parms_up);
//
//事务提交
sqlTran.Commit();
iResult = 1;//状态为1表示插入成功
}
catch (Exception execError)
{
iResult = -1;//有异常,插入失败
sqlTran.Rollback();
iResult = -2;//插入异常,事务已回滚成功
throw execError;
}
finally
{
SqlHelper.CloseConnection();
}
}
return iResult;
}
#region 分步骤插入的生成插入语句参数
/// <summary>
/// 生成插入语句参数
/// </summary>
/// <returns>返回SqlParameter数组</returns>
private SqlParameter[] GetInsertParms_CF()
{
SqlParameter[] parms = new SqlParameter[]{
new SqlParameter("@BSNO",SqlDbType.VarChar,100),//业务编号
new SqlParameter("@MASTERNO",SqlDbType.VarChar,100),//主编号
new SqlParameter("@BSSTATUS",SqlDbType.Bit),//业务状态
new SqlParameter("@FEESTATUS",SqlDbType.Bit),//费用状态
//new SqlParameter("@BSDATE",SqlDbType.SmallDateTime),//录入日期
new SqlParameter("@ACCDATE",SqlDbType.VarChar,7),//会计期间
new SqlParameter("@MBLNO",SqlDbType.VarChar,30),//主提单号
new SqlParameter("@HBLNO",SqlDbType.VarChar,30),//分提单号
new SqlParameter("@CUSTNO",SqlDbType.VarChar,30),//委托编号
new SqlParameter("@TRANSNO",SqlDbType.VarChar,30),//运单号
new SqlParameter("@CUSTOMERNAME",SqlDbType.VarChar,20),//委托单位
new SqlParameter("@BLTYPE",SqlDbType.VarChar,8),//装运方式
new SqlParameter("@SHIPPERID",SqlDbType.VarChar,20),//发货人
new SqlParameter("@CONSIGNEEID",SqlDbType.VarChar,20),//收货人
new SqlParameter("@NOTIFYPARTYID",SqlDbType.VarChar,20),//通知人
new SqlParameter("@SHIPPER",SqlDbType.VarChar,600),//发货人内容
new SqlParameter("@CONSIGNEE",SqlDbType.VarChar,600),//收货人内容
new SqlParameter("@NOTIFYPARTY",SqlDbType.VarChar,600),//通知人内容
new SqlParameter("@AGENTID",SqlDbType.VarChar,20),//国外代理
new SqlParameter("@AGENT",SqlDbType.VarChar,600),//国外代理内容
new SqlParameter("@YARD",SqlDbType.VarChar,20),//场站
new SqlParameter("@VESSEL",SqlDbType.VarChar,60),//船名
new SqlParameter("@VOYNO",SqlDbType.VarChar,12),//航次
//new SqlParameter("@ETD",SqlDbType.SmallDateTime),//开船日期
//new SqlParameter("@CLOSINGDATE",SqlDbType.SmallDateTime),//截港日期
//new SqlParameter("@ETA",SqlDbType.SmallDateTime),//预抵日期
new SqlParameter("@PlACERECEIPT",SqlDbType.VarChar,60),//收货地
new SqlParameter("@PORTLOADID",SqlDbType.VarChar,36),//装货港代码
new SqlParameter("@PORTLOAD",SqlDbType.VarChar,60),//装货港
new SqlParameter("@PORTDISCHARGEID",SqlDbType.VarChar,36),//卸货港代码
new SqlParameter("@PORTDISCHARGE",SqlDbType.VarChar,60),//卸货港
new SqlParameter("@PLACEDELIVERYID",SqlDbType.VarChar,36),//交货地代码
new SqlParameter("@PLACEDELIVERY",SqlDbType.VarChar,60),//交货地
new SqlParameter("@DESTINATIONID",SqlDbType.VarChar,36),//目的地代码
new SqlParameter("@DESTINATION",SqlDbType.VarChar,60),//目的地
new SqlParameter("@NOBILL",SqlDbType.VarChar,5),//提单份数
new SqlParameter("@ISSUETYPE",SqlDbType.VarChar,12),//签单方式
//new SqlParameter("@ISSUEDATE",SqlDbType.SmallDateTime),//签单日期
new SqlParameter("@ISSUEPLACE",SqlDbType.VarChar,60),//签单地点
new SqlParameter("@BLFRT",SqlDbType.VarChar,20),//付费方式
new SqlParameter("@PREPARDAT",SqlDbType.VarChar,50),//预付地点
new SqlParameter("@PAYABLEAT",SqlDbType.VarChar,50),//到付地点
new SqlParameter("@SERVICE",SqlDbType.VarChar,10),//运输条款
new SqlParameter("@MARKS",SqlDbType.VarChar,600),//唛头
new SqlParameter("@CNTRSEALNO",SqlDbType.VarChar,4000),//箱号封号
new SqlParameter("@NOPKGS",SqlDbType.VarChar,120),//件数包装
new SqlParameter("@DESCRIPTION",SqlDbType.VarChar,600),//货物描述
new SqlParameter("@GOODSNAME",SqlDbType.VarChar,30),//品名
new SqlParameter("@GROSSWEIGHT",SqlDbType.VarChar,600),//货物毛重
new SqlParameter("@MEASUREMENT",SqlDbType.VarChar,600),//货物尺码
new SqlParameter("@PKGS",SqlDbType.Int),//件数
new SqlParameter("@KINDPKGS",SqlDbType.VarChar,20),//包装
new SqlParameter("@KGS",SqlDbType.Decimal),//毛重
new SqlParameter("@CBM",SqlDbType.Decimal),//尺码
new SqlParameter("@TOTALNO",SqlDbType.VarChar,100),//件数大写
new SqlParameter("@GID",SqlDbType.VarChar,36),//编号
new SqlParameter("@DOCGID",SqlDbType.VarChar,36),//Edi文件编码
new SqlParameter("@ISOK",SqlDbType.Bit),//是否导入成功
new SqlParameter("@CAUSE",SqlDbType.VarChar,100)//失败的原因
//new SqlParameter("@STLNAME",SqlDbType.DateTime)//结算日期
};
return parms;
}
#endregion
#region 分步骤插入的生成更新语句参数
/// <summary>
/// 生成更新语句参数
/// </summary>
/// <returns>返回SqlParameter数组</returns>
private SqlParameter[] GetUpdateParms_CF()
{
SqlParameter[] parms = new SqlParameter[]{
new SqlParameter("@CNTRNO",SqlDbType.VarChar,100),//集装箱大写
new SqlParameter("@CNTR1",SqlDbType.Int),//箱型1
new SqlParameter("@CNTR2",SqlDbType.Int),//箱型2
new SqlParameter("@CNTR3",SqlDbType.Int),//箱型3
new SqlParameter("@CNTR4",SqlDbType.Int),//箱型4
new SqlParameter("@CNTR5",SqlDbType.Int),//箱型5
new SqlParameter("@CNTR6",SqlDbType.Int),//箱型6
new SqlParameter("@CNTR7",SqlDbType.Int),//箱型7
new SqlParameter("@CNTR8",SqlDbType.Int),//箱型8
new SqlParameter("@CNTR9",SqlDbType.Int),//箱型9
new SqlParameter("@CNTR10",SqlDbType.Int),//箱型10
new SqlParameter("@OTCNTR",SqlDbType.Int),//其他箱型
new SqlParameter("@TEU",SqlDbType.Int),//箱TEU
new SqlParameter("@CNTRTOTAL",SqlDbType.VarChar,4000),//集装箱
new SqlParameter("@INPUTBY",SqlDbType.VarChar,10),//录入人
new SqlParameter("@OP",SqlDbType.VarChar,10),//操作员
new SqlParameter("@CUSTSERVICE",SqlDbType.VarChar,10),//客服
new SqlParameter("@LANE",SqlDbType.VarChar,30),//航线
new SqlParameter("@SALE",SqlDbType.VarChar,10),//揽货人
new SqlParameter("@CARRIER",SqlDbType.VarChar,20),//船公司
new SqlParameter("@FORWARDER",SqlDbType.VarChar,20),//订舱代理
new SqlParameter("@CUSTOMSER",SqlDbType.VarChar,20),//报关行
new SqlParameter("@TRUCKER",SqlDbType.VarChar,20),//承运车队
new SqlParameter("@INVNO",SqlDbType.VarChar,20),//发票号
new SqlParameter("@CARGOID",SqlDbType.Char,1),//货物标识
new SqlParameter("@DCLASS",SqlDbType.VarChar,5),//危险品分类/等级
new SqlParameter("@DUNNO",SqlDbType.VarChar,16),//危险品编号
new SqlParameter("@REEFERF",SqlDbType.VarChar,5),//冷藏通风量
new SqlParameter("@TEMPID",SqlDbType.Char,1),//温度单位
new SqlParameter("@TEMPSET",SqlDbType.VarChar,5),//设置温度
new SqlParameter("@TEMPMAX",SqlDbType.VarChar,5),//最高温度
new SqlParameter("@TEMPMIN",SqlDbType.VarChar,5),//最低温度
new SqlParameter("@BSSOURCE",SqlDbType.VarChar,36),//业务来源
new SqlParameter("@BSSOURCEDETAIL",SqlDbType.VarChar,36),//来源明细
new SqlParameter("@CUSTOMSNUM",SqlDbType.SmallInt),//报关票数
new SqlParameter("@CONTRACTNO",SqlDbType.VarChar,100),//运费协议号
new SqlParameter("@ORDTYPE",SqlDbType.VarChar,10),//订舱类型
new SqlParameter("@ORDERNO",SqlDbType.VarChar,20),//订舱编号
new SqlParameter("@INSURANCEER",SqlDbType.VarChar,30),//保险人
new SqlParameter("@INSURANCENO",SqlDbType.VarChar,20),//保险单号
new SqlParameter("@INAMOUT",SqlDbType.Decimal),//保险金额
new SqlParameter("@ISVOU",SqlDbType.Bit),//是否生成凭证
new SqlParameter("@VOUNO",SqlDbType.VarChar,12),//凭证号
new SqlParameter("@REMARK",SqlDbType.VarChar,200),//备注
new SqlParameter("@STATUS1",SqlDbType.Bit),//状态1
new SqlParameter("@STATUS2",SqlDbType.Bit),//状态2
new SqlParameter("@STATUS3",SqlDbType.Bit),//状态3
new SqlParameter("@STATUS4",SqlDbType.Bit),//状态4
new SqlParameter("@STATUS5",SqlDbType.Bit),//状态5
new SqlParameter("@ISFUMIGATION",SqlDbType.Bit),//熏蒸
new SqlParameter("@ISSTORAGE",SqlDbType.Bit),//仓储
new SqlParameter("@ISLAND",SqlDbType.Bit),//陆运
new SqlParameter("@ISCUSTOMS",SqlDbType.Bit),//报关
new SqlParameter("@ISINSPECTION",SqlDbType.Bit),//报检
new SqlParameter("@DOC",SqlDbType.VarChar,10),//单证
new SqlParameter("@PACKINGTYPE",SqlDbType.VarChar,10),//装箱类型
new SqlParameter("@WAREHOUSE",SqlDbType.VarChar,20),//仓库
//new SqlParameter("@CLOSEDOCDATE",SqlDbType.SmallDateTime),//截单日期
//new SqlParameter("@INTOPORTDATE",SqlDbType.SmallDateTime),//集港日期
new SqlParameter("@CORPID",SqlDbType.VarChar,36),//分公司代码
new SqlParameter("@SALEDEPT",SqlDbType.VarChar,20),//所属业务部门
new SqlParameter("@MBLFRT",SqlDbType.VarChar,20),//MBL付费方式
new SqlParameter("@ISBOOKING",SqlDbType.Bit),//订舱
new SqlParameter("@ISAGENT",SqlDbType.Bit),//使用代理
new SqlParameter("@ISHBLNO",SqlDbType.Bit),//分单签单
new SqlParameter("@SERVICE9",SqlDbType.Bit),//服务项目9
new SqlParameter("@SERVICE10",SqlDbType.Bit),//服务项目10
new SqlParameter("@STLNAME",SqlDbType.VarChar,6),//结算方式
new SqlParameter("@ORDERTYPE",SqlDbType.VarChar,10),//委托方式
new SqlParameter("@OPERATORCODE",SqlDbType.VarChar,6),// 客户操作代码
new SqlParameter("@OPERATOR",SqlDbType.VarChar,20),// 客户操作名称
new SqlParameter("@OPERATOREMAIL",SqlDbType.VarChar,50),// 操作电子邮箱
new SqlParameter("@OPERATORTEL",SqlDbType.VarChar,50),// 操作电话
new SqlParameter("@OPERATORFAX",SqlDbType.VarChar,50),// 操作传真
new SqlParameter("@FINANCIALSTAFFCODE",SqlDbType.VarChar,6),// 客户财务代码
new SqlParameter("@FINANCIALSTAFF",SqlDbType.VarChar,20),// 客户财务名称
new SqlParameter("@FINANCIALSTAFFEMAIL",SqlDbType.VarChar,50),// 财务电子邮箱
new SqlParameter("@FINANCIALSTAFFTEL",SqlDbType.VarChar,50),// 财务电话
new SqlParameter("@FINANCIALSTAFFFAX",SqlDbType.VarChar,50),// 财务传真
new SqlParameter("@GID",SqlDbType.VarChar,36),//编号
new SqlParameter("@DOCGID",SqlDbType.VarChar,36),//Edi文件编码
new SqlParameter("@ISOK",SqlDbType.Bit),//是否导入成功
new SqlParameter("@CAUSE",SqlDbType.VarChar,100)//失败的原因
//new SqlParameter("@STLNAME",SqlDbType.DateTime)//结算日期
};
return parms;
}
#endregion
}
}