using Warehouse.DAL.CloseCondition; using System; using System.Collections.Generic; using System.Linq; using System.Web; using Warehouse.Models.mesModel; namespace Warehouse.DAL.CloseCondition { public class CloseConditionDal { //拼柜条件卡关 public List UpdateLCLCondition(dynamic LCLCondition) { using (var context = new mesModel()) { CloseConditionSqlDal Close = new CloseConditionSqlDal(); string sql = Close.InsertLCLConditionSql(LCLCondition); var res = context.DynamicListFromSql(sql, null); return res.ToList(); } } //入库条件卡关 public List UpdatePUTCondition(dynamic PUTCondition) { using (var context = new mesModel()) { CloseConditionSqlDal Close = new CloseConditionSqlDal(); string sql = Close.InsertPUTConditionSql(PUTCondition); var res = context.DynamicListFromSql(sql, null); return res.ToList(); } } //查询拼柜条件卡关 public List SearchLCLInfo() { using (var context = new mesModel()) { CloseConditionSqlDal Close = new CloseConditionSqlDal(); string sql = Close.SearchLCLInfoSql(); var res = context.DynamicListFromSql(sql, null); return res.ToList(); } } //查询拼柜条件卡关 public List SearchPUTInfo() { using (var context = new mesModel()) { CloseConditionSqlDal Close = new CloseConditionSqlDal(); string sql = Close.SearchPUTInfoSql(); var res = context.DynamicListFromSql(sql, null); return res.ToList(); } } } }