增添優化功能

This commit is contained in:
2026-03-16 00:38:18 +08:00
parent 38039e8dc0
commit 9068d85c92
12 changed files with 223 additions and 144 deletions
+3
View File
@@ -25,6 +25,7 @@ class ExpenseApply {
final int? applyId;
final DateTime applyDate;
final String empNo;
final String? personCName; // new
final String? rowData; // 費用說明
final String? picPath; // 圖片檔名/路徑
final String? expId; // [新增] 類別 ID
@@ -62,6 +63,7 @@ class ExpenseApply {
this.applyId,
required this.applyDate,
required this.empNo,
this.personCName, //關聯擴充欄位
this.rowData,
this.picPath,
this.expId,
@@ -76,6 +78,7 @@ class ExpenseApply {
applyId: int.tryParse(json['ApplyId']?.toString() ?? ''),
applyDate: json['ApplyDate'] != null ? DateTime.parse(json['ApplyDate']) : DateTime.now(),
empNo: json['EmpNo'] as String? ?? '',
personCName: json['personCName'] as String? ?? '', // new
rowData: json['RowData'] as String?,
picPath: json['PicPath'] as String?,
expId: json['ExpId'] as String? ?? '', // [新增]