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 ICSMO2UserBLL { #region 增加修改 public static void Add(List MO2UserInfoList, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("请输入......"); } ICSMO2UserDAL.Add(MO2UserInfoList, dsconn); } catch (Exception ex) { throw ex; } } public static void AddOrEdit(List list, List list_detail, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("请输入......"); } ICSMO2UserDAL.AddAndEdit(list, list_detail, dsconn); } catch (Exception ex) { throw ex; } } public static void AddOrEdit(FormICSMO2UserUIModel info, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("请输入......"); } ICSMO2UserDAL.AddAndEdit(info, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 删除 public static void deleteInfo(List codeList, string dsconn) { try { ICSMO2UserDAL.Delete(codeList, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 取消下发 public static void cancelSend(List codeList, string dsconn) { try { ICSMO2UserDAL.cancelSend(codeList, dsconn); } catch (Exception ex) { throw ex; } } #endregion public static void cancelSend(List lotno, List opcode, string dsconn) { try { ICSMO2UserDAL.cancelSend(lotno, opcode, dsconn); } catch (Exception ex) { throw ex; } } public static void CancelSended(List list, string StrCon) { ICSMO2UserDAL.CancelSended(list, StrCon); } public static void CancelSendedWW(List list, string StrCon) { ICSMO2UserDAL.CancelSendedWW(list, StrCon); } public static DataTable SelectMO2USER(string MOCODE, string MOSEQ, string StrCon, string wp) { return ICSMO2UserDAL.SelectMO2USER(MOCODE, MOSEQ, StrCon, wp); } public static void Delete(List listID, string StrCon) { ICSMO2UserDAL.Delete(listID, StrCon); } public static void Import(List mo2userList, string appConnectString) { ICSMO2UserDAL.Import(mo2userList, appConnectString); } public static DataTable ExportTemplate(string appConnectString, string workpoint, bool onlyNotSend, string mocode) { return ICSMO2UserDAL.ExportTemplate(appConnectString, workpoint, onlyNotSend, mocode); } public static void SendAhwit(string LOTNO, string ROUTECODE, int OPSEQ, string OPCODE, string WorkPoint, DateTime timeCreated, string appConnectString) { ICSMO2UserDAL.SendAhwit(LOTNO, ROUTECODE, OPSEQ, OPCODE, WorkPoint, timeCreated, appConnectString); } } }