瀏覽代碼

Univate.2 > Additions to buy Timeshare

master
George Williams 4 年之前
父節點
當前提交
bfea790e5c
共有 2 個文件被更改,包括 18 次插入2 次删除
  1. 17
    1
      UnivateProperties_API/Containers/Timeshare/WeekDto.cs
  2. 1
    1
      UnivateProperties_API/appsettings.json

+ 17
- 1
UnivateProperties_API/Containers/Timeshare/WeekDto.cs 查看文件

74
             Region = new RegionDto() { RegionCode = split[24].Trim() };
74
             Region = new RegionDto() { RegionCode = split[24].Trim() };
75
             IsTender = true;
75
             IsTender = true;
76
             ReferedByAgent = false;
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
         public WeekDto(TimeshareWeek week)
96
         public WeekDto(TimeshareWeek week)

+ 1
- 1
UnivateProperties_API/appsettings.json 查看文件

10
   "AllowedHosts": "*",
10
   "AllowedHosts": "*",
11
   "ConnectionStrings": {
11
   "ConnectionStrings": {
12
     "DefaultConnection": "Data Source=localhost;Initial Catalog=UniVateDemo;Persist Security Info=True;User Id=Provision;Password=What123!;Pooling=false;",
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
 }

Loading…
取消
儲存