增添優化功能
This commit is contained in:
@@ -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? ?? '', // [新增]
|
||||
|
||||
Reference in New Issue
Block a user