|
|
|
|
using Admin.Core.Common;
|
|
|
|
|
using Admin.Core.IService;
|
|
|
|
|
using Admin.Core.Model;
|
|
|
|
|
using Admin.Core.Model.ViewModels;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Admin.Core.IService
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Ixl_materialServices
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface Ixl_materialServices :IBaseServices<xl_material>
|
|
|
|
|
{
|
|
|
|
|
Task<xl_material> GetByMaterialCode(string code);
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 执行类型防差错
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="binSerial">料仓号</param>
|
|
|
|
|
/// <param name="state">状态</param>
|
|
|
|
|
/// <param name="materialCode">物料编码</param>
|
|
|
|
|
/// <param name="weight">物料重量</param>
|
|
|
|
|
/// <param name="barCode">物料二维码</param>
|
|
|
|
|
Task<MessageModel<bool>> ExecPlcState(int binSerial, int state,string materialCode,decimal weight, string? barCode);
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 绑定料桶信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="code"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<int> BindBarrel(string code);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 查询料桶重量
|
|
|
|
|
/// add by CaesarBao,2024.10.14
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<decimal> GetBindBarrelWeight();
|
|
|
|
|
|
|
|
|
|
Task<MessageModel<bool>> MaterialVerification(string barCode);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 物料插入
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id"></param>
|
|
|
|
|
/// <param name="materialCode"></param>
|
|
|
|
|
/// <param name="materialName"></param>
|
|
|
|
|
/// <param name="isEnable"></param>
|
|
|
|
|
/// <param name="createDatetime"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<bool> xlInsertMaterial(
|
|
|
|
|
string id,
|
|
|
|
|
string materialCode,
|
|
|
|
|
string materialName,
|
|
|
|
|
int isEnable,
|
|
|
|
|
DateTime createDatetime);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 物料更新
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id"></param>
|
|
|
|
|
/// <param name="materialCode"></param>
|
|
|
|
|
/// <param name="materialName"></param>
|
|
|
|
|
/// <param name="isEnable"></param>
|
|
|
|
|
/// <param name="createDatetime"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<bool> xlUpdateMaterial(
|
|
|
|
|
string id,
|
|
|
|
|
string materialCode,
|
|
|
|
|
string materialName,
|
|
|
|
|
int isEnable,
|
|
|
|
|
DateTime createDatetime);
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 物料查询
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<List<xl_material>> xlMaterialList();
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 根据ID查询
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="id"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
Task<xl_material> SelectXlMaterialById(string id);
|
|
|
|
|
}
|
|
|
|
|
}
|