//加法运算 ljk
function countItemProductSelect() {
var countPrice = 0;
$("#itemProductSelect tr:not(:first)").each(function() {
countPrice = parseFloat(countPrice).countAdd(parseFloat($("td:nth-child(5) span", this).text()) * parseInt($("td:nth-child(7) input", this).val()));
$("td:nth-child(8) div", this).html(parseFloat($("td:nth-child(5) span", this).text()) * parseInt($("td:nth-child(7) input", this).val()));
//alert(countPrice);
})
$("#inputCountPrice").val(countPrice);//为input赋值
$("#countPriceSpan").html(countPrice);
//alert($("#inputCountPrice").val());
}
//屏蔽所有的input,select,id="querySubmit"的submit控件,让其不可修改,也就是只读类型
function setAllInputIdReadOnly() {
$("input:text").attr("readonly", "readonly");
$("input:text").css('background-color', '#F5F5F5');//input元素下text类添加class
//查询按键
$('#querySubmit').attr("disabled", true);
$("select").each(function() {
$(this).attr("disabled", true);
})
$("textarea").attr("readonly", "readonly");
$("textarea").css('background-color', '#F5F5F5');
//开启要用的订单状态控件
$('#bookFormBookStatus').removeAttr("disabled");
}