All systems / SYS-013

BudgetControl

ระบบควบคุมงบประมาณ

system.yml

157 lines
# Skeleton created by `sysforge import-excel` (SPEC §13) for SYS-013.
# 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-013
  name: BudgetControl
  title: { th: "ระบบควบคุมงบประมาณ", en: "Budget control" }
  description: { th: "ระบบควบคุมงบประมาณ" }
  domain: Enterprise & Business
  package: com.sysforge.budgetcontrol
  version: 1.0.0
  locale: { default: th }
  timezone: Asia/Bangkok

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

theme: {}

roles:
  - code: ADMIN
    title: { th: ผู้ดูแลระบบ, en: Administrator }
    permissions: ["*"]
  - code: STAFF
    title: { th: เจ้าหน้าที่, en: Staff }
    permissions:
      - "Budget:create"
      - "Budget:read"
      - "Budget:update"
      - "Budget:export"
      - "BudgetLine:create"
      - "BudgetLine:read"
      - "BudgetLine:update"
      - "BudgetLine:export"
      - "Transaction:create"
      - "Transaction:read"
      - "Transaction:update"
      - "Transaction:export"
      - "CostCenter:create"
      - "CostCenter:read"
      - "CostCenter:update"
      - "CostCenter: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: BudgetStage
    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: Budget
    title: { th: "Budget", en: "Budget" }
    display: name
    fields:
      - { name: code, type: string, length: 30, required: true, unique: true, searchable: true, label: { th: รหัส, en: Code }, placeholder: { th: "เช่น BU-0001", en: "e.g. BU-0001" } }
      - { name: name, type: string, length: 200, required: true, searchable: true, label: { th: ชื่อ, en: Name }, placeholder: { th: "เช่น Budget", en: "e.g. Budget 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: BudgetStage, required: true, default: NEW, searchable: true, label: { th: ขั้นตอน, en: Stage } }
    # TODO(sysforge): ระบุ field เฉพาะของ Budget
  - name: BudgetLine
    title: { th: "Budget line", en: "Budget line" }
    display: name
    fields:
      - { name: code, type: string, length: 30, required: true, unique: true, searchable: true, label: { th: รหัส, en: Code }, placeholder: { th: "เช่น BL-0001", en: "e.g. BL-0001" } }
      - { name: name, type: string, length: 200, required: true, searchable: true, label: { th: ชื่อ, en: Name }, placeholder: { th: "เช่น BudgetLine", en: "e.g. Budget line 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 เฉพาะของ BudgetLine
  - name: Transaction
    title: { th: "Transaction", en: "Transaction" }
    display: name
    fields:
      - { name: code, type: string, length: 30, required: true, unique: true, searchable: true, label: { th: รหัส, en: Code }, placeholder: { th: "เช่น TR-0001", en: "e.g. TR-0001" } }
      - { name: name, type: string, length: 200, required: true, searchable: true, label: { th: ชื่อ, en: Name }, placeholder: { th: "เช่น Transaction", en: "e.g. Transaction 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 เฉพาะของ Transaction
  - name: CostCenter
    title: { th: "Cost center", en: "Cost center" }
    display: name
    fields:
      - { name: code, type: string, length: 30, required: true, unique: true, searchable: true, label: { th: รหัส, en: Code }, placeholder: { th: "เช่น CC-0001", en: "e.g. CC-0001" } }
      - { name: name, type: string, length: 200, required: true, searchable: true, label: { th: ชื่อ, en: Name }, placeholder: { th: "เช่น CostCenter", en: "e.g. Cost center 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 เฉพาะของ CostCenter
  - 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: budgets, type: crud, entity: Budget, title: { th: "Budget", en: "Budget" }, defaultSort: { field: code, dir: asc } }
  - { id: budget-lines, type: crud, entity: BudgetLine, title: { th: "Budget line", en: "Budget line" }, defaultSort: { field: code, dir: asc } }
  - { id: transactions, type: crud, entity: Transaction, title: { th: "Transaction", en: "Transaction" }, defaultSort: { field: code, dir: asc } }
  - { id: cost-centers, type: crud, entity: CostCenter, title: { th: "Cost center", en: "Cost center" }, 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: budgets-board, type: kanban, entity: Budget, title: { th: "บอร์ดBudget", en: "Budget board" }, options: { statusField: stage, cardTitle: name, cardSubtitle: code, allowDrag: true } }

Details

Code
SYS-013
Domain
Enterprise & Business
Entities
8
Source
Excel import
Status
Has TODO — generates fine, replace the default fields before real use
Description
ระบบควบคุมงบประมาณ

Theme

Calm Blue · Top menu + tabs · Light menu · home page Corporate · Soft corners · Compact

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

Remove