接入 PLM 物料分页、图纸查看与工序卡主动抓取

This commit is contained in:
Developer
2026-12-05 15:14:24 +08:00
parent 8d603d1509
commit 0ee7989e94
17 changed files with 530 additions and 4 deletions

View File

@@ -157,6 +157,7 @@ namespace Jingyao.AIEmployee
const string Duties = "ai_本机候选双人确认_当前职责";
const string Audit = "ai_本机候选双人确认_候选记录_审计链";
static readonly Dictionary<string,string[]> NavigationRoutes = new Dictionary<string,string[]>(StringComparer.Ordinal) {
{ "ai_物料信息_启用物料清单", new[] { "/plm/material-info" } },
{ "ai_MES综合工作台_我的投产接收", new[] { "/mes/control-center" } },
{ PerformanceSummary, new[] { "/erp/personal-performance" } },
{ PerformanceContracts, new[] { "/erp/personal-performance" } },
@@ -206,6 +207,14 @@ namespace Jingyao.AIEmployee
{
string[] fields;
switch(name) {
case "ai_物料信息_启用物料清单":
Only(inputs,"物料名称","图号","物料编码","原始类型","排序字段","排序方向");
foreach (string key in new[] { "物料名称","图号","物料编码","原始类型" }) AddText(command,inputs,key,100,"");
AddText(command,inputs,"排序字段",20,"","","物料名称","图号");
AddText(command,inputs,"排序方向",10,"","","升序","降序");
command.Parameters.Add("@页码",SqlDbType.Int).Value=(int)Positive(body,"pageList",100000,1);
command.Parameters.Add("@每页条数",SqlDbType.Int).Value=(int)Positive(body,"pageSize",100,20);
return;
case "ai_MES综合工作台_我的投产接收":
Only(inputs,"来源类型","状态");
AddText(command,inputs,"来源类型",20,"","","FORMAL","LEGACY");