const URL = "/one-api/mockup/masterdata/"; export async function search(token, code,name) { try { var resp = await axios.post(URL + 'normalvalue/search', { token:token, code: code, nama: name }); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function searchmethode(token,prm) { try { var resp = await axios.post(URL + 'normalvalue/searchmethode',{token:token,search:prm}); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch(e) { return { status: "ERR", message: e.message }; } } export async function getsexreg(token) { try { var resp = await axios.post(URL + 'normalvalue/getsexreg',{token:token}); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function save(prm) { try { var resp = await axios.post(URL + 'normalvalue/save',prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function newnormalvalue(prm) { try { var resp = await axios.post(URL + 'normalvalue/newnormalvalue',prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function xdelete(prm) { try { var resp = await axios.post(URL + 'normalvalue/deletenilainormal',prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function sendorder(prm) { try { var resp = await axios.post(URL + 'normalvalue/sendorder',prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function getnilainormal(prm) { try { var resp = await axios.post(URL + 'normalvalue/getnilainormal',prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function searchcompany(token,prm) { try { var resp = await axios.post(URL + 'normalvalue/searchcompany',{token:token,search:prm}); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch(e) { return { status: "ERR", message: e.message }; } } export async function getmou(token,prm) { try { var resp = await axios.post(URL + 'normalvalue/getmou',{id:prm.Nat_TestID,token:token}); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch(e) { return { status: "ERR", message: e.message }; } } export async function savenewnilainormal(prm) { try { var resp = await axios.post(URL + 'normalvalue/savenewnilainormal',prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function savenewnilaiabnormal(prm) { try { var resp = await axios.post(URL + 'normalvalue/savenewnilaiabnormal',prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function saveeditnilainormal(prm) { try { var resp = await axios.post(URL + 'normalvalue/saveeditnilainormal',prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function savenormalvaluelang(prm) { try { var resp = await axios.post(URL + 'normalvalue/savenormalvaluelang', prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function deletenilainormal(prm) { try { var resp = await axios.post(URL + 'normalvalue/deletenilainormal',prm); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch (e) { return { status: "ERR", message: e.message }; } } export async function searchtest(token,tes,mouid) { try { var resp = await axios.post(URL + 'normalvalue/searchtest',{token:token,search:tes,mouid:mouid}); if (resp.status != 200) { return { status: "ERR", message: resp.statusText }; } let data = resp.data; return data; } catch(e) { return { status: "ERR", message: e.message }; } }