MsOpAirnDAL.ExecSql(" update Op_Airn set OTFEE1='燃油费',OTFEE1AMOUNT='"+shFuelFee+"' where BLTYPE='国内主单' and HBLNO='"+headData.HBLNO+"' and isnull(ISVOID,0)=0 ");
updstr=" update Op_Airn set OTFEE1='燃油费',OTFEE1AMOUNT='"+shFuelFee+"' where BLTYPE='国内主单' and HBLNO='"+headData.HBLNO+"' and isnull(ISVOID,0)=0 ";
MsOpAirnDAL.ExecSql(" update Op_Airn set OTFEE1='燃油费',OTFEE1AMOUNT='"+qhFuelFee+"' where BLTYPE='国内主单' and HBLNO='"+headData.HBLNO+"' and isnull(ISVOID,0)=0 ");
updstr =" update Op_Airn set OTFEE1='燃油费',OTFEE1AMOUNT='"+qhFuelFee+"' where BLTYPE='国内主单' and HBLNO='"+headData.HBLNO+"' and isnull(ISVOID,0)=0 ";
break;
case"南方航空":
fuelFee=0.2*weight;
//燃油费向上取整
intnfFuelFee=(int)(Math.Ceiling(fuelFee));
MsOpAirnDAL.ExecSql(" update Op_Airn set OTFEE1='燃油费',OTFEE1AMOUNT='"+nfFuelFee+"' where BLTYPE='国内主单' and HBLNO='"+headData.HBLNO+"' and isnull(ISVOID,0)=0 ");
updstr =" update Op_Airn set OTFEE1='燃油费',OTFEE1AMOUNT='"+nfFuelFee+"' where BLTYPE='国内主单' and HBLNO='"+headData.HBLNO+"' and isnull(ISVOID,0)=0 ";
MsOpAirnDAL.ExecSql(" update Op_Airn set OTFEE1='燃油费',OTFEE1AMOUNT='"+fuelFee+"' where BLTYPE='国内主单' and HBLNO='"+headData.HBLNO+"' and isnull(ISVOID,0)=0 ");
updstr =" update Op_Airn set OTFEE1='燃油费',OTFEE1AMOUNT='"+fuelFee+"' where BLTYPE='国内主单' and HBLNO='"+headData.HBLNO+"' and isnull(ISVOID,0)=0 ";
MsOpAirnDAL.ExecSql(" update Op_Airn set OTFEE1='燃油费',OTFEE1AMOUNT='"+fuelFee+"' where BLTYPE='国内主单' and HBLNO='"+headData.HBLNO+"' and isnull(ISVOID,0)=0 ");
updstr =" update Op_Airn set OTFEE1='燃油费',OTFEE1AMOUNT='"+fuelFee+"' where BLTYPE='国内主单' and HBLNO='"+headData.HBLNO+"' and isnull(ISVOID,0)=0 ";
MsOpAirnDAL.ExecSql(" update Op_Airn set OTFEE1='燃油费',OTFEE1AMOUNT='"+fuelFee+"' where BLTYPE='国内主单' and HBLNO='"+headData.HBLNO+"' and isnull(ISVOID,0)=0 ");
updstr =" update Op_Airn set OTFEE1='燃油费',OTFEE1AMOUNT='"+fuelFee+"' where BLTYPE='国内主单' and HBLNO='"+headData.HBLNO+"' and isnull(ISVOID,0)=0 ";
MsOpAirnDAL.ExecSql(" update Op_Airn set OTFEE1='燃油费',OTFEE1AMOUNT='"+fuelFee+"' where BLTYPE='国内主单' and HBLNO='"+headData.HBLNO+"' and isnull(ISVOID,0)=0 ");
updstr =" update Op_Airn set OTFEE1='燃油费',OTFEE1AMOUNT='"+fuelFee+"' where BLTYPE='国内主单' and HBLNO='"+headData.HBLNO+"' and isnull(ISVOID,0)=0 ";
break;
default:
fuelFee=0.2*weight;
//燃油费四舍五入取整,前端用的tofixed()
intotherFuelFee=(int)(Math.Round(fuelFee,0));
MsOpAirnDAL.ExecSql(" update Op_Airn set OTFEE1='燃油费',OTFEE1AMOUNT='"+otherFuelFee+"' where BLTYPE='国内主单' and HBLNO='"+headData.HBLNO+"' and isnull(ISVOID,0)=0 ");
updstr =" update Op_Airn set OTFEE1='燃油费',OTFEE1AMOUNT='"+otherFuelFee+"' where BLTYPE='国内主单' and HBLNO='"+headData.HBLNO+"' and isnull(ISVOID,0)=0 ";