From 2b75698383ddae3e717cec8267083a9b9d3d0eeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E9=94=A6=E8=B4=A4?= <996842803@qq.com> Date: Thu, 11 Jun 2026 15:56:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=AC=AC=E4=B8=89=E5=B1=82?= =?UTF-8?q?=E6=8A=A5=E5=B7=A5=E6=95=B0=E9=87=8F=E9=94=99=E8=AF=AF=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DBService/FormingMachineService.cs | 24 ++----------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/shangjian/XGL.Data/DBService/FormingMachineService.cs b/shangjian/XGL.Data/DBService/FormingMachineService.cs index 7dceac6..2eb6bf8 100644 --- a/shangjian/XGL.Data/DBService/FormingMachineService.cs +++ b/shangjian/XGL.Data/DBService/FormingMachineService.cs @@ -819,27 +819,6 @@ VALUES double rate = Convert.ToDouble(workCount) / Convert.ToDouble(orderQuntity);//workCount是报工数量,orderQuntity是母单数量 double subOrderQty = 0; LogHelper.instance.log.Info("rate>>>" + rate); - //根据base_product_attach表里的报工比例,计算子单数量,又取消了 - string sqlGetReportRate = $@"select isnull(report_rate,0) as report_rate from base_product where product_code = '{selectRow["product_code"]}'"; - //DataSet dtReportRate = Utils.netClientDBHelper.getDataSet(sqlGetReportRate); - - //string reportRate = "0"; - //if (dtReportRate != null && dtReportRate.Tables.Count > 0 && dtReportRate.Tables[0].Rows.Count > 0) - //{ - // reportRate = dtReportRate.Tables[0].Rows[0][0].ToString(); - // LogHelper.instance.log.Info("获取到报工效率为:" + reportRate+",产品编码为:"+ selectRow["product_code"]+",子单数量为:"+ subQuntity); - //} - //if (sortNo < 3) - //{ - // if (reportRate.Equals("0")) - // { - // subOrderQty = rate * Convert.ToDouble(subQuntity); - // } - // else - // { - // subOrderQty = Convert.ToDouble(reportRate) * Convert.ToDouble(subQuntity); - // } - //} if (sortNo < 3) { subOrderQty = rate * Convert.ToDouble(subQuntity); @@ -863,7 +842,8 @@ VALUES {userCountDic[sortNo]}, '{costCenter}','0','{batchCode}','{isEndReport}','{orderId}','{LoginUser.CurrDeviceIP}','{LoginUser.Version}');"; workReports.Add(subOrderSql); sortNo++; - GetAllWorkReportsForOrderAndChildren(subOrder, selectRow, orderQuntity, reportCode, costCenter, batchCode, isEndReport, deviceCode, lineName, subQuntity, workTimeDic, userCountDic, sortNo); + //GetAllWorkReportsForOrderAndChildren(subOrder, selectRow, orderQuntity, reportCode, costCenter, batchCode, isEndReport, deviceCode, lineName, subQuntity, workTimeDic, userCountDic, sortNo); + GetAllWorkReportsForOrderAndChildren(subOrder, selectRow, orderQuntity, reportCode, costCenter, batchCode, isEndReport, deviceCode, lineName, workCount, workTimeDic, userCountDic, sortNo); }