|
|
|
@ -576,7 +576,7 @@ class _CreateServiceReportState extends State<CreateServiceReport> with TickerPr
|
|
|
|
ESignature(
|
|
|
|
ESignature(
|
|
|
|
oldSignature: _serviceReport.signatureNurse,
|
|
|
|
oldSignature: _serviceReport.signatureNurse,
|
|
|
|
newSignature: _serviceReport.localNurseSignature,
|
|
|
|
newSignature: _serviceReport.localNurseSignature,
|
|
|
|
onChange: (signature){
|
|
|
|
onSaved: (signature){
|
|
|
|
if(signature == null || signature.isEmpty) {return;}
|
|
|
|
if(signature == null || signature.isEmpty) {return;}
|
|
|
|
_serviceReport.localNurseSignature = signature;
|
|
|
|
_serviceReport.localNurseSignature = signature;
|
|
|
|
_serviceReport.signatureNurse = "${DateTime.now().toIso8601String()}.png|${base64Encode(signature)}";
|
|
|
|
_serviceReport.signatureNurse = "${DateTime.now().toIso8601String()}.png|${base64Encode(signature)}";
|
|
|
|
@ -587,7 +587,7 @@ class _CreateServiceReportState extends State<CreateServiceReport> with TickerPr
|
|
|
|
ESignature(
|
|
|
|
ESignature(
|
|
|
|
oldSignature: _serviceReport.signatureEngineer,
|
|
|
|
oldSignature: _serviceReport.signatureEngineer,
|
|
|
|
newSignature: _serviceReport.localNurseSignature,
|
|
|
|
newSignature: _serviceReport.localNurseSignature,
|
|
|
|
onChange: (signature){
|
|
|
|
onSaved: (signature){
|
|
|
|
if(signature == null || signature.isEmpty) {return;}
|
|
|
|
if(signature == null || signature.isEmpty) {return;}
|
|
|
|
_serviceReport.localNurseSignature = signature;
|
|
|
|
_serviceReport.localNurseSignature = signature;
|
|
|
|
_serviceReport.signatureEngineer = "${DateTime.now().toIso8601String()}.png|${base64Encode(signature)}";
|
|
|
|
_serviceReport.signatureEngineer = "${DateTime.now().toIso8601String()}.png|${base64Encode(signature)}";
|
|
|
|
@ -661,6 +661,8 @@ class _CreateServiceReportState extends State<CreateServiceReport> with TickerPr
|
|
|
|
_isLoading =true;
|
|
|
|
_isLoading =true;
|
|
|
|
setState(() {});
|
|
|
|
setState(() {});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int status = await _serviceRequestsProvider.createServiceReport(
|
|
|
|
int status = await _serviceRequestsProvider.createServiceReport(
|
|
|
|
user: _userProvider.user,
|
|
|
|
user: _userProvider.user,
|
|
|
|
host: _settingProvider.host,
|
|
|
|
host: _settingProvider.host,
|
|
|
|
|