From cb9eccbf1d16f0a28b6e7923c3352a7ef2df8242 Mon Sep 17 00:00:00 2001 From: Muhammad Sulaiman Yusuf Date: Tue, 12 Jul 2022 14:20:45 +0700 Subject: [PATCH] replace all like occurences on query builder to ilike --- .../LayerTreeAdm/LayerTreeGeoHR_salesver.js | 2 +- src/const/GeohrApiFunc.js | 4 ++-- src/views/ControlMonitoringGantt/index.js | 2 +- src/views/Map/Map_16.js | 4 ++-- src/views/Master/ConfigAlert/index.js | 2 +- src/views/Master/MasterAbsensi/DialogForm.js | 2 +- src/views/Master/MasterAbsensi/index.js | 6 +++--- src/views/Master/MasterBroadcast/DialogDetail.js | 2 +- src/views/Master/MasterBroadcast/index.js | 2 +- src/views/Master/MasterCustomer/index.js | 2 +- src/views/Master/MasterGroupSales/index.js | 2 +- src/views/Master/MasterMenu/index.js | 6 +++--- src/views/Master/MasterOffice/index.js | 2 +- src/views/Master/MasterOfficeHours/DialogForm.js | 2 +- .../Master/MasterOfficeHours/DialogForm_sales.js | 2 +- src/views/Master/MasterOfficeHours/index_sales.js | 2 +- src/views/Master/MasterRoles/DialogMenuRoles.js | 2 +- src/views/Master/MasterRoles/index.js | 2 +- src/views/Master/MasterSales/index.js | 6 +++--- src/views/Master/PlanningVsRealisasi/index.js | 4 ++-- src/views/Master/Proyek/index.js | 2 +- src/views/Master/RoleProject/index.js | 4 ++-- src/views/Master/SubProyek/index.js | 2 +- src/views/Master/UserAdmin/index.js | 4 ++-- src/views/Master/UserWaspang/index.js | 4 ++-- src/views/Report/ControlMonitoring/index.js | 6 +++--- src/views/Report/Planning/index.js | 4 ++-- src/views/Report/alert/index.js | 8 ++++---- src/views/Report/k3/index.js | 6 +++--- src/views/SimproV2/ChecklistK3/index.js | 4 ++-- src/views/SimproV2/Closing/index.js | 2 +- src/views/SimproV2/CreatedProyek/AsignHrProject.js | 4 ++-- .../SimproV2/CreatedProyek/DataRequestMaterial.js | 2 +- .../SimproV2/CreatedProyek/DialogTableTools.js | 2 +- src/views/SimproV2/CreatedProyek/index.js | 2 +- src/views/SimproV2/Divisi/index.js | 4 ++-- src/views/SimproV2/PanicButton/index.js | 2 +- src/views/SimproV2/PlanningHarian/index.js | 2 +- src/views/SimproV2/Presence/index.js | 4 ++-- src/views/SimproV2/ProjectType/index.js | 2 +- src/views/SimproV2/RateCost/DialogForm.js | 2 +- src/views/SimproV2/RateCost/index.js | 4 ++-- src/views/SimproV2/ResourceMaterial/index.js | 4 ++-- src/views/SimproV2/ResourceTools/index.js | 6 +++--- src/views/SimproV2/ResourceWorker/index.js | 2 +- src/views/SimproV2/Satuan/index.js | 13 +++++++++---- src/views/SimproV2/Shift/index.js | 4 ++-- src/views/SimproV2/UserShift/index.js | 4 ++-- 48 files changed, 86 insertions(+), 81 deletions(-) diff --git a/src/components/LayerTreeAdm/LayerTreeGeoHR_salesver.js b/src/components/LayerTreeAdm/LayerTreeGeoHR_salesver.js index e097e1d..4b3c1c6 100644 --- a/src/components/LayerTreeAdm/LayerTreeGeoHR_salesver.js +++ b/src/components/LayerTreeAdm/LayerTreeGeoHR_salesver.js @@ -56,7 +56,7 @@ class LayerTreeGeoHR extends Component { body: JSON.stringify({ "paging": {"start": 0, "length": -1}, "columns": [ - {"name":"name", "logic_operator": "like", "value": "", "operator": "and"} + {"name":"name", "logic_operator": "ilike", "value": "", "operator": "and"} ], "orders": {"columns": ["name"], "ascending": true} }) diff --git a/src/const/GeohrApiFunc.js b/src/const/GeohrApiFunc.js index 0d98e5e..ba24c21 100644 --- a/src/const/GeohrApiFunc.js +++ b/src/const/GeohrApiFunc.js @@ -126,7 +126,7 @@ export const getOfficeFeatures = async () => { body: JSON.stringify({ "paging": {"start": 0, "length": -1}, "columns": [ - {"name":"name", "logic_operator": "like", "value": "", "operator": "and"} + {"name":"name", "logic_operator": "ilike", "value": "", "operator": "and"} ], "orders": {"columns": ["name"], "ascending": true} }) @@ -152,7 +152,7 @@ export const getCustomerFeatures = async () => { let bodyParam = { "paging": {"start": 0, "length": -1}, "columns": [ - {"name":"name", "logic_operator": "like", "value": "", "operator": "and"} + {"name":"name", "logic_operator": "ilike", "value": "", "operator": "and"} ], "orders": {"columns": ["name"], "ascending": true} } diff --git a/src/views/ControlMonitoringGantt/index.js b/src/views/ControlMonitoringGantt/index.js index 803f688..e6d86b1 100644 --- a/src/views/ControlMonitoringGantt/index.js +++ b/src/views/ControlMonitoringGantt/index.js @@ -109,7 +109,7 @@ const GanttTimeLine = () => { const payload = { "columns": [ - { "name": "nama", "logic_operator": "like", "value": "", "operator": "AND" } + { "name": "nama", "logic_operator": "ilike", "value": "", "operator": "AND" } ], "joins": [ { "name": "subproyeks.m_proyek", "column_join": "proyek_id", "column_results": ["nama", "biaya", "color_progress", "jumlah_pekerja", "pic", "mulai_proyek", "akhir_proyek", "biaya_actual", "persentase_progress_plan", "persentase_progress_actual"] }, diff --git a/src/views/Map/Map_16.js b/src/views/Map/Map_16.js index 26fe688..63df6ad 100644 --- a/src/views/Map/Map_16.js +++ b/src/views/Map/Map_16.js @@ -1010,7 +1010,7 @@ class SiopasMap extends Component { const payload = { "paging": { "start": 0, "length": -1 }, "columns": [ - // {"name": "name", "logic_operator": "like", "value": search, "table_name": "m_users"}, + // {"name": "name", "logic_operator": "ilike", "value": search, "table_name": "m_users"}, { "name": "clock_in", "logic_operator": "range", "value": dateStart, "value1": dateEnd }, ], "joins": [{ @@ -2910,7 +2910,7 @@ class SiopasMap extends Component { const payload = { "columns": [ - { "name": "color_progress", "logic_operator": "like", "value": val, "operator": "AND" }, + { "name": "color_progress", "logic_operator": "ilike", "value": val, "operator": "AND" }, { "name": "id", "logic_operator": "in", "value": str ? str : "0", "operator": "AND" }, ], "joins": [ diff --git a/src/views/Master/ConfigAlert/index.js b/src/views/Master/ConfigAlert/index.js index 53be7d9..10a4505 100644 --- a/src/views/Master/ConfigAlert/index.js +++ b/src/views/Master/ConfigAlert/index.js @@ -39,7 +39,7 @@ const Index = ({params}) => { const payload = { "paging": {"start": 0, "length": -1}, "columns": [ - {"name": "nama", "logic_operator": "like", "value": "", "operator": "AND"} + {"name": "nama", "logic_operator": "ilike", "value": "", "operator": "AND"} ], "joins": [], "orders": {"columns": ["id"], "ascending": false} diff --git a/src/views/Master/MasterAbsensi/DialogForm.js b/src/views/Master/MasterAbsensi/DialogForm.js index f47ef0a..175cc82 100644 --- a/src/views/Master/MasterAbsensi/DialogForm.js +++ b/src/views/Master/MasterAbsensi/DialogForm.js @@ -76,7 +76,7 @@ export default class DialogForm extends Component { const formData = { "paging": {"start": 0, "length": -1}, "columns": [ - {"name": "name", "logic_operator": "like", "value": "", "operator": "AND"} + {"name": "name", "logic_operator": "ilike", "value": "", "operator": "AND"} ], "joins": [], "orders": {"columns": ["id"], "ascending": false} diff --git a/src/views/Master/MasterAbsensi/index.js b/src/views/Master/MasterAbsensi/index.js index 925d1a3..02bbc58 100644 --- a/src/views/Master/MasterAbsensi/index.js +++ b/src/views/Master/MasterAbsensi/index.js @@ -108,7 +108,7 @@ export default class index extends Component { const payload = { "paging": {"start": 0, "length": -1}, "columns": [ - {"name": "nama", "logic_operator": "like", "value": "", "operator": "AND"} + {"name": "nama", "logic_operator": "ilike", "value": "", "operator": "AND"} ], "joins": [], "orders": {"columns": ["id"], "ascending": false} @@ -184,7 +184,7 @@ export default class index extends Component { ], "columns":[ {"name": "created_at", "logic_operator": "range", "value": dateStart, "value1": dateEnd, "operator": "AND"}, - {"name": "name", "logic_operator": "like", "value": this.state.search, "operator": "AND", "table_name":"m_users"} + {"name": "name", "logic_operator": "ilike", "value": this.state.search, "operator": "AND", "table_name":"m_users"} ], "joins":[ { @@ -363,7 +363,7 @@ export default class index extends Component { ], "columns":[ {"name": "created_at", "logic_operator": "range", "value": dateStart, "value1": dateEnd, "operator": "AND"}, - {"name": "name", "logic_operator": "like", "value": this.state.search, "operator": "AND", "table_name":"m_users"} + {"name": "name", "logic_operator": "ilike", "value": this.state.search, "operator": "AND", "table_name":"m_users"} ], "joins":[ { diff --git a/src/views/Master/MasterBroadcast/DialogDetail.js b/src/views/Master/MasterBroadcast/DialogDetail.js index 8d71ffd..f1da7f7 100644 --- a/src/views/Master/MasterBroadcast/DialogDetail.js +++ b/src/views/Master/MasterBroadcast/DialogDetail.js @@ -46,7 +46,7 @@ export default class DialogDetail extends Component { "paging": {"start": 0, "length": 25}, "orders": {"columns": ["id"], "ascending": true}, "columns": [ - {"name": "status_send", "logic_operator": "like", "value":"", "operator": "AND"} + {"name": "status_send", "logic_operator": "ilike", "value":"", "operator": "AND"} ], "joins": [ {"name": "m_broadcast", "column_results": ["title_notif","message_notif","description","status_send"], "column_join":"broadcast_id"} diff --git a/src/views/Master/MasterBroadcast/index.js b/src/views/Master/MasterBroadcast/index.js index 301dbbf..90ec78e 100644 --- a/src/views/Master/MasterBroadcast/index.js +++ b/src/views/Master/MasterBroadcast/index.js @@ -113,7 +113,7 @@ export default class index extends Component { "value1": `${dateEnd}` }, { - "logic_operator": "like", + "logic_operator": "ilike", "name": "title_notif", "operator": "AND", "value": "" diff --git a/src/views/Master/MasterCustomer/index.js b/src/views/Master/MasterCustomer/index.js index c5264d5..016486b 100644 --- a/src/views/Master/MasterCustomer/index.js +++ b/src/views/Master/MasterCustomer/index.js @@ -76,7 +76,7 @@ export default class index extends Component { ...searchDetail !== "All" && { "columns": [ - { "name": searchDetailField, "logic_operator": "like", "operator": "and", "value": this.state.search.toString() } + { "name": searchDetailField, "logic_operator": "ilike", "operator": "and", "value": this.state.search.toString() } ] }, "orders": { "columns": ["name"], "ascending": true } diff --git a/src/views/Master/MasterGroupSales/index.js b/src/views/Master/MasterGroupSales/index.js index 10ecd75..c43565c 100644 --- a/src/views/Master/MasterGroupSales/index.js +++ b/src/views/Master/MasterGroupSales/index.js @@ -97,7 +97,7 @@ export default class index extends Component { ...searchDetail !== "All" && { "columns": [ - { "name": searchDetailField, "logic_operator": "like", "operator": "and", "value": search.toString() } + { "name": searchDetailField, "logic_operator": "ilike", "operator": "and", "value": search.toString() } ] }, "orders": { "columns": ["created_date"], "ascending": false } diff --git a/src/views/Master/MasterMenu/index.js b/src/views/Master/MasterMenu/index.js index f239028..8756d9e 100644 --- a/src/views/Master/MasterMenu/index.js +++ b/src/views/Master/MasterMenu/index.js @@ -76,7 +76,7 @@ const Index = ({params}) => { const payload = { "paging": {"start": 0, "length": -1}, "columns": [ - {"name": "name", "logic_operator": "like", "value": "", "operator": "AND"} + {"name": "name", "logic_operator": "ilike", "value": "", "operator": "AND"} ], "joins": [], "orders": {"columns": ["id"], "ascending": false} @@ -102,7 +102,7 @@ const Index = ({params}) => { const payload = { "paging": {"start": start, "length": rowsPerPage}, "columns": [ - {"name": "name", "logic_operator": "like", "value": search, "operator": "AND"} + {"name": "name", "logic_operator": "ilike", "value": search, "operator": "AND"} ], "joins": [{ "name":"m_menu", @@ -229,7 +229,7 @@ const Index = ({params}) => { const payload = { "paging": {"start": 0, "length": -1}, "columns": [ - {"name": "name", "logic_operator": "like", "value": search, "operator": "AND"} + {"name": "name", "logic_operator": "ilike", "value": search, "operator": "AND"} ], "joins": [{ "name":"m_menu", diff --git a/src/views/Master/MasterOffice/index.js b/src/views/Master/MasterOffice/index.js index ff804fe..5fafc60 100644 --- a/src/views/Master/MasterOffice/index.js +++ b/src/views/Master/MasterOffice/index.js @@ -71,7 +71,7 @@ export default class index extends Component { ...searchDetail !== "All" && { "columns": [ - { "name": searchDetailField, "logic_operator": "like", "operator": "and", "value": search.toString() } + { "name": searchDetailField, "logic_operator": "ilike", "operator": "and", "value": search.toString() } ] }, "orders": { "columns": ["created_date"], "ascending": false } diff --git a/src/views/Master/MasterOfficeHours/DialogForm.js b/src/views/Master/MasterOfficeHours/DialogForm.js index 013324a..26209fb 100644 --- a/src/views/Master/MasterOfficeHours/DialogForm.js +++ b/src/views/Master/MasterOfficeHours/DialogForm.js @@ -133,7 +133,7 @@ export default class DialogForm extends Component { const obj = { "paging": {"start": 0, "length": -1}, "columns": [ - {"name":"name", "logic_operator": "like", "value": "", "operator": "and"} + {"name":"name", "logic_operator": "ilike", "value": "", "operator": "and"} ], "orders": {"columns": ["name"], "ascending": true} } diff --git a/src/views/Master/MasterOfficeHours/DialogForm_sales.js b/src/views/Master/MasterOfficeHours/DialogForm_sales.js index 9a5649c..531d540 100644 --- a/src/views/Master/MasterOfficeHours/DialogForm_sales.js +++ b/src/views/Master/MasterOfficeHours/DialogForm_sales.js @@ -100,7 +100,7 @@ export default class DialogForm extends Component { const obj = { "paging": {"start": 0, "length": -1}, "columns": [ - {"name":"name", "logic_operator": "like", "value": "", "operator": "and"} + {"name":"name", "logic_operator": "ilike", "value": "", "operator": "and"} ], "joins": [ {"name": "group_sales", "column_results": ["name", "description"]} diff --git a/src/views/Master/MasterOfficeHours/index_sales.js b/src/views/Master/MasterOfficeHours/index_sales.js index 1dd77ec..2be19eb 100644 --- a/src/views/Master/MasterOfficeHours/index_sales.js +++ b/src/views/Master/MasterOfficeHours/index_sales.js @@ -73,7 +73,7 @@ export default class index extends Component { "columns": [ { "name": "name", - "logic_operator": "like", + "logic_operator": "ilike", "value": this.state.search.toString(), "operator": "and", "table_name": "m_sales" diff --git a/src/views/Master/MasterRoles/DialogMenuRoles.js b/src/views/Master/MasterRoles/DialogMenuRoles.js index b7ab9c1..6beabe9 100644 --- a/src/views/Master/MasterRoles/DialogMenuRoles.js +++ b/src/views/Master/MasterRoles/DialogMenuRoles.js @@ -54,7 +54,7 @@ export default class DialogMenuRoles extends Component { const payload = { "paging": {"start": 0, "length": -1}, "columns": [ - {"name": "name", "logic_operator": "like", "value": "", "operator": "AND"} + {"name": "name", "logic_operator": "ilike", "value": "", "operator": "AND"} ], "joins": [], "orders": {"columns": ["id"], "ascending": false} diff --git a/src/views/Master/MasterRoles/index.js b/src/views/Master/MasterRoles/index.js index 219658f..e3bf9c1 100644 --- a/src/views/Master/MasterRoles/index.js +++ b/src/views/Master/MasterRoles/index.js @@ -104,7 +104,7 @@ export default class index extends Component { const formData = { "paging": {"start": start, "length": this.state.rowsPerPage}, "columns": [ - {"name": "name", "logic_operator": "like", "value": this.state.search, "operator": "AND"} + {"name": "name", "logic_operator": "ilike", "value": this.state.search, "operator": "AND"} ], "joins": [], "orders": {"columns": ["id"], "ascending": false} diff --git a/src/views/Master/MasterSales/index.js b/src/views/Master/MasterSales/index.js index 96ddd29..cee8bbe 100644 --- a/src/views/Master/MasterSales/index.js +++ b/src/views/Master/MasterSales/index.js @@ -67,7 +67,7 @@ export default class index extends Component { "columns": [ { "name": "name", - "logic_operator": "like", + "logic_operator": "ilike", "value": "", "operator": "and" } @@ -109,13 +109,13 @@ export default class index extends Component { ...searchDetail !== "All" && searchDetail !== "Group Sales" && { "columns": [ - { "name": searchDetailField, "logic_operator": "like", "operator": "and", "value": this.state.search.toString() } + { "name": searchDetailField, "logic_operator": "ilike", "operator": "and", "value": this.state.search.toString() } ] }, ...searchDetail === "Group Sales" && { "columns": [ - { "name": searchDetailField, "logic_operator": "like", "operator": "and", "value": this.state.search.toString(), "table_name": "m_group_sales" } + { "name": searchDetailField, "logic_operator": "ilike", "operator": "and", "value": this.state.search.toString(), "table_name": "m_group_sales" } ] }, diff --git a/src/views/Master/PlanningVsRealisasi/index.js b/src/views/Master/PlanningVsRealisasi/index.js index 74cba79..90fabb3 100644 --- a/src/views/Master/PlanningVsRealisasi/index.js +++ b/src/views/Master/PlanningVsRealisasi/index.js @@ -116,7 +116,7 @@ export default class index extends Component { }, { "name": "nama", - "logic_operator": "like", + "logic_operator": "ilike", "value": this.state.search, "operator": "AND", } @@ -307,7 +307,7 @@ export default class index extends Component { }, { "name": "nama", - "logic_operator": "like", + "logic_operator": "ilike", "value": this.state.search, "operator": "AND", } diff --git a/src/views/Master/Proyek/index.js b/src/views/Master/Proyek/index.js index a5458d7..dd60d67 100644 --- a/src/views/Master/Proyek/index.js +++ b/src/views/Master/Proyek/index.js @@ -108,7 +108,7 @@ const IndexRole = ({ params }) => { const payload = { "columns": [ - { "name": "nama", "logic_operator": "like", "value": "", "operator": "AND" } + { "name": "nama", "logic_operator": "ilike", "value": "", "operator": "AND" } ], "joins": [ { "name": "subproyeks.m_proyek", "column_join": "proyek_id", "column_results": ["nama", "biaya", "color_progress", "jumlah_pekerja", "pic", "mulai_proyek", "akhir_proyek", "biaya_actual", "persentase_progress_plan", "persentase_progress_actual"] }, diff --git a/src/views/Master/RoleProject/index.js b/src/views/Master/RoleProject/index.js index 70abc17..de57669 100644 --- a/src/views/Master/RoleProject/index.js +++ b/src/views/Master/RoleProject/index.js @@ -104,7 +104,7 @@ export default class index extends Component { const formData = { "paging": {"start": start, "length": this.state.rowsPerPage}, "columns": [ - {"name": "name", "logic_operator": "like", "value": this.state.search, "operator": "AND"} + {"name": "name", "logic_operator": "ilike", "value": this.state.search, "operator": "AND"} ], "joins": [], "orders": {"columns": ["id"], "ascending": false} @@ -260,7 +260,7 @@ export default class index extends Component { const payload = { "paging": {"start": 0, "length": -1}, "columns": [ - {"name": "name", "logic_operator": "like", "value": this.state.search, "operator": "AND"} + {"name": "name", "logic_operator": "ilike", "value": this.state.search, "operator": "AND"} ], "joins": [], "orders": {"columns": ["id"], "ascending": false} diff --git a/src/views/Master/SubProyek/index.js b/src/views/Master/SubProyek/index.js index 41c68fc..65b3fee 100644 --- a/src/views/Master/SubProyek/index.js +++ b/src/views/Master/SubProyek/index.js @@ -216,7 +216,7 @@ const IndexRole = () => { const payload = { "paging": { "start": start, "length": -1 }, "columns": [ - { "name": "role_name", "logic_operator": "like", "value": search, "operator": "AND" } + { "name": "role_name", "logic_operator": "ilike", "value": search, "operator": "AND" } ], "joins": [], "orders": { "columns": ["id"], "ascending": false } diff --git a/src/views/Master/UserAdmin/index.js b/src/views/Master/UserAdmin/index.js index f629494..abfd122 100644 --- a/src/views/Master/UserAdmin/index.js +++ b/src/views/Master/UserAdmin/index.js @@ -88,7 +88,7 @@ const IndexUser = ({params}) => { const payload = { "paging": {"start": 0, "length": -1}, "columns": [ - {"name": "nama", "logic_operator": "like", "value": "", "operator": "AND"} + {"name": "nama", "logic_operator": "ilike", "value": "", "operator": "AND"} ], "joins": [], "orders": {"columns": ["id"], "ascending": false} @@ -400,7 +400,7 @@ const getDataUserproyek = async (id) => { const formData = { "paging": {"start": 0, "length": -1}, "columns": [ - {"name": "user_id", "logic_operator": "like", "value": id.toString(), "operator": "AND"} + {"name": "user_id", "logic_operator": "ilike", "value": id.toString(), "operator": "AND"} ], "joins": [], "orders": {"columns": ["id"], "ascending": false} diff --git a/src/views/Master/UserWaspang/index.js b/src/views/Master/UserWaspang/index.js index 9a6a7be..f9cf3a4 100644 --- a/src/views/Master/UserWaspang/index.js +++ b/src/views/Master/UserWaspang/index.js @@ -90,7 +90,7 @@ const IndexUser = ({params}) => { const payload = { "paging": {"start": 0, "length": -1}, "columns": [ - {"name": "name", "logic_operator": "like", "value": "", "operator": "AND"} + {"name": "name", "logic_operator": "ilike", "value": "", "operator": "AND"} ], "joins": [], "orders": {"columns": ["id"], "ascending": false} @@ -115,7 +115,7 @@ const IndexUser = ({params}) => { const payload = { "paging": {"start": 0, "length": -1}, "columns": [ - {"name": "nama", "logic_operator": "like", "value": "", "operator": "AND"} + {"name": "nama", "logic_operator": "ilike", "value": "", "operator": "AND"} ], "joins": [], "orders": {"columns": ["id"], "ascending": false} diff --git a/src/views/Report/ControlMonitoring/index.js b/src/views/Report/ControlMonitoring/index.js index b4e9a73..6708f91 100644 --- a/src/views/Report/ControlMonitoring/index.js +++ b/src/views/Report/ControlMonitoring/index.js @@ -73,7 +73,7 @@ ada variable }, { "name": "nama", - "logic_operator": "like", + "logic_operator": "ilike", "value": "", "operator": "AND" }, @@ -203,7 +203,7 @@ export default class index extends Component { "columns": [ { "name": "nama", - "logic_operator": "like", + "logic_operator": "ilike", "value": this.state.search }, { @@ -388,7 +388,7 @@ export default class index extends Component { }, { "name": "nama", - "logic_operator": "like", + "logic_operator": "ilike", "value": this.state.search, "operator": "AND" } diff --git a/src/views/Report/Planning/index.js b/src/views/Report/Planning/index.js index f833534..eb2d45f 100644 --- a/src/views/Report/Planning/index.js +++ b/src/views/Report/Planning/index.js @@ -104,7 +104,7 @@ export default class index extends Component { ], "columns":[ {"name": "tanggal", "logic_operator": "range", "value": dateStart, "value1": dateEnd, "operator": "AND"}, - {"name": "name", "logic_operator": "like", "value": this.state.search, "operator": "AND", "table_name":"m_users"} + {"name": "name", "logic_operator": "ilike", "value": this.state.search, "operator": "AND", "table_name":"m_users"} ], "joins":[ {"name":"m_users","column_join":"user_id","column_results":["name"]}, @@ -212,7 +212,7 @@ export default class index extends Component { ], "columns":[ {"name": "tanggal", "logic_operator": "range", "value": dateStart, "value1": dateEnd, "operator": "AND"}, - {"name": "name", "logic_operator": "like", "value": this.state.search, "operator": "AND", "table_name":"m_users"} + {"name": "name", "logic_operator": "ilike", "value": this.state.search, "operator": "AND", "table_name":"m_users"} ], "joins":[ {"name":"m_users","column_join":"user_id","column_results":["name"]}, diff --git a/src/views/Report/alert/index.js b/src/views/Report/alert/index.js index 998f1a7..f57fab9 100644 --- a/src/views/Report/alert/index.js +++ b/src/views/Report/alert/index.js @@ -97,7 +97,7 @@ export default class index extends Component { payload = { "paging": {"start": start, "length": this.state.rowsPerPage}, "columns": [ - {"name": "keterangan", "logic_operator": "like", "value": this.state.search, "operator": "AND"}, + {"name": "keterangan", "logic_operator": "ilike", "value": this.state.search, "operator": "AND"}, {"name": "created_at", "logic_operator": "range", "value": dateStart, "value1": dateEnd, "operator": "AND"} ], "joins": [ @@ -115,7 +115,7 @@ export default class index extends Component { payload = { "paging": {"start": start, "length": this.state.rowsPerPage}, "columns": [ - {"name": "keterangan", "logic_operator": "like", "value": this.state.search, "operator": "AND","table_name":"alert"}, + {"name": "keterangan", "logic_operator": "ilike", "value": this.state.search, "operator": "AND","table_name":"alert"}, {"name": "created_at", "logic_operator": "range", "value": dateStart, "value1": dateEnd, "operator": "AND"}, {"name": "user_id", "logic_operator": "=", "value": localStorage.getItem('user_id'), "operator": "AND"}, ], @@ -337,7 +337,7 @@ export default class index extends Component { payload = { "paging": {"start": 0, "length": -1}, "columns": [ - {"name": "keterangan", "logic_operator": "like", "value": this.state.search, "operator": "AND"}, + {"name": "keterangan", "logic_operator": "ilike", "value": this.state.search, "operator": "AND"}, {"name": "created_at", "logic_operator": "range", "value": dateStart, "value1": dateEnd, "operator": "AND"}, ], "joins": [ @@ -355,7 +355,7 @@ export default class index extends Component { payload = { "paging": {"start": 0, "length": -1}, "columns": [ - {"name": "keterangan", "logic_operator": "like", "value": this.state.search, "operator": "AND","table_name":"alert"}, + {"name": "keterangan", "logic_operator": "ilike", "value": this.state.search, "operator": "AND","table_name":"alert"}, {"name": "created_at", "logic_operator": "range", "value": dateStart, "value1": dateEnd, "operator": "AND"}, {"name": "id", "logic_operator": "=", "value": localStorage.getItem('user_id'), "operator": "AND","table_name":'m_users'}, ], diff --git a/src/views/Report/k3/index.js b/src/views/Report/k3/index.js index 64db8f8..497a300 100644 --- a/src/views/Report/k3/index.js +++ b/src/views/Report/k3/index.js @@ -111,7 +111,7 @@ export default class index extends Component { const payload = { "paging": {"start": 0, "length": -1}, "columns": [ - {"name": "nama", "logic_operator": "like", "value": "", "operator": "AND"} + {"name": "nama", "logic_operator": "ilike", "value": "", "operator": "AND"} ], "joins": [], "orders": {"columns": ["id"], "ascending": false} @@ -166,7 +166,7 @@ export default class index extends Component { ], "columns":[ {"name": "report_date", "logic_operator": "range", "value": dateStart, "value1": dateEnd, "operator": "AND"}, - {"name": "name", "logic_operator": "like", "value": this.state.search, "operator": "AND", "table_name":"m_users"} + {"name": "name", "logic_operator": "ilike", "value": this.state.search, "operator": "AND", "table_name":"m_users"} ], "joins":[ { @@ -364,7 +364,7 @@ export default class index extends Component { }, "columns":[ {"name": "report_date", "logic_operator": "range", "value": dateStart, "value1": dateEnd, "operator": "AND"}, - {"name": "name", "logic_operator": "like", "value": this.state.search, "operator": "AND", "table_name":"m_users"} + {"name": "name", "logic_operator": "ilike", "value": this.state.search, "operator": "AND", "table_name":"m_users"} ], "joins":[ { diff --git a/src/views/SimproV2/ChecklistK3/index.js b/src/views/SimproV2/ChecklistK3/index.js index c305303..89051cf 100644 --- a/src/views/SimproV2/ChecklistK3/index.js +++ b/src/views/SimproV2/ChecklistK3/index.js @@ -69,7 +69,7 @@ const ChecklistK3 = ({ params }) => { "columns": [ { "name": "name", - "logic_operator": "like", + "logic_operator": "ilike", "value": search, "operator": "AND" } @@ -113,7 +113,7 @@ const ChecklistK3 = ({ params }) => { const payload = { "paging": { "start": 0, "length": -1 }, "columns": [ - { "name": "name", "logic_operator": "like", "value": search, "operator": "AND" } + { "name": "name", "logic_operator": "ilike", "value": search, "operator": "AND" } ], "joins": [], "orders": { "columns": ["id"], "ascending": false } diff --git a/src/views/SimproV2/Closing/index.js b/src/views/SimproV2/Closing/index.js index 08976aa..3e9c93d 100644 --- a/src/views/SimproV2/Closing/index.js +++ b/src/views/SimproV2/Closing/index.js @@ -70,7 +70,7 @@ const Closing = ({ params, ...props }) => { const payload = { "columns": [ - { "name": "nama", "logic_operator": "like", "value": "", "operator": "AND" } + { "name": "nama", "logic_operator": "ilike", "value": "", "operator": "AND" } ], "joins": [ { "name": "m_users", "column_join": "pm_id", "column_results": ["name", "username"] }, diff --git a/src/views/SimproV2/CreatedProyek/AsignHrProject.js b/src/views/SimproV2/CreatedProyek/AsignHrProject.js index 61549d6..8fa7560 100644 --- a/src/views/SimproV2/CreatedProyek/AsignHrProject.js +++ b/src/views/SimproV2/CreatedProyek/AsignHrProject.js @@ -45,7 +45,7 @@ const AssignHrProject = ({ openDialog, closeDialog, toggleDialog, idTask, toolsR "length": -1 }, "columns": [ - { "name": "name", "logic_operator": "like", "value": "", "table_name": "m_users" }, + { "name": "name", "logic_operator": "ilike", "value": "", "table_name": "m_users" }, { "name": "proyek_id", "logic_operator": "=", "value": idTask } ], "joins": [ @@ -94,7 +94,7 @@ const AssignHrProject = ({ openDialog, closeDialog, toggleDialog, idTask, toolsR "length": -1 }, "columns": [ - { "name": "created_by", "logic_operator": "like", "value": "" }, + { "name": "created_by", "logic_operator": "ilike", "value": "" }, ], "joins": [], "orders": { diff --git a/src/views/SimproV2/CreatedProyek/DataRequestMaterial.js b/src/views/SimproV2/CreatedProyek/DataRequestMaterial.js index 938645e..9609392 100644 --- a/src/views/SimproV2/CreatedProyek/DataRequestMaterial.js +++ b/src/views/SimproV2/CreatedProyek/DataRequestMaterial.js @@ -42,7 +42,7 @@ const DialogFormMaterial = ({ openDialog, closeDialog, toggleDialog, idTask, mat const getDataRequestMaterial = async () => { const payload = { "columns": [ - { "name": "description", "logic_operator": "like", "value": "", "operator": "AND" }, + { "name": "description", "logic_operator": "ilike", "value": "", "operator": "AND" }, { "name": "proyek_id", "logic_operator": "=", "value": idTask, "operator": "AND" } ], "joins": [], diff --git a/src/views/SimproV2/CreatedProyek/DialogTableTools.js b/src/views/SimproV2/CreatedProyek/DialogTableTools.js index c15c19f..f02b884 100644 --- a/src/views/SimproV2/CreatedProyek/DialogTableTools.js +++ b/src/views/SimproV2/CreatedProyek/DialogTableTools.js @@ -40,7 +40,7 @@ const DialogFormTools = ({ openDialog, closeDialog, toggleDialog, idTask, toolsR "length": -1 }, "columns": [ - { "name": "asset_name", "logic_operator": "like", "value": "", "operator": "AND" }, + { "name": "asset_name", "logic_operator": "ilike", "value": "", "operator": "AND" }, { "name": "proyek_id", "logic_operator": "=", "value": idTask, "operator": "AND" } ], "joins": [], diff --git a/src/views/SimproV2/CreatedProyek/index.js b/src/views/SimproV2/CreatedProyek/index.js index b85313b..041a53f 100644 --- a/src/views/SimproV2/CreatedProyek/index.js +++ b/src/views/SimproV2/CreatedProyek/index.js @@ -138,7 +138,7 @@ const CreatedProyek = ({ params, ...props }) => { const payload = { "columns": [ - { "name": "nama", "logic_operator": "like", "value": search, "operator": "AND" } + { "name": "nama", "logic_operator": "ilike", "value": search, "operator": "AND" } ], "joins": [ { "name": "m_users", "column_join": "pm_id", "column_results": ["name", "username"] }, diff --git a/src/views/SimproV2/Divisi/index.js b/src/views/SimproV2/Divisi/index.js index 23424ab..7985b41 100644 --- a/src/views/SimproV2/Divisi/index.js +++ b/src/views/SimproV2/Divisi/index.js @@ -76,7 +76,7 @@ const ProjectType = ({ params }) => { "columns": [ { "name": "name", - "logic_operator": "like", + "logic_operator": "ilike", "value": search, "operator": "AND" } @@ -122,7 +122,7 @@ const ProjectType = ({ params }) => { const payload = { "paging": { "start": start, "length": -1 }, "columns": [ - { "name": "name", "logic_operator": "like", "value": search, "operator": "AND" } + { "name": "name", "logic_operator": "ilike", "value": search, "operator": "AND" } ], "joins": [], "orders": { "columns": ["id"], "ascending": false } diff --git a/src/views/SimproV2/PanicButton/index.js b/src/views/SimproV2/PanicButton/index.js index edce254..51b23e0 100644 --- a/src/views/SimproV2/PanicButton/index.js +++ b/src/views/SimproV2/PanicButton/index.js @@ -105,7 +105,7 @@ export default class index extends Component { ], "columns":[ {"name": "created_at", "logic_operator": "range", "value": dateStart, "value1": dateEnd, "operator": "AND"}, - {"name": "name", "logic_operator": "like", "value": this.state.search, "operator": "AND", "table_name":"m_users"} + {"name": "name", "logic_operator": "ilike", "value": this.state.search, "operator": "AND", "table_name":"m_users"} ], "joins":[ { diff --git a/src/views/SimproV2/PlanningHarian/index.js b/src/views/SimproV2/PlanningHarian/index.js index 3e4ab6e..2dc9e31 100644 --- a/src/views/SimproV2/PlanningHarian/index.js +++ b/src/views/SimproV2/PlanningHarian/index.js @@ -89,7 +89,7 @@ const PlanningHarian = ({ params }) => { "columns": [ { "name": "name", - "logic_operator": "like", + "logic_operator": "ilike", "value": search, "operator": "AND" } diff --git a/src/views/SimproV2/Presence/index.js b/src/views/SimproV2/Presence/index.js index 076a479..529ac8c 100644 --- a/src/views/SimproV2/Presence/index.js +++ b/src/views/SimproV2/Presence/index.js @@ -66,7 +66,7 @@ const Index = ({params}) => { const payload = { "paging": {"start": start, "length": rowsPerPage}, "columns": [ - {"name": "name", "logic_operator": "like", "value": search, "table_name": "m_users"}, + {"name": "name", "logic_operator": "ilike", "value": search, "table_name": "m_users"}, {"name": "clock_in", "logic_operator": "range", "value": dateStart, "value1": dateEnd}, ], "joins": [{ @@ -166,7 +166,7 @@ const Index = ({params}) => { const payload = { "paging": {"start": 0, "length": -1}, "columns": [ - {"name": "name", "logic_operator": "like", "value": search, "table_name": "m_users"}, + {"name": "name", "logic_operator": "ilike", "value": search, "table_name": "m_users"}, {"name": "clock_in", "logic_operator": "range", "value": dateStart, "value1": dateEnd}, ], "joins": [{ diff --git a/src/views/SimproV2/ProjectType/index.js b/src/views/SimproV2/ProjectType/index.js index 98fee5a..d21ccb7 100644 --- a/src/views/SimproV2/ProjectType/index.js +++ b/src/views/SimproV2/ProjectType/index.js @@ -125,7 +125,7 @@ const ProjectType = ({params}) => { const payload = { "paging": { "start": start, "length": -1 }, "columns": [ - { "name": "name", "logic_operator": "like", "value": search, "operator": "AND" } + { "name": "name", "logic_operator": "ilike", "value": search, "operator": "AND" } ], "joins": [], "orders": { "columns": ["id"], "ascending": false } diff --git a/src/views/SimproV2/RateCost/DialogForm.js b/src/views/SimproV2/RateCost/DialogForm.js index 749fe9e..d8a5c60 100644 --- a/src/views/SimproV2/RateCost/DialogForm.js +++ b/src/views/SimproV2/RateCost/DialogForm.js @@ -37,7 +37,7 @@ const DialogForm = ({ openDialog, closeDialog, toggleDialog, typeDialog, dataEdi const formData = { "paging": { "start": 0, "length": -1 }, "columns": [ - { "name": "name", "logic_operator": "like", "value": "", "operator": "AND" } + { "name": "name", "logic_operator": "ilike", "value": "", "operator": "AND" } ], "joins": [], "orders": { "columns": ["id"], "ascending": false } diff --git a/src/views/SimproV2/RateCost/index.js b/src/views/SimproV2/RateCost/index.js index 03454fd..496f009 100644 --- a/src/views/SimproV2/RateCost/index.js +++ b/src/views/SimproV2/RateCost/index.js @@ -79,7 +79,7 @@ const RateCost = ({ params }) => { "columns": [ { "name": "name", - "logic_operator": "like", + "logic_operator": "ilike", "value": search, "operator": "AND" } @@ -133,7 +133,7 @@ const RateCost = ({ params }) => { const payload = { "paging": { "start": start, "length": -1 }, "columns": [ - { "name": "name", "logic_operator": "like", "value": search, "operator": "AND" } + { "name": "name", "logic_operator": "ilike", "value": search, "operator": "AND" } ], "joins": [ { "name": "m_role_proyek", "column_join": "proyek_role_id", "column_results": ["name"] } diff --git a/src/views/SimproV2/ResourceMaterial/index.js b/src/views/SimproV2/ResourceMaterial/index.js index 9c45c0f..76db152 100644 --- a/src/views/SimproV2/ResourceMaterial/index.js +++ b/src/views/SimproV2/ResourceMaterial/index.js @@ -80,7 +80,7 @@ const Resource = ({ params }) => { "columns": [ { "name": "name", - "logic_operator": "like", + "logic_operator": "ilike", "value": search, "operator": "AND" } @@ -113,7 +113,7 @@ const Resource = ({ params }) => { const getDataReqMaterial = async () => { const payload = { "columns": [ - { "name": "description", "logic_operator": "like", "value": "", "operator": "AND" }, + { "name": "description", "logic_operator": "ilike", "value": "", "operator": "AND" }, ], "joins": [ { "name": "m_proyek", "column_join": "proyek_id", "column_results": ["kode_sortname", "nama"] } diff --git a/src/views/SimproV2/ResourceTools/index.js b/src/views/SimproV2/ResourceTools/index.js index 201df2a..2986409 100644 --- a/src/views/SimproV2/ResourceTools/index.js +++ b/src/views/SimproV2/ResourceTools/index.js @@ -92,7 +92,7 @@ const ResourceWorker = ({ params }) => { "columns": [ { "name": "name", - "logic_operator": "like", + "logic_operator": "ilike", "value": search, "operator": "AND" } @@ -129,7 +129,7 @@ const ResourceWorker = ({ params }) => { "columns": [ { "name": "asset_type", - "logic_operator": "like", + "logic_operator": "ilike", "value": "", "operator": "AND" }, @@ -174,7 +174,7 @@ const ResourceWorker = ({ params }) => { "columns": [ { "name": "asset_type", - "logic_operator": "like", + "logic_operator": "ilike", "value": "", "operator": "AND" }, diff --git a/src/views/SimproV2/ResourceWorker/index.js b/src/views/SimproV2/ResourceWorker/index.js index a2bccd4..86e3920 100644 --- a/src/views/SimproV2/ResourceWorker/index.js +++ b/src/views/SimproV2/ResourceWorker/index.js @@ -229,7 +229,7 @@ const ResourceWorker = ({ params }) => { const payload = { "paging": { "start": 0, "length": -1 }, "columns": [ - { "name": "name", "logic_operator": "like", "value": search, "operator": "AND" } + { "name": "name", "logic_operator": "ilike", "value": search, "operator": "AND" } ], "joins": [], "orders": { "columns": ["id"], "ascending": false } diff --git a/src/views/SimproV2/Satuan/index.js b/src/views/SimproV2/Satuan/index.js index b420f89..86aa005 100644 --- a/src/views/SimproV2/Satuan/index.js +++ b/src/views/SimproV2/Satuan/index.js @@ -69,7 +69,13 @@ const Satuan = ({ params }) => { "columns": [ { "name": "name", - "logic_operator": "like", + "logic_operator": "ilike", + "value": search, + "operator": "AND" + }, + { + "name": "description", + "logic_operator": "ilike", "value": search, "operator": "AND" } @@ -113,9 +119,8 @@ const Satuan = ({ params }) => { const payload = { "paging": { "start": 0, "length": -1 }, "columns": [ - { "name": "name", "logic_operator": "like", "value": search, "operator": "AND" } + { "name": "name", "logic_operator": "ilike", "value": search, "operator": "AND" } ], - "joins": [], "orders": { "columns": ["id"], "ascending": false } } const result = await axios @@ -274,7 +279,7 @@ const Satuan = ({ params }) => {

{pageName}

- + diff --git a/src/views/SimproV2/Shift/index.js b/src/views/SimproV2/Shift/index.js index 76b316e..5b90511 100644 --- a/src/views/SimproV2/Shift/index.js +++ b/src/views/SimproV2/Shift/index.js @@ -90,7 +90,7 @@ const ProjectType = ({ params }) => { "columns": [ { "name": "name", - "logic_operator": "like", + "logic_operator": "ilike", "value": search, "operator": "AND" } @@ -143,7 +143,7 @@ const ProjectType = ({ params }) => { "columns": [ { "name": "name", - "logic_operator": "like", + "logic_operator": "ilike", "value": search, "operator": "AND" } diff --git a/src/views/SimproV2/UserShift/index.js b/src/views/SimproV2/UserShift/index.js index 665d13b..c628f4b 100644 --- a/src/views/SimproV2/UserShift/index.js +++ b/src/views/SimproV2/UserShift/index.js @@ -79,7 +79,7 @@ const ProjectType = ({ params }) => { "columns": [ { "name": "name", - "logic_operator": "like", + "logic_operator": "ilike", "value": search, "operator": "AND" } @@ -130,7 +130,7 @@ const ProjectType = ({ params }) => { const payload = { "paging": { "start": start, "length": -1 }, "columns": [ - { "name": "name", "logic_operator": "like", "value": search, "operator": "AND" } + { "name": "name", "logic_operator": "ilike", "value": search, "operator": "AND" } ], "joins": [], "orders": { "columns": ["id"], "ascending": false }