¶Ô±ÈÐÂÎļþ |
| | |
| | | using Aspose.Words; |
| | | using Aspose.Words.Layout; |
| | | using Aspose.Words.Tables; |
| | | |
| | | namespace HStation.WinFrmUI |
| | | { |
| | | /// <summary> |
| | | /// 工嵿¥åè¾
å©ç±» |
| | | /// </summary> |
| | | public class SimulationWorkingReportHelper |
| | | { |
| | | |
| | | //æåæè¿°è¿è¡æ¨¡å¼ä»ç» äºï¼è¿è¡æ
åµä¸è½èåæä¸ "å
¨å¹´:"å |
| | | private string _run_mode = "*******************************************************************"; |
| | | |
| | | //è¿è¡æ¶é´è®¡ç®æ¹å¼ äºï¼è¿è¡æ
åµä¸è½èåæä¸ âå¹´å¹³åè¿è¡æ¶é´æï¼âå |
| | | private string _avg_runtime_mode = "**************************"; |
| | | |
| | | //æ_Company_1å
¬å¸å¾ªç¯æ°´ç³»ç»å¹³åè¿è¡***å°æ¶ åï¼é¡¹ç®èçµæçåæä¸ |
| | | private string _Company_1 = "****************"; |
| | | |
| | | //æ****å
¬å¸å¾ªç¯æ°´ç³»ç»å¹³åè¿è¡_Avg_Hourå°æ¶ åï¼é¡¹ç®èçµæçåæä¸ |
| | | private string _Avg_Hour = "*******"; |
| | | |
| | | //ç³»ç»å¹´èçµéï¼_Electricityï¼******ï¼ä¸åº¦ï¼ åï¼é¡¹ç®èçµæçåæä¸ |
| | | private string _Electricity = "*******"; |
| | | |
| | | //ç³»ç»å¹´èçµéï¼******ï¼_Electricity_kWhï¼ä¸åº¦ï¼ åï¼é¡¹ç®èçµæçåæä¸ |
| | | |
| | | private string _Electricity_kWh = "*******"; |
| | | |
| | | //æ¬æ¡æ¯å¨ç§ç»´å
¬å¸ææ¯äººåäº_Time对***æ°´ç³»ç»è¿è¡è¯¦ç»è°æ¥ äºï¼ç»¼è¿°ä¸ |
| | | private DateTime _Time = DateTime.Today; |
| | | |
| | | //æ¬æ¡æ¯å¨ç§ç»´å
¬å¸ææ¯äººåäº******对_Systemæ°´ç³»ç»è¿è¡è¯¦ç»è°æ¥ äºï¼ç»¼è¿°ä¸ |
| | | private string _System = "***********"; |
| | | |
| | | //éè¿ææ¹èçµææå¦ä¸ï¼æå¹´è¿è¡_Hourå°æ¶è®¡ï¼ï¼ äºï¼ç»¼è¿°ä¸ |
| | | private string _Hour = "*******"; |
| | | |
| | | // é常æè°¢_Company_2å
¬å¸åé¨é¨é¢å¯¼å¯¹èè½å·¥ä½çéè§åæ¯æ äºï¼ç»¼è¿°ä¸ æå表æè°¢çé¨å |
| | | private string _Company_2 = "****************"; |
| | | |
| | | //é常æè°¢_Company_3å
¬å¸ææ¯äººåå¯¹æ£æµå·¥ä½ç大åé
åï¼å¹¶æä¾å®è´µèµæåç³»ç»æ
åµ äºï¼ç»¼è¿°ä¸ æå表æè°¢çé¨å |
| | | private string _Company_3 = "****************"; |
| | | |
| | | //æ¥åç»å°¾ æ¶é´å¹´ |
| | | private int _Year = DateTime.Today.Year; |
| | | |
| | | //æ¥åç»å°¾ æ¶é´æ |
| | | private int _month = DateTime.Today.Month; |
| | | |
| | | |
| | | |
| | | /// <summary> |
| | | /// å建word |
| | | /// </summary> |
| | | public bool Create(string strFilePath, SimulationWorkingReportViewModel reportViewModel) |
| | | { |
| | | MemoryStream stream = Create4Stream(reportViewModel); |
| | | if (stream != null) |
| | | { |
| | | var data_bytes = stream.ToArray(); |
| | | |
| | | using (var fileStream = new System.IO.FileStream(strFilePath, FileMode.OpenOrCreate)) |
| | | { |
| | | fileStream.Write(data_bytes, 0, data_bytes.Length); |
| | | fileStream.Close(); |
| | | } |
| | | stream.Dispose(); |
| | | } |
| | | |
| | | return true; |
| | | } |
| | | |
| | | protected MemoryStream Create4Stream(SimulationWorkingReportViewModel reportViewModel) |
| | | { |
| | | Document doc = new Document(); |
| | | CreatePage(doc, reportViewModel); |
| | | |
| | | doc.RemoveChild(doc.FirstSection);//å é¤ç¬¬ä¸é¡µç©ºç½ |
| | | |
| | | MemoryStream strem = new MemoryStream(); |
| | | |
| | | doc.Save(strem, Aspose.Words.SaveFormat.Doc); |
| | | |
| | | return strem; |
| | | } |
| | | |
| | | protected void SetWordHander(Aspose.Words.Document doc, string title, string reportType) |
| | | { |
| | | DocumentBuilder builder = new Aspose.Words.DocumentBuilder(doc); |
| | | builder.MoveToHeaderFooter(HeaderFooterType.HeaderPrimary); |
| | | SimulationWordReportHelper Text_center_10_Gray = new SimulationWordReportHelper(builder) { fontalignment = ParagraphAlignment.Right, fontsize = 10, fontcolor = Color.Gray }; |
| | | Text_center_10_Gray.structureText(string.Format("{0}{1}", title, reportType)); |
| | | builder.InsertHorizontalRule(); |
| | | // ç§»å¨å°ä¸ä¸è¡ï¼ä»¥ä¾¿ç»§ç»æ·»å å
¶ä»å
容 |
| | | builder.MoveToDocumentStart(); |
| | | } |
| | | |
| | | protected void SetWordFooter(Aspose.Words.Document doc, string title, string reportType) |
| | | { |
| | | DocumentBuilder builder = new Aspose.Words.DocumentBuilder(doc); |
| | | |
| | | builder.MoveToHeaderFooter(HeaderFooterType.FooterPrimary); |
| | | SimulationWordReportHelper Text_center_10_Gray = new SimulationWordReportHelper(builder) { fontalignment = ParagraphAlignment.Left, fontsize = 10, fontcolor = Color.Gray }; |
| | | builder.InsertHorizontalRule(); |
| | | Text_center_10_Gray.structureText(string.Format("{0}{1}", title, reportType)); |
| | | // ç§»å¨å°ä¸ä¸è¡ï¼ä»¥ä¾¿ç»§ç»æ·»å å
¶ä»å
容 |
| | | builder.MoveToDocumentStart(); |
| | | } |
| | | |
| | | //æ£æ |
| | | private void CreatePage(Document doc, SimulationWorkingReportViewModel vm) |
| | | { |
| | | Aspose.Words.Document src = new Aspose.Words.Document(); |
| | | Aspose.Words.DocumentBuilder builder = new Aspose.Words.DocumentBuilder(src); |
| | | builder.SetSheet(Aspose.Words.Orientation.Portrait); |
| | | SimulationWordReportHelper Text_center_25_black = new SimulationWordReportHelper(builder) { fontalignment = ParagraphAlignment.Center, fontsize = 25, isblod = true };//主æ é¢ |
| | | SimulationWordReportHelper Text_left_15_black = new SimulationWordReportHelper(builder) { fontsize = 15, isblod = true };//ä¸çº§æ é¢ |
| | | SimulationWordReportHelper Text_left_12_black = new SimulationWordReportHelper(builder) { fontsize = 12 }; |
| | | SimulationWordReportHelper Text_reight_10_black = new SimulationWordReportHelper(builder) { fontalignment = ParagraphAlignment.Right, fontsize = 12 }; |
| | | SetWordHander(src, vm.Info.Name, vm.ReportType); |
| | | SetWordFooter(src, vm.Info.Name, vm.ReportType); |
| | | |
| | | builder.ParagraphFormat.LineSpacingRule = LineSpacingRule.Multiple; |
| | | builder.ParagraphFormat.LineSpacing = 18; // 设置è¡è·ä¸º1.5åé»è®¤è¡è· |
| | | |
| | | SimulationWordReportHelper Cell = new SimulationWordReportHelper(builder) { }; |
| | | //åå¹¶ |
| | | SimulationWordReportHelper Cell_v_merging_start = new SimulationWordReportHelper(builder) { verticalMerge = Aspose.Words.Tables.CellMerge.First }; |
| | | SimulationWordReportHelper Cell_v_merging_end = new SimulationWordReportHelper(builder) { verticalMerge = Aspose.Words.Tables.CellMerge.Previous }; |
| | | SimulationWordReportHelper Cell_h_merging_start = new SimulationWordReportHelper(builder) { horizontalMerge = Aspose.Words.Tables.CellMerge.First }; |
| | | SimulationWordReportHelper Cell_h_merging_end = new SimulationWordReportHelper(builder) { horizontalMerge = Aspose.Words.Tables.CellMerge.Previous }; |
| | | |
| | | Text_center_25_black.structureText(string.Format("{0}{1}", vm.Info.Name, vm.ReportType)); |
| | | Text_left_15_black.structureText("ä¸ãç³»ç»æ¦è¿°"); |
| | | Text_left_15_black.AddBlankLine(); |
| | | Text_left_15_black.AddBlankLine(); |
| | | Text_left_12_black.structureText(string.Format("{0}", vm.Info.Description)); |
| | | Text_left_12_black.structureText("1.1ã设å¤åºæ¬é
ç½®"); |
| | | |
| | | #region 设å«åºæ¬é
置表 |
| | | |
| | | var basic_config_table = builder.StartTable(); |
| | | Cell.SetFont(9); |
| | | Cell_v_merging_start.structureCell("设å¤åç§°"); |
| | | Cell_v_merging_start.structureCell("设å¤ä½å·"); |
| | | Cell_v_merging_start.structureCell("设å¤åå·"); |
| | | Cell.structureCell("é¢å®æµé"); |
| | | Cell.structureCell("é¢å®æ¬ç¨"); |
| | | Cell_v_merging_start.structureCell("驱卿¹å¼"); |
| | | Cell.structureCell("é¢å®çµå"); |
| | | Cell.structureCell("é¢å®çµæµ"); |
| | | Cell.structureCell("é¢å®åç"); |
| | | Cell.structureCell("é¢å®å æ°"); |
| | | Cell.structureCell("转é "); |
| | | builder.EndRow(); |
| | | |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell.structureCell("Q(m³/ h)"); |
| | | Cell.structureCell("H(m)"); |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell.structureCell("U(kV)"); |
| | | Cell.structureCell("I(A)"); |
| | | Cell.structureCell("P(kW)"); |
| | | Cell.structureCell("cosÏ"); |
| | | Cell.structureCell("r/m "); |
| | | builder.EndRow(); |
| | | //if (vm.Pumps != null) |
| | | //{ |
| | | // foreach (var item in vm.Equipments) |
| | | // { |
| | | // Cell.structureCell(item.EquipmentName); |
| | | // Cell.structureCell(item.EquipmentNumber); |
| | | // Cell.structureCell(item.EquipmentMainName); |
| | | // Cell.structureCell(item.RatedFlow); |
| | | // Cell.structureCell(item.RatedHead); |
| | | // Cell.structureCell(item.TypeOfDrive); |
| | | // Cell.structureCell("çµæºé©±å¨"); |
| | | // Cell.structureCell(item.RatedCurrent); |
| | | // Cell.structureCell(item.RatedPower); |
| | | // Cell.structureCell(item.RatedFactor); |
| | | // Cell.structureCell(item.Speed); |
| | | // builder.EndRow(); |
| | | // } |
| | | //} |
| | | //else |
| | | { |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | } |
| | | builder.EndTable(); |
| | | basic_config_table.AllowAutoFit = false; |
| | | Processing_pagination(src, builder, basic_config_table); |
| | | |
| | | #endregion 设å«åºæ¬é
置表 |
| | | |
| | | Text_left_12_black.structureLeft20Text("1.2ãè¿è¡å®é
æ
åµ"); |
| | | Text_left_12_black.structureLeft20Text("1.2.1 å¾ªç¯æ°´æ³µç«è¿è¡ç¶åµ"); |
| | | |
| | | #region å¾ªç¯æ°´æ³µç«è¿è¡ç¶åµè¡¨ |
| | | |
| | | var pumpingStation_run_table = builder.StartTable(); |
| | | Cell.SetFont(9); |
| | | Cell_v_merging_start.structureCell("设å¤åç§°"); |
| | | Cell_v_merging_start.structureCell("设å¤ä½å·"); |
| | | Cell_h_merging_start.structureCell("æ³µ"); |
| | | Cell_h_merging_end.structureCell(""); |
| | | Cell_h_merging_start.structureCell("çµæº"); |
| | | Cell_h_merging_end.structureCell(""); |
| | | Cell_h_merging_start.structureCell("æ¯ç®¡"); |
| | | Cell_h_merging_end.structureCell(""); |
| | | Cell_h_merging_end.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell.structureCell("åºå£ååæ é«"); |
| | | Cell.structureCell("åºå£éå¼åº¦"); |
| | | Cell.structureCell("è¿è¡çµæµ"); |
| | | Cell.structureCell("åç"); |
| | | Cell.structureCell("æ»ç®¡æµé"); |
| | | Cell.structureCell("便°´åå/æ é«"); |
| | | Cell.structureCell("åæ°´åå/æ é«"); |
| | | builder.EndRow(); |
| | | |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell.structureCell("MPa/m"); |
| | | Cell.structureCell("100%"); |
| | | Cell.structureCell("A"); |
| | | Cell.structureCell("kW"); |
| | | Cell.structureCell("m3/h"); |
| | | Cell.structureCell("MPa/m"); |
| | | Cell.structureCell("MPa/m"); |
| | | builder.EndRow(); |
| | | //if (vm.PumpStations != null) |
| | | //{ |
| | | // foreach (var item in vm.PumpStations) |
| | | // { |
| | | // Cell.structureCell(item.EquipmentName); |
| | | // Cell.structureCell(item.EquipmentNumber); |
| | | // Cell.structureCell(item.OutletPressure); |
| | | // Cell.structureCell(item.OutletValveOpening); |
| | | // Cell.structureCell(item.RunningCurrent); |
| | | // Cell.structureCell(item.Power); |
| | | // Cell.structureCell(item.TotalFlow); |
| | | // Cell.structureCell(item.SuppyPressure); |
| | | // Cell.structureCell(item.ReturnPressure); |
| | | // builder.EndRow(); |
| | | // } |
| | | //} |
| | | //else |
| | | { |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | } |
| | | |
| | | builder.EndTable(); |
| | | pumpingStation_run_table.AllowAutoFit = false; |
| | | Processing_pagination(src, builder, pumpingStation_run_table); |
| | | |
| | | #endregion å¾ªç¯æ°´æ³µç«è¿è¡ç¶åµè¡¨ |
| | | |
| | | Text_left_12_black.structureLeft20Text("1.2.2 å·å´å¡è¿è¡ç¶åµ"); |
| | | |
| | | #region å·å´å¡è¿è¡ç¶åµè¡¨ |
| | | |
| | | var coolingtower_run_table = builder.StartTable(); |
| | | Cell.SetFont(9); |
| | | Cell_v_merging_start.structureCell("设å¤åç§°"); |
| | | Cell_v_merging_start.structureCell("设å¤ä½å·"); |
| | | Cell.structureCell("ä¸å¡ç®¡å¾"); |
| | | Cell.structureCell("ä¸å¡éå¼åº¦"); |
| | | Cell.structureCell("å·å¤´é«åº¦"); |
| | | Cell.structureCell("飿ºçµæµ"); |
| | | Cell.structureCell("ä¸å¡æ¸©åº¦"); |
| | | Cell.structureCell("åºæ°´æ¸©åº¦"); |
| | | Cell.structureCell("温差"); |
| | | builder.EndRow(); |
| | | |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell.structureCell("mm"); |
| | | Cell.structureCell("%"); |
| | | Cell.structureCell("m"); |
| | | Cell.structureCell("A"); |
| | | Cell.structureCell("â"); |
| | | Cell.structureCell("â"); |
| | | Cell.structureCell("â"); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndTable(); |
| | | coolingtower_run_table.AllowAutoFit = false; |
| | | Processing_pagination(src, builder, coolingtower_run_table); |
| | | |
| | | #endregion å·å´å¡è¿è¡ç¶åµè¡¨ |
| | | |
| | | Text_left_12_black.structureLeft20Text("1.2.3 æ«ç«¯æ¢çå¨è¿è¡ç¶åµ"); |
| | | |
| | | #region æ«ç«¯æ¢çå¨è¿è¡ç¶åµè¡¨ |
| | | |
| | | var end_heatExchanger_run_table = builder.StartTable(); |
| | | Cell.SetFont(9); |
| | | Cell_v_merging_start.structureCell("设å¤åç§°"); |
| | | Cell_v_merging_start.structureCell("设å¤ä½å·"); |
| | | Cell.structureCell("ä¾å水管å¾"); |
| | | Cell.structureCell("便°´é¸å¼åº¦"); |
| | | Cell.structureCell("便°´åå"); |
| | | Cell.structureCell("便°´æ¸©åº¦"); |
| | | Cell.structureCell("åæ°´éå¼åº¦"); |
| | | Cell.structureCell("åæ°´åå"); |
| | | Cell.structureCell("åæ°´æ¸©åº¦"); |
| | | Cell.structureCell("æµé"); |
| | | Cell.structureCell("åå·®"); |
| | | Cell.structureCell("温差"); |
| | | builder.EndRow(); |
| | | |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell.structureCell("mm"); |
| | | Cell.structureCell("%"); |
| | | Cell.structureCell("MPa"); |
| | | Cell.structureCell("â"); |
| | | Cell.structureCell("%"); |
| | | Cell.structureCell("MPa"); |
| | | Cell.structureCell("â"); |
| | | Cell.structureCell("m3/h"); |
| | | Cell.structureCell("â"); |
| | | Cell.structureCell("â"); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndTable(); |
| | | end_heatExchanger_run_table.AllowAutoFit = false; |
| | | Processing_pagination(src, builder, end_heatExchanger_run_table); |
| | | |
| | | #endregion æ«ç«¯æ¢çå¨è¿è¡ç¶åµè¡¨ |
| | | |
| | | Text_left_15_black.structureText("äºï¼\tè¿è¡æ
åµä¸è½èåæ"); |
| | | Text_left_12_black.structureLeft20Text("2.1ãè¿è¡æ¨¡å¼åè¿è¡æ¶é´"); |
| | | Text_left_12_black.structureLeft20Text(string.Format("å
¨å¹´:{0}", _run_mode)); |
| | | Text_left_12_black.structureLeft20Text(string.Format("å¹´å¹³åè¿è¡æ¶é´:æ{0}", _avg_runtime_mode)); |
| | | Text_left_12_black.structureLeft20Text("2.2ãè¿è¡æ
åµåè½èç»è®¡"); |
| | | Text_left_12_black.structureLeft20Text("æ ¹æ®å®æµåæ°ãæµä½è¾éå·¥ç¨å¦å¤æ ¸,æ¬å¾ªç¯æ°´ç³»ç»ç®ååç§è¿è¡æ¹å¼çå®é
è½èæ
åµå¦ä¸è¡¨ï¼"); |
| | | |
| | | #region å®é
è½èæ
åµè¡¨ |
| | | |
| | | var actual_energy_consumption_table = builder.StartTable(); |
| | | Cell.SetFont(9); |
| | | Cell.structureCell("项 ç®"); |
| | | Cell_h_merging_start.structureCell("æ°´ æ³µ å·¥ åµ"); |
| | | Cell_h_merging_end.structureCell(""); |
| | | Cell_h_merging_end.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell("è¿è¡æ¨¡å¼"); |
| | | Cell.structureCell("ææ¹åå®èåç (kW)"); |
| | | Cell.structureCell("å¹´è¿è¡æ¶é´(h)"); |
| | | Cell.structureCell("å¹´èçµéï¼ä¸kW.h)"); |
| | | builder.EndRow(); |
| | | double totalPower = 0; |
| | | int totalHour = 0; |
| | | double AnnualPower = 0; |
| | | //if (vm.PowerConsumptionInfos != null) |
| | | //{ |
| | | // foreach (var item in vm.PowerConsumptionInfos) |
| | | // { |
| | | // Cell.structureCell(item.RunMode); |
| | | // Cell.structureCell(item.PreTechPowerConsumption); |
| | | // if (double.TryParse(item.PreTechPowerConsumption, out double power)) |
| | | // { |
| | | // totalPower += power; |
| | | // } |
| | | // Cell.structureCell(item.AnnualRunningHours); |
| | | // if (int.TryParse(item.AnnualRunningHours, out int hour)) |
| | | // { |
| | | // totalHour += hour; |
| | | // } |
| | | // Cell.structureCell(item.AnnualPowerConsumption); |
| | | // if (double.TryParse(item.AnnualPowerConsumption, out double annualPower)) |
| | | // { |
| | | // AnnualPower += annualPower; |
| | | // } |
| | | // builder.EndRow(); |
| | | // } |
| | | //} |
| | | |
| | | Cell.structureCell("å计"); |
| | | if (totalPower != 0) |
| | | { |
| | | Cell.structureCell(totalPower.ToString()); |
| | | } |
| | | else |
| | | { |
| | | Cell.structureCell(""); |
| | | } |
| | | if (totalHour != 0) |
| | | { |
| | | Cell.structureCell(totalHour.ToString()); |
| | | } |
| | | else |
| | | { |
| | | Cell.structureCell(""); |
| | | } |
| | | if (AnnualPower != 0) |
| | | { |
| | | Cell.structureCell(AnnualPower.ToString()); |
| | | } |
| | | else |
| | | { |
| | | Cell.structureCell(""); |
| | | } |
| | | builder.EndTable(); |
| | | actual_energy_consumption_table.AllowAutoFit = false; |
| | | Processing_pagination(src, builder, actual_energy_consumption_table); |
| | | |
| | | #endregion å®é
è½èæ
åµè¡¨ |
| | | |
| | | Text_left_12_black.structureLeft20Text("2.3ãé«è½èåæ"); |
| | | Text_left_12_black.structureLeft20Text("éè¿å¯¹ç³»ç»è¿è¡å·¥åµè¿è¡æ£æµåæï¼è®¤ä¸ºè¯¥ç³»ç»åå¨ â使çãé«è½èâç°è±¡ã主è¦è¡¨ç°å¨ä»¥ä¸æ¹é¢ï¼"); |
| | | Text_left_12_black.structureLeft20Text("1ï¼æ°´æ³µç¹æ§ä¸ç®¡ç½ç¹æ§ä¸ç¸å¹é
ï¼é ææ°´æ³µå离设计工åµè¿è¡ï¼å
¶å®é
è¿è¡æçä¸éï¼é æè¾å¤çæ æè½èï¼å¤äºä¸ç»æµè¿è¡ç¶æï¼èå½åå¾ªç¯æ°´å·¥åµåå¹¶éæ¯ç³»ç»çæä½³ç¶æï¼ä¼å管ç½é»ææ´åè¿è¡åæ°ï¼å°ä½¿æ¬ç³»ç»å
·æè¾å¤§çèè½ç©ºé´ã"); |
| | | Text_left_12_black.structureLeft20Text("2ï¼æ°´æ³µæ§è½æ²çº¿å管ç½ç¹æ§æ²çº¿ä¸ç¸å¹é
ï¼å¨æ°´ç³»ç»å¨è¾éè¿ç¨ä¸åå¨ééè°èé»åï¼å¢å äºè¾éè¿ç¨ä¸çæ æè½èï¼é使°´ç³»ç»çè¾éæçï¼éè¦éæ°å¯¹ç³»ç»è¿è¡å»ºæ¨¡åæï¼éä½ç³»ç»é»åï¼ä¼åæ°´æ³µæ¬ç¨ã"); |
| | | Text_left_12_black.structureLeft20Text("3ï¼ç¼ºä¹ææ¯ææ®µå¯¹æ¢ç设å¤è¿è¡éåè°èï¼æµéè¿å¤§å卿µªè´¹ãéè¿è°è¯å¹¶é
ç½®ä¼åï¼å¯¹æ¢çå¨å®éåæï¼å¶å®æ¢çå¨è¿è¡åçæ¹æ¡ï¼æ¹æ¢çå¨ä¸ºå®éæ§å¶ï¼æç»æ¶é¤æ ææµéï¼ä½¿ç³»ç»å¤å¨ä¼è¯ç¶æä¸è¿è¡ã"); |
| | | |
| | | Text_left_15_black.structureText("ä¸ï¼\tèè½ææ¹æ¹æ¡ä¸è®¾è®¡ææ "); |
| | | Text_left_12_black.structureLeft20Text("3.1ãè®¾è®¡ä¾æ®"); |
| | | Text_left_12_black.structureLeft20Text("3.1.1 å¾ªç¯æ°´æ³µè¿è¡åçï¼æ ¹æ®ä¸ç¸å¼æ¥çµå¨æºè¿è¡åç计ç®å
¬å¼P=â3ÃUÃIÃcosÏï¼ä¹å¯ä»¥æç
§è¿è¡ä¸æ®µæ¶é´å
çµåº¦è¡¨æååçç»è®¡å¾åºï¼"); |
| | | Text_left_12_black.structureLeft20Text("3.1.2 æ°´æ³µæ»ååï¼æ¬ç¨ï¼è®¡ç®å
¬å¼ï¼"); |
| | | Text_left_12_black.structureLeft20Text("H=ï¼påºï¼pè¿ï¼Ã102ï¼ï¼åºå£è¡¨é«ï¼è¿å£æ¶²ä½é«ï¼ï¼åèèè¿åºå£æµéååçå¨è½æèã"); |
| | | Text_left_12_black.structureLeft20Text("3.1.3 éè¿æ°´æ³µæ§è½æ²çº¿æ¨¡æï¼æ°´æ³µè¿è¡å¨ä¸å®çå·¥åµä¸ï¼å
¶æµéQãæ¬ç¨HãåçPãæçηç¸å¯¹åºï¼å®é
æ§è½ä¸æ åæ§è½ä¸è¬å·®å¼ï¼ä¸»è¦ä¸ºæçÎ·ææ ï¼"); |
| | | Text_left_12_black.structureLeft20Text("3.1.4 管路系ç»åå鿢ç®åºæ¬å
¬å¼ï¼i代表åä½ç±³é¿åº¦ç®¡é䏿²¿ç¨é»åç³»æ°ï¼"); |
| | | |
| | | // æå
¥å¾ç |
| | | // builder.Write(" "); |
| | | |
| | | Text_left_12_black.structureTextAndImage("00-core\\Pressure_conversion_formula_big1.2.png", 30, 150); |
| | | // builder.Write(" "); |
| | | Text_left_12_black.structureTextAndImage("00-core\\Pressure_conversion_formula_small1.2.png", 35, 220); |
| | | Text_left_12_black.structureLeft20Text("3.1.5 å±é¨é»å计ç®å
¬å¼"); |
| | | // builder.Write(" "); |
| | | Text_left_12_black.structureTextAndImage("00-core\\Local_resistance.png", 35, 60); |
| | | Text_left_12_black.structureLeft20Text("3.1.6 éé¨å¼åº¦ä¸å±é¨é»åç³»æ°å
³ç³»ï¼åèï¼"); |
| | | |
| | | #region éé¨å¼åº¦ä¸å±é¨é»åç³»æ°å
³ç³»è¡¨ |
| | | |
| | | var Opening_resistance_table = builder.StartTable(); |
| | | Cell.SetFont(9); |
| | | Cell.structureCell("å¼åº¦Î±"); |
| | | |
| | | //if (vm.ValveOpens != null) |
| | | //{ |
| | | // foreach (var item in vm.ValveOpens) |
| | | // { |
| | | // Cell.structureCell(item.Name); |
| | | // } |
| | | // builder.EndRow(); |
| | | // Cell.structureCell("ξ"); |
| | | // foreach (var item in vm.ValveOpens) |
| | | // { |
| | | // Cell.structureCell(item.MinorLoss); |
| | | // } |
| | | // builder.EndRow(); |
| | | //} |
| | | //else |
| | | { |
| | | Cell.structureCell("å¼åº¦Î±"); |
| | | Cell.structureCell("90"); |
| | | Cell.structureCell("80"); |
| | | Cell.structureCell("70"); |
| | | Cell.structureCell("60"); |
| | | Cell.structureCell("55"); |
| | | Cell.structureCell("50"); |
| | | Cell.structureCell("45"); |
| | | Cell.structureCell("40"); |
| | | Cell.structureCell("35"); |
| | | Cell.structureCell("30"); |
| | | Cell.structureCell("25"); |
| | | Cell.structureCell("20"); |
| | | Cell.structureCell("15"); |
| | | Cell.structureCell("10"); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell("ξ"); |
| | | Cell.structureCell("0.22"); |
| | | Cell.structureCell("0.45"); |
| | | Cell.structureCell("1.18"); |
| | | Cell.structureCell("3.25"); |
| | | Cell.structureCell("5.50"); |
| | | Cell.structureCell("9.27"); |
| | | Cell.structureCell("15.0"); |
| | | Cell.structureCell("26.8"); |
| | | Cell.structureCell("45.0"); |
| | | Cell.structureCell("79.2"); |
| | | Cell.structureCell("152"); |
| | | Cell.structureCell("332"); |
| | | Cell.structureCell("945"); |
| | | Cell.structureCell("3620"); |
| | | } |
| | | builder.EndTable(); |
| | | Opening_resistance_table.AllowAutoFit = false; |
| | | Processing_pagination(src, builder, Opening_resistance_table); |
| | | |
| | | #endregion éé¨å¼åº¦ä¸å±é¨é»åç³»æ°å
³ç³»è¡¨ |
| | | |
| | | Text_left_12_black.structureLeft20Text("3.2ã设计è¿ç¨"); |
| | | Text_left_12_black.structureLeft20Text("ç§ç»´å
¬å¸éç¨æµä½è¾éGo.Wellææ¯å¯¹æ£æµæ°æ®è¿è¡ç³»ç»åæãç ç©¶ï¼ç»åç产工èºç¹å¾ï¼è®¾è®¡æ¬å¾ªç¯æ°´ç³»ç»è¿ç¨è½éä¼åè§£å³æ¹æ¡ã"); |
| | | Text_left_12_black.structureLeft20Text("1ï¼éè¿åæç³»ç»è£
ç½®çè´è·ä»¥åå·¥èºç¹ç¹ï¼æç»æµä¾å水温差ååå便°´ååä¸è®¾è®¡å忝è¾ï¼å¤ææµéçåçæ§ï¼å¹¶ç¡®å®åçæµéï¼åå°âè£
置侧åçç¨æ°´ãæ³µç«ä¾§é«æä¾æ°´ï¼é使°´éè½èææ ï¼"); |
| | | Text_left_12_black.structureLeft20Text("2ï¼å¯¹æ¢çå¨åå·å´å¡ççå·¥æ§è½è¿è¡è¯ä¼°ï¼é对æ§éæ©æé«å·å´ææçæ¹é æ¹æ¡ï¼ä»¥ç¡®ä¿ç»æµä¾å水温差å®ç°çå¯è¡æ§ï¼"); |
| | | Text_left_12_black.structureLeft20Text("3ï¼è¿ç¨è®¡ç®æºæ¨¡æææ¯åæç®¡ç½æ°´åèç¹å¹³è¡¡ï¼å¾å°å¯å®ç°çæä¼ç®¡ç½æ§è½æ²çº¿ï¼å³ç¸åºæµé䏿坹åºå®é
éè¦çæå°é»åï¼éä½ç³»ç»ç®¡ç½é»æï¼æé«ç®¡ç½è¿è¡æçï¼"); |
| | | Text_left_12_black.structureLeft20Text("4ï¼éè¿å¯¹æ³µç«åæåç§è¿è¡æ¨¡å¼çå·¥åµåæï¼å¤æçµæºåæ°´æ³µçå®é
è¿è¡æçæ¯å¦é«æï¼å¹¶ç»åè£
置侧æéçææ¯åæ°è¦æ±ï¼æåºæä¼çæ³µç»æé
è¿è¡æ¨¡å¼åè¿è¡åæ°ï¼ç¡®å®é«æèè½æ³µåæ°è®¾è®¡å¼ï¼å好泵ç«ä¼å设计ï¼"); |
| | | Text_left_12_black.structureLeft20Text("5ï¼åå©ä¸å
æµç论ï¼éç¨å½å¤æå
è¿çâCFDâä»¿çæ¨¡æææ¯ï¼éè¿ç²¾ç¡®æ¨¡æï¼è®¾è®¡åºæä¼åçæ°´å模åï¼ç¡®ä¿ECOWELLé«ææ³µæ§è½å¯é ãè¿è¡ç¨³å®ï¼å¹¶ç¡®ä¿å¨åç§è¿è¡æ¨¡å¼ä¸åå¤äºé«æè¿è¡ã"); |
| | | |
| | | Text_left_12_black.structureLeft20Text("3.3ãæ³µç«é¨åèè½è®¾è®¡ææ ä¸ææ¹æ¹æ¡"); |
| | | Text_left_12_black.structureLeft20Text("3.3.1 ææ¹å设å¤é
ç½®æ
åµ"); |
| | | Text_left_12_black.AddBlankLine(); |
| | | |
| | | #region 设å¤é
ç½®æ
åµè¡¨ |
| | | |
| | | var Device_configuration_table = builder.StartTable(); |
| | | Cell.SetFont(9); |
| | | Cell_v_merging_start.structureCell("设å¤åç§°"); |
| | | Cell_v_merging_start.structureCell("设å¤ä½å·"); |
| | | Cell_v_merging_start.structureCell("设å¤åå·"); |
| | | Cell_v_merging_start.structureCell("å°æ°"); |
| | | Cell.structureCell("é¢å®æ¬ç¨"); |
| | | Cell.structureCell("é¢å®æµé"); |
| | | Cell_v_merging_start.structureCell("驱卿¹å¼"); |
| | | Cell.structureCell("é¢å®çµå"); |
| | | Cell.structureCell("é¢å®çµæµ"); |
| | | Cell.structureCell("é¢å®åç"); |
| | | Cell.structureCell("åçå æ°"); |
| | | Cell.structureCell("转é"); |
| | | builder.EndRow(); |
| | | |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell.structureCell("H(m)"); |
| | | Cell.structureCell("Q(m³/h)"); |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell.structureCell("U(kV)"); |
| | | Cell.structureCell("I(A)"); |
| | | Cell.structureCell("P(kW)"); |
| | | Cell.structureCell("cosÏ"); |
| | | Cell.structureCell("r/m"); |
| | | builder.EndRow(); |
| | | //if (vm.AfterEquipments != null) |
| | | //{ |
| | | // foreach (var item in vm.AfterEquipments) |
| | | // { |
| | | // Cell.structureCell(item.EquipmentName); |
| | | // Cell.structureCell(item.EquipmentNumber); |
| | | // Cell.structureCell(item.EquipmentMainName); |
| | | // Cell.structureCell(item.Count); |
| | | // Cell.structureCell(item.RatedFlow); |
| | | // Cell.structureCell(item.RatedHead); |
| | | // Cell.structureCell(item.TypeOfDrive); |
| | | // Cell.structureCell("çµæºé©±å¨"); |
| | | // Cell.structureCell(item.RatedCurrent); |
| | | // Cell.structureCell(item.RatedPower); |
| | | // Cell.structureCell(item.RatedFactor); |
| | | // Cell.structureCell(item.Speed); |
| | | // builder.EndRow(); |
| | | // } |
| | | //} |
| | | //else |
| | | { |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | } |
| | | builder.EndTable(); |
| | | Device_configuration_table.AllowAutoFit = false; |
| | | Processing_pagination(src, builder, Device_configuration_table); |
| | | |
| | | #endregion 设å¤é
ç½®æ
åµè¡¨ |
| | | |
| | | Text_left_12_black.structureLeft20Text("3.3.2 ææ¹å设å¤é¢è®¡è¿è¡ç¶åµ"); |
| | | |
| | | #region é¢è®¡è¿è¡ç¶åµè¡¨ |
| | | |
| | | var estimated_running_table = builder.StartTable(); |
| | | Cell.SetFont(9); |
| | | Cell_v_merging_start.structureCell("设å¤åç§°"); |
| | | Cell_v_merging_start.structureCell("设å¤ä½å·"); |
| | | Cell_h_merging_start.structureCell("æ³µ"); |
| | | Cell_h_merging_end.structureCell(""); |
| | | Cell_h_merging_start.structureCell("çµæº"); |
| | | Cell_h_merging_end.structureCell(""); |
| | | Cell_h_merging_start.structureCell("æ¯ç®¡"); |
| | | Cell_h_merging_end.structureCell(""); |
| | | Cell_h_merging_end.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell.structureCell("åºå£ååæ é«"); |
| | | Cell.structureCell("åºå£éå¼åº¦"); |
| | | Cell.structureCell("è¿è¡çµæµ"); |
| | | Cell.structureCell("åç"); |
| | | Cell.structureCell("æ»ç®¡æµé"); |
| | | Cell.structureCell("便°´ååæ é«"); |
| | | Cell.structureCell("åæ°´ååæ é«"); |
| | | builder.EndRow(); |
| | | |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell.structureCell("MPa/m"); |
| | | Cell.structureCell("100%"); |
| | | Cell.structureCell("A"); |
| | | Cell.structureCell("kW"); |
| | | Cell.structureCell("m3/h"); |
| | | Cell.structureCell("MPa/m"); |
| | | Cell.structureCell("MPa/m"); |
| | | builder.EndRow(); |
| | | //if (vm.AfterPumpStations != null) |
| | | //{ |
| | | // foreach (var item in vm.AfterPumpStations) |
| | | // { |
| | | // Cell.structureCell(item.EquipmentName); |
| | | // Cell.structureCell(item.EquipmentNumber); |
| | | // Cell.structureCell(item.OutletPressure); |
| | | // Cell.structureCell(item.OutletValveOpening); |
| | | // Cell.structureCell(item.RunningCurrent); |
| | | // Cell.structureCell(item.Power); |
| | | // Cell.structureCell(item.TotalFlow); |
| | | // Cell.structureCell(item.SuppyPressure); |
| | | // Cell.structureCell(item.ReturnPressure); |
| | | // builder.EndRow(); |
| | | // } |
| | | //} |
| | | //else |
| | | { |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | } |
| | | builder.EndTable(); |
| | | //estimated_running_table.AllowAutoFit = false; |
| | | //builder.ParagraphFormat.KeepWithNext = true; |
| | | //Processing_pagination(src, builder, estimated_running_table); |
| | | |
| | | #endregion é¢è®¡è¿è¡ç¶åµè¡¨ |
| | | |
| | | Text_left_12_black.structureLeft20Text("3.3.3 æ«ç«¯æ¢çå¨é¢è®¡è¿è¡ç¶åµ"); |
| | | |
| | | #region æ«ç«¯æ¢çå¨é¢è®¡è¿è¡ç¶åµè¡¨ |
| | | |
| | | var estimatedendRun_table = builder.StartTable(); |
| | | Cell.SetFont(9); |
| | | Cell_v_merging_start.structureCell("设å¤åç§°"); |
| | | Cell_v_merging_start.structureCell("设å¤ä½å·"); |
| | | Cell.structureCell("ä¾å水管å¾"); |
| | | Cell.structureCell("便°´é¸å¼åº¦"); |
| | | Cell.structureCell("便°´åå"); |
| | | Cell.structureCell("便°´æ¸©åº¦"); |
| | | Cell.structureCell("åæ°´éå¼åº¦"); |
| | | Cell.structureCell("åæ°´åå"); |
| | | Cell.structureCell("åæ°´æ¸©åº¦"); |
| | | Cell.structureCell("æµé"); |
| | | Cell.structureCell("åå·®"); |
| | | Cell.structureCell("温差"); |
| | | builder.EndRow(); |
| | | |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell_v_merging_end.structureCell(""); |
| | | Cell.structureCell("mm"); |
| | | Cell.structureCell("%"); |
| | | Cell.structureCell("MPa"); |
| | | Cell.structureCell("â"); |
| | | Cell.structureCell("%"); |
| | | Cell.structureCell("MPa"); |
| | | Cell.structureCell("â"); |
| | | Cell.structureCell("m3/h"); |
| | | Cell.structureCell("â"); |
| | | Cell.structureCell("â"); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndTable(); |
| | | estimatedendRun_table.AllowAutoFit = false; |
| | | Processing_pagination(src, builder, estimatedendRun_table); |
| | | |
| | | #endregion æ«ç«¯æ¢çå¨é¢è®¡è¿è¡ç¶åµè¡¨ |
| | | |
| | | Text_left_12_black.structureLeft20Text("3.3.2 ææ¹ååè¿è¡æ¨¡å¼ä¸è®¾å¤é¢è®¡èçµæ
åµ"); |
| | | |
| | | #region 设å¤é¢è®¡èçµæ
åµè¡¨ |
| | | |
| | | var expected_power_savings = builder.StartTable(); |
| | | Cell.SetFont(9); |
| | | Cell.structureCell("项 ç®"); |
| | | Cell_h_merging_start.structureCell("设 å¤ å·¥ åµ"); |
| | | Cell_h_merging_end.structureCell(""); |
| | | Cell_h_merging_end.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell("è¿è¡æ¨¡å¼"); |
| | | Cell.structureCell("ææ¹å设计åç (kW)"); |
| | | Cell.structureCell("å¹´è¿è¡æ¶é´(h)"); |
| | | Cell.structureCell("æ¹åå¹´èçµéï¼ä¸kW.h)"); |
| | | builder.EndRow(); |
| | | totalPower = 0; |
| | | totalHour = 0; |
| | | AnnualPower = 0; |
| | | //if (vm.AfterPowerConsumptionInfos != null) |
| | | //{ |
| | | // foreach (var item in vm.AfterPowerConsumptionInfos) |
| | | // { |
| | | // Cell.structureCell(item.RunMode); |
| | | // Cell.structureCell(item.PreTechPowerConsumption); |
| | | // if (double.TryParse(item.PreTechPowerConsumption, out double power)) |
| | | // { |
| | | // totalPower += power; |
| | | // } |
| | | // Cell.structureCell(item.AnnualRunningHours); |
| | | // if (int.TryParse(item.AnnualRunningHours, out int hour)) |
| | | // { |
| | | // totalHour += hour; |
| | | // } |
| | | // Cell.structureCell(item.AnnualPowerConsumption); |
| | | // if (double.TryParse(item.AnnualPowerConsumption, out double annualPower)) |
| | | // { |
| | | // AnnualPower += annualPower; |
| | | // } |
| | | // builder.EndRow(); |
| | | // } |
| | | //} |
| | | |
| | | Cell.structureCell("å计"); |
| | | if (totalPower != 0) |
| | | { |
| | | Cell.structureCell(totalPower.ToString()); |
| | | } |
| | | else |
| | | { |
| | | Cell.structureCell(""); |
| | | } |
| | | if (totalHour != 0) |
| | | { |
| | | Cell.structureCell(totalHour.ToString()); |
| | | } |
| | | else |
| | | { |
| | | Cell.structureCell(""); |
| | | } |
| | | if (AnnualPower != 0) |
| | | { |
| | | Cell.structureCell(AnnualPower.ToString()); |
| | | } |
| | | else |
| | | { |
| | | Cell.structureCell(""); |
| | | } |
| | | builder.EndTable(); |
| | | expected_power_savings.AllowAutoFit = false; |
| | | Processing_pagination(src, builder, expected_power_savings); |
| | | |
| | | #endregion 设å¤é¢è®¡èçµæ
åµè¡¨ |
| | | |
| | | Text_left_12_black.structureLeft20Text("3.4ãææ¹è¯´æ"); |
| | | Text_left_12_black.structureLeft20Text("é对åè¿°çç³»ç»åå¨çé®é¢åæï¼ç®åç³»ç»å¨ä¼åè¿è¡æ¹é¢è¿æè¾å¤§çæå空é´ï¼åå¨è¾å¤§çèè½æ½åï¼ä»æ´ä½ä¸æåºä»¥ä¸è§£å³æ¹æ¡ï¼"); |
| | | Text_left_12_black.structureLeft20Text("aãä¼åæ°´æ³µå¹é
å®ç°èè½ï¼"); |
| | | Text_left_12_black.structureLeft20Text("bãæ¹åæ°´æ³µæ°èå®ç°èè½ï¼"); |
| | | Text_left_12_black.structureLeft20Text("cãæé«æ°´æ³µè¿è¡æçèè½ï¼"); |
| | | Text_left_12_black.structureLeft20Text("dãå®ç°åç便°´ï¼è°æ´æ°´å平衡ï¼ä¼åæ¯ç®¡ä¾ãåæ°´ååï¼éä½é»åå®ç°èè½ï¼"); |
| | | |
| | | Text_left_15_black.structureText("åï¼\t项ç®èçµæçåæ"); |
| | | Text_left_12_black.structureLeft20Text("4.1ãæ¯å¹´èçµé"); |
| | | Text_left_12_black.structureLeft20Text(string.Format("æ{0}å
¬å¸å¾ªç¯æ°´ç³»ç»å¹´å¹³åè¿è¡{1}å°æ¶è®¡ï¼åç³»ç»å¹´èçµéï¼", _Company_1, _Avg_Hour)); |
| | | Text_left_12_black.structureLeft20Text(string.Format("ç³»ç»å¹´èçµéï¼{0}ï¼{1}ï¼ä¸åº¦ï¼", _Electricity, _Electricity_kWh)); |
| | | Text_left_12_black.structureLeft20Text("4.2ãèçµè®¡ç®æ±æ»å¦ä¸è¡¨"); |
| | | |
| | | #region èçµè®¡ç®æ±æ»è¡¨ |
| | | |
| | | var summary_table = builder.StartTable(); |
| | | Cell.SetFont(9); |
| | | Cell.structureCell("è¿è¡æ¨¡å¼"); |
| | | Cell.structureCell("ææ¹åå®èåç"); |
| | | Cell.structureCell("ææ¹å设计åç"); |
| | | Cell.structureCell("å°æ¶èçµé"); |
| | | Cell.structureCell("èçµç"); |
| | | Cell.structureCell("è¿è¡æ¶é´"); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell("åä½"); |
| | | Cell.structureCell("(kW)"); |
| | | Cell.structureCell("(kW)"); |
| | | Cell.structureCell("(kW)"); |
| | | Cell.structureCell("(%)"); |
| | | Cell.structureCell("(h)"); |
| | | builder.EndRow(); |
| | | double savingRate = 0; |
| | | double runningTime = 0; |
| | | //if (vm.PowerRelatedInfos != null) |
| | | //{ |
| | | // foreach (var item in vm.PowerRelatedInfos) |
| | | // { |
| | | // Cell.structureCell(item.RunMode); |
| | | // Cell.structureCell(item.PreTechPowerConsumption); |
| | | // Cell.structureCell(item.PostTechDesignedPower); |
| | | // Cell.structureCell(item.HourlyPowerSaving); |
| | | // Cell.structureCell(item.PowerSavingRate); |
| | | // if (double.TryParse(item.PowerSavingRate, out double power)) |
| | | // { |
| | | // savingRate += power; |
| | | // } |
| | | // Cell.structureCell(item.RunningTime); |
| | | // if (double.TryParse(item.RunningTime, out double time)) |
| | | // { |
| | | // runningTime += time; |
| | | // } |
| | | // builder.EndRow(); |
| | | // } |
| | | //} |
| | | //else |
| | | { |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | } |
| | | Cell_h_merging_start.structureCell("å计年èçµé(ä¸åº¦)"); |
| | | Cell_h_merging_end.structureCell(""); |
| | | Cell_h_merging_end.structureCell(""); |
| | | Cell_h_merging_end.structureCell(""); |
| | | if (savingRate != 0) |
| | | { |
| | | Cell_h_merging_start.structureCell(savingRate.ToString()); |
| | | } |
| | | else |
| | | { |
| | | Cell_h_merging_start.structureCell(""); |
| | | } |
| | | if (runningTime != 0) |
| | | { |
| | | Cell_h_merging_start.structureCell(runningTime.ToString()); |
| | | } |
| | | else |
| | | { |
| | | Cell_h_merging_start.structureCell(""); |
| | | } |
| | | builder.EndTable(); |
| | | summary_table.AllowAutoFit = false; |
| | | Processing_pagination(src, builder, summary_table); |
| | | |
| | | #endregion èçµè®¡ç®æ±æ»è¡¨ |
| | | |
| | | Text_left_15_black.structureLeft20Text("äºï¼\t综述"); |
| | | Text_left_12_black.structureLeft20Text(string.Format("æ¬æ¡æ¯å¨ç§ç»´å
¬å¸ææ¯äººåäº{0}对{1}æ°´ç³»ç»è¿è¡è¯¦ç»è°æ¥ãæ£æµåºç¡ä¸ï¼éç¨æµä½è¾éGo·wellææ¯å¯¹æ£æµèµæè¿è¡ç³»ç»åæãç ç©¶ï¼å¹¶ç»å该系ç»è¿è¡çè´è·æ
åµï¼ç²¾å¿è®¾è®¡çèè½ææ¹æ¹æ¡ã", _Time, _System)); |
| | | Text_left_12_black.structureLeft20Text(string.Format("éè¿ææ¹èçµææå¦ä¸ï¼æå¹´è¿è¡(0)å°æ¶è®¡ï¼ï¼", _Hour)); |
| | | |
| | | #region 设å¤é¢è®¡èçµæ
åµè¡¨ |
| | | |
| | | var power_saving_effect_table = builder.StartTable(); |
| | | Cell.SetFont(9); |
| | | Cell.structureCell("åºå·"); |
| | | Cell.structureCell("设å¤åç§°"); |
| | | Cell.structureCell("ææ¹åå¹´èçµé(ä¸åº¦/å¹´)"); |
| | | Cell.structureCell("èçµç\r\n(%)"); |
| | | Cell.structureCell("æ¹åå¹´èçµé\r\n(ä¸åº¦/å¹´)"); |
| | | builder.EndRow(); |
| | | |
| | | double totalBeforePower = 0; |
| | | double totalSavingRate = 0; |
| | | double totalAfterAnnualPower = 0; |
| | | //if (vm.AfterEquipmentPowers != null) |
| | | //{ |
| | | // int i = 0; |
| | | // foreach (var item in vm.AfterEquipmentPowers) |
| | | // { |
| | | // Cell.structureCell((++i).ToString()); |
| | | // Cell.structureCell(item.EquipmentName); |
| | | // Cell.structureCell(item.PowerConsumptionBeforeTech); |
| | | // if (double.TryParse(item.PowerConsumptionBeforeTech, out double BeforePower)) |
| | | // { |
| | | // totalBeforePower += BeforePower; |
| | | // } |
| | | // Cell.structureCell(item.PowerSavingRate); |
| | | // if (double.TryParse(item.PowerSavingRate, out double SavingRate)) |
| | | // { |
| | | // totalSavingRate += SavingRate; |
| | | // } |
| | | // Cell.structureCell(item.AnnualPowerSavingAfterTech); |
| | | // if (double.TryParse(item.AnnualPowerSavingAfterTech, out double AfterAnnualPower)) |
| | | // { |
| | | // totalAfterAnnualPower += AfterAnnualPower; |
| | | // } |
| | | // builder.EndRow(); |
| | | // } |
| | | //} |
| | | //else |
| | | { |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | Cell.structureCell(""); |
| | | builder.EndRow(); |
| | | } |
| | | |
| | | Cell.structureCell(""); |
| | | Cell.structureCell("å计"); |
| | | if (totalBeforePower != 0) |
| | | { |
| | | Cell.structureCell(totalBeforePower.ToString()); |
| | | } |
| | | else |
| | | { |
| | | Cell.structureCell(""); |
| | | } |
| | | if (totalSavingRate != 0) |
| | | { |
| | | Cell.structureCell(totalSavingRate.ToString()); |
| | | } |
| | | else |
| | | { |
| | | Cell.structureCell(""); |
| | | } |
| | | if (totalAfterAnnualPower != 0) |
| | | { |
| | | Cell.structureCell(totalAfterAnnualPower.ToString()); |
| | | } |
| | | else |
| | | { |
| | | Cell.structureCell(""); |
| | | } |
| | | builder.EndRow(); |
| | | builder.EndTable(); |
| | | power_saving_effect_table.AllowAutoFit = false; |
| | | Processing_pagination(src, builder, power_saving_effect_table); |
| | | |
| | | #endregion 设å¤é¢è®¡èçµæ
åµè¡¨ |
| | | |
| | | Text_left_12_black.structureLeft20Text("å¿
é¡»ééæåºï¼æ¬æ¡å±æµä½è¾éGo·wellææ¯è®¾è®¡ææï¼ä»
ä½ä¸ºæ¬ç³»ç»èè½ææ¹æèµå³çå宿½ç便®ã"); |
| | | Text_left_12_black.structureLeft20Text(string.Format("卿¤ï¼é常æè°¢{0}å
¬å¸åé¨é¨é¢å¯¼å¯¹èè½å·¥ä½çéè§åæ¯æï¼é常æè°¢{1}å
¬å¸ææ¯äººåå¯¹æ£æµå·¥ä½ç大åé
åï¼å¹¶æä¾å®è´µèµæåç³»ç»æ
åµã", _Company_2, _Company_3)); |
| | | |
| | | Text_reight_10_black.structureText("æµæ±ç§ç»´èè½ææ¯è¡ä»½æéå
¬å¸"); |
| | | Text_reight_10_black.structureLeft20Text(string.Format("{0}å¹´{1}æ", _Year, _month)); |
| | | |
| | | doc.AppendDocument(src, Aspose.Words.ImportFormatMode.KeepSourceFormatting); |
| | | } |
| | | |
| | | private void Processing_pagination(Document doc, DocumentBuilder builder, Table table) |
| | | { |
| | | // å建LayoutCollector对象 |
| | | LayoutCollector collector = new LayoutCollector(doc); |
| | | |
| | | // æ´æ°é¡µé¢å¸å± |
| | | doc.UpdatePageLayout(); |
| | | |
| | | // è·åè¡¨æ ¼çå¼å§åç»æé¡µé¢ç´¢å¼ |
| | | int startPageIndex = collector.GetStartPageIndex(table); |
| | | int endPageIndex = collector.GetEndPageIndex(table); |
| | | |
| | | // å¤æè¡¨æ ¼æ¯å¦éåæ¾å¨å½å页é¢ä¸ |
| | | if (endPageIndex > startPageIndex) |
| | | { |
| | | // è¡¨æ ¼ä¸éåæ¾å¨å½å页é¢ä¸ï¼éè¦æ¢é¡µ |
| | | // å¨è¡¨æ ¼åæå
¥å页符 |
| | | builder.MoveTo(table.PreviousSibling); |
| | | builder.InsertBreak(BreakType.PageBreak); |
| | | builder.MoveToDocumentEnd(); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |