poh
This commit is contained in:
1 parent
aacf491051
commit
b46836af93
6 files changed
+387
-9
No files matched your search
@@ -0,0 +1,70 @@
|
||||
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 XWMSPOHController : BaseController
|
||||
{
|
||||
private readonly IUnitWork _unitWork;
|
||||
|
||||
public XWMSPOHController(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.XWMSPOH where rownum <=30").Tables[0];
|
||||
var list = data.AsEnumerable().Select
|
||||
(x => new
|
||||
{
|
||||
POHFCY_0 = x.Field<string>("POHFCY_0"),
|
||||
ORDDAT_0 = x.Field<DateTime>("ORDDAT_0").ToShortDateString(),
|
||||
BPSNUM_0 = x.Field<string>("BPSNUM_0"),
|
||||
BPRNAM_0 = x.Field<string>("BPRNAM_0"),
|
||||
POHNUM_0 = x.Field<string>("POHNUM_0"),
|
||||
POPLIN_0 = x.Field<Int64>("POPLIN_0"),
|
||||
PJT_0 = x.Field<string>("PJT_0"),
|
||||
PJTNAM_0 = x.Field<string>("PJTNAM_0"),
|
||||
ITMREF_0 = x.Field<string>("ITMREF_0"),
|
||||
POHITMDES1_0 = x.Field<string>("POHITMDES1_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"),
|
||||
QTYUOM_0 = x.Field<decimal>("QTYUOM_0"),
|
||||
UOM_0 = x.Field<string>("UOM_0"),
|
||||
QTYSTU_0 = x.Field<decimal>("QTYSTU_0"),
|
||||
STU_0 = x.Field<string>("STU_0"),
|
||||
NRCPQTYPUU_0 = x.Field<decimal>("NRCPQTYPUU_0"),
|
||||
NRCPQTYSTU_0 = x.Field<decimal>("NRCPQTYSTU_0"),
|
||||
UOMSTUCOE_0 = x.Field<decimal>("UOMSTUCOE_0"),
|
||||
STA_0 = x.Field<string>("STA_0"),
|
||||
}
|
||||
).ToList();
|
||||
return JsonMore(list);
|
||||
}
|
||||
|
||||
#endregion Search
|
||||
}
|
||||
Reference in new issue
Block a user