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 ICSQualityCKDATABLL { #region 新增和修改 //public static void Add(ICSQualityCKDATA QualityCKDATA, List QualityCKDATADetailList, string dsconn) //{ // try // { // if (string.IsNullOrWhiteSpace(dsconn)) // { // throw new Exception("数据库连接字符串错误"); // } // ICSQualityCKDATADAL.Add(QualityCKDATA, QualityCKDATADetailList, dsconn); // } // catch (Exception ex) // { // throw ex; // } //} #endregion #region 新增和修改 ICSQualityCKDATADetail //public static void AddDetail(List QualityCKDATADetailList, string dsconn) //{ // try // { // if (string.IsNullOrWhiteSpace(dsconn)) // { // throw new Exception("数据库连接字符串错误"); // } // ICSQualityCKDATADAL.AddDetail(QualityCKDATADetailList, dsconn); // } // catch (Exception ex) // { // throw ex; // } //} #endregion #region 新增和修改(油漆) //public static void AddYQ(ICSQualityCKDATA QualityCKDATA, List QualityCKDATADetailList, string dsconn) //{ // try // { // if (string.IsNullOrWhiteSpace(dsconn)) // { // throw new Exception("数据库连接字符串错误"); // } // ICSQualityCKDATADAL.AddYQ(QualityCKDATA, QualityCKDATADetailList, dsconn); // } // catch (Exception ex) // { // throw ex; // } //} #endregion #region 提交(油漆) public static void Submit(string lotno, int seq, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } ICSQualityCKDATADAL.Submit(lotno, seq, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 新增NG数量 //public static void AddNGQty(string NewLotNo, ICSQualityNGData ngdata, string dsconn) //{ // try // { // if (string.IsNullOrWhiteSpace(dsconn)) // { // throw new Exception("数据库连接字符串错误"); // } // ICSQualityCKDATADAL.AddNGQty(NewLotNo, ngdata, dsconn); // } // catch (Exception ex) // { // throw ex; // } //} #endregion #region 新增放行LL public static void AddThrough(List codeList, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } ICSQualityCKDATADAL.AddThrough(codeList, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 判断条码是否都已经放行 public static bool ISAllCheck(string RcvDocNo, string RcvLineNo, string dsconn) { return ICSQualityCKDATADAL.ISAllCheck(RcvDocNo, RcvLineNo, dsconn); } public static bool ISAllCheck(string LineNo, string dsconn) { return ICSQualityCKDATADAL.ISAllCheck(LineNo, dsconn); } #endregion #region 新增判退LL public static void AddReturn(List codeList, string dsconn, string reason) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } ICSQualityCKDATADAL.AddReturn(codeList, dsconn, reason); } catch (Exception ex) { throw ex; } } #endregion #region 新增判退WX //public static void AddReturn_WX(List codeList, string dsconn, string reason) //{ // try // { // if (string.IsNullOrWhiteSpace(dsconn)) // { // throw new Exception("数据库连接字符串错误"); // } // ICSQualityCKDATADAL.AddReturn_WX(codeList, dsconn, reason); // } // catch (Exception ex) // { // throw ex; // } //} #endregion #region 新增判退工序检验 #region 新增判退工序检验 public static void AddCK_GXJY(List codeList, string dsconn, string reason,int GXORWW) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } ICSQualityCKDATADAL.AddCK_GXJY(codeList, dsconn, reason, GXORWW); } catch (Exception ex) { throw ex; } } #endregion #endregion public static void BackThroughOP(List codeList, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } ICSQualityCKDATADAL.BackThroughOP(codeList, dsconn); } catch (Exception ex) { throw ex; } } #region 新增判退CP //public static void AddReturn_CP(List codeList, string dsconn, string reason) //{ // try // { // if (string.IsNullOrWhiteSpace(dsconn)) // { // throw new Exception("数据库连接字符串错误"); // } // ICSQualityCKDATADAL.AddReturn_CP(codeList, dsconn, reason); // } // catch (Exception ex) // { // throw ex; // } //} #endregion #region 新增判退ZC //public static void AddReturn_ZC(List codeList, string dsconn, string reason) //{ // try // { // if (string.IsNullOrWhiteSpace(dsconn)) // { // throw new Exception("数据库连接字符串错误"); // } // ICSQualityCKDATADAL.AddReturn_ZC(codeList, dsconn, reason); // } // catch (Exception ex) // { // throw ex; // } //} #endregion #region 新增放行WX //public static void AddThroughWX(List dataList, string dsconn) //{ // try // { // if (string.IsNullOrWhiteSpace(dsconn)) // { // throw new Exception("数据库连接字符串错误"); // } // ICSQualityCKDATADAL.AddThroughWX(dataList, dsconn); // } // catch (Exception ex) // { // throw ex; // } //} #endregion #region 新增放行 工序检验 public static void AddThroughOP(List dataList, string dsconn, int GXOrWW) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } ICSQualityCKDATADAL.AddThroughOP(dataList, dsconn, GXOrWW); } catch (Exception ex) { throw ex; } } #endregion #region 新增放行 委外工序 //public static void AddThroughWXOP(List dataList, string dsconn) //{ // try // { // if (string.IsNullOrWhiteSpace(dsconn)) // { // throw new Exception("数据库连接字符串错误"); // } // ICSQualityCKDATADAL.AddThroughWXOP(dataList, dsconn); // } // catch (Exception ex) // { // throw ex; // } //} #endregion #region 新增放行ZC //public static void AddThroughZC(List codeList, string dsconn) //{ // try // { // if (string.IsNullOrWhiteSpace(dsconn)) // { // throw new Exception("数据库连接字符串错误"); // } // ICSQualityCKDATADAL.AddThroughZC(codeList, dsconn); // } // catch (Exception ex) // { // throw ex; // } //} public static void AddThroughLL(List codeList, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } //ICSQualityCKDATADAL.AddThroughLL(codeList, dsconn); } catch (Exception ex) { throw ex; } } #endregion #region 新增批量放行 (委外发料) //public static void AddThroughList(List dataList, string type ,string dsconn) //{ // try // { // if (string.IsNullOrWhiteSpace(dsconn)) // { // throw new Exception("数据库连接字符串错误"); // } // ICSQualityCKDATADAL.AddThroughList(dataList, type, dsconn); // } // catch (Exception ex) // { // throw ex; // } //} #endregion #region 删除 public static void deleteInfo(List codeList, string dsconn) { try { ICSQualityCKDATADAL.deleteInfo(codeList, dsconn); } catch (Exception ex) { throw ex; } } #endregion public static bool ExsistByLotNo(string lotno) { try { return ICSQualityCKDATADAL.ExsistByLotNo(lotno); } catch (Exception ex) { throw ex; } } public static bool IsLLCKByLotNo(string lotno) { try { return ICSQualityCKDATADAL.IsLLCKByLotNo(lotno); } catch (Exception ex) { throw ex; } } public static bool ExsistOPByLotNo(string lotno, string opDesc) { try { return ICSQualityCKDATADAL.ExsistOPByLotNo(lotno, opDesc); } catch (Exception ex) { throw ex; } } //判断是否拆分过 //public static bool CheckOldLotNoIsSplit(string dsconn, string barCodeNoList) //{ // try // { // return ICSQualityCKDATADAL.CheckOldLotNoIsSplit(dsconn, barCodeNoList); // } // catch (Exception ex) // { // throw ex; // } //} //判断是否是拆分出的条码 //public static bool CheckNewLotNoIsSplit(string dsconn, string barCodeNoList) //{ // try // { // return ICSQualityCKDATADAL.CheckNewLotNoIsSplit(dsconn, barCodeNoList); // } // catch (Exception ex) // { // throw ex; // } //} public static void AddICSLOTFirstCheck(string LotNo, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } //ICSQualityCKDATADAL.AddICSLOTFirstCheck(LotNo, dsconn); } catch (Exception ex) { throw ex; } } //public static void EditICSLOTFirstCheck(ICSQualityCKDATA QualityCKDATA, string LotNo, string dsconn) //{ // try // { // if (string.IsNullOrWhiteSpace(dsconn)) // { // throw new Exception("数据库连接字符串错误"); // } // ICSQualityCKDATADAL.EditICSLOTFirstCheck(QualityCKDATA, LotNo, dsconn); // } // catch (Exception ex) // { // throw ex; // } //} //public static void ICSLOTAutoCheck(ICSQualityCKDATA QualityCKDATA, string MOCode, string dsconn) //{ // try // { // if (string.IsNullOrWhiteSpace(dsconn)) // { // throw new Exception("数据库连接字符串错误"); // } // ICSQualityCKDATADAL.ICSLOTAutoCheck(QualityCKDATA, MOCode, dsconn); // } // catch (Exception ex) // { // throw ex; // } //} public static string GetGXJY_OPDesc() { return ICSQualityCKDATADAL.GetGXJY_OPDesc(); } public static List GetGXJY_OPCode() { return ICSQualityCKDATADAL.GetGXJY_OPCode(); } public static string GetCurrentOpcode(string lotno) { return ICSQualityCKDATADAL.GetCurrentOpcode(lotno); } public static string GetU9DBLink() { return ICSQualityCKDATADAL.GetU9DBLink(); } public static bool IsExistsLotNo(string lotno) { return ICSQualityCKDATADAL.IsExistsLotNo(lotno); } public static void InsertICSINSPECTION(List modelList) { ICSQualityCKDATADAL.InsertICSINSPECTION(modelList); } } }