發表文章

[Domain Know-How]_零售電子商務部分Table Schema設計

圖片
  大分類 欄名 型態 名稱 說明 Id NVarChar(10) 主碼   Name NVarChar(30) 名稱   Memo NVarChar(50) 備註   CreateTime DateTime 建檔日   Creater NVarChar(20) 建檔人   UpdateTime DateTime 更新日   Updater NVarChar(20) 更新人   OnlineRoomId nVarChar (10) 館別   State Int 狀態 狀態 0.計畫 1.新上線 2.上線中 3.下線 OrderId Int 排列順序   商品類別 欄名 型態 名稱 說明 Id NVarChar(10) 主碼   Name NVarChar(30) 名稱   Tax NVarChar(4) 稅別   Discount Currency 折數   StartDate DateTime 起始日   EndDate DateTime 結束日   ServiceCharge Currency 服務費   ClsUpId NVarChar(10) 公司使用者時間 分 Memo NVarChar(50) 備註   CreateTime DateTime 建檔日   Creater NVarChar(20) 建檔人   UpdateTime DateTime 更新日   Updater NVarChar(20) 更新人   商品資料表 欄名 型態 名稱 說明 Id NVarChar(20) 主碼 唯一編碼 ScdId NVarChar(20) 副碼 國際條碼(可重複) PrvId NVarChar(20) 廠商自編碼  貨號(可重複) ISBNCODE NVarChar(10) ISBN碼   Name NVarChar(100) 品名1 主要品名 SimName [NVarChar] (30)   簡易品名 EName NVarChar(100) 品名2 外語品名 如英文品名 SimEName [NVarChar] (3...

C# SMTP 異常郵件標頭中找到無效的字元: ';'。

圖片
  可能去檢查一下MailMessage 指定的屬性資料 Ref: https://blog.csdn.net/qq_41894426/article/details/108983097 https://www.cnblogs.com/guo0/archive/2011/10/18/2216639.html https://aimshield.pixnet.net/blog/post/26104014-system.net.mail https://tlcheng.wordpress.com/2010/09/11/vbnet-%E7%B9%9E%E8%B7%AF%E8%A7%A3%E6%B1%BA-mailmessage-%E5%9C%A8-header-%E4%BA%82%E7%B7%A8%E7%A2%BC%E7%9A%84-bug/

C# AutoMapper 一個類別轉換到另一個類別的使用筆記

圖片
  需安裝AutoMapper Package PM> Install-Package AutoMapper 程式碼 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 using System ; using AutoMapper ; namespace AutoMapApp1 { public class Employee { public string Name { get ; set ; } public int Salary { get ; set ; } public string Address { get ; set ; } public string Department { get ; set ; } } public class EmployeeDTO { public string Name { get ; set ; } public int Salary { get ; set ; } public string Address { get ; set ; } public string Department { get ; set ; } } public class EmployeeViewModel { public string FullName { get ; set ; } public int Salary { get ; set ; } public string Address { ...

製造命令_材料型態(直接料/間接料)

  『製造命令建立作業』中的【材料型態】 分為1.直接材料、2.間接材料、3.廠商供料、4.不發料、5.客戶供料; 若選1.”直接材料”:表該材料品號為成本計算來源的材料成本; 若選2.”間接材料”:表該材料品號為成本計算中要歸入製造費用分攤至製令製造費用成本; 若選3.”不發料”:則是用來提示使用者此材料雖不需領料,但仍必需注意其使用的材料品號。

一個或多個實體的驗證失敗。如需詳細資料,請參閱 'EntityValidationErrors' 屬性。

圖片
  一個或多個實體的驗證失敗。如需詳細資料,請參閱 'EntityValidationErrors' 屬性。 EntityValidationErrors -> ValidationErrors -> [0] -> ErrorMessage 展開收合就可看到真正錯誤真因

如何解決RWD後導致map area固定位置跑版的失效模式_jQuery RWD Image Maps

圖片
  在前一篇介紹到map area的一個做法 但其 FMEA 主要會發生在 RWD或者變更browser解析度後 圖片的座標位置就跑版了的問題 修正前的跑位問題 在此只能另尋解套方案 這裡一樣站在巨人的肩膀上 找到了大神寫好的這個jQuery library https://github.com/stowball/jQuery-rwdImageMaps 官網提供的實驗案例sample 頁 http://mattstow.com/experiment/responsive-image-maps/rwd-image-maps.html 那是採用MIT授權 因此免費商用是沒問題 在此透過CDN引入jQuery RWD Image Maps 前提是你也在前面有引入jQuery 那就補加上此段即可把Image Map RWD進行校正 1 2 3 4 5 6 7 8 9 10 11 12 <head> <script src= "https://cdnjs.cloudflare.com/ajax/libs/jQuery-rwdImageMaps/1.6/jquery.rwdImageMaps.min.js" ></script> </head> <body > <script type= "text/javascript" > $( document ).ready( function () { $( 'img[usemap]' ).rwdImageMaps(); }); </script> </body> DEMO Ref: HTML Image Map 影像地圖 jQuery 推薦插件:maphilight (加強特效)、rwdImageMaps (支援RWD) https://mnya.tw/cc/word/1252.html 如何製作響應式的影像地圖 http://blog.shihshih.com/responsive-image-map/ https://cdnjs.com/libraries/jQuery-rwdImageMaps

HTML中如何針對圖片部分區塊去進行area做hover或者連結跳轉的設置

圖片
  前陣子遇到書局官網一個讓我滿頭大的技術問題 雛型稿 給我一張圖然後button位置四散在圖片不規則區域中 這讓我一時有點無從下手 不知道如何去配置button觸發 因為是整張圖特定某部分要配置連結跳轉 = =||| 所幸google一陣子 找到對的關鍵字和技術 首先至 https://www.image-map.net/ 上傳要進行定位的圖檔並自行配置區域 當然也可配置橢圓區域 在此就沒特別舉例了 效果DEMO Ref: https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_areamap https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_areamap2 全端 真是捨麼都要會阿...

could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable', 'AsAsyncEnumerable'

圖片
  通常會發生在 第一個集合 left join 第二個集合這邊 第一個集合這裡可能要先撈取出來(.ToList() ....etc) 然後也要記得把握住前後集合順序 from 數量少的join 數量多的on 即可修正 Ref: could not be translated. Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a call to 'AsEnumerable', 'AsAsyncEnumerable' https://www.cnblogs.com/xiaogaopan/p/15384353.html could not be translated. Either rewrite the query in a form that can be translated https://blog.csdn.net/qq_42799562/article/details/120162877?ops_request_misc=&request_id=&biz_id=102&utm_term=could%20not%20be%20translated.%20Eithe&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-0-120162877.142^v56^control_1,201^v3^add_ask&spm=1018.2226.3001.4187

Unable to track an instance of type 'XXX實體' because it does not have a primary key. Only entity types with primary keys may be tracked.

圖片
  某張table若在透過EF ORM轉化完 一定要設置PK 否則變更追蹤機制是會失效的

BOM產品結構中低階碼的應用與概念

圖片
  低階碼 時間1.新增BOM後 時間2.BOM變更後 時間3.執行LRP之前 時間4.計算標準成本之前 上述四個時機需要執行「低階碼計算更新作業」(BOMB05) 確保物料接次正確性 如此物料需求計算或標準成本計算時候,才可以 展出正確的物料與成本。 建議執行「低階碼計算更新作業」時【主件品號】欄位維持空白 針對所有BOM計算低階碼 系統會計算每一個物料在所有BOM表當中的最低階次,即「低階碼」。 並將每一物料計算後的結果回寫至「品號基本資料建立作業」中的 【低階碼】 【低階碼】主要應用於 物料規劃與標準成本計算時 系統用來判斷需要展算到哪一個階次的控制指標 低階碼用途分兩種 1.作為物料需求規劃的計算順序 物料/批次需求計畫展算邏輯 可能分為「自製件」、「托外加工件」、「採購件」 由最高階次往下展算,由小至大垂直展開(由最高階次往下展算) 亦即將BOM結構,從成品下展至半成品 再由半成品展至材料的順序 並依照BOM結構用量展算每一需求料件的數量。 故需要先將成品需求量計算出來,才可以往下推算 半成品與材料需求量 2.(物料)標準成本計算邏輯順序 計算時會依各料件【低階碼】由大至小往上推算(由最低階次往上滾算) 於BOM結構中,上階物料是由下階用料組合而成。 因此成本滾算時候,需要先計算下階用料成本,才能得出上階成本。