|
@@ -39,9 +39,6 @@ class SertifikatViewController: UIViewController {
|
|
|
private var loadMore = false
|
|
private var loadMore = false
|
|
|
private var kode: Int?
|
|
private var kode: Int?
|
|
|
private var isSertifikatNew: Bool = true
|
|
private var isSertifikatNew: Bool = true
|
|
|
- private var userId: Int = 0
|
|
|
|
|
- private var custId: Int = 0
|
|
|
|
|
- private var userRoleId = ""
|
|
|
|
|
|
|
|
|
|
// View Lifecycles
|
|
// View Lifecycles
|
|
|
override var preferredStatusBarStyle: UIStatusBarStyle {
|
|
override var preferredStatusBarStyle: UIStatusBarStyle {
|
|
@@ -61,14 +58,6 @@ class SertifikatViewController: UIViewController {
|
|
|
|
|
|
|
|
override func viewWillAppear(_ animated: Bool) {
|
|
override func viewWillAppear(_ animated: Bool) {
|
|
|
presenter.attachView(view: self)
|
|
presenter.attachView(view: self)
|
|
|
-
|
|
|
|
|
- userRoleId = UserState.instance.getRoleId()
|
|
|
|
|
- userId = UserState.instance.getUserId()
|
|
|
|
|
- custId = UserState.instance.getCustId()
|
|
|
|
|
- print("INFO USER")
|
|
|
|
|
- print("userRoleId \(userRoleId)")
|
|
|
|
|
- print("userId : \(userId)")
|
|
|
|
|
- print("custId : \(custId)")
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -80,7 +69,7 @@ class SertifikatViewController: UIViewController {
|
|
|
private func loadCertificateData() {
|
|
private func loadCertificateData() {
|
|
|
if !loading && !lastDataLoadedEmpty {
|
|
if !loading && !lastDataLoadedEmpty {
|
|
|
if ConnectionHelper.isConnectedToNetwork() {
|
|
if ConnectionHelper.isConnectedToNetwork() {
|
|
|
- presenter.loadPrivateCertificatesData(user_id: userId, cust_id: custId, role_id: userRoleId, status: status, limit: limit, page: page, search: search)
|
|
|
|
|
|
|
+ presenter.loadPrivateCertificatesData(status: status, limit: limit, page: page, search: search)
|
|
|
} else {
|
|
} else {
|
|
|
showNoConnection()
|
|
showNoConnection()
|
|
|
}
|
|
}
|