+" select * from op_airi WHERE BSNO = '"+_thisfee.strPBSNO+"'";
};
// sql3 = sql3 + " Select c.*,(select showname from [user] where gid=c.enteroperator) as 录入人 from ch_fee c where c.Gid in (" + feeGidSql + ") order by sort,LineNum ";
varinputby='';
if(strLANGUAGES=='en-us'){
inputby='INPUTBYREF'
}else{
inputby='录入人'
}
// sql3 = sql3 + " Select c.*,(select showname from [user] where gid=c.enteroperator) as 录入人 from ch_fee c where c.Gid in (" + feeGidSql + ") order by sort,LineNum ";
varsql2="SET LANGUAGE 'us_english' Select c.*,(select showname from [user] where gid=c.enteroperator) as 录入人,(select DESCRIPTION from info_client where SHORTNAME=c.CUSTOMERNAME) CUSTFULLNAME from ch_fee c where c.BSNO='"+_thisfee.strBSNO+"' and c.FEETYPE=1 order by sort,LineNum ";
varsql2="SET LANGUAGE 'us_english' Select c.*,(select showname from [user] where gid=c.enteroperator) as " +inputby+",(select DESCRIPTION from info_client where SHORTNAME=c.CUSTOMERNAME) CUSTFULLNAME from ch_fee c where c.BSNO='" +_this.strBSNO+"' and " +printdrsql+" and c.FEETYPE=1 order by sort,LineNum ";
varsql3="SET LANGUAGE 'us_english' Select c.*,(select showname from [user] where gid=c.enteroperator) as 录入人,(select DESCRIPTION from info_client where SHORTNAME=c.CUSTOMERNAME) CUSTFULLNAME from ch_fee c where c.BSNO='"+_thisfee.strBSNO+"' and c.FEETYPE=2 order by sort,LineNum ";
varsql3="SET LANGUAGE 'us_english' Select c.*,(select showname from [user] where gid=c.enteroperator) as " +inputby+",(select DESCRIPTION from info_client where SHORTNAME=c.CUSTOMERNAME) CUSTFULLNAME from ch_fee c where c.BSNO='" +_this.strBSNO+"' and " +printcrsql+" and c.FEETYPE=2 order by sort,LineNum ";
//全部费用利润 或 海运费利润 或 仓储利润
varsql4="SELECT BSNO"
+",SUM(RMBDR) as RMBDR,SUM(RMBCR) as RMBCR,SUM(USDDR) as USDDR,SUM(USDCR) as USDCR"
// sql3 = sql3 + " Select c.*,(select showname from [user] where gid=c.enteroperator) as 录入人 from ch_fee c where c.Gid in (" + feeGidSql + ") order by sort,LineNum ";
varsql2="SET LANGUAGE 'us_english' Select c.*,(select showname from [user] where gid=c.enteroperator) as 录入人 from ch_fee c where c.BSNO='"+_thisfeeview.strBSNO+"' and c.FEETYPE=1 order by sort,LineNum ";
varsql2="SET LANGUAGE 'us_english' Select c.*,(select showname from [user] where gid=c.enteroperator) as 录入人 from ch_fee c where c.BSNO='"+_thisfeeview.strBSNO+"' and " +printdrsql+" and c.FEETYPE=1 order by sort,LineNum ";
varsql3="SET LANGUAGE 'us_english' Select c.*,(select showname from [user] where gid=c.enteroperator) as 录入人 from ch_fee c where c.BSNO='"+_thisfeeview.strBSNO+"' and c.FEETYPE=2 order by sort,LineNum ";
varsql3="SET LANGUAGE 'us_english' Select c.*,(select showname from [user] where gid=c.enteroperator) as 录入人 from ch_fee c where c.BSNO='"+_thisfeeview.strBSNO+"' and " +printcrsql+" and c.FEETYPE=2 order by sort,LineNum ";
//全部费用利润 或 海运费利润 或 仓储利润
varsql4="SELECT BSNO"
+",SUM(RMBDR) as RMBDR,SUM(RMBCR) as RMBCR,SUM(USDDR) as USDDR,SUM(USDCR) as USDCR"