锐腾搅拌上料功能
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.

228 lines
6.3 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ICSSoft.Frame.Data.Entity;
using ICSSoft.Frame.Data.DAL;
using System.Data;
namespace ICSSoft.Frame.Data.BLL
{
public class ICSDataCollectionBLL
{
#region 根据放料轴编码获取放料轴信息
public static DataTable GetInfoByCode(string INVShaftCode, string SubLotNo, string dsconn)
{
try
{
return ICSDataCollectionDAL.GetInfoByCode(INVShaftCode, SubLotNo, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 保存采集上下模日志信息
//public static void MouldLogSave(ICSMouldUpAndDownLog info, string dsconn)
//{
// try
// {
// if (string.IsNullOrWhiteSpace(dsconn))
// {
// throw new Exception("数据库连接字符串错误");
// }
// ICSDataCollectionDAL.MouldLogSave(info, dsconn);
// }
// catch (Exception ex)
// {
// throw ex;
// }
//}
#endregion
#region 工序开工
public static void CollectOPStart(ICSLOTSIMULATION siminfo, ICSLOTONWIP wipinfo, string dsconn)
{
try
{
ICSDataCollectionDAL.CollectOPStart(siminfo, wipinfo, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
public static void CollectOPStart(ICSLOTSIMULATION siminfo, ICSLOTONWIP wipinfo,ICSLOTONWIPDetail wipDetailinfo, string dsconn)
{
try
{
ICSDataCollectionDAL.CollectOPStart(siminfo, wipinfo,wipDetailinfo, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 工序上料
public static void CollectOPUP(List<ICSLOTONWIPITEM> infoList, string SaveOrReturnType, string dsconn)
{
try
{
ICSDataCollectionDAL.CollectOPUP(infoList, SaveOrReturnType, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 工序完工
//public static void CollectOPEnd(ICSLOTSIMULATION siminfo, ICSLOTONWIP wipinfo, bool issplit, string splitLotNo, string dsconn)
public static void CollectOPEnd(ICSLOTSIMULATION siminfo, ICSLOTONWIP wipinfo, string splitLotNo, string dsconn)
{
try
{
//ICSDataCollectionDAL.CollectOPEnd(siminfo, wipinfo, issplit, splitLotNo, dsconn);
ICSDataCollectionDAL.CollectOPEnd(siminfo, wipinfo, splitLotNo, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 工序结束
public static void CollectOPAllEnd(ICSLOTSIMULATION siminfo, ICSLOTONWIP wipinfo, string dsconn)
{
try
{
ICSDataCollectionDAL.CollectOPAllEnd(siminfo, wipinfo, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 工序暂停
public static void CollectOPPause(ICSLOTONWIP wipinfo, ICSLOTPAUSE ztinfo, string dsconn)
{
try
{
ICSDataCollectionDAL.CollectOPPause(wipinfo, ztinfo, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
public static void CollectOPPause(ICSLOTONWIPDetail wipdetail, ICSLOTPAUSE ztinfo, string dsconn)
{
try
{
ICSDataCollectionDAL.CollectOPPause(wipdetail, ztinfo, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 取消暂停
public static void CollectOPCancelPause(ICSLOTONWIP wipinfo, ICSLOTPAUSE ztinfo, string dsconn)
{
try
{
ICSDataCollectionDAL.CollectOPCancelPause(wipinfo, ztinfo, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 单件上岗
public static void CollectOPPriceStart(ICSLOTONWIPPriceLog wipinfo, string dsconn)
{
try
{
ICSDataCollectionDAL.CollectOPStartPrice(wipinfo, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 单件上岗
public static void CollectOPPriceEnd(string UserCode, string EQPCode, string dsconn)
{
try
{
ICSDataCollectionDAL.CollectOPStartEnd(UserCode, EQPCode, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
public static void CollectOPPriceEnd(ICSLOTONWIPPriceLog wipinfo, string dsconn)
{
try
{
ICSDataCollectionDAL.CollectOPStartEnd(wipinfo, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
#region 单件工序完工
public static void CollectOPEndPrice(ICSLOTSIMULATION siminfo, ICSLOTONWIP wipinfo, string splitLotNo, string dsconn)
{
try
{
ICSDataCollectionDAL.CollectOPEndPrice(siminfo, wipinfo, splitLotNo, dsconn);
}
catch (Exception ex)
{
throw ex;
}
}
#endregion
public static void AddAndEditList(ICSQualityCKDATA QualityCKDATA,List<ICSOQCCKGROUP2LISTCheckResult> ECCodeList, string Appconstr, bool isIPQC)
{
try
{
ICSDataCollectionDAL.AddAndEditList(QualityCKDATA,ECCodeList, Appconstr, isIPQC);
}
catch (Exception ex)
{
throw ex;
}
}
}
}