/** * 根据气体信息生成打印模版 * * @param depotData * 仓库基本信息 * @param grainData * 粮情数据信息 */ builderModel = function(curData,dept) { var depotData = curData.depotData; var listPoint = curData.listPoint; var model = "\n" + "
采集位 | CO2 | O2 | PH3 | N2 | 采集位 | CO2 | O2 | PH3 | N2 | |||||
采集位 " + point.passCode + " | "; model += "" + attrPoint(point, curData, "CO2") + " | "; model += "" + attrPoint(point, curData, "O2") + " | "; model += "" + attrPoint(point, curData, "PH3") + " | "; model += "" + attrPoint(point, curData, "N2") + " | "; index++; if (index > listPoint.length) { model += ""; model += " | "; model += " | "; model += " | "; model += " | "; } else { point = listPoint[index - 1]; model += " | 采集位 " + point.passCode + " | "; model += "" + attrPoint(point, curData, "CO2") + " | "; model += "" + attrPoint(point, curData, "O2") + " | "; model += "" + attrPoint(point, curData, "PH3") + " | "; model += "" + attrPoint(point, curData, "N2") + " | "; index++; } model += "
检测分析: | "; model += "" + (curData.remark == null ? "/" : curData.remark) + " | |||
最高 | 最低 | 平均 | 备注 | |
CO2(PPM) | " + curData.perCo2Max + " | "; model += "" + curData.perCo2Min + " | "; model += "" + curData.perCo2 + " | "; model += "|
O2(%) | " + curData.perO2Max + " | "; model += "" + curData.perO2Min + " | "; model += "" + curData.perO2 + " | "; model += "|
PH3(PPM) | " + curData.perPh3Max + " | "; model += "" + curData.perPh3Min + " | "; model += "" + curData.perPh3 + " | "; model += "|
N2(%) | " + curData.perN2Max + " | "; model += "" + curData.perN2Min + " | "; model += "" + curData.perN2 + " | "; model += "|
仓房类型 | " + depotData.depotTypeName + " | "; model += "入仓日期 | " + (depotData.storeDate == null ? "/" : depotData.storeDate) + " | |
粮食品种 | " + depotData.foodVarietyName + " | "; model += "实际储量(吨) | " + (depotData.storageReal == null ? "/" : (Number(depotData.storageReal)/1000).toFixed(2)) + " | |
入仓水分(%) | " + (depotData.perWet == null ? "/" : depotData.perWet) + " | "; model += "当前水分(%) | " + (depotData.perWet == null ? "/" : depotData.perWet) + " | |
出糙率(%) | " + (depotData.rough == null ? "/" : depotData.rough) + " | "; model += "粮食产地 | " + (depotData.foodLocation == null ? "/" : depotData.foodLocation) + " | |
容重(kg/m3) | " + (depotData.bulkWeight == null ? "/" : depotData.bulkWeight) + " | "; model += "面筋持水率(%) | " + (depotData.waterGluten == null ? "/" : depotData.waterGluten) + " | |
杂质(%) | " + (depotData.perImpurity == null ? "/" : depotData.perImpurity) + " | "; model += "不完善粒(%) | " + (depotData.broken == null ? "/" : depotData.broken) + " | |
检测人 | " + curData.checkUser + " | "; model += "保管员 | " + (depotData.storeKeeperName == null ? "/" : depotData.storeKeeperName) + " |