旧版报表、仓库
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.
 
 
 
 
 

69 lines
2.1 KiB

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<dynamic> DeleteWorkSet(string workorder)
{
using (var context = new mesModel())
{
string sql = WorkSet.DeleteWorkSetSql(workorder);
var res = context.DynamicListFromSql(sql, null);
return res.ToList();
}
}
//数据表插入数据
public List<dynamic> InsertGradePower(dynamic dataInfo)
{
using (var context = new mesModel())
{
string sql = WorkSet.InsertGradePowerSql(dataInfo);
var res = context.DynamicListFromSql(sql, null);
return res.ToList();
}
}
//查询功率档信息
public List<dynamic> QueryPowerGrade(string PowerGroup)
{
using (var context = new mesModel())
{
string sql = WorkSet.QueryPowerGradeSql(PowerGroup);
var res = context.DynamicListFromSql(sql, null);
return res.ToList();
}
}
//查询电流档信息
public List<dynamic> QueryCurrentGrade(string PowerGroup)
{
using (var context = new mesModel())
{
string sql = WorkSet.QueryCurrentGradeSql(PowerGroup);
var res = context.DynamicListFromSql(sql, null);
return res.ToList();
}
}
//查询工单设定信息
public List<dynamic> QueryWorkSetInfo(string Workorder)
{
using (var context = new mesModel())
{
string sql = WorkSet.QueryWorkSetInfoSql(Workorder);
var res = context.DynamicListFromSql(sql, null);
return res.ToList();
}
}
}
}