Blame view

App/utils/AppUtils.swift 994 Bytes
1341bf603   Trịnh Văn Quân   version 1.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
  //
  // Created by Philip Tran on 2/26/17.
  //
  
  import Foundation
  
  class AppUtils {
  
      static func getListCtruong() -> [CongTruong] {
          var result = [CongTruong]()
  
          var shootItems = [ShootItem]()
          shootItems.append(ShootItem(id: nil, name: "外観下塗り"))
          shootItems.append(ShootItem(id: nil, name: "仕上げ"))
  
          var ctruong = CongTruong()
          ctruong.tenCtuong = "山田 花子様"
          ctruong.daChup = 1
          ctruong.conLai = 4
          ctruong.shootItems = shootItems
          result.append(ctruong)
  
          ctruong = CongTruong()
          ctruong.tenCtuong = "鈴木 一郎様"
          ctruong.daChup = 12
          ctruong.conLai = 1
          ctruong.shootItems = shootItems
          result.append(ctruong)
  
          ctruong = CongTruong()
          ctruong.tenCtuong = "斎藤 太郎様"
          ctruong.daChup = 0
          ctruong.conLai = 24
          ctruong.shootItems = shootItems
          result.append(ctruong)
  
          return result
      }
  }