| | |
| | | using Masuit.Tools; |
| | | using MES.Service.Models; |
| | | using MES.Service.Modes; |
| | | using System.Data; |
| | | using System.Data.SqlClient; |
| | | using Masuit.Tools; |
| | | using NewPdaSqlServer.DB; |
| | | using NewPdaSqlServer.Dto.service; |
| | | using NewPdaSqlServer.entity; |
| | | using NewPdaSqlServer.entity.Base; |
| | | using NewPdaSqlServer.util; |
| | | using OracleInternal.Sharding; |
| | | using SqlSugar; |
| | | using SqlSugar.Extensions; |
| | | using System.Data; |
| | | using System.Data.SqlClient; |
| | | |
| | | namespace NewPdaSqlServer.service.Warehouse; |
| | | |
| | |
| | | { |
| | | // 关联查询物料表、物料明细表和物料基础信息表 |
| | | var mesItemTblDetails = Db |
| | | .Queryable<MesShouTuo, MesShouTuoDetail, MesItems>( |
| | | (a, b, c) => new JoinQueryInfos( |
| | | .Queryable<MesShouTuo, MesShouTuoDetail, MesItems>((a, b, c) => |
| | | new JoinQueryInfos( |
| | | JoinType.Left, |
| | | a.Guid == b.PGuid, |
| | | JoinType.Left, |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 受托入库入库 |
| | | /// 受托入库入库 |
| | | /// </summary> |
| | | /// <param name="unity"></param> |
| | | /// <returns></returns> |
| | |
| | | using (var conn = new SqlConnection(DbHelperSQL.strConn)) |
| | | { |
| | | if (unity.userName.IsNullOrEmpty()) throw new Exception("用户名不允许为空"); |
| | | if (unity.sectionCode.IsNullOrEmpty()) throw new Exception("库位编号不允许为空"); |
| | | if (unity.sectionCode.IsNullOrEmpty()) |
| | | throw new Exception("库位编号不允许为空"); |
| | | if (unity.barcode.IsNullOrEmpty()) throw new Exception("条码不允许为空"); |
| | | if (unity.billNo.IsNullOrEmpty()) throw new Exception("申请单号不允许为空"); |
| | | |
| | |
| | | new("@pi_user", unity.userName), |
| | | new("@pi_barcode", unity.barcode), |
| | | new("@pi_sectionCode", unity.sectionCode), |
| | | new("@pi_billno", unity.billNo), |
| | | |
| | | new("@pi_billno", unity.billNo) |
| | | }; |
| | | parameters[0].Direction = ParameterDirection.Output; |
| | | parameters[1].Direction = ParameterDirection.Output; |
| | | // parameters[2].Direction = ParameterDirection.Output; |
| | | // parameters[2].Direction = ParameterDirection.Output; |
| | | |
| | | foreach (var parameter in parameters) |
| | | cmd.Parameters.Add(parameter); |
| | |
| | | return _strMsg; |
| | | |
| | | //return 0; |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |