/*
*所有关于VV_OutboundOrderInfo类的业务代码应在此处编写
*可使用repository.调用常用方法,获取EF/Dapper等信息
*如果需要事务请使用repository.DbContextBeginTransaction
*也可使用DBServerProvider.手动获取数据库相关信息
*用户信息、权限、角色等使用UserContext.Current操作
*VV_OutboundOrderInfoService对增、删、改查、导入、导出、审核业务代码扩展参照ServiceFunFilter
*/
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Newtonsoft.Json;
using NPOI.HSSF.UserModel;
using NPOI.SS.UserModel;
using Spire.Xls;
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
using System.Threading;
using WIDESEA.Common;
using WIDESEA.Common.ChatHub;
using WIDESEA.Common.CustomModels;
using WIDESEA.Common.EquipEnum;
using WIDESEA.Core.Configuration;
using WIDESEA.Core.EFDbContext;
using WIDESEA.Core.Extensions;
using WIDESEA.Core.ManageUser;
using WIDESEA.Core.Utilities;
using WIDESEA.Entity.DomainModels;
using WIDESEA.Services.IRepositories;
using WIDESEA.Services.Repositories;
namespace WIDESEA.Services.Services
{
public partial class VV_OutboundOrderInfoService
{
private readonly IHttpContextAccessor _httpContextAccessor;
private readonly IVV_OutboundOrderInfoRepository _repository;//访问数据库
[ActivatorUtilitiesConstructor]
public VV_OutboundOrderInfoService(
IVV_OutboundOrderInfoRepository dbRepository,
IHttpContextAccessor httpContextAccessor
)
: base(dbRepository)
{
_httpContextAccessor = httpContextAccessor;
_repository = dbRepository;
//多租户会用到这init代码,其他情况可以不用
//base.Init(dbRepository);
}
///
/// 获取出库单明细
///
///
///
public List GetOutboundorder_Detail(List> orderDetail)
{
List details = new List();
return details;
}
///
/// 删除出库订单
///
///
///
///
public override WebResponseContent Del(object[] keys, bool delList = true)
{
WebResponseContent content = new WebResponseContent();
return content;
}
///
/// 编辑出库订单
///
///
///
public override WebResponseContent Update(SaveModel saveModel)
{
WebResponseContent content = new WebResponseContent();
return content;
}
//更换铜剁,根据更换后的货位Id,去库存表面找到新该记录
public WebResponseContent GetNewGoodsInfoByNewLocationId(SaveModel saveDataModel)
{
WebResponseContent content = new WebResponseContent();
return content;
}
//根据出库订单创建的条件,获取所有符合条件的铜剁记录,在手动更换铜剁时用到
public object GetAllRecordByOrderId(PageDataOptions pageData)
{
return new object();
}
//处理前端传过来的更换铜剁结果
public WebResponseContent GetChangeResult(SaveModel saveDataModel)
{
WebResponseContent content = new WebResponseContent();
return content;
}
//根据订单号获取已经出库完成的铜剁信息,打印出库单的时候用到
public WebResponseContent GetOutBoundDetailInfoForPrint(SaveModel saveDataModel)
{
WebResponseContent content = new WebResponseContent();
return content;
}
public WebResponseContent GetOutBoundStationData()
{
WebResponseContent content = new WebResponseContent();
return content;
}
///
/// 模拟营销系统出库订单
///
public WebResponseContent NewOutBoundOrder(SaveModel saveModel)
{
WebResponseContent content = new WebResponseContent();
return content;
}
///
/// 编辑出库订单,重量不可编辑
///
///
///
public WebResponseContent ModifyOutBoundOrder(SaveModel saveModel)
{
WebResponseContent content = new WebResponseContent();
return content;
}
///
/// 手动完成营销系统出库订单
///
///
///
public WebResponseContent FinishedOutBoundOrderByMannual(SaveModel saveModel)
{
WebResponseContent content = new WebResponseContent();
return content;
}
///
/// 手动删除营销系统出库订单
///
///
///
public WebResponseContent DeleteOutBoundOrderByMannual(SaveModel saveModel)
{
WebResponseContent content = new WebResponseContent();
return content;
}
///
/// 修改配重区间值
///
///
///
public WebResponseContent ModifyGapValue(SaveModel saveModel)
{
WebResponseContent content = new WebResponseContent();
return content;
}
///
/// 修改是否启用白名单装车
///
///
///
public WebResponseContent ModifyWhiteValue(SaveModel saveModel)
{
WebResponseContent content = new WebResponseContent();
return content;
}
///
/// 获取配重区间值
///
///
///
public WebResponseContent GetGapValue()
{
WebResponseContent content = new WebResponseContent();
return content;
}
///
/// 获取白名单装车状态
///
///
///
public WebResponseContent GetWhiteValue()
{
WebResponseContent content = new WebResponseContent();
return content;
}
///
/// 导出营销系统配重单
///
/// 单号
///
public WebResponseContent exportOrderInfo(SaveModel saveModel)
{
WebResponseContent content = new WebResponseContent();
return content;
}
///
/// 获取统计数据
///
///
public WebResponseContent GetSummaryData(SaveModel saveModel)
{
WebResponseContent content = new WebResponseContent();
return content;
}
///
/// 插入统计数据
///
///
public WebResponseContent InsertSummaryData(SaveModel saveModel)
{
WebResponseContent content = new WebResponseContent();
return content;
}
}
public class MyModel : IComparable
{
public int weight;
public bool flag = false;
public string goodsId;
public string batch;
public int CompareTo(MyModel obj_)
{
if (this.weight > obj_.weight)
return 1;
else
return -1;
}
}
}