14 changed files with 160 additions and 29 deletions
@ -0,0 +1,9 @@ |
|||||
|
/** |
||||
|
* Javascript-Equal-Height-Responsive-Rows |
||||
|
* https://github.com/Sam152/Javascript-Equal-Height-Responsive-Rows
|
||||
|
*/ |
||||
|
(function($){'use strict';$.fn.equalHeight=function(){var heights=[];$.each(this,function(i,element){var $element=$(element);var elementHeight;var includePadding=($element.css('box-sizing')==='border-box')||($element.css('-moz-box-sizing')==='border-box');if(includePadding){elementHeight=$element.innerHeight();}else{elementHeight=$element.height();} |
||||
|
heights.push(elementHeight);});this.css('height',Math.max.apply(window,heights)+'px');return this;};$.fn.equalHeightGrid=function(columns){var $tiles=this.filter(':visible');$tiles.css('height','auto');for(var i=0;i<$tiles.length;i++){if(i%columns===0){var row=$($tiles[i]);for(var n=1;n<columns;n++){row=row.add($tiles[i+n]);} |
||||
|
row.equalHeight();}} |
||||
|
return this;};$.fn.detectGridColumns=function(){var offset=0,cols=0,$tiles=this.filter(':visible');$tiles.each(function(i,elem){var elemOffset=$(elem).offset().top;if(offset===0||elemOffset===offset){cols++;offset=elemOffset;}else{return false;}});return cols;};var grids_event_uid=0;$.fn.responsiveEqualHeightGrid=function(){var _this=this;var event_namespace='.grids_'+grids_event_uid;_this.data('grids-event-namespace',event_namespace);function syncHeights(){var cols=_this.detectGridColumns();_this.equalHeightGrid(cols);} |
||||
|
$(window).bind('resize'+event_namespace+' load'+event_namespace,syncHeights);syncHeights();grids_event_uid++;return this;};$.fn.responsiveEqualHeightGridDestroy=function(){var _this=this;_this.css('height','auto');$(window).unbind(_this.data('grids-event-namespace'));return this;};})(window.jQuery); |
@ -0,0 +1,82 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Threading.Tasks; |
||||
|
|
||||
|
namespace AMESCoreStudio.WebApi.DTO.AMES |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// WipInfo Select Dto
|
||||
|
/// </summary>
|
||||
|
public class WipLockDto |
||||
|
{ |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工單鎖定ID
|
||||
|
/// </summary>
|
||||
|
public int WipLockID { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工單號碼
|
||||
|
/// </summary>
|
||||
|
public string WipNO { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 鎖定狀態(0:鎖定;1:解鎖)
|
||||
|
/// </summary>
|
||||
|
public string LockStatus { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 料號
|
||||
|
/// </summary>
|
||||
|
public string ItemNO { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 鎖定原因
|
||||
|
/// </summary>
|
||||
|
public string LockReason { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 解鎖原因
|
||||
|
/// </summary>
|
||||
|
public string UnLockReason { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 站別ID
|
||||
|
/// </summary>
|
||||
|
|
||||
|
|
||||
|
public string StationName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 鎖定類型
|
||||
|
/// </summary>
|
||||
|
public string LockType { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 鎖定原因類別(0-3C認證工單;1-驗證工單;3-維修換料待分析)
|
||||
|
/// </summary>
|
||||
|
public string LockReasonType { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 鎖定人員
|
||||
|
/// </summary>
|
||||
|
public decimal LockUserID { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 鎖定日期
|
||||
|
/// </summary>
|
||||
|
public DateTime LockDate { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 解鎖人員
|
||||
|
/// </summary>
|
||||
|
public decimal? UnLockUserID { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 解鎖日期
|
||||
|
/// </summary>
|
||||
|
|
||||
|
public DateTime? UnLockDate { get; set; } |
||||
|
|
||||
|
} |
||||
|
} |
@ -0,0 +1,23 @@ |
|||||
|
套件管理器主控台(檢視>其他視窗>套件管理器主控台)下以下指令 PS.記得選指定專案 |
||||
|
PM 下指令 |
||||
|
Scaffold-DbContext "Data Source=10.0.123.30:1521/shop.aten.com.tw;Password=s20f07s28;User Id=sfs;" |
||||
|
Oracle.EntityFrameworkCore -OutputDir Models -Force -Context "AppDBContext" |
||||
|
|
||||
|
-OutputDir 資料夾名稱 |
||||
|
-Context Context名稱 |
||||
|
-Force 覆寫現有檔案 |
||||
|
-NoOnConfiguring 不要產生 DbContext.OnConfiguring |
||||
|
-Tables 不設定參數,預設全部table |
||||
|
|
||||
|
Scaffold-DbContext "Data Source=10.0.123.30:1521/shop.aten.com.tw;Password=s20f07s28;User Id=sfs;" Oracle.EntityFrameworkCore -OutputDir Models/test -Force -Context "AppDBContext" -NoOnConfiguring -DataAnnotations |
||||
|
|
||||
|
詳細參數說明 |
||||
|
https://docs.microsoft.com/zh-tw/ef/core/cli/powershell#common-parameters |
||||
|
|
||||
|
|
||||
|
AMES 專案測試 |
||||
|
在Models/aaa 建立Model 跟 DBconntext |
||||
|
Scaffold-DbContext "Data Source=61.216.68.18:1521/JHDB;Password=AMES666;User Id=JHAMES;" Oracle.EntityFrameworkCore -OutputDir Models/aaa -DataAnnotations -Tables "Table名稱" -ContextNamespace "DB" |
||||
|
|
||||
|
DBconntext 所產生的ModelBuilder(功能跟DataAnnotations一樣,但ModelBuilder優先度高 可設定一個以上主key) 可以剪貼放到AMESContext.cs |
||||
|
|
Loading…
Reference in new issue