日志管理提交
This commit is contained in:
		
							parent
							
								
									1fe9772110
								
							
						
					
					
						commit
						38aed111c5
					
				|  | @ -33,7 +33,7 @@ | ||||||
|                                 <Rows> |                                 <Rows> | ||||||
|                                     <f:FormRow> |                                     <f:FormRow> | ||||||
|                                         <Items> |                                         <Items> | ||||||
|                                             <f:TextBox ID="txtJobNo" runat="server" Label="职工号" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"> |                                             <f:TextBox ID="txtJobNo" runat="server" Label="工号" LabelAlign="Right" LabelWidth="150px" MaxLength="50" Required="true" ShowRedStar="true"> | ||||||
|                                             </f:TextBox> |                                             </f:TextBox> | ||||||
|                                             <f:DropDownList ID="ddlShiftType" runat="server" Label="轮班类型" LabelAlign="Right" EnableEdit="true" ShowRedStar="true"> |                                             <f:DropDownList ID="ddlShiftType" runat="server" Label="轮班类型" LabelAlign="Right" EnableEdit="true" ShowRedStar="true"> | ||||||
|                                                 <f:ListItem Text="白班" Value="1" /> |                                                 <f:ListItem Text="白班" Value="1" /> | ||||||
|  |  | ||||||
|  | @ -125,7 +125,7 @@ | ||||||
|                 </f:Grid> |                 </f:Grid> | ||||||
|             </Items> |             </Items> | ||||||
|         </f:Panel> |         </f:Panel> | ||||||
|         <f:Window ID="Window1" Title="检查项巡检确认" Hidden="true" EnableIFrame="true" EnableMaximize="true" |         <f:Window ID="Window1" Title="运行日志管理" Hidden="true" EnableIFrame="true" EnableMaximize="true" | ||||||
|             Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close" |             Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close" | ||||||
|             Width="1300px" Height="660px"> |             Width="1300px" Height="660px"> | ||||||
|         </f:Window> |         </f:Window> | ||||||
|  |  | ||||||
|  | @ -113,7 +113,7 @@ namespace FineUIPro.Web.TestRun.ProduceTestRun | ||||||
|             if (this.tvControlItem.SelectedNodeID.Split('|').Length > 0) |             if (this.tvControlItem.SelectedNodeID.Split('|').Length > 0) | ||||||
|             { |             { | ||||||
|                 var installationId = this.tvControlItem.SelectedNodeID.Split('|').First(); |                 var installationId = this.tvControlItem.SelectedNodeID.Split('|').First(); | ||||||
|                 if (installationId != "0") |                 if (installationId != "0" && !string.IsNullOrWhiteSpace(installationId)) | ||||||
|                 { |                 { | ||||||
|                     strSql += " and a.InstallationId=@InstallationId"; |                     strSql += " and a.InstallationId=@InstallationId"; | ||||||
|                     listStr.Add(new SqlParameter("@InstallationId", installationId)); |                     listStr.Add(new SqlParameter("@InstallationId", installationId)); | ||||||
|  | @ -280,6 +280,7 @@ namespace FineUIPro.Web.TestRun.ProduceTestRun | ||||||
|                            ShiftUserName = c.UserName, |                            ShiftUserName = c.UserName, | ||||||
|                            a.SuccessionUser, |                            a.SuccessionUser, | ||||||
|                            SuccessionUserName = d.UserName, |                            SuccessionUserName = d.UserName, | ||||||
|  |                            a.HandoverCare, | ||||||
|                            a.StartData, |                            a.StartData, | ||||||
|                            a.EndData, |                            a.EndData, | ||||||
|                            a.Situation, |                            a.Situation, | ||||||
|  | @ -291,6 +292,10 @@ namespace FineUIPro.Web.TestRun.ProduceTestRun | ||||||
|             var model = data.FirstOrDefault(); |             var model = data.FirstOrDefault(); | ||||||
|             if (model != null) |             if (model != null) | ||||||
|             { |             { | ||||||
|  |                 //操作问题 | ||||||
|  |                 var operations = Funs.DB.Running_Operation.Where(x => x.RunningId == model.RunningId).ToList(); | ||||||
|  |                 //维护问题 | ||||||
|  |                 var maintes = Funs.DB.Running_Maintenance.Where(x => x.RunningId == model.RunningId).ToList(); | ||||||
|                 string ReportFileName = $"{filePath}Production report({DateTime.Now.ToString("yyyy-MM-dd")} {model.ShiftUserName}).xlsx"; |                 string ReportFileName = $"{filePath}Production report({DateTime.Now.ToString("yyyy-MM-dd")} {model.ShiftUserName}).xlsx"; | ||||||
|                 int rowIndex = 0; |                 int rowIndex = 0; | ||||||
|                 XSSFWorkbook hssfworkbook = new XSSFWorkbook(); |                 XSSFWorkbook hssfworkbook = new XSSFWorkbook(); | ||||||
|  | @ -373,181 +378,83 @@ namespace FineUIPro.Web.TestRun.ProduceTestRun | ||||||
|                 #region 数据 |                 #region 数据 | ||||||
| 
 | 
 | ||||||
|                 var dataIndex = 5; |                 var dataIndex = 5; | ||||||
|                 //if (model.IsDesalinated == 1) | 
 | ||||||
|                 //{ |                 ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5); | ||||||
|                 //    ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5); |                 region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 3); | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 3); |                 ws.AddMergedRegion(region); | ||||||
|                 //    ws.AddMergedRegion(region); |                 ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("DW  Station 脱盐水"); | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("DW  Station 脱盐水"); |                 ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold; | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold; |                 region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 4, 5); | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 4, 5); |                 ws.AddMergedRegion(region); | ||||||
|                 //    ws.AddMergedRegion(region); |                 ws.GetRow(dataIndex + 1).GetCell(4).SetCellValue(""); | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(4).SetCellValue(""); |                 ws.GetRow(dataIndex + 1).GetCell(4).CellStyle = leftStyle; | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(4).CellStyle = leftStyle; |                 ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 90); | ||||||
|                 //    ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 90); |                 region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 3); | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 3); |                 ws.AddMergedRegion(region); | ||||||
|                 //    ws.AddMergedRegion(region); |                 ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.Situation); | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.DesalinatedSituation); |                 ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle; | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle; |                 region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 4, 5); | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 4, 5); |                 ws.AddMergedRegion(region); | ||||||
|                 //    ws.AddMergedRegion(region); |                 ws.GetRow(dataIndex + 2).GetCell(4).SetCellValue(model.Remarks); | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(4).SetCellValue(model.DesalinatedRemarks); |                 ws.GetRow(dataIndex + 2).GetCell(4).CellStyle = leftStyle; | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(4).CellStyle = leftStyle; |                 dataIndex += 2; | ||||||
|                 //    dataIndex += 2; | 
 | ||||||
|                 //} |                 ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5); | ||||||
|                 //if (model.IsLoop == 1) |                 region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 5); | ||||||
|                 //{ |                 ws.AddMergedRegion(region); | ||||||
|                 //    ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5); |                 ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("Attention of next shift交班注意"); | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 3); |                 ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold; | ||||||
|                 //    ws.AddMergedRegion(region); |                 ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 30); | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("ACW/UCW/ECW  Station 循环水"); |                 region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 5); | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold; |                 ws.AddMergedRegion(region); | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 4, 5); |                 ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.HandoverCare); | ||||||
|                 //    ws.AddMergedRegion(region); |                 ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle; | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(4).SetCellValue(""); |                 dataIndex += 2; | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(4).CellStyle = leftStyle; | 
 | ||||||
|                 //    ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 90); | 
 | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 3); |                 ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5); | ||||||
|                 //    ws.AddMergedRegion(region); |                 region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 5); | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.LoopSituation); |                 ws.AddMergedRegion(region); | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle; |                 ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("operation issue操作问题"); | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 4, 5); |                 ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold; | ||||||
|                 //    ws.AddMergedRegion(region); |                 dataIndex += 1; | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(4).SetCellValue(model.LoopRemarks); |                 foreach (var itemoption in operations) | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(4).CellStyle = leftStyle; |                 { | ||||||
|                 //    dataIndex += 2; |                     ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5, 30); | ||||||
|                 //} |                     region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 5); | ||||||
|                 //if (model.IsSteam == 1) |                     ws.AddMergedRegion(region); | ||||||
|                 //{ |                     ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue($"reason原因:{itemoption.OperationReason}"); | ||||||
|                 //    ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5); |                     ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = leftStyle; | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 3); |                     dataIndex += 1; | ||||||
|                 //    ws.AddMergedRegion(region); |                     ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5, 30); | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("Steam System蒸汽"); |                     region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 5); | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold; |                     ws.AddMergedRegion(region); | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 4, 5); |                     ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue($"solution处理:{itemoption.OperationHandle}"); | ||||||
|                 //    ws.AddMergedRegion(region); |                     ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = leftStyle; | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(4).SetCellValue(""); |                     dataIndex += 1; | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(4).CellStyle = leftStyle; |                 } | ||||||
|                 //    ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 90); | 
 | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 3); |                 ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5); | ||||||
|                 //    ws.AddMergedRegion(region); |                 region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 5); | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.SteamSituation); |                 ws.AddMergedRegion(region); | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle; |                 ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("maintenance issue维护问题"); | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 4, 5); |                 ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold; | ||||||
|                 //    ws.AddMergedRegion(region); |                 dataIndex += 1; | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(4).SetCellValue(model.SteamRemarks); |                 foreach (var itemmait in maintes) | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(4).CellStyle = leftStyle; |                 { | ||||||
|                 //    dataIndex += 2; |                     ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5, 30); | ||||||
|                 //} |                     region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 5); | ||||||
|                 //if (model.IsAirCompression == 1) |                     ws.AddMergedRegion(region); | ||||||
|                 //{ |                     ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue($"reason原因:{itemmait.MaintenanceReason}"); | ||||||
|                 //    ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5); |                     ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = leftStyle; | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 3); |                     dataIndex += 1; | ||||||
|                 //    ws.AddMergedRegion(region); |                     ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5, 30); | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("Air Station 空压站"); |                     region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 5); | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold; |                     ws.AddMergedRegion(region); | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 4, 5); |                     ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue($"solution处理:{itemmait.MaintenanceHandle}"); | ||||||
|                 //    ws.AddMergedRegion(region); |                     ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = leftStyle; | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(4).SetCellValue(""); |                     dataIndex += 1; | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(4).CellStyle = leftStyle; |                 } | ||||||
|                 //    ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 90); |  | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 3); |  | ||||||
|                 //    ws.AddMergedRegion(region); |  | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.AirCompressionSituation); |  | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle; |  | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 4, 5); |  | ||||||
|                 //    ws.AddMergedRegion(region); |  | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(4).SetCellValue(model.AirCompressionRemarks); |  | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(4).CellStyle = leftStyle; |  | ||||||
|                 //    dataIndex += 2; |  | ||||||
|                 //} |  | ||||||
|                 //if (model.IsCompoundAmmonia == 1) |  | ||||||
|                 //{ |  | ||||||
|                 //    ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5); |  | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 3); |  | ||||||
|                 //    ws.AddMergedRegion(region); |  | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("Ammonia Plant 合成氨"); |  | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold; |  | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 4, 5); |  | ||||||
|                 //    ws.AddMergedRegion(region); |  | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(4).SetCellValue(""); |  | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(4).CellStyle = leftStyle; |  | ||||||
|                 //    ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 90); |  | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 3); |  | ||||||
|                 //    ws.AddMergedRegion(region); |  | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.CompoundAmmoniaSituation); |  | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle; |  | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 4, 5); |  | ||||||
|                 //    ws.AddMergedRegion(region); |  | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(4).SetCellValue(model.CompoundAmmoniaRemarks); |  | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(4).CellStyle = leftStyle; |  | ||||||
|                 //    dataIndex += 2; |  | ||||||
|                 //} |  | ||||||
|                 //if (model.IsUrea == 1) |  | ||||||
|                 //{ |  | ||||||
|                 //    ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5); |  | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 3); |  | ||||||
|                 //    ws.AddMergedRegion(region); |  | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("Urea Plant 尿素"); |  | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold; |  | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 4, 5); |  | ||||||
|                 //    ws.AddMergedRegion(region); |  | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(4).SetCellValue(""); |  | ||||||
|                 //    ws.GetRow(dataIndex + 1).GetCell(4).CellStyle = leftStyle; |  | ||||||
|                 //    ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 90); |  | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 3); |  | ||||||
|                 //    ws.AddMergedRegion(region); |  | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.UreaSituation); |  | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle; |  | ||||||
|                 //    region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 4, 5); |  | ||||||
|                 //    ws.AddMergedRegion(region); |  | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(4).SetCellValue(model.UreaRemarks); |  | ||||||
|                 //    ws.GetRow(dataIndex + 2).GetCell(4).CellStyle = leftStyle; |  | ||||||
|                 //    dataIndex += 2; |  | ||||||
|                 //} |  | ||||||
|                 //ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5); |  | ||||||
|                 //region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 5); |  | ||||||
|                 //ws.AddMergedRegion(region); |  | ||||||
|                 //ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("Attention of next shift交班注意"); |  | ||||||
|                 //ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold; |  | ||||||
|                 //ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 30); |  | ||||||
|                 //region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 5); |  | ||||||
|                 //ws.AddMergedRegion(region); |  | ||||||
|                 //ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue(model.HandoverCare); |  | ||||||
|                 //ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle; |  | ||||||
|                 //dataIndex += 2; |  | ||||||
|                 //ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5); |  | ||||||
|                 //region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 5); |  | ||||||
|                 //ws.AddMergedRegion(region); |  | ||||||
|                 //ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("operation issue操作问题"); |  | ||||||
|                 //ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold; |  | ||||||
|                 //ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 30); |  | ||||||
|                 //region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 5); |  | ||||||
|                 //ws.AddMergedRegion(region); |  | ||||||
|                 //ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue($"reason原因:{model.OperationReason}"); |  | ||||||
|                 //ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle; |  | ||||||
|                 //ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 3, dataIndex + 3, 0, 5, 30); |  | ||||||
|                 //region = new CellRangeAddress(dataIndex + 3, dataIndex + 3, 0, 5); |  | ||||||
|                 //ws.AddMergedRegion(region); |  | ||||||
|                 //ws.GetRow(dataIndex + 3).GetCell(0).SetCellValue($"solution处理:{model.OperationHandle}"); |  | ||||||
|                 //ws.GetRow(dataIndex + 3).GetCell(0).CellStyle = leftStyle; |  | ||||||
|                 //dataIndex += 3; |  | ||||||
|                 //ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 1, dataIndex + 1, 0, 5); |  | ||||||
|                 //region = new CellRangeAddress(dataIndex + 1, dataIndex + 1, 0, 5); |  | ||||||
|                 //ws.AddMergedRegion(region); |  | ||||||
|                 //ws.GetRow(dataIndex + 1).GetCell(0).SetCellValue("maintenance issue维护问题"); |  | ||||||
|                 //ws.GetRow(dataIndex + 1).GetCell(0).CellStyle = styleLeftBold; |  | ||||||
|                 //ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 2, dataIndex + 2, 0, 5, 30); |  | ||||||
|                 //region = new CellRangeAddress(dataIndex + 2, dataIndex + 2, 0, 5); |  | ||||||
|                 //ws.AddMergedRegion(region); |  | ||||||
|                 //ws.GetRow(dataIndex + 2).GetCell(0).SetCellValue($"reason原因:{model.MaintenanceReason}"); |  | ||||||
|                 //ws.GetRow(dataIndex + 2).GetCell(0).CellStyle = leftStyle; |  | ||||||
|                 //ws = ExcelCreateRowTitle(ws, hssfworkbook, style, dataIndex + 3, dataIndex + 3, 0, 5, 30); |  | ||||||
|                 //region = new CellRangeAddress(dataIndex + 3, dataIndex + 3, 0, 5); |  | ||||||
|                 //ws.AddMergedRegion(region); |  | ||||||
|                 //ws.GetRow(dataIndex + 3).GetCell(0).SetCellValue($"solution处理:{model.MaintenanceHandle}"); |  | ||||||
|                 //ws.GetRow(dataIndex + 3).GetCell(0).CellStyle = leftStyle; |  | ||||||
|                 //dataIndex += 3; |  | ||||||
|                 #endregion |                 #endregion | ||||||
| 
 | 
 | ||||||
|                 ws.PrintSetup.Landscape = false; |                 ws.PrintSetup.Landscape = false; | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue