|
|
@@ -85,7 +85,7 @@ func (s *LimsReportLiquidTransportationService) DataToExcelReport(entrustMainEnt
|
|
|
etasys, err := strconv.ParseFloat(fmt.Sprintf("%.3f", rho*g*(h-h1)*q*math.Pow(10, -3)/pgr/100), 64) // 泵机组系统效率
|
|
|
etaj := 0.00 // 节流损失率
|
|
|
|
|
|
- datamap["pn "] = pn
|
|
|
+ datamap["pn"] = pn
|
|
|
datamap["qn"] = qn
|
|
|
datamap["q"] = q
|
|
|
datamap["pgr"] = pgr
|
|
|
@@ -108,6 +108,7 @@ func (s *LimsReportLiquidTransportationService) DataToExcelReport(entrustMainEnt
|
|
|
datamap["etag"] = etag
|
|
|
datamap["h1"] = h1
|
|
|
datamap["etasys"] = etasys
|
|
|
+ datamap["cosphi"] = cosphi
|
|
|
|
|
|
if (etag >= limitval1) {
|
|
|
datamap["res1"] = "合格"
|
|
|
@@ -135,12 +136,16 @@ func (s *LimsReportLiquidTransportationService) DataToExcelReport(entrustMainEnt
|
|
|
datamap["jcnum"] = reportList[0].CreateOn.Format("2006-01-02")
|
|
|
datamap["jcdate"] = reportList[0].CreateOn.Format("2006年01月02日")
|
|
|
datamap["spec"] = reportList[0].Model1
|
|
|
- //datamap["number"] = reportList[0].DeviceName
|
|
|
+ datamap["devno"] = reportList[0].DeviceName
|
|
|
datamap["place"] = reportList[0].InstalPosition
|
|
|
//datamap["instr"] = reportList[0].MonitoringInstrument
|
|
|
datamap["limit1"] = limitval1
|
|
|
datamap["limit2"] = limitval2
|
|
|
datamap["limit3"] = limitval3
|
|
|
+
|
|
|
+ datamap["bjxh"] = limitval3 // 电机型号
|
|
|
+
|
|
|
+
|
|
|
reportUrl = svcActiviti.FillWordTemplate(datamap, templateUrl, fileName)
|
|
|
|
|
|
return reportUrl, err
|