@adins/ucsearch 1.0.0
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 +24 -0
- package/bundles/ucsearch.umd.js +656 -0
- package/bundles/ucsearch.umd.js.map +1 -0
- package/bundles/ucsearch.umd.min.js +2 -0
- package/bundles/ucsearch.umd.min.js.map +1 -0
- package/esm2015/lib/model/AdInstConstant.js +597 -0
- package/esm2015/lib/model/CriteriaObj.Model.js +26 -0
- package/esm2015/lib/model/HttpRequestObj.model.js +29 -0
- package/esm2015/lib/model/RequestCriteriaObj.model.js +28 -0
- package/esm2015/lib/ucsearch.component.js +392 -0
- package/esm2015/lib/ucsearch.module.js +19 -0
- package/esm2015/lib/ucsearch.service.js +18 -0
- package/esm2015/public-api.js +11 -0
- package/esm2015/ucsearch.js +9 -0
- package/esm5/lib/model/AdInstConstant.js +601 -0
- package/esm5/lib/model/CriteriaObj.Model.js +28 -0
- package/esm5/lib/model/HttpRequestObj.model.js +33 -0
- package/esm5/lib/model/RequestCriteriaObj.model.js +30 -0
- package/esm5/lib/ucsearch.component.js +432 -0
- package/esm5/lib/ucsearch.module.js +23 -0
- package/esm5/lib/ucsearch.service.js +21 -0
- package/esm5/public-api.js +11 -0
- package/esm5/ucsearch.js +9 -0
- package/fesm2015/ucsearch.js +600 -0
- package/fesm2015/ucsearch.js.map +1 -0
- package/fesm5/ucsearch.js +649 -0
- package/fesm5/ucsearch.js.map +1 -0
- package/lib/model/AdInstConstant.d.ts +190 -0
- package/lib/model/CriteriaObj.Model.d.ts +9 -0
- package/lib/model/HttpRequestObj.model.d.ts +12 -0
- package/lib/model/RequestCriteriaObj.model.d.ts +11 -0
- package/lib/ucsearch.component.d.ts +53 -0
- package/lib/ucsearch.module.d.ts +2 -0
- package/lib/ucsearch.service.d.ts +3 -0
- package/package.json +34 -0
- package/public-api.d.ts +3 -0
- package/ucsearch.d.ts +4 -0
- package/ucsearch.metadata.json +1 -0
|
@@ -0,0 +1,649 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import 'rxjs/add/operator/map';
|
|
3
|
+
import { DOCUMENT } from '@angular/platform-browser';
|
|
4
|
+
import { Injectable, NgModule, Component, Input, ViewChild, Inject, Renderer2, EventEmitter, Output, defineInjectable } from '@angular/core';
|
|
5
|
+
import { formatDate, DecimalPipe, CommonModule } from '@angular/common';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @fileoverview added by tsickle
|
|
9
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
10
|
+
*/
|
|
11
|
+
var UCSearchService = /** @class */ (function () {
|
|
12
|
+
function UCSearchService() {
|
|
13
|
+
}
|
|
14
|
+
UCSearchService.decorators = [
|
|
15
|
+
{ type: Injectable, args: [{
|
|
16
|
+
providedIn: 'root'
|
|
17
|
+
},] }
|
|
18
|
+
];
|
|
19
|
+
/** @nocollapse */
|
|
20
|
+
UCSearchService.ctorParameters = function () { return []; };
|
|
21
|
+
/** @nocollapse */ UCSearchService.ngInjectableDef = defineInjectable({ factory: function UCSearchService_Factory() { return new UCSearchService(); }, token: UCSearchService, providedIn: "root" });
|
|
22
|
+
return UCSearchService;
|
|
23
|
+
}());
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* @fileoverview added by tsickle
|
|
27
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
28
|
+
*/
|
|
29
|
+
var CriteriaObj = /** @class */ (function () {
|
|
30
|
+
function CriteriaObj() {
|
|
31
|
+
this.low = 0;
|
|
32
|
+
this.high = 0;
|
|
33
|
+
this.DataType = 'Text';
|
|
34
|
+
}
|
|
35
|
+
return CriteriaObj;
|
|
36
|
+
}());
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* @fileoverview added by tsickle
|
|
40
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
41
|
+
*/
|
|
42
|
+
var RequestCriteriaObj = /** @class */ (function () {
|
|
43
|
+
function RequestCriteriaObj() {
|
|
44
|
+
this.includeCount = true;
|
|
45
|
+
this.includeData = true;
|
|
46
|
+
this.isLoading = true;
|
|
47
|
+
}
|
|
48
|
+
return RequestCriteriaObj;
|
|
49
|
+
}());
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @fileoverview added by tsickle
|
|
53
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
54
|
+
*/
|
|
55
|
+
var AdInsConstant = /** @class */ (function () {
|
|
56
|
+
function AdInsConstant() {
|
|
57
|
+
}
|
|
58
|
+
AdInsConstant.RestrictionLike = "Like";
|
|
59
|
+
AdInsConstant.RestrictionEq = "Eq";
|
|
60
|
+
AdInsConstant.showData = "10,50,100";
|
|
61
|
+
AdInsConstant.TimeoutSession = 6000000;
|
|
62
|
+
AdInsConstant.GetListProduct = "http://creator_websvr:7272/NEW_FINANCING/api/Catalog/getPopularViewByCriteria";
|
|
63
|
+
AdInsConstant.Login = "/UserManagement/HTML5Login";
|
|
64
|
+
AdInsConstant.LoginToken = "/UserManagement/HTML6Login";
|
|
65
|
+
AdInsConstant.Logout = "/UserManagement/LogOut";
|
|
66
|
+
AdInsConstant.GetListOffice = "/RefOffice/GetRefOfficePaging";
|
|
67
|
+
AdInsConstant.GetProvince = "/los/v1/get_provinsi";
|
|
68
|
+
AdInsConstant.GetCityByProvince = "/los/v1/get_kota";
|
|
69
|
+
AdInsConstant.getProspectByProspectNo = "/api/MobileProspectTask/GetProspectByProspectNo";
|
|
70
|
+
AdInsConstant.submitNCProspect = "/api/MobileProspectTask/submitNCProspect";
|
|
71
|
+
AdInsConstant.addCustPersonal = "";
|
|
72
|
+
AdInsConstant.FormDefault = "dashboard/dash-board";
|
|
73
|
+
//GENERAL SETTING
|
|
74
|
+
AdInsConstant.GetBusinessDt = "/GeneralSetting/GetBusinessDate";
|
|
75
|
+
AdInsConstant.AddGeneralSetting = "/GeneralSetting/AddGeneralSetting";
|
|
76
|
+
AdInsConstant.EditGeneralSetting = "/GeneralSetting/EditGeneralSetting";
|
|
77
|
+
AdInsConstant.GetGeneralSettingPaging = "/GeneralSetting/GetGeneralSettingPaging";
|
|
78
|
+
AdInsConstant.GetGeneralSettingById = "/GeneralSetting/GetGeneralSettingById";
|
|
79
|
+
AdInsConstant.GetGeneralSettingValue = "/GeneralSetting/GetGeneralSettingValue";
|
|
80
|
+
//REF OFFICE
|
|
81
|
+
AdInsConstant.GetRefOfficeObj = "/RefOffice/GetRefOfficeObj";
|
|
82
|
+
AdInsConstant.GetRefOfficeActiveAndNonVirtualKeyValue = "/RefOffice/GetRefOfficeActiveAndNonVirtualKeyValue";
|
|
83
|
+
AdInsConstant.GetAllRefOffice = "/RefOffice/GetAllRefOffice";
|
|
84
|
+
AdInsConstant.GetListUpperHierarchyRefOfficeByRefOrgId = "/RefOffice/GetListUpperHierarchyRefOfficeByRefOrgId";
|
|
85
|
+
AdInsConstant.AddRefOffice = "/RefOffice/AddRefOffice";
|
|
86
|
+
AdInsConstant.EditRefOffice = "/RefOffice/EditRefOffice";
|
|
87
|
+
AdInsConstant.DeleteRefOffice = "/RefOffice/DeleteRefOffice";
|
|
88
|
+
//REF OFFICE AREA
|
|
89
|
+
AdInsConstant.GetAllListArea = "/RefOfficeArea/GetAllListArea";
|
|
90
|
+
AdInsConstant.GetRefOfficeAreaPaging = "/RefOfficeArea/GetRefOfficeAreaPaging";
|
|
91
|
+
AdInsConstant.GetRefArea = "/RefOfficeArea/GetRefArea";
|
|
92
|
+
AdInsConstant.AddRefOfficeArea = "/RefOfficeArea/AddRefOfficeArea";
|
|
93
|
+
AdInsConstant.EditRefOfficeArea = "/RefOfficeArea/EditRefOfficeArea";
|
|
94
|
+
AdInsConstant.DeleteRefOfficeArea = "/RefOfficeArea/DeleteRefOfficeArea";
|
|
95
|
+
AdInsConstant.CheckDuplAreaCode = "/RefOfficeArea/CheckDuplAreaCode";
|
|
96
|
+
//ORGANIZATION
|
|
97
|
+
AdInsConstant.GetRefOrg = "/OrganizationDefinition/GetRefOrg";
|
|
98
|
+
AdInsConstant.EditRefOrgWithOldParentId = "/OrganizationDefinition/EditRefOrgWithOldParentId";
|
|
99
|
+
AdInsConstant.DeleteRefOrg = "/OrganizationDefinition/DeleteRefOrg";
|
|
100
|
+
AdInsConstant.GetListAllRefOrg = "/OrganizationDefinition/GetListAllRefOrg";
|
|
101
|
+
AdInsConstant.AddRefOrg = "/OrganizationDefinition/AddRefOrg";
|
|
102
|
+
AdInsConstant.GetRefOrgPaging = "/OrganizationDefinition/GetRefOrgPaging";
|
|
103
|
+
AdInsConstant.GetAllRefBizUnit = "/OrganizationDefinition/GetAllRefBizUnit";
|
|
104
|
+
AdInsConstant.GetOrgJobTitleByMdlStruc = "/OrganizationDefinition/GetOrgJobTitleByMdlStruc";
|
|
105
|
+
AdInsConstant.GetRefBizUnitByOffice = "/OrganizationDefinition/GetRefBizUnitByOffice";
|
|
106
|
+
AdInsConstant.GetAllOrgMdl = "/OrganizationDefinition/GetAllOrgMdl";
|
|
107
|
+
AdInsConstant.GetAllActiveOrgMdlByRefOrgId = "/OrganizationDefinition/GetAllActiveOrgMdlByRefOrgId";
|
|
108
|
+
AdInsConstant.GetOrgMdlPaging = "/OrganizationDefinition/GetOrgMdlPaging";
|
|
109
|
+
AdInsConstant.DeleteOrgMdl = "/OrganizationDefinition/DeleteOrgMdl";
|
|
110
|
+
AdInsConstant.EditOrgMdl = "/OrganizationDefinition/EditOrgMdl";
|
|
111
|
+
AdInsConstant.AddOrgMdl = "/OrganizationDefinition/AddOrgMdl";
|
|
112
|
+
AdInsConstant.GetOrgMdl = "/OrganizationDefinition/GetOrgMdl";
|
|
113
|
+
AdInsConstant.GetOrgMdlByOrgMdlId = "/OrganizationDefinition/GetOrgMdlByOrgMdlId";
|
|
114
|
+
AdInsConstant.GetAllRefBizUnitKeyValuePair = "/OrganizationDefinition/GetAllRefBizUnitKeyValuePair";
|
|
115
|
+
AdInsConstant.DeleteOrgMdlStruc = "/OrganizationDefinition/DeleteOrgMdlStruc";
|
|
116
|
+
AdInsConstant.AddOrgMdlStruc = "/OrganizationDefinition/AddOrgMdlStruc";
|
|
117
|
+
AdInsConstant.EditOrgMdlStruc = "/OrganizationDefinition/EditOrgMdlStruc";
|
|
118
|
+
AdInsConstant.GetOrgMdlStruc = "/OrganizationDefinition/GetOrgMdlStruc";
|
|
119
|
+
AdInsConstant.GetOrgMdlStrucPaging = "/OrganizationDefinition/GetOrgMdlStrucPaging";
|
|
120
|
+
AdInsConstant.GetOrgMdlStrucById = "/OrganizationDefinition/GetOrgMdlStrucById";
|
|
121
|
+
//REF-JOB-TITLE
|
|
122
|
+
AdInsConstant.GetRefJobTitle = "/OrganizationDefinition/GetRefJobTitlePaging";
|
|
123
|
+
AdInsConstant.AddRefJobTitle = "/OrganizationDefinition/AddRefJobTitle";
|
|
124
|
+
AdInsConstant.EditRefJobTitle = "/OrganizationDefinition/EditRefJobTitle";
|
|
125
|
+
AdInsConstant.DeleteRefJobTitle = "/OrganizationDefinition/DeleteRefJobTitle";
|
|
126
|
+
AdInsConstant.GetJobPositionLvl = "/OrganizationDefinition/GetJobPositionLvl";
|
|
127
|
+
AdInsConstant.GetRefJobTitleById = "/OrganizationDefinition/GetRefJobTitleByRefJobTitleId";
|
|
128
|
+
//ORG JOB TITLE
|
|
129
|
+
AdInsConstant.GetOrgJobTitlePaging = "/OrganizationDefinition/GetOrgJobTitlePaging";
|
|
130
|
+
AdInsConstant.AddOrgJobTitle = "/OrganizationDefinition/AddOrgJobTitle";
|
|
131
|
+
AdInsConstant.EditOrgJobTitle = "/OrganizationDefinition/EditOrgJobTitle";
|
|
132
|
+
AdInsConstant.DeleteOrgJobTitle = "/OrganizationDefinition/DeleteOrgJobTitle";
|
|
133
|
+
AdInsConstant.GetOrgJobTitleByOrgJobTitleId = "/OrganizationDefinition/GetOrgJobTitleByOrgJobTitleId";
|
|
134
|
+
//REF-BANK
|
|
135
|
+
AdInsConstant.GetBankPaging = "/RefBank/GetRefBankPaging";
|
|
136
|
+
AdInsConstant.GetBank = "/RefBank/GetBank";
|
|
137
|
+
AdInsConstant.EditRefBank = "/RefBank/EditRefBank";
|
|
138
|
+
AdInsConstant.AddRefBank = "/RefBank/AddRefBank";
|
|
139
|
+
AdInsConstant.DeleteRefBank = "/RefBank/DeleteRefBank";
|
|
140
|
+
AdInsConstant.GetBankByBankCode = "/RefBank/GetBankByBankCode";
|
|
141
|
+
//REF-EMP
|
|
142
|
+
AdInsConstant.GetListEmployee = "/RefEmp/GetRefEmpPaging";
|
|
143
|
+
AdInsConstant.GetRefEmployeeById = "/RefEmp/GetEmp";
|
|
144
|
+
AdInsConstant.AddRefEmp = "/RefEmp/AddRefEmp";
|
|
145
|
+
AdInsConstant.EditRefEmp = "/RefEmp/EditRefEmp";
|
|
146
|
+
AdInsConstant.DeleteRefEmployee = "/RefEmp/DeleteRefEmp";
|
|
147
|
+
AdInsConstant.AddEmpBankAcc = "/EmpBankAcc/AddEmpBankAcc";
|
|
148
|
+
AdInsConstant.GetEmpBankAccByRefEmpId = "/EmpBankAcc/GetEmpBankAccByRefEmpId";
|
|
149
|
+
AdInsConstant.AddRefEmpAndEmpBankAcc = "/RefEmp/AddRefEmpAndEmpBankAcc";
|
|
150
|
+
AdInsConstant.EditRefEmpAndEmpBankAcc = "/RefEmp/EditRefEmpAndEmpBankAcc";
|
|
151
|
+
AdInsConstant.DeleteRefEmpAndEmpBankAcc = "/RefEmp/DeleteRefEmpAndEmpBankAcc";
|
|
152
|
+
AdInsConstant.GetListEmployeebyRefEmpId = "/EmpPosition/GetListEmployeebyRefEmpId";
|
|
153
|
+
AdInsConstant.GetEmpListByOfficeIdAndIsActive = "/RefEmp/GetEmpListByOfficeIdAndIsActive";
|
|
154
|
+
//EMP_POSITION
|
|
155
|
+
AdInsConstant.GetEmpPositionPaging = "/EmpPosition/GetEmpPositionPaging";
|
|
156
|
+
AdInsConstant.GetEmpByEmpPositionId = "/EmpPosition/GetEmpByEmpPositionId";
|
|
157
|
+
AdInsConstant.AddEmpPosition = "/EmpPosition/AddEmpPosition";
|
|
158
|
+
AdInsConstant.EditEmpPosition = "/EmpPosition/EditEmpPosition";
|
|
159
|
+
AdInsConstant.DeleteEmpPosition = "/EmpPosition/DeleteEmpPosition";
|
|
160
|
+
AdInsConstant.GetListUserEmployee = "/EmpPosition/GetListUserEmployee";
|
|
161
|
+
//REF-USER
|
|
162
|
+
AdInsConstant.GetRefUserPaging = "/UserManagement/GetRefUserPaging";
|
|
163
|
+
AdInsConstant.AddRefUser = "/UserManagement/AddRefUser";
|
|
164
|
+
AdInsConstant.EditRefUser = "/UserManagement/EditRefUser";
|
|
165
|
+
AdInsConstant.ChangePassword = "/UserManagement/ChangePassword";
|
|
166
|
+
AdInsConstant.GetRefUser = "/UserManagement/GetRefUser";
|
|
167
|
+
AdInsConstant.GetUserByUsername = "/UserManagement/GetUserByUsername";
|
|
168
|
+
AdInsConstant.ValidatePwd = "/UserManagement/ValidatePwd";
|
|
169
|
+
AdInsConstant.GetCountRefUserByRefEmpId = "/UserManagement/GetCountRefUserByRefEmpId";
|
|
170
|
+
AdInsConstant.ResetPassword = "/UserManagement/ResetPassword";
|
|
171
|
+
//REF-ROLE
|
|
172
|
+
AdInsConstant.GetRefRolePaging = "/UserManagement/GetRefRolePaging";
|
|
173
|
+
AdInsConstant.AddRefRole = "/UserManagement/AddRefRole";
|
|
174
|
+
AdInsConstant.EditRefRole = "/UserManagement/EditRefRole";
|
|
175
|
+
AdInsConstant.DeleteRefRole = "/UserManagement/DeleteRefRole";
|
|
176
|
+
AdInsConstant.GetRefRoleByRefRoleId = "/RefRole/GetRefRoleByRefRoleId";
|
|
177
|
+
AdInsConstant.GetRefRole = "/RefRole/GetRefRole";
|
|
178
|
+
AdInsConstant.GetListDataCurrentUser = "/UserManagement/GetListDataCurrentUser";
|
|
179
|
+
AdInsConstant.GetRefRoleByEmpPositionId = "/RefRole/GetRefRoleByEmpPositionId";
|
|
180
|
+
AdInsConstant.EditUserTitleRole = "/UserManagement/EditUserTitleRole";
|
|
181
|
+
AdInsConstant.AddUserTitleRole = "/UserManagement/AddUserTitleRole";
|
|
182
|
+
AdInsConstant.AssignRoleToUsers = "/UserManagement/AssignRoleToUsers";
|
|
183
|
+
AdInsConstant.GetUserTitleRoleByEmpPositionIdAndRefRoleId = "/UserManagement/GetUserTitleRoleByEmpPositionIdAndRefRoleId";
|
|
184
|
+
//ZIPCODE
|
|
185
|
+
AdInsConstant.GetRefZipcodePaging = "/RefZipcode/GetRefZipcodePaging";
|
|
186
|
+
AdInsConstant.GetRefZipCode = "/RefZipcode/GetRefZipcode";
|
|
187
|
+
AdInsConstant.GetRefProvDistrictObj = "/RefProvDistrict/GetRefProvDistrict";
|
|
188
|
+
AdInsConstant.EditRefZipcode = "/RefZipcode/EditRefZipCode";
|
|
189
|
+
AdInsConstant.AddRefZipcode = "/RefZipcode/AddRefZipCode";
|
|
190
|
+
AdInsConstant.DeleteRefZipcode = "/RefZipcode/DeleteRefZipCode";
|
|
191
|
+
//BUSINESS UNIT
|
|
192
|
+
AdInsConstant.GetBusinessUnitPaging = "/OrganizationDefinition/GetRefBizUnitPaging";
|
|
193
|
+
AdInsConstant.GetRefBizUnit = "/OrganizationDefinition/GetRefBizUnit";
|
|
194
|
+
AdInsConstant.AddRefBizUnit = "/OrganizationDefinition/AddRefBizUnit";
|
|
195
|
+
AdInsConstant.EditRefBizUnit = "/OrganizationDefinition/EditRefBizUnit";
|
|
196
|
+
//REF COY
|
|
197
|
+
AdInsConstant.GetRefCoyPaging = "/RefCoy/GetRefCoyPaging";
|
|
198
|
+
AdInsConstant.GetRefCoy = "/RefCoy/GetRefCoy";
|
|
199
|
+
AdInsConstant.EditRefCoy = "/RefCoy/EditRefCoy";
|
|
200
|
+
AdInsConstant.GetCoyBodPaging = "/CoyBod/GetCoyBodPaging";
|
|
201
|
+
AdInsConstant.AddCoyBod = "/CoyBod/AddCoyBOD";
|
|
202
|
+
AdInsConstant.EditCoyBod = "/CoyBod/EditCoyBOD";
|
|
203
|
+
AdInsConstant.DeleteCoyBod = "/CoyBod/DeleteCoyBOD";
|
|
204
|
+
AdInsConstant.GetCoyBod = "/CoyBod/GetCoyBod";
|
|
205
|
+
AdInsConstant.GetCommissionerPaging = "/CoyCommissioner/GetCoyCommissionerPaging";
|
|
206
|
+
AdInsConstant.AddCoyCommissioner = "/CoyCommissioner/AddCoyCommissioner";
|
|
207
|
+
AdInsConstant.EditCoyCommissioner = "/CoyCommissioner/EditCoyCommissioner";
|
|
208
|
+
AdInsConstant.DeleteCoyCommissioner = "/CoyCommissioner/DeleteCoyCommissioner";
|
|
209
|
+
AdInsConstant.GetCoyCommissioner = "/CoyCommissioner/GetCoyCommissioner";
|
|
210
|
+
//REF TAX OFFICE
|
|
211
|
+
AdInsConstant.GetAllActiveRefTaxOffice = "/RefTaxOffice/GetAllActiveRefTaxOffice";
|
|
212
|
+
//REF MASTER
|
|
213
|
+
AdInsConstant.GetRefMasterList = "/RefMaster/GetRefMasterList";
|
|
214
|
+
AdInsConstant.GetRefMastersByCriteria = "/RefMaster/GetRefMastersByCriteria";
|
|
215
|
+
AdInsConstant.GetRefMaster = "/RefMaster/GetRefMaster";
|
|
216
|
+
AdInsConstant.GetRefMasterListByTypeCode = "/RefMaster/GetRefMasterListByTypeCode";
|
|
217
|
+
AdInsConstant.GetRefMasterListKeyValuePair = "/RefMaster/GetRefMasterListKeyValuePair";
|
|
218
|
+
AdInsConstant.AddRefMaster = "/RefMaster/AddRefMaster";
|
|
219
|
+
AdInsConstant.EditRefMaster = "/RefMaster/EditRefMaster";
|
|
220
|
+
AdInsConstant.GetRefMasterType = "/RefMaster/GetRefMasterType";
|
|
221
|
+
AdInsConstant.DeleteRefMaster = "/RefMaster/DeleteRefMaster";
|
|
222
|
+
AdInsConstant.GetRefMasterPaging = "/RefMaster/GetRefMasterPaging";
|
|
223
|
+
//REF PROV DISTRICT
|
|
224
|
+
AdInsConstant.GetRefProvDistrictPaging = "/RefProvDistrict/GetRefProvDistrictPaging";
|
|
225
|
+
//MENU
|
|
226
|
+
AdInsConstant.GetRefFormPaging = "/MenuManagement/GetRefFormPaging";
|
|
227
|
+
AdInsConstant.GetAllActiveRefFormByRefRoleId = "/MenuManagement/GetAllActiveRefFormByRefRoleId";
|
|
228
|
+
AdInsConstant.GetRefFormByRefFormId = "/MenuManagement/GetRefFormByRefFormId";
|
|
229
|
+
AdInsConstant.EditRefForm = "/MenuManagement/EditRefForm";
|
|
230
|
+
AdInsConstant.AddRefForm = "/MenuManagement/AddRefForm";
|
|
231
|
+
AdInsConstant.DeleteRefForm = "/MenuManagement/DeleteRefForm";
|
|
232
|
+
AdInsConstant.AssignRoleToForms = "/MenuManagement/AssignRoleToForms";
|
|
233
|
+
AdInsConstant.GetAllAuthFormsByRefRoleId = "/MenuManagement/GetAllAuthFormsByRefRoleId";
|
|
234
|
+
AdInsConstant.GetAuthByRefFormIdAndRefRoleId = "/MenuManagement/GetAuthByRefFormIdAndRefRoleId";
|
|
235
|
+
AdInsConstant.UpdateFormFeatureAuthForm = "/MenuManagement/UpdateFormFeatureAuthForm";
|
|
236
|
+
//FORM FEATURE
|
|
237
|
+
AdInsConstant.GetListRefFeature = "/RefFeature/GetListRefFeature";
|
|
238
|
+
AdInsConstant.GetRefFeatureByComponent = "/RefFeature/GetRefFeatureByComponent";
|
|
239
|
+
//HOLIDAY
|
|
240
|
+
AdInsConstant.GetAllActiveHolidaySchmH = "/Holiday/GetAllActiveHolidaySchmH";
|
|
241
|
+
AdInsConstant.GetHolidayPaging = "/Holiday/GetHolidayPaging";
|
|
242
|
+
AdInsConstant.AddHolidaySchmH = "/Holiday/AddHolidaySchmH";
|
|
243
|
+
AdInsConstant.AddHolidaySchmD = "/Holiday/AddHolidaySchmD";
|
|
244
|
+
AdInsConstant.AddHolidaySchmDUntilYear = "/Holiday/AddHolidaySchmDUntilYear";
|
|
245
|
+
AdInsConstant.GetHolidaySchmH = "/Holiday/GetHolidaySchmH";
|
|
246
|
+
AdInsConstant.EditHolidaySchmHOnly = "/Holiday/EditHolidaySchmHOnly";
|
|
247
|
+
AdInsConstant.DeleteHolidaySchmH = "/Holiday/DeleteHolidaySchmH";
|
|
248
|
+
AdInsConstant.DeleteHolidaySchmD = "/Holiday/DeleteHolidaySchmD";
|
|
249
|
+
AdInsConstant.GetHolidayDetailPaging = "/Holiday/GetHolidayDetailPaging";
|
|
250
|
+
//USER SESSION LOG
|
|
251
|
+
AdInsConstant.SelectRole = "/UserSessionLog/SelectRole";
|
|
252
|
+
//NOTIFICATION
|
|
253
|
+
AdInsConstant.NotificationPost = "/Message/Post";
|
|
254
|
+
//REF CURR
|
|
255
|
+
AdInsConstant.GetRefCurrPaging = "/RefCurr/GetRefCurrPaging";
|
|
256
|
+
AdInsConstant.AddRefCurr = "/RefCurr/AddRefCurr";
|
|
257
|
+
AdInsConstant.EditRefCurr = "/RefCurr/EditRefCurr";
|
|
258
|
+
AdInsConstant.GetRefCurr = "/RefCurr/GetRefCurr";
|
|
259
|
+
AdInsConstant.AddExchangeRate = "/RefCurr/AddExchangeRate";
|
|
260
|
+
AdInsConstant.EditExchangeRate = "/RefCurr/EditExchangeRate";
|
|
261
|
+
AdInsConstant.GetExchangeRate = "/RefCurr/GetExchangeRate";
|
|
262
|
+
//WORKHOUR
|
|
263
|
+
AdInsConstant.GetListOfWorkingHourSchm = "/WorkHour/GetListOfWorkingHourSchm";
|
|
264
|
+
AdInsConstant.GetWorkHourSchmHPaging = "/WorkHour/GetWorkHourSchmHPaging";
|
|
265
|
+
AdInsConstant.AddWorkingHourSchmH = "/WorkHour/AddWorkingHourSchmH";
|
|
266
|
+
AdInsConstant.EditWorkingHourSchmH = "/WorkHour/EditWorkingHourSchmH";
|
|
267
|
+
AdInsConstant.GetWorkingHourSchmH = "/WorkHour/GetWorkingHourSchmH";
|
|
268
|
+
AdInsConstant.GetWorkingHourSchmD = "/WorkHour/GetWorkingHourSchmD";
|
|
269
|
+
AdInsConstant.DeleteWorkingHourSchmH = "/WorkHour/DeleteWorkingHourSchmH";
|
|
270
|
+
return AdInsConstant;
|
|
271
|
+
}());
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* @fileoverview added by tsickle
|
|
275
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
276
|
+
*/
|
|
277
|
+
|
|
278
|
+
/**
|
|
279
|
+
* @fileoverview added by tsickle
|
|
280
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
281
|
+
*/
|
|
282
|
+
var UCSearchComponent = /** @class */ (function () {
|
|
283
|
+
function UCSearchComponent(http, decimalPipe, _renderer2, _document) {
|
|
284
|
+
this.http = http;
|
|
285
|
+
this.decimalPipe = decimalPipe;
|
|
286
|
+
this._renderer2 = _renderer2;
|
|
287
|
+
this._document = _document;
|
|
288
|
+
this.pageSize = 10;
|
|
289
|
+
this.pageNow = 1;
|
|
290
|
+
this.addCritInput = null;
|
|
291
|
+
this.result = new EventEmitter();
|
|
292
|
+
this.isDataLoaded = false;
|
|
293
|
+
this.isHidden = false;
|
|
294
|
+
this.payLoad = '';
|
|
295
|
+
this.countForm = 0;
|
|
296
|
+
this.formattedAmount = '';
|
|
297
|
+
this.amount = 0;
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* @return {?}
|
|
301
|
+
*/
|
|
302
|
+
UCSearchComponent.prototype.initiateForm = /**
|
|
303
|
+
* @return {?}
|
|
304
|
+
*/
|
|
305
|
+
function () {
|
|
306
|
+
var _this_1 = this;
|
|
307
|
+
this.getJSON(this._url).subscribe((/**
|
|
308
|
+
* @param {?} data
|
|
309
|
+
* @return {?}
|
|
310
|
+
*/
|
|
311
|
+
function (data) {
|
|
312
|
+
console.log(data);
|
|
313
|
+
_this_1.configuration = data;
|
|
314
|
+
_this_1.urlGet = data.url;
|
|
315
|
+
_this_1.exportData = data.exportExcel;
|
|
316
|
+
_this_1.countForm = data.component.length;
|
|
317
|
+
console.log(_this_1.countForm);
|
|
318
|
+
_this_1.isDataLoaded = true;
|
|
319
|
+
/** @type {?} */
|
|
320
|
+
var i = 0;
|
|
321
|
+
for (var i = 0; i < _this_1.countForm; i++) {
|
|
322
|
+
//ini kalau datanya di load dari URL
|
|
323
|
+
if (data.component[i].isFromURL == true) {
|
|
324
|
+
//lempar objectnya sekalian sama urlnya, nnti di bind di dalem karena masalah di asyncnya
|
|
325
|
+
//biar tiap function ada state2nya sendiri
|
|
326
|
+
_this_1.resolveObject(data.component[i], data.component[i].url);
|
|
327
|
+
}
|
|
328
|
+
if (data.component[i].type === "numeric") {
|
|
329
|
+
data.component[i].value = parseFloat(data.component[i].value).toLocaleString('en');
|
|
330
|
+
}
|
|
331
|
+
//pengecekan tanggal
|
|
332
|
+
if (data.component[i].type === "datepicker") {
|
|
333
|
+
if (data.component[i].value.includes("BD")) {
|
|
334
|
+
/** @type {?} */
|
|
335
|
+
var businessDate = new Date(JSON.parse(localStorage.getItem("UserContext")).BusinessDate);
|
|
336
|
+
/** @type {?} */
|
|
337
|
+
var operator = data.component[i].value.charAt(2);
|
|
338
|
+
/** @type {?} */
|
|
339
|
+
var dateShow = new Date();
|
|
340
|
+
if (operator === "-") {
|
|
341
|
+
/** @type {?} */
|
|
342
|
+
var tempMinus = data.component[i].value.split("-", 2);
|
|
343
|
+
/** @type {?} */
|
|
344
|
+
var numDay = parseInt(tempMinus[1]);
|
|
345
|
+
dateShow.setDate(businessDate.getDate() - numDay);
|
|
346
|
+
}
|
|
347
|
+
else if (operator === "+") {
|
|
348
|
+
/** @type {?} */
|
|
349
|
+
var tempMinus = data.component[i].value.split("+", 2);
|
|
350
|
+
/** @type {?} */
|
|
351
|
+
var numDay = parseInt(tempMinus[1]);
|
|
352
|
+
dateShow.setDate(businessDate.getDate() + numDay);
|
|
353
|
+
}
|
|
354
|
+
/** @type {?} */
|
|
355
|
+
var dateText = formatDate(dateShow, 'yyyy-MM-dd', 'en-US');
|
|
356
|
+
data.component[i].value = dateText;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}));
|
|
361
|
+
};
|
|
362
|
+
/**
|
|
363
|
+
* @return {?}
|
|
364
|
+
*/
|
|
365
|
+
UCSearchComponent.prototype.ngOnInit = /**
|
|
366
|
+
* @return {?}
|
|
367
|
+
*/
|
|
368
|
+
function () {
|
|
369
|
+
this.apiUrl = this.enviromentUrl + this.apiQryPaging;
|
|
370
|
+
this.arrCrit = this.arrCritObj;
|
|
371
|
+
/** @type {?} */
|
|
372
|
+
var js = this._renderer2.createElement('script');
|
|
373
|
+
js.text = "\n $(document).ready(function(){\n $(\"#flip\").click(function(){\n $(\"#panel\").slideToggle(\"slow\");\n });\n });\n ";
|
|
374
|
+
this._renderer2.appendChild(this._document.body, js);
|
|
375
|
+
this.initiateForm();
|
|
376
|
+
};
|
|
377
|
+
/**
|
|
378
|
+
* @param {?} url
|
|
379
|
+
* @return {?}
|
|
380
|
+
*/
|
|
381
|
+
UCSearchComponent.prototype.getJSON = /**
|
|
382
|
+
* @param {?} url
|
|
383
|
+
* @return {?}
|
|
384
|
+
*/
|
|
385
|
+
function (url) {
|
|
386
|
+
return this.http.get(url);
|
|
387
|
+
};
|
|
388
|
+
/**
|
|
389
|
+
* @param {?} url
|
|
390
|
+
* @return {?}
|
|
391
|
+
*/
|
|
392
|
+
UCSearchComponent.prototype.postJSON = /**
|
|
393
|
+
* @param {?} url
|
|
394
|
+
* @return {?}
|
|
395
|
+
*/
|
|
396
|
+
function (url) {
|
|
397
|
+
return this.http.post(url, null);
|
|
398
|
+
};
|
|
399
|
+
/**
|
|
400
|
+
* @return {?}
|
|
401
|
+
*/
|
|
402
|
+
UCSearchComponent.prototype.onSubmit = /**
|
|
403
|
+
* @return {?}
|
|
404
|
+
*/
|
|
405
|
+
function () {
|
|
406
|
+
this.payLoad = JSON.stringify(this.form.value);
|
|
407
|
+
console.log("This is Payload:" + this.payLoad);
|
|
408
|
+
};
|
|
409
|
+
/**
|
|
410
|
+
* @return {?}
|
|
411
|
+
*/
|
|
412
|
+
UCSearchComponent.prototype.searchTry = /**
|
|
413
|
+
* @return {?}
|
|
414
|
+
*/
|
|
415
|
+
function () {
|
|
416
|
+
console.log("This Call Search");
|
|
417
|
+
console.log(this.myForm);
|
|
418
|
+
for (var i = 0; i < this.countForm; i++) {
|
|
419
|
+
console.log(this.myForm.nativeElement[i].name + " - " + this.myForm.nativeElement[i].value);
|
|
420
|
+
}
|
|
421
|
+
};
|
|
422
|
+
/**
|
|
423
|
+
* @return {?}
|
|
424
|
+
*/
|
|
425
|
+
UCSearchComponent.prototype.searchClick = /**
|
|
426
|
+
* @return {?}
|
|
427
|
+
*/
|
|
428
|
+
function () {
|
|
429
|
+
this.orderByKey = null;
|
|
430
|
+
this.orderByValue = true;
|
|
431
|
+
this.pageNow = 1;
|
|
432
|
+
this.search(this.apiUrl, this.pageNow, this.pageSize, null, this.arrCrit);
|
|
433
|
+
};
|
|
434
|
+
/**
|
|
435
|
+
* @param {?} apiUrl
|
|
436
|
+
* @param {?} pageNo
|
|
437
|
+
* @param {?} rowPerPage
|
|
438
|
+
* @param {?} orderBy
|
|
439
|
+
* @param {?=} addCrit
|
|
440
|
+
* @return {?}
|
|
441
|
+
*/
|
|
442
|
+
UCSearchComponent.prototype.search = /**
|
|
443
|
+
* @param {?} apiUrl
|
|
444
|
+
* @param {?} pageNo
|
|
445
|
+
* @param {?} rowPerPage
|
|
446
|
+
* @param {?} orderBy
|
|
447
|
+
* @param {?=} addCrit
|
|
448
|
+
* @return {?}
|
|
449
|
+
*/
|
|
450
|
+
function (apiUrl, pageNo, rowPerPage, orderBy, addCrit) {
|
|
451
|
+
var _this_1 = this;
|
|
452
|
+
if (addCrit === void 0) { addCrit = null; }
|
|
453
|
+
console.log(pageNo);
|
|
454
|
+
/** @type {?} */
|
|
455
|
+
var request = new RequestCriteriaObj();
|
|
456
|
+
/** @type {?} */
|
|
457
|
+
var arrCrit = new Array();
|
|
458
|
+
console.log("Search");
|
|
459
|
+
request.pageNo = pageNo;
|
|
460
|
+
request.rowPerPage = rowPerPage;
|
|
461
|
+
request.orderBy = orderBy;
|
|
462
|
+
for (var i = 0; i < this.countForm; i++) {
|
|
463
|
+
/** @type {?} */
|
|
464
|
+
var critObj = new CriteriaObj();
|
|
465
|
+
/** @type {?} */
|
|
466
|
+
var component = this.myForm.nativeElement[i];
|
|
467
|
+
critObj.DataType = component.getAttribute('data-type');
|
|
468
|
+
console.log('component');
|
|
469
|
+
console.log(component.value);
|
|
470
|
+
//Ini khusus kalau dari Drop Down
|
|
471
|
+
if (component.value != "") {
|
|
472
|
+
if (component.nodeName === 'SELECT') {
|
|
473
|
+
/** @type {?} */
|
|
474
|
+
var ddl = component.options;
|
|
475
|
+
/** @type {?} */
|
|
476
|
+
var text = ddl[ddl.selectedIndex].value;
|
|
477
|
+
if (text !== "All") {
|
|
478
|
+
//Kalau Dari Dropdown udah pasti pake Eq
|
|
479
|
+
critObj.restriction = AdInsConstant.RestrictionEq;
|
|
480
|
+
critObj.propName = component.name;
|
|
481
|
+
critObj.value = text;
|
|
482
|
+
arrCrit.push(critObj);
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
else {
|
|
486
|
+
//Kalau ada Percent maka yang dipake nnti adalah Restrictions Like
|
|
487
|
+
critObj.propName = component.name;
|
|
488
|
+
critObj.value = component.value;
|
|
489
|
+
console.log(component.type);
|
|
490
|
+
console.log(component.restriction);
|
|
491
|
+
if (component.value.includes("%")) {
|
|
492
|
+
critObj.restriction = AdInsConstant.RestrictionLike;
|
|
493
|
+
}
|
|
494
|
+
//kalau componentnya Date, restrictionsnya lgsg ambil dari property JSONnya
|
|
495
|
+
else if (component.getAttribute('data-restriction') != "" && component.getAttribute('data-restriction') != null) {
|
|
496
|
+
critObj.restriction = component.getAttribute('data-restriction');
|
|
497
|
+
}
|
|
498
|
+
else {
|
|
499
|
+
critObj.restriction = AdInsConstant.RestrictionEq;
|
|
500
|
+
}
|
|
501
|
+
arrCrit.push(critObj);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
if (addCrit !== null) {
|
|
506
|
+
for (var i = 0; i < addCrit.length; i++) {
|
|
507
|
+
arrCrit.push(addCrit[i]);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
else if (this.addCritInput !== null) {
|
|
511
|
+
for (var i = 0; i < this.addCritInput.length; i++) {
|
|
512
|
+
arrCrit.push(this.addCritInput[i]);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
request.criteria = arrCrit;
|
|
516
|
+
this.http.post(apiUrl, request).subscribe((/**
|
|
517
|
+
* @param {?} response
|
|
518
|
+
* @return {?}
|
|
519
|
+
*/
|
|
520
|
+
function (response) {
|
|
521
|
+
/** @type {?} */
|
|
522
|
+
var qryPaging = {
|
|
523
|
+
response: response,
|
|
524
|
+
pageNow: pageNo
|
|
525
|
+
};
|
|
526
|
+
console.log(qryPaging);
|
|
527
|
+
_this_1.result.emit(qryPaging);
|
|
528
|
+
return response;
|
|
529
|
+
}));
|
|
530
|
+
};
|
|
531
|
+
/**
|
|
532
|
+
* @return {?}
|
|
533
|
+
*/
|
|
534
|
+
UCSearchComponent.prototype.lessThanFour = /**
|
|
535
|
+
* @return {?}
|
|
536
|
+
*/
|
|
537
|
+
function () {
|
|
538
|
+
if (this.countForm > 3) {
|
|
539
|
+
return false;
|
|
540
|
+
}
|
|
541
|
+
else {
|
|
542
|
+
return true;
|
|
543
|
+
}
|
|
544
|
+
};
|
|
545
|
+
/**
|
|
546
|
+
* @param {?} obj
|
|
547
|
+
* @param {?} url
|
|
548
|
+
* @return {?}
|
|
549
|
+
*/
|
|
550
|
+
UCSearchComponent.prototype.resolveObject = /**
|
|
551
|
+
* @param {?} obj
|
|
552
|
+
* @param {?} url
|
|
553
|
+
* @return {?}
|
|
554
|
+
*/
|
|
555
|
+
function (obj, url) {
|
|
556
|
+
/** @type {?} */
|
|
557
|
+
var val = this.postJSON(this.enviromentUrl + url);
|
|
558
|
+
val.subscribe((/**
|
|
559
|
+
* @param {?} tempData
|
|
560
|
+
* @return {?}
|
|
561
|
+
*/
|
|
562
|
+
function (tempData) {
|
|
563
|
+
obj.itemsUrl = tempData.returnObject;
|
|
564
|
+
}));
|
|
565
|
+
};
|
|
566
|
+
/**
|
|
567
|
+
* @param {?} element
|
|
568
|
+
* @return {?}
|
|
569
|
+
*/
|
|
570
|
+
UCSearchComponent.prototype.transformAmount = /**
|
|
571
|
+
* @param {?} element
|
|
572
|
+
* @return {?}
|
|
573
|
+
*/
|
|
574
|
+
function (element) {
|
|
575
|
+
this.formattedAmount = parseFloat(element.target.value).toLocaleString('en');
|
|
576
|
+
// Remove or comment this line if you dont want
|
|
577
|
+
// to show the formatted amount in the textbox.
|
|
578
|
+
element.target.value = this.formattedAmount;
|
|
579
|
+
};
|
|
580
|
+
/**
|
|
581
|
+
* @param {?} element
|
|
582
|
+
* @return {?}
|
|
583
|
+
*/
|
|
584
|
+
UCSearchComponent.prototype.transformToDecimal = /**
|
|
585
|
+
* @param {?} element
|
|
586
|
+
* @return {?}
|
|
587
|
+
*/
|
|
588
|
+
function (element) {
|
|
589
|
+
element.target.value = parseFloat(element.target.value.toString().replace(/,/g, ''));
|
|
590
|
+
};
|
|
591
|
+
UCSearchComponent.decorators = [
|
|
592
|
+
{ type: Component, args: [{
|
|
593
|
+
selector: 'lib-UCSearch',
|
|
594
|
+
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\"> {{configuration?.title}} <div id=\"flip\" class=\"btn float-right\"\r\n (click)=\"isHidden = !isHidden\"><i class=\"fa\"\r\n [ngClass]=\"isHidden ? 'fa-chevron-down' : 'fa-chevron-up'\"></i></div>\r\n </h4>\r\n <!-- Ini Digunakan untuk Generate Dynamic Component -->\r\n <!-- [hidden]=\"isHidden\" -->\r\n <div id=\"panel\">\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=\"projectinput1\"\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}}\">\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 <!-- Sementara di Hardcode begini dulu-->\r\n <div *ngIf=\"question.type==='lookupProduct'\">\r\n <!-- <app-lookup></app-lookup> -->\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 id=\"projectinput6\" 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 <select id=\"projectinput6\" 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 class=\"col-md-12 no-padding\">\r\n <form>\r\n <div class=\"form-actions right\">\r\n <button *ngIf=\"exportData\" type=\"button\"\r\n class=\"btn btn-raised btn-success mr-1\" translate>\r\n <i class=\"fa fa-plus-circle\"></i> Export Excel\r\n </button>\r\n <button type=\"button\" 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 -->"
|
|
595
|
+
}] }
|
|
596
|
+
];
|
|
597
|
+
/** @nocollapse */
|
|
598
|
+
UCSearchComponent.ctorParameters = function () { return [
|
|
599
|
+
{ type: HttpClient },
|
|
600
|
+
{ type: DecimalPipe },
|
|
601
|
+
{ type: Renderer2 },
|
|
602
|
+
{ type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
|
|
603
|
+
]; };
|
|
604
|
+
UCSearchComponent.propDecorators = {
|
|
605
|
+
myForm: [{ type: ViewChild, args: ['formIdSearch',] }],
|
|
606
|
+
_url: [{ type: Input }],
|
|
607
|
+
apiQryPaging: [{ type: Input }],
|
|
608
|
+
enviromentUrl: [{ type: Input }],
|
|
609
|
+
arrCritObj: [{ type: Input }],
|
|
610
|
+
pageSize: [{ type: Input }],
|
|
611
|
+
pageNow: [{ type: Input }],
|
|
612
|
+
addCritInput: [{ type: Input }],
|
|
613
|
+
result: [{ type: Output }]
|
|
614
|
+
};
|
|
615
|
+
return UCSearchComponent;
|
|
616
|
+
}());
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* @fileoverview added by tsickle
|
|
620
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
621
|
+
*/
|
|
622
|
+
var UCSearchModule = /** @class */ (function () {
|
|
623
|
+
function UCSearchModule() {
|
|
624
|
+
}
|
|
625
|
+
UCSearchModule.decorators = [
|
|
626
|
+
{ type: NgModule, args: [{
|
|
627
|
+
declarations: [UCSearchComponent],
|
|
628
|
+
imports: [
|
|
629
|
+
CommonModule
|
|
630
|
+
],
|
|
631
|
+
exports: [UCSearchComponent]
|
|
632
|
+
},] }
|
|
633
|
+
];
|
|
634
|
+
return UCSearchModule;
|
|
635
|
+
}());
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* @fileoverview added by tsickle
|
|
639
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
640
|
+
*/
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* @fileoverview added by tsickle
|
|
644
|
+
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
645
|
+
*/
|
|
646
|
+
|
|
647
|
+
export { UCSearchService, UCSearchComponent, UCSearchModule };
|
|
648
|
+
|
|
649
|
+
//# sourceMappingURL=ucsearch.js.map
|