Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -13,7 +13,7 @@
<entry key="PORTWEB">80</entry>
<entry key="ANTRIAN">player</entry>
<entry key="MENUTRANSPARAN">yes</entry>
<entry key="URLAPIBPJS">http://dvlp.bpjs-kesehatan.go.id:8081/VClaim-rest</entry>
<entry key="URLAPIBPJS">https://dvlp.bpjs-kesehatan.go.id/vclaim-rest</entry>
<entry key="SECRETKEYAPIBPJS">2wE3D865DE</entry>
<entry key="CONSIDAPIBPJS">30349</entry>
<entry key="URLAPIAPLICARE">http://dvlp.bpjs-kesehatan.go.id:8888/aplicaresws</entry>
BIN +9.01 KB (100%) dist/SIMRSKhanza.jar
Binary file not shown.
Binary file not shown.
@@ -13,7 +13,7 @@
<entry key="PORTWEB">80</entry>
<entry key="ANTRIAN">player</entry>
<entry key="MENUTRANSPARAN">yes</entry>
<entry key="URLAPIBPJS">http://dvlp.bpjs-kesehatan.go.id:8081/VClaim-rest</entry>
<entry key="URLAPIBPJS">https://dvlp.bpjs-kesehatan.go.id/vclaim-rest</entry>
<entry key="SECRETKEYAPIBPJS">2wE3D865DE</entry>
<entry key="CONSIDAPIBPJS">30349</entry>
<entry key="URLAPIAPLICARE">http://dvlp.bpjs-kesehatan.go.id:8888/aplicaresws</entry>
@@ -3,11 +3,12 @@
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="1"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/media/khanzamedia/Data/Source%20Java/SIMRSKhanza/src/setting/DlgUser.java</file>
<file>file:/media/khanzamedia/Data/Source%20Java/SIMRSKhanza/setting/database.xml</file>
<file>file:/media/khanzamedia/Data/Source%20Java/SIMRSKhanza/src/bridging/BPJSCekReferensiKelasRawat.java</file>
<file>file:/media/khanzamedia/Data/Source%20Java/SIMRSKhanza/src/simrskhanza/frmUtama.java</file>
<file>file:/media/khanzamedia/Data/Source%20Java/SIMRSKhanza/src/bridging/BPJSCekRiwayatRujukanRS.java</file>
<file>file:/media/khanzamedia/Data/Source%20Java/SIMRSKhanza/report/rptCariBPJS10RiwayatPeserta.jrxml</file>
<file>file:/media/khanzamedia/Data/Source%20Java/SIMRSKhanza/src/bridging/BPJSCekRiwayatRujukanPCare.java</file>
<file>file:/media/khanzamedia/Data/Source%20Java/SIMRSKhanza/src/bridging/tessaja2.java</file>
<file>file:/media/khanzamedia/Data/Source%20Java/SIMRSKhanza/src/simrskhanza/DlgRujuk.java</file>
<file>file:/media/khanzamedia/Data/Source%20Java/SIMRSKhanza/src/bridging/tessaja.java</file>
</group>
</open-files>
</project-private>
@@ -41,6 +41,7 @@ file.reference.groovy-all-1.5.5.jar=/home/khanzamedia/lib/groovy-all-1.5.5.jar
file.reference.gson-2.2.2.jar=/home/khanzamedia/lib/gson-2.2.2.jar
file.reference.hibernate3.jar=/home/khanzamedia/lib/hibernate3.jar
file.reference.hsqldb-1.8.0-10.jar=/home/khanzamedia/lib/hsqldb-1.8.0-10.jar
file.reference.httpclient-4.2.5.jar=/home/khanzamedia/lib/httpclient-4.2.5.jar
file.reference.httpclient-4.5.1.jar=/home/khanzamedia/lib/httpclient-4.5.1.jar
file.reference.httpclient-cache-4.5.1.jar=/home/khanzamedia/lib/httpclient-cache-4.5.1.jar
file.reference.httpclient-win-4.5.1.jar=/home/khanzamedia/lib/httpclient-win-4.5.1.jar
@@ -296,7 +297,8 @@ javac.classpath=\
${file.reference.xercesImpl-2.7.0.jar}:\
${file.reference.xml-apis-ext.jar}:\
${file.reference.xml-apis.jar}:\
${file.reference.jackson-core-2.0.0.jar}
${file.reference.jackson-core-2.0.0.jar}:\
${file.reference.httpclient-4.2.5.jar}
javadoc.additionalparam=
build.classes.dir=${build.dir}/classes
javac.target=1.8
@@ -13,7 +13,7 @@
<entry key="PORTWEB">80</entry>
<entry key="ANTRIAN">player</entry>
<entry key="MENUTRANSPARAN">yes</entry>
<entry key="URLAPIBPJS">http://dvlp.bpjs-kesehatan.go.id:8081/VClaim-rest</entry>
<entry key="URLAPIBPJS">https://dvlp.bpjs-kesehatan.go.id/vclaim-rest</entry>
<entry key="SECRETKEYAPIBPJS">2wE3D865DE</entry>
<entry key="CONSIDAPIBPJS">30349</entry>
<entry key="URLAPIAPLICARE">http://dvlp.bpjs-kesehatan.go.id:8888/aplicaresws</entry>
18 sik.sql

Large diffs are not rendered by default.

@@ -36,7 +36,6 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.web.client.RestTemplate;

/**
*
@@ -323,11 +322,8 @@ public void tampil() {
headers.add("X-Timestamp",String.valueOf(api.GetUTCdatetimeAsString()));
headers.add("X-Signature",api.getHmac());
HttpEntity requestEntity = new HttpEntity(headers);
RestTemplate rest = new RestTemplate();

//System.out.println(rest.exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metadata");
//System.out.println("code : "+nameNode.path("code").asText());
//System.out.println("message : "+nameNode.path("message").asText());
@@ -12,7 +12,6 @@
package bridging;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import restore.DlgRestoreTarifRanap;
import fungsi.WarnaTable;
import fungsi.batasInput;
import fungsi.koneksiDB;
@@ -29,7 +28,6 @@
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
@@ -42,7 +40,6 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.web.client.RestTemplate;
import simrskhanza.DlgCariBangsal;

/**
@@ -766,10 +763,9 @@ private void BtnSimpanActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIR
"\"tersediapriawanita\":\""+TersediaPW.getText()+"\""+
"}";
HttpEntity requestEntity = new HttpEntity(requestJson,headers);
RestTemplate rest = new RestTemplate();
//System.out.println(rest.exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metadata");
System.out.println("code : "+nameNode.path("code").asText());
System.out.println("message : "+nameNode.path("message").asText());
@@ -828,10 +824,9 @@ private void BtnHapusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRS
"\"koderuang\":\""+tbJnsPerawatan.getValueAt(i,2).toString()+"\""+
"}";
HttpEntity requestEntity = new HttpEntity(requestJson,headers);
RestTemplate rest = new RestTemplate();
//System.out.println(rest.exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metadata");
//System.out.println("code : "+nameNode.path("code").asText());
//System.out.println("message : "+nameNode.path("message").asText());
@@ -898,10 +893,9 @@ private void BtnEditActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST
"\"tersediapriawanita\":\""+TersediaPW.getText()+"\""+
"}";
HttpEntity requestEntity = new HttpEntity(requestJson,headers);
RestTemplate rest = new RestTemplate();
//System.out.println(rest.exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metadata");
//System.out.println("code : "+nameNode.path("code").asText());
//System.out.println("message : "+nameNode.path("message").asText());
@@ -3,10 +3,21 @@
import java.io.FileInputStream;
import java.io.UnsupportedEncodingException;
import java.security.GeneralSecurityException;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.util.Properties;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import javax.net.ssl.SSLContext;
import javax.net.ssl.X509TrustManager;
import org.apache.http.conn.scheme.Scheme;
import org.apache.http.conn.ssl.SSLSocketFactory;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
import org.springframework.security.crypto.codec.Base64;
import org.springframework.web.client.RestTemplate;

public class BPJSApi {
private static final Properties prop = new Properties();
@@ -53,5 +64,22 @@ public long GetUTCdatetimeAsString(){
long millis = System.currentTimeMillis();
return millis/1000;
}

public RestTemplate getRest() throws NoSuchAlgorithmException, KeyManagementException {
SSLContext sslContext = SSLContext.getInstance("SSL");
javax.net.ssl.TrustManager[] trustManagers= {
new X509TrustManager() {
public X509Certificate[] getAcceptedIssuers() {return null;}
public void checkServerTrusted(X509Certificate[] arg0, String arg1)throws CertificateException {}
public void checkClientTrusted(X509Certificate[] arg0, String arg1)throws CertificateException {}
}
};
sslContext.init(null,trustManagers , new SecureRandom());
SSLSocketFactory sslFactory=new SSLSocketFactory(sslContext,SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
Scheme scheme=new Scheme("https",443,sslFactory);
HttpComponentsClientHttpRequestFactory factory=new HttpComponentsClientHttpRequestFactory();
factory.getHttpClient().getConnectionManager().getSchemeRegistry().register(scheme);
return new RestTemplate(factory);
}

}
@@ -3,10 +3,21 @@
import java.io.FileInputStream;
import java.io.UnsupportedEncodingException;
import java.security.GeneralSecurityException;
import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.security.SecureRandom;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.util.Properties;
import javax.crypto.Mac;
import javax.crypto.spec.SecretKeySpec;
import javax.net.ssl.SSLContext;
import javax.net.ssl.X509TrustManager;
import org.apache.http.conn.scheme.Scheme;
import org.apache.http.conn.ssl.SSLSocketFactory;
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
import org.springframework.security.crypto.codec.Base64;
import org.springframework.web.client.RestTemplate;

public class BPJSApiAplicare {
private static final Properties prop = new Properties();
@@ -53,5 +64,22 @@ public long GetUTCdatetimeAsString(){
long millis = System.currentTimeMillis();
return millis/1000;
}

public RestTemplate getRest() throws NoSuchAlgorithmException, KeyManagementException {
SSLContext sslContext = SSLContext.getInstance("SSL");
javax.net.ssl.TrustManager[] trustManagers= {
new X509TrustManager() {
public X509Certificate[] getAcceptedIssuers() {return null;}
public void checkServerTrusted(X509Certificate[] arg0, String arg1)throws CertificateException {}
public void checkClientTrusted(X509Certificate[] arg0, String arg1)throws CertificateException {}
}
};
sslContext.init(null,trustManagers , new SecureRandom());
SSLSocketFactory sslFactory=new SSLSocketFactory(sslContext,SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);
Scheme scheme=new Scheme("https",443,sslFactory);
HttpComponentsClientHttpRequestFactory factory=new HttpComponentsClientHttpRequestFactory();
factory.getHttpClient().getConnectionManager().getSchemeRegistry().register(scheme);
return new RestTemplate(factory);
}

}
@@ -32,7 +32,6 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.web.client.RestTemplate;

/**
*
@@ -244,11 +243,9 @@ public void tampil(String sep) {
headers.add("X-Timestamp",String.valueOf(api.GetUTCdatetimeAsString()));
headers.add("X-Signature",api.getHmac());
HttpEntity requestEntity = new HttpEntity(headers);
RestTemplate rest = new RestTemplate();

//System.out.println(rest.exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
//System.out.println(rest.exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metaData");
System.out.println("code : "+nameNode.path("code").asText());
System.out.println("message : "+nameNode.path("message").asText());
@@ -36,7 +36,7 @@
</Property>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="05-08-2018"/>
<StringItem index="0" value="25-08-2018"/>
</StringArray>
</Property>
<Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy"/>
@@ -751,7 +751,7 @@
<Property name="editable" type="boolean" value="false"/>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="05-08-2018"/>
<StringItem index="0" value="25-08-2018"/>
</StringArray>
</Property>
<Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy"/>
@@ -2078,7 +2078,7 @@
<Properties>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="05-08-2018 18:45:04"/>
<StringItem index="0" value="25-08-2018 18:39:14"/>
</StringArray>
</Property>
<Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy HH:mm:ss"/>
@@ -2115,7 +2115,7 @@
<Properties>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="05-08-2018 18:45:04"/>
<StringItem index="0" value="25-08-2018 18:39:14"/>
</StringArray>
</Property>
<Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy HH:mm:ss"/>
@@ -44,7 +44,6 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.web.client.RestTemplate;
import kepegawaian.DlgCariDokter;
import simrskhanza.DlgBahasa;
import simrskhanza.DlgCacatFisik;
@@ -4099,9 +4098,8 @@ private void ppPengajuanBtnPrintActionPerformed(java.awt.event.ActionEvent evt)
"}" +
"}";
HttpEntity requestEntity = new HttpEntity(requestJson,headers);
RestTemplate rest = new RestTemplate();
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metaData");
System.out.println("code : "+nameNode.path("code").asText());
System.out.println("message : "+nameNode.path("message").asText());
@@ -4147,9 +4145,8 @@ private void ppPengajuan1BtnPrintActionPerformed(java.awt.event.ActionEvent evt)
"}" +
"}";
HttpEntity requestEntity = new HttpEntity(requestJson,headers);
RestTemplate rest = new RestTemplate();
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metaData");
System.out.println("code : "+nameNode.path("code").asText());
System.out.println("message : "+nameNode.path("message").asText());
@@ -5300,9 +5297,8 @@ private void insertSEP(){
"}" +
"}";
HttpEntity requestEntity = new HttpEntity(requestJson,headers);
RestTemplate rest = new RestTemplate();
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metaData");
System.out.println("code : "+nameNode.path("code").asText());
System.out.println("message : "+nameNode.path("message").asText());
@@ -5343,9 +5339,8 @@ private void insertSEP(){
"}" +
"}";
HttpEntity requestEntity2 = new HttpEntity(requestJson,headers2);
RestTemplate rest2 = new RestTemplate();
ObjectMapper mapper2 = new ObjectMapper();
JsonNode root2 = mapper2.readTree(rest2.exchange(URL, HttpMethod.PUT, requestEntity2, String.class).getBody());
JsonNode root2 = mapper2.readTree(api.getRest().exchange(URL, HttpMethod.PUT, requestEntity2, String.class).getBody());
JsonNode nameNode2 = root2.path("metaData");
System.out.println("code : "+nameNode2.path("code").asText());
System.out.println("message : "+nameNode2.path("message").asText());
@@ -24,13 +24,9 @@
import fungsi.var;
import java.awt.Cursor;
import java.awt.event.KeyEvent;
import java.io.FileInputStream;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.HashMap;
import java.util.Map;
import javax.swing.JOptionPane;
import javax.swing.event.DocumentEvent;

/**
@@ -17,7 +17,6 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.web.client.RestTemplate;

/**
*
@@ -51,11 +50,9 @@ public void tampil(String nik) {
headers.add("X-Timestamp",String.valueOf(api.GetUTCdatetimeAsString()));
headers.add("X-Signature",api.getHmac());
HttpEntity requestEntity = new HttpEntity(headers);
RestTemplate rest = new RestTemplate();

//System.out.println(rest.exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
//System.out.println(rest.exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metaData");
System.out.println("code : "+nameNode.path("code").asText());
System.out.println("message : "+nameNode.path("message").asText());
@@ -36,7 +36,7 @@
</Property>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="05-08-2018"/>
<StringItem index="0" value="25-08-2018"/>
</StringArray>
</Property>
<Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy"/>
@@ -751,7 +751,7 @@
<Property name="editable" type="boolean" value="false"/>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="05-08-2018"/>
<StringItem index="0" value="25-08-2018"/>
</StringArray>
</Property>
<Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy"/>
@@ -2060,7 +2060,7 @@
<Properties>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="05-08-2018 18:50:22"/>
<StringItem index="0" value="25-08-2018 19:19:51"/>
</StringArray>
</Property>
<Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy HH:mm:ss"/>
@@ -2097,7 +2097,7 @@
<Properties>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="05-08-2018 18:50:22"/>
<StringItem index="0" value="25-08-2018 19:19:51"/>
</StringArray>
</Property>
<Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy HH:mm:ss"/>
@@ -44,7 +44,6 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.web.client.RestTemplate;
import kepegawaian.DlgCariDokter;
import simrskhanza.DlgBahasa;
import simrskhanza.DlgCacatFisik;
@@ -3690,9 +3689,8 @@ private void ppPengajuanBtnPrintActionPerformed(java.awt.event.ActionEvent evt)
"}" +
"}";
HttpEntity requestEntity = new HttpEntity(requestJson,headers);
RestTemplate rest = new RestTemplate();
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metaData");
System.out.println("code : "+nameNode.path("code").asText());
System.out.println("message : "+nameNode.path("message").asText());
@@ -3738,9 +3736,8 @@ private void ppPengajuan1BtnPrintActionPerformed(java.awt.event.ActionEvent evt)
"}" +
"}";
HttpEntity requestEntity = new HttpEntity(requestJson,headers);
RestTemplate rest = new RestTemplate();
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metaData");
System.out.println("code : "+nameNode.path("code").asText());
System.out.println("message : "+nameNode.path("message").asText());
@@ -5298,9 +5295,8 @@ private void insertSEP(){
"}" +
"}";
HttpEntity requestEntity = new HttpEntity(requestJson,headers);
RestTemplate rest = new RestTemplate();
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metaData");
System.out.println("code : "+nameNode.path("code").asText());
System.out.println("message : "+nameNode.path("message").asText());
@@ -5340,9 +5336,8 @@ private void insertSEP(){
"}" +
"}";
HttpEntity requestEntity2 = new HttpEntity(requestJson,headers2);
RestTemplate rest2 = new RestTemplate();
ObjectMapper mapper2 = new ObjectMapper();
JsonNode root2 = mapper2.readTree(rest2.exchange(URL, HttpMethod.PUT, requestEntity2, String.class).getBody());
JsonNode root2 = mapper2.readTree(api.getRest().exchange(URL, HttpMethod.PUT, requestEntity2, String.class).getBody());
JsonNode nameNode2 = root2.path("metaData");
System.out.println("code : "+nameNode2.path("code").asText());
System.out.println("message : "+nameNode2.path("message").asText());
@@ -17,7 +17,6 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.web.client.RestTemplate;

/**
*
@@ -51,11 +50,9 @@ public void tampil(String nokartu) {
headers.add("X-Timestamp",String.valueOf(api.GetUTCdatetimeAsString()));
headers.add("X-Signature",api.getHmac());
HttpEntity requestEntity = new HttpEntity(headers);
RestTemplate rest = new RestTemplate();

//System.out.println(rest.exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
//System.out.println(rest.exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metaData");
//System.out.println("code : "+nameNode.path("code").asText());
//System.out.println("message : "+nameNode.path("message").asText());
@@ -36,7 +36,7 @@
</Property>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="05-08-2018"/>
<StringItem index="0" value="25-08-2018"/>
</StringArray>
</Property>
<Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy"/>
@@ -917,7 +917,7 @@
<Property name="editable" type="boolean" value="false"/>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="05-08-2018"/>
<StringItem index="0" value="25-08-2018"/>
</StringArray>
</Property>
<Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy"/>
@@ -2226,7 +2226,7 @@
<Properties>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="05-08-2018 18:51:17"/>
<StringItem index="0" value="25-08-2018 19:23:32"/>
</StringArray>
</Property>
<Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy HH:mm:ss"/>
@@ -2263,7 +2263,7 @@
<Properties>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="05-08-2018 18:51:17"/>
<StringItem index="0" value="25-08-2018 19:23:32"/>
</StringArray>
</Property>
<Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy HH:mm:ss"/>
@@ -49,7 +49,6 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.web.client.RestTemplate;
import kepegawaian.DlgCariDokter;
import simrskhanza.DlgBahasa;
import simrskhanza.DlgCacatFisik;
@@ -3579,9 +3578,8 @@ private void ppPengajuanBtnPrintActionPerformed(java.awt.event.ActionEvent evt)
"}" +
"}";
HttpEntity requestEntity = new HttpEntity(requestJson,headers);
RestTemplate rest = new RestTemplate();
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metaData");
System.out.println("code : "+nameNode.path("code").asText());
System.out.println("message : "+nameNode.path("message").asText());
@@ -3627,9 +3625,8 @@ private void ppPengajuan1BtnPrintActionPerformed(java.awt.event.ActionEvent evt)
"}" +
"}";
HttpEntity requestEntity = new HttpEntity(requestJson,headers);
RestTemplate rest = new RestTemplate();
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metaData");
System.out.println("code : "+nameNode.path("code").asText());
System.out.println("message : "+nameNode.path("message").asText());
@@ -4578,9 +4575,8 @@ public void tampil(String nomorrujukan) {
headers.add("X-Signature",api.getHmac());

HttpEntity requestEntity = new HttpEntity(headers);
RestTemplate rest = new RestTemplate();
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metaData");
if(nameNode.path("code").asText().equals("200")){
Valid.tabelKosong(tabMode);
@@ -5426,9 +5422,8 @@ private void insertSEP(){
"}" +
"}";
HttpEntity requestEntity = new HttpEntity(requestJson,headers);
RestTemplate rest = new RestTemplate();
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metaData");
System.out.println("code : "+nameNode.path("code").asText());
System.out.println("message : "+nameNode.path("message").asText());
@@ -5468,9 +5463,8 @@ private void insertSEP(){
"}" +
"}";
HttpEntity requestEntity2 = new HttpEntity(requestJson,headers2);
RestTemplate rest2 = new RestTemplate();
ObjectMapper mapper2 = new ObjectMapper();
JsonNode root2 = mapper2.readTree(rest2.exchange(URL, HttpMethod.PUT, requestEntity2, String.class).getBody());
JsonNode root2 = mapper2.readTree(api.getRest().exchange(URL, HttpMethod.PUT, requestEntity2, String.class).getBody());
JsonNode nameNode2 = root2.path("metaData");
System.out.println("code : "+nameNode2.path("code").asText());
System.out.println("message : "+nameNode2.path("message").asText());
@@ -36,7 +36,7 @@
</Property>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="05-08-2018"/>
<StringItem index="0" value="25-08-2018"/>
</StringArray>
</Property>
<Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy"/>
@@ -917,7 +917,7 @@
<Property name="editable" type="boolean" value="false"/>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="05-08-2018"/>
<StringItem index="0" value="25-08-2018"/>
</StringArray>
</Property>
<Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy"/>
@@ -2226,7 +2226,7 @@
<Properties>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="05-08-2018 18:51:36"/>
<StringItem index="0" value="25-08-2018 19:31:53"/>
</StringArray>
</Property>
<Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy HH:mm:ss"/>
@@ -2263,7 +2263,7 @@
<Properties>
<Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor">
<StringArray count="1">
<StringItem index="0" value="05-08-2018 18:51:36"/>
<StringItem index="0" value="25-08-2018 19:31:53"/>
</StringArray>
</Property>
<Property name="displayFormat" type="java.lang.String" value="dd-MM-yyyy HH:mm:ss"/>
@@ -49,7 +49,6 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.web.client.RestTemplate;
import kepegawaian.DlgCariDokter;
import simrskhanza.DlgBahasa;
import simrskhanza.DlgCacatFisik;
@@ -3580,9 +3579,8 @@ private void ppPengajuanBtnPrintActionPerformed(java.awt.event.ActionEvent evt)
"}" +
"}";
HttpEntity requestEntity = new HttpEntity(requestJson,headers);
RestTemplate rest = new RestTemplate();
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metaData");
System.out.println("code : "+nameNode.path("code").asText());
System.out.println("message : "+nameNode.path("message").asText());
@@ -3628,9 +3626,8 @@ private void ppPengajuan1BtnPrintActionPerformed(java.awt.event.ActionEvent evt)
"}" +
"}";
HttpEntity requestEntity = new HttpEntity(requestJson,headers);
RestTemplate rest = new RestTemplate();
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metaData");
System.out.println("code : "+nameNode.path("code").asText());
System.out.println("message : "+nameNode.path("message").asText());
@@ -4579,9 +4576,8 @@ public void tampil(String nomorrujukan) {
headers.add("X-Signature",api.getHmac());

HttpEntity requestEntity = new HttpEntity(headers);
RestTemplate rest = new RestTemplate();
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metaData");
if(nameNode.path("code").asText().equals("200")){
Valid.tabelKosong(tabMode);
@@ -5427,9 +5423,8 @@ private void insertSEP(){
"}" +
"}";
HttpEntity requestEntity = new HttpEntity(requestJson,headers);
RestTemplate rest = new RestTemplate();
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.POST, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metaData");
System.out.println("code : "+nameNode.path("code").asText());
System.out.println("message : "+nameNode.path("message").asText());
@@ -5469,9 +5464,8 @@ private void insertSEP(){
"}" +
"}";
HttpEntity requestEntity2 = new HttpEntity(requestJson,headers2);
RestTemplate rest2 = new RestTemplate();
ObjectMapper mapper2 = new ObjectMapper();
JsonNode root2 = mapper2.readTree(rest2.exchange(URL, HttpMethod.PUT, requestEntity2, String.class).getBody());
JsonNode root2 = mapper2.readTree(api.getRest().exchange(URL, HttpMethod.PUT, requestEntity2, String.class).getBody());
JsonNode nameNode2 = root2.path("metaData");
System.out.println("code : "+nameNode2.path("code").asText());
System.out.println("message : "+nameNode2.path("message").asText());
@@ -33,7 +33,6 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.web.client.RestTemplate;

/**
*
@@ -278,11 +277,9 @@ public void tampil(String poli) {
headers.add("X-Timestamp",String.valueOf(api.GetUTCdatetimeAsString()));
headers.add("X-Signature",api.getHmac());
HttpEntity requestEntity = new HttpEntity(headers);
RestTemplate rest = new RestTemplate();

//System.out.println(rest.exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
//System.out.println(rest.exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metaData");
if(nameNode.path("code").asText().equals("200")){
Valid.tabelKosong(tabMode);
@@ -36,7 +36,6 @@
import org.springframework.http.HttpHeaders;
import org.springframework.http.HttpMethod;
import org.springframework.http.MediaType;
import org.springframework.web.client.RestTemplate;

/**
*
@@ -328,11 +327,9 @@ public void tampil(String poli) {
headers.add("X-Timestamp",String.valueOf(api.GetUTCdatetimeAsString()));
headers.add("X-Signature",api.getHmac());
HttpEntity requestEntity = new HttpEntity(headers);
RestTemplate rest = new RestTemplate();

//System.out.println(rest.exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
//System.out.println(rest.exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
ObjectMapper mapper = new ObjectMapper();
JsonNode root = mapper.readTree(rest.exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
JsonNode root = mapper.readTree(api.getRest().exchange(URL, HttpMethod.GET, requestEntity, String.class).getBody());
JsonNode nameNode = root.path("metaData");
if(nameNode.path("code").asText().equals("200")){
Valid.tabelKosong(tabMode);