日期:2014-05-17 浏览次数:20691 次
function Fun_FillParent_TaskContent(taskID,taskNo)
{
ClearProductSignRow();
$.ajax({
type: "POST", //用POST方式传输
dataType: "json", //数据格式:JSON
url: "../../../Handler/Office/ProductionManager/ManufactureTaskInfo1.ashx?ID=" + taskID, //目标地址
cache: false,
success: function(msg) {
var countProductCount = 0;
var rowsCountProduct = 0;
}
if (typeof (msg.dataDetail) != 'undefined') {
$.each(msg.dataDetail, function(i, item) {
if (item.DetailID != null && item.DetailID != "") {
/*启用多计量单位:UsedUnitCount-ProductedCount
停用多计量单位:ProductCount-ProductedCount
*/
document.getElementById('txtTaskNo').value = item.TaskNo;
document.getElementById('txtHiddenTaskID').value = item.ID;
document.getElementById('txtHiddenProductID').value = item.ProductID
FillSignRowProduct(i, 'Product', item.ProductID, '', unFinishCount, unFinishCount, '', '', item.ProdNo, item.ProductName, item.TaskNo, item.DetailID, item.SortNo);
}
});
document.getElementById('txtTRLastIndex_Product').value = rowsCountProduct + 1;
}
document.getElementById('txtProductionTotal').value = parseFloat(countProductCount).toFixed(glb_SelPoint); //完成数合计
},