Axapta : Intro to MorphX

MorphX เป็น IDE (Integrated Development Environment) ของ Axapta ซึ่งประกอบไปด้วย AOT (Application Object Tree), X++ programming language และเครื่องมืออื่น ๆ สำหรับพัฒนาโปรแกรม

AOT (Application Object Tree) เป็นเมนูสำหรับเข้าถึง Object ต่าง ๆ โดยมีลักษณะเป็น Tree แบ่งตามประเภทของ Object เช่น Table, Form, Report, Class ฯลฯ ทำให้เข้าถึงได้อย่างสะดวกและเป็นหมวดหมู่ และทำงานในลักษณะ Drag and Drop ได้
axapta_aot

ใน AOT จะใช้เทคนิคที่เรียกว่า Layers ในการแบ่งชนชั้นวรรณะของผู้พัฒนา เช่น ของผู้พัฒนาโปรแกรมเอง, sub supliers, Consult, โปรแกรมเมอร์ของแต่ละบริษัท หรือตัวผู้ใช้เอง เพื่อป้องกันปัญหาการแก้ไขจนระบบพัง โดยมี Layers ทั้งหมด 16 ชั้น ดังนี้
1.SYS => This is the lowest layer. Here all objects created by Microsoft are stored.
2.SYP => Patch layer for the SYS layer. Is used for Service Packs.

3.GLS => Solution Providers are using this layer. Used for global certified modulescreated by sub suppliers and licensed by Microsoft, such as the CRM andHRM modules.
4.GLP => Patch layer for the GLS layer. Is used for Service Packs.

5.DIS => The layer is used for country localizations. Several different layers exist as the layer is grouped for countries with similar local demands. If one application is used in countries with different DIS layers, the layers must be manually merged.
6.DIP => The patch layer for DIS. Used for Service Packs.

7.LOS => This layer is used for local solutions. These are modules which are not certified globally as in the GLS layer. For example it is used in Denmark for a Payroll module.
8.LOP => Patch layer for LOS. Used for Service Packs

9.BUS => The lowest layer the partners have access to. Partners can use this layer for their own modules. The layer requires a license code.
10.BUP => atch layer for BUS. Partners can use this layer for updates.

11.VAR => Partners use this layer for their customization which is customer specific. The layer requires a license code.
12.VAP => Patch layer for the VAR layer. Can be used for updates.

13.CUS => This layer is meant to be used by customization made by the customer itself.
14.CUP => Patch layer for CUS. Can be used for updates.

15.USR => This is the highest layer. The layer is used if a user creates their own customizations like creating a report using the report wizard. Often this layer is used for test purposes.
16.USP => Patch layer for the USR layer. Meant for customer’s own updates.

ที่จริงแล้วก็มี 8 ชนชั้น โดยแต่ละชนชั้นมีอีก 1 layer ไว้สำหรับ Patch โดยที่เราจะพูดถึงกันก็คือ CUS กับ USR ที่ชนชั้นลูกค้าอย่างเราจะทำได้

การพัฒนาหรือแก้ไขโปรแกรม ทำได้สองแบบ คือ login เข้า layer นั้นแล้วแก้ไข object จะทำให้ object เดียวกันในชนชั้นที่ต่ำกว่าถูกแก้ไขไปด้วย กับอีกวิธีคือ ใช้วิธี import จะมีผลเฉพาะในชนชั้นนั้น ๆ (อันนี้เดี๋ยวค่อยอธิบายอีกที)

หมายเหตุ : การ login เข้า layer ไหนนั้น กำหนดได้ที่ config

Properties คือคุณสมบัติของ object ต่าง ๆ ที่เราสามารถกำหนดค่าได้ เช่น ขนาดของข้อมูล, ตำแหน่ง, ฟอนต์, สี ฯลฯ ซึ่งเรียกมาดูได้โดย คลิกขวา แล้วเลือก properties โดยมีรายละเอียดในหัวข้อ 12

Comments

Popular posts from this blog

Artillery Hornet + OctoPrint + Klipper

ย้ายบ้าน

ใต้ร่มกาสาวพัตร