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.
|
|
using System; using System.Collections.Generic; using System.Linq; using System.Text; using ICSSoft.Frame.Data.Entity; using ICSSoft.Frame.Data.DAL; //using ZHCSoft.Base.Config.AppConfig;
using System.Data;
namespace ICSSoft.Frame.Data.BLL { public class ICSOP2UserBLL { #region 删除
public static void deleteInfo(List<ICSOP2User> op2userList, string dsconn) { try { ICSOP2UserDAL.deleteInfo(op2userList, dsconn); } catch (Exception ex) { throw ex; }
} #endregion
#region 新增和修改
public static void Add(int flag,FormICSOP2UserUIModel Info, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } List<FormICSOP2UserUIModel> InfoList = new List<FormICSOP2UserUIModel>() { Info }; ICSOP2UserDAL.Add(flag,InfoList, dsconn);
} catch (Exception ex) { throw ex; } } #endregion
#region 新增和修改List
public static string AddList(List<FormICSOP2UserUIModel> InfoList, string dsconn) { try { if (string.IsNullOrWhiteSpace(dsconn)) { throw new Exception("数据库连接字符串错误"); } return ICSOP2UserDAL.AddList(InfoList, dsconn);
} catch (Exception ex) { throw ex; } } #endregion
#region 查询工序人员信息
public static FormICSOP2UserUIModel SearchInfoByCode(string opcode,string usercode, string dsconn) { try { List<FormICSOP2UserUIModel> returnlist = ICSOP2UserDAL.SearchInfoByCode(opcode,usercode, dsconn); return returnlist[0]; } catch (Exception ex) {
throw ex; }
} #endregion
} }
|