From f24e6a366ef0305f71ecf39aa912af1ec32729e2 Mon Sep 17 00:00:00 2001
From: wendy <408182087@qq.com>
Date: Fri, 19 Sep 2025 14:47:27 +0800
Subject: [PATCH 1/3] =?UTF-8?q?20250919=20=E6=8E=92=E4=BA=A7=E8=AE=A1?=
=?UTF-8?q?=E5=88=92=E5=AF=BC=E5=87=BA=E6=95=B0=E5=AD=97=E6=A0=BC=E5=BC=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ProductionSchedulingPlan.aspx.cs | 49 +++++++++++++------
1 file changed, 34 insertions(+), 15 deletions(-)
diff --git a/SGGL/FineUIPro.Web/HJGL/PreDesign/ProductionSchedulingPlan.aspx.cs b/SGGL/FineUIPro.Web/HJGL/PreDesign/ProductionSchedulingPlan.aspx.cs
index d2a474a6..da7249e7 100644
--- a/SGGL/FineUIPro.Web/HJGL/PreDesign/ProductionSchedulingPlan.aspx.cs
+++ b/SGGL/FineUIPro.Web/HJGL/PreDesign/ProductionSchedulingPlan.aspx.cs
@@ -622,9 +622,21 @@ namespace FineUIPro.Web.HJGL.PreDesign
cellStyle.Alignment = NPOI.SS.UserModel.HorizontalAlignment.Center;
cellStyle.VerticalAlignment = NPOI.SS.UserModel.VerticalAlignment.Center;
cellStyle.WrapText = true;//自动换行
+
+ NPOI.SS.UserModel.ICellStyle style11 = workbook.CreateCellStyle();
+ style11.DataFormat = NPOI.HSSF.UserModel.HSSFDataFormat.GetBuiltinFormat("0.00");//数字格式
+ style11.BorderTop = NPOI.SS.UserModel.BorderStyle.Thin;
+ style11.BorderRight = NPOI.SS.UserModel.BorderStyle.Thin;
+ style11.BorderBottom = NPOI.SS.UserModel.BorderStyle.Thin;
+ style11.BorderLeft = NPOI.SS.UserModel.BorderStyle.Thin;
+ style11.Alignment = NPOI.SS.UserModel.HorizontalAlignment.Right;
+ style11.VerticalAlignment = NPOI.SS.UserModel.VerticalAlignment.Center;
+ style11.WrapText = true;//自动换行
+
var font = workbook.CreateFont();
font.FontHeightInPoints = 11;
cellStyle.SetFont(font);
+
// 第二步:创建新数据行
NPOI.SS.UserModel.ISheet sheet = workbook.GetSheetAt(0);
NPOI.SS.UserModel.IRow row = sheet.GetRow(0);
@@ -652,20 +664,23 @@ namespace FineUIPro.Web.HJGL.PreDesign
cell.SetCellValue(item.Caliber);//口径
cell = row.CreateCell(4);
- cell.CellStyle = cellStyle;
- cell.SetCellValue(item.Dain.HasValue ? item.Dain.ToString() : "");//达因数
+ //cell.CellStyle = cellStyle;
+ cell.SetCellValue(item.Dain.HasValue ? Convert.ToDouble(item.Dain) : 0);//达因数
+ cell.CellStyle = style11;
cell = row.CreateCell(5);
- cell.CellStyle = cellStyle;
- cell.SetCellValue(item.TotalDyne.HasValue ? item.TotalDyne.ToString() : "");//总达因数
+ //cell.CellStyle = cellStyle;
+ cell.SetCellValue(item.TotalDyne.HasValue ? Convert.ToDouble(item.TotalDyne) : 0);//总达因数
+ cell.CellStyle = style11;
cell = row.CreateCell(6);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.TotalPriority);//总优先级
cell = row.CreateCell(7);
- cell.CellStyle = cellStyle;
- cell.SetCellValue(item.PriorityTotalDyne.HasValue ? item.PriorityTotalDyne.ToString() : "");//优先级总达因
+ //cell.CellStyle = cellStyle;
+ cell.SetCellValue(item.PriorityTotalDyne.HasValue ? Convert.ToDouble(item.PriorityTotalDyne) : 0);//优先级总达因
+ cell.CellStyle = style11;
cell = row.CreateCell(8);
cell.CellStyle = cellStyle;
@@ -680,21 +695,25 @@ namespace FineUIPro.Web.HJGL.PreDesign
cell.SetCellValue(item.Days.HasValue ? item.Days.ToString() : "");//天数
cell = row.CreateCell(11);
- cell.CellStyle = cellStyle;
- cell.SetCellValue(item.AvgDailyWorkload.HasValue ? item.AvgDailyWorkload.ToString() : "");//平均每天工作量
+ //cell.CellStyle = cellStyle;
+ cell.SetCellValue(item.AvgDailyWorkload.HasValue ? Convert.ToDouble(item.AvgDailyWorkload.ToString()) : 0);//平均每天工作量
+ cell.CellStyle = style11;
cell = row.CreateCell(12);
- cell.CellStyle = cellStyle;
- cell.SetCellValue(item.OnDayCompleteDyne.HasValue ? item.OnDayCompleteDyne.ToString() : "");//当日已完成量
+ //cell.CellStyle = cellStyle;
+ cell.SetCellValue(item.OnDayCompleteDyne.HasValue ? Convert.ToDouble(item.OnDayCompleteDyne.ToString()) : 0);//当日已完成量
+ cell.CellStyle = style11;
cell = row.CreateCell(13);
- cell.CellStyle = cellStyle;
- cell.SetCellValue(item.NextDayCompleteDyne.HasValue ? item.NextDayCompleteDyne.ToString() : "");//次日应完成量
+ //cell.CellStyle = cellStyle;
+ cell.SetCellValue(item.NextDayCompleteDyne.HasValue ? Convert.ToDouble(item.NextDayCompleteDyne.ToString()) : 0);//次日应完成量
+ cell.CellStyle = style11;
cell = row.CreateCell(14);
- cell.CellStyle = cellStyle;
- cell.SetCellValue(item.CompletedCount.HasValue ? item.CompletedCount.ToString() : "");//累计已完成量
-
+ //cell.CellStyle = cellStyle;
+ cell.SetCellValue(item.CompletedCount.HasValue ? Convert.ToDouble(item.CompletedCount.ToString()) : 0);//累计已完成量
+ cell.CellStyle = style11;
+
cell = row.CreateCell(15);
cell.CellStyle = cellStyle;
cell.SetCellValue(item.CompletedRate.HasValue ? item.CompletedRate.ToString() : "");//已完成百分比
From 6e6f3d42fde58c98cb921cab87e84193e1fbd042 Mon Sep 17 00:00:00 2001
From: wendy <408182087@qq.com>
Date: Wed, 24 Sep 2025 15:27:48 +0800
Subject: [PATCH 2/3] =?UTF-8?q?20250924=20=E4=BF=AE=E6=94=B9=E6=8E=92?=
=?UTF-8?q?=E4=BA=A7=E8=AE=A1=E5=88=92?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ProductionSchedulingPlanService.cs | 2 +
.../HJGL/WeldingManage/WeldJointService.cs | 130 ++++++++++++++----
.../PreDesign/ProductionSchedulingPlan.aspx | 30 ++--
.../ProductionSchedulingPlan.aspx.cs | 112 +++++++++++----
.../ProductionSchedulingPlan.aspx.designer.cs | 18 ---
5 files changed, 215 insertions(+), 77 deletions(-)
diff --git a/SGGL/BLL/HJGL/PreDesign/ProductionSchedulingPlanService.cs b/SGGL/BLL/HJGL/PreDesign/ProductionSchedulingPlanService.cs
index ab72d20e..7e5d5131 100644
--- a/SGGL/BLL/HJGL/PreDesign/ProductionSchedulingPlanService.cs
+++ b/SGGL/BLL/HJGL/PreDesign/ProductionSchedulingPlanService.cs
@@ -55,6 +55,8 @@ namespace BLL
newPlan.CompletedCount = plan.CompletedCount;
newPlan.CompletedRate = plan.CompletedRate;
newPlan.TotalCompletedRate = plan.TotalCompletedRate;
+ newPlan.OnDayCompleteDyne = plan.OnDayCompleteDyne;
+ newPlan.NextDayCompleteDyne = plan.NextDayCompleteDyne;
db.HJGL_ProductionSchedulingPlan.InsertOnSubmit(newPlan);
db.SubmitChanges();
}
diff --git a/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs b/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs
index 230f8d1e..e9c4010f 100644
--- a/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs
+++ b/SGGL/BLL/HJGL/WeldingManage/WeldJointService.cs
@@ -640,9 +640,9 @@ namespace BLL
/// 流水段
/// 材质
/// 口径
- /// 1-总达因,2-完成总达因
+ /// 1-达因,2-完成达因
///