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 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 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 guidList) { ICSMO2LotDAL.delete(guidList); } #endregion #region deleteLot public static void deleteLot(List guidList) { ICSMO2LotDAL.deleteLot(guidList); } #endregion #region deleteLot public static void deleteLot(List 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 lotinfolist, List 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 } }