ÎļþÃû´Ó Application/IStation.Application.DataFile/Report/PdfCreate/Eta_Day_ReportPdf.cs ÐÞ¸Ä |
| | |
| | | /// çææ¥è¡¨ |
| | | /// </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> |
| | |
| | | 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); |
| | |
| | | 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); |
| | |
| | | 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); |
| | |
| | | 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); |