wangzelong
2022-09-20 f2567c7e2afc6f377be549c8ce440edc3c35c36a
Application/IStation.Application.DataFile/eta_day_report/PdfCreate/Eta_Day_ReportPdf.cs
ÎļþÃû´Ó Application/IStation.Application.DataFile/Report/PdfCreate/Eta_Day_ReportPdf.cs ÐÞ¸Ä
@@ -31,7 +31,7 @@
        /// ç”ŸæˆæŠ¥è¡¨
        /// </summary>
        /// <param name="station">泵站信息</param>
        /// <param name="sum">汇总</param>
        /// <param name="datatime">时间</param>
        /// <param name="pipeList">机泵管路列表</param>
        /// <param name="list">机泵信息列表</param>
        /// <param name="path">路径</param>
@@ -356,8 +356,10 @@
                var EnginePump = ProductList.Find(x => x.BelongID == stationID && x.Name == EnginePumpLine.Name);
                var Pump = seviceEnginePump.GetChildPumpByEnginePumpID(EnginePump.CorpID, EnginePump.ID);
                var Motor = seviceEnginePump.GetChildMotorByEnginePumpID(EnginePump.CorpID, EnginePump.ID);
                cell = CreateCell2(EnginePump?.Name, _fontSize11, 1, 4, 40, 0, Element.ALIGN_CENTER);
                string EnginePumpName = "";
                    if(EnginePump!=null)
                    EnginePumpName=EnginePump.Name;
                cell = CreateCell2(EnginePumpName, _fontSize11, 1, 5, 40, 0, Element.ALIGN_CENTER);
                table.AddCell(cell);
                cell = CreateCell2("状态", _fontSize11, 1, 1, 40, 0, Element.ALIGN_CENTER);
                table.AddCell(cell);
@@ -372,6 +374,7 @@
                if (usetatus == 0)
                    cell.BackgroundColor = BaseColor.Gray;
                table.AddCell(cell);
                cell = CreateCell2("运行时间" + " (h)", _fontSize11, 1, 1, 40, 0, Element.ALIGN_CENTER);
                table.AddCell(cell);
                var runtime = Math.Round((decimal)item.RunTime / 3600, 1);
@@ -379,11 +382,17 @@
                table.AddCell(cell);
                cell = CreateCell2("泵型号", _fontSize11, 1, 1, 40, 0, Element.ALIGN_CENTER);
                table.AddCell(cell);
                cell = CreateCell2(Pump?.Code, _fontSize11, 1, 1, 40, 0, Element.ALIGN_CENTER);
                string PumpCode = "";
                if (Pump != null)
                    PumpCode = Pump.Code;
                cell = CreateCell2(PumpCode, _fontSize11, 1, 1, 40, 0, Element.ALIGN_CENTER);
                table.AddCell(cell);
                cell = CreateCell2("电机型号", _fontSize11, 1, 1, 40, 0, Element.ALIGN_CENTER);
                table.AddCell(cell);
                cell = CreateCell2(Motor?.Code, _fontSize11, 1, 1, 40, 0, Element.ALIGN_CENTER);
                string MotorCode = "";
                if (Pump != null)
                    MotorCode = Motor.Code;
                cell = CreateCell2(MotorCode, _fontSize11, 1, 1, 40, 0, Element.ALIGN_CENTER);
                table.AddCell(cell);
                cell = CreateCell2("总电能" + " (A)", _fontSize11, 1, 1, 40, 0, Element.ALIGN_CENTER);
                table.AddCell(cell);
@@ -427,7 +436,14 @@
                    wpavg = Math.Round((double)item.WPavg, 2).ToString();
                if (item.WPavg > 1000)
                    wpavg = Math.Round((double)item.WPavg, 1).ToString();
                cell = CreateCell2(item.WPavg < 1 ? @"/" : wpavg, _fontSize11, 1, 1, 40, 0, Element.ALIGN_CENTER);
                cell = CreateCell2(item.WPavg ==0 ? @"/" : wpavg, _fontSize11, 1, 1, 40, 0, Element.ALIGN_CENTER);
                table.AddCell(cell);
                cell = CreateCell2("耗煤" + " (t)", _fontSize11, 1, 1, 40, 0, Element.ALIGN_CENTER);
                table.AddCell(cell);
                var run_coal = item.Pavg + item.BootTimes / 3600f;
                var value = ((run_coal / 10000f) * 2.7978);
                cell = CreateCell2(value == 0?"/": Math.Round((double)value, 5).ToString(), _fontSize11, 3, 1, 40, 0, Element.ALIGN_CENTER);
                table.AddCell(cell);
            }
            table.SetWidths(widths);