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.
205 lines
4.5 KiB
205 lines
4.5 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 IsPG(string mocode,string moseq) {
|
|
try {
|
|
return ICSMO2LotDAL.IsPG(mocode,moseq);
|
|
}
|
|
catch (Exception ex) {
|
|
throw ex;
|
|
}
|
|
|
|
|
|
|
|
}
|
|
#endregion
|
|
|
|
|
|
#region 工单是否已生成批次
|
|
public static bool IsIncludingInMO2Lot(string moid)
|
|
{
|
|
try
|
|
{
|
|
return ICSMO2LotDAL.IsIncludingInMO2Lot(moid);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
|
|
}
|
|
#endregion
|
|
|
|
#region 工单是否已经领用过
|
|
public static DataTable IsUsingMO(string MOCode, string MOSEQ)
|
|
{
|
|
try
|
|
{
|
|
return ICSMO2LotDAL.IsUsingMO(MOCode, MOSEQ);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
|
|
}
|
|
#endregion
|
|
|
|
|
|
#region 工单是否已经下发
|
|
public static DataTable IsSendMO(string MOCode, string MOSEQ)
|
|
{
|
|
try
|
|
{
|
|
return ICSMO2LotDAL.IsSendMO(MOCode, MOSEQ);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
|
|
}
|
|
#endregion
|
|
|
|
|
|
#region 工单分批
|
|
public static void OP2LotAdd(List<ICSITEMLot> lotinfolist, List<ICSITEMROUTE2OPLot> oplotinfolist, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
if (string.IsNullOrWhiteSpace(dsconn))
|
|
{
|
|
throw new Exception("请输入......");
|
|
}
|
|
|
|
ICSMO2LotDAL.OP2LotAddAndEdit(lotinfolist, oplotinfolist, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
|
|
}
|
|
#endregion
|
|
|
|
public static void SplitMOLotNew(string LotNo, int allqty,int PerLotQty, int SplitNum, string dsconn)
|
|
{
|
|
try
|
|
{
|
|
ICSITEMLOTDAL.SpliteLotNo(LotNo, allqty, PerLotQty, SplitNum, dsconn);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
#region 工单是否已开工
|
|
public static bool IsKG(string mocode,string moseq) {
|
|
try
|
|
{
|
|
return ICSMO2LotDAL.IsKG(mocode,moseq);
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
}
|
|
}
|