Browse Source

replace all like occurences on query builder to ilike

pull/2/head
Muhammad Sulaiman Yusuf 2 years ago
parent
commit
cb9eccbf1d
  1. 2
      src/components/LayerTreeAdm/LayerTreeGeoHR_salesver.js
  2. 4
      src/const/GeohrApiFunc.js
  3. 2
      src/views/ControlMonitoringGantt/index.js
  4. 4
      src/views/Map/Map_16.js
  5. 2
      src/views/Master/ConfigAlert/index.js
  6. 2
      src/views/Master/MasterAbsensi/DialogForm.js
  7. 6
      src/views/Master/MasterAbsensi/index.js
  8. 2
      src/views/Master/MasterBroadcast/DialogDetail.js
  9. 2
      src/views/Master/MasterBroadcast/index.js
  10. 2
      src/views/Master/MasterCustomer/index.js
  11. 2
      src/views/Master/MasterGroupSales/index.js
  12. 6
      src/views/Master/MasterMenu/index.js
  13. 2
      src/views/Master/MasterOffice/index.js
  14. 2
      src/views/Master/MasterOfficeHours/DialogForm.js
  15. 2
      src/views/Master/MasterOfficeHours/DialogForm_sales.js
  16. 2
      src/views/Master/MasterOfficeHours/index_sales.js
  17. 2
      src/views/Master/MasterRoles/DialogMenuRoles.js
  18. 2
      src/views/Master/MasterRoles/index.js
  19. 6
      src/views/Master/MasterSales/index.js
  20. 4
      src/views/Master/PlanningVsRealisasi/index.js
  21. 2
      src/views/Master/Proyek/index.js
  22. 4
      src/views/Master/RoleProject/index.js
  23. 2
      src/views/Master/SubProyek/index.js
  24. 4
      src/views/Master/UserAdmin/index.js
  25. 4
      src/views/Master/UserWaspang/index.js
  26. 6
      src/views/Report/ControlMonitoring/index.js
  27. 4
      src/views/Report/Planning/index.js
  28. 8
      src/views/Report/alert/index.js
  29. 6
      src/views/Report/k3/index.js
  30. 4
      src/views/SimproV2/ChecklistK3/index.js
  31. 2
      src/views/SimproV2/Closing/index.js
  32. 4
      src/views/SimproV2/CreatedProyek/AsignHrProject.js
  33. 2
      src/views/SimproV2/CreatedProyek/DataRequestMaterial.js
  34. 2
      src/views/SimproV2/CreatedProyek/DialogTableTools.js
  35. 2
      src/views/SimproV2/CreatedProyek/index.js
  36. 4
      src/views/SimproV2/Divisi/index.js
  37. 2
      src/views/SimproV2/PanicButton/index.js
  38. 2
      src/views/SimproV2/PlanningHarian/index.js
  39. 4
      src/views/SimproV2/Presence/index.js
  40. 2
      src/views/SimproV2/ProjectType/index.js
  41. 2
      src/views/SimproV2/RateCost/DialogForm.js
  42. 4
      src/views/SimproV2/RateCost/index.js
  43. 4
      src/views/SimproV2/ResourceMaterial/index.js
  44. 6
      src/views/SimproV2/ResourceTools/index.js
  45. 2
      src/views/SimproV2/ResourceWorker/index.js
  46. 13
      src/views/SimproV2/Satuan/index.js
  47. 4
      src/views/SimproV2/Shift/index.js
  48. 4
      src/views/SimproV2/UserShift/index.js

2
src/components/LayerTreeAdm/LayerTreeGeoHR_salesver.js

@ -56,7 +56,7 @@ class LayerTreeGeoHR extends Component {
body: JSON.stringify({ body: JSON.stringify({
"paging": {"start": 0, "length": -1}, "paging": {"start": 0, "length": -1},
"columns": [ "columns": [
{"name":"name", "logic_operator": "like", "value": "", "operator": "and"} {"name":"name", "logic_operator": "ilike", "value": "", "operator": "and"}
], ],
"orders": {"columns": ["name"], "ascending": true} "orders": {"columns": ["name"], "ascending": true}
}) })

4
src/const/GeohrApiFunc.js

@ -126,7 +126,7 @@ export const getOfficeFeatures = async () => {
body: JSON.stringify({ body: JSON.stringify({
"paging": {"start": 0, "length": -1}, "paging": {"start": 0, "length": -1},
"columns": [ "columns": [
{"name":"name", "logic_operator": "like", "value": "", "operator": "and"} {"name":"name", "logic_operator": "ilike", "value": "", "operator": "and"}
], ],
"orders": {"columns": ["name"], "ascending": true} "orders": {"columns": ["name"], "ascending": true}
}) })
@ -152,7 +152,7 @@ export const getCustomerFeatures = async () => {
let bodyParam = { let bodyParam = {
"paging": {"start": 0, "length": -1}, "paging": {"start": 0, "length": -1},
"columns": [ "columns": [
{"name":"name", "logic_operator": "like", "value": "", "operator": "and"} {"name":"name", "logic_operator": "ilike", "value": "", "operator": "and"}
], ],
"orders": {"columns": ["name"], "ascending": true} "orders": {"columns": ["name"], "ascending": true}
} }

2
src/views/ControlMonitoringGantt/index.js

@ -109,7 +109,7 @@ const GanttTimeLine = () => {
const payload = { const payload = {
"columns": [ "columns": [
{ "name": "nama", "logic_operator": "like", "value": "", "operator": "AND" } { "name": "nama", "logic_operator": "ilike", "value": "", "operator": "AND" }
], ],
"joins": [ "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"] }, { "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"] },

4
src/views/Map/Map_16.js

@ -1010,7 +1010,7 @@ class SiopasMap extends Component {
const payload = { const payload = {
"paging": { "start": 0, "length": -1 }, "paging": { "start": 0, "length": -1 },
"columns": [ "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 }, { "name": "clock_in", "logic_operator": "range", "value": dateStart, "value1": dateEnd },
], ],
"joins": [{ "joins": [{
@ -2910,7 +2910,7 @@ class SiopasMap extends Component {
const payload = { const payload = {
"columns": [ "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" }, { "name": "id", "logic_operator": "in", "value": str ? str : "0", "operator": "AND" },
], ],
"joins": [ "joins": [

2
src/views/Master/ConfigAlert/index.js

@ -39,7 +39,7 @@ const Index = ({params}) => {
const payload = { const payload = {
"paging": {"start": 0, "length": -1}, "paging": {"start": 0, "length": -1},
"columns": [ "columns": [
{"name": "nama", "logic_operator": "like", "value": "", "operator": "AND"} {"name": "nama", "logic_operator": "ilike", "value": "", "operator": "AND"}
], ],
"joins": [], "joins": [],
"orders": {"columns": ["id"], "ascending": false} "orders": {"columns": ["id"], "ascending": false}

2
src/views/Master/MasterAbsensi/DialogForm.js

@ -76,7 +76,7 @@ export default class DialogForm extends Component {
const formData = { const formData = {
"paging": {"start": 0, "length": -1}, "paging": {"start": 0, "length": -1},
"columns": [ "columns": [
{"name": "name", "logic_operator": "like", "value": "", "operator": "AND"} {"name": "name", "logic_operator": "ilike", "value": "", "operator": "AND"}
], ],
"joins": [], "joins": [],
"orders": {"columns": ["id"], "ascending": false} "orders": {"columns": ["id"], "ascending": false}

6
src/views/Master/MasterAbsensi/index.js

@ -108,7 +108,7 @@ export default class index extends Component {
const payload = { const payload = {
"paging": {"start": 0, "length": -1}, "paging": {"start": 0, "length": -1},
"columns": [ "columns": [
{"name": "nama", "logic_operator": "like", "value": "", "operator": "AND"} {"name": "nama", "logic_operator": "ilike", "value": "", "operator": "AND"}
], ],
"joins": [], "joins": [],
"orders": {"columns": ["id"], "ascending": false} "orders": {"columns": ["id"], "ascending": false}
@ -184,7 +184,7 @@ export default class index extends Component {
], ],
"columns":[ "columns":[
{"name": "created_at", "logic_operator": "range", "value": dateStart, "value1": dateEnd, "operator": "AND"}, {"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":[ "joins":[
{ {
@ -363,7 +363,7 @@ export default class index extends Component {
], ],
"columns":[ "columns":[
{"name": "created_at", "logic_operator": "range", "value": dateStart, "value1": dateEnd, "operator": "AND"}, {"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":[ "joins":[
{ {

2
src/views/Master/MasterBroadcast/DialogDetail.js

@ -46,7 +46,7 @@ export default class DialogDetail extends Component {
"paging": {"start": 0, "length": 25}, "paging": {"start": 0, "length": 25},
"orders": {"columns": ["id"], "ascending": true}, "orders": {"columns": ["id"], "ascending": true},
"columns": [ "columns": [
{"name": "status_send", "logic_operator": "like", "value":"", "operator": "AND"} {"name": "status_send", "logic_operator": "ilike", "value":"", "operator": "AND"}
], ],
"joins": [ "joins": [
{"name": "m_broadcast", "column_results": ["title_notif","message_notif","description","status_send"], "column_join":"broadcast_id"} {"name": "m_broadcast", "column_results": ["title_notif","message_notif","description","status_send"], "column_join":"broadcast_id"}

2
src/views/Master/MasterBroadcast/index.js

@ -113,7 +113,7 @@ export default class index extends Component {
"value1": `${dateEnd}` "value1": `${dateEnd}`
}, },
{ {
"logic_operator": "like", "logic_operator": "ilike",
"name": "title_notif", "name": "title_notif",
"operator": "AND", "operator": "AND",
"value": "" "value": ""

2
src/views/Master/MasterCustomer/index.js

@ -76,7 +76,7 @@ export default class index extends Component {
...searchDetail !== "All" && ...searchDetail !== "All" &&
{ {
"columns": [ "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 } "orders": { "columns": ["name"], "ascending": true }

2
src/views/Master/MasterGroupSales/index.js

@ -97,7 +97,7 @@ export default class index extends Component {
...searchDetail !== "All" && ...searchDetail !== "All" &&
{ {
"columns": [ "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 } "orders": { "columns": ["created_date"], "ascending": false }

6
src/views/Master/MasterMenu/index.js

@ -76,7 +76,7 @@ const Index = ({params}) => {
const payload = { const payload = {
"paging": {"start": 0, "length": -1}, "paging": {"start": 0, "length": -1},
"columns": [ "columns": [
{"name": "name", "logic_operator": "like", "value": "", "operator": "AND"} {"name": "name", "logic_operator": "ilike", "value": "", "operator": "AND"}
], ],
"joins": [], "joins": [],
"orders": {"columns": ["id"], "ascending": false} "orders": {"columns": ["id"], "ascending": false}
@ -102,7 +102,7 @@ const Index = ({params}) => {
const payload = { const payload = {
"paging": {"start": start, "length": rowsPerPage}, "paging": {"start": start, "length": rowsPerPage},
"columns": [ "columns": [
{"name": "name", "logic_operator": "like", "value": search, "operator": "AND"} {"name": "name", "logic_operator": "ilike", "value": search, "operator": "AND"}
], ],
"joins": [{ "joins": [{
"name":"m_menu", "name":"m_menu",
@ -229,7 +229,7 @@ const Index = ({params}) => {
const payload = { const payload = {
"paging": {"start": 0, "length": -1}, "paging": {"start": 0, "length": -1},
"columns": [ "columns": [
{"name": "name", "logic_operator": "like", "value": search, "operator": "AND"} {"name": "name", "logic_operator": "ilike", "value": search, "operator": "AND"}
], ],
"joins": [{ "joins": [{
"name":"m_menu", "name":"m_menu",

2
src/views/Master/MasterOffice/index.js

@ -71,7 +71,7 @@ export default class index extends Component {
...searchDetail !== "All" && ...searchDetail !== "All" &&
{ {
"columns": [ "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 } "orders": { "columns": ["created_date"], "ascending": false }

2
src/views/Master/MasterOfficeHours/DialogForm.js

@ -133,7 +133,7 @@ export default class DialogForm extends Component {
const obj = { const obj = {
"paging": {"start": 0, "length": -1}, "paging": {"start": 0, "length": -1},
"columns": [ "columns": [
{"name":"name", "logic_operator": "like", "value": "", "operator": "and"} {"name":"name", "logic_operator": "ilike", "value": "", "operator": "and"}
], ],
"orders": {"columns": ["name"], "ascending": true} "orders": {"columns": ["name"], "ascending": true}
} }

2
src/views/Master/MasterOfficeHours/DialogForm_sales.js

@ -100,7 +100,7 @@ export default class DialogForm extends Component {
const obj = { const obj = {
"paging": {"start": 0, "length": -1}, "paging": {"start": 0, "length": -1},
"columns": [ "columns": [
{"name":"name", "logic_operator": "like", "value": "", "operator": "and"} {"name":"name", "logic_operator": "ilike", "value": "", "operator": "and"}
], ],
"joins": [ "joins": [
{"name": "group_sales", "column_results": ["name", "description"]} {"name": "group_sales", "column_results": ["name", "description"]}

2
src/views/Master/MasterOfficeHours/index_sales.js

@ -73,7 +73,7 @@ export default class index extends Component {
"columns": [ "columns": [
{ {
"name": "name", "name": "name",
"logic_operator": "like", "logic_operator": "ilike",
"value": this.state.search.toString(), "value": this.state.search.toString(),
"operator": "and", "operator": "and",
"table_name": "m_sales" "table_name": "m_sales"

2
src/views/Master/MasterRoles/DialogMenuRoles.js

@ -54,7 +54,7 @@ export default class DialogMenuRoles extends Component {
const payload = { const payload = {
"paging": {"start": 0, "length": -1}, "paging": {"start": 0, "length": -1},
"columns": [ "columns": [
{"name": "name", "logic_operator": "like", "value": "", "operator": "AND"} {"name": "name", "logic_operator": "ilike", "value": "", "operator": "AND"}
], ],
"joins": [], "joins": [],
"orders": {"columns": ["id"], "ascending": false} "orders": {"columns": ["id"], "ascending": false}

2
src/views/Master/MasterRoles/index.js

@ -104,7 +104,7 @@ export default class index extends Component {
const formData = { const formData = {
"paging": {"start": start, "length": this.state.rowsPerPage}, "paging": {"start": start, "length": this.state.rowsPerPage},
"columns": [ "columns": [
{"name": "name", "logic_operator": "like", "value": this.state.search, "operator": "AND"} {"name": "name", "logic_operator": "ilike", "value": this.state.search, "operator": "AND"}
], ],
"joins": [], "joins": [],
"orders": {"columns": ["id"], "ascending": false} "orders": {"columns": ["id"], "ascending": false}

6
src/views/Master/MasterSales/index.js

@ -67,7 +67,7 @@ export default class index extends Component {
"columns": [ "columns": [
{ {
"name": "name", "name": "name",
"logic_operator": "like", "logic_operator": "ilike",
"value": "", "value": "",
"operator": "and" "operator": "and"
} }
@ -109,13 +109,13 @@ export default class index extends Component {
...searchDetail !== "All" && searchDetail !== "Group Sales" && ...searchDetail !== "All" && searchDetail !== "Group Sales" &&
{ {
"columns": [ "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" && ...searchDetail === "Group Sales" &&
{ {
"columns": [ "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" }
] ]
}, },

4
src/views/Master/PlanningVsRealisasi/index.js

@ -116,7 +116,7 @@ export default class index extends Component {
}, },
{ {
"name": "nama", "name": "nama",
"logic_operator": "like", "logic_operator": "ilike",
"value": this.state.search, "value": this.state.search,
"operator": "AND", "operator": "AND",
} }
@ -307,7 +307,7 @@ export default class index extends Component {
}, },
{ {
"name": "nama", "name": "nama",
"logic_operator": "like", "logic_operator": "ilike",
"value": this.state.search, "value": this.state.search,
"operator": "AND", "operator": "AND",
} }

2
src/views/Master/Proyek/index.js

@ -108,7 +108,7 @@ const IndexRole = ({ params }) => {
const payload = { const payload = {
"columns": [ "columns": [
{ "name": "nama", "logic_operator": "like", "value": "", "operator": "AND" } { "name": "nama", "logic_operator": "ilike", "value": "", "operator": "AND" }
], ],
"joins": [ "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"] }, { "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"] },

4
src/views/Master/RoleProject/index.js

@ -104,7 +104,7 @@ export default class index extends Component {
const formData = { const formData = {
"paging": {"start": start, "length": this.state.rowsPerPage}, "paging": {"start": start, "length": this.state.rowsPerPage},
"columns": [ "columns": [
{"name": "name", "logic_operator": "like", "value": this.state.search, "operator": "AND"} {"name": "name", "logic_operator": "ilike", "value": this.state.search, "operator": "AND"}
], ],
"joins": [], "joins": [],
"orders": {"columns": ["id"], "ascending": false} "orders": {"columns": ["id"], "ascending": false}
@ -260,7 +260,7 @@ export default class index extends Component {
const payload = { const payload = {
"paging": {"start": 0, "length": -1}, "paging": {"start": 0, "length": -1},
"columns": [ "columns": [
{"name": "name", "logic_operator": "like", "value": this.state.search, "operator": "AND"} {"name": "name", "logic_operator": "ilike", "value": this.state.search, "operator": "AND"}
], ],
"joins": [], "joins": [],
"orders": {"columns": ["id"], "ascending": false} "orders": {"columns": ["id"], "ascending": false}

2
src/views/Master/SubProyek/index.js

@ -216,7 +216,7 @@ const IndexRole = () => {
const payload = { const payload = {
"paging": { "start": start, "length": -1 }, "paging": { "start": start, "length": -1 },
"columns": [ "columns": [
{ "name": "role_name", "logic_operator": "like", "value": search, "operator": "AND" } { "name": "role_name", "logic_operator": "ilike", "value": search, "operator": "AND" }
], ],
"joins": [], "joins": [],
"orders": { "columns": ["id"], "ascending": false } "orders": { "columns": ["id"], "ascending": false }

4
src/views/Master/UserAdmin/index.js

@ -88,7 +88,7 @@ const IndexUser = ({params}) => {
const payload = { const payload = {
"paging": {"start": 0, "length": -1}, "paging": {"start": 0, "length": -1},
"columns": [ "columns": [
{"name": "nama", "logic_operator": "like", "value": "", "operator": "AND"} {"name": "nama", "logic_operator": "ilike", "value": "", "operator": "AND"}
], ],
"joins": [], "joins": [],
"orders": {"columns": ["id"], "ascending": false} "orders": {"columns": ["id"], "ascending": false}
@ -400,7 +400,7 @@ const getDataUserproyek = async (id) => {
const formData = { const formData = {
"paging": {"start": 0, "length": -1}, "paging": {"start": 0, "length": -1},
"columns": [ "columns": [
{"name": "user_id", "logic_operator": "like", "value": id.toString(), "operator": "AND"} {"name": "user_id", "logic_operator": "ilike", "value": id.toString(), "operator": "AND"}
], ],
"joins": [], "joins": [],
"orders": {"columns": ["id"], "ascending": false} "orders": {"columns": ["id"], "ascending": false}

4
src/views/Master/UserWaspang/index.js

@ -90,7 +90,7 @@ const IndexUser = ({params}) => {
const payload = { const payload = {
"paging": {"start": 0, "length": -1}, "paging": {"start": 0, "length": -1},
"columns": [ "columns": [
{"name": "name", "logic_operator": "like", "value": "", "operator": "AND"} {"name": "name", "logic_operator": "ilike", "value": "", "operator": "AND"}
], ],
"joins": [], "joins": [],
"orders": {"columns": ["id"], "ascending": false} "orders": {"columns": ["id"], "ascending": false}
@ -115,7 +115,7 @@ const IndexUser = ({params}) => {
const payload = { const payload = {
"paging": {"start": 0, "length": -1}, "paging": {"start": 0, "length": -1},
"columns": [ "columns": [
{"name": "nama", "logic_operator": "like", "value": "", "operator": "AND"} {"name": "nama", "logic_operator": "ilike", "value": "", "operator": "AND"}
], ],
"joins": [], "joins": [],
"orders": {"columns": ["id"], "ascending": false} "orders": {"columns": ["id"], "ascending": false}

6
src/views/Report/ControlMonitoring/index.js

@ -73,7 +73,7 @@ ada variable
}, },
{ {
"name": "nama", "name": "nama",
"logic_operator": "like", "logic_operator": "ilike",
"value": "", "value": "",
"operator": "AND" "operator": "AND"
}, },
@ -203,7 +203,7 @@ export default class index extends Component {
"columns": [ "columns": [
{ {
"name": "nama", "name": "nama",
"logic_operator": "like", "logic_operator": "ilike",
"value": this.state.search "value": this.state.search
}, },
{ {
@ -388,7 +388,7 @@ export default class index extends Component {
}, },
{ {
"name": "nama", "name": "nama",
"logic_operator": "like", "logic_operator": "ilike",
"value": this.state.search, "value": this.state.search,
"operator": "AND" "operator": "AND"
} }

4
src/views/Report/Planning/index.js

@ -104,7 +104,7 @@ export default class index extends Component {
], ],
"columns":[ "columns":[
{"name": "tanggal", "logic_operator": "range", "value": dateStart, "value1": dateEnd, "operator": "AND"}, {"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":[ "joins":[
{"name":"m_users","column_join":"user_id","column_results":["name"]}, {"name":"m_users","column_join":"user_id","column_results":["name"]},
@ -212,7 +212,7 @@ export default class index extends Component {
], ],
"columns":[ "columns":[
{"name": "tanggal", "logic_operator": "range", "value": dateStart, "value1": dateEnd, "operator": "AND"}, {"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":[ "joins":[
{"name":"m_users","column_join":"user_id","column_results":["name"]}, {"name":"m_users","column_join":"user_id","column_results":["name"]},

8
src/views/Report/alert/index.js

@ -97,7 +97,7 @@ export default class index extends Component {
payload = { payload = {
"paging": {"start": start, "length": this.state.rowsPerPage}, "paging": {"start": start, "length": this.state.rowsPerPage},
"columns": [ "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"} {"name": "created_at", "logic_operator": "range", "value": dateStart, "value1": dateEnd, "operator": "AND"}
], ],
"joins": [ "joins": [
@ -115,7 +115,7 @@ export default class index extends Component {
payload = { payload = {
"paging": {"start": start, "length": this.state.rowsPerPage}, "paging": {"start": start, "length": this.state.rowsPerPage},
"columns": [ "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": "created_at", "logic_operator": "range", "value": dateStart, "value1": dateEnd, "operator": "AND"},
{"name": "user_id", "logic_operator": "=", "value": localStorage.getItem('user_id'), "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 = { payload = {
"paging": {"start": 0, "length": -1}, "paging": {"start": 0, "length": -1},
"columns": [ "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"}, {"name": "created_at", "logic_operator": "range", "value": dateStart, "value1": dateEnd, "operator": "AND"},
], ],
"joins": [ "joins": [
@ -355,7 +355,7 @@ export default class index extends Component {
payload = { payload = {
"paging": {"start": 0, "length": -1}, "paging": {"start": 0, "length": -1},
"columns": [ "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": "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'}, {"name": "id", "logic_operator": "=", "value": localStorage.getItem('user_id'), "operator": "AND","table_name":'m_users'},
], ],

6
src/views/Report/k3/index.js

@ -111,7 +111,7 @@ export default class index extends Component {
const payload = { const payload = {
"paging": {"start": 0, "length": -1}, "paging": {"start": 0, "length": -1},
"columns": [ "columns": [
{"name": "nama", "logic_operator": "like", "value": "", "operator": "AND"} {"name": "nama", "logic_operator": "ilike", "value": "", "operator": "AND"}
], ],
"joins": [], "joins": [],
"orders": {"columns": ["id"], "ascending": false} "orders": {"columns": ["id"], "ascending": false}
@ -166,7 +166,7 @@ export default class index extends Component {
], ],
"columns":[ "columns":[
{"name": "report_date", "logic_operator": "range", "value": dateStart, "value1": dateEnd, "operator": "AND"}, {"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":[ "joins":[
{ {
@ -364,7 +364,7 @@ export default class index extends Component {
}, },
"columns":[ "columns":[
{"name": "report_date", "logic_operator": "range", "value": dateStart, "value1": dateEnd, "operator": "AND"}, {"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":[ "joins":[
{ {

4
src/views/SimproV2/ChecklistK3/index.js

@ -69,7 +69,7 @@ const ChecklistK3 = ({ params }) => {
"columns": [ "columns": [
{ {
"name": "name", "name": "name",
"logic_operator": "like", "logic_operator": "ilike",
"value": search, "value": search,
"operator": "AND" "operator": "AND"
} }
@ -113,7 +113,7 @@ const ChecklistK3 = ({ params }) => {
const payload = { const payload = {
"paging": { "start": 0, "length": -1 }, "paging": { "start": 0, "length": -1 },
"columns": [ "columns": [
{ "name": "name", "logic_operator": "like", "value": search, "operator": "AND" } { "name": "name", "logic_operator": "ilike", "value": search, "operator": "AND" }
], ],
"joins": [], "joins": [],
"orders": { "columns": ["id"], "ascending": false } "orders": { "columns": ["id"], "ascending": false }

2
src/views/SimproV2/Closing/index.js

@ -70,7 +70,7 @@ const Closing = ({ params, ...props }) => {
const payload = { const payload = {
"columns": [ "columns": [
{ "name": "nama", "logic_operator": "like", "value": "", "operator": "AND" } { "name": "nama", "logic_operator": "ilike", "value": "", "operator": "AND" }
], ],
"joins": [ "joins": [
{ "name": "m_users", "column_join": "pm_id", "column_results": ["name", "username"] }, { "name": "m_users", "column_join": "pm_id", "column_results": ["name", "username"] },

4
src/views/SimproV2/CreatedProyek/AsignHrProject.js

@ -45,7 +45,7 @@ const AssignHrProject = ({ openDialog, closeDialog, toggleDialog, idTask, toolsR
"length": -1 "length": -1
}, },
"columns": [ "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 } { "name": "proyek_id", "logic_operator": "=", "value": idTask }
], ],
"joins": [ "joins": [
@ -94,7 +94,7 @@ const AssignHrProject = ({ openDialog, closeDialog, toggleDialog, idTask, toolsR
"length": -1 "length": -1
}, },
"columns": [ "columns": [
{ "name": "created_by", "logic_operator": "like", "value": "" }, { "name": "created_by", "logic_operator": "ilike", "value": "" },
], ],
"joins": [], "joins": [],
"orders": { "orders": {

2
src/views/SimproV2/CreatedProyek/DataRequestMaterial.js

@ -42,7 +42,7 @@ const DialogFormMaterial = ({ openDialog, closeDialog, toggleDialog, idTask, mat
const getDataRequestMaterial = async () => { const getDataRequestMaterial = async () => {
const payload = { const payload = {
"columns": [ "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" } { "name": "proyek_id", "logic_operator": "=", "value": idTask, "operator": "AND" }
], ],
"joins": [], "joins": [],

2
src/views/SimproV2/CreatedProyek/DialogTableTools.js

@ -40,7 +40,7 @@ const DialogFormTools = ({ openDialog, closeDialog, toggleDialog, idTask, toolsR
"length": -1 "length": -1
}, },
"columns": [ "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" } { "name": "proyek_id", "logic_operator": "=", "value": idTask, "operator": "AND" }
], ],
"joins": [], "joins": [],

2
src/views/SimproV2/CreatedProyek/index.js

@ -138,7 +138,7 @@ const CreatedProyek = ({ params, ...props }) => {
const payload = { const payload = {
"columns": [ "columns": [
{ "name": "nama", "logic_operator": "like", "value": search, "operator": "AND" } { "name": "nama", "logic_operator": "ilike", "value": search, "operator": "AND" }
], ],
"joins": [ "joins": [
{ "name": "m_users", "column_join": "pm_id", "column_results": ["name", "username"] }, { "name": "m_users", "column_join": "pm_id", "column_results": ["name", "username"] },

4
src/views/SimproV2/Divisi/index.js

@ -76,7 +76,7 @@ const ProjectType = ({ params }) => {
"columns": [ "columns": [
{ {
"name": "name", "name": "name",
"logic_operator": "like", "logic_operator": "ilike",
"value": search, "value": search,
"operator": "AND" "operator": "AND"
} }
@ -122,7 +122,7 @@ const ProjectType = ({ params }) => {
const payload = { const payload = {
"paging": { "start": start, "length": -1 }, "paging": { "start": start, "length": -1 },
"columns": [ "columns": [
{ "name": "name", "logic_operator": "like", "value": search, "operator": "AND" } { "name": "name", "logic_operator": "ilike", "value": search, "operator": "AND" }
], ],
"joins": [], "joins": [],
"orders": { "columns": ["id"], "ascending": false } "orders": { "columns": ["id"], "ascending": false }

2
src/views/SimproV2/PanicButton/index.js

@ -105,7 +105,7 @@ export default class index extends Component {
], ],
"columns":[ "columns":[
{"name": "created_at", "logic_operator": "range", "value": dateStart, "value1": dateEnd, "operator": "AND"}, {"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":[ "joins":[
{ {

2
src/views/SimproV2/PlanningHarian/index.js

@ -89,7 +89,7 @@ const PlanningHarian = ({ params }) => {
"columns": [ "columns": [
{ {
"name": "name", "name": "name",
"logic_operator": "like", "logic_operator": "ilike",
"value": search, "value": search,
"operator": "AND" "operator": "AND"
} }

4
src/views/SimproV2/Presence/index.js

@ -66,7 +66,7 @@ const Index = ({params}) => {
const payload = { const payload = {
"paging": {"start": start, "length": rowsPerPage}, "paging": {"start": start, "length": rowsPerPage},
"columns": [ "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}, {"name": "clock_in", "logic_operator": "range", "value": dateStart, "value1": dateEnd},
], ],
"joins": [{ "joins": [{
@ -166,7 +166,7 @@ const Index = ({params}) => {
const payload = { const payload = {
"paging": {"start": 0, "length": -1}, "paging": {"start": 0, "length": -1},
"columns": [ "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}, {"name": "clock_in", "logic_operator": "range", "value": dateStart, "value1": dateEnd},
], ],
"joins": [{ "joins": [{

2
src/views/SimproV2/ProjectType/index.js

@ -125,7 +125,7 @@ const ProjectType = ({params}) => {
const payload = { const payload = {
"paging": { "start": start, "length": -1 }, "paging": { "start": start, "length": -1 },
"columns": [ "columns": [
{ "name": "name", "logic_operator": "like", "value": search, "operator": "AND" } { "name": "name", "logic_operator": "ilike", "value": search, "operator": "AND" }
], ],
"joins": [], "joins": [],
"orders": { "columns": ["id"], "ascending": false } "orders": { "columns": ["id"], "ascending": false }

2
src/views/SimproV2/RateCost/DialogForm.js

@ -37,7 +37,7 @@ const DialogForm = ({ openDialog, closeDialog, toggleDialog, typeDialog, dataEdi
const formData = { const formData = {
"paging": { "start": 0, "length": -1 }, "paging": { "start": 0, "length": -1 },
"columns": [ "columns": [
{ "name": "name", "logic_operator": "like", "value": "", "operator": "AND" } { "name": "name", "logic_operator": "ilike", "value": "", "operator": "AND" }
], ],
"joins": [], "joins": [],
"orders": { "columns": ["id"], "ascending": false } "orders": { "columns": ["id"], "ascending": false }

4
src/views/SimproV2/RateCost/index.js

@ -79,7 +79,7 @@ const RateCost = ({ params }) => {
"columns": [ "columns": [
{ {
"name": "name", "name": "name",
"logic_operator": "like", "logic_operator": "ilike",
"value": search, "value": search,
"operator": "AND" "operator": "AND"
} }
@ -133,7 +133,7 @@ const RateCost = ({ params }) => {
const payload = { const payload = {
"paging": { "start": start, "length": -1 }, "paging": { "start": start, "length": -1 },
"columns": [ "columns": [
{ "name": "name", "logic_operator": "like", "value": search, "operator": "AND" } { "name": "name", "logic_operator": "ilike", "value": search, "operator": "AND" }
], ],
"joins": [ "joins": [
{ "name": "m_role_proyek", "column_join": "proyek_role_id", "column_results": ["name"] } { "name": "m_role_proyek", "column_join": "proyek_role_id", "column_results": ["name"] }

4
src/views/SimproV2/ResourceMaterial/index.js

@ -80,7 +80,7 @@ const Resource = ({ params }) => {
"columns": [ "columns": [
{ {
"name": "name", "name": "name",
"logic_operator": "like", "logic_operator": "ilike",
"value": search, "value": search,
"operator": "AND" "operator": "AND"
} }
@ -113,7 +113,7 @@ const Resource = ({ params }) => {
const getDataReqMaterial = async () => { const getDataReqMaterial = async () => {
const payload = { const payload = {
"columns": [ "columns": [
{ "name": "description", "logic_operator": "like", "value": "", "operator": "AND" }, { "name": "description", "logic_operator": "ilike", "value": "", "operator": "AND" },
], ],
"joins": [ "joins": [
{ "name": "m_proyek", "column_join": "proyek_id", "column_results": ["kode_sortname", "nama"] } { "name": "m_proyek", "column_join": "proyek_id", "column_results": ["kode_sortname", "nama"] }

6
src/views/SimproV2/ResourceTools/index.js

@ -92,7 +92,7 @@ const ResourceWorker = ({ params }) => {
"columns": [ "columns": [
{ {
"name": "name", "name": "name",
"logic_operator": "like", "logic_operator": "ilike",
"value": search, "value": search,
"operator": "AND" "operator": "AND"
} }
@ -129,7 +129,7 @@ const ResourceWorker = ({ params }) => {
"columns": [ "columns": [
{ {
"name": "asset_type", "name": "asset_type",
"logic_operator": "like", "logic_operator": "ilike",
"value": "", "value": "",
"operator": "AND" "operator": "AND"
}, },
@ -174,7 +174,7 @@ const ResourceWorker = ({ params }) => {
"columns": [ "columns": [
{ {
"name": "asset_type", "name": "asset_type",
"logic_operator": "like", "logic_operator": "ilike",
"value": "", "value": "",
"operator": "AND" "operator": "AND"
}, },

2
src/views/SimproV2/ResourceWorker/index.js

@ -229,7 +229,7 @@ const ResourceWorker = ({ params }) => {
const payload = { const payload = {
"paging": { "start": 0, "length": -1 }, "paging": { "start": 0, "length": -1 },
"columns": [ "columns": [
{ "name": "name", "logic_operator": "like", "value": search, "operator": "AND" } { "name": "name", "logic_operator": "ilike", "value": search, "operator": "AND" }
], ],
"joins": [], "joins": [],
"orders": { "columns": ["id"], "ascending": false } "orders": { "columns": ["id"], "ascending": false }

13
src/views/SimproV2/Satuan/index.js

@ -69,7 +69,13 @@ const Satuan = ({ params }) => {
"columns": [ "columns": [
{ {
"name": "name", "name": "name",
"logic_operator": "like", "logic_operator": "ilike",
"value": search,
"operator": "AND"
},
{
"name": "description",
"logic_operator": "ilike",
"value": search, "value": search,
"operator": "AND" "operator": "AND"
} }
@ -113,9 +119,8 @@ const Satuan = ({ params }) => {
const payload = { const payload = {
"paging": { "start": 0, "length": -1 }, "paging": { "start": 0, "length": -1 },
"columns": [ "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 } "orders": { "columns": ["id"], "ascending": false }
} }
const result = await axios const result = await axios
@ -274,7 +279,7 @@ const Satuan = ({ params }) => {
<h4 className="capitalize">{pageName}</h4> <h4 className="capitalize">{pageName}</h4>
<Row> <Row>
<Col> <Col>
<Input onChange={handleSearch} value={search} type="text" name="search" id="search" placeholder={`Search divisi...`} /> <Input onChange={handleSearch} value={search} type="text" name="search" id="search" placeholder={`Pencarian`} />
</Col> </Col>
<Col> <Col>
<Tooltip title="Add UOM"> <Tooltip title="Add UOM">

4
src/views/SimproV2/Shift/index.js

@ -90,7 +90,7 @@ const ProjectType = ({ params }) => {
"columns": [ "columns": [
{ {
"name": "name", "name": "name",
"logic_operator": "like", "logic_operator": "ilike",
"value": search, "value": search,
"operator": "AND" "operator": "AND"
} }
@ -143,7 +143,7 @@ const ProjectType = ({ params }) => {
"columns": [ "columns": [
{ {
"name": "name", "name": "name",
"logic_operator": "like", "logic_operator": "ilike",
"value": search, "value": search,
"operator": "AND" "operator": "AND"
} }

4
src/views/SimproV2/UserShift/index.js

@ -79,7 +79,7 @@ const ProjectType = ({ params }) => {
"columns": [ "columns": [
{ {
"name": "name", "name": "name",
"logic_operator": "like", "logic_operator": "ilike",
"value": search, "value": search,
"operator": "AND" "operator": "AND"
} }
@ -130,7 +130,7 @@ const ProjectType = ({ params }) => {
const payload = { const payload = {
"paging": { "start": start, "length": -1 }, "paging": { "start": start, "length": -1 },
"columns": [ "columns": [
{ "name": "name", "logic_operator": "like", "value": search, "operator": "AND" } { "name": "name", "logic_operator": "ilike", "value": search, "operator": "AND" }
], ],
"joins": [], "joins": [],
"orders": { "columns": ["id"], "ascending": false } "orders": { "columns": ["id"], "ascending": false }

Loading…
Cancel
Save