|
|
@ -138,170 +138,7 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
public virtual async Task<string> ApprovalPassed(List<string> p_list) |
|
|
|
{ |
|
|
|
|
|
|
|
//_repository.Where(p => p_list.Contains(p.BillNum));
|
|
|
|
//public VmiLog()
|
|
|
|
//{
|
|
|
|
//}
|
|
|
|
//public VmiLog(Guid id)
|
|
|
|
//{
|
|
|
|
// this.Id = id;
|
|
|
|
//}
|
|
|
|
|
|
|
|
///// <summary>
|
|
|
|
///// 分组编号
|
|
|
|
///// </summary>
|
|
|
|
//public string GroupId { get; set; }
|
|
|
|
|
|
|
|
// /// <summary>
|
|
|
|
// /// 库存事务分类
|
|
|
|
// /// </summary>
|
|
|
|
// public VmiLogType LogType { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "库存变动")]
|
|
|
|
// public decimal ChangedQty { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "变动单号")]
|
|
|
|
// public string ChangedNumber { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "变动时间")]
|
|
|
|
// public DateTime ChangedTime { get; set; } = DateTime.Now;
|
|
|
|
|
|
|
|
// [Display(Name = "变动类型")]
|
|
|
|
// public VmiType ChangedType { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "便动人")]
|
|
|
|
// public string ChangedBy { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "是否补货")]
|
|
|
|
// public bool? IsReplenished { get; set; }
|
|
|
|
|
|
|
|
// #region 附加信息
|
|
|
|
|
|
|
|
// //[Display(Name = "实扣厂内零件号")]
|
|
|
|
// //public string PartCode { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "结算厂内零件号")]
|
|
|
|
// public string PartCode2 { get; set; }
|
|
|
|
|
|
|
|
// //[Display(Name = "结算客户零件号")]
|
|
|
|
// //public string CustomerPartCode { get; set; }
|
|
|
|
|
|
|
|
// //[Display(Name = "EDI订单生产码")]
|
|
|
|
// //public string VinCode { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "结算生产码")]
|
|
|
|
// public string SettlementVinCode { get; set; }
|
|
|
|
|
|
|
|
// #endregion 附加信息
|
|
|
|
|
|
|
|
// #region 库存备份
|
|
|
|
|
|
|
|
// /// <summary>
|
|
|
|
// /// LU零件号
|
|
|
|
// /// </summary>
|
|
|
|
// [Display(Name = "LU零件号")]
|
|
|
|
// public string PartCode { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "生产码")]
|
|
|
|
// public string VinCode { get; set; }
|
|
|
|
|
|
|
|
// /// <summary>
|
|
|
|
// /// 根据零件关系表匹配
|
|
|
|
// /// </summary>
|
|
|
|
// [Display(Name = "客户零件号")]
|
|
|
|
// public string CustomerPartCode { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "生产码类型")]
|
|
|
|
// public string CodeType { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "发货类型")]
|
|
|
|
// public EnumDeliverBjBmpBillType BillType { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "数量")]
|
|
|
|
// public decimal Qty { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "发运日期")]
|
|
|
|
// public DateTime BillTime { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "订单日期")]
|
|
|
|
// public DateTime DeliverTime { get; set; }
|
|
|
|
|
|
|
|
// /// <summary>
|
|
|
|
// /// ERP库位
|
|
|
|
// /// </summary>
|
|
|
|
// [Display(Name = "ERP库位")]
|
|
|
|
// public string ErpToLoc { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "EDI顺序号")]
|
|
|
|
// public string Seq { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "客户订单号")]
|
|
|
|
// public string OrderNum { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "塑件唯一码")]
|
|
|
|
// public string UniqueCode { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "EDI总成号")]
|
|
|
|
// public string MatchNumber { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "PJIS生产顺序号")]
|
|
|
|
// public string PjsNum { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "配置码")]
|
|
|
|
// public string Configcode { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "工厂")]
|
|
|
|
// public string factory { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "发货子类型")]
|
|
|
|
// public EnumDeliverSubBillType SubBillType { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "WMS实发生产码")]
|
|
|
|
// public string RealCode { get; set; }
|
|
|
|
|
|
|
|
// [Display(Name = "备注")]
|
|
|
|
// public string ReMark { get; set; }
|
|
|
|
|
|
|
|
// #endregion 库存备份
|
|
|
|
|
|
|
|
// public enum VmiLogType
|
|
|
|
//{
|
|
|
|
// /// <summary>
|
|
|
|
// /// 发运入库
|
|
|
|
// /// </summary>
|
|
|
|
// [Display(Name = "发运入库")]
|
|
|
|
// Type100 = 100,
|
|
|
|
|
|
|
|
// /// <summary>
|
|
|
|
// /// 结算出库
|
|
|
|
// /// </summary>
|
|
|
|
// [Display(Name = "结算出库")]
|
|
|
|
// Type200 = 200,
|
|
|
|
|
|
|
|
// /// <summary>
|
|
|
|
// /// 反结入库
|
|
|
|
// /// </summary>
|
|
|
|
// [Display(Name = "反结入库")]
|
|
|
|
// Type300 = 300,
|
|
|
|
|
|
|
|
// /// <summary>
|
|
|
|
// /// 退货出库
|
|
|
|
// /// </summary>
|
|
|
|
// [Display(Name = "退货出库")]
|
|
|
|
// Type400 = 400,
|
|
|
|
|
|
|
|
// /// <summary>
|
|
|
|
// /// 调整入库
|
|
|
|
// /// </summary>
|
|
|
|
// [Display(Name = "调整入库")]
|
|
|
|
// Type500 = 500,
|
|
|
|
|
|
|
|
// /// <summary>
|
|
|
|
// /// 调整出库
|
|
|
|
// /// </summary>
|
|
|
|
// [Display(Name = "调整出库")]
|
|
|
|
// Type600 = 600,
|
|
|
|
//}
|
|
|
|
return ApplicationConsts.SuccessStr; |
|
|
|
} |
|
|
|
/// <summary>
|
|
|
@ -342,12 +179,12 @@ namespace Win.Sfs.SettleAccount.Bases |
|
|
|
return ApplicationConsts.SuccessStr; |
|
|
|
|
|
|
|
} |
|
|
|
public virtual async Task<TEntity> GetMainAsync(string billNum) |
|
|
|
public virtual async Task<TEntity> GetMainAsync([FromBody] string billNum) |
|
|
|
{ |
|
|
|
return await _repository.Where(p=>p.InvGroupNum == billNum).FirstOrDefaultAsync(); |
|
|
|
} |
|
|
|
|
|
|
|
public virtual async Task<List<TEntityDetail>> GetDetailAsync(string billNum) |
|
|
|
public virtual async Task<List<TEntityDetail>> GetDetailAsync([FromBody] string billNum) |
|
|
|
{ |
|
|
|
return await _detailRepository.Where(p => p.InvGroupNum == billNum).ToListAsync(); |
|
|
|
} |
|
|
|