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.
142 lines
3.3 KiB
142 lines
3.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 ICSSoft.Base.Config.AppConfig;
|
|
using System.Data;
|
|
|
|
|
|
namespace ICSSoft.Frame.Data.BLL
|
|
{
|
|
public class ICSMO2LotBLL
|
|
{
|
|
public static void Add(List<FormICSMO2LotUIModel> equipmentInfoList, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
if (string.IsNullOrWhiteSpace(dsconn))
|
|
{
|
|
throw new Exception("请输入......");
|
|
}
|
|
|
|
ICSMO2LotDAL.AddAndEdit(equipmentInfoList, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
|
|
}
|
|
|
|
public static void AddList(List<ICSITEMROUTE2OPLot> equipmentInfoList, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
if (string.IsNullOrWhiteSpace(dsconn))
|
|
{
|
|
throw new Exception("请输入......");
|
|
}
|
|
|
|
ICSMO2LotDAL.AddAndEditList(equipmentInfoList, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
|
|
}
|
|
|
|
#region select
|
|
public static DataTable searchForItem(string itemcode, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
return ICSMO2LotDAL.searchForItem(itemcode, dsconn);
|
|
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
#region delete
|
|
public static void delete(List<String> guidList)
|
|
{
|
|
ICSMO2LotDAL.delete(guidList);
|
|
}
|
|
#endregion
|
|
|
|
|
|
|
|
#region deleteLot
|
|
public static void deleteLot(List<ICSITEMROUTE2OPLot> guidList)
|
|
{
|
|
ICSMO2LotDAL.deleteLot(guidList);
|
|
}
|
|
#endregion
|
|
|
|
#region deleteLot
|
|
public static void deleteLot(List<String> guidList)
|
|
{
|
|
ICSMO2LotDAL.deleteLot(guidList);
|
|
}
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 工单是否已生成批次
|
|
public static bool IsIncludingInMO2Lot(string moid)
|
|
{
|
|
try
|
|
{
|
|
return ICSMO2LotDAL.IsIncludingInMO2Lot(moid);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
|
|
}
|
|
|
|
public static DataTable GetMO2LotInfo(List<string> list,string wp, string conn)
|
|
{
|
|
return ICSMO2LotDAL.GetMO2LotInfo(list,wp,conn);
|
|
}
|
|
#endregion
|
|
|
|
#region 工单是否已经领用过
|
|
public static DataTable IsUsingMO(string MOCode, string MOSEQ)
|
|
{
|
|
try
|
|
{
|
|
return ICSMO2LotDAL.IsUsingMO(MOCode, MOSEQ);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
|
|
}
|
|
#endregion
|
|
|
|
|
|
public static DataTable GetMO2Route(List<string> list, string wp,string conn)
|
|
{
|
|
return ICSMO2LotDAL.GetMO2Route(list,wp, conn);
|
|
}
|
|
|
|
public static void Mo2LotOne2One(List<ICSITEMLot> listItemLot, List<ICSITEMROUTE2OPLot> listItemRouteOpLot, string conn)
|
|
{
|
|
ICSMO2LotDAL.GetMO2Route(listItemLot,listItemRouteOpLot, conn);
|
|
}
|
|
}
|
|
}
|