-
-
-
@Html.ValidationMessage("error")
@@ -868,7 +867,13 @@
getLineInfoList($("#unitNo").val());
});
- layui.use(['form', 'laydate', 'element','table'], function () {
+ layui.config({
+ base: '/js/' //假设这是test.js所在的目录
+ }).extend({ //设定模块别名
+ autocomplete: 'layAutoComplete'
+ });
+
+ layui.use(['form', 'laydate', 'element', 'table', 'autocomplete'], function () {
var form = layui.form,
laydate = layui.laydate,
layer = layui.layer,
@@ -890,6 +895,23 @@
, theme: 'grid'
});
+ // 關鍵字
+ $(".autocomplete").each(function () {
+ layui.autocomplete({
+ element: this,
+ display: 'meterialNo',
+ shortcut: 'modelName',
+ num: 2,
+ count: 10,
+ url: '/PCS/getPLMMeterialAutoComplete',
+ query: {},
+ resArray: 'data',
+ done: function (item) {
+ $(this.element).closest('div.layui-inline').find('input[id*=' + this.element.id + '_Desc]').val(item.meterialDesc);
+ }
+ });
+ })
+
element.on('tab(test2)', function (data) {
alert("TAB");
table && table.reload(data);
@@ -952,7 +974,7 @@
};
//PLM料號
- function getPLMMeterial(val) {
+ @*function getPLMMeterial(val) {
$.ajax(
{
url: "@Url.Action("getPLMMeterial", "PCS")",
@@ -968,7 +990,7 @@
alert(result);
}
});
- };
+ };*@
var tableCols = [[
{
diff --git a/AMESCoreStudio.Web/wwwroot/js/layAutoComplete.js b/AMESCoreStudio.Web/wwwroot/js/layAutoComplete.js
index f69e11d8..cc9420a0 100644
--- a/AMESCoreStudio.Web/wwwroot/js/layAutoComplete.js
+++ b/AMESCoreStudio.Web/wwwroot/js/layAutoComplete.js
@@ -1,2095 +1,137 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
layui-autocomplete/layAutoComplete.js at master · gavincilp/layui-autocomplete · GitHub
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ message }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Permalink
-
-
-
-
-
-
-
-
-
-
-
-
-
-
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Cannot retrieve contributors at this time
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
- Learn more about bidirectional Unicode characters
-
-
-
-
-
-
-
-
-
-
-
-
- |
- layui.define(['jquery'], function (exports) { |
-
-
- |
- var $ = layui.$ |
-
-
- |
- var defaultOption = { |
-
-
- |
- num: 2, |
-
-
- |
- array: null, |
-
-
- |
- display: 'name', |
-
-
- |
- shortcut: 'pinyin', |
-
-
- |
- url: null, |
-
-
- |
- query: {}, |
-
-
- |
- resArray: 'data', |
-
-
- |
- element: null, |
-
-
- |
- count: 10, |
-
-
- |
- done: null |
-
-
- |
- } |
-
-
- |
-
- |
-
-
- |
- function init(tmpOption) { |
-
-
- |
- var $el = $(tmpOption.element) |
-
-
- |
- var option = {} |
-
-
- |
- if ($el.data('option')) { |
-
-
- |
- option = $.extend($el.data('option'), tmpOption) |
-
-
- |
- } else { |
-
-
- |
- option = $.extend({}, defaultOption, tmpOption) |
-
-
- |
- var $out = $('<div></div>') |
-
-
- |
- $out.css('position','relative') |
-
-
- |
-
- |
-
-
- |
- $el.after($out) |
-
-
- |
- $el.remove() |
-
-
- |
- $out.append($el) |
-
-
- |
- var $panel = $('<div class="layui-anim-upbit layui-anim" style="position: absolute;' + |
-
-
- |
- 'top: 36px;' + |
-
-
- |
- 'display: none;' + |
-
-
- |
- 'border: 1px solid #eee;' + |
-
-
- |
- 'padding: 10px;' + |
-
-
- |
- 'z-index: 1000;' + |
-
-
- |
- 'background-color: white;' + |
-
-
- |
- 'margin-top: 5px;"></div>') |
-
-
- |
- $out.append($panel) |
-
-
- |
- $panel.on('click', '.layui-autocomplete-item', function (e) { |
-
-
- |
- select(e.target) |
-
-
- |
- e.preventDefault() |
-
-
- |
- }) |
-
-
- |
-
- |
-
-
- |
- function display(tempArray) { |
-
-
- |
- $panel.css('top', $el.height()).css('width', $el.width() - 10) |
-
-
- |
- $panel.empty() |
-
-
- |
- for (var i = 0; i < tempArray.length && i < option.count; i++) { |
-
-
- |
- var temp |
-
-
- |
- if (option.display != null) { |
-
-
- |
- temp = $('<div class="layui-autocomplete-item">' + tempArray[i][option.display] + '</div>') |
-
-
- |
- } else { |
-
-
- |
- temp = $('<div class="layui-autocomplete-item">' + tempArray[i] + '</div>') |
-
-
- |
- } |
-
-
- |
- temp.data('item', tempArray[i]) |
-
-
- |
- $panel.append(temp) |
-
-
- |
- } |
-
-
- |
- if (tempArray.length != 0) { |
-
-
- |
- $panel.show() |
-
-
- |
- } else { |
-
-
- |
- $panel.hide() |
-
-
- |
- } |
-
-
- |
- } |
-
-
- |
-
- |
-
-
- |
- function select(item) { |
-
-
- |
- if (option.display) { |
-
-
- |
- $el.val($(item).data("item")[option.display]) |
-
-
- |
- } else { |
-
-
- |
- $el.val($(item).data("item")) |
-
-
- |
- } |
-
-
- |
- if (option.done != null && typeof option.done == 'function') { |
-
-
- |
- option.done($(item).data("item")) |
-
-
- |
- } |
-
-
- |
- $panel.hide() |
-
-
- |
- } |
-
-
- |
- var debounceTimeout; |
-
-
- |
- $el.keyup(function (e) { |
-
-
- |
- if (e.which == 40 && $panel.css('display') != 'none') { |
-
-
- |
- var $active = $panel.find('.layui-autocomplete-active') |
-
-
- |
- if ($active.length > 0 && $active.next().length > 0) { |
-
-
- |
- var $next = $active.next() |
-
-
- |
- $next.addClass('layui-autocomplete-active') |
-
-
- |
- $active.removeClass('layui-autocomplete-active') |
-
-
- |
- $next.focus() |
-
-
- |
- } else { |
-
-
- |
- $panel.find('.layui-autocomplete-active').removeClass('layui-autocomplete-active') |
-
-
- |
- var $next = $($panel.find('.layui-autocomplete-item').get(0)) |
-
-
- |
- $next.addClass('layui-autocomplete-active') |
-
-
- |
- $next.focus() |
-
-
- |
- } |
-
-
- |
- return |
-
-
- |
- } else if (e.which == 38 && $panel.css('display') != 'none') { |
-
-
- |
- var $active = $panel.find('.layui-autocomplete-active') |
-
-
- |
- if ($active.length > 0 && $active.prev().length > 0) { |
-
-
- |
- var $next = $active.prev() |
-
-
- |
- $next.addClass('layui-autocomplete-active') |
-
-
- |
- $active.removeClass('layui-autocomplete-active') |
-
-
- |
- $next.focus() |
-
-
- |
- } |
-
-
- |
- return false; |
-
-
- |
- } else if (e.which == 13 && $panel.find('.layui-autocomplete-active').length > 0) { |
-
-
- |
- select($panel.find('.layui-autocomplete-active')) |
-
-
- |
- return false; |
-
-
- |
- } |
-
-
- |
- var value = $el.val() |
-
-
- |
- if (value.length >= option.num) { |
-
-
- |
- if (option.array != null) { |
-
-
- |
- var tempArray = [] |
-
-
- |
- for (var i = 0; i < option.array.length; i++) { |
-
-
- |
- var item = option.array[i] |
-
-
- |
- if (item[option.display].toLowerCase().search(value.toLowerCase()) > -1 || (option.shortcut && item[option.shortcut].toLowerCase().search(value.toLowerCase()) > -1)) { |
-
-
- |
- tempArray.push(item) |
-
-
- |
- } |
-
-
- |
- } |
-
-
- |
- display(tempArray) |
-
-
- |
- } else { |
-
-
- |
- clearTimeout(debounceTimeout) |
-
-
- |
- debounceTimeout=setTimeout(function(){ |
-
-
- |
- $.post(option.url, $.extend({search:value},option.query), function (res) { |
-
-
- |
- display(res[resArray]) |
-
-
- |
- }) |
-
-
- |
- },500); |
-
-
- |
- } |
-
-
- |
- } else { |
-
-
- |
- $panel.empty() |
-
-
- |
- $panel.hide() |
-
-
- |
- } |
-
-
- |
- }) |
-
-
- |
-
- |
-
-
- |
- $el.blur(function () { |
-
-
- |
- setTimeout(function(){ |
-
-
- |
- $panel.hide(500) |
-
-
- |
- },100) |
-
-
- |
- }) |
-
-
- |
- } |
-
-
- |
- $el.data('option', option) |
-
-
- |
- } |
-
-
- |
- exports('autocomplete', init) |
-
-
- |
- }) |
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- You can’t perform that action at this time.
-
-
-
-
-
You signed in with another tab or window. Reload to refresh your session.
-
You signed out in another tab or window. Reload to refresh your session.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+layui.define(['jquery'], function (exports) {
+ var $ = layui.$
+ var defaultOption = {
+ num: 2,
+ array: null,
+ display: 'name',
+ shortcut: 'pinyin',
+ url: null,
+ query: {},
+ resArray: 'data',
+ element: null,
+ count: 10,
+ done: null
+ }
+
+ function init(tmpOption) {
+ var $el = $(tmpOption.element)
+ var option = {}
+ if ($el.data('option')) {
+ option = $.extend($el.data('option'), tmpOption)
+ } else {
+ option = $.extend({}, defaultOption, tmpOption)
+ var $out = $('
')
+ $out.css('position', 'relative')
+
+ $el.after($out)
+ $el.remove()
+ $out.append($el)
+ var $panel = $('
')
+ $out.append($panel)
+ $panel.on('click', '.layui-autocomplete-item', function (e) {
+ select(e.target)
+ e.preventDefault()
+ })
+
+ function display(tempArray) {
+ $panel.css('top', $el.height()).css('width', $el.width() - 10)
+ $panel.empty()
+ for (var i = 0; i < tempArray.length && i < option.count; i++) {
+ var temp
+ if (option.display != null) {
+ temp = $('
' + tempArray[i][option.display] + '
')
+ } else {
+ temp = $('
' + tempArray[i] + '
')
+ }
+ temp.data('item', tempArray[i])
+ $panel.append(temp)
+ }
+ if (tempArray.length != 0) {
+ $panel.show()
+ } else {
+ $panel.hide()
+ }
+ }
+
+ function select(item) {
+ if (option.display) {
+ $el.val($(item).data("item")[option.display])
+ } else {
+ $el.val($(item).data("item"))
+ }
+ if (option.done != null && typeof option.done == 'function') {
+ option.done($(item).data("item"))
+ }
+ $panel.hide()
+ }
+ var debounceTimeout;
+ $el.keyup(function (e) {
+ if (e.which == 40 && $panel.css('display') != 'none') {
+ var $active = $panel.find('.layui-autocomplete-active')
+ if ($active.length > 0 && $active.next().length > 0) {
+ var $next = $active.next()
+ $next.addClass('layui-autocomplete-active')
+ $active.removeClass('layui-autocomplete-active')
+ $next.focus()
+ } else {
+ $panel.find('.layui-autocomplete-active').removeClass('layui-autocomplete-active')
+ var $next = $($panel.find('.layui-autocomplete-item').get(0))
+ $next.addClass('layui-autocomplete-active')
+ $next.focus()
+ }
+ return
+ } else if (e.which == 38 && $panel.css('display') != 'none') {
+ var $active = $panel.find('.layui-autocomplete-active')
+ if ($active.length > 0 && $active.prev().length > 0) {
+ var $next = $active.prev()
+ $next.addClass('layui-autocomplete-active')
+ $active.removeClass('layui-autocomplete-active')
+ $next.focus()
+ }
+ return false;
+ } else if (e.which == 13 && $panel.find('.layui-autocomplete-active').length > 0) {
+ select($panel.find('.layui-autocomplete-active'))
+ return false;
+ }
+ var value = $el.val()
+ if (value.length >= option.num) {
+ if (option.array != null) {
+ var tempArray = []
+ for (var i = 0; i < option.array.length; i++) {
+ var item = option.array[i]
+ if (item[option.display].toLowerCase().search(value.toLowerCase()) > -1 || (option.shortcut && item[option.shortcut].toLowerCase().search(value.toLowerCase()) > -1)) {
+ tempArray.push(item)
+ }
+ }
+ display(tempArray)
+ } else {
+ clearTimeout(debounceTimeout)
+ debounceTimeout = setTimeout(function () {
+ $.post(option.url, $.extend({ search: value }, option.query), function (res) {
+ display(res[option.resArray])
+ })
+ }, 500);
+ }
+ } else {
+ $panel.empty()
+ $panel.hide()
+ }
+ })
+
+ $el.blur(function () {
+ setTimeout(function () {
+ $panel.hide(500)
+ }, 100)
+ })
+ }
+ $el.data('option', option)
+ }
+ exports('autocomplete', init)
+})
\ No newline at end of file
diff --git a/AMESCoreStudio.WebApi/Controllers/AMES/PlmMeterialInfoeController.cs b/AMESCoreStudio.WebApi/Controllers/AMES/PlmMeterialInfoeController.cs
index dc9bf334..818df101 100644
--- a/AMESCoreStudio.WebApi/Controllers/AMES/PlmMeterialInfoeController.cs
+++ b/AMESCoreStudio.WebApi/Controllers/AMES/PlmMeterialInfoeController.cs
@@ -44,6 +44,18 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES
return plmMeterialInfo;
}
+ ///
+ /// 關鍵字查詢
+ ///
+ ///
PLM料號
+ ///
+ [HttpGet("AutoComplete/{id}")]
+ public async Task
>> GetPlmMeterialInfoAutoComplete(string id)
+ {
+ var plmMeterialInfo = await _context.PlmMeterialInfos.Where(w => w.MeterialNo.ToUpper().Contains(id.ToUpper())).ToListAsync();
+ return plmMeterialInfo;
+ }
+
// PUT: api/PlmMeterialInfoe/5
// To protect from overposting attacks, enable the specific properties you want to bind to, for
// more details, see https://go.microsoft.com/fwlink/?linkid=2123754.
diff --git a/AMESCoreStudio.WebApi/Controllers/AMES/WipAttsController.cs b/AMESCoreStudio.WebApi/Controllers/AMES/WipAttsController.cs
index 528a08db..727916a8 100644
--- a/AMESCoreStudio.WebApi/Controllers/AMES/WipAttsController.cs
+++ b/AMESCoreStudio.WebApi/Controllers/AMES/WipAttsController.cs
@@ -54,20 +54,11 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES
///
/// 工單號碼
///
- // GET: api/WipAtts/4
[HttpGet("{id}")]
public async Task> GetWipAtt(string id)
{
-
IQueryable q = _context.WipAtts.Where(p => p.WipNO == id);
-
var WipAtt = await q.ToListAsync();
-
- if (WipAtt == null || WipAtt.Count == 0)
- {
- return NotFound();
- }
-
return WipAtt.FirstOrDefault();
}
diff --git a/AMESCoreStudio.WebApi/Controllers/AMES/WipCheckController.cs b/AMESCoreStudio.WebApi/Controllers/AMES/WipCheckController.cs
index 289191b5..89e03f4b 100644
--- a/AMESCoreStudio.WebApi/Controllers/AMES/WipCheckController.cs
+++ b/AMESCoreStudio.WebApi/Controllers/AMES/WipCheckController.cs
@@ -46,7 +46,7 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES
}
///
- ///
+ /// 更新工程確認
///
///
///
@@ -57,12 +57,12 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES
_context.Entry(wipCheck).State = EntityState.Modified;
//設置容器空間某一個模型的某一個欄位 不提交到資料庫
//DbContent.Entry是要更新到資料庫的整個對象
- _context.Entry(wipCheck).Property("MaUserID").IsModified = false;
- _context.Entry(wipCheck).Property("MaCheckdate").IsModified = false;
- _context.Entry(wipCheck).Property("PMUserID").IsModified = false;
- _context.Entry(wipCheck).Property("PMCheckdate").IsModified = false;
- wipCheck.PeUserID = 0;
- wipCheck.PeCheckdate = DateTime.Now;
+ _context.Entry(wipCheck).Property("MFUserID").IsModified = false;
+ _context.Entry(wipCheck).Property("MFCheckdate").IsModified = false;
+ _context.Entry(wipCheck).Property("PMCUserID").IsModified = false;
+ _context.Entry(wipCheck).Property("PMCCheckdate").IsModified = false;
+ wipCheck.PEUserID = 0;
+ wipCheck.PECheckdate = DateTime.Now;
try
{
@@ -80,23 +80,23 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES
}
///
- ///
+ /// 更新製造確認
///
///
///
- [HttpPut("ByMA")]
- public async Task> PutWipCheckByMA(WipCheck wipCheck)
+ [HttpPut("ByMF")]
+ public async Task> PutWipCheckByMF(WipCheck wipCheck)
{
ResultModel result = new ResultModel();
_context.Entry(wipCheck).State = EntityState.Modified;
//設置容器空間某一個模型的某一個欄位 不提交到資料庫
//DbContent.Entry是要更新到資料庫的整個對象
- _context.Entry(wipCheck).Property("PeUserID").IsModified = false;
- _context.Entry(wipCheck).Property("PeCheckdate").IsModified = false;
- _context.Entry(wipCheck).Property("PMUserID").IsModified = false;
- _context.Entry(wipCheck).Property("PMCheckdate").IsModified = false;
- wipCheck.MaUserID = 0;
- wipCheck.MaCheckdate = DateTime.Now;
+ _context.Entry(wipCheck).Property("PEUserID").IsModified = false;
+ _context.Entry(wipCheck).Property("PECheckdate").IsModified = false;
+ _context.Entry(wipCheck).Property("PMCUserID").IsModified = false;
+ _context.Entry(wipCheck).Property("PMCCheckdate").IsModified = false;
+ wipCheck.MFUserID = 0;
+ wipCheck.MFCheckdate = DateTime.Now;
try
{
@@ -114,23 +114,23 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES
}
///
- ///
+ /// 更新生管確認
///
///
///
- [HttpPut("ByPM")]
- public async Task> PutWipCheckByPM(WipCheck wipCheck)
+ [HttpPut("ByPMC")]
+ public async Task> PutWipCheckByPMC(WipCheck wipCheck)
{
ResultModel result = new ResultModel();
_context.Entry(wipCheck).State = EntityState.Modified;
//設置容器空間某一個模型的某一個欄位 不提交到資料庫
//DbContent.Entry是要更新到資料庫的整個對象
- _context.Entry(wipCheck).Property("PeUserID").IsModified = false;
- _context.Entry(wipCheck).Property("PeCheckdate").IsModified = false;
- _context.Entry(wipCheck).Property("MaUserID").IsModified = false;
- _context.Entry(wipCheck).Property("MaCheckdate").IsModified = false;
- wipCheck.PMUserID = 0;
- wipCheck.PMCheckdate = DateTime.Now;
+ _context.Entry(wipCheck).Property("PEUserID").IsModified = false;
+ _context.Entry(wipCheck).Property("PECheckdate").IsModified = false;
+ _context.Entry(wipCheck).Property("MFUserID").IsModified = false;
+ _context.Entry(wipCheck).Property("MFCheckdate").IsModified = false;
+ wipCheck.PMCUserID = 0;
+ wipCheck.PMCCheckdate = DateTime.Now;
try
{
diff --git a/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs b/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs
index 70b575dc..a8325b67 100644
--- a/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs
+++ b/AMESCoreStudio.WebApi/Controllers/AMES/WipInfosController.cs
@@ -185,54 +185,6 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES
return result;
}
- ///
- /// 查詢工單資料+是否過站 by SelectParameter
- ///
- ///
- //[Route("[action]")]
- //[HttpGet]
- //public async Task> GetWipInfoSelectParameterInBarCodeStation([FromQuery] WipInfoDto value, int page = 0, int limit = 10)
- //{
-
- //ResultModel result = new ResultModel();
- //var result = GetWipInfoSelectParameter(value, page, limit);
- //// 判斷是否已經有過站紀錄
- //BarcodeStationController barcodeStation = new BarcodeStationController(_context);
- //var WipArray = result.Result.Data.GroupBy(o => o.WipNO)
- // .Select(s => new
- // {
- // s.Key,
- // WipID = result.Result.Data.Where(w => w.WipNO == s.Key)
- // .Select(s1 => (decimal)s1.WipID).ToList()
- // }).ToList();
-
- //foreach (var item in WipArray)
- //{
- // var q1 = barcodeStation.GetBarcodeStationByWipIDList(item.WipID);
- // if (q1 == null)
- // {
- // result.Result.Data = result.Result.Data.Where(w => w.WipNO == item.Key)
- // .Select(s => new { s , BarcodeStation = "N"}).ToList();
- // }
- // else
- // {
- // result.Result.Data = result.Result.Data.Where(w => w.WipNO == item.Key)
- // .Select(s => { s.BarcodeStation = "Y"; return s; }).ToList();
- // }
- //}
-
- //if (result.Result.Data == null)
- //{
- // result.Result.Msg = "查無資料";
- // result.Result.Success = false;
- // return await result;
- //}
-
- //result.Result.Success = true;
- //result.Result.Msg = "OK";
- //return;
- //}
-
///
/// 查詢工單資料Info By WipID
///
@@ -280,9 +232,6 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES
///
///
///
- // POST: api/SystemInfoes
- // To protect from overposting attacks, enable the specific properties you want to bind to, for
- // more details, see https://go.microsoft.com/fwlink/?linkid=2123754.
[HttpPost]
public async Task> PostWipInfo([FromBody] WipInfo WipInfo)
{
@@ -314,9 +263,6 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES
/// 工單ID
/// 狀態
///
- // PUT: api/RuleStations/5
- // To protect from overposting attacks, enable the specific properties you want to bind to, for
- // more details, see https://go.microsoft.com/fwlink/?linkid=2123754.
[HttpPut("{id}/{statusno}")]
public async Task> PutWipinfoToStatusNO(int id = 0, string statusno = null)
{
@@ -349,12 +295,9 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES
///
- /// 工單資本資料
+ /// 更新工單資本資料
///
///
- // PUT: api/RuleStations/5
- // To protect from overposting attacks, enable the specific properties you want to bind to, for
- // more details, see https://go.microsoft.com/fwlink/?linkid=2123754.
[HttpPut]
public async Task> PutWipinfo([FromBody] WipInfo wipInfo)
{
diff --git a/AMESCoreStudio.WebApi/Models/AMES/WipCheck.cs b/AMESCoreStudio.WebApi/Models/AMES/WipCheck.cs
index dcda9359..59ed02cb 100644
--- a/AMESCoreStudio.WebApi/Models/AMES/WipCheck.cs
+++ b/AMESCoreStudio.WebApi/Models/AMES/WipCheck.cs
@@ -24,45 +24,45 @@ namespace AMESCoreStudio.WebApi.Models.AMES
public string WipNo { get; set; }
///
- ///
+ /// 生管UsesID
///
[DataMember]
- [Column("PM_USERID")]
- public int? PMUserID { get; set; }
+ [Column("PMC_USERID")]
+ public int? PMCUserID { get; set; }
///
- ///
+ /// 生管確認時間
///
[DataMember]
- [Column("PM_CHECKDATE")]
- public DateTime? PMCheckdate { get; set; }
+ [Column("PMC_CHECKDATE")]
+ public DateTime? PMCCheckdate { get; set; }
///
- ///
+ /// 製造UserID
///
[DataMember]
- [Column("MA_USERID")]
- public int? MaUserID { get; set; }
+ [Column("MF_USERID")]
+ public int? MFUserID { get; set; }
///
- ///
+ /// 製造UserID
///
[DataMember]
- [Column("MA_CHECKDATE")]
- public DateTime? MaCheckdate { get; set; }
+ [Column("MF_CHECKDATE")]
+ public DateTime? MFCheckdate { get; set; }
///
- ///
+ /// 工程確認時間
///
[DataMember]
[Column("PE_USERID")]
- public int? PeUserID { get; set; }
+ public int? PEUserID { get; set; }
///
- ///
+ /// 工程確認時間
///
[DataMember]
[Column("PE_CHECKDATE")]
- public DateTime? PeCheckdate { get; set; }
+ public DateTime? PECheckdate { get; set; }
}
}