Merge branch 'secondMaster' of http://27.128.204.251:9999/maqiao/HuNan_DM into secondMaster

This commit is contained in:
maqiao 2024-08-20 10:40:35 +08:00
commit 85360a675c
4 changed files with 1438 additions and 3 deletions

1
.gitignore vendored
View File

@ -362,4 +362,3 @@ MigrationBackup/
# Fody - auto-generated XML schema
FodyWeavers.xsd
/readme.txt
/DM_Weight/Port/PortUtil.cs

View File

@ -24,7 +24,7 @@
<!-- 登录顺序,指定先登录的人的名称有效值只有在登录模式等于2时才会生效 发药人【operator】审核人【reviewer】 -->
<add key="firstLogin" value="operator" />
<!-- 按处方还药或者按取药记录还药 1:处方2药品-->
<add key="returnDrugMode" value="1" />
<add key="returnDrugMode" value="2" />
<!-- 自动退出时间单位秒为0时不自动退出 -->
<add key="autoExit" value="300"/>
<!--报表数据库连接-->

1435
DM_Weight/Port/PortUtil.cs Normal file

File diff suppressed because it is too large Load Diff

View File

@ -533,7 +533,7 @@ namespace DM_Weight.ViewModels
if (!_isFinishClick)
{
_isFinishClick = true;
List<ChannelStock> record = ChannelStocks.ToList();
List<ChannelStock> record = ChannelStocks.Where(it=>it.AddQuantity>0).ToList();
string InvoiceId = SelectedInvoice.InvoiceNo;
var f = SqlSugarHelper.Db.UseTran(() =>
{
@ -569,6 +569,7 @@ namespace DM_Weight.ViewModels
List<ChannelStock> csCount = SqlSugarHelper.Db.Queryable<ChannelStock>().Where(cs => cs.DrawerNo == it.DrawerNo && cs.ColNo == it.ColNo && cs.ManuNo == it.ManuNo && cs.MachineId.Equals(ConfigurationManager.AppSettings["machineId"] ?? "DM1") && cs.Quantity > 0).ToList();
if (csCount.Count > 0)
{
logger.Info($"批号重复:{it.DrawerNo}-{it.ColNo}-{it.ManuNo}");
//repeatList.Add(it.ManuNo);
//stockRepeats.Add(it);
continue;