Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
Fengshui-Seller-iOS
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Monika Agarwal
Fengshui-Seller-iOS
Commits
701c438c
Commit
701c438c
authored
Aug 27, 2018
by
Anand.suthar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve issues
parent
aac95166
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
50 changed files
with
594 additions
and
275 deletions
+594
-275
Bhagyashree.xcodeproj/project.pbxproj
+31
-11
Bhagyashree.xcworkspace/xcuserdata/sunarcmac.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
Bhagyashree.xcworkspace/xcuserdata/sunarcmac.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
+25
-41
Bhagyashree/Info.plist
+1
-1
Bhagyashree/Sunarc/Controller/Appointment/CompletedServicesViewController.swift
+4
-4
Bhagyashree/Sunarc/Controller/Appointment/MoreServicesViewController.swift
+10
-4
Bhagyashree/Sunarc/Controller/Appointment/OnGoingServicesViewController.swift
+12
-6
Bhagyashree/Sunarc/Controller/Appointment/ProcessingViewController.swift
+155
-0
Bhagyashree/Sunarc/Controller/Appointment/ServiceDetailViewController.swift
+11
-3
Bhagyashree/Sunarc/Controller/Appointment/ServicesListViewController.swift
+1
-1
Bhagyashree/Sunarc/Controller/Appointment/VideoCallingViewController.swift
+5
-0
Bhagyashree/Sunarc/Controller/Forms/Auspicious Date Selection/AuspiciousDateContainer.swift
+9
-9
Bhagyashree/Sunarc/Controller/Forms/Auspicious Date Selection/BedSettingDateSelectionViewController.swift
+6
-0
Bhagyashree/Sunarc/Controller/Forms/Auspicious Date Selection/BusinessOpeningDateSelectionViewController.swift
+6
-0
Bhagyashree/Sunarc/Controller/Forms/Auspicious Date Selection/CompanyMovingDateSelectionViewController.swift
+6
-1
Bhagyashree/Sunarc/Controller/Forms/Auspicious Date Selection/GodSettingDateSelectionViewController.swift
+6
-1
Bhagyashree/Sunarc/Controller/Forms/Auspicious Date Selection/GroundbreakingDateSelectionViewController.swift
+6
-0
Bhagyashree/Sunarc/Controller/Forms/Auspicious Date Selection/HouseMovingDateSelectionViewController.swift
+23
-135
Bhagyashree/Sunarc/Controller/Forms/Auspicious Date Selection/MarriageDateSelectionViewController.swift
+0
-0
Bhagyashree/Sunarc/Controller/Forms/Auspicious Date Selection/RegsirationDateSelectionViewController.swift
+6
-0
Bhagyashree/Sunarc/Controller/Forms/Fengshui Services/FengshuiServiceContainerViewController.swift
+3
-1
Bhagyashree/Sunarc/Controller/Forms/Fengshui Services/FloorPlanFengshuiViewController.swift
+6
-1
Bhagyashree/Sunarc/Controller/Forms/Fengshui Services/OnsiteFengshuiViewController.swift
+6
-1
Bhagyashree/Sunarc/Controller/Forms/Form.swift
+5
-1
Bhagyashree/Sunarc/Controller/Forms/ScienceOfNaming/CompanyNamingServiceViewController.swift
+6
-1
Bhagyashree/Sunarc/Controller/Forms/ScienceOfNaming/CompanyReNamingServiceViewController.swift
+6
-0
Bhagyashree/Sunarc/Controller/Forms/ScienceOfNaming/IndividualNamingServiceViewController.swift
+6
-0
Bhagyashree/Sunarc/Controller/Forms/ScienceOfNaming/IndividualReNamingServiceViewController.swift
+6
-1
Bhagyashree/Sunarc/Controller/Forms/ScienceOfNaming/ScienceOfNamingContainerViewController.swift
+5
-0
Bhagyashree/Sunarc/Controller/Home/EnquiryDetailsViewController.swift
+2
-0
Bhagyashree/Sunarc/Controller/Home/HomePageViewController.swift
+1
-1
Bhagyashree/Sunarc/Controller/Home/OngoingEnquiryViewController.swift
+2
-0
Bhagyashree/Sunarc/Controller/Home/OnlineEnquiryViewController.swift
+29
-2
Bhagyashree/Sunarc/Controller/Me/MyAllServiceOrderViewController.swift
+2
-1
Bhagyashree/Sunarc/Controller/Me/MyCompletedOrdersViewController.swift
+5
-4
Bhagyashree/Sunarc/Controller/Me/MyOngoingServiceOrderViewController.swift
+14
-6
Bhagyashree/Sunarc/Controller/Me/MyUploadResultViewController.swift
+3
-1
Bhagyashree/Sunarc/Controller/Messages/NotificationsViewController.swift
+26
-22
Bhagyashree/Sunarc/Model/Appointment/EditResult.swift
+4
-0
Bhagyashree/Sunarc/Model/Home/FormDetail.swift
+8
-0
Bhagyashree/Sunarc/Model/Me/ServiceExt.swift
+8
-3
Bhagyashree/Sunarc/Model/Notifications/MyNotification.swift
+50
-0
Bhagyashree/Sunarc/Model/Notifications/MyNotificationExt.swift
+49
-0
Bhagyashree/Sunarc/Model/UpdateOrder.swift
+1
-1
Bhagyashree/Sunarc/Other/HTTP/API.swift
+4
-1
Bhagyashree/Sunarc/View/Appointment.storyboard
+0
-0
Bhagyashree/Sunarc/View/Forms.storyboard
+3
-3
Bhagyashree/Sunarc/View/Home.storyboard
+4
-3
Bhagyashree/Sunarc/View/Me.storyboard
+4
-4
Bhagyashree/Sunarc/View/Messages.storyboard
+3
-0
No files found.
Bhagyashree.xcodeproj/project.pbxproj
View file @
701c438c
...
...
@@ -106,6 +106,9 @@
B0B9026920B6C9D600AE834E
/* WithdrawHistoryViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
B0B9026820B6C9D600AE834E
/* WithdrawHistoryViewController.swift */
;
};
B0BC1BEA20F0E56200944FD3
/* Enquiry.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
B0BC1BE920F0E56200944FD3
/* Enquiry.swift */
;
};
B0BC1BEC20F0E5D700944FD3
/* EnquiryExt.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
B0BC1BEB20F0E5D700944FD3
/* EnquiryExt.swift */
;
};
B0BD88D6212EE7C700188279
/* MyNotification.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
B0BD88D5212EE7C700188279
/* MyNotification.swift */
;
};
B0BD88D8212EE7D800188279
/* MyNotificationExt.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
B0BD88D7212EE7D800188279
/* MyNotificationExt.swift */
;
};
B0BD88DA212EF96900188279
/* ProcessingViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
B0BD88D9212EF96900188279
/* ProcessingViewController.swift */
;
};
B0C8AFEC20F20F36006D7775
/* MeViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
B0C8AFEB20F20F35006D7775
/* MeViewController.swift */
;
};
B0DB804020B687B8003F3D24
/* SellerProfileViewController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
B0DB803F20B687B8003F3D24
/* SellerProfileViewController.swift */
;
};
B0DB804220B687D4003F3D24
/* ChangePasswordViewPagerController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
B0DB804120B687D4003F3D24
/* ChangePasswordViewPagerController.swift */
;
};
...
...
@@ -634,6 +637,9 @@
B0B9026820B6C9D600AE834E
/* WithdrawHistoryViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
WithdrawHistoryViewController.swift
;
sourceTree
=
"<group>"
;
};
B0BC1BE920F0E56200944FD3
/* Enquiry.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
Enquiry.swift
;
sourceTree
=
"<group>"
;
};
B0BC1BEB20F0E5D700944FD3
/* EnquiryExt.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
EnquiryExt.swift
;
sourceTree
=
"<group>"
;
};
B0BD88D5212EE7C700188279
/* MyNotification.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
MyNotification.swift
;
sourceTree
=
"<group>"
;
};
B0BD88D7212EE7D800188279
/* MyNotificationExt.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
MyNotificationExt.swift
;
sourceTree
=
"<group>"
;
};
B0BD88D9212EF96900188279
/* ProcessingViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ProcessingViewController.swift
;
sourceTree
=
"<group>"
;
};
B0C8AFEB20F20F35006D7775
/* MeViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
MeViewController.swift
;
sourceTree
=
"<group>"
;
};
B0DB803F20B687B8003F3D24
/* SellerProfileViewController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
SellerProfileViewController.swift
;
sourceTree
=
"<group>"
;
};
B0DB804120B687D4003F3D24
/* ChangePasswordViewPagerController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
ChangePasswordViewPagerController.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -996,6 +1002,7 @@
B01B216D20EF877A002AC8D5
/* Model */
=
{
isa
=
PBXGroup
;
children
=
(
B0BD88CC212EE7AC00188279
/* Notifications */
,
B04824602128342100B088C0
/* UpdateOrder.swift */
,
B091CD672119A43F00E270BF
/* FireBaseChat */
,
B038371420F37F2F00B68870
/* Appointment */
,
...
...
@@ -1072,6 +1079,7 @@
B024387120B53CA6007D12AE
/* ServiceDetailViewController.swift */
,
B024386D20B53CA4007D12AE
/* ServicesListViewController.swift */
,
B024386A20B53CA2007D12AE
/* VideoCallingViewController.swift */
,
B0BD88D9212EF96900188279
/* ProcessingViewController.swift */
,
);
path
=
Appointment
;
sourceTree
=
"<group>"
;
...
...
@@ -1327,6 +1335,15 @@
path
=
Enquiry
;
sourceTree
=
"<group>"
;
};
B0BD88CC212EE7AC00188279
/* Notifications */
=
{
isa
=
PBXGroup
;
children
=
(
B0BD88D5212EE7C700188279
/* MyNotification.swift */
,
B0BD88D7212EE7D800188279
/* MyNotificationExt.swift */
,
);
path
=
Notifications
;
sourceTree
=
"<group>"
;
};
B0F371E320EFB08D000F92D2
/* Home */
=
{
isa
=
PBXGroup
;
children
=
(
...
...
@@ -2041,7 +2058,7 @@
EC04CD312052CC0100B425BB
=
{
CreatedOnToolsVersion
=
9.2
;
LastSwiftMigration
=
0920
;
ProvisioningStyle
=
Automatic
;
ProvisioningStyle
=
Manual
;
SystemCapabilities
=
{
com.apple.Push
=
{
enabled
=
1
;
...
...
@@ -2337,6 +2354,7 @@
EC04D03B2052D2F500B425BB
/* OrderReviewProductCell.swift in Sources */
,
EC04CE772052CDE700B425BB
/* CompareListTableViewCell.swift in Sources */
,
EC04CFD72052CF2A00B425BB
/* IQKeyboardReturnKeyHandler.swift in Sources */
,
B0BD88D8212EE7D800188279
/* MyNotificationExt.swift in Sources */
,
EC04CDE02052CD5500B425BB
/* TransactionDetailsTopCell.swift in Sources */
,
B098116C212C524900BD7407
/* DrawTextField.swift in Sources */
,
EC04CDCC2052CD4500B425BB
/* SellerProductTableViewCell.swift in Sources */
,
...
...
@@ -2450,6 +2468,7 @@
EC04CFB62052CF2A00B425BB
/* BlueIndicatorStyle.swift in Sources */
,
EC04CDAA2052CD3500B425BB
/* SellerListController.swift in Sources */
,
B01B217C20EF87E9002AC8D5
/* User.swift in Sources */
,
B0BD88DA212EF96900188279
/* ProcessingViewController.swift in Sources */
,
EC04CFBF2052CF2A00B425BB
/* UIFloatLabelTextField.m in Sources */
,
EC04CE802052CDF400B425BB
/* SearchTermsModel.swift in Sources */
,
EC04CD9A2052CD2100B425BB
/* SellerOrderDetailsController.swift in Sources */
,
...
...
@@ -2465,6 +2484,7 @@
EC04CDEE2052CD6E00B425BB
/* SellerOrderViewController.swift in Sources */
,
B024386920B53C58007D12AE
/* SplashViewController.swift in Sources */
,
EC04CD592052CC6000B425BB
/* CreateCreditMemoModel.swift in Sources */
,
B0BD88D6212EE7C700188279
/* MyNotification.swift in Sources */
,
B09212A620B8052400798423
/* DateExt.swift in Sources */
,
B038371E20F37F5200B68870
/* Appointment.swift in Sources */
,
B0B9025320B6B36100AE834E
/* MyIncomeViewController.swift in Sources */
,
...
...
@@ -2809,15 +2829,15 @@
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CLANG_ENABLE_MODULES
=
YES
;
CODE_SIGN_ENTITLEMENTS
=
Bhagyashree/Bhagyashree.entitlements
;
CODE_SIGN_IDENTITY
=
"iPhone D
eveloper
"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_IDENTITY
=
"iPhone D
istribution
"
;
CODE_SIGN_STYLE
=
Manual
;
DEVELOPMENT_TEAM
=
S5AR757G56
;
INFOPLIST_FILE
=
Bhagyashree/Info.plist
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
PRODUCT_BUNDLE_IDENTIFIER
=
"com.gdi.yuanzhongsiu-seller
-dev
"
;
PRODUCT_BUNDLE_IDENTIFIER
=
"com.gdi.yuanzhongsiu-seller"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
PROVISIONING_PROFILE
=
"
a5e812ba-74cb-472e-adf1-da31e8ca0c05
"
;
PROVISIONING_PROFILE_SPECIFIER
=
FengShui_Seller_AdHok
;
SWIFT_OBJC_BRIDGING_HEADER
=
"Bhagyashree/MARKET PLACE/Seller Create Credit Memo/Bhagyashree-Bridging-Header.h"
;
SWIFT_OPTIMIZATION_LEVEL
=
"-Onone"
;
SWIFT_VERSION
=
4.0
;
...
...
@@ -2833,15 +2853,15 @@
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CLANG_ENABLE_MODULES
=
YES
;
CODE_SIGN_ENTITLEMENTS
=
Bhagyashree/Bhagyashree.entitlements
;
CODE_SIGN_IDENTITY
=
"iPhone D
eveloper
"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_IDENTITY
=
"iPhone D
istribution
"
;
CODE_SIGN_STYLE
=
Manual
;
DEVELOPMENT_TEAM
=
S5AR757G56
;
INFOPLIST_FILE
=
Bhagyashree/Info.plist
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
PRODUCT_BUNDLE_IDENTIFIER
=
"com.gdi.yuanzhongsiu-seller
-dev
"
;
PRODUCT_BUNDLE_IDENTIFIER
=
"com.gdi.yuanzhongsiu-seller"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
PROVISIONING_PROFILE
=
"
a5e812ba-74cb-472e-adf1-da31e8ca0c05
"
;
PROVISIONING_PROFILE_SPECIFIER
=
FengShui_Seller_AdHok
;
SWIFT_OBJC_BRIDGING_HEADER
=
"Bhagyashree/MARKET PLACE/Seller Create Credit Memo/Bhagyashree-Bridging-Header.h"
;
SWIFT_VERSION
=
4.0
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
...
...
Bhagyashree.xcworkspace/xcuserdata/sunarcmac.xcuserdatad/UserInterfaceState.xcuserstate
View file @
701c438c
No preview for this file type
Bhagyashree.xcworkspace/xcuserdata/sunarcmac.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
View file @
701c438c
...
...
@@ -6,22 +6,6 @@
<BreakpointProxy
BreakpointExtensionID =
"Xcode.Breakpoint.FileBreakpoint"
>
<BreakpointContent
shouldBeEnabled =
"Yes"
ignoreCount =
"0"
continueAfterRunningActions =
"No"
filePath =
"Bhagyashree/Sunarc/Model/UpdateOrder.swift"
timestampString =
"556626783.326553"
startingColumnNumber =
"9223372036854775807"
endingColumnNumber =
"9223372036854775807"
startingLineNumber =
"54"
endingLineNumber =
"54"
landmarkName =
"updateOrder(to:orderId:success:failuer:)"
landmarkType =
"7"
>
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID =
"Xcode.Breakpoint.FileBreakpoint"
>
<BreakpointContent
shouldBeEnabled =
"No"
ignoreCount =
"0"
continueAfterRunningActions =
"No"
...
...
@@ -41,13 +25,13 @@
shouldBeEnabled =
"Yes"
ignoreCount =
"0"
continueAfterRunningActions =
"No"
filePath =
"Bhagyashree/Sunarc/
Controller/Appointment/ServiceDetailViewController
.swift"
timestampString =
"5566
29972.389267
"
filePath =
"Bhagyashree/Sunarc/
Model/Appointment/EditResult
.swift"
timestampString =
"5566
99185.727886
"
startingColumnNumber =
"9223372036854775807"
endingColumnNumber =
"9223372036854775807"
startingLineNumber =
"
45
"
endingLineNumber =
"
45
"
landmarkName =
"
viewWillAppear(_
:)"
startingLineNumber =
"
74
"
endingLineNumber =
"
74
"
landmarkName =
"
updateResult(for:success:failure
:)"
landmarkType =
"7"
>
</BreakpointContent>
</BreakpointProxy>
...
...
@@ -57,13 +41,13 @@
shouldBeEnabled =
"Yes"
ignoreCount =
"0"
continueAfterRunningActions =
"No"
filePath =
"Bhagyashree/Sunarc/
Controller/Appointment/ServiceDetailViewController
.swift"
timestampString =
"5566
29972.390362
"
filePath =
"Bhagyashree/Sunarc/
Model/Appointment/EditResult
.swift"
timestampString =
"5566
99185.7279789
"
startingColumnNumber =
"9223372036854775807"
endingColumnNumber =
"9223372036854775807"
startingLineNumber =
"
42
"
endingLineNumber =
"
42
"
landmarkName =
"
viewWillAppear(_
:)"
startingLineNumber =
"
51
"
endingLineNumber =
"
51
"
landmarkName =
"
updateResult(for:success:failure
:)"
landmarkType =
"7"
>
</BreakpointContent>
</BreakpointProxy>
...
...
@@ -73,13 +57,13 @@
shouldBeEnabled =
"Yes"
ignoreCount =
"0"
continueAfterRunningActions =
"No"
filePath =
"Bhagyashree/Sunarc/Model/
UpdateOrder
.swift"
timestampString =
"556
626783.326924
"
filePath =
"Bhagyashree/Sunarc/Model/
Notifications/NotificationExt
.swift"
timestampString =
"556
722450.552536
"
startingColumnNumber =
"9223372036854775807"
endingColumnNumber =
"9223372036854775807"
startingLineNumber =
"
47
"
endingLineNumber =
"
47
"
landmarkName =
"
updateOrder(to:orderId:success:failue
r:)"
startingLineNumber =
"
21
"
endingLineNumber =
"
21
"
landmarkName =
"
getNotifications(_:failu
r:)"
landmarkType =
"7"
>
</BreakpointContent>
</BreakpointProxy>
...
...
@@ -89,13 +73,13 @@
shouldBeEnabled =
"Yes"
ignoreCount =
"0"
continueAfterRunningActions =
"No"
filePath =
"Bhagyashree/Sunarc/
Model/UpdateOrd
er.swift"
timestampString =
"556
626783.326986
"
filePath =
"Bhagyashree/Sunarc/
Controller/Appointment/ServiceDetailViewControll
er.swift"
timestampString =
"556
895749.937322
"
startingColumnNumber =
"9223372036854775807"
endingColumnNumber =
"9223372036854775807"
startingLineNumber =
"
31
"
endingLineNumber =
"
31
"
landmarkName =
"
updateOrder(to:orderId:success:failuer
:)"
startingLineNumber =
"
43
"
endingLineNumber =
"
43
"
landmarkName =
"
viewWillAppear(_
:)"
landmarkType =
"7"
>
</BreakpointContent>
</BreakpointProxy>
...
...
@@ -105,13 +89,13 @@
shouldBeEnabled =
"Yes"
ignoreCount =
"0"
continueAfterRunningActions =
"No"
filePath =
"Bhagyashree/Sunarc/
Model/Appointment/AppointmentExt
.swift"
timestampString =
"556
629862.15785
"
filePath =
"Bhagyashree/Sunarc/
Controller/Appointment/ServiceDetailViewController
.swift"
timestampString =
"556
895749.937796
"
startingColumnNumber =
"9223372036854775807"
endingColumnNumber =
"9223372036854775807"
startingLineNumber =
"
49
"
endingLineNumber =
"
49
"
landmarkName =
"
detailOfComlpeted(orderId:success:failure
:)"
startingLineNumber =
"
56
"
endingLineNumber =
"
56
"
landmarkName =
"
viewWillAppear(_
:)"
landmarkType =
"7"
>
</BreakpointContent>
</BreakpointProxy>
...
...
Bhagyashree/Info.plist
View file @
701c438c
...
...
@@ -17,7 +17,7 @@
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.0
<
/string
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
4
<
/string
>
<
string
>
8
<
/string
>
<
k
e
y
>
Fabric
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
APIKey
<
/k
e
y
>
...
...
Bhagyashree/Sunarc/Controller/Appointment/CompletedServicesViewController.swift
View file @
701c438c
...
...
@@ -53,7 +53,7 @@ class CompletedServicesViewController: BaseViewController {
if
nextPage
==
true
{
service
.
nextPage
(
serviceStatus
:
.
SERVICE_
COMPLETE
,
success
:
{
service
.
nextPage
(
serviceStatus
:
.
COMPLETE
,
success
:
{
self
.
tblCompletedServices
.
reloadData
()
self
.
tblCompletedServices
.
mj_footer
.
endRefreshing
()
})
{
(
error
)
in
...
...
@@ -61,7 +61,7 @@ class CompletedServicesViewController: BaseViewController {
self
.
view
.
showToast
(
error
,
position
:
.
bottom
,
popTime
:
2.0
,
dismissOnTap
:
false
)
}
}
else
{
service
.
getServices
(
serviceStatus
:
.
SERVICE_
COMPLETE
,
success
:
{
service
.
getServices
(
serviceStatus
:
.
COMPLETE
,
success
:
{
self
.
tblCompletedServices
.
reloadData
()
self
.
tblCompletedServices
.
mj_header
.
endRefreshing
()
})
{
(
errorMessage
)
in
...
...
@@ -105,7 +105,7 @@ extension CompletedServicesViewController: UITableViewDelegate, UITableViewDataS
if
selectedService
.
serviceType
==
.
BOOKING
{
let
appointmentdetails
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
ServiceDetailViewController
.
self
)
appointmentdetails
.
serviceStatus
=
.
tbc
appointmentdetails
.
serviceStatus
=
.
completed
appointmentdetails
.
incrementId
=
selectedService
.
incrementId
appointmentdetails
.
orderId
=
selectedService
.
orderId
self
.
navigationController
?
.
pushViewController
(
appointmentdetails
,
animated
:
true
)
...
...
@@ -125,7 +125,7 @@ extension CompletedServicesViewController: UITableViewDelegate, UITableViewDataS
}
}
else
if
selectedService
.
serviceType
==
.
FORM
{
if
let
form
=
Form
.
VC
(
with
:
selectedService
.
incrementId
!
,
categoryType
:
selectedService
.
categoryType
){
if
let
form
=
Form
.
VC
(
with
:
selectedService
.
incrementId
!
,
orderId
:
selectedService
.
orderId
!
,
categoryType
:
selectedService
.
categoryType
){
self
.
navigationController
?
.
pushViewController
(
form
,
animated
:
true
)
}
}
else
{
...
...
Bhagyashree/Sunarc/Controller/Appointment/MoreServicesViewController.swift
View file @
701c438c
...
...
@@ -12,6 +12,8 @@ import WMPageController
enum
PMenuEnquiryTitle
:
String
{
case
ongoing
=
"Ongoing"
case
complet
=
"Complete"
case
processing
=
"Processing"
case
invalid
=
"Invalid"
}
class
MoreServicesViewController
:
WMPageController
{
...
...
@@ -24,7 +26,7 @@ class MoreServicesViewController: WMPageController {
// var userProfileHeaderView: UIViewController!
var
panGesture
:
WMPanGestureRecognizer
!
var
lastPoint
=
CGPoint
.
zero
var
vcTitles
=
[
"
Ongoing
"
,
"Complete"
]
var
vcTitles
=
[
"
Processing"
,
"Ongoing"
,
"Invalid
"
,
"Complete"
]
var
viewTop
:
CGFloat
=
5
{
didSet
{
...
...
@@ -146,8 +148,12 @@ class MoreServicesViewController: WMPageController {
switch
index
{
case
0
:
return
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
OnGoingServices
ViewController
.
self
)
return
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
Processing
ViewController
.
self
)
case
1
:
return
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
OnGoingServicesViewController
.
self
)
case
2
:
return
UIViewController
()
case
3
:
return
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
CompletedServicesViewController
.
self
)
default
:
return
UIViewController
()
...
...
@@ -172,9 +178,9 @@ class MoreServicesViewController: WMPageController {
override
func
menuView
(
_
menu
:
WMMenuView
!
,
widthForItemAt
index
:
Int
)
->
CGFloat
{
switch
index
{
case
0
:
return
self
.
view
.
frame
.
size
.
width
/
2
return
self
.
view
.
frame
.
size
.
width
/
4
case
1
:
return
self
.
view
.
frame
.
size
.
width
/
2
-
20
return
self
.
view
.
frame
.
size
.
width
/
4
-
20
default
:
return
150
}
...
...
Bhagyashree/Sunarc/Controller/Appointment/OnGoingServicesViewController.swift
View file @
701c438c
...
...
@@ -104,11 +104,17 @@ extension OnGoingServicesViewController: UITableViewDelegate, UITableViewDataSou
if
selectedService
.
serviceType
==
.
BOOKING
{
let
appointmentdetails
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
ServiceDetailViewController
.
self
)
appointmentdetails
.
serviceStatus
=
.
tbc
appointmentdetails
.
incrementId
=
selectedService
.
incrementId
appointmentdetails
.
orderId
=
selectedService
.
orderId
self
.
navigationController
?
.
pushViewController
(
appointmentdetails
,
animated
:
true
)
if
selectedService
.
status
==
.
SERVICE_ONGOING
{
let
videoCallVC
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
VideoCallingViewController
.
self
)
videoCallVC
.
orderId
=
selectedService
.
orderId
!
self
.
navigationController
?
.
pushViewController
(
videoCallVC
,
animated
:
true
)
}
// let appointmentdetails = Utils.viewController(storyboardName: "Appointment", ofType: ServiceDetailViewController.self)
// appointmentdetails.serviceStatus = .tbc
// appointmentdetails.incrementId = selectedService.incrementId
// appointmentdetails.orderId = selectedService.orderId
// self.navigationController?.pushViewController(appointmentdetails, animated: true)
}
else
if
selectedService
.
serviceType
==
.
FAQ
{
if
selectedService
.
status
==
.
PROCESSING
{
...
...
@@ -126,7 +132,7 @@ extension OnGoingServicesViewController: UITableViewDelegate, UITableViewDataSou
}
else
if
selectedService
.
serviceType
==
.
FORM
{
if
let
form
=
Form
.
VC
(
with
:
selectedService
.
incrementId
!
,
categoryType
:
selectedService
.
categoryType
)
{
if
let
form
=
Form
.
VC
(
with
:
selectedService
.
incrementId
!
,
orderId
:
selectedService
.
orderId
!
,
categoryType
:
selectedService
.
categoryType
)
{
self
.
navigationController
?
.
pushViewController
(
form
,
animated
:
true
)
}
}
else
{
...
...
Bhagyashree/Sunarc/Controller/Appointment/ProcessingViewController.swift
0 → 100644
View file @
701c438c
//
// OnGoingServicesViewController.swift
// FengshuiLayout
//
// Created by SunarcMAC on 18/05/18.
// Copyright © 2018 SunarcMAC. All rights reserved.
//
import
UIKit
import
Kingfisher
import
MJRefresh
class
ProcessingViewController
:
BaseViewController
{
@IBOutlet
var
tblOnGoingNotices
:
UITableView
!
let
service
=
Service
()
var
footerForLoading
:
MJRefreshAutoNormalFooter
!
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
self
.
setupRefreshHeaderFooter
()
}
override
func
viewDidAppear
(
_
animated
:
Bool
)
{
super
.
viewDidAppear
(
animated
)
if
service
.
services
.
count
==
0
{
tblOnGoingNotices
.
mj_header
.
beginRefreshing
()
}
}
func
setupRefreshHeaderFooter
()
{
let
headerForLoading
=
MJRefreshNormalHeader
{
self
.
services
(
nextPage
:
false
)
}
headerForLoading
?
.
activityIndicatorViewStyle
=
.
gray
headerForLoading
?
.
lastUpdatedTimeLabel
.
isHidden
=
true
headerForLoading
?
.
stateLabel
.
isHidden
=
true
tblOnGoingNotices
.
mj_header
=
headerForLoading
footerForLoading
=
MJRefreshAutoNormalFooter
{
self
.
services
(
nextPage
:
true
)
}
footerForLoading
.
isRefreshingTitleHidden
=
true
footerForLoading
.
activityIndicatorViewStyle
=
.
gray
footerForLoading
.
stateLabel
.
isHidden
=
true
tblOnGoingNotices
.
mj_footer
=
footerForLoading
}
func
services
(
nextPage
:
Bool
)
{
if
nextPage
==
true
{
service
.
nextPage
(
serviceStatus
:
.
PROCESSING
,
success
:
{
self
.
tblOnGoingNotices
.
reloadData
()
self
.
tblOnGoingNotices
.
mj_footer
.
endRefreshing
()
})
{
(
error
)
in
self
.
tblOnGoingNotices
.
mj_footer
.
endRefreshing
()
self
.
view
.
showToast
(
error
,
position
:
.
bottom
,
popTime
:
2.0
,
dismissOnTap
:
false
)
}
}
else
{
service
.
getServices
(
serviceStatus
:
.
PROCESSING
,
success
:
{
self
.
tblOnGoingNotices
.
reloadData
()
self
.
tblOnGoingNotices
.
mj_header
.
endRefreshing
()
})
{
(
errorMessage
)
in
self
.
tblOnGoingNotices
.
mj_header
.
endRefreshing
()
self
.
view
.
showToast
(
errorMessage
,
position
:
.
bottom
,
popTime
:
2.0
,
dismissOnTap
:
false
)
}
}
}
}
extension
ProcessingViewController
:
UITableViewDelegate
,
UITableViewDataSource
{
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
service
.
services
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
service_
=
service
.
services
[
indexPath
.
row
]
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"ongoingServiceCell"
,
for
:
indexPath
)
as!
ProcessingServiceCell
cell
.
lblCustomerName
.
text
=
service_
.
customerName
cell
.
lblService
.
text
=
service_
.
productName
cell
.
lblDate
.
text
=
service_
.
customerDate
if
let
profileImage
=
service_
.
customerProfileImage
{
let
url
=
URL
(
string
:
profileImage
)
cell
.
imgCustomer
.
kf
.
setImage
(
with
:
url
,
placeholder
:
UIImage
(
named
:
"placeholder"
),
options
:
[
.
transition
(
ImageTransition
.
fade
(
1
)),
.
scaleFactor
(
1.0
)],
progressBlock
:
nil
,
completionHandler
:
nil
)
}
return
cell
}
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
tableView
.
deselectRow
(
at
:
indexPath
,
animated
:
true
)
let
selectedService
=
service
.
services
[
indexPath
.
row
]
if
selectedService
.
serviceType
==
.
BOOKING
{
let
appointmentdetails
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
ServiceDetailViewController
.
self
)
appointmentdetails
.
serviceStatus
=
.
tbc
appointmentdetails
.
incrementId
=
selectedService
.
incrementId
appointmentdetails
.
orderId
=
selectedService
.
orderId
self
.
navigationController
?
.
pushViewController
(
appointmentdetails
,
animated
:
true
)
}
else
if
selectedService
.
serviceType
==
.
FAQ
{
if
selectedService
.
status
==
.
PROCESSING
{
let
chatViewController
=
Utils
.
viewController
(
storyboardName
:
"Home"
,
ofType
:
OnlineEnquiryViewController
.
self
)
if
let
orderId
=
selectedService
.
orderId
{
chatViewController
.
orderId
=
orderId
self
.
navigationController
?
.
pushViewController
(
chatViewController
,
animated
:
true
)
}
}
else
{
let
enquiryDetailsViewController
=
Utils
.
viewController
(
storyboardName
:
"Home"
,
ofType
:
EnquiryDetailsViewController
.
self
)
enquiryDetailsViewController
.
incrementId
=
selectedService
.
incrementId
!
enquiryDetailsViewController
.
orderId
=
selectedService
.
orderId
!
self
.
navigationController
?
.
pushViewController
(
enquiryDetailsViewController
,
animated
:
true
)
}
}
else
if
selectedService
.
serviceType
==
.
FORM
{
if
let
form
=
Form
.
VC
(
with
:
selectedService
.
incrementId
!
,
orderId
:
selectedService
.
orderId
!
,
categoryType
:
selectedService
.
categoryType
)
{
self
.
navigationController
?
.
pushViewController
(
form
,
animated
:
true
)
}
}
else
{
self
.
view
.
showToast
(
"Unknown service"
,
position
:
.
bottom
,
popTime
:
2.0
,
dismissOnTap
:
false
)
}
// let serviceDetail = Utils.viewController(storyboardName: "Appointment", ofType: ServiceDetailViewController.self)
// serviceDetail.serviceStatus = .ongoing
// serviceDetail.incrementId = service.services[indexPath.row].incrementId
// serviceDetail.orderId = service.services[indexPath.row].orderId
// self.navigationController?.pushViewController(serviceDetail, animated: true)
}
}
class
ProcessingServiceCell
:
UITableViewCell
{
@IBOutlet
var
imgCustomer
:
UIImageView
!
@IBOutlet
var
lblCustomerName
:
UILabel
!
@IBOutlet
var
lblService
:
UILabel
!
@IBOutlet
var
lblDate
:
UILabel
!
}
Bhagyashree/Sunarc/Controller/Appointment/ServiceDetailViewController.swift
View file @
701c438c
...
...
@@ -14,6 +14,7 @@ enum ServiceStatus: Int {
case
ongoing
case
completed
case
uploadResult
case
processing
}
class
ServiceDetailViewController
:
UIViewController
{
...
...
@@ -39,10 +40,13 @@ class ServiceDetailViewController: UIViewController {
appointment
.
getAppointmentDetails
(
incrementId
:
incrementId
,
success
:
{
print
(
self
.
appointment
.
orderStatus
)
if
self
.
appointment
.
orderStatus
==
"Service Upload Result"
{
self
.
serviceStatus
=
.
uploadResult
}
else
if
self
.
appointment
.
orderStatus
==
"Processing"
{
self
.
serviceStatus
=
.
processing
}
else
if
self
.
appointment
.
orderStatus
==
"Service Ongoing"
{
self
.
serviceStatus
=
.
ongoing
}
self
.
tblServiceDetail
.
reloadData
()
...
...
@@ -64,11 +68,15 @@ class ServiceDetailViewController: UIViewController {
case
.
ongoing
:
self
.
btnStartMeeting
.
isHidden
=
true
self
.
btnEditResult
.
isHidden
=
false
case
.
completed
:
break
// do nothing
case
.
completed
:
self
.
btnStartMeeting
.
isHidden
=
true
self
.
btnEditResult
.
isHidden
=
true
case
.
uploadResult
:
self
.
btnStartMeeting
.
isHidden
=
true
self
.
btnEditResult
.
isHidden
=
false
case
.
processing
:
self
.
btnStartMeeting
.
isHidden
=
true
self
.
btnEditResult
.
isHidden
=
true
}
...
...
Bhagyashree/Sunarc/Controller/Appointment/ServicesListViewController.swift
View file @
701c438c
...
...
@@ -131,7 +131,7 @@ extension ServicesListViewController: UITableViewDelegate, UITableViewDataSource
}
}
else
if
selectedService
.
serviceType
==
.
FORM
{
if
let
form
=
Form
.
VC
(
with
:
selectedService
.
incrementId
!
,
categoryType
:
selectedService
.
categoryType
){
if
let
form
=
Form
.
VC
(
with
:
selectedService
.
incrementId
!
,
orderId
:
selectedService
.
orderId
!
,
categoryType
:
selectedService
.
categoryType
){
self
.
navigationController
?
.
pushViewController
(
form
,
animated
:
true
)
}
}
else
{
...
...
Bhagyashree/Sunarc/Controller/Appointment/VideoCallingViewController.swift
View file @
701c438c
...
...
@@ -26,6 +26,8 @@ class VideoCallingViewController: UIViewController {
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
print
(
orderId
)
initializeAgoraEngine
()
setupVideo
()
setupLocalVideo
()
...
...
@@ -100,6 +102,9 @@ extension VideoCallingViewController {
agoraKit
.
setupLocalVideo
(
videoCanvas
)
}
func
joinChannel
()
{
self
.
view
.
showToast
(
orderId
,
position
:
.
bottom
,
popTime
:
2.0
,
dismissOnTap
:
false
)
agoraKit
.
joinChannel
(
byToken
:
nil
,
channelId
:
orderId
,
info
:
nil
,
uid
:
0
)
{[
weak
self
]
(
sid
,
uid
,
elapsed
)
->
Void
in
// Join channel "demoChannel1"
if
let
weakSelf
=
self
{
...
...
Bhagyashree/Sunarc/Controller/Forms/Auspicious Date Selection/AuspiciousDateContainer.swift
View file @
701c438c
...
...
@@ -23,7 +23,7 @@ class AuspiciousDateContainer: BaseViewController {
var
service
:
String
?
var
categoryType
:
CategoryType
=
.
Groundbreaking
var
incrementId
:
String
=
""
var
orderId
:
String
=
"0"
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
}
...
...
@@ -40,49 +40,49 @@ class AuspiciousDateContainer: BaseViewController {
groundbreakingDateSelection
.
isHidden
=
false
if
segue
.
identifier
==
"GroundbreakingDateSelectionViewController"
{
(
segue
.
destination
as!
GroundbreakingDateSelectionViewController
)
.
incrementId
=
incrementId
// (segue.destination as! GroundbreakingDateSelectionViewController).service = service
(
segue
.
destination
as!
GroundbreakingDateSelectionViewController
)
.
orderId
=
orderId
}
case
.
MovingCompany
:
companyMovingDateSelection
.
isHidden
=
false
if
segue
.
identifier
==
"CompanyMovingDateSelectionViewController"
{
(
segue
.
destination
as!
CompanyMovingDateSelectionViewController
)
.
incrementId
=
incrementId
// (segue.destination as! CompanyMovingDateSelectionViewController).service = service
(
segue
.
destination
as!
CompanyMovingDateSelectionViewController
)
.
orderId
=
orderId
}
case
.
Marriage
:
marriageDateSelection
.
isHidden
=
false
if
segue
.
identifier
==
"MarriageDateSelectionViewController"
{
(
segue
.
destination
as!
MarriageDateSelectionViewController
)
.
incrementId
=
incrementId
// (segue.destination as! MarriageDateSelectionViewController).service = service
(
segue
.
destination
as!
MarriageDateSelectionViewController
)
.
orderId
=
orderId
}
case
.
Registration
:
registrationDateSelection
.
isHidden
=
false
if
segue
.
identifier
==
"RegsirationDateSelectionViewController"
{
(
segue
.
destination
as!
RegsirationDateSelectionViewController
)
.
incrementId
=
incrementId
// (segue.destination as! RegsirationDateSelectionViewController).service = service
(
segue
.
destination
as!
RegsirationDateSelectionViewController
)
.
orderId
=
orderId
}
case
.
StartOpeningBusiness
:
businessOpeningDateSelection
.
isHidden
=
false
if
segue
.
identifier
==
"BusinessOpeningDateSelectionViewController"
{
(
segue
.
destination
as!
BusinessOpeningDateSelectionViewController
)
.
incrementId
=
incrementId
// (segue.destination as! BusinessOpeningDateSelectionViewController).service = service
(
segue
.
destination
as!
BusinessOpeningDateSelectionViewController
)
.
orderId
=
orderId
}
case
.
BedSetting
:
bedSettingDateSelection
.
isHidden
=
false
if
segue
.
identifier
==
"BedSettingDateSelectionViewController"
{
(
segue
.
destination
as!
BedSettingDateSelectionViewController
)
.
incrementId
=
incrementId
// (segue.destination as! BedSettingDateSelectionViewController).service = service
(
segue
.
destination
as!
BedSettingDateSelectionViewController
)
.
orderId
=
orderId
}
case
.
MovingHouse
:
houseMovingDateSelection
.
isHidden
=
false
if
segue
.
identifier
==
"HouseMovingDateSelectionViewController"
{
(
segue
.
destination
as!
HouseMovingDateSelectionViewController
)
.
incrementId
=
incrementId
// (segue.destination as! HouseMovingDateSelectionViewController).service = service
(
segue
.
destination
as!
HouseMovingDateSelectionViewController
)
.
orderId
=
orderId
}
case
.
GODSetting
:
godSettingDateSelection
.
isHidden
=
false
if
segue
.
identifier
==
"GodSettingDateSelectionViewController"
{
(
segue
.
destination
as!
GodSettingDateSelectionViewController
)
.
incrementId
=
incrementId
// (segue.destination as! GodSettingDateSelectionViewController).service = service
(
segue
.
destination
as!
GodSettingDateSelectionViewController
)
.
orderId
=
orderId
}
default
:
print
(
"Form not found"
)
...
...
Bhagyashree/Sunarc/Controller/Forms/Auspicious Date Selection/BedSettingDateSelectionViewController.swift
View file @
701c438c
...
...
@@ -23,6 +23,7 @@ class BedSettingDateSelectionViewController: BaseViewController {
// var customOption = ServiceCustomOption()
var
isWeekDay
=
false
var
incrementId
:
String
?
var
orderId
:
String
?
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
...
...
@@ -61,6 +62,11 @@ class BedSettingDateSelectionViewController: BaseViewController {
}
@IBAction
func
submit
()
{
let
editResult
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
EditResultViewController
.
self
)
if
let
orderId
=
orderId
{
editResult
.
orderId
=
orderId
}
self
.
navigationController
?
.
pushViewController
(
editResult
,
animated
:
true
)
}
...
...
Bhagyashree/Sunarc/Controller/Forms/Auspicious Date Selection/BusinessOpeningDateSelectionViewController.swift
View file @
701c438c
...
...
@@ -27,6 +27,7 @@ class BusinessOpeningDateSelectionViewController: BaseViewController {
var
service
:
String
?
var
incrementId
:
String
?
var
orderId
:
String
?
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
...
...
@@ -61,6 +62,11 @@ class BusinessOpeningDateSelectionViewController: BaseViewController {
}
@IBAction
func
submit
()
{
let
editResult
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
EditResultViewController
.
self
)
if
let
orderId
=
orderId
{
editResult
.
orderId
=
orderId
}
self
.
navigationController
?
.
pushViewController
(
editResult
,
animated
:
true
)
}
...
...
Bhagyashree/Sunarc/Controller/Forms/Auspicious Date Selection/CompanyMovingDateSelectionViewController.swift
View file @
701c438c
...
...
@@ -21,6 +21,7 @@ class CompanyMovingDateSelectionViewController: BaseViewController {
@IBOutlet
var
txtRemarks
:
UITextView
!
var
incrementId
:
String
?
var
orderId
:
String
?
var
isWeekday
=
false
...
...
@@ -69,7 +70,11 @@ class CompanyMovingDateSelectionViewController: BaseViewController {
@IBAction
func
submit
()
{
let
editResult
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
EditResultViewController
.
self
)
if
let
orderId
=
orderId
{
editResult
.
orderId
=
orderId
}
self
.
navigationController
?
.
pushViewController
(
editResult
,
animated
:
true
)
}
...
...
Bhagyashree/Sunarc/Controller/Forms/Auspicious Date Selection/GodSettingDateSelectionViewController.swift
View file @
701c438c
...
...
@@ -23,6 +23,7 @@ class GodSettingDateSelectionViewController: BaseViewController {
// var customOption = ServiceCustomOption()
var
isWeekday
=
false
var
incrementId
:
String
?
var
orderId
:
String
?
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
...
...
@@ -63,7 +64,11 @@ class GodSettingDateSelectionViewController: BaseViewController {
@IBAction
func
submit
()
{
let
editResult
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
EditResultViewController
.
self
)
if
let
orderId
=
orderId
{
editResult
.
orderId
=
orderId
}
self
.
navigationController
?
.
pushViewController
(
editResult
,
animated
:
true
)
}
}
...
...
Bhagyashree/Sunarc/Controller/Forms/Auspicious Date Selection/GroundbreakingDateSelectionViewController.swift
View file @
701c438c
...
...
@@ -21,6 +21,7 @@ class GroundbreakingDateSelectionViewController: BaseViewController {
@IBOutlet
var
txtRemarks
:
UITextView
!
var
incrementId
:
String
?
var
orderId
:
String
?
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
...
...
@@ -61,6 +62,11 @@ class GroundbreakingDateSelectionViewController: BaseViewController {
@IBAction
func
submit
()
{
let
editResult
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
EditResultViewController
.
self
)
if
let
orderId
=
orderId
{
editResult
.
orderId
=
orderId
}
self
.
navigationController
?
.
pushViewController
(
editResult
,
animated
:
true
)
}
}
...
...
Bhagyashree/Sunarc/Controller/Forms/Auspicious Date Selection/HouseMovingDateSelectionViewController.swift
View file @
701c438c
...
...
@@ -19,11 +19,10 @@ class HouseMovingDateSelectionViewController: BaseViewController {
@IBOutlet
var
imgWeekend
:
UIImageView
!
@IBOutlet
var
txtRemarks
:
UITextView
!
// var seller: Seller?
var
service
:
String
?
// var customOption = ServiceCustomOption()
var
isWeekDay
=
false
var
incrementId
:
String
?
var
orderId
:
String
=
"0"
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
...
...
@@ -36,155 +35,44 @@ class HouseMovingDateSelectionViewController: BaseViewController {
FormDetail
.
get
(
incrementId
:
incrementId_
,
success
:
{
(
customOptions
)
in
for
option
in
customOptions
{
// if option.option == "Owner Name" {
// self.txtOwnerName.text = option.value
// } else if option.option == "Members" {
// self.txtMembers.text = option.value
// } else if option.option == "Expected Month" {
// self.btnExpectedMonth.setTitle(option.value, for: .normal)
// } else if option.option == "Expected Day" {
//
// if option.value.lowercased() == "weekday" {
// self.imgWeekDay.image = UIImage(named: "radioOn")
// } else {
// self.imgWeekend.image = UIImage(named: "radioOn")
// }
//
// } else if option.option == "Remarks" {
// self.txtRemarks.text = option.value
// }
//
if
option
.
option
==
"Owner Name"
{
self
.
txtOwnerName
.
text
=
option
.
value
}
else
if
option
.
option
==
"Members"
{
self
.
txtMembers
.
text
=
option
.
value
}
else
if
option
.
option
==
"New Address"
{
self
.
txtNewAddress
.
text
=
option
.
value
}
else
if
option
.
option
==
"Expected Month"
{
self
.
btnExpectedMonth
.
setTitle
(
option
.
value
,
for
:
.
normal
)
}
else
if
option
.
option
==
"Expected Day"
{
if
option
.
value
.
lowercased
()
==
"weekday"
{
self
.
imgWeekDay
.
image
=
UIImage
(
named
:
"radioOn"
)
}
else
{
self
.
imgWeekend
.
image
=
UIImage
(
named
:
"radioOn"
)
}
})
{
(
errorMessage
)
in
print
(
errorMessage
)
}
else
if
option
.
option
==
"Remarks"
{
self
.
txtRemarks
.
text
=
option
.
value
}
}
}
extension
HouseMovingDateSelectionViewController
{
@IBAction
func
weekdayWeekend
(
btn
:
UIButton
)
{
if
btn
.
tag
==
1
{
isWeekDay
=
true
imgWeekDay
.
image
=
UIImage
(
named
:
"radioOn"
)
imgWeekend
.
image
=
UIImage
(
named
:
"radioOff"
)
}
else
{
isWeekDay
=
false
imgWeekDay
.
image
=
UIImage
(
named
:
"radioOff"
)
imgWeekend
.
image
=
UIImage
(
named
:
"radioOn"
)
}
})
{
(
errorMessage
)
in
print
(
errorMessage
)
}
@IBAction
func
monthPicker
()
{
// let monthPicker = Utils.viewController(storyboardName: "HomePage", ofType: MonthPickerViewController.self)
// monthPicker.delegate = self
// self.present(monthPicker, animated: true, completion: nil)
//
// UIView.animate(withDuration: 0.25) {
// self.scroller.contentOffset = CGPoint(x: self.scroller.contentOffset.x, y: 100)
// }
}
@IBAction
func
submit
()
{
// if formValidation() == false {
// return
// }
//
// var paramsJSON = ""
// var params = [String: Any]()
// for option in customOption.options {
//
// switch option.title {
// case "Service Type":
// params["\(option.id!)"] = "Auspicious Date Selection"
// case "Service Title":
// params["\(option.id!)"] = "Moving (House)"
// // case "Owner Name":
// // params["\(option.id!)"] = txtOwner.text
// // case "Address":
// // params["\(option.id!)"] = txtAddress.text
// // case "Expected Month":
// // params["\(option.id!)"] = btnMonth.titleLabel?.text
// // case "Expected Days":
// // params["\(option.id!)"] = isWeekday == true ? "weekday" : "weekend"
// // case "Remarks":
// // params["\(option.id!)"] = txtRemarks.text
// default:
// params["\(option.id!)"] = ""
// }
//
// }
//
// do {
// let jsonData = try JSONSerialization.data(withJSONObject: params, options: .prettyPrinted)
// paramsJSON = NSString(data: jsonData, encoding: String.Encoding.utf8.rawValue)! as String
// } catch {
// print(error.localizedDescription)
// }
//
// let keyValueDict: [String: Any] = ["productId": self.seller!.entityId ?? "",
// "websiteId": "1",
// "qty": "1",
// "customerId": User.customerId,
// "storeId": UserSettings.storeId ?? "0",
// "params": paramsJSON
// ]
//
//
// let serviceConfirmationVC = Utils.viewController(storyboardName: "HomePage", ofType: ServiceConfirmationViewController.self)
// serviceConfirmationVC.keyValueDict = keyValueDict
// serviceConfirmationVC.sellerName = seller?.sellerName
// serviceConfirmationVC.service = service
// serviceConfirmationVC.termsAndConditions = customOption.sellerTerms
// self.navigationController?.pushViewController(serviceConfirmationVC, animated: true)
let
editResult
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
EditResultViewController
.
self
)
editResult
.
orderId
=
orderId
self
.
navigationController
?
.
pushViewController
(
editResult
,
animated
:
true
)
}
func
formValidation
()
->
Bool
{
if
txtOwnerName
.
text
?
.
count
==
0
{
self
.
view
.
showToast
(
"Please fill owner name"
,
position
:
.
bottom
,
popTime
:
2.0
,
dismissOnTap
:
false
)
return
false
}
if
txtMembers
.
text
?
.
count
==
0
{
self
.
view
.
showToast
(
"Please fill members"
,
position
:
.
bottom
,
popTime
:
2.0
,
dismissOnTap
:
false
)
return
false
}
if
txtNewAddress
.
text
?
.
count
==
0
{
self
.
view
.
showToast
(
"Please new address"
,
position
:
.
bottom
,
popTime
:
2.0
,
dismissOnTap
:
false
)
return
false
}
if
btnExpectedMonth
.
titleLabel
?
.
text
==
"Month"
{
self
.
view
.
showToast
(
"Please select a month"
,
position
:
.
bottom
,
popTime
:
2.0
,
dismissOnTap
:
false
)
return
false
}
if
imgWeekDay
.
image
==
UIImage
(
named
:
"radioOff"
)
&&
imgWeekend
.
image
==
UIImage
(
named
:
"radioOff"
)
{
self
.
view
.
showToast
(
"Please select a day"
,
position
:
.
bottom
,
popTime
:
2.0
,
dismissOnTap
:
false
)
return
false
}
}
return
true
}
}
extension
HouseMovingDateSelectionViewController
:
UITextFieldDelegate
{
func
textFieldShouldReturn
(
_
textField
:
UITextField
)
->
Bool
{
if
textField
==
txtOwnerName
{
txtMembers
.
becomeFirstResponder
()
}
return
true
}
}
Bhagyashree/Sunarc/Controller/Forms/Auspicious Date Selection/MarriageDateSelectionViewController.swift
View file @
701c438c
This diff is collapsed.
Click to expand it.
Bhagyashree/Sunarc/Controller/Forms/Auspicious Date Selection/RegsirationDateSelectionViewController.swift
View file @
701c438c
...
...
@@ -24,6 +24,7 @@ class RegsirationDateSelectionViewController: BaseViewController {
var
service
:
String
?
var
isWeekDay
=
false
var
incrementId
:
String
?
var
orderId
:
String
?
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
...
...
@@ -76,6 +77,11 @@ class RegsirationDateSelectionViewController: BaseViewController {
extension
RegsirationDateSelectionViewController
{
@IBAction
func
submit
()
{
let
editResult
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
EditResultViewController
.
self
)
if
let
orderId
=
orderId
{
editResult
.
orderId
=
orderId
}
self
.
navigationController
?
.
pushViewController
(
editResult
,
animated
:
true
)
}
...
...
Bhagyashree/Sunarc/Controller/Forms/Fengshui Services/FengshuiServiceContainerViewController.swift
View file @
701c438c
...
...
@@ -17,7 +17,7 @@ class FengshuiServiceContainerViewController: UIViewController {
var
service
:
String
?
var
categoryType
:
CategoryType
=
.
FloorPlanFengShuiGeomancy
var
incrementId
:
String
=
""
var
orderId
:
String
=
"0"
var
formFor
:
String
=
"Floor Plan Feng Shui - Geomancy"
...
...
@@ -48,9 +48,11 @@ class FengshuiServiceContainerViewController: UIViewController {
if
segue
.
identifier
==
"OnsiteFengshuiViewController"
{
(
segue
.
destination
as!
OnsiteFengshuiViewController
)
.
categoryType
=
categoryType
(
segue
.
destination
as!
OnsiteFengshuiViewController
)
.
incrementId
=
incrementId
(
segue
.
destination
as!
OnsiteFengshuiViewController
)
.
orderId
=
orderId
}
else
if
segue
.
identifier
==
"FloorPlanFengshuiViewController"
{
(
segue
.
destination
as!
FloorPlanFengshuiViewController
)
.
categoryType
=
categoryType
(
segue
.
destination
as!
FloorPlanFengshuiViewController
)
.
incrementId
=
incrementId
(
segue
.
destination
as!
FloorPlanFengshuiViewController
)
.
orderId
=
orderId
}
}
...
...
Bhagyashree/Sunarc/Controller/Forms/Fengshui Services/FloorPlanFengshuiViewController.swift
View file @
701c438c
...
...
@@ -21,6 +21,7 @@ class FloorPlanFengshuiViewController: UIViewController {
var
photoFor
:
PhotoFor
=
.
home
var
categoryType
:
CategoryType
=
.
OnsiteServiceGeomancy
var
incrementId
:
String
?
var
orderId
:
String
?
@IBOutlet
var
txtFullAddress
:
UITextView
!
@IBOutlet
var
txtFamilyMembers
:
UITextView
!
...
...
@@ -73,7 +74,11 @@ class FloorPlanFengshuiViewController: UIViewController {
@IBAction
func
submit
()
{
let
editResult
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
EditResultViewController
.
self
)
if
let
orderId
=
orderId
{
editResult
.
orderId
=
orderId
}
self
.
navigationController
?
.
pushViewController
(
editResult
,
animated
:
true
)
}
...
...
Bhagyashree/Sunarc/Controller/Forms/Fengshui Services/OnsiteFengshuiViewController.swift
View file @
701c438c
...
...
@@ -21,6 +21,7 @@ class OnsiteFengshuiViewController: UIViewController {
var
categoryType
:
CategoryType
=
.
OnsiteServiceGeomancy
var
incrementId
:
String
?
var
orderId
:
String
?
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
...
...
@@ -52,7 +53,11 @@ class OnsiteFengshuiViewController: UIViewController {
@IBAction
func
submit
()
{
let
editResult
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
EditResultViewController
.
self
)
if
let
orderId
=
orderId
{
editResult
.
orderId
=
orderId
}
self
.
navigationController
?
.
pushViewController
(
editResult
,
animated
:
true
)
}
...
...
Bhagyashree/Sunarc/Controller/Forms/Form.swift
View file @
701c438c
...
...
@@ -10,7 +10,8 @@ import Foundation
class
Form
{
class
func
VC
(
with
incrementId
:
String
,
categoryType
:
CategoryType
)
->
UIViewController
?
{
class
func
VC
(
with
incrementId
:
String
,
orderId
:
String
,
categoryType
:
CategoryType
)
->
UIViewController
?
{
switch
categoryType
{
case
.
FloorPlanFengShuiGeomancy
:
...
...
@@ -23,6 +24,7 @@ class Form {
let
vc
=
Utils
.
viewController
(
storyboardName
:
"Forms"
,
ofType
:
FengshuiServiceContainerViewController
.
self
)
vc
.
incrementId
=
incrementId
vc
.
categoryType
=
categoryType
vc
.
orderId
=
orderId
return
vc
...
...
@@ -36,6 +38,7 @@ class Form {
let
vc
=
Utils
.
viewController
(
storyboardName
:
"Forms"
,
ofType
:
ScienceOfNamingContainerViewController
.
self
)
vc
.
incrementId
=
incrementId
vc
.
categoryType
=
categoryType
vc
.
orderId
=
orderId
return
vc
...
...
@@ -61,6 +64,7 @@ class Form {
let
vc
=
Utils
.
viewController
(
storyboardName
:
"Forms"
,
ofType
:
AuspiciousDateContainer
.
self
)
vc
.
incrementId
=
incrementId
vc
.
categoryType
=
categoryType
vc
.
orderId
=
orderId
return
vc
default
:
return
nil
...
...
Bhagyashree/Sunarc/Controller/Forms/ScienceOfNaming/CompanyNamingServiceViewController.swift
View file @
701c438c
...
...
@@ -25,6 +25,7 @@ class CompanyNamingServiceViewController: BaseViewController {
@IBOutlet
var
imgFemale
:
UIImageView
!
@IBOutlet
var
scroller
:
UIScrollView
!
var
zodiacPickerFor
=
0
var
orderId
:
String
?
// var seller: Seller?
var
service
:
String
?
...
...
@@ -73,7 +74,11 @@ class CompanyNamingServiceViewController: BaseViewController {
}
@IBAction
func
submit
()
{
let
editResult
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
EditResultViewController
.
self
)
if
let
orderId
=
orderId
{
editResult
.
orderId
=
orderId
}
self
.
navigationController
?
.
pushViewController
(
editResult
,
animated
:
true
)
}
}
...
...
Bhagyashree/Sunarc/Controller/Forms/ScienceOfNaming/CompanyReNamingServiceViewController.swift
View file @
701c438c
...
...
@@ -25,6 +25,7 @@ class CompanyReNamingServiceViewController: BaseViewController {
var
zodiacPickerFor
=
0
var
incrementId
:
String
?
var
orderId
:
String
?
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
...
...
@@ -70,6 +71,11 @@ class CompanyReNamingServiceViewController: BaseViewController {
}
@IBAction
func
submit
()
{
let
editResult
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
EditResultViewController
.
self
)
if
let
orderId
=
orderId
{
editResult
.
orderId
=
orderId
}
self
.
navigationController
?
.
pushViewController
(
editResult
,
animated
:
true
)
}
}
...
...
Bhagyashree/Sunarc/Controller/Forms/ScienceOfNaming/IndividualNamingServiceViewController.swift
View file @
701c438c
...
...
@@ -31,6 +31,7 @@ class IndividualNamingServiceViewController: BaseViewController {
@IBOutlet
var
scroller
:
UIScrollView
!
var
zodiacPickerFor
=
0
var
incrementId
:
String
?
var
orderId
:
String
?
// var seller: Seller?
var
service
:
String
?
...
...
@@ -92,6 +93,11 @@ class IndividualNamingServiceViewController: BaseViewController {
}
@IBAction
func
submit
()
{
let
editResult
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
EditResultViewController
.
self
)
if
let
orderId
=
orderId
{
editResult
.
orderId
=
orderId
}
self
.
navigationController
?
.
pushViewController
(
editResult
,
animated
:
true
)
}
...
...
Bhagyashree/Sunarc/Controller/Forms/ScienceOfNaming/IndividualReNamingServiceViewController.swift
View file @
701c438c
...
...
@@ -28,6 +28,7 @@ class IndividualReNamingServiceViewController: BaseViewController {
@IBOutlet
var
scroller
:
UIScrollView
!
var
zodiacPickerFor
=
0
var
incrementId
:
String
?
var
orderId
:
String
?
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
...
...
@@ -80,7 +81,11 @@ class IndividualReNamingServiceViewController: BaseViewController {
@IBAction
func
submit
()
{
let
editResult
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
EditResultViewController
.
self
)
if
let
orderId
=
orderId
{
editResult
.
orderId
=
orderId
}
self
.
navigationController
?
.
pushViewController
(
editResult
,
animated
:
true
)
}
}
...
...
Bhagyashree/Sunarc/Controller/Forms/ScienceOfNaming/ScienceOfNamingContainerViewController.swift
View file @
701c438c
...
...
@@ -19,6 +19,7 @@ class ScienceOfNamingContainerViewController: BaseViewController {
var
service
:
String
?
var
categoryType
:
CategoryType
=
.
IndividualNamingServiceNamed
var
incrementId
:
String
=
""
var
orderId
:
String
=
"0"
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
...
...
@@ -37,21 +38,25 @@ class ScienceOfNamingContainerViewController: BaseViewController {
individualNamingServiceView
.
isHidden
=
false
if
segue
.
identifier
==
"IndividualNamingServiceViewController"
{
(
segue
.
destination
as!
IndividualNamingServiceViewController
)
.
incrementId
=
incrementId
(
segue
.
destination
as!
IndividualNamingServiceViewController
)
.
orderId
=
orderId
}
case
.
IndividualNamingServiceReNamedChangeName
:
individualReNamingServiceView
.
isHidden
=
false
if
segue
.
identifier
==
"IndividualReNamingServiceViewController"
{
(
segue
.
destination
as!
IndividualReNamingServiceViewController
)
.
incrementId
=
incrementId
(
segue
.
destination
as!
IndividualReNamingServiceViewController
)
.
orderId
=
orderId
}
case
.
CompanyNamingServiceNamed
:
companyNamingServiceView
.
isHidden
=
false
if
segue
.
identifier
==
"CompanyNamingServiceViewController"
{
(
segue
.
destination
as!
CompanyNamingServiceViewController
)
.
incrementId
=
incrementId
(
segue
.
destination
as!
CompanyNamingServiceViewController
)
.
orderId
=
orderId
}
case
.
CompanyNamingServiceReNamedChangeName
:
companyReNamingServiceView
.
isHidden
=
false
if
segue
.
identifier
==
"CompanyReNamingServiceViewController"
{
(
segue
.
destination
as!
CompanyReNamingServiceViewController
)
.
incrementId
=
incrementId
(
segue
.
destination
as!
CompanyReNamingServiceViewController
)
.
orderId
=
orderId
}
default
:
print
(
"Form not found"
)
...
...
Bhagyashree/Sunarc/Controller/Home/EnquiryDetailsViewController.swift
View file @
701c438c
...
...
@@ -40,6 +40,8 @@ extension EnquiryDetailsViewController {
let
chatViewController
=
Utils
.
viewController
(
storyboardName
:
"Home"
,
ofType
:
OnlineEnquiryViewController
.
self
)
chatViewController
.
orderId
=
orderId
chatViewController
.
isOrderCompleted
=
true
chatViewController
.
customerProfileImage
=
appointmentDetails
.
customerProfileImage
chatViewController
.
customerName
=
appointmentDetails
.
customerName
!
self
.
navigationController
?
.
pushViewController
(
chatViewController
,
animated
:
true
)
}
...
...
Bhagyashree/Sunarc/Controller/Home/HomePageViewController.swift
View file @
701c438c
...
...
@@ -144,7 +144,7 @@ extension HomePageViewController: UITableViewDelegate, UITableViewDataSource {
}
else
if
order
.
products
.
first
?
.
serviceType
==
.
FORM
{
if
let
form
=
Form
.
VC
(
with
:
order
.
incrementId
!
,
categoryType
:
order
.
products
.
first
!.
categoryType
)
{
if
let
form
=
Form
.
VC
(
with
:
order
.
incrementId
!
,
orderId
:
order
.
orderId
!
,
categoryType
:
order
.
products
.
first
!.
categoryType
)
{
self
.
navigationController
?
.
pushViewController
(
form
,
animated
:
true
)
}
...
...
Bhagyashree/Sunarc/Controller/Home/OngoingEnquiryViewController.swift
View file @
701c438c
...
...
@@ -107,6 +107,8 @@ extension OngoingEnquiryViewController: UITableViewDataSource, UITableViewDelega
let
chatViewController
=
Utils
.
viewController
(
storyboardName
:
"Home"
,
ofType
:
OnlineEnquiryViewController
.
self
)
if
let
orderId
=
enquiry
.
enquiries
[
indexPath
.
row
]
.
orderId
{
chatViewController
.
orderId
=
orderId
chatViewController
.
customerProfileImage
=
enquiry
.
enquiries
[
indexPath
.
row
]
.
customerProfileImage
chatViewController
.
customerName
=
enquiry
.
enquiries
[
indexPath
.
row
]
.
customerName
!
self
.
navigationController
?
.
pushViewController
(
chatViewController
,
animated
:
true
)
}
}
...
...
Bhagyashree/Sunarc/Controller/Home/OnlineEnquiryViewController.swift
View file @
701c438c
...
...
@@ -8,6 +8,7 @@
import
UIKit
import
FirebaseDatabase
import
Kingfisher
class
OnlineEnquiryViewController
:
UIViewController
{
...
...
@@ -17,17 +18,21 @@ class OnlineEnquiryViewController: UIViewController {
@IBOutlet
weak
var
commentViewHeight
:
NSLayoutConstraint
!
@IBOutlet
var
btnSend
:
UIButton
!
@IBOutlet
var
btnEndService
:
UIView
!
@IBOutlet
var
lblCustomerName
:
UILabel
!
@IBOutlet
var
chatInputView
:
UIView
!
var
ref
=
Database
.
database
()
.
reference
()
var
chats
=
[
Chat
]()
var
orderId
:
String
=
"0"
var
isOrderCompleted
=
false
var
isViewVisable
=
true
var
customerProfileImage
:
String
?
var
customerName
:
String
=
""
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
lblCustomerName
.
text
=
customerName
ref
=
Database
.
database
()
.
reference
()
.
child
(
orderId
)
ref
.
queryOrdered
(
byChild
:
"timestamp"
)
.
observe
(
DataEventType
.
value
,
with
:
{
(
snapshot
)
in
self
.
chats
=
[
Chat
]()
...
...
@@ -54,8 +59,17 @@ class OnlineEnquiryViewController: UIViewController {
}
override
func
viewDidDisappear
(
_
animated
:
Bool
)
{
super
.
viewDidDisappear
(
animated
)
isViewVisable
=
false
}
func
makeAllMSGAsRead
()
{
if
isViewVisable
==
false
{
return
}
for
chat
in
chats
{
if
chat
.
name
==
"Customer"
{
if
chat
.
readStatus
==
"unread"
{
...
...
@@ -140,6 +154,7 @@ extension OnlineEnquiryViewController: UITableViewDelegate, UITableViewDataSourc
}
else
{
let
customerCell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"customer"
)
as!
OnlineEnquiryCustomerCell
customerCell
.
lblMessage
.
text
=
chat
.
msg
customerCell
.
customerProfileImage
=
customerProfileImage
return
customerCell
}
...
...
@@ -182,6 +197,12 @@ class OnlineEnquiryMasterCell: UITableViewCell {
override
func
layoutIfNeeded
()
{
imgMaster
.
layer
.
cornerRadius
=
imgMaster
.
frame
.
size
.
width
/
2
if
let
profileImage
=
User
.
profileImage
{
let
url
=
URL
(
string
:
profileImage
)
self
.
imgMaster
.
kf
.
setImage
(
with
:
url
,
placeholder
:
UIImage
(
named
:
"placeholder"
),
options
:
[
.
transition
(
ImageTransition
.
fade
(
1
)),
.
scaleFactor
(
1.0
)],
progressBlock
:
nil
,
completionHandler
:
nil
)
}
}
}
...
...
@@ -190,9 +211,15 @@ class OnlineEnquiryCustomerCell: UITableViewCell {
@IBOutlet
var
imgCostomer
:
UIImageView
!
@IBOutlet
var
lblMessage
:
UILabel
!
var
customerProfileImage
:
String
?
override
func
layoutIfNeeded
()
{
imgCostomer
.
layer
.
cornerRadius
=
imgCostomer
.
frame
.
size
.
width
/
2
if
let
customerProfileImage
=
customerProfileImage
{
let
url
=
URL
(
string
:
customerProfileImage
)
self
.
imgCostomer
.
kf
.
setImage
(
with
:
url
,
placeholder
:
UIImage
(
named
:
"placeholder"
),
options
:
[
.
transition
(
ImageTransition
.
fade
(
1
)),
.
scaleFactor
(
1.0
)],
progressBlock
:
nil
,
completionHandler
:
nil
)
}
}
}
Bhagyashree/Sunarc/Controller/Me/MyAllServiceOrderViewController.swift
View file @
701c438c
...
...
@@ -125,7 +125,8 @@ extension MyAllServiceOrderViewController: UITableViewDelegate, UITableViewDataS
}
}
else
if
selectedService
.
serviceType
==
.
FORM
{
if
let
form
=
Form
.
VC
(
with
:
selectedService
.
incrementId
!
,
categoryType
:
selectedService
.
categoryType
)
{
if
let
form
=
Form
.
VC
(
with
:
selectedService
.
incrementId
!
,
orderId
:
selectedService
.
orderId
!
,
categoryType
:
selectedService
.
categoryType
)
{
self
.
navigationController
?
.
pushViewController
(
form
,
animated
:
true
)
}
}
else
{
...
...
Bhagyashree/Sunarc/Controller/Me/MyCompletedOrdersViewController.swift
View file @
701c438c
...
...
@@ -52,7 +52,7 @@ class MyCompletedOrdersViewController: UIViewController {
if
nextPage
==
true
{
service
.
nextPage
(
serviceStatus
:
.
SERVICE_
COMPLETE
,
success
:
{
service
.
nextPage
(
serviceStatus
:
.
COMPLETE
,
success
:
{
self
.
tblServices
.
reloadData
()
self
.
tblServices
.
mj_footer
.
endRefreshing
()
})
{
(
error
)
in
...
...
@@ -60,7 +60,7 @@ class MyCompletedOrdersViewController: UIViewController {
self
.
view
.
showToast
(
error
,
position
:
.
bottom
,
popTime
:
2.0
,
dismissOnTap
:
false
)
}
}
else
{
service
.
getServices
(
serviceStatus
:
.
SERVICE_
COMPLETE
,
success
:
{
service
.
getServices
(
serviceStatus
:
.
COMPLETE
,
success
:
{
self
.
tblServices
.
reloadData
()
self
.
tblServices
.
mj_header
.
endRefreshing
()
})
{
(
errorMessage
)
in
...
...
@@ -104,7 +104,7 @@ extension MyCompletedOrdersViewController: UITableViewDelegate, UITableViewDataS
if
selectedService
.
serviceType
==
.
BOOKING
{
let
appointmentdetails
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
ServiceDetailViewController
.
self
)
appointmentdetails
.
serviceStatus
=
.
tbc
appointmentdetails
.
serviceStatus
=
.
completed
appointmentdetails
.
incrementId
=
selectedService
.
incrementId
appointmentdetails
.
orderId
=
selectedService
.
orderId
self
.
navigationController
?
.
pushViewController
(
appointmentdetails
,
animated
:
true
)
...
...
@@ -124,7 +124,8 @@ extension MyCompletedOrdersViewController: UITableViewDelegate, UITableViewDataS
}
}
else
if
selectedService
.
serviceType
==
.
FORM
{
if
let
form
=
Form
.
VC
(
with
:
selectedService
.
incrementId
!
,
categoryType
:
selectedService
.
categoryType
)
{
if
let
form
=
Form
.
VC
(
with
:
selectedService
.
incrementId
!
,
orderId
:
selectedService
.
orderId
!
,
categoryType
:
selectedService
.
categoryType
)
{
self
.
navigationController
?
.
pushViewController
(
form
,
animated
:
true
)
}
}
else
{
...
...
Bhagyashree/Sunarc/Controller/Me/MyOngoingServiceOrderViewController.swift
View file @
701c438c
...
...
@@ -103,11 +103,18 @@ extension MyOngoingServiceOrderViewController: UITableViewDelegate, UITableViewD
if
selectedService
.
serviceType
==
.
BOOKING
{
let
appointmentdetails
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
ServiceDetailViewController
.
self
)
appointmentdetails
.
serviceStatus
=
.
tbc
appointmentdetails
.
incrementId
=
selectedService
.
incrementId
appointmentdetails
.
orderId
=
selectedService
.
orderId
self
.
navigationController
?
.
pushViewController
(
appointmentdetails
,
animated
:
true
)
if
selectedService
.
status
==
.
SERVICE_ONGOING
{
let
videoCallVC
=
Utils
.
viewController
(
storyboardName
:
"Appointment"
,
ofType
:
VideoCallingViewController
.
self
)
videoCallVC
.
orderId
=
selectedService
.
orderId
!
self
.
navigationController
?
.
pushViewController
(
videoCallVC
,
animated
:
true
)
}
// let appointmentdetails = Utils.viewController(storyboardName: "Appointment", ofType: ServiceDetailViewController.self)
// appointmentdetails.serviceStatus = .tbc
// appointmentdetails.incrementId = selectedService.incrementId
// appointmentdetails.orderId = selectedService.orderId
// self.navigationController?.pushViewController(appointmentdetails, animated: true)
}
else
if
selectedService
.
serviceType
==
.
FAQ
{
if
selectedService
.
status
==
.
PROCESSING
{
...
...
@@ -124,7 +131,8 @@ extension MyOngoingServiceOrderViewController: UITableViewDelegate, UITableViewD
}
}
else
if
selectedService
.
serviceType
==
.
FORM
{
if
let
form
=
Form
.
VC
(
with
:
selectedService
.
incrementId
!
,
categoryType
:
selectedService
.
categoryType
){
if
let
form
=
Form
.
VC
(
with
:
selectedService
.
incrementId
!
,
orderId
:
selectedService
.
orderId
!
,
categoryType
:
selectedService
.
categoryType
){
self
.
navigationController
?
.
pushViewController
(
form
,
animated
:
true
)
}
}
else
{
...
...
Bhagyashree/Sunarc/Controller/Me/MyUploadResultViewController.swift
View file @
701c438c
...
...
@@ -124,9 +124,11 @@ extension MyUploadResultViewController: UITableViewDelegate, UITableViewDataSour
}
}
else
if
selectedService
.
serviceType
==
.
FORM
{
if
let
form
=
Form
.
VC
(
with
:
selectedService
.
incrementId
!
,
categoryType
:
selectedService
.
categoryType
){
if
let
form
=
Form
.
VC
(
with
:
selectedService
.
incrementId
!
,
orderId
:
selectedService
.
orderId
!
,
categoryType
:
selectedService
.
categoryType
)
{
self
.
navigationController
?
.
pushViewController
(
form
,
animated
:
true
)
}
}
else
{
self
.
view
.
showToast
(
"Unknown service"
,
position
:
.
bottom
,
popTime
:
2.0
,
dismissOnTap
:
false
)
}
...
...
Bhagyashree/Sunarc/Controller/Messages/NotificationsViewController.swift
View file @
701c438c
...
...
@@ -8,27 +8,26 @@
import
UIKit
class
NotificationsViewController
:
UI
ViewController
{
class
NotificationsViewController
:
Base
ViewController
{
var
notifications
=
[[
String
:
Any
]]()
var
notification
=
MyNotification
()
@IBOutlet
var
tblNotification
:
UITableView
!
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
}
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
super
.
viewWillAppear
(
animated
)
notification
.
getNotifications
({
self
.
tblNotification
.
reloadData
()
})
{
(
errorMessage
)
in
if
errorMessage
!=
nil
{
self
.
view
.
showToast
(
errorMessage
!
,
position
:
.
bottom
,
popTime
:
2.0
,
dismissOnTap
:
false
)
}
}
let
noti1
=
[
"msg"
:
"You have new reservation service, Please be aware of it."
,
"dateTime"
:
"02:30 pm 12/02/2018"
]
notifications
.
append
(
noti1
)
let
noti2
=
[
"msg"
:
"An appointment service will start in 15 minutes. Please get ready."
,
"dateTime"
:
"01:40 am 13/03/2018"
]
notifications
.
append
(
noti2
)
let
noti3
=
[
"msg"
:
"You have new reservation service, Please be aware of it."
,
"dateTime"
:
"05:50 pm 14/04/2018"
]
notifications
.
append
(
noti3
)
let
noti4
=
[
"msg"
:
"An appointment service will start in 15 minutes. Please get ready."
,
"dateTime"
:
"06:06 am 15/05/2018"
]
notifications
.
append
(
noti4
)
let
noti5
=
[
"msg"
:
"You have new reservation service, Please be aware of it."
,
"dateTime"
:
"04:20 pm 16/06/2018"
]
notifications
.
append
(
noti5
)
let
noti6
=
[
"msg"
:
"An appointment service will start in 15 minutes. Please get ready."
,
"dateTime"
:
"08:30 pm 17/07/2018"
]
notifications
.
append
(
noti6
)
let
noti7
=
[
"msg"
:
"You have new reservation service, Please be aware of it."
,
"dateTime"
:
"09:30 am 18/08/2018"
]
notifications
.
append
(
noti7
)
}
...
...
@@ -37,16 +36,12 @@ class NotificationsViewController: UIViewController {
extension
NotificationsViewController
:
UITableViewDataSource
,
UITableViewDelegate
{
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
notifications
.
count
return
notification
.
notification
s
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
notification
=
notifications
[
indexPath
.
row
]
let
ongoinCell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"notifications"
)
as!
NotificationsCell
ongoinCell
.
lblMessage
.
text
=
notification
[
"msg"
]
as!
String
ongoinCell
.
lblDateTime
.
text
=
notification
[
"dateTime"
]
as!
String
ongoinCell
.
notification
=
notification
.
notifications
[
indexPath
.
row
]
return
ongoinCell
}
...
...
@@ -63,5 +58,14 @@ class NotificationsCell: UITableViewCell {
@IBOutlet
var
lblMessage
:
UILabel
!
@IBOutlet
var
lblDateTime
:
UILabel
!
var
notification
:
MyNotification
?
{
didSet
{
if
let
notification
=
notification
{
self
.
lblMessage
.
text
=
notification
.
title
self
.
lblDateTime
.
text
=
notification
.
content
}
}
}
}
Bhagyashree/Sunarc/Model/Appointment/EditResult.swift
View file @
701c438c
...
...
@@ -49,6 +49,8 @@ class EditResult {
let
postData
=
try!
JSONSerialization
.
data
(
withJSONObject
:
parameters
,
options
:
[])
print
(
HOST_NAME
+
API
.
UPDATE_RESULT
)
print
(
parameters
)
print
(
headers
)
let
request
=
NSMutableURLRequest
(
url
:
NSURL
(
string
:
HOST_NAME
+
API
.
UPDATE_RESULT
)
!
as
URL
,
cachePolicy
:
.
useProtocolCachePolicy
,
...
...
@@ -71,6 +73,8 @@ class EditResult {
do
{
let
response
=
try
JSONSerialization
.
jsonObject
(
with
:
data
!
,
options
:
.
mutableContainers
)
print
(
" ***
\(
response
)
*** "
)
if
let
validResponse
=
response
as?
[[
String
:
Any
]]
{
if
validResponse
.
count
>
0
{
if
let
apiStatus
=
validResponse
[
0
][
"api_status"
]
as?
[
String
:
Any
]
{
...
...
Bhagyashree/Sunarc/Model/Home/FormDetail.swift
View file @
701c438c
...
...
@@ -7,11 +7,14 @@
//
import
Foundation
import
SVProgressHUD
class
FormDetail
{
class
func
get
(
incrementId
:
String
,
success
:
@escaping
(
_
customOptions
:
[
CustomOption
])
->
Void
,
failure
:
@escaping
(
_
errorMessage
:
String
)
->
Void
)
{
SVProgressHUD
.
show
()
let
parameters
:
[
String
:
Any
]
=
[
"customerId"
:
User
.
customerId
,
"storeId"
:
UserDefaults
.
standard
.
value
(
forKey
:
"storeId"
)
as!
String
,
"incrementId"
:
incrementId
...
...
@@ -32,6 +35,8 @@ class FormDetail {
let
option
=
CustomOption
(
json
:
customOptionJSON
)
options
.
append
(
option
)
}
SVProgressHUD
.
dismiss
()
success
(
options
)
return
}
...
...
@@ -40,13 +45,16 @@ class FormDetail {
}
SVProgressHUD
.
dismiss
()
failure
(
""
)
}
else
{
SVProgressHUD
.
dismiss
()
failure
(
"Incorrect data format"
)
}
})
{
(
errorMessage
)
in
SVProgressHUD
.
dismiss
()
failure
(
errorMessage
)
}
...
...
Bhagyashree/Sunarc/Model/Me/ServiceExt.swift
View file @
701c438c
...
...
@@ -32,7 +32,10 @@ extension Service {
if
serviceStatus
!=
nil
{
var
statusParameter
=
""
if
serviceStatus
==
.
COMPLETE
{
if
serviceStatus
==
.
PROCESSING
{
statusParameter
=
"processing"
}
else
if
serviceStatus
==
.
COMPLETE
{
statusParameter
=
"complete"
}
else
if
serviceStatus
==
.
SERVICE_COMPLETE
{
statusParameter
=
"service_complete"
...
...
@@ -45,12 +48,14 @@ extension Service {
parameters
=
[
"customerId"
:
User
.
customerId
,
"storeId"
:
UserDefaults
.
standard
.
value
(
forKey
:
"storeId"
)
as!
String
,
"status"
:
statusParameter
,
"pageNumber"
:
self
.
currentPage
"pageNumber"
:
self
.
currentPage
,
"type"
:
"booking"
]
}
else
{
parameters
=
[
"customerId"
:
User
.
customerId
,
"storeId"
:
UserDefaults
.
standard
.
value
(
forKey
:
"storeId"
)
as!
String
,
"pageNumber"
:
self
.
currentPage
"pageNumber"
:
self
.
currentPage
,
"type"
:
"booking"
]
}
...
...
Bhagyashree/Sunarc/Model/Notifications/MyNotification.swift
0 → 100644
View file @
701c438c
//
// Notification.swift
// Bhagyashree
//
// Created by SunarcMAC on 23/08/18.
// Copyright © 2018 Sunarc. All rights reserved.
//
import
Foundation
class
MyNotification
{
var
banner
:
String
?
var
categoryId
:
String
?
var
categoryName
:
String
?
var
content
:
String
?
var
id
:
String
?
var
notificationType
:
String
?
var
title
:
String
?
var
notifications
=
[
MyNotification
]()
func
initWithJSON
(
json
:
[
String
:
Any
])
{
if
let
banner
=
json
[
"banner"
]
as?
String
{
self
.
banner
=
banner
}
if
let
categoryId
=
json
[
"categoryId"
]
as?
String
{
self
.
categoryId
=
categoryId
}
if
let
categoryName
=
json
[
"categoryName"
]
as?
String
{
self
.
categoryName
=
categoryName
}
if
let
content
=
json
[
"content"
]
as?
String
{
self
.
content
=
content
}
if
let
id
=
json
[
"id"
]
as?
String
{
self
.
id
=
id
}
if
let
notificationType
=
json
[
"notificationType"
]
as?
String
{
self
.
notificationType
=
notificationType
}
if
let
title
=
json
[
"title"
]
as?
String
{
self
.
title
=
title
}
}
}
Bhagyashree/Sunarc/Model/Notifications/MyNotificationExt.swift
0 → 100644
View file @
701c438c
//
// NotificationExt.swift
// Bhagyashree
//
// Created by SunarcMAC on 23/08/18.
// Copyright © 2018 Sunarc. All rights reserved.
//
import
Foundation
extension
MyNotification
{
func
getNotifications
(
_
success
:
@escaping
()
->
Void
,
failur
:
@escaping
(
_
errorMessage
:
String
?)
->
Void
)
{
let
parameters
:
[
String
:
Any
]
=
[
"storeId"
:
UserDefaults
.
standard
.
value
(
forKey
:
"storeId"
)
as!
String
,
"customerId"
:
User
.
customerId
]
HTTP
()
.
connectionWithRequestObjectFormUrl
(
api
:
API
.
NOTIFICATION
,
parameters
:
parameters
,
method
:
.
post
,
indicator
:
true
,
success
:
{
(
response
)
in
if
let
json
=
response
as?
[
String
:
Any
]
{
if
let
notificationList
=
json
[
"notificationList"
]
as?
[[
String
:
Any
]]
{
self
.
notifications
=
[
MyNotification
]()
for
notification
in
notificationList
{
let
noti
=
MyNotification
()
noti
.
initWithJSON
(
json
:
notification
)
self
.
notifications
.
append
(
noti
)
}
success
()
}
else
{
failur
(
nil
)
}
}
else
{
failur
(
nil
)
}
success
()
})
{
(
errorMessage
)
in
failur
(
errorMessage
)
}
}
}
Bhagyashree/Sunarc/Model/UpdateOrder.swift
View file @
701c438c
...
...
@@ -30,7 +30,7 @@ class UpdateOrder {
let
postData
=
try!
JSONSerialization
.
data
(
withJSONObject
:
parameters
,
options
:
[])
let
request
=
NSMutableURLRequest
(
url
:
NSURL
(
string
:
"http://54.251.144.17/rest/V1/service/updateorder"
)
!
as
URL
,
let
request
=
NSMutableURLRequest
(
url
:
NSURL
(
string
:
HOST_NAME
+
API
.
UPDATE_ORDER
)
!
as
URL
,
cachePolicy
:
.
useProtocolCachePolicy
,
timeoutInterval
:
10.0
)
request
.
httpMethod
=
"POST"
...
...
Bhagyashree/Sunarc/Other/HTTP/API.swift
View file @
701c438c
...
...
@@ -39,8 +39,11 @@ class API {
static
let
VIEW_ORDER
=
"mobikulmphttp/marketplace/viewOrder"
static
let
RECOMEND_PRODUCTS
=
"/rest/V1/seller/recommendedproducts?page="
static
let
UPDATE_RESULT
=
"/rest/V1/service/saveResult"
static
let
UPDATE_ORDER
=
"rest/V1/service/updateorder"
// Notification
static
let
NOTIFICATION
=
"mobikulhttp/extra/notificationList"
}
...
...
Bhagyashree/Sunarc/View/Appointment.storyboard
View file @
701c438c
This diff is collapsed.
Click to expand it.
Bhagyashree/Sunarc/View/Forms.storyboard
View file @
701c438c
...
...
@@ -13,7 +13,7 @@
<!--Fengshui Service Container View Controller-->
<scene
sceneID=
"21P-jn-eCu"
>
<objects>
<viewController
storyboardIdentifier=
"FengshuiServiceContainerViewController"
id=
"EQ8-wY-UYs"
customClass=
"FengshuiServiceContainerViewController"
customModule=
"Bhagyashree"
customModuleProvider=
"target"
sceneMemberID=
"viewController"
>
<viewController
storyboardIdentifier=
"FengshuiServiceContainerViewController"
hidesBottomBarWhenPushed=
"YES"
id=
"EQ8-wY-UYs"
customClass=
"FengshuiServiceContainerViewController"
customModule=
"Bhagyashree"
customModuleProvider=
"target"
sceneMemberID=
"viewController"
>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"tG5-Tk-Yo3"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"667"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
...
...
@@ -806,7 +806,7 @@
<!--Science Of Naming Container View Controller-->
<scene
sceneID=
"nWL-K4-on2"
>
<objects>
<viewController
storyboardIdentifier=
"ScienceOfNamingContainerViewController"
id=
"9uw-As-fmK"
customClass=
"ScienceOfNamingContainerViewController"
customModule=
"Bhagyashree"
customModuleProvider=
"target"
sceneMemberID=
"viewController"
>
<viewController
storyboardIdentifier=
"ScienceOfNamingContainerViewController"
hidesBottomBarWhenPushed=
"YES"
id=
"9uw-As-fmK"
customClass=
"ScienceOfNamingContainerViewController"
customModule=
"Bhagyashree"
customModuleProvider=
"target"
sceneMemberID=
"viewController"
>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"dkM-R3-Js0"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"667"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
...
...
@@ -3201,7 +3201,7 @@
<!--Auspicious Date Container-->
<scene
sceneID=
"jo2-Dh-3sN"
>
<objects>
<viewController
storyboardIdentifier=
"AuspiciousDateContainer"
id=
"zlY-5g-iig"
customClass=
"AuspiciousDateContainer"
customModule=
"Bhagyashree"
customModuleProvider=
"target"
sceneMemberID=
"viewController"
>
<viewController
storyboardIdentifier=
"AuspiciousDateContainer"
hidesBottomBarWhenPushed=
"YES"
id=
"zlY-5g-iig"
customClass=
"AuspiciousDateContainer"
customModule=
"Bhagyashree"
customModuleProvider=
"target"
sceneMemberID=
"viewController"
>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"Dpx-wd-vWm"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"375"
height=
"667"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
...
...
Bhagyashree/Sunarc/View/Home.storyboard
View file @
701c438c
...
...
@@ -808,7 +808,7 @@
<nil
key=
"textColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"19:00 28/04/2018"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Deu-Vy-knx"
>
<label
hidden=
"YES"
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"19:00 28/04/2018"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Deu-Vy-knx"
>
<rect
key=
"frame"
x=
"75"
y=
"39"
width=
"271"
height=
"21"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"21"
id=
"t6s-LY-fze"
/>
...
...
@@ -1363,9 +1363,9 @@
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Customer Name"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"RX5-Vv-exD"
>
<rect
key=
"frame"
x=
"
122"
y=
"29"
width=
"130
"
height=
"27"
/>
<rect
key=
"frame"
x=
"
99"
y=
"29"
width=
"176
"
height=
"27"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"1
30
"
id=
"9eC-Qy-Kzm"
/>
<constraint
firstAttribute=
"width"
constant=
"1
76
"
id=
"9eC-Qy-Kzm"
/>
<constraint
firstAttribute=
"height"
constant=
"27"
id=
"dWn-9y-Kwm"
/>
</constraints>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"16"
/>
...
...
@@ -1704,6 +1704,7 @@
<outlet
property=
"btnSend"
destination=
"aVM-iS-vM0"
id=
"1zJ-Hw-hTF"
/>
<outlet
property=
"chatInputView"
destination=
"Sld-01-3ke"
id=
"TGV-X0-NxQ"
/>
<outlet
property=
"commentViewHeight"
destination=
"zyR-Jh-Kpw"
id=
"kQW-fA-yBh"
/>
<outlet
property=
"lblCustomerName"
destination=
"RX5-Vv-exD"
id=
"1No-VB-DjB"
/>
<outlet
property=
"lblPlaceHolder"
destination=
"MTH-Qs-B62"
id=
"RFk-e4-kUU"
/>
<outlet
property=
"tblChat"
destination=
"zMo-HV-qAx"
id=
"x3N-0U-L6g"
/>
<outlet
property=
"txtComment"
destination=
"aYB-vl-13h"
id=
"JaU-cj-RjW"
/>
...
...
Bhagyashree/Sunarc/View/Me.storyboard
View file @
701c438c
...
...
@@ -791,7 +791,7 @@
<nil
key=
"textColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"tbc"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Hv7-qG-JN1"
>
<imageView
hidden=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"tbc"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Hv7-qG-JN1"
>
<rect
key=
"frame"
x=
"323"
y=
"4"
width=
"26"
height=
"26"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
...
...
@@ -3747,7 +3747,7 @@
<nil
key=
"textColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"status-inprogress"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"266-Eb-3x7"
>
<imageView
hidden=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"status-inprogress"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"266-Eb-3x7"
>
<rect
key=
"frame"
x=
"323"
y=
"5"
width=
"26"
height=
"26"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
...
...
@@ -3909,7 +3909,7 @@
<nil
key=
"textColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"status-inprogress"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"KWG-T1-Rjh"
>
<imageView
hidden=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"status-inprogress"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"KWG-T1-Rjh"
>
<rect
key=
"frame"
x=
"325"
y=
"5"
width=
"26"
height=
"26"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
...
...
@@ -4069,7 +4069,7 @@
<nil
key=
"textColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"status-done"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ALu-F0-reH"
>
<imageView
hidden=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"status-done"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"ALu-F0-reH"
>
<rect
key=
"frame"
x=
"322"
y=
"5"
width=
"26"
height=
"26"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
...
...
Bhagyashree/Sunarc/View/Messages.storyboard
View file @
701c438c
...
...
@@ -138,6 +138,9 @@
</view>
<navigationItem
key=
"navigationItem"
id=
"DTh-jT-pW6"
/>
<nil
key=
"simulatedTopBarMetrics"
/>
<connections>
<outlet
property=
"tblNotification"
destination=
"9qw-qV-yAg"
id=
"VJd-HR-bAP"
/>
</connections>
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"4pj-DW-Nrb"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
</objects>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment