@ -30,9 +30,9 @@ namespace DSWeb.SoftMng.DAL
{
StringBuilder strSql = new StringBuilder ( ) ;
strSql . Append ( "insert into DecList(" ) ;
strSql . Append ( "GID,GNo,ContrItem,CodeTS,CiqCode,CiqCode_Text,GName,GModel,GQty,GUnit,GUnit_Text,DeclPrice,DeclTotal,TradeCurr,TradeCurr_Text,FirstQty,FirstUnit,FirstUnit_Text,ExgVersion,ExgNo,DestinationCountry,DestinationCountry_Text,SecondQty,SecondUnit,SecondUnit_Text,OriginCountry,OriginCountry_Text,DistrictCode,DistrictCode_Text,DestCode,DestCode_Text,DutyMode,DutyMode_Text,GoodsAttr,GoodsAttr_Text,Purpose,Purpose_Text,NoDangFlag,Uncode,DangName,DangPackType,DangPackSpec,DangPackSpec_Text,Stuff,ProdValidDt,ProdQgp,EngManEntCnm,GoodsSpec,GoodsModel,GoodsBrand,ProduceDate,ProdBatchNo,MnufctrRegNo, PID") ;
strSql . Append ( "GID,GNo,ContrItem,CodeTS,CiqCode,CiqCode_Text,GName,GModel,GQty,GUnit,GUnit_Text,DeclPrice,DeclTotal,TradeCurr,TradeCurr_Text,FirstQty,FirstUnit,FirstUnit_Text,ExgVersion,ExgNo,DestinationCountry,DestinationCountry_Text,SecondQty,SecondUnit,SecondUnit_Text,OriginCountry,OriginCountry_Text,DistrictCode,DistrictCode_Text,DestCode,DestCode_Text,DutyMode,DutyMode_Text,GoodsAttr,GoodsAttr_Text,Purpose,Purpose_Text,NoDangFlag,Uncode,DangName,DangPackType,DangPackSpec,DangPackSpec_Text,Stuff,ProdValidDt,ProdQgp,EngManEntCnm,GoodsSpec,GoodsModel,GoodsBrand,ProduceDate,ProdBatchNo,MnufctrRegNo, cusSupvDmd, PID") ;
strSql . Append ( ") values (" ) ;
strSql . Append ( "@GID,@GNo,@ContrItem,@CodeTS,@CiqCode,@CiqCode_Text,@GName,@GModel,@GQty,@GUnit,@GUnit_Text,@DeclPrice,@DeclTotal,@TradeCurr,@TradeCurr_Text,@FirstQty,@FirstUnit,@FirstUnit_Text,@ExgVersion,@ExgNo,@DestinationCountry,@DestinationCountry_Text,@SecondQty,@SecondUnit,@SecondUnit_Text,@OriginCountry,@OriginCountry_Text,@DistrictCode,@DistrictCode_Text,@DestCode,@DestCode_Text,@DutyMode,@DutyMode_Text,@GoodsAttr,@GoodsAttr_Text,@Purpose,@Purpose_Text,@NoDangFlag,@Uncode,@DangName,@DangPackType,@DangPackSpec,@DangPackSpec_Text,@Stuff,@ProdValidDt,@ProdQgp,@EngManEntCnm,@GoodsSpec,@GoodsModel,@GoodsBrand,@ProduceDate,@ProdBatchNo,@MnufctrRegNo,@ PID") ;
strSql . Append ( "@GID,@GNo,@ContrItem,@CodeTS,@CiqCode,@CiqCode_Text,@GName,@GModel,@GQty,@GUnit,@GUnit_Text,@DeclPrice,@DeclTotal,@TradeCurr,@TradeCurr_Text,@FirstQty,@FirstUnit,@FirstUnit_Text,@ExgVersion,@ExgNo,@DestinationCountry,@DestinationCountry_Text,@SecondQty,@SecondUnit,@SecondUnit_Text,@OriginCountry,@OriginCountry_Text,@DistrictCode,@DistrictCode_Text,@DestCode,@DestCode_Text,@DutyMode,@DutyMode_Text,@GoodsAttr,@GoodsAttr_Text,@Purpose,@Purpose_Text,@NoDangFlag,@Uncode,@DangName,@DangPackType,@DangPackSpec,@DangPackSpec_Text,@Stuff,@ProdValidDt,@ProdQgp,@EngManEntCnm,@GoodsSpec,@GoodsModel,@GoodsBrand,@ProduceDate,@ProdBatchNo,@MnufctrRegNo,@ cusSupvDmd,@ PID") ;
strSql . Append ( ") " ) ;
SqlParameter [ ] parameters = {
@ -88,7 +88,9 @@ namespace DSWeb.SoftMng.DAL
new SqlParameter ( "@GoodsBrand" , SqlDbType . NVarChar , 50 ) ,
new SqlParameter ( "@ProduceDate" , SqlDbType . NVarChar , 100 ) ,
new SqlParameter ( "@ProdBatchNo" , SqlDbType . NVarChar , 50 ) ,
new SqlParameter ( "@MnufctrRegNo" , SqlDbType . VarChar , 50 ) ,
new SqlParameter ( "@MnufctrRegNo" , SqlDbType . VarChar , 50 ) ,
new SqlParameter ( "@cusSupvDmd" , SqlDbType . VarChar , 50 ) ,
new SqlParameter ( "@PID" , SqlDbType . VarChar , 50 )
} ;
@ -145,8 +147,11 @@ namespace DSWeb.SoftMng.DAL
parameters [ 49 ] . Value = model . GoodsBrand ? ? ( Object ) DBNull . Value ;
parameters [ 50 ] . Value = model . ProduceDate ? ? ( Object ) DBNull . Value ;
parameters [ 51 ] . Value = model . ProdBatchNo ? ? ( Object ) DBNull . Value ;
parameters [ 52 ] . Value = model . MnufctrRegNo ? ? ( Object ) DBNull . Value ;
parameters [ 53 ] . Value = model . PID ? ? ( Object ) DBNull . Value ;
parameters [ 52 ] . Value = model . MnufctrRegNo ? ? ( Object ) DBNull . Value ;
parameters [ 53 ] . Value = model . cusSupvDmd ? ? ( Object ) DBNull . Value ;
parameters [ 54 ] . Value = model . PID ? ? ( Object ) DBNull . Value ;
return DbHelperSQL . ExecuteSql ( strSql . ToString ( ) , parameters ) ;
}
/// <summary>
@ -209,8 +214,9 @@ namespace DSWeb.SoftMng.DAL
strSql . Append ( " GoodsBrand = @GoodsBrand," ) ;
strSql . Append ( " ProduceDate = @ProduceDate," ) ;
strSql . Append ( " ProdBatchNo = @ProdBatchNo," ) ;
strSql . Append ( " MnufctrRegNo = @MnufctrRegNo," ) ;
strSql . Append ( " PID = @PID" ) ;
strSql . Append ( " MnufctrRegNo = @MnufctrRegNo," ) ;
strSql . Append ( " cusSupvDmd = @cusSupvDmd," ) ;
strSql . Append ( " PID = @PID" ) ;
strSql . Append ( " where GID=@GID " ) ;
SqlParameter [ ] parameters = {
new SqlParameter ( "@GID" , SqlDbType . VarChar , 50 ) ,
@ -266,6 +272,8 @@ namespace DSWeb.SoftMng.DAL
new SqlParameter ( "@ProduceDate" , SqlDbType . NVarChar , 50 ) ,
new SqlParameter ( "@ProdBatchNo" , SqlDbType . NVarChar , 50 ) ,
new SqlParameter ( "@MnufctrRegNo" , SqlDbType . VarChar , 50 ) ,
new SqlParameter ( "@cusSupvDmd" , SqlDbType . VarChar , 50 ) ,
new SqlParameter ( "@PID" , SqlDbType . VarChar , 50 )
} ;
@ -321,8 +329,10 @@ namespace DSWeb.SoftMng.DAL
parameters [ 49 ] . Value = model . GoodsBrand ? ? ( Object ) DBNull . Value ;
parameters [ 50 ] . Value = model . ProduceDate ? ? ( Object ) DBNull . Value ;
parameters [ 51 ] . Value = model . ProdBatchNo ? ? ( Object ) DBNull . Value ;
parameters [ 52 ] . Value = model . MnufctrRegNo ? ? ( Object ) DBNull . Value ;
parameters [ 53 ] . Value = model . PID ? ? ( Object ) DBNull . Value ;
parameters [ 52 ] . Value = model . MnufctrRegNo ? ? ( Object ) DBNull . Value ;
parameters [ 53 ] . Value = model . cusSupvDmd ? ? ( Object ) DBNull . Value ;
parameters [ 54 ] . Value = model . PID ? ? ( Object ) DBNull . Value ;
return DbHelperSQL . ExecuteSql ( strSql . ToString ( ) , parameters ) ;
}
/// <summary>
@ -358,7 +368,7 @@ namespace DSWeb.SoftMng.DAL
public DataSet GetModel ( string GID )
{
StringBuilder strSql = new StringBuilder ( ) ;
strSql . Append ( "select GID, GNo, ContrItem, CodeTS, CiqCode, CiqCode_Text, GName, GModel, GQty, GUnit, GUnit_Text, DeclPrice, DeclTotal, TradeCurr, TradeCurr_Text, FirstQty, FirstUnit, FirstUnit_Text, ExgVersion, ExgNo, DestinationCountry, DestinationCountry_Text, SecondQty, SecondUnit, SecondUnit_Text, OriginCountry, OriginCountry_Text, DistrictCode, DistrictCode_Text, DestCode, DestCode_Text, DutyMode, DutyMode_Text, GoodsAttr, GoodsAttr_Text, Purpose, Purpose_Text, NoDangFlag, Uncode, DangName, DangPackType, DangPackSpec, DangPackSpec_Text, Stuff, ProdValidDt, ProdQgp, EngManEntCnm, GoodsSpec, GoodsModel, GoodsBrand, ProduceDate, ProdBatchNo, MnufctrRegNo, PID ") ;
strSql . Append ( "select GID, GNo, ContrItem, CodeTS, CiqCode, CiqCode_Text, GName, GModel, GQty, GUnit, GUnit_Text, DeclPrice, DeclTotal, TradeCurr, TradeCurr_Text, FirstQty, FirstUnit, FirstUnit_Text, ExgVersion, ExgNo, DestinationCountry, DestinationCountry_Text, SecondQty, SecondUnit, SecondUnit_Text, OriginCountry, OriginCountry_Text, DistrictCode, DistrictCode_Text, DestCode, DestCode_Text, DutyMode, DutyMode_Text, GoodsAttr, GoodsAttr_Text, Purpose, Purpose_Text, NoDangFlag, Uncode, DangName, DangPackType, DangPackSpec, DangPackSpec_Text, Stuff, ProdValidDt, ProdQgp, EngManEntCnm, GoodsSpec, GoodsModel, GoodsBrand, ProduceDate, ProdBatchNo, MnufctrRegNo, cusSupvDmd, PID ") ;
strSql . Append ( " from DecList " ) ;
strSql . Append ( " where GID=@GID " ) ;
SqlParameter [ ] parameters = {