|
|
@@ -3,6 +3,7 @@ using Business.Core.MongoDBHelper;
|
|
|
using Business.Core.Utilities;
|
|
|
using Business.EntityFrameworkCore;
|
|
|
using Business.ResourceExamineManagement.Dto;
|
|
|
+using Bussiness.EntityFrameworkCore.SqlRepositories;
|
|
|
using Bussiness.Model.Bang;
|
|
|
using Bussiness.Model.MES.IC;
|
|
|
using Bussiness.Model.Production;
|
|
|
@@ -17,8 +18,6 @@ using Microsoft.EntityFrameworkCore;
|
|
|
using MongoDB.Driver;
|
|
|
using MongoDB.Driver.Linq;
|
|
|
using Newtonsoft.Json;
|
|
|
-using Spire.Pdf.Exporting.XPS.Schema;
|
|
|
-using Spire.Pdf.General.Render.Decode.Jpeg2000.j2k.wavelet.synthesis;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
@@ -28,10 +27,7 @@ using Volo.Abp.Application.Services;
|
|
|
using Volo.Abp.DependencyInjection;
|
|
|
using Volo.Abp.Domain.Repositories;
|
|
|
using Volo.Abp.MultiTenancy;
|
|
|
-using Volo.Abp.ObjectMapping;
|
|
|
using Z.EntityFramework.Plus;
|
|
|
-using ZstdSharp.Unsafe;
|
|
|
-using static Spire.Pdf.General.Render.Decode.Jpeg2000.j2k.codestream.HeaderInfo;
|
|
|
|
|
|
namespace Business.ResourceExamineManagement
|
|
|
{
|
|
|
@@ -236,6 +232,7 @@ namespace Business.ResourceExamineManagement
|
|
|
|
|
|
private readonly BusinessBangDbContext _businessBangDbContext;
|
|
|
private readonly BusinessDbContext _businessDbContext;
|
|
|
+ private readonly ISqlRepository<TagMaster> _tagMasterRepository;
|
|
|
#endregion
|
|
|
|
|
|
#region 构造函数
|
|
|
@@ -297,6 +294,7 @@ namespace Business.ResourceExamineManagement
|
|
|
IRepository<b_purchase, long> mysql_purchase,
|
|
|
IRepository<b_purchase_occupy, long> mysql_purchase_occupy,
|
|
|
IRepository<b_bom_pretreatment, long> mysql_b_bom_pretreatment,
|
|
|
+ ISqlRepository<TagMaster> tagMasterRepository,
|
|
|
PretreatmentAppService pretreatmentAppService,
|
|
|
CalcBomViewAppService calcbomviewAppService,
|
|
|
PurchaseOrderAppService purchaseOrderAppService,
|
|
|
@@ -355,6 +353,7 @@ namespace Business.ResourceExamineManagement
|
|
|
_mysql_purchase = mysql_purchase;
|
|
|
_mysql_purchase_occupy = mysql_purchase_occupy;
|
|
|
_mysql_b_bom_pretreatment = mysql_b_bom_pretreatment;
|
|
|
+ _tagMasterRepository = tagMasterRepository;
|
|
|
_pretreatmentAppService = pretreatmentAppService;
|
|
|
_CalcBomViewAppService = calcbomviewAppService;
|
|
|
_purchaseOrderAppService = purchaseOrderAppService;
|
|
|
@@ -373,6 +372,25 @@ namespace Business.ResourceExamineManagement
|
|
|
/// <exception cref="NotImplementedException"></exception>
|
|
|
public async Task<string> ReceiveResult(ResourceCheckInputDto input)
|
|
|
{
|
|
|
+ //TagMaster tagMaster=new TagMaster();
|
|
|
+ //tagMaster.Domain = "1000";
|
|
|
+ //tagMaster.Nbr = "20230505002"+DateTime.Now.Second.ToString();
|
|
|
+ //tagMaster.Type = "Q";
|
|
|
+ //tagMaster.Print = false;
|
|
|
+ //tagMaster.Void= false;
|
|
|
+ //tagMaster.Posted= false;
|
|
|
+ //tagMaster.BusinessID = 0;
|
|
|
+ //tagMaster.CreateUser = "admin";
|
|
|
+ //tagMaster.UpdateUser = "admin";
|
|
|
+ //tagMaster.CreateTime = DateTime.Now;
|
|
|
+ //tagMaster.UpdateTime= DateTime.Now;
|
|
|
+ //tagMaster.IsActive= true;
|
|
|
+ //tagMaster.IsConfirm= true;
|
|
|
+ //tagMaster.IsChanged= true;
|
|
|
+ //tagMaster.InvTitle = "线边库存核查";
|
|
|
+ //await _tagMasterRepository.Insert(tagMaster);
|
|
|
+ //var test= _tagMasterRepository.Select(a => a.CreateUser == "admin");
|
|
|
+ //return JsonConvert.SerializeObject(test.Result);
|
|
|
//资源检查入参全局变量赋值
|
|
|
param.sorderId = input.sorderId;
|
|
|
param.tenantId = input.tenantId;
|