All systems / SYS-044

PromotionEngine

ระบบโปรโมชั่น

system.yml

157 lines
# Skeleton created by `sysforge import-excel` (SPEC §13) for SYS-044.
# Core modules: • โมดูลราคา/โปรโมชัน • โมดูลข้อมูลหลัก (Master Data) • โมดูล Workflow/อนุมัติ
# TODO(sysforge): replace the default fields below with the real fields of each entity.
#                 Every field shown in a form needs a default or a placeholder (R-UI-1). Then run: sysforge validate

system:
  code: SYS-044
  name: PromotionEngine
  title: { th: "ระบบโปรโมชั่น", en: "Promotion engine" }
  description: { th: "ระบบโปรโมชั่น" }
  domain: Enterprise & Business
  package: com.sysforge.promotionengine
  version: 1.0.0
  locale: { default: th }
  timezone: Asia/Bangkok

database:
  targets: [sqlserver, oracle, mysql, postgresql]
  default: postgresql
  tablePrefix: pr_

theme: {}

roles:
  - code: ADMIN
    title: { th: ผู้ดูแลระบบ, en: Administrator }
    permissions: ["*"]
  - code: STAFF
    title: { th: เจ้าหน้าที่, en: Staff }
    permissions:
      - "PriceList:create"
      - "PriceList:read"
      - "PriceList:update"
      - "PriceList:export"
      - "PriceRule:create"
      - "PriceRule:read"
      - "PriceRule:update"
      - "PriceRule:export"
      - "Promotion:create"
      - "Promotion:read"
      - "Promotion:update"
      - "Promotion:export"
      - "PromotionCondition:create"
      - "PromotionCondition:read"
      - "PromotionCondition:update"
      - "PromotionCondition:export"
      - "WorkflowDefinition:create"
      - "WorkflowDefinition:read"
      - "WorkflowDefinition:update"
      - "WorkflowDefinition:export"
      - "WorkflowInstance:create"
      - "WorkflowInstance:read"
      - "WorkflowInstance:update"
      - "WorkflowInstance:export"
      - "ApprovalStep:create"
      - "ApprovalStep:read"
      - "ApprovalStep:update"
      - "ApprovalStep:export"
      - "Delegation:create"
      - "Delegation:read"
      - "Delegation:update"
      - "Delegation:export"

enums:
  - name: PriceListStage
    values:
      - { code: NEW,         th: ใหม่,         en: New,         color: info }
      - { code: IN_PROGRESS, th: กำลังดำเนินการ, en: In progress, color: warning }
      - { code: DONE,        th: เสร็จสิ้น,      en: Done,        color: success }

entities:
  - name: PriceList
    title: { th: "Price list", en: "Price list" }
    display: name
    fields:
      - { name: code, type: string, length: 30, required: true, unique: true, searchable: true, label: { th: รหัส, en: Code }, placeholder: { th: "เช่น PL-0001", en: "e.g. PL-0001" } }
      - { name: name, type: string, length: 200, required: true, searchable: true, label: { th: ชื่อ, en: Name }, placeholder: { th: "เช่น PriceList", en: "e.g. Price list name" } }
      - { name: description, type: text, label: { th: รายละเอียด, en: Description }, placeholder: { th: "รายละเอียดเพิ่มเติม", en: "Additional details" } }
      - { name: active, type: boolean, default: true, searchable: true, label: { th: ใช้งาน, en: Active } }
      - { name: stage, type: enum, enum: PriceListStage, required: true, default: NEW, searchable: true, label: { th: ขั้นตอน, en: Stage } }
    # TODO(sysforge): ระบุ field เฉพาะของ PriceList
  - name: PriceRule
    title: { th: "Price rule", en: "Price rule" }
    display: name
    fields:
      - { name: code, type: string, length: 30, required: true, unique: true, searchable: true, label: { th: รหัส, en: Code }, placeholder: { th: "เช่น PR-0001", en: "e.g. PR-0001" } }
      - { name: name, type: string, length: 200, required: true, searchable: true, label: { th: ชื่อ, en: Name }, placeholder: { th: "เช่น PriceRule", en: "e.g. Price rule name" } }
      - { name: description, type: text, label: { th: รายละเอียด, en: Description }, placeholder: { th: "รายละเอียดเพิ่มเติม", en: "Additional details" } }
      - { name: active, type: boolean, default: true, searchable: true, label: { th: ใช้งาน, en: Active } }
    # TODO(sysforge): ระบุ field เฉพาะของ PriceRule
  - name: Promotion
    title: { th: "Promotion", en: "Promotion" }
    display: name
    fields:
      - { name: code, type: string, length: 30, required: true, unique: true, searchable: true, label: { th: รหัส, en: Code }, placeholder: { th: "เช่น PR-0001", en: "e.g. PR-0001" } }
      - { name: name, type: string, length: 200, required: true, searchable: true, label: { th: ชื่อ, en: Name }, placeholder: { th: "เช่น Promotion", en: "e.g. Promotion name" } }
      - { name: description, type: text, label: { th: รายละเอียด, en: Description }, placeholder: { th: "รายละเอียดเพิ่มเติม", en: "Additional details" } }
      - { name: active, type: boolean, default: true, searchable: true, label: { th: ใช้งาน, en: Active } }
    # TODO(sysforge): ระบุ field เฉพาะของ Promotion
  - name: PromotionCondition
    title: { th: "Promotion condition", en: "Promotion condition" }
    display: name
    fields:
      - { name: code, type: string, length: 30, required: true, unique: true, searchable: true, label: { th: รหัส, en: Code }, placeholder: { th: "เช่น PC-0001", en: "e.g. PC-0001" } }
      - { name: name, type: string, length: 200, required: true, searchable: true, label: { th: ชื่อ, en: Name }, placeholder: { th: "เช่น PromotionCondition", en: "e.g. Promotion condition name" } }
      - { name: description, type: text, label: { th: รายละเอียด, en: Description }, placeholder: { th: "รายละเอียดเพิ่มเติม", en: "Additional details" } }
      - { name: active, type: boolean, default: true, searchable: true, label: { th: ใช้งาน, en: Active } }
    # TODO(sysforge): ระบุ field เฉพาะของ PromotionCondition
  - name: WorkflowDefinition
    title: { th: "Workflow definition", en: "Workflow definition" }
    display: name
    fields:
      - { name: code, type: string, length: 30, required: true, unique: true, searchable: true, label: { th: รหัส, en: Code }, placeholder: { th: "เช่น WD-0001", en: "e.g. WD-0001" } }
      - { name: name, type: string, length: 200, required: true, searchable: true, label: { th: ชื่อ, en: Name }, placeholder: { th: "เช่น WorkflowDefinition", en: "e.g. Workflow definition name" } }
      - { name: description, type: text, label: { th: รายละเอียด, en: Description }, placeholder: { th: "รายละเอียดเพิ่มเติม", en: "Additional details" } }
      - { name: active, type: boolean, default: true, searchable: true, label: { th: ใช้งาน, en: Active } }
    # TODO(sysforge): ระบุ field เฉพาะของ WorkflowDefinition
  - name: WorkflowInstance
    title: { th: "Workflow instance", en: "Workflow instance" }
    display: name
    fields:
      - { name: code, type: string, length: 30, required: true, unique: true, searchable: true, label: { th: รหัส, en: Code }, placeholder: { th: "เช่น WI-0001", en: "e.g. WI-0001" } }
      - { name: name, type: string, length: 200, required: true, searchable: true, label: { th: ชื่อ, en: Name }, placeholder: { th: "เช่น WorkflowInstance", en: "e.g. Workflow instance name" } }
      - { name: description, type: text, label: { th: รายละเอียด, en: Description }, placeholder: { th: "รายละเอียดเพิ่มเติม", en: "Additional details" } }
      - { name: active, type: boolean, default: true, searchable: true, label: { th: ใช้งาน, en: Active } }
    # TODO(sysforge): ระบุ field เฉพาะของ WorkflowInstance
  - name: ApprovalStep
    title: { th: "Approval step", en: "Approval step" }
    display: name
    fields:
      - { name: code, type: string, length: 30, required: true, unique: true, searchable: true, label: { th: รหัส, en: Code }, placeholder: { th: "เช่น AS-0001", en: "e.g. AS-0001" } }
      - { name: name, type: string, length: 200, required: true, searchable: true, label: { th: ชื่อ, en: Name }, placeholder: { th: "เช่น ApprovalStep", en: "e.g. Approval step name" } }
      - { name: description, type: text, label: { th: รายละเอียด, en: Description }, placeholder: { th: "รายละเอียดเพิ่มเติม", en: "Additional details" } }
      - { name: active, type: boolean, default: true, searchable: true, label: { th: ใช้งาน, en: Active } }
    # TODO(sysforge): ระบุ field เฉพาะของ ApprovalStep
  - name: Delegation
    title: { th: "Delegation", en: "Delegation" }
    display: name
    fields:
      - { name: code, type: string, length: 30, required: true, unique: true, searchable: true, label: { th: รหัส, en: Code }, placeholder: { th: "เช่น DE-0001", en: "e.g. DE-0001" } }
      - { name: name, type: string, length: 200, required: true, searchable: true, label: { th: ชื่อ, en: Name }, placeholder: { th: "เช่น Delegation", en: "e.g. Delegation name" } }
      - { name: description, type: text, label: { th: รายละเอียด, en: Description }, placeholder: { th: "รายละเอียดเพิ่มเติม", en: "Additional details" } }
      - { name: active, type: boolean, default: true, searchable: true, label: { th: ใช้งาน, en: Active } }
    # TODO(sysforge): ระบุ field เฉพาะของ Delegation

screens:
  - { id: home, type: kpi-dashboard, title: { th: ภาพรวม, en: Overview } }
  - { id: price-lists, type: crud, entity: PriceList, title: { th: "Price list", en: "Price list" }, defaultSort: { field: code, dir: asc } }
  - { id: price-rules, type: crud, entity: PriceRule, title: { th: "Price rule", en: "Price rule" }, defaultSort: { field: code, dir: asc } }
  - { id: promotions, type: crud, entity: Promotion, title: { th: "Promotion", en: "Promotion" }, defaultSort: { field: code, dir: asc } }
  - { id: promotion-conditions, type: crud, entity: PromotionCondition, title: { th: "Promotion condition", en: "Promotion condition" }, defaultSort: { field: code, dir: asc } }
  - { id: workflow-definitions, type: crud, entity: WorkflowDefinition, title: { th: "Workflow definition", en: "Workflow definition" }, defaultSort: { field: code, dir: asc } }
  - { id: workflow-instances, type: crud, entity: WorkflowInstance, title: { th: "Workflow instance", en: "Workflow instance" }, defaultSort: { field: code, dir: asc } }
  - { id: approval-steps, type: crud, entity: ApprovalStep, title: { th: "Approval step", en: "Approval step" }, defaultSort: { field: code, dir: asc } }
  - { id: delegations, type: crud, entity: Delegation, title: { th: "Delegation", en: "Delegation" }, defaultSort: { field: code, dir: asc } }
  - { id: price-lists-board, type: kanban, entity: PriceList, title: { th: "บอร์ดPrice list", en: "Price list board" }, options: { statusField: stage, cardTitle: name, cardSubtitle: code, allowDrag: true } }

Details

Code
SYS-044
Domain
Enterprise & Business
Entities
8
Source
Excel import
Status
Has TODO — generates fine, replace the default fields before real use
Description
ระบบโปรโมชั่น

Theme

Slate & Gold · Mega menu · Light menu · home page Split screen · Rounded corners · Comfortable

Registered in salt "sysforge-v1": regenerating keeps this look.

Remove