|
@@ -1,6 +1,6 @@
|
|
|
+import 'remedical.m.dart';
|
|
|
import 'aIDiagnosis.m.dart';
|
|
|
import 'connect.m.dart';
|
|
|
-import 'remedical.m.dart';
|
|
|
import 'authentication.m.dart';
|
|
|
|
|
|
enum ReportTemplateStatusTypeEnum {
|
|
@@ -32,6 +32,9 @@ class ReportTemplateDTO {
|
|
|
List<String >? reportTemplateUser;
|
|
|
bool isDefault;
|
|
|
bool isUserDefault;
|
|
|
+ String? reportDatasJson;
|
|
|
+ List<ReportPreviewDTO >? templatePreviewList;
|
|
|
+ List<String >? templatePreviewUrlList;
|
|
|
|
|
|
ReportTemplateDTO({
|
|
|
this.reportTemplateCode,
|
|
@@ -45,6 +48,9 @@ class ReportTemplateDTO {
|
|
|
this.reportTemplateUser,
|
|
|
this.isDefault = false,
|
|
|
this.isUserDefault = false,
|
|
|
+ this.reportDatasJson,
|
|
|
+ this.templatePreviewList,
|
|
|
+ this.templatePreviewUrlList,
|
|
|
});
|
|
|
|
|
|
factory ReportTemplateDTO.fromJson(Map<String, dynamic> map) {
|
|
@@ -60,6 +66,9 @@ class ReportTemplateDTO {
|
|
|
reportTemplateUser: map['ReportTemplateUser'] != null ? map['ReportTemplateUser'].cast<String>().toList() : null,
|
|
|
isDefault: map['IsDefault'],
|
|
|
isUserDefault: map['IsUserDefault'],
|
|
|
+ reportDatasJson: map['ReportDatasJson'],
|
|
|
+ templatePreviewList: map['TemplatePreviewList'] != null ? (map['TemplatePreviewList'] as List).map((e)=>ReportPreviewDTO.fromJson(e as Map<String,dynamic>)).toList() : null,
|
|
|
+ templatePreviewUrlList: map['TemplatePreviewUrlList'] != null ? map['TemplatePreviewUrlList'].cast<String>().toList() : null,
|
|
|
);
|
|
|
}
|
|
|
|
|
@@ -82,6 +91,12 @@ class ReportTemplateDTO {
|
|
|
map['ReportTemplateUser'] = reportTemplateUser;
|
|
|
map['IsDefault'] = isDefault;
|
|
|
map['IsUserDefault'] = isUserDefault;
|
|
|
+ if(reportDatasJson != null)
|
|
|
+ map['ReportDatasJson'] = reportDatasJson;
|
|
|
+ if(templatePreviewList != null)
|
|
|
+ map['TemplatePreviewList'] = templatePreviewList;
|
|
|
+ if(templatePreviewUrlList != null)
|
|
|
+ map['TemplatePreviewUrlList'] = templatePreviewUrlList;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -576,10 +591,12 @@ class CopyOrgReportTemplateRequest extends TokenRequest{
|
|
|
class FindReportTemplatePagesRequest extends PageRequest{
|
|
|
bool? isDefault;
|
|
|
String? reportTemplateName;
|
|
|
+ String? languageCode;
|
|
|
|
|
|
FindReportTemplatePagesRequest({
|
|
|
this.isDefault,
|
|
|
this.reportTemplateName,
|
|
|
+ this.languageCode,
|
|
|
int pageIndex = 0,
|
|
|
int pageSize = 0,
|
|
|
String? token,
|
|
@@ -593,6 +610,7 @@ class FindReportTemplatePagesRequest extends PageRequest{
|
|
|
return FindReportTemplatePagesRequest(
|
|
|
isDefault: map['IsDefault'],
|
|
|
reportTemplateName: map['ReportTemplateName'],
|
|
|
+ languageCode: map['LanguageCode'],
|
|
|
pageIndex: map['PageIndex'],
|
|
|
pageSize: map['PageSize'],
|
|
|
token: map['Token'],
|
|
@@ -605,6 +623,8 @@ class FindReportTemplatePagesRequest extends PageRequest{
|
|
|
map['IsDefault'] = isDefault;
|
|
|
if(reportTemplateName != null)
|
|
|
map['ReportTemplateName'] = reportTemplateName;
|
|
|
+ if(languageCode != null)
|
|
|
+ map['LanguageCode'] = languageCode;
|
|
|
return map;
|
|
|
}
|
|
|
}
|
|
@@ -1597,4 +1617,25 @@ class SetUserDefaultReportTemplateRequest extends TokenRequest{
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+class GetReportTemplateDBRequest {
|
|
|
+ String? reportTemplateCode;
|
|
|
+
|
|
|
+ GetReportTemplateDBRequest({
|
|
|
+ this.reportTemplateCode,
|
|
|
+ });
|
|
|
+
|
|
|
+ factory GetReportTemplateDBRequest.fromJson(Map<String, dynamic> map) {
|
|
|
+ return GetReportTemplateDBRequest(
|
|
|
+ reportTemplateCode: map['ReportTemplateCode'],
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ Map<String, dynamic> toJson() {
|
|
|
+ final map = Map<String, dynamic>();
|
|
|
+ if(reportTemplateCode != null)
|
|
|
+ map['ReportTemplateCode'] = reportTemplateCode;
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
|