锐腾搅拌上料功能
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

63 lines
2.4 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ICSSoft.Frame.Data.Entity;
using ICSSoft.Frame.Data.DAL;
using ICSSoft.Base.Config.AppConfig;
using System.Data;
namespace ICSSoft.Frame.Data.BLL
{
public class ICSLot2LotBLL
{
public static void AddList(string oldLotNo, string ROUTECODE, int OpSeq, string OPCODE, List<ICSITEMLot> list, string FPType, string conn)
{
ICSLot2LotDAL.AddList(oldLotNo, ROUTECODE, OpSeq, OPCODE, list, FPType, conn);
}
public static void Delete(string LotNo, string FPType, string conn)
{
ICSLot2LotDAL.Delete(LotNo, FPType, conn);
}
public static int GetMaxFlow(string like, string notlike, string conn)
{
return ICSLot2LotDAL.GetMaxFlow(like, notlike, conn);
}
public static int GetMaxFlow0326(string oriLOTNO, string conn)
{
return ICSLot2LotDAL.GetMaxFlow0326(oriLOTNO, conn);
}
public static DataTable BaseQuery(string LOTNO, string ROUTECODE, int OPSEQ, string WorkPiont, string conn)
{
return ICSLot2LotDAL.BaseQuery(LOTNO, ROUTECODE, OPSEQ, WorkPiont, conn);
}
public static DataTable BaseQuery4RW(string WIPID, string conn)
{
return ICSLot2LotDAL.BaseQuery4RW(WIPID, conn);
}
/// <summary>
/// 自动返工分批时,生成相关单据 , 方法本身没有自动分批的判断,所以必须符合自动分批时才可调用 .
/// </summary>
/// <param name="wipid">oniwp表id</param>
/// <param name="rwQty">过程+完工判定返工总数量</param>
/// <param name="memo">检验不良信息,ncr单号+不良原因+数量 为一组,同组以","隔开. 不同组以"~"隔开</param>
/// <param name="db">FramDataContext上下文</param>
public static void CreateRWLotNo(string wipid, decimal rwQty, string memo, FramDataContext db)
{
ICSLot2LotDAL.CreateRWLotNo(db, wipid, rwQty, memo, "返工,自动分批", "");
}
public static void CreateRWLotNo(System.Data.SqlClient.SqlCommand cmd, string wipid, decimal rwQty, string memo, string reason, string StopPRProcess, DateTime timeNow, string UserCode, string UserName)
{
ICSLot2LotDAL.CreateRWLotNo(cmd, wipid, rwQty, memo, reason, StopPRProcess, timeNow, UserCode, UserName);
}
}
}