Просмотр исходного кода

Univate.2 > Additions to buy Timeshare

master
George Williams 4 лет назад
Родитель
Сommit
bfea790e5c

+ 17
- 1
UnivateProperties_API/Containers/Timeshare/WeekDto.cs Просмотреть файл

@@ -74,7 +74,23 @@ namespace UnivateProperties_API.Containers.Timeshare
74 74
             Region = new RegionDto() { RegionCode = split[24].Trim() };
75 75
             IsTender = true;
76 76
             ReferedByAgent = false;
77
-            WeekType = ""; //TODO: Need to see how the data will come through from consoft. 
77
+            // F-Fixed T-Timeshare (Fixed Timeshare Week) 
78
+            //PML - Peak / Medium / Low Felxi
79
+            switch (split[25].Trim())
80
+            {
81
+                case "T":
82
+                case "F":
83
+                    WeekType = "Fixed";
84
+                    break;
85
+                case "P":
86
+                case "M":
87
+                case "L":
88
+                    WeekType = "Peak Flexi";
89
+                    break;
90
+                default:
91
+                    WeekType = "";
92
+                    break;
93
+            }
78 94
         }
79 95
 
80 96
         public WeekDto(TimeshareWeek week)

+ 1
- 1
UnivateProperties_API/appsettings.json Просмотреть файл

@@ -10,6 +10,6 @@
10 10
   "AllowedHosts": "*",
11 11
   "ConnectionStrings": {
12 12
     "DefaultConnection": "Data Source=localhost;Initial Catalog=UniVateDemo;Persist Security Info=True;User Id=Provision;Password=What123!;Pooling=false;",
13
-    "TenderConnection": "http://www.unipoint-consoft.co.za/nph-srep.exe?cluvavail_test.sch&CLUB=LPA&RESORT=ALL&SUMMARY=N&HEAD=N"
13
+    "TenderConnection": "http://www.unipoint-consoft.co.za/nph-srep.exe?cluvavail.sch&CLUB=LPA&RESORT=ALL&SUMMARY=N&HEAD=N"
14 14
   }
15 15
 }

Загрузка…
Отмена
Сохранить