baseline: 小军 WMS 二开代码原始快照(含 SynOABusiness.cs Debugger.Break)

This commit is contained in:
Gaussian committed 2026-11-06 18:38:38 +08:00
commit c2b0e7be0d
6522 files changed
+3530643

No files matched your search

@@ -0,0 +1,49 @@
using System.Collections;
using Opsoft.NetCore.O3App.Domain.Interface;
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model;
using System.Collections.Generic;
using System.Threading.Tasks;
using System.Data;
namespace Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IRepositories
{
public interface IBarcodeRepository:IRepository<BaseEntity>
{
Task<List<BarCodeMsg>> GetBarcodeMsg(string barcode, string orgId, string billType = "");
Task<List<BarcodeCheckInfo>> GetBarcodeCheckInfoAsync(string barcode);
Task<string> GetScanBarcodeInfoAsync(string sql,int dtoType);
Task<List<BD_BARCODERSENTRY>> GetBoxedBarcodeAsync(string sql);
Task<List<SpMeBarcodeInfoDto>> GetSpMeBarcodeInfoAsync(string sql);
Task<List<InBoxBarcodeInfoDto>> GetInBoxBarcodeInfoAsync(string sql);
Task<string> GetBoxRootInfoXmlStrAsync(string sql);
Task<decimal> GetBaseUnitQtyAsync(string materialId, string unitId, string baseUnitId, decimal qty);
Task<int> UpdateBarcodeQtyAsync(string sql);
Task<int> ExecuteSqlNoneQueryAsync(string sql);
Task<int> ExecuteSqlNoneQueryAsync(List<string> sqlStrList);
Task<string> CreateBillNo(string billInfoJson);
Task<string> CreateBarcode(string billDataJson,string prgKey);
Task<Hashtable> GetSystemParameters(string key);
/// <summary>
/// 拆箱操作
/// </summary>
/// <param name="inputDto"></param>
/// <returns></returns>
Task SplitBox(OutBoxInputDto inputDto);
/// <summary>
/// 查询DataTable
/// </summary>
/// <param name="sql"></param>
/// <returns></returns>
Task<DataSet> GetDataSet(List<string> sqlList);
Task<DataTable> GetDataTable(string sql);
/// <summary>
/// 获取条码相关的校验数据
/// </summary>
/// <param name="barcode"></param>
/// <returns></returns>
Task<List<BarcodeCheckInfo>> GetBarcodeCheckInfo(string barcode,string orgId);
}
}
@@ -0,0 +1,25 @@
using Newtonsoft.Json.Linq;
using Opsoft.NetCore.O3App.Domain.Interface;
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model;
using Opsoft.NetCore.O3App.Shared;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IRepositories
{
public interface IBillHandleRepository : IRepository<BaseEntity>
{
Task<List<TRAN_INFO>> QuerySelBill();
Task<RetMessage> QueryBillInfo(JObject data);
Task<RetMessage> QueryBarCode(JObject data);
/// <summary>
/// 出入库复核提交
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> CheckSubmit(string orgID, string tranType, string fbillNo, List<BarCodeMsg<BD_BARCODERS2>> barcodeList);
}
}
@@ -0,0 +1,23 @@
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Threading.Tasks;
using Opsoft.NetCore.O3App.Domain.Interface;
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model;
namespace Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IRepositories
{
public interface ICallMaterialRepository : IRepository<BaseEntity>
{
DataTable SqlQuery(string sql);
List<T> SqlQuery<T>(string sql) where T : class, new();
Task<List<T>> SqlQueryAsync<T>(string sql) where T : class, new();
Task<int> ExecuteSqlAsync(List<string> sqlList);
Task<int> ExecuteTransactionAsync(List<string> sqlList);
Task<int> ExecuteSqlAsync(string sql);
Task<string> CreateBillNo(string billInfoJson);
decimal QtyUnitConvert(string materialId, string unitFrom, string unitTo, decimal qty);
}
}
@@ -0,0 +1,28 @@
using Opsoft.NetCore.O3App.Domain.Interface;
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model;
using Opsoft.NetCore.O3App.Shared;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IRepositories
{
public interface IInStockRepository : IRepository<BaseEntity>
{
/// <summary>
/// 提交入库信息
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> InStockSubmit(InputBarCode<BD_BARCODERS2> request, List<BOS_SELBILL> selBillList);
/// <summary>
/// 提交退库信息
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> RetStockSubmit(InputBarCode<BD_BARCODERS2> request, List<BOS_SELBILL> selBillList);
}
}
@@ -0,0 +1,28 @@
using Opsoft.NetCore.O3App.Domain.Interface;
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model;
using Opsoft.NetCore.O3App.Shared;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IRepositories
{
public interface IMisInStockRepository : IRepository<BaseEntity>
{
/// <summary>
/// 提交入库信息
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> MisInStockSubmit(InputBarCode<BD_BARCODERS2> request, List<BOS_SELBILL> selBillList); //BARCODE2成品源单表
/// <summary>
/// 提交出库信息
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> MisRetStockSubmit(InputBarCode<BD_BARCODERS2> request, List<BOS_SELBILL> selBillList);
}
}
@@ -0,0 +1,28 @@
using Opsoft.NetCore.O3App.Domain.Interface;
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model;
using Opsoft.NetCore.O3App.Shared;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IRepositories
{
public interface IOEMInStockRepository : IRepository<BaseEntity>
{
/// <summary>
/// 提交入库信息
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> InStockSubmit(InputBarCode<BD_BARCODERS5> request, List<BOS_SELBILL> selBillList);
/// <summary>
/// 提交出库信息
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> RetStockSubmit(InputBarCode<BD_BARCODERS5> request, List<BOS_SELBILL> selBillList);
}
}
@@ -0,0 +1,75 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
using Opsoft.NetCore.O3App.Domain.Interface;
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model;
using Opsoft.NetCore.O3App.Shared;
namespace Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IRepositories
{
/// <summary>
/// 销售出库
/// </summary>
public interface IOutStockRepository : IRepository<BaseEntity>
{
/// <summary>
/// 销售出库信息
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> SaleOutStockSubmit(InputBarCode<BD_BARCODERS2> request, List<BOS_SELBILL> selBillList);
/// <summary>
/// 销售退货信息
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> SaleInStockSubmit(InputBarCode<BD_BARCODERS2> request, List<BOS_SELBILL> selBillList);
/// <summary>
/// 销售出库(套件)信息
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> SaleOutStockSuitSubmit(InputBarCode<BD_BARCODERS2> request, List<BOS_SELBILL> selBillList);
/// <summary>
/// 销售退库(套件)信息
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> SaleInStockSuitSubmit(InputBarCode<BD_BARCODERS2> request, List<BOS_SELBILL> selBillList);
/// <summary>
/// 销售复核(扫源单)
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> SaleCheckScanSourceBill(JObject request);
/// <summary>
/// 销售复核(扫条码/扫箱码)
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> SaleCheckScanCode(JObject request);
/// <summary>
/// 销售复核(暂存)
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> SaleCheckTemporaryStorage(string FBILLNO, string orgID, List<BarCodeMsg<BD_BARCODERS2>> barcodeList);
/// <summary>
/// 销售复核(提交)
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> SaleCheckSubmit(string FBILLNO, string orgID, List<BarCodeMsg<BD_BARCODERS2>> barcodeList);
}
}
@@ -0,0 +1,21 @@
using System.Collections.Generic;
using System.Data;
using System.Threading.Tasks;
using Opsoft.NetCore.O3App.Domain.Interface;
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model;
using Opsoft.NetCore.O3App.Shared;
namespace Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IRepositories
{
public interface IPickInventoryRepository : IRepository<BaseEntity>
{
DataTable SqlQuery(string sql);
List<T> SqlQuery<T>(string sql) where T : class, new();
List<PickInventoryBarcodeInfo> GetBarcodeInfos(string sql);
Task<List<T>> SqlQueryAsync<T>(string sql) where T : class, new();
Task<int> ExecuteSqlAsync(List<string> sqlList);
Task<int> ExecuteSqlAsync(string sql);
Task<string> CreateBillNo(string billInfoJson);
decimal QtyUnitConvert(string materialId, string unitFrom, string unitTo, decimal qty);
}
}
@@ -0,0 +1,29 @@
using System.Collections;
using Opsoft.NetCore.O3App.Domain.Interface;
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IRepositories
{
public interface IPickMtrlRepository : IRepository<BaseEntity>
{
Task<List<BarcodeCheckInfo>> GetBarcodeCheckInfoAsync(string barcode);
Task<List<SOURCEBILLINFO>> GetSourceBillDataAsync(string sqlStr);
Task<string> CreateBillNo(string strJson, int billType);
Task<Hashtable> GetSystemParameters(string key);
decimal GetQty2(string materialId, string unitFrom, string unitTo, decimal qty);
Task<int> ExecuteTransactionAsync(List<string> sqlStrList);
string GetUpdateInventoryQtySqlStr(
string orgID,
List<BarCodeMsg<BD_BARCODERS2>> inputMaterialList,
bool isPlus,
ref List<string> exeSqlStrList);
}
}
@@ -0,0 +1,13 @@
using Opsoft.NetCore.O3App.Domain.Interface;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IRepositories
{
public interface IProductBarcodeCheckRepository : IRepository<BaseEntity>
{
Task<List<string>> ExecuteAsync(Dictionary<string, string> sqlList);
}
}
@@ -0,0 +1,77 @@
using System;
using System.Collections.Generic;
using System.Text;
using Opsoft.NetCore.O3App.Domain.Interface;
using System.Data;
using System.Threading.Tasks;
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model;
namespace Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IRepositories
{
public interface ISTKAPPINSPECTRepository : IRepository<BaseEntity>
{
/// <summary>
/// 获取基本资料列表
/// </summary>
/// <param name="SData"></param>
/// <returns></returns>
Task<List<GetBDInformation>> GetBDInformation(GetBDInformationParameter SData);
/// <summary>
/// 获取AQL
/// </summary>
/// <param name="SData"></param>
/// <returns></returns>
Task<object> GetAQL(getAQL SData);
/// <summary>
/// 获取检验项目
/// </summary>
/// <param name="SData"></param>
/// <returns></returns>
Task<DataTable> GetTestItems(GetTestItems SData);
/// <summary>
/// 验证测试值是否合格
/// </summary>
/// <param name="SData"></param>
/// <returns></returns>
Task<Boolean> ValueIsQualified(ValueIsQualified SData);
/// <summary>
/// 获取检验单列表
/// </summary>
/// <param name="SData"></param>
/// <returns></returns>
Task<DataTable> InStockInspectionList(InStockInspectionListRequest SData);
/// <summary>
/// 获取检验项目详情
/// </summary>
/// <param name="SData"></param>
/// <returns></returns>
Task<List<InspectionItemsDetails>> InspectionItems(InspectionItems SData);
/// <summary>
/// 检验单提交
/// </summary>
/// <param name="SData"></param>
/// <returns></returns>
Task<string> InspectionItemsSubmit(InspectionItemsSubmit SData);
/// <summary>
/// 获取BILLNO
/// </summary>
/// <param name="date"></param>
/// <returns></returns>
Task<string> CreateBillNo(DateTime date,string tranType,string tableName);
/// <summary>
/// 批量执行insert,事务
/// </summary>
/// <param name="sqlList"></param>
/// <returns></returns>
Task<int> ExecuteTransactionAsync(List<string> sqlList);
}
}
@@ -0,0 +1,28 @@
using Opsoft.NetCore.O3App.Domain.Interface;
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model;
using Opsoft.NetCore.O3App.Shared;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IRepositories
{
public interface ISTKInStockRepository : IRepository<BaseEntity>
{
/// <summary>
/// 外购入库信息
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> STKInStockSubmit(InputBarCode<BD_BARCODERS1> request, List<BOS_SELBILL> selBillList); //BARCODE2成品源单表
/// <summary>
/// 外购退料信息
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> PURRetStockSubmit(InputBarCode<BD_BARCODERS1> request, List<BOS_SELBILL> selBillList);
}
}
@@ -0,0 +1,23 @@
using Newtonsoft.Json.Linq;
using Opsoft.NetCore.O3App.Domain.Interface;
using Opsoft.NetCore.O3App.Domain.UnitOfWork.BaseData.Model;
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model;
using Opsoft.NetCore.O3App.Shared;
using System;
using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Threading.Tasks;
namespace Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IRepositories
{
public interface ISTKInventoryRepository : IRepository<BaseEntity>
{
/// <summary>
/// 库存查询
/// </summary>
/// <param name="stockList"></param>
/// <returns></returns>
Task<Dictionary<string, object>> QueryInventory(JObject paramaters);
}
}
@@ -0,0 +1,29 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Opsoft.NetCore.O3App.Domain.Interface;
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model;
namespace Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IRepositories
{
/// <summary>
/// 盘点方案
/// </summary>
public interface ISTKStockSchemeRepository : IRepository<BaseEntity>
{
/// <summary>
/// 查询盘点方案
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<QuerySourceInvPrgReturnDto> QuerySourceInvPrg(STKStockScheme SData);
/// <summary>
/// 盘点方案提交
/// </summary>
/// <param name="SData"></param>
/// <returns></returns>
Task<string> SubmitBill(Barcode_Inv SData);
}
}
@@ -0,0 +1,24 @@
using Opsoft.NetCore.O3App.Domain.Interface;
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model;
using Opsoft.NetCore.O3App.Shared;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IRepositories
{
public interface ISTKTransferRepository : IRepository<BaseEntity>
{
/// <summary>
/// 调拨管理
/// </summary>
/// <param name="orgID"></param>
/// <param name="tranType"></param>
/// <param name="selBillList"></param>
/// <param name="barcodeList"></param>
/// <returns></returns>
Task<RetMessage> STKTransferSubmit(InputBarCode<BD_BARCODERS2> request, List<BOS_SELBILL> selBillList);
}
}
@@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Opsoft.NetCore.O3App.Domain.Interface;
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model;
using Opsoft.NetCore.O3App.Shared;
namespace Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IRepositories
{
/// <summary>
/// 委外入库/委外退货
/// </summary>
public interface ISUBInStkPickmtlRepository : IRepository<BaseEntity>
{
/// <summary>
/// 委外入库
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> SUBInStkPickmtl(InputBarCode<BD_BARCODERS2> request, List<BOS_SELBILL> selBillList);
/// <summary>
/// 委外退货
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> SUBOutStkPickmtl(InputBarCode<BD_BARCODERS2> request, List<BOS_SELBILL> selBillList);
}
}
@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Opsoft.NetCore.O3App.Domain.Interface;
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model;
using Opsoft.NetCore.O3App.Shared;
namespace Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IRepositories
{
/// <summary>
/// 委外领料/委外退料
/// </summary>
public interface ISUBPICKMTRLRepository : IRepository<BaseEntity>
{
/// <summary>
/// 委外领料
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> SUBPICKMTRL(InputBarCode<BD_BARCODERS2> request, List<BOS_SELBILL> selBillList);
/// <summary>
/// 委外退料
/// </summary>
/// <param name="orgID"></param>
/// <param name="tranType"></param>
/// <param name="selBillList"></param>
/// <param name="barcodeList"></param>
/// <returns></returns>
Task<RetMessage> SUBRETURNMTRL(InputBarCode<BD_BARCODERS2> request, List<BOS_SELBILL> selBillList);
}
}
@@ -0,0 +1,50 @@
using Newtonsoft.Json.Linq;
using Opsoft.NetCore.O3App.Domain.Interface;
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model;
using Opsoft.NetCore.O3App.Shared;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IRepositories
{
public interface ISelBillRepository : IRepository<BaseEntity>
{
/// <summary>
/// 查询出入库流程配置
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<List<BOS_SELBILL>> QuerySelBill(string orgID, string data);
/// <summary>
/// 扫描源单编号,查询源单信息
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> QuerySourceBillInfo(JObject data);
/// <summary>
/// 查询条码信息
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> QueryBarCode(JObject data);
/// <summary>
/// 扫描位置信息,查询仓库仓位
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> QueryStockData(JObject data);
/// <summary>
/// 查询仓库库存状态
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> QueryStockStatus(JObject data);
}
}
@@ -0,0 +1,25 @@
using Opsoft.Data;
using Opsoft.NetCore.O3App.Domain.Interface;
using Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.Model;
using Opsoft.NetCore.O3App.Shared;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Opsoft.NetCore.O3App.Domain.UnitOfWork.WMS.IRepositories
{
public interface ISimpleProductionRepository: IRepository<BaseEntity>
{
Task<List<BarcodeCheckInfo>> GetBarcodeCheckInfoAsync(APPServerContext dbContext, string barcode);
Task<int> ExecuteTransactionAsync(APPServerContext dbContext, List<string> sqlStrList);
string CreateBillNo(APPServerContext dbContext, string strJson, int billType);
/// <summary>
/// 简单生产退库
/// </summary>
/// <param name="data"></param>
/// <returns></returns>
Task<RetMessage> SimpleOutStockSubmit(InputBarCode<BD_BARCODERS2> request, List<BOS_SELBILL> selBillList);
decimal GetQty2(string materialId, string unitFrom, string unitTo, decimal qty);
}
}