本人於2016年進入Aras的程式設計行業, 這些日子記錄程式碼的撰寫, 因此做為往後回憶與複習時當參考, 程式碼只公開當參考使用,有鑑於不同情境會有不同邏輯寫法 本人不負責任何被引用後的可執行性, 大部分是以練習API為主的範例。
若有程式上可精進的部分,歡迎建議與討論。 Youtube分享
Itemtype Server Event
1.檢查Part的BOM列表中所有的Part,cn_group_id是否都與第一個Part相同 #relationship #update
2.檢查DCO的變更項目是否重複 #polyitem
3.在onBeforeAdd時,自動插入第幾週期 #weektime
4.在onAfterGet時,改變搜尋結果欄位顏色 #color
Workflow Server Event
1.利用頁籤上的簽審人員名單,自動插入會簽成員 #assignment
2.workflow 零組件,廢止料件state2狀態推播 #relationship
3.利用程式推動工作流程節點 #EvaluateActivity
4.判斷機種內主料及替代料未發行無法推關 #major_rev
Lifecycle Server Event
1.在生命週期的流程上,用程式啟動workflow #instantiateWorkflow
Action
1.取得領號規則,並且依據Itemtype欄位的iq_temprary_preamble值選擇領取P0 or H0之領號規則,並存入表單item_number欄位 #item_number #sequence
Control Event
1.當物件被Click時,取得表單上List物件的值 #List #click
2.在表單上新增按鈕,觸發後新增DCO #click #DCO
3.在表單上新增按鈕,觸發後新增Project #click #project
4.當表單上classificatioin值被改變時,改變List控制項的值 #onchange
Form Event
1.在表單開啟時,確認物件的狀態是否需要將控制項關閉 #disable
2.在表單開啟時,載入包含換行字串的內容 #text
1.Form上的物件詳細資料 #detail
2.還原資料庫後帳號問題 #sql
3.搜尋BOM所有子階 #bom
4.搜尋視窗預設欄位SearchDialog #onSearchDialog