using Warehouse.DAL.WorkorderSetting; using System; using System.Collections.Generic; using System.Linq; using System.Web; using Warehouse.Models.mesModel; namespace Warehouse.DAL.WorkorderSetting { public class WorkorderSettingDal { WorkSetCheckDal WorkSet = new WorkSetCheckDal(); //删除已存在的等级功率组信息 public List DeleteWorkSet(string workorder) { using (var context = new mesModel()) { string sql = WorkSet.DeleteWorkSetSql(workorder); var res = context.DynamicListFromSql(sql, null); return res.ToList(); } } //数据表插入数据 public List InsertGradePower(dynamic dataInfo) { using (var context = new mesModel()) { string sql = WorkSet.InsertGradePowerSql(dataInfo); var res = context.DynamicListFromSql(sql, null); return res.ToList(); } } //查询功率档信息 public List QueryPowerGrade(string PowerGroup) { using (var context = new mesModel()) { string sql = WorkSet.QueryPowerGradeSql(PowerGroup); var res = context.DynamicListFromSql(sql, null); return res.ToList(); } } //查询电流档信息 public List QueryCurrentGrade(string PowerGroup) { using (var context = new mesModel()) { string sql = WorkSet.QueryCurrentGradeSql(PowerGroup); var res = context.DynamicListFromSql(sql, null); return res.ToList(); } } //查询工单设定信息 public List QueryWorkSetInfo(string Workorder) { using (var context = new mesModel()) { string sql = WorkSet.QueryWorkSetInfoSql(Workorder); var res = context.DynamicListFromSql(sql, null); return res.ToList(); } } } }