Stringsql1="select agp.sURL, agp.nLength, agp.sPicTypeID from tAgentGoodsPic agp, tAgentContractGoods acg where agp.nAgentID = acg.nAgentID and agp.nGoodsID = acg.nGoodsID and acg.sAgentContractNO = ? and acg.nGoodsID = ?";
Stringsql2="select gp.sURL, gp.nLength, gp.sPicTypeID from tGoodsPic gp where gp.nGoodsID = ?";