From 5b33ebd8834b68614faf6fcf89e7f555fcf7c3ac Mon Sep 17 00:00:00 2001 From: maqiao <625215135@qq.com> Date: Wed, 7 Aug 2024 14:07:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=91=E5=AE=9A=E8=8D=AF=E5=93=81=E6=97=B6?= =?UTF-8?q?=E5=85=B3=E8=81=94channel=5Flist=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DM_Weight/ViewModels/BindBoxPackageWindowViewModel.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DM_Weight/ViewModels/BindBoxPackageWindowViewModel.cs b/DM_Weight/ViewModels/BindBoxPackageWindowViewModel.cs index 642800e..e57b7a2 100644 --- a/DM_Weight/ViewModels/BindBoxPackageWindowViewModel.cs +++ b/DM_Weight/ViewModels/BindBoxPackageWindowViewModel.cs @@ -190,8 +190,10 @@ namespace DM_Weight.ViewModels } var f = SqlSugarHelper.Db.UseTran(() => { + string chnguid=SqlSugarHelper.Db.Queryable().Where(cs => cs.MachineId == ConfigurationManager.AppSettings[""].ToString()&&cs.DrawerNo==DrawerNo).Select(cs=>cs.Id).First(); SqlSugarHelper.Db.Insertable(new ChannelStock() { + Chnguid=chnguid, DrawerNo = DrawerNo, DrugId = DrugInfo.DrugId.ToString(), BaseQuantity = baseQuantity,