From 8e2bf9ecdf3d774a16172b8e918c45ecb3ddc1e6 Mon Sep 17 00:00:00 2001 From: gaofei <181547018@qq.com> Date: Thu, 22 Dec 2022 09:31:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=84=8A=E6=8E=A5=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldTask.aspx.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldTask.aspx.cs b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldTask.aspx.cs index 20f4eab2..5c28c8e9 100644 --- a/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldTask.aspx.cs +++ b/SGGL/FineUIPro.Web/HJGL/WeldingManage/WeldTask.aspx.cs @@ -400,7 +400,7 @@ namespace FineUIPro.Web.HJGL.WeldingManage { var weldingRods = from x in Funs.DB.Base_Consumables where x.ConsumablesType == "2" select x; var weldingWires = from x in Funs.DB.Base_Consumables where x.ConsumablesType == "1" select x; - for (int i = 0; i < Grid1.Rows.Count(); i++) + foreach (var i in Grid1.SelectedRowIndexArray) { string weldTaskId = Grid1.DataKeys[i][0].ToString(); string jotId = Grid1.DataKeys[i][1].ToString();