Ver código fonte

Fixed DocumentList Issues

Frank van den Bos 1 ano atrás
pai
commit
a99bd9b8fd

+ 1 - 1
prs.mobile.new/PRS.Mobile.Droid/Properties/AndroidManifest.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="742200" android:versionName="7.42.2" package="comal.timesheets.Android">
+<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionCode="743000" android:versionName="7.43.0" package="comal.timesheets.Android">
 	<uses-sdk android:minSdkVersion="28" android:targetSdkVersion="33" />
 	<queries>
 		<intent>

+ 1 - 1
prs.mobile.new/PRS.Mobile.iOS/Info.plist

@@ -27,7 +27,7 @@
 	<key>CFBundleIdentifier</key>
 	<string>com.prsdigital.prssiteapp</string>
 	<key>CFBundleVersion</key>
-	<string>7.42.2</string>
+	<string>7.43.0</string>
 	<key>UILaunchStoryboardName</key>
 	<string>LaunchScreen</string>
 	<key>CFBundleName</key>

+ 1 - 1
prs.mobile.new/PRS.Mobile/Components/DocumentList/DocumentList.xaml.cs

@@ -93,7 +93,7 @@ namespace PRS.Mobile
                 await MaterialDialog.Instance.AlertAsync(e.Message, "ERROR");
             }
             
-            if (file != null)
+            if (file?.Data?.Any() == true)
             {
                 var ext = System.IO.Path.GetExtension(file.FileName);
                 file.FileName = System.IO.Path.ChangeExtension(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"), ext);

+ 0 - 29
prs.mobile.new/PRS.Mobile/Data Models/Lists/DigitalForm/DigitalFormDocumentShell.cs

@@ -1,29 +0,0 @@
-using System;
-using System.IO;
-using System.Linq;
-using InABox.Core;
-using InABox.Mobile;
-using Xamarin.Forms;
-
-namespace PRS.Mobile
-{
-    public class DigitalFormDocumentShell : Shell<DigitalFormModel, DigitalFormDocument>, IDocumentShell
-    {
-        protected override void ConfigureColumns(ShellColumns<DigitalFormModel, DigitalFormDocument> columns)
-        {
-            columns
-                .Map(nameof(EntityID), x => x.EntityLink.ID)
-                .Map(nameof(FileName), x => x.DocumentLink.FileName)
-                .Map(nameof(_thumbnail), x => x.Thumbnail);
-        }
-
-        public Guid EntityID => Get<Guid>();
-        
-        public String FileName => Get<String>();
-        
-        private byte[] _thumbnail => Get<byte[]>();
-        public ImageSource Thumbnail => ImageSource.FromStream(() => new MemoryStream(_thumbnail));
-        
-        public DigitalFormShell Form => Parent.Items.FirstOrDefault(x => Guid.Equals(x.ID, ID));
-    }
-}