新材料现场优化

This commit is contained in:
CPL 2025-04-11 11:04:18 +08:00
parent f50cdeeb39
commit 3d7ce863de
4 changed files with 23 additions and 6 deletions

View File

@ -118,7 +118,11 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="textBox1.Text" xml:space="preserve">
<value>v1.2.0.11(2024-12-09)
<value>v1.2.0.12(2025-4-09)
1.门幅显示改为有效门幅
2.新材料厚度上传修改为最大最小和中间值
3.加入计米器偏差修正功能
v1.2.0.11(2024-12-09)
1、修复bug
2、明新ERP更新
3、新材料功能更新

View File

@ -3163,7 +3163,8 @@ namespace LeatherApp.Page
errStep = 5;
//门幅更新含两侧孔洞x,y cm
float faceWidthX_cm = (float)Math.Round((scanPhotos0.photoIndex + 1) * mat.Height * 1.0f / Config.cm2px_y, 2);
float faceWidthY_cm = (float)Math.Round((mat.Width + Config.MarginHoleWidth * 2) * 1.0f / Config.cm2px_x + Config.EdgeOffset, 2);
//float faceWidthY_cm = (float)Math.Round((mat.Width + Config.MarginHoleWidth * 2) * 1.0f / Config.cm2px_x + Config.EdgeOffset, 2);
float faceWidthY_cm = (float)Math.Round((mat.Width) * 1.0f / Config.cm2px_x + Config.EdgeOffset, 2);
faceWidthX_cm = (float)Math.Round(faceWidthX_cm, 2);
#if OnLine
faceWidthY_cm = (float)Math.Round(faceWidthY_cm, 2);
@ -3726,6 +3727,12 @@ namespace LeatherApp.Page
//LastSplitLength = model.Len - confMgr.SysConfigParams.CutDis;
model.Len = Math.Round(lastLength, 2);
}
if(model.Len <= 1)
{
AddTextEvent(DateTime.Now, "入库失败", $"计米长度小于1m", WarningEnum.Low);
_isDefect = false;
return;
}
model.BatchId = batchId;
model.ReelId = reelId;
@ -5659,6 +5666,7 @@ namespace LeatherApp.Page
frm.ShowDialog();
if (frm.IsOK)
{
AddTextEvent(DateTime.Now, "标准修改", $"条码({curRecord.BarCode})批号({curRecord.BatchId})卷号({curRecord.ReelId})。");
curRecord.ProductInfo.QualifiedLimitList = frm.QualifiedLimits;
}

View File

@ -274,7 +274,7 @@ namespace LeatherApp.Utils
if(fdinfo.Length > 0)
fdinfo = fdinfo.Remove(fdinfo.Length - 1);
}
//厚度均值
//厚度均值 再取最大最小中间值
double agvhd = 0;
double hd1 = 0, hd2 = 0, hd3 = 0;
if (records.ThicknessList != null && records.ThicknessList.Count > 0)
@ -293,9 +293,14 @@ namespace LeatherApp.Utils
data3.Add(item.Value3);
}
agvhd = data.Average();
hd1 = data1.Average();
hd2 = data2.Average();
hd3 = data3.Average();
//现场需求不使用均值,使用最大最小和中间值
//hd1 = data1.Average();
//hd2 = data2.Average();
//hd3 = data3.Average();
data.Sort();
hd1 = data.Min();
hd2 = data[data.Count/2];
hd3 = data.Max();
}
//幅宽
double agvmf = 0;