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({
"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}
})

4
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}
}

2
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"] },

4
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": [

2
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}

2
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}

6
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":[
{

2
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"}

2
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": ""

2
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 }

2
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 }

6
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",

2
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 }

2
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}
}

2
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"]}

2
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"

2
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}

2
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}

6
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" }
]
},

4
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",
}

2
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"] },

4
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}

2
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 }

4
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}

4
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}

6
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"
}

4
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"]},

8
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'},
],

6
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":[
{

4
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 }

2
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"] },

4
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": {

2
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": [],

2
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": [],

2
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"] },

4
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 }

2
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":[
{

2
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"
}

4
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": [{

2
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 }

2
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 }

4
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"] }

4
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"] }

6
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"
},

2
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 }

13
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 }) => {
<h4 className="capitalize">{pageName}</h4>
<Row>
<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>
<Tooltip title="Add UOM">

4
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"
}

4
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 }

Loading…
Cancel
Save