@adins/ucsearch 2.0.15 → 2.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +31 -5
- package/bundles/ucsearch.umd.js +92 -235
- package/bundles/ucsearch.umd.js.map +1 -1
- package/bundles/ucsearch.umd.min.js +1 -1
- package/bundles/ucsearch.umd.min.js.map +1 -1
- package/esm2015/lib/model/AdInstConstant.js +33 -568
- package/esm2015/lib/model/CriteriaObj.Model.js +3 -1
- package/esm2015/lib/ucsearch.component.js +63 -20
- package/esm5/lib/model/AdInstConstant.js +33 -568
- package/esm5/lib/model/CriteriaObj.Model.js +3 -1
- package/esm5/lib/ucsearch.component.js +74 -24
- package/fesm2015/ucsearch.js +80 -230
- package/fesm2015/ucsearch.js.map +1 -1
- package/fesm5/ucsearch.js +89 -232
- package/fesm5/ucsearch.js.map +1 -1
- package/lib/model/AdInstConstant.d.ts +14 -185
- package/lib/model/CriteriaObj.Model.d.ts +1 -0
- package/lib/ucsearch.component.d.ts +0 -1
- package/package.json +1 -1
- package/ucsearch.metadata.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,12 @@ This library was generated with [Angular CLI](https://github.com/angular/angular
|
|
|
4
4
|
|
|
5
5
|
## Version
|
|
6
6
|
|
|
7
|
+
Version 2.0.17
|
|
8
|
+
1. dropdown bentuk path dan environment dalam object ddlEnvironments
|
|
9
|
+
|
|
10
|
+
Version 2.0.16
|
|
11
|
+
1. tambah kondisi dropwdown isQueryIn, jika select all criteria nya dari list dropdown
|
|
12
|
+
|
|
7
13
|
Version 2.0.14
|
|
8
14
|
1. Key Value
|
|
9
15
|
|
|
@@ -88,8 +94,14 @@ Version 1.0.2
|
|
|
88
94
|
Version 1.0.1
|
|
89
95
|
1. Added ReadMe
|
|
90
96
|
|
|
91
|
-
##
|
|
97
|
+
## Dependency Module
|
|
98
|
+
import this module :
|
|
99
|
+
- FormsModule
|
|
100
|
+
|
|
101
|
+
## Selector
|
|
102
|
+
lib-ucsearch
|
|
92
103
|
|
|
104
|
+
## Input
|
|
93
105
|
1. searchInput : InputSearchObj (object) *mandatory
|
|
94
106
|
|
|
95
107
|
## Output
|
|
@@ -98,8 +110,18 @@ Version 1.0.1
|
|
|
98
110
|
## Object property & JSON property
|
|
99
111
|
InputSearchObj :
|
|
100
112
|
- _url : search.json
|
|
101
|
-
- enviromentUrl :
|
|
113
|
+
- enviromentUrl : environment path (foundation, setting, vendor)
|
|
102
114
|
- apiQryPaging : search paging API path
|
|
115
|
+
- ddlEnvironments : [
|
|
116
|
+
{
|
|
117
|
+
name: "A.MR_OFFICE_TYPE_CODE", // which dropdown use this environment, check by name
|
|
118
|
+
environment: environment.FoundationR3Url
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
name: "A.MR_OFFICE_CLASS_CODE",
|
|
122
|
+
environment: environment.FoundationR3Url
|
|
123
|
+
}
|
|
124
|
+
]
|
|
103
125
|
|
|
104
126
|
search.json :
|
|
105
127
|
``` javascript
|
|
@@ -180,15 +202,19 @@ search.json :
|
|
|
180
202
|
"isEvent" : "true", // boolean: true|false, if true dropdown criteria affect other dropdown criteria
|
|
181
203
|
"affectedFilter" : ["dropdownId", "searchId"], // affected filter check by name
|
|
182
204
|
"isFromURL" : "true",
|
|
183
|
-
"url" : "",
|
|
205
|
+
"url" : "", // full path url api
|
|
206
|
+
"path": "", // path api
|
|
207
|
+
"criteriaPropName": "", // criteria property name
|
|
208
|
+
"criteriaPropValue": "", // criteria value
|
|
184
209
|
"itemsUrl" : [],
|
|
185
210
|
}
|
|
186
211
|
],
|
|
187
212
|
"querystring": { // query data by sql
|
|
188
|
-
"select": "", // ex: "SELECT APP_ID AS appId, IS_ACTIVE AS isActive" *must use alias
|
|
189
|
-
"from": "" // ex: "FROM APP WITH(NOLOCK)" *don't forget WITH(NOLOCK)
|
|
213
|
+
"select": "", // ex: "SELECT APP_ID AS appId, IS_ACTIVE AS isActive" *must use alias, field to select first must be the first row of grid
|
|
214
|
+
"from": "" // ex: "FROM dbo.APP WITH(NOLOCK)" *don't forget WITH(NOLOCK)
|
|
190
215
|
}
|
|
191
216
|
}
|
|
217
|
+
}
|
|
192
218
|
```
|
|
193
219
|
## Code scaffolding
|
|
194
220
|
|
package/bundles/ucsearch.umd.js
CHANGED
|
@@ -57,218 +57,25 @@
|
|
|
57
57
|
var AdInsConstant = /** @class */ (function () {
|
|
58
58
|
function AdInsConstant() {
|
|
59
59
|
}
|
|
60
|
+
AdInsConstant.RestrictionBetween = "Between";
|
|
60
61
|
AdInsConstant.RestrictionLike = "Like";
|
|
61
62
|
AdInsConstant.RestrictionEq = "Eq";
|
|
63
|
+
AdInsConstant.RestrictionNeq = "NEQ";
|
|
64
|
+
AdInsConstant.RestrictionGt = "GT";
|
|
65
|
+
AdInsConstant.RestrictionGte = "GTE";
|
|
66
|
+
AdInsConstant.RestrictionLt = "LT";
|
|
67
|
+
AdInsConstant.RestrictionLte = "LTE";
|
|
68
|
+
AdInsConstant.RestrictionIn = "IN";
|
|
69
|
+
AdInsConstant.RestrictionNotIn = "NotIn";
|
|
70
|
+
AdInsConstant.RestrictionOr = "Or"; //pastikan ada 1 criteria sebelumnya
|
|
71
|
+
//pastikan ada 1 criteria sebelumnya
|
|
72
|
+
AdInsConstant.RestrictionOrNeq = "OrNeq"; //pastikan ada 1 criteria sebelumnya
|
|
73
|
+
//pastikan ada 1 criteria sebelumnya
|
|
74
|
+
AdInsConstant.RestrictionIsNull = "isnull";
|
|
75
|
+
AdInsConstant.RestrictionIsNotNull = "isnotnull";
|
|
76
|
+
AdInsConstant.RestrictionGTE = "GTE";
|
|
77
|
+
AdInsConstant.RestrictionLTE = "LTE";
|
|
62
78
|
AdInsConstant.showData = "10,50,100";
|
|
63
|
-
AdInsConstant.TimeoutSession = 6000000;
|
|
64
|
-
AdInsConstant.GetListProduct = "http://creator_websvr:7272/NEW_FINANCING/api/Catalog/getPopularViewByCriteria";
|
|
65
|
-
AdInsConstant.Login = "/UserManagement/HTML5Login";
|
|
66
|
-
AdInsConstant.LoginToken = "/UserManagement/HTML6Login";
|
|
67
|
-
AdInsConstant.Logout = "/UserManagement/LogOut";
|
|
68
|
-
AdInsConstant.GetListOffice = "/RefOffice/GetRefOfficePaging";
|
|
69
|
-
AdInsConstant.GetProvince = "/los/v1/get_provinsi";
|
|
70
|
-
AdInsConstant.GetCityByProvince = "/los/v1/get_kota";
|
|
71
|
-
AdInsConstant.getProspectByProspectNo = "/api/MobileProspectTask/GetProspectByProspectNo";
|
|
72
|
-
AdInsConstant.submitNCProspect = "/api/MobileProspectTask/submitNCProspect";
|
|
73
|
-
AdInsConstant.addCustPersonal = "";
|
|
74
|
-
AdInsConstant.FormDefault = "dashboard/dash-board";
|
|
75
|
-
//GENERAL SETTING
|
|
76
|
-
AdInsConstant.GetBusinessDt = "/GeneralSetting/GetBusinessDate";
|
|
77
|
-
AdInsConstant.AddGeneralSetting = "/GeneralSetting/AddGeneralSetting";
|
|
78
|
-
AdInsConstant.EditGeneralSetting = "/GeneralSetting/EditGeneralSetting";
|
|
79
|
-
AdInsConstant.GetGeneralSettingPaging = "/GeneralSetting/GetGeneralSettingPaging";
|
|
80
|
-
AdInsConstant.GetGeneralSettingById = "/GeneralSetting/GetGeneralSettingById";
|
|
81
|
-
AdInsConstant.GetGeneralSettingValue = "/GeneralSetting/GetGeneralSettingValue";
|
|
82
|
-
//REF OFFICE
|
|
83
|
-
AdInsConstant.GetRefOfficeObj = "/RefOffice/GetRefOfficeObj";
|
|
84
|
-
AdInsConstant.GetRefOfficeActiveAndNonVirtualKeyValue = "/RefOffice/GetRefOfficeActiveAndNonVirtualKeyValue";
|
|
85
|
-
AdInsConstant.GetAllRefOffice = "/RefOffice/GetAllRefOffice";
|
|
86
|
-
AdInsConstant.GetListUpperHierarchyRefOfficeByRefOrgId = "/RefOffice/GetListUpperHierarchyRefOfficeByRefOrgId";
|
|
87
|
-
AdInsConstant.AddRefOffice = "/RefOffice/AddRefOffice";
|
|
88
|
-
AdInsConstant.EditRefOffice = "/RefOffice/EditRefOffice";
|
|
89
|
-
AdInsConstant.DeleteRefOffice = "/RefOffice/DeleteRefOffice";
|
|
90
|
-
//REF OFFICE AREA
|
|
91
|
-
AdInsConstant.GetAllListArea = "/RefOfficeArea/GetAllListArea";
|
|
92
|
-
AdInsConstant.GetRefOfficeAreaPaging = "/RefOfficeArea/GetRefOfficeAreaPaging";
|
|
93
|
-
AdInsConstant.GetRefArea = "/RefOfficeArea/GetRefArea";
|
|
94
|
-
AdInsConstant.AddRefOfficeArea = "/RefOfficeArea/AddRefOfficeArea";
|
|
95
|
-
AdInsConstant.EditRefOfficeArea = "/RefOfficeArea/EditRefOfficeArea";
|
|
96
|
-
AdInsConstant.DeleteRefOfficeArea = "/RefOfficeArea/DeleteRefOfficeArea";
|
|
97
|
-
AdInsConstant.CheckDuplAreaCode = "/RefOfficeArea/CheckDuplAreaCode";
|
|
98
|
-
//ORGANIZATION
|
|
99
|
-
AdInsConstant.GetRefOrg = "/OrganizationDefinition/GetRefOrg";
|
|
100
|
-
AdInsConstant.EditRefOrgWithOldParentId = "/OrganizationDefinition/EditRefOrgWithOldParentId";
|
|
101
|
-
AdInsConstant.DeleteRefOrg = "/OrganizationDefinition/DeleteRefOrg";
|
|
102
|
-
AdInsConstant.GetListAllRefOrg = "/OrganizationDefinition/GetListAllRefOrg";
|
|
103
|
-
AdInsConstant.AddRefOrg = "/OrganizationDefinition/AddRefOrg";
|
|
104
|
-
AdInsConstant.GetRefOrgPaging = "/OrganizationDefinition/GetRefOrgPaging";
|
|
105
|
-
AdInsConstant.GetAllRefBizUnit = "/OrganizationDefinition/GetAllRefBizUnit";
|
|
106
|
-
AdInsConstant.GetOrgJobTitleByMdlStruc = "/OrganizationDefinition/GetOrgJobTitleByMdlStruc";
|
|
107
|
-
AdInsConstant.GetRefBizUnitByOffice = "/OrganizationDefinition/GetRefBizUnitByOffice";
|
|
108
|
-
AdInsConstant.GetAllOrgMdl = "/OrganizationDefinition/GetAllOrgMdl";
|
|
109
|
-
AdInsConstant.GetAllActiveOrgMdlByRefOrgId = "/OrganizationDefinition/GetAllActiveOrgMdlByRefOrgId";
|
|
110
|
-
AdInsConstant.GetOrgMdlPaging = "/OrganizationDefinition/GetOrgMdlPaging";
|
|
111
|
-
AdInsConstant.DeleteOrgMdl = "/OrganizationDefinition/DeleteOrgMdl";
|
|
112
|
-
AdInsConstant.EditOrgMdl = "/OrganizationDefinition/EditOrgMdl";
|
|
113
|
-
AdInsConstant.AddOrgMdl = "/OrganizationDefinition/AddOrgMdl";
|
|
114
|
-
AdInsConstant.GetOrgMdl = "/OrganizationDefinition/GetOrgMdl";
|
|
115
|
-
AdInsConstant.GetOrgMdlByOrgMdlId = "/OrganizationDefinition/GetOrgMdlByOrgMdlId";
|
|
116
|
-
AdInsConstant.GetAllRefBizUnitKeyValuePair = "/OrganizationDefinition/GetAllRefBizUnitKeyValuePair";
|
|
117
|
-
AdInsConstant.DeleteOrgMdlStruc = "/OrganizationDefinition/DeleteOrgMdlStruc";
|
|
118
|
-
AdInsConstant.AddOrgMdlStruc = "/OrganizationDefinition/AddOrgMdlStruc";
|
|
119
|
-
AdInsConstant.EditOrgMdlStruc = "/OrganizationDefinition/EditOrgMdlStruc";
|
|
120
|
-
AdInsConstant.GetOrgMdlStruc = "/OrganizationDefinition/GetOrgMdlStruc";
|
|
121
|
-
AdInsConstant.GetOrgMdlStrucPaging = "/OrganizationDefinition/GetOrgMdlStrucPaging";
|
|
122
|
-
AdInsConstant.GetOrgMdlStrucById = "/OrganizationDefinition/GetOrgMdlStrucById";
|
|
123
|
-
//REF-JOB-TITLE
|
|
124
|
-
AdInsConstant.GetRefJobTitle = "/OrganizationDefinition/GetRefJobTitlePaging";
|
|
125
|
-
AdInsConstant.AddRefJobTitle = "/OrganizationDefinition/AddRefJobTitle";
|
|
126
|
-
AdInsConstant.EditRefJobTitle = "/OrganizationDefinition/EditRefJobTitle";
|
|
127
|
-
AdInsConstant.DeleteRefJobTitle = "/OrganizationDefinition/DeleteRefJobTitle";
|
|
128
|
-
AdInsConstant.GetJobPositionLvl = "/OrganizationDefinition/GetJobPositionLvl";
|
|
129
|
-
AdInsConstant.GetRefJobTitleById = "/OrganizationDefinition/GetRefJobTitleByRefJobTitleId";
|
|
130
|
-
//ORG JOB TITLE
|
|
131
|
-
AdInsConstant.GetOrgJobTitlePaging = "/OrganizationDefinition/GetOrgJobTitlePaging";
|
|
132
|
-
AdInsConstant.AddOrgJobTitle = "/OrganizationDefinition/AddOrgJobTitle";
|
|
133
|
-
AdInsConstant.EditOrgJobTitle = "/OrganizationDefinition/EditOrgJobTitle";
|
|
134
|
-
AdInsConstant.DeleteOrgJobTitle = "/OrganizationDefinition/DeleteOrgJobTitle";
|
|
135
|
-
AdInsConstant.GetOrgJobTitleByOrgJobTitleId = "/OrganizationDefinition/GetOrgJobTitleByOrgJobTitleId";
|
|
136
|
-
//REF-BANK
|
|
137
|
-
AdInsConstant.GetBankPaging = "/RefBank/GetRefBankPaging";
|
|
138
|
-
AdInsConstant.GetBank = "/RefBank/GetBank";
|
|
139
|
-
AdInsConstant.EditRefBank = "/RefBank/EditRefBank";
|
|
140
|
-
AdInsConstant.AddRefBank = "/RefBank/AddRefBank";
|
|
141
|
-
AdInsConstant.DeleteRefBank = "/RefBank/DeleteRefBank";
|
|
142
|
-
AdInsConstant.GetBankByBankCode = "/RefBank/GetBankByBankCode";
|
|
143
|
-
//REF-EMP
|
|
144
|
-
AdInsConstant.GetListEmployee = "/RefEmp/GetRefEmpPaging";
|
|
145
|
-
AdInsConstant.GetRefEmployeeById = "/RefEmp/GetEmp";
|
|
146
|
-
AdInsConstant.AddRefEmp = "/RefEmp/AddRefEmp";
|
|
147
|
-
AdInsConstant.EditRefEmp = "/RefEmp/EditRefEmp";
|
|
148
|
-
AdInsConstant.DeleteRefEmployee = "/RefEmp/DeleteRefEmp";
|
|
149
|
-
AdInsConstant.AddEmpBankAcc = "/EmpBankAcc/AddEmpBankAcc";
|
|
150
|
-
AdInsConstant.GetEmpBankAccByRefEmpId = "/EmpBankAcc/GetEmpBankAccByRefEmpId";
|
|
151
|
-
AdInsConstant.AddRefEmpAndEmpBankAcc = "/RefEmp/AddRefEmpAndEmpBankAcc";
|
|
152
|
-
AdInsConstant.EditRefEmpAndEmpBankAcc = "/RefEmp/EditRefEmpAndEmpBankAcc";
|
|
153
|
-
AdInsConstant.DeleteRefEmpAndEmpBankAcc = "/RefEmp/DeleteRefEmpAndEmpBankAcc";
|
|
154
|
-
AdInsConstant.GetListEmployeebyRefEmpId = "/EmpPosition/GetListEmployeebyRefEmpId";
|
|
155
|
-
AdInsConstant.GetEmpListByOfficeIdAndIsActive = "/RefEmp/GetEmpListByOfficeIdAndIsActive";
|
|
156
|
-
//EMP_POSITION
|
|
157
|
-
AdInsConstant.GetEmpPositionPaging = "/EmpPosition/GetEmpPositionPaging";
|
|
158
|
-
AdInsConstant.GetEmpByEmpPositionId = "/EmpPosition/GetEmpByEmpPositionId";
|
|
159
|
-
AdInsConstant.AddEmpPosition = "/EmpPosition/AddEmpPosition";
|
|
160
|
-
AdInsConstant.EditEmpPosition = "/EmpPosition/EditEmpPosition";
|
|
161
|
-
AdInsConstant.DeleteEmpPosition = "/EmpPosition/DeleteEmpPosition";
|
|
162
|
-
AdInsConstant.GetListUserEmployee = "/EmpPosition/GetListUserEmployee";
|
|
163
|
-
//REF-USER
|
|
164
|
-
AdInsConstant.GetRefUserPaging = "/UserManagement/GetRefUserPaging";
|
|
165
|
-
AdInsConstant.AddRefUser = "/UserManagement/AddRefUser";
|
|
166
|
-
AdInsConstant.EditRefUser = "/UserManagement/EditRefUser";
|
|
167
|
-
AdInsConstant.ChangePassword = "/UserManagement/ChangePassword";
|
|
168
|
-
AdInsConstant.GetRefUser = "/UserManagement/GetRefUser";
|
|
169
|
-
AdInsConstant.GetUserByUsername = "/UserManagement/GetUserByUsername";
|
|
170
|
-
AdInsConstant.ValidatePwd = "/UserManagement/ValidatePwd";
|
|
171
|
-
AdInsConstant.GetCountRefUserByRefEmpId = "/UserManagement/GetCountRefUserByRefEmpId";
|
|
172
|
-
AdInsConstant.ResetPassword = "/UserManagement/ResetPassword";
|
|
173
|
-
//REF-ROLE
|
|
174
|
-
AdInsConstant.GetRefRolePaging = "/UserManagement/GetRefRolePaging";
|
|
175
|
-
AdInsConstant.AddRefRole = "/UserManagement/AddRefRole";
|
|
176
|
-
AdInsConstant.EditRefRole = "/UserManagement/EditRefRole";
|
|
177
|
-
AdInsConstant.DeleteRefRole = "/UserManagement/DeleteRefRole";
|
|
178
|
-
AdInsConstant.GetRefRoleByRefRoleId = "/RefRole/GetRefRoleByRefRoleId";
|
|
179
|
-
AdInsConstant.GetRefRole = "/RefRole/GetRefRole";
|
|
180
|
-
AdInsConstant.GetListDataCurrentUser = "/UserManagement/GetListDataCurrentUser";
|
|
181
|
-
AdInsConstant.GetRefRoleByEmpPositionId = "/RefRole/GetRefRoleByEmpPositionId";
|
|
182
|
-
AdInsConstant.EditUserTitleRole = "/UserManagement/EditUserTitleRole";
|
|
183
|
-
AdInsConstant.AddUserTitleRole = "/UserManagement/AddUserTitleRole";
|
|
184
|
-
AdInsConstant.AssignRoleToUsers = "/UserManagement/AssignRoleToUsers";
|
|
185
|
-
AdInsConstant.GetUserTitleRoleByEmpPositionIdAndRefRoleId = "/UserManagement/GetUserTitleRoleByEmpPositionIdAndRefRoleId";
|
|
186
|
-
//ZIPCODE
|
|
187
|
-
AdInsConstant.GetRefZipcodePaging = "/RefZipcode/GetRefZipcodePaging";
|
|
188
|
-
AdInsConstant.GetRefZipCode = "/RefZipcode/GetRefZipcode";
|
|
189
|
-
AdInsConstant.GetRefProvDistrictObj = "/RefProvDistrict/GetRefProvDistrict";
|
|
190
|
-
AdInsConstant.EditRefZipcode = "/RefZipcode/EditRefZipCode";
|
|
191
|
-
AdInsConstant.AddRefZipcode = "/RefZipcode/AddRefZipCode";
|
|
192
|
-
AdInsConstant.DeleteRefZipcode = "/RefZipcode/DeleteRefZipCode";
|
|
193
|
-
//BUSINESS UNIT
|
|
194
|
-
AdInsConstant.GetBusinessUnitPaging = "/OrganizationDefinition/GetRefBizUnitPaging";
|
|
195
|
-
AdInsConstant.GetRefBizUnit = "/OrganizationDefinition/GetRefBizUnit";
|
|
196
|
-
AdInsConstant.AddRefBizUnit = "/OrganizationDefinition/AddRefBizUnit";
|
|
197
|
-
AdInsConstant.EditRefBizUnit = "/OrganizationDefinition/EditRefBizUnit";
|
|
198
|
-
//REF COY
|
|
199
|
-
AdInsConstant.GetRefCoyPaging = "/RefCoy/GetRefCoyPaging";
|
|
200
|
-
AdInsConstant.GetRefCoy = "/RefCoy/GetRefCoy";
|
|
201
|
-
AdInsConstant.EditRefCoy = "/RefCoy/EditRefCoy";
|
|
202
|
-
AdInsConstant.GetCoyBodPaging = "/CoyBod/GetCoyBodPaging";
|
|
203
|
-
AdInsConstant.AddCoyBod = "/CoyBod/AddCoyBOD";
|
|
204
|
-
AdInsConstant.EditCoyBod = "/CoyBod/EditCoyBOD";
|
|
205
|
-
AdInsConstant.DeleteCoyBod = "/CoyBod/DeleteCoyBOD";
|
|
206
|
-
AdInsConstant.GetCoyBod = "/CoyBod/GetCoyBod";
|
|
207
|
-
AdInsConstant.GetCommissionerPaging = "/CoyCommissioner/GetCoyCommissionerPaging";
|
|
208
|
-
AdInsConstant.AddCoyCommissioner = "/CoyCommissioner/AddCoyCommissioner";
|
|
209
|
-
AdInsConstant.EditCoyCommissioner = "/CoyCommissioner/EditCoyCommissioner";
|
|
210
|
-
AdInsConstant.DeleteCoyCommissioner = "/CoyCommissioner/DeleteCoyCommissioner";
|
|
211
|
-
AdInsConstant.GetCoyCommissioner = "/CoyCommissioner/GetCoyCommissioner";
|
|
212
|
-
//REF TAX OFFICE
|
|
213
|
-
AdInsConstant.GetAllActiveRefTaxOffice = "/RefTaxOffice/GetAllActiveRefTaxOffice";
|
|
214
|
-
//REF MASTER
|
|
215
|
-
AdInsConstant.GetRefMasterList = "/RefMaster/GetRefMasterList";
|
|
216
|
-
AdInsConstant.GetRefMastersByCriteria = "/RefMaster/GetRefMastersByCriteria";
|
|
217
|
-
AdInsConstant.GetRefMaster = "/RefMaster/GetRefMaster";
|
|
218
|
-
AdInsConstant.GetRefMasterListByTypeCode = "/RefMaster/GetRefMasterListByTypeCode";
|
|
219
|
-
AdInsConstant.GetRefMasterListKeyValuePair = "/RefMaster/GetRefMasterListKeyValuePair";
|
|
220
|
-
AdInsConstant.AddRefMaster = "/RefMaster/AddRefMaster";
|
|
221
|
-
AdInsConstant.EditRefMaster = "/RefMaster/EditRefMaster";
|
|
222
|
-
AdInsConstant.GetRefMasterType = "/RefMaster/GetRefMasterType";
|
|
223
|
-
AdInsConstant.DeleteRefMaster = "/RefMaster/DeleteRefMaster";
|
|
224
|
-
AdInsConstant.GetRefMasterPaging = "/RefMaster/GetRefMasterPaging";
|
|
225
|
-
//REF PROV DISTRICT
|
|
226
|
-
AdInsConstant.GetRefProvDistrictPaging = "/RefProvDistrict/GetRefProvDistrictPaging";
|
|
227
|
-
//MENU
|
|
228
|
-
AdInsConstant.GetRefFormPaging = "/MenuManagement/GetRefFormPaging";
|
|
229
|
-
AdInsConstant.GetAllActiveRefFormByRefRoleId = "/MenuManagement/GetAllActiveRefFormByRefRoleId";
|
|
230
|
-
AdInsConstant.GetRefFormByRefFormId = "/MenuManagement/GetRefFormByRefFormId";
|
|
231
|
-
AdInsConstant.EditRefForm = "/MenuManagement/EditRefForm";
|
|
232
|
-
AdInsConstant.AddRefForm = "/MenuManagement/AddRefForm";
|
|
233
|
-
AdInsConstant.DeleteRefForm = "/MenuManagement/DeleteRefForm";
|
|
234
|
-
AdInsConstant.AssignRoleToForms = "/MenuManagement/AssignRoleToForms";
|
|
235
|
-
AdInsConstant.GetAllAuthFormsByRefRoleId = "/MenuManagement/GetAllAuthFormsByRefRoleId";
|
|
236
|
-
AdInsConstant.GetAuthByRefFormIdAndRefRoleId = "/MenuManagement/GetAuthByRefFormIdAndRefRoleId";
|
|
237
|
-
AdInsConstant.UpdateFormFeatureAuthForm = "/MenuManagement/UpdateFormFeatureAuthForm";
|
|
238
|
-
//FORM FEATURE
|
|
239
|
-
AdInsConstant.GetListRefFeature = "/RefFeature/GetListRefFeature";
|
|
240
|
-
AdInsConstant.GetRefFeatureByComponent = "/RefFeature/GetRefFeatureByComponent";
|
|
241
|
-
//HOLIDAY
|
|
242
|
-
AdInsConstant.GetAllActiveHolidaySchmH = "/Holiday/GetAllActiveHolidaySchmH";
|
|
243
|
-
AdInsConstant.GetHolidayPaging = "/Holiday/GetHolidayPaging";
|
|
244
|
-
AdInsConstant.AddHolidaySchmH = "/Holiday/AddHolidaySchmH";
|
|
245
|
-
AdInsConstant.AddHolidaySchmD = "/Holiday/AddHolidaySchmD";
|
|
246
|
-
AdInsConstant.AddHolidaySchmDUntilYear = "/Holiday/AddHolidaySchmDUntilYear";
|
|
247
|
-
AdInsConstant.GetHolidaySchmH = "/Holiday/GetHolidaySchmH";
|
|
248
|
-
AdInsConstant.EditHolidaySchmHOnly = "/Holiday/EditHolidaySchmHOnly";
|
|
249
|
-
AdInsConstant.DeleteHolidaySchmH = "/Holiday/DeleteHolidaySchmH";
|
|
250
|
-
AdInsConstant.DeleteHolidaySchmD = "/Holiday/DeleteHolidaySchmD";
|
|
251
|
-
AdInsConstant.GetHolidayDetailPaging = "/Holiday/GetHolidayDetailPaging";
|
|
252
|
-
//USER SESSION LOG
|
|
253
|
-
AdInsConstant.SelectRole = "/UserSessionLog/SelectRole";
|
|
254
|
-
//NOTIFICATION
|
|
255
|
-
AdInsConstant.NotificationPost = "/Message/Post";
|
|
256
|
-
//REF CURR
|
|
257
|
-
AdInsConstant.GetRefCurrPaging = "/RefCurr/GetRefCurrPaging";
|
|
258
|
-
AdInsConstant.AddRefCurr = "/RefCurr/AddRefCurr";
|
|
259
|
-
AdInsConstant.EditRefCurr = "/RefCurr/EditRefCurr";
|
|
260
|
-
AdInsConstant.GetRefCurr = "/RefCurr/GetRefCurr";
|
|
261
|
-
AdInsConstant.AddExchangeRate = "/RefCurr/AddExchangeRate";
|
|
262
|
-
AdInsConstant.EditExchangeRate = "/RefCurr/EditExchangeRate";
|
|
263
|
-
AdInsConstant.GetExchangeRate = "/RefCurr/GetExchangeRate";
|
|
264
|
-
//WORKHOUR
|
|
265
|
-
AdInsConstant.GetListOfWorkingHourSchm = "/WorkHour/GetListOfWorkingHourSchm";
|
|
266
|
-
AdInsConstant.GetWorkHourSchmHPaging = "/WorkHour/GetWorkHourSchmHPaging";
|
|
267
|
-
AdInsConstant.AddWorkingHourSchmH = "/WorkHour/AddWorkingHourSchmH";
|
|
268
|
-
AdInsConstant.EditWorkingHourSchmH = "/WorkHour/EditWorkingHourSchmH";
|
|
269
|
-
AdInsConstant.GetWorkingHourSchmH = "/WorkHour/GetWorkingHourSchmH";
|
|
270
|
-
AdInsConstant.GetWorkingHourSchmD = "/WorkHour/GetWorkingHourSchmD";
|
|
271
|
-
AdInsConstant.DeleteWorkingHourSchmH = "/WorkHour/DeleteWorkingHourSchmH";
|
|
272
79
|
return AdInsConstant;
|
|
273
80
|
}());
|
|
274
81
|
|
|
@@ -352,32 +159,31 @@
|
|
|
352
159
|
this.formattedAmount = '';
|
|
353
160
|
this.amount = 0;
|
|
354
161
|
}
|
|
162
|
+
// hide(obj:any){
|
|
163
|
+
// var target =event.srcElement;
|
|
164
|
+
// // var idAttr = target.attributes.id;
|
|
165
|
+
// // var value = idAttr.nodeValue;
|
|
166
|
+
// }
|
|
167
|
+
// hide(obj:any){
|
|
168
|
+
// var target =event.srcElement;
|
|
169
|
+
// // var idAttr = target.attributes.id;
|
|
170
|
+
// // var value = idAttr.nodeValue;
|
|
171
|
+
// }
|
|
355
172
|
/**
|
|
356
|
-
* @param {?} obj
|
|
357
|
-
* @return {?}
|
|
358
|
-
*/
|
|
359
|
-
UCSearchComponent.prototype.hide = /**
|
|
360
|
-
* @param {?} obj
|
|
361
|
-
* @return {?}
|
|
362
|
-
*/
|
|
363
|
-
function (obj) {
|
|
364
|
-
console.log(obj);
|
|
365
|
-
/** @type {?} */
|
|
366
|
-
var target = event.srcElement;
|
|
367
|
-
console.log(target);
|
|
368
|
-
// var idAttr = target.attributes.id;
|
|
369
|
-
// var value = idAttr.nodeValue;
|
|
370
|
-
};
|
|
371
|
-
/**
|
|
372
|
-
* @return {?}
|
|
373
|
-
*/
|
|
374
|
-
UCSearchComponent.prototype.changeState = /**
|
|
375
173
|
* @return {?}
|
|
376
174
|
*/
|
|
175
|
+
UCSearchComponent.prototype.changeState =
|
|
176
|
+
// hide(obj:any){
|
|
177
|
+
// var target =event.srcElement;
|
|
178
|
+
// // var idAttr = target.attributes.id;
|
|
179
|
+
// // var value = idAttr.nodeValue;
|
|
180
|
+
// }
|
|
181
|
+
/**
|
|
182
|
+
* @return {?}
|
|
183
|
+
*/
|
|
377
184
|
function () {
|
|
378
185
|
this.currentState = this.currentState === 'initial' ? 'final' : 'initial';
|
|
379
186
|
this.isHidden = this.isHidden === false ? true : false;
|
|
380
|
-
console.log(this.currentState);
|
|
381
187
|
};
|
|
382
188
|
/**
|
|
383
189
|
* @return {?}
|
|
@@ -428,9 +234,26 @@
|
|
|
428
234
|
arrayCrit.push(criteriaObject);
|
|
429
235
|
request.criteria = arrayCrit;
|
|
430
236
|
request[data.component[i].criteriaPropName] = data.component[i].criteriaPropValue;
|
|
237
|
+
// Pengecekan penggunaan url atau path
|
|
238
|
+
if (data.component[i].path != undefined && data.component[i].path != "") {
|
|
239
|
+
if (_this.searchInput.ddlEnvironments != undefined && _this.searchInput.ddlEnvironments.length != 0) {
|
|
240
|
+
for (var y = 0; y < _this.searchInput.ddlEnvironments.length; y++) {
|
|
241
|
+
if (data.component[i].name == _this.searchInput.ddlEnvironments[y].name) {
|
|
242
|
+
data.component[i].fullpath = _this.searchInput.ddlEnvironments[y].environment + data.component[i].path;
|
|
243
|
+
break;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
248
|
+
data.component[i].fullpath = data.component[i].url;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
else {
|
|
252
|
+
data.component[i].fullpath = data.component[i].url;
|
|
253
|
+
}
|
|
431
254
|
//lempar objectnya sekalian sama urlnya, nnti di bind di dalem karena masalah di asyncnya
|
|
432
255
|
//biar tiap function ada state2nya sendiri
|
|
433
|
-
_this.resolveObject(data.component[i], data.component[i].
|
|
256
|
+
_this.resolveObject(data.component[i], data.component[i].fullpath, request);
|
|
434
257
|
}
|
|
435
258
|
if (data.component[i].type == "numeric") {
|
|
436
259
|
data.component[i].value = parseFloat(data.component[i].value).toLocaleString('en');
|
|
@@ -539,6 +362,8 @@
|
|
|
539
362
|
var request = new RequestCriteriaObj();
|
|
540
363
|
/** @type {?} */
|
|
541
364
|
var arrCrit = new Array();
|
|
365
|
+
/** @type {?} */
|
|
366
|
+
var IsQueryIn = false;
|
|
542
367
|
request.pageNo = pageNo;
|
|
543
368
|
request.rowPerPage = rowPerPage;
|
|
544
369
|
request.orderBy = orderBy;
|
|
@@ -549,8 +374,13 @@
|
|
|
549
374
|
/** @type {?} */
|
|
550
375
|
var component = this.myForm.nativeElement[i];
|
|
551
376
|
critObj.DataType = component.getAttribute('data-type');
|
|
552
|
-
console.log(component);
|
|
553
377
|
//Ini khusus kalau dari Drop Down
|
|
378
|
+
if (component.getAttribute('query-in') != null && component.getAttribute('query-in') == "true") {
|
|
379
|
+
IsQueryIn = true;
|
|
380
|
+
}
|
|
381
|
+
else {
|
|
382
|
+
IsQueryIn = false;
|
|
383
|
+
}
|
|
554
384
|
if (component.value != "") {
|
|
555
385
|
if (component.nodeName == 'SELECT') {
|
|
556
386
|
/** @type {?} */
|
|
@@ -564,6 +394,19 @@
|
|
|
564
394
|
critObj.value = text;
|
|
565
395
|
arrCrit.push(critObj);
|
|
566
396
|
}
|
|
397
|
+
else if (text == "All" && IsQueryIn == true && component.options.length != 0) {
|
|
398
|
+
/** @type {?} */
|
|
399
|
+
var ddlList = new Array();
|
|
400
|
+
for (var x = 0; x < component.options.length; x++) {
|
|
401
|
+
if (x != 0) {
|
|
402
|
+
ddlList.push(component.options[x].value);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
critObj.restriction = AdInsConstant.RestrictionIn;
|
|
406
|
+
critObj.propName = component.name;
|
|
407
|
+
critObj.listValue = ddlList;
|
|
408
|
+
arrCrit.push(critObj);
|
|
409
|
+
}
|
|
567
410
|
}
|
|
568
411
|
else {
|
|
569
412
|
//Kalau ada Percent maka yang dipake nnti adalah Restrictions Like
|
|
@@ -577,7 +420,6 @@
|
|
|
577
420
|
critObj.restriction = component.getAttribute('data-restriction');
|
|
578
421
|
if (component.getAttribute('data-type') == 'numeric') {
|
|
579
422
|
component.value = parseFloat(component.value.replace(/,/g, ''));
|
|
580
|
-
console.log(component.value);
|
|
581
423
|
}
|
|
582
424
|
}
|
|
583
425
|
else {
|
|
@@ -655,6 +497,7 @@
|
|
|
655
497
|
* @param {?} tempData
|
|
656
498
|
* @return {?}
|
|
657
499
|
*/function (tempData) {
|
|
500
|
+
obj.itemsUrl = new Array();
|
|
658
501
|
obj.itemsUrl = tempData.ReturnObject;
|
|
659
502
|
}));
|
|
660
503
|
};
|
|
@@ -668,7 +511,6 @@
|
|
|
668
511
|
*/
|
|
669
512
|
function (element) {
|
|
670
513
|
this.formattedAmount = parseFloat(element.target.value).toLocaleString('en');
|
|
671
|
-
// Remove or comment this line if you dont want
|
|
672
514
|
// to show the formatted amount in the textbox.
|
|
673
515
|
element.target.value = this.formattedAmount;
|
|
674
516
|
};
|
|
@@ -704,7 +546,6 @@
|
|
|
704
546
|
*/function (response) {
|
|
705
547
|
_this.ExcelData = response["Data"];
|
|
706
548
|
_this.excelService.exportAsExcelFile(_this.ExcelData, 'sample');
|
|
707
|
-
console.log(response);
|
|
708
549
|
}), ( /**
|
|
709
550
|
* @param {?} error
|
|
710
551
|
* @return {?}
|
|
@@ -742,6 +583,22 @@
|
|
|
742
583
|
arrayCrit.push(critObj);
|
|
743
584
|
}
|
|
744
585
|
request.criteria = arrayCrit;
|
|
586
|
+
if (jsonComp[j].path != undefined && jsonComp[j].path != "") {
|
|
587
|
+
if (this.searchInput.ddlEnvironments != undefined && this.searchInput.ddlEnvironments.length != 0) {
|
|
588
|
+
for (var y = 0; y < this.searchInput.ddlEnvironments.length; y++) {
|
|
589
|
+
if (jsonComp[j].name == this.searchInput.ddlEnvironments[y].name) {
|
|
590
|
+
jsonComp[j].fullpath = this.searchInput.ddlEnvironments[y].environment + jsonComp[j].path;
|
|
591
|
+
break;
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
else {
|
|
596
|
+
jsonComp[j].fullpath = jsonComp[j].url;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
else {
|
|
600
|
+
jsonComp[j].fullpath = jsonComp[j].url;
|
|
601
|
+
}
|
|
745
602
|
this.resolveObject(jsonComp[j], jsonComp[j].url, request);
|
|
746
603
|
}
|
|
747
604
|
}
|
|
@@ -750,7 +607,7 @@
|
|
|
750
607
|
UCSearchComponent.decorators = [
|
|
751
608
|
{ type: i0.Component, args: [{
|
|
752
609
|
selector: 'lib-UCSearch',
|
|
753
|
-
template: "<!-- Basic form layout section start -->\r\n<section id=\"horizontal-form-layouts\">\r\n <div class=\"row text-left\">\r\n <div class=\"col-md-12\">\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <div class=\"px-3\">\r\n <form class=\"form form-horizontal\" id=\"formSearch\" #formIdSearch>\r\n <div class=\"form-body\">\r\n <h4 class=\"form-section font-weight-bold\">\r\n <div (click)=\"changeState()\" class=\"btn no-padding cursor-pointer flip\">\r\n <i class=\"fa\" style=\"font-size: 15px; margin: 0px 0px 5px -15px;\" [ngClass]=\"isHidden ? 'fa-chevron-right' : 'fa-chevron-down'\"></i>\r\n </div>\r\n {{configuration?.title}} \r\n </h4>\r\n <!-- Ini Digunakan untuk Generate Dynamic Component -->\r\n <!-- [hidden]=\"isHidden\" -->\r\n <div class=\"panel-active\" [@changeDivSize]=currentState>\r\n <div class=\"row\">\r\n <div class=\"col-md-6 form-group\"\r\n *ngFor=\"let question of configuration?.component\">\r\n <div class=\"col-md-12\">\r\n <div class=\"row\">\r\n <label class=\"col-md-5 no-padding\" for=\"{{question.id}}\"\r\n translate>{{question.label}}</label>\r\n <div class=\"col-md-7 no-padding\">\r\n <div *ngIf=\"question.type=='textbox'\">\r\n <input type=\"text\" id=\"{{question.id}}\" class=\"form-control search-form-control\"\r\n name=\"{{question.name}}\" value=\"{{question.value}}\"\r\n attr.data-type=\"{{question.datatype}}\" attr.data-restriction=\"{{question.restriction}}\" >\r\n </div>\r\n <div *ngIf=\"question.type=='textarea'\">\r\n <textarea type=\"text\" id=\"{{question.id}}\" class=\"form-control search-form-control\"\r\n name=\"{{question.name}}\" attr.data-type=\"{{question.datatype}}\"\r\n value=\"{{question.value}}\"></textarea>\r\n </div>\r\n <div *ngIf=\"question.type=='numeric'\">\r\n <input type=\"text\" id=\"{{question.id}}\" (focus)=\"transformToDecimal($event)\"\r\n (blur)=\"transformAmount($event)\" class=\"form-control search-form-control\"\r\n name=\"{{question.name}}\" value=\"{{question.value}}\"\r\n attr.data-restriction=\"{{question.restriction}}\" attr.data-type=\"{{question.datatype}}\">\r\n </div>\r\n \r\n <!-- End Hardcode Lookup didalem-->\r\n <div *ngIf=\"question.type=='datepicker'\">\r\n <input type=\"date\" id=\"{{question.id}}\" class=\"form-control search-form-control btn-lookup\"\r\n name=\"{{question.name}}\" value=\"{{question.value}}\" attr.data-type=\"{{question.datatype}}\"\r\n attr.data-restriction=\"{{question.restriction}}\">\r\n </div>\r\n <div *ngIf=\"question.type=='dropdown'\">\r\n <!-- Ini kalau datanya tidak di load dari URL -->\r\n <div *ngIf=\"!question.isFromURL\">\r\n <select name=\"{{question.name}}\"\r\n class=\"form-control search-form-control\" attr.data-type=\"{{question.datatype}}\">\r\n <option *ngIf=\"!question.isSelectOne\" value=\"All\">\r\n All\r\n </option>\r\n <option *ngFor=\"let item of question?.items\" value=\"{{item.key}}\">\r\n {{item.value}}\r\n </option>\r\n </select>\r\n </div>\r\n <!-- Ini kalau datanya di load dari URL -->\r\n <div *ngIf=\"question.isFromURL\">\r\n <div *ngIf=\"question.isEvent\">\r\n <select name=\"{{question.name}}\" (change)=\"onChangeEvent($event.target.value, question)\"\r\n class=\"form-control search-form-control\" attr.data-type=\"{{question.datatype}}\">\r\n <option *ngIf=\"!question.isSelectOne\" value=\"All\">\r\n All\r\n </option>\r\n <option *ngFor=\"let item of question?.itemsUrl\" value=\"{{item.Key}}\">\r\n {{item.Value}}\r\n </option>\r\n </select>\r\n </div>\r\n <div *ngIf=\"!question.isEvent\">\r\n <select name=\"{{question.name}}\"\r\n class=\"form-control search-form-control\" attr.data-type=\"{{question.datatype}}\">\r\n <option *ngIf=\"!question.isSelectOne\" value=\"All\">\r\n All\r\n </option>\r\n <option *ngFor=\"let item of question?.itemsUrl\" value=\"{{item.Key}}\">\r\n {{item.Value}}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col-md-12 no-padding\">\r\n <form>\r\n <div class=\"form-actions right\">\r\n <button *ngIf=\"exportData == true\" type=\"button\" (click)=\"exportAsXLSX()\"\r\n class=\"btn btn-raised btn-success mr-1\" translate>\r\n <i class=\"fa ft-download\"></i> Export Excel\r\n </button>\r\n <button type=\"button\" (click)=\"reset()\" class=\"btn btn-raised btn-warning mr-1\" translate>\r\n <i class=\"ft-x\"></i> Reset\r\n </button>\r\n <button type=\"button\" (click)=\"searchClick()\" class=\"btn btn-raised btn-primary\" translate>\r\n <i class=\"fa fa-search\"></i> Search\r\n </button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</section>\r\n<br>\r\n<!-- // Basic form layout section end -->",
|
|
610
|
+
template: "<!-- Basic form layout section start -->\r\n<section id=\"horizontal-form-layouts\">\r\n <div class=\"row text-left\">\r\n <div class=\"col-md-12\">\r\n <div class=\"card\">\r\n <div class=\"card-body\">\r\n <div class=\"px-3\">\r\n <form class=\"form form-horizontal\" id=\"formSearch\" #formIdSearch>\r\n <div class=\"form-body\">\r\n <h4 class=\"form-section font-weight-bold\">\r\n <div (click)=\"changeState()\" class=\"btn no-padding cursor-pointer flip\">\r\n <i class=\"fa\" style=\"font-size: 15px; margin: 0px 0px 5px -15px;\" [ngClass]=\"isHidden ? 'fa-chevron-right' : 'fa-chevron-down'\"></i>\r\n </div>\r\n {{configuration?.title}} \r\n </h4>\r\n <!-- Ini Digunakan untuk Generate Dynamic Component -->\r\n <!-- [hidden]=\"isHidden\" -->\r\n <div class=\"panel-active\" [@changeDivSize]=currentState>\r\n <div class=\"row\">\r\n <div class=\"col-md-6 form-group\"\r\n *ngFor=\"let question of configuration?.component\">\r\n <div class=\"col-md-12\">\r\n <div class=\"row\">\r\n <label class=\"col-md-5 no-padding\" for=\"{{question.id}}\"\r\n translate>{{question.label}}</label>\r\n <div class=\"col-md-7 no-padding\">\r\n <div *ngIf=\"question.type=='textbox'\">\r\n <input type=\"text\" id=\"{{question.id}}\" class=\"form-control search-form-control\"\r\n name=\"{{question.name}}\" value=\"{{question.value}}\"\r\n attr.data-type=\"{{question.datatype}}\" attr.data-restriction=\"{{question.restriction}}\" >\r\n </div>\r\n <div *ngIf=\"question.type=='textarea'\">\r\n <textarea type=\"text\" id=\"{{question.id}}\" class=\"form-control search-form-control\"\r\n name=\"{{question.name}}\" attr.data-type=\"{{question.datatype}}\"\r\n value=\"{{question.value}}\"></textarea>\r\n </div>\r\n <div *ngIf=\"question.type=='numeric'\">\r\n <input type=\"text\" id=\"{{question.id}}\" (focus)=\"transformToDecimal($event)\"\r\n (blur)=\"transformAmount($event)\" class=\"form-control search-form-control\"\r\n name=\"{{question.name}}\" value=\"{{question.value}}\"\r\n attr.data-restriction=\"{{question.restriction}}\" attr.data-type=\"{{question.datatype}}\">\r\n </div>\r\n \r\n <!-- End Hardcode Lookup didalem-->\r\n <div *ngIf=\"question.type=='datepicker'\">\r\n <input type=\"date\" id=\"{{question.id}}\" class=\"form-control search-form-control btn-lookup\"\r\n name=\"{{question.name}}\" value=\"{{question.value}}\" attr.data-type=\"{{question.datatype}}\"\r\n attr.data-restriction=\"{{question.restriction}}\">\r\n </div>\r\n <div *ngIf=\"question.type=='dropdown'\">\r\n <!-- Ini kalau datanya tidak di load dari URL -->\r\n <div *ngIf=\"!question.isFromURL\">\r\n <select name=\"{{question.name}}\"\r\n class=\"form-control search-form-control\" attr.query-in=\"{{question.isQueryIn}}\" attr.data-type=\"{{question.datatype}}\">\r\n <option *ngIf=\"!question.isSelectOne\" value=\"All\">\r\n All\r\n </option>\r\n <option *ngFor=\"let item of question?.items\" value=\"{{item.key}}\">\r\n {{item.value}}\r\n </option>\r\n </select>\r\n </div>\r\n <!-- Ini kalau datanya di load dari URL -->\r\n <div *ngIf=\"question.isFromURL\">\r\n <div *ngIf=\"question.isEvent\">\r\n <select name=\"{{question.name}}\" (change)=\"onChangeEvent($event.target.value, question)\"\r\n class=\"form-control search-form-control\" attr.query-in=\"{{question.isQueryIn}}\" attr.data-type=\"{{question.datatype}}\">\r\n <option *ngIf=\"!question.isSelectOne\" value=\"All\">\r\n All\r\n </option>\r\n <option *ngFor=\"let item of question?.itemsUrl\" value=\"{{item.Key}}\">\r\n {{item.Value}}\r\n </option>\r\n </select>\r\n </div>\r\n <div *ngIf=\"!question.isEvent\">\r\n <select name=\"{{question.name}}\"\r\n class=\"form-control search-form-control\" attr.query-in=\"{{question.isQueryIn}}\" attr.data-type=\"{{question.datatype}}\">\r\n <option *ngIf=\"!question.isSelectOne\" value=\"All\">\r\n All\r\n </option>\r\n <option *ngFor=\"let item of question?.itemsUrl\" value=\"{{item.Key}}\">\r\n {{item.Value}}\r\n </option>\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"col-md-12 no-padding\">\r\n <form>\r\n <div class=\"form-actions right\">\r\n <button *ngIf=\"exportData == true\" type=\"button\" (click)=\"exportAsXLSX()\"\r\n class=\"btn btn-raised btn-success mr-1\" translate>\r\n <i class=\"fa ft-download\"></i> Export Excel\r\n </button>\r\n <button type=\"button\" (click)=\"reset()\" class=\"btn btn-raised btn-warning mr-1\" translate>\r\n <i class=\"ft-x\"></i> Reset\r\n </button>\r\n <button type=\"button\" (click)=\"searchClick()\" class=\"btn btn-raised btn-primary\" translate>\r\n <i class=\"fa fa-search\"></i> Search\r\n </button>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</section>\r\n<br>\r\n<!-- // Basic form layout section end -->",
|
|
754
611
|
providers: [ExcelService],
|
|
755
612
|
animations: [
|
|
756
613
|
animations.trigger('changeDivSize', [
|