基础信息
This commit is contained in:
1 parent
b46836af93
commit
4a5aa7d476
10 files changed
+748
No files matched your search
@@ -0,0 +1,68 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using HHWMS.Web.Models;
|
||||
using MESTOWMSService;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Newtonsoft.Json;
|
||||
using ServiceReference1;
|
||||
using WalkingTec.Mvvm.Core;
|
||||
using WalkingTec.Mvvm.Mvc;
|
||||
|
||||
namespace HHWMS.Web.Controllers;
|
||||
|
||||
[Area("xwms")]
|
||||
[ActionDescription("生产工单领料")]
|
||||
public class XWMSMFMController : BaseController
|
||||
{
|
||||
private readonly IUnitWork _unitWork;
|
||||
|
||||
public XWMSMFMController(IUnitWork unitWork)
|
||||
{
|
||||
_unitWork = unitWork;
|
||||
}
|
||||
|
||||
#region Search
|
||||
|
||||
[ActionDescription("Sys.Search")]
|
||||
public ActionResult Index()
|
||||
{
|
||||
return PartialView("Index");
|
||||
}
|
||||
|
||||
[ActionDescription("Sys.Search")]
|
||||
public ActionResult Search()
|
||||
{
|
||||
var data = OracleHelper.GetDataSet("select * from QREQ3.XWMSMFM where rownum <=30").Tables[0];
|
||||
var list = data.AsEnumerable().Select
|
||||
(x => new
|
||||
{
|
||||
MFGFCY_0 = x.Field<string>("MFGFCY_0"),
|
||||
MFGNUM_0 = x.Field<string>("MFGNUM_0"),
|
||||
MFGLIN_0 = x.Field<Int64>("MFGLIN_0"),
|
||||
PJT_0 = x.Field<string>("PJT_0"),
|
||||
OPPEXTNUM_0 = x.Field<string>("OPPEXTNUM_0"),
|
||||
MFIITMREF_0 = x.Field<string>("MFIITMREF_0"),
|
||||
MFIITMDES1_0 = x.Field<string>("MFIITMDES1_0"),
|
||||
MFIITMDES2_0 = x.Field<string>("MFIITMDES2_0"),
|
||||
EXTQTY_0 = x.Field<decimal>("EXTQTY_0"),
|
||||
BOMSEQ_0 = x.Field<Int32>("BOMSEQ_0"),
|
||||
ITMREF_0 = x.Field<string>("ITMREF_0"),
|
||||
ITMDES1_0 = x.Field<string>("ITMDES1_0"),
|
||||
ITMDES2_0 = x.Field<string>("ITMDES2_0"),
|
||||
ITMDES3_0 = x.Field<string>("ITMDES3_0"),
|
||||
YITMDES4_0 = x.Field<string>("YITMDES4_0"),
|
||||
STOCOD_0 = x.Field<Int16>("STOCOD_0"),
|
||||
RETEXTCOE_0 = x.Field<decimal>("RETEXTCOE_0"),
|
||||
RETQTY_0 = x.Field<decimal>("RETQTY_0"),
|
||||
USEQTY_0 = x.Field<decimal>("USEQTY_0"),
|
||||
WMD_USEQTY_0 = x.Field<decimal>("WMD_USEQTY_0"),
|
||||
}
|
||||
).ToList();
|
||||
return JsonMore(list);
|
||||
}
|
||||
|
||||
#endregion Search
|
||||
}
|
||||
Reference in new issue
Block a user