交接柜补药 添加“更新 交接柜 批次信息”
This commit is contained in:
parent
679b1a42ff
commit
6a4aac2a01
|
@ -56,7 +56,7 @@
|
||||||
<!-- 抽屉串口的串口号 -->
|
<!-- 抽屉串口的串口号 -->
|
||||||
<add key="DrawerPortPath" value="COM3" />
|
<add key="DrawerPortPath" value="COM3" />
|
||||||
<!-- can总线串口的串口号 -->
|
<!-- can总线串口的串口号 -->
|
||||||
<add key="CanBusPortPath" value="COM17" />
|
<add key="CanBusPortPath" value="COM9" />
|
||||||
<!-- 条码枪串口的串口号 -->
|
<!-- 条码枪串口的串口号 -->
|
||||||
<add key="ScanCodePortPath" value="COM8" />
|
<add key="ScanCodePortPath" value="COM8" />
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>WinExe</OutputType>
|
||||||
<TargetFramework>net6.0-windows</TargetFramework>
|
<TargetFramework>net6.0-windows</TargetFramework>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<UseWPF>true</UseWPF>
|
<UseWPF>true</UseWPF>
|
||||||
|
|
|
@ -351,23 +351,23 @@ namespace DM_Weight.ViewModels
|
||||||
Id = it.Id,
|
Id = it.Id,
|
||||||
}).UpdateColumns(it => new { it.Quantity, it.ManuNo, it.EffDate }).ExecuteCommand();
|
}).UpdateColumns(it => new { it.Quantity, it.ManuNo, it.EffDate }).ExecuteCommand();
|
||||||
|
|
||||||
////更新 交接柜 库存信息
|
//更新 交接柜 批次信息
|
||||||
//List<ChannelStock> jiaojie = Jiaojie_ChannelStocks.Where(cs => cs.DrugId == it.DrugId).ToList();
|
List<ChannelStock> jiaojieStock = Jiaojie_ChannelStocks.Where(cs => cs.DrugId == it.DrugId).ToList();
|
||||||
//if (jiaojie != null && jiaojie.Count > 0)
|
if (jiaojieStock != null && jiaojieStock.Count > 0)
|
||||||
//{
|
{
|
||||||
// for (int j = 0; j < jiaojie.Count; j++)
|
for (int j = 0; j < jiaojieStock.Count; j++)
|
||||||
// {
|
{
|
||||||
// // 更新数据 交接柜 库存信息
|
// 更新数据 交接柜 库存信息
|
||||||
// ChannelStock jiaojie_it = jiaojie[j];
|
ChannelStock jiaojie_it = jiaojieStock[j];
|
||||||
// SqlSugarHelper.Db.Updateable(new ChannelStock()
|
SqlSugarHelper.Db.Updateable(new ChannelStock()
|
||||||
// {
|
{
|
||||||
// Quantity = jiaojie_it.BaseQuantity,
|
//Quantity = jiaojie_it.BaseQuantity,
|
||||||
// //ManuNo = it.ManuNo,
|
ManuNo = it.ManuNo,
|
||||||
// //EffDate = it.EffDate,
|
//EffDate = it.EffDate,
|
||||||
// Id = jiaojie_it.Id,
|
Id = jiaojie_it.Id,
|
||||||
// }).UpdateColumns(jiaojie_it => new { jiaojie_it.Quantity }).ExecuteCommand();
|
}).UpdateColumns(jiaojie_it => new { jiaojie_it.ManuNo }).ExecuteCommand();
|
||||||
// }
|
}
|
||||||
//}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 保存数据 出库记录
|
// 保存数据 出库记录
|
||||||
|
|
Loading…
Reference in New Issue