| | |
| | | using System; |
| | | using Microsoft.AspNetCore.Http; |
| | | using Newtonsoft.Json.Linq; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Threading.Tasks; |
| | | using VueWebCoreApi.Models; |
| | | |
| | | namespace VueWebCoreApi.Tools |
| | | { |
| | | public class ExcelList |
| | | { |
| | | public static List<ScoreReport> ExcelData() |
| | | public static List<ScoreReport> ExcelData(User us) |
| | | { |
| | | |
| | | dynamic dynObj = JObject.Parse(us.mesSetting); |
| | | bool route = dynObj.route; |
| | | List<ScoreReport> list = new List<ScoreReport> |
| | | { |
| | | //new ScoreReport("0","组织架构"), |
| | |
| | | new ScoreReport("14","模具保养项目"), |
| | | new ScoreReport("14_1","模具保养标准"), |
| | | new ScoreReport("15","工序设置"), |
| | | new ScoreReport("16","工艺路线"), |
| | | //new ScoreReport("16","工艺路线"), |
| | | //new ScoreReport("24","节拍工价"), |
| | | new ScoreReport("17","质检标准"), |
| | | new ScoreReport("18","缺陷定义"), |
| | | new ScoreReport("19","生产订单"), |
| | | new ScoreReport("20","库存查询"), |
| | | new ScoreReport("21","物料清单"), |
| | | //new ScoreReport("19","生产订单"), |
| | | //new ScoreReport("20","库存查询"), |
| | | //new ScoreReport("21","物料清单"), |
| | | }; |
| | | //工艺路线版 |
| | | if (route) |
| | | { |
| | | list.Add(new ScoreReport("16", "工艺路线")); |
| | | list.Add(new ScoreReport("24", "节拍工价(工艺路线版)")); |
| | | } |
| | | else //工序版 |
| | | { |
| | | list.Add(new ScoreReport("25", "节拍工价(工序版)")); |
| | | } |
| | | return list; |
| | | } |
| | | } |