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