Proyectos de Subversion Iphone Microlearning - Nuevo Interface

Rev

Rev 11 | Rev 61 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 17
Línea 9... Línea 9...
9
import SwiftUI
9
import SwiftUI
10
import HTMLEntities
10
import HTMLEntities
Línea 11... Línea 11...
11
 
11
 
12
struct CompanyListItemView: View {
12
struct CompanyListItemView: View {
13
    @EnvironmentObject var appNavigation : AppNavigation
13
    @EnvironmentObject var appNavigation : AppNavigation
14
    
-
 
Línea 15... Línea 14...
15
    private let appDao = AppDao.sharedInstance
14
 
16
    
15
    
-
 
16
    private var companyModel : CompanyModel
Línea 17... Línea 17...
17
    private var companyModel : CompanyModel
17
    private var companyName : String
Línea 18... Línea 18...
18
    private var companyName : String
18
    private var appData = AppData.sharedInstance
19
    
19
    
Línea 77... Línea 77...
77
                            .foregroundColor(Color("color_capsule_list_item_title_foreground"))
77
                            .foregroundColor(Color("color_capsule_list_item_title_foreground"))
Línea 78... Línea 78...
78
                     
78
                     
Línea 79... Línea 79...
79
                        Spacer()
79
                        Spacer()
80
                        
-
 
81
                        Button(action: {
80
                        
82
                            var appData = appDao.selectOne()
-
 
83
                            appData.companyUuidActive = self.companyModel.uuid
81
                        Button(action: {
84
                            
-
 
Línea 85... Línea 82...
85
                            print("update query : 17")
82
                            self.appData.companyUuidActive = self.companyModel.uuid
86
                            appDao.update(model: appData)
83
                            self.appData.save()
87
                            
84