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.
60 lines
1.7 KiB
60 lines
1.7 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Data.Entity.Validation;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using Warehouse.Models;
|
|
using Warehouse.Models.mesModel;
|
|
using Z.EntityFramework.Plus;
|
|
using Warehouse.Models.mesMysqlModel;
|
|
|
|
namespace Warehouse.DAL.DropDownListDal
|
|
{
|
|
public class DropDownListDal
|
|
{
|
|
public List<dynamic> worksiteL6()
|
|
{
|
|
using (var context = new mymesModel())
|
|
{
|
|
string sql = @"SELECT * FROM js_mes.df_worksite_list ";
|
|
var res = context.DynamicListFromSql(sql, null);
|
|
return res.ToList();
|
|
}
|
|
}
|
|
|
|
|
|
public List<dynamic> worksiteL8()
|
|
{
|
|
using (var context = new mesModel())
|
|
{
|
|
string sql = @"SELECT *
|
|
FROM [mes_main].[dbo].[df_processes]";
|
|
var res = context.DynamicListFromSql(sql, null);
|
|
return res.ToList();
|
|
}
|
|
}
|
|
|
|
public List<dynamic> WorkShopL6()
|
|
{
|
|
using (var context = new mymesModel())
|
|
{
|
|
string sql = @"SELECT * FROM js_mes.df_config_condition_linkage
|
|
where LINKDESCRIPTION ='workshop' and State = 'Y'";
|
|
var res = context.DynamicListFromSql(sql, null);
|
|
return res.ToList();
|
|
}
|
|
}
|
|
|
|
public List<dynamic> WorkShopL8()
|
|
{
|
|
using (var context = new mesModel())
|
|
{
|
|
string sql = @"SELECT area_code,descriptions
|
|
FROM mes_main.dbo.df_areas
|
|
where active_flag = 1";
|
|
var res = context.DynamicListFromSql(sql, null);
|
|
return res.ToList();
|
|
}
|
|
}
|
|
}
|
|
}
|