Add, search, delete, modify to the bottom

//计费方法
Vehicle_sum:function(){
var sum = /^[0-9]\d{0,5}$/;
var trafficCompulsoryInsuranceCost=$("#vehicleInsurance_add_trafficCompulsoryInsuranceCost").textbox('getValue');
trafficCompulsoryInsuranceCost=parseInt(trafficCompulsoryInsuranceCost);
if(!trafficCompulsoryInsuranceCost == ''){
if(!sum.test(trafficCompulsoryInsuranceCost)){
Message.error("请输入正确的保险!");
return;
}
}
var commercialInsuranceCost=$("#vehicleInsurance_add_commercialInsuranceCost").textbox('getValue');
commercialInsuranceCost=parseInt(commercialInsuranceCost);
if(!commercialInsuranceCost == ''){
if(!sum.test(commercialInsuranceCost)){
Message.error ( "Please enter the correct insurance!");
return;
}
}
var carrierInsuranceCost = $ ( "# vehicleInsurance_add_carrierInsuranceCost") TextBox ( 'the getValue');.
carrierInsuranceCost = the parseInt (carrierInsuranceCost);
IF (carrierInsuranceCost == ''!) {
IF {(sum.test (carrierInsuranceCost)!)
Message.error ( "Please enter the correct insurance!");
return;
}
}
. vehicleAndVesselTaxCost var = $ ( "# vehicleInsurance_add_vehicleAndVesselTaxCost") the TextBox ( 'getValue');
vehicleAndVesselTaxCost = parseInt (vehicleAndVesselTaxCost);
! IF (vehicleAndVesselTaxCost == ' ') {
IF) {(sum.test (vehicleAndVesselTaxCost!)
Message.Error An ( "Please enter the correct insurance!");
return;
}
}
var total = trafficCompulsoryInsuranceCost+commercialInsuranceCost+carrierInsuranceCost+vehicleAndVesselTaxCost;
$("#vehicleInsurance_add_totalCost").textbox("setValue",total);
---------------------

Guess you like

Origin www.cnblogs.com/hyhy904/p/11291146.html