Commit 3478e842 authored by Dev's avatar Dev

source code decompile combi production

parents
Pipeline #5838 failed with stages
in 4 seconds

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="test" value="true"/>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry exported="true" kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
</attributes>
</classpathentry>
<classpathentry exported="true" kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v7.0">
<attributes>
<attribute name="owner.project.facets" value="jst.web"/>
</attributes>
</classpathentry>
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.7.0_72">
<attributes>
<attribute name="owner.project.facets" value="java"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>
<?xml version="1.0" encoding="UTF-8"?>
<data-sources>
<data-source id="oracle_thin-1530d826002-3608f0d392c0dd63" provider="oracle" driver="oracle_thin" name="Oracle - Localhsot" create-date="1456220680618" save-password="true" show-system-objects="true" read-only="false">
<connection host="localhost" port="1521" server="" database="xe" url="jdbc:oracle:thin:@localhost:1521:xe" user="system" password="IwUVM1ZMVhJVQ2bf" home="/usr/lib/jvm/java-6-oracle" type="dev">
<property name="@dbeaver-sid-service@" value="SID"/>
<property name="@dbeaver-connection-type@" value="BASIC"/>
<property name="@dbeaver-check-schema-content@" value="true"/>
<property name="loginTimeout" value="20"/>
<property name="@dbeaver-always-show-dba@" value="false"/>
<network-handler type="TUNNEL" id="ssh_tunnel" enabled="false" user="" save-password="false">
<property name="port" value="22"/>
<property name="keyPath" value=""/>
<property name="host" value=""/>
<property name="authType" value="PASSWORD"/>
</network-handler>
<network-handler type="PROXY" id="socks_proxy" enabled="false" user="" save-password="false">
<property name="socks-host" value=""/>
<property name="socks-port" value="1080"/>
</network-handler>
<bootstrap/>
</connection>
</data-source>
<data-source id="mssql_ms-1530d8737db-3f02d55581164f21" provider="generic" driver="mssql_ms" name="MSSQL - Tebet_combicoredev" create-date="1456220943763" save-password="true" show-system-objects="true" read-only="false">
<connection host="10.10.10.16" port="1433" server="" database="combicoredev" url="jdbc:sqlserver://10.10.10.16:1433;databaseName=combicoredev" user="sa" password="IwUVM1YTVhJVQ2bf" type="dev">
<network-handler type="TUNNEL" id="ssh_tunnel" enabled="false" user="" save-password="false">
<property name="port" value="22"/>
<property name="keyPath" value=""/>
<property name="host" value=""/>
<property name="authType" value="PASSWORD"/>
</network-handler>
<network-handler type="PROXY" id="socks_proxy" enabled="false" user="" save-password="false">
<property name="socks-host" value=""/>
<property name="socks-port" value="1080"/>
</network-handler>
<bootstrap/>
</connection>
</data-source>
<data-source id="mssql-1530d9b3275-5e1772b605f09e76" provider="generic" driver="mssql" name="MS SQL Server - Combiphar_Prod" create-date="1456222267336" update-date="1456900524219" save-password="true" show-system-objects="true" read-only="false">
<connection host="prdcombi.combiphar.com" port="1433" server="" database="PRD" url="jdbc:jtds:sqlserver://prdcombi.combiphar.com:1433/PRD" user="promis" password="AxYJLUhQFkZUR2bf" type="dev">
<property name="loginTimeout" value="60"/>
<network-handler type="TUNNEL" id="ssh_tunnel" enabled="false" user="" save-password="false">
<property name="port" value="22"/>
<property name="keyPath" value=""/>
<property name="host" value=""/>
<property name="authType" value="PASSWORD"/>
</network-handler>
<network-handler type="PROXY" id="socks_proxy" enabled="false" user="" save-password="false">
<property name="socks-host" value=""/>
<property name="socks-port" value="1080"/>
</network-handler>
<bootstrap txnIsolation="2"/>
</connection>
<filters>
<filter type="org.jkiss.dbeaver.model.struct.rdb.DBSSchema">
<include name="combicoredev"/>
</filter>
<filter type="org.jkiss.dbeaver.ext.generic.model.GenericTable" id="db_owner">
<include name="promise_"/>
</filter>
</filters>
<custom-property name="database.meta.separate.connection" value="true"/>
<custom-property name="database.meta.casesensitive" value="false"/>
<custom-property name="database.props.expensive" value="false"/>
</data-source>
</data-sources>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>Decompile-ProMISE-Combiphar</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.common.project.facet.core.builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.wst.validation.validationbuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.zeroturnaround.eclipse.rebelXmlBuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
<nature>org.zeroturnaround.eclipse.jrebelNature</nature>
</natures>
</projectDescription>
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/webapp"/>
<classpathentry kind="src" path="target/m2e-wtp/web-resources"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
</classpath>
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/main/resources=UTF-8
encoding//src/main/webapp/index.jsp=UTF-8
encoding//src/test/java=UTF-8
encoding/<project>=UTF-8
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.7
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="promise-combiphar">
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
<property name="java-output-path" value="/ProMISE-Combiphar/target/classes"/>
<property name="context-root" value="promise-combiphar"/>
</wb-module>
</project-modules>
<root>
<facet id="jst.jaxrs">
<node name="libprov">
<attribute name="provider-id" value="jaxrs-no-op-library-provider"/>
</node>
</facet>
<facet id="jst.jsf">
<node name="libprov">
<attribute name="provider-id" value="jsf-no-op-library-provider"/>
</node>
</facet>
</root>
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<runtime name="Apache Tomcat v7.0"/>
<fixed facet="wst.jsdt.web"/>
<installed facet="wst.jsdt.web" version="1.0"/>
<installed facet="jst.jaxrs" version="1.1"/>
<installed facet="jst.web" version="2.5"/>
<installed facet="jst.jsf" version="2.0"/>
<installed facet="java" version="1.7"/>
</faceted-project>
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
Window
\ No newline at end of file
eclipse.preferences.version=1
org.eclipse.wst.ws.service.policy.projectEnabled=false
eclipse.preferences.version=1
org.jboss.ide.eclipse.as.core.singledeployable.deployableList=
This diff is collapsed.
/* */ package com.check.password;
/* */
/* */ import com.promise3.utility.KeyGenHelper;
/* */ import java.io.PrintStream;
/* */ import javax.swing.JOptionPane;
/* */
/* */ public class CekPassword
/* */ {
/* */ public static void main(String[] miraj) throws Exception
/* */ {
/* 11 */ String answer = JOptionPane.showInputDialog(null, "masukan encrypt code: ");
/* 12 */ CekPassword test = new CekPassword();
/* 13 */ test.decryptPassword(answer);
/* */ }
/* */
/* */ public void decryptPassword(String password) throws Exception
/* */ {
/* 18 */ KeyGenHelper helper = new KeyGenHelper();
/* 19 */ String pass = KeyGenHelper.decrypt("promiseMMICombiphar", password);
/* 20 */ JOptionPane.showMessageDialog(null, "Password : " + pass);
/* 21 */ System.out.println("ini password nya: " + pass);
/* 22 */ System.exit(0);
/* */ }
/* */ }
/* Location: F:\Combiphar\DECOMPILE\PROJECT\apps.zip!\apps\WEB-INF\classes\com\check\password\CekPassword.class
* Java compiler version: 7 (51.0)
* JD-Core Version: 0.7.1
*/
\ No newline at end of file
/* */ package com.check.password;
/* */
/* */ import com.promise3.utility.KeyGenHelper;
/* */ import java.io.PrintStream;
/* */ import javax.swing.JOptionPane;
/* */
/* */ public class encryptPassword
/* */ {
/* */ public static void main(String[] miraj)
/* */ throws Exception
/* */ {
/* 12 */ String answer = JOptionPane.showInputDialog(null, "masukan decrypt code: ");
/* 13 */ encryptPassword test = new encryptPassword();
/* 14 */ test.decryptPassword(answer);
/* */ }
/* */
/* */ public void decryptPassword(String password) throws Exception
/* */ {
/* 19 */ KeyGenHelper helper = new KeyGenHelper();
/* 20 */ String pass = KeyGenHelper.encrypt("promiseMMICombiphar", password);
/* 21 */ JOptionPane.showMessageDialog(null, "Password : " + pass);
/* 22 */ System.out.println("ini password nya: " + pass);
/* 23 */ System.exit(0);
/* */ }
/* */ }
/* Location: F:\Combiphar\DECOMPILE\PROJECT\apps.zip!\apps\WEB-INF\classes\com\check\password\encryptPassword.class
* Java compiler version: 7 (51.0)
* JD-Core Version: 0.7.1
*/
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
/* */ package com.promise3.controller;
/* */
/* */ import net.sf.jasperreports.engine.JRExporter;
/* */ import net.sf.jasperreports.engine.export.ooxml.JRDocxExporter;
/* */ import org.springframework.web.servlet.view.jasperreports.AbstractJasperReportsSingleFormatView;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class DocController
/* */ extends AbstractJasperReportsSingleFormatView
/* */ {
/* */ public DocController()
/* */ {
/* 29 */ setContentType("application/msword");
/* */ }
/* */
/* */
/* */ protected JRExporter createExporter()
/* */ {
/* 35 */ return new JRDocxExporter();
/* */ }
/* */
/* */ protected boolean useWriter()
/* */ {
/* 40 */ return false;
/* */ }
/* */ }
/* Location: F:\Combiphar\DECOMPILE\PROJECT\apps.zip!\apps\WEB-INF\classes\com\promise3\controller\DocController.class
* Java compiler version: 7 (51.0)
* JD-Core Version: 0.7.1
*/
\ No newline at end of file
/* */ package com.promise3.controller;
/* */
/* */ import com.promise3.controller.vendormanagement.PendaftaranRekananController;
/* */ import com.promise3.services.usermanagement.ULogin00;
/* */ import com.promise3.services.usermanagement.ULogin00Services;
/* */ import com.promise3.services.vendormanagement.Rekanan00;
/* */ import com.promise3.services.vendormanagement.Rekanan00Services;
/* */ import com.promise3.utility.KeyGenHelper;
/* */ import com.promise3.utility.MailHelper;
/* */ import com.promise3.utility.ParamContext;
/* */ import java.io.PrintStream;
/* */ import java.util.HashMap;
/* */ import java.util.Map;
/* */ import javax.servlet.http.HttpSession;
/* */ import org.apache.log4j.Logger;
/* */ import org.springframework.context.ApplicationContext;
/* */ import org.springframework.stereotype.Controller;
/* */ import org.springframework.validation.BindingResult;
/* */ import org.springframework.web.bind.annotation.ModelAttribute;
/* */ import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.servlet.ModelAndView;
/* */
/* */
/* */
/* */ @Controller
/* */ public class ForgotPasswordController
/* */ {
/* 28 */ Logger log = Logger.getLogger(PendaftaranRekananController.class);
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @RequestMapping({"forgotPassword"})
/* */ public ModelAndView forgotPassword(@ModelAttribute("login") LoginController login, BindingResult result, HttpSession session)
/* */ {
/* 38 */ Map<String, Object> model = new HashMap();
/* 39 */ model.put("title", "view.forgot.password");
/* 40 */ model.put("action", "");
/* 41 */ String success = "";
/* 42 */ String error = "";
/* 43 */ if (session.getAttribute("success") != null) {
/* 44 */ success = (String)session.getAttribute("success");
/* 45 */ session.removeAttribute("success");
/* */ }
/* 47 */ if (session.getAttribute("error") != null) {
/* 48 */ error = (String)session.getAttribute("error");
/* 49 */ session.removeAttribute("error");
/* */ }
/* 51 */ model.put("success", success);
/* 52 */ model.put("error", error);
/* */
/* 54 */ return new ModelAndView("ForgotPassword", model);
/* */ }
/* */
/* */
/* */
/* */
/* */ @RequestMapping({"forgotPasswordSave"})
/* */ public ModelAndView saveForgotPassword(@ModelAttribute("login") ULogin00 ulogin00, BindingResult result, HttpSession session)
/* */ throws Exception
/* */ {
/* 64 */ ApplicationContext context = ParamContext.getContext();
/* 65 */ ULogin00Services uLoginService = (ULogin00Services)context.getBean("ULogin00Services");
/* */
/* 67 */ String email = ulogin00.getLoginEmail();
/* 68 */ System.out.println("Request reset password, email:" + email);
/* */
/* 70 */ ulogin00 = uLoginService.getULoginByUsername(ulogin00.getLoginId());
/* 71 */ if (ulogin00 == null) {
/* 72 */ session.setAttribute("error", "Sorry, We Cant Find Your Account Id.");
/* */ }
/* 74 */ else if (ulogin00.getLoginIsDisabled().equals(Integer.valueOf(1))) {
/* 75 */ session.setAttribute("error", "Sorry, Your Account in Blacklist Period !");
/* 76 */ } else if (ulogin00.getLoginTerkunci().equals(Integer.valueOf(1))) {
/* 77 */ session.setAttribute("error", "Sorry, Your Account is Locked. Please Contact Our Administrator !");
/* */ }
/* */ else {
/* 80 */ MailHelper mh = new MailHelper();
/* 81 */ KeyGenHelper kgh = new KeyGenHelper();
/* */
/* 83 */ String alphaNumerics = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM1234567890";
/* 84 */ String t = "";
/* 85 */ for (int i = 0; i < 8; i++) {
/* 86 */ t = t + alphaNumerics.charAt((int)(Math.random() * alphaNumerics.length()));
/* */ }
/* */
/* 89 */ if (ulogin00.getLoginVFk() == null) {
/* 90 */ boolean ldapEnable = ParamContext.getParamValueByName("LDAP_ENABLE").equalsIgnoreCase("true");
/* 91 */ if (ldapEnable) {
/* 92 */ session.setAttribute("error", "Can not change password, bacause LDAP enabled");
/* */ }
/* 94 */ else if ((!ulogin00.getLoginEmail().equals(email)) || (ulogin00.getLoginEmail() == "")) {
/* 95 */ session.setAttribute("error", "Sorry, Your enter wrong email !");
/* */ } else {
/* 97 */ ulogin00.setLoginPwd(KeyGenHelper.encrypt("promiseMMICombiphar", t));
/* 98 */ uLoginService.updateULogin(ulogin00);
/* 99 */ mh.sendMail(ulogin00.getLoginEmail(), "Reset password application eProcurement", "Your new password : " + t + " Please change your password as soon as possible");
/* 100 */ session.setAttribute("success", "Your Password hasb been reset. Please check your email.");
/* 101 */ System.out.println("Password update for user with email:" + email + " and Login ID:" + ulogin00.getLoginId());
/* */ }
/* */ }
/* */ else {
/* 105 */ Rekanan00Services rekananService = (Rekanan00Services)context.getBean("Rekanan00Services");
/* 106 */ Rekanan00 rekanan00 = rekananService.getRekanan(ulogin00.getLoginVFk());
/* 107 */ String emailVendor = rekanan00.getVNotificationEmail();
/* 108 */ if (rekanan00 != null) {
/* 109 */ if ((!rekanan00.getVNotificationEmail().equals(emailVendor)) || (rekanan00.getVEmail() == "") || (rekanan00.getVNotificationEmail() == "")) {
/* 110 */ session.setAttribute("error", "Sorry, Your enter wrong email !");
/* */ } else {
/* 112 */ ulogin00.setLoginPwd(KeyGenHelper.encrypt("promiseMMICombiphar", t));
/* 113 */ uLoginService.updateULogin(ulogin00);
/* */
/* */
/* */
/* 117 */ mh.sendMail(rekanan00.getVNotificationEmail(), "Reset password application eProcurement", "Your new password : " + t + " Please change your password as soon as possible");
/* */
/* 119 */ session.setAttribute("success", "Your Password has been reset. Please check your email.");
/* 120 */ System.out.println("Password update for user with email:" + email + " and Login ID:" + ulogin00.getLoginId());
/* */ }
/* */ }
/* */ }
/* */ }
/* */
/* 126 */ return new ModelAndView("redirect:/forgotPassword.promise");
/* */ }
/* */ }
/* Location: F:\Combiphar\DECOMPILE\PROJECT\apps.zip!\apps\WEB-INF\classes\com\promise3\controller\ForgotPasswordController.class
* Java compiler version: 7 (51.0)
* JD-Core Version: 0.7.1
*/
\ No newline at end of file
/* */ package com.promise3.controller;
/* */
/* */ import com.promise3.services.master.Parameter00;
/* */ import com.promise3.utility.FileUpload;
/* */ import com.promise3.utility.KeyGenHelper;
/* */ import com.promise3.utility.ParamContext;
/* */ import java.io.InputStream;
/* */ import java.io.PrintStream;
/* */ import java.sql.Connection;
/* */ import java.sql.DriverManager;
/* */ import java.sql.PreparedStatement;
/* */ import java.sql.ResultSet;
/* */ import java.util.ArrayList;
/* */ import java.util.List;
/* */ import java.util.Properties;
/* */ import javax.annotation.PostConstruct;
/* */ import org.apache.commons.logging.Log;
/* */ import org.apache.commons.logging.LogFactory;
/* */ import org.springframework.context.ApplicationContext;
/* */ import org.springframework.context.support.ClassPathXmlApplicationContext;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class InitController
/* */ {
/* 33 */ private Log logger = LogFactory.getLog(InitController.class);
/* */
/* */
/* */
/* */
/* */ @PostConstruct
/* */ private void init()
/* */ {
/* 41 */ if (ParamContext.getContext() == null) {
/* 42 */ ApplicationContext applicationContext = new ClassPathXmlApplicationContext("services.xml");
/* 43 */ ParamContext.setContext(applicationContext);
/* */ }
/* */
/* */
/* 47 */ FileUpload.getFileUploadFullPath();
/* */
/* 49 */ if (ParamContext.getConnection() == null)
/* */ {
/* 51 */ InputStream configStream = getClass().getResourceAsStream(
/* 52 */ "report.properties");
/* 53 */ Properties configProperty = new Properties();
/* */ try {
/* 55 */ configProperty.load(configStream);
/* 56 */ ParamContext.setDbConnProperties(configProperty);
/* */ } catch (Exception e) {
/* 58 */ this.logger.info("ERROR LOAD CONFIG FILE !");
/* 59 */ this.logger.error(e.getMessage());
/* */ }
/* */
/* 62 */ String DB_HOST = configProperty.getProperty("DB_HOST");
/* 63 */ String DB_PORT = configProperty.getProperty("DB_PORT");
/* 64 */ String DB_USER = configProperty.getProperty("DB_USER");
/* 65 */ String DB_PASS = configProperty.getProperty("DB_PASS");
/* 66 */ String DB_URL = configProperty.getProperty("DB_URL");
/* 67 */ String DB_DRIVER = configProperty.getProperty("DB_DRIVER");
/* 68 */ String DB_INSTANCE = configProperty.getProperty("DB_INSTANCE");
/* */
/* */
/* */ try
/* */ {
/* 73 */ Class.forName(DB_DRIVER);
/* 74 */ DB_USER = KeyGenHelper.decrypt("promiseMMICombiphar", DB_USER);
/* 75 */ DB_PASS = KeyGenHelper.decrypt("promiseMMICombiphar", DB_PASS);
/* */
/* 77 */ System.out.println("======= DATABASE CONNECTION PARAM =======");
/* 78 */ System.out.println("DB_HOST : " + DB_HOST);
/* 79 */ System.out.println("DB_PORT : " + DB_PORT);
/* 80 */ System.out.println("DB_USER : " + DB_USER);
/* 81 */ System.out.println("DB_PASS : " + DB_PASS);
/* 82 */ System.out.println("=========================================");
/* 83 */ String URL = DB_URL + DB_HOST + ":" + DB_PORT + ";database=" + DB_INSTANCE;
/* 84 */ Connection conn = DriverManager.getConnection(URL, DB_USER, DB_PASS);
/* 85 */ System.out.println("Connection Success !");
/* 86 */ ParamContext.setConnection(conn);
/* */
/* */
/* 89 */ String sql = "SELECT * FROM PROMISE_T1_M_PARAMETER WHERE PRM_DIHAPUS = 0";
/* 90 */ PreparedStatement ps = conn.prepareStatement(sql);
/* 91 */ ResultSet rs = ps.executeQuery();
/* 92 */ List<Parameter00> parameterList = new ArrayList();
/* 93 */ while (rs.next()) {
/* 94 */ Parameter00 param = new Parameter00();
/* 95 */ String paramName = rs.getString("PRM_NM");
/* */
/* 97 */ param.setPrmPk(Integer.valueOf(rs.getInt("PRM_PK")));
/* 98 */ param.setPrmNm(paramName);
/* 99 */ param.setPrmKet(rs.getString("PRM_KET"));
/* 100 */ param.setPrmValue(rs.getString("PRM_VALUE"));
/* 101 */ param.setPrmBuatOleh(Integer.valueOf(rs.getInt("PRM_BUAT_OLEH")));
/* 102 */ param.setPrmDihapus(Integer.valueOf(rs.getInt("PRM_DIHAPUS")));
/* 103 */ param.setPrmTglBuat(rs.getDate("PRM_TGL_BUAT"));
/* 104 */ parameterList.add(param);
/* */ }
/* 106 */ ParamContext.setAppParam(parameterList);
/* */
/* */ }
/* */ catch (Exception e)
/* */ {
/* */
/* 112 */ this.logger.fatal("ERROR IN INIT CONTROLLER !");
/* 113 */ e.printStackTrace();
/* */ }
/* */ }
/* */ }
/* */ }
/* Location: F:\Combiphar\DECOMPILE\PROJECT\apps.zip!\apps\WEB-INF\classes\com\promise3\controller\InitController.class
* Java compiler version: 7 (51.0)
* JD-Core Version: 0.7.1
*/
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
/* */ package com.promise3.controller;
/* */
/* */ import com.promise3.scheduler.VendorScheduler;
/* */ import com.promise3.sync.SyncDataMaster;
/* */ import com.promise3.sync.SyncPR;
/* */ import com.promise3.utility.ParamContext;
/* */ import javax.servlet.ServletContextEvent;
/* */ import javax.servlet.ServletContextListener;
/* */ import javax.servlet.annotation.WebListener;
/* */ import org.quartz.Scheduler;
/* */ import org.quartz.TriggerKey;
/* */ import org.quartz.impl.triggers.CronTriggerImpl;
/* */ import org.springframework.beans.factory.config.AutowireCapableBeanFactory;
/* */ import org.springframework.context.support.ClassPathXmlApplicationContext;
/* */ import org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean;
/* */ import org.springframework.web.context.WebApplicationContext;
/* */ import org.springframework.web.context.support.WebApplicationContextUtils;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ @WebListener
/* */ public class QuartzInitiatorController
/* */ implements ServletContextListener
/* */ {
/* */ public void contextDestroyed(ServletContextEvent arg0) {}
/* */
/* */ public void contextInitialized(ServletContextEvent servletContextEvent)
/* */ {
/* */ try
/* */ {
/* 37 */ WebApplicationContextUtils.getRequiredWebApplicationContext(servletContextEvent.getServletContext()).getAutowireCapableBeanFactory().autowireBean(this);
/* 38 */ int time = Integer.parseInt(ParamContext.getParamValueByName("time_cron_scheduler"));
/* */
/* 40 */ runMasterSyncScheduler(time);
/* */ } catch (Exception e) {
/* 42 */ e.printStackTrace();
/* */ }
/* */ }
/* */
/* */
/* */
/* */
/* */
/* */
/* */ private void runMasterSyncScheduler(int cronTime)
/* */ {
/* 53 */ String cronExpression = "0 0 " + cronTime + " * * ?";
/* 54 */ ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("dynamic-jobs.xml");
/* */
/* 56 */ Scheduler scheduler = (Scheduler)ctx.getBean("scheduler");
/* 57 */ ParamContext.setScheduler(scheduler);
/* */
/* */
/* */
/* */
/* 62 */ SyncPR prSync = (SyncPR)ctx.getBean("prSync");
/* 63 */ SyncDataMaster myTask = (SyncDataMaster)ctx.getBean("masterSync");
/* 64 */ VendorScheduler vendorScheduler = (VendorScheduler)ctx.getBean("vendorScheduler");
/* */
/* */ try
/* */ {
/* 68 */ MethodInvokingJobDetailFactoryBean jobDetail = new MethodInvokingJobDetailFactoryBean();
/* 69 */ jobDetail.setTargetObject(myTask);
/* 70 */ jobDetail.setTargetMethod("executeAllSync");
/* 71 */ jobDetail.setName("masterSync");
/* 72 */ jobDetail.setConcurrent(false);
/* 73 */ jobDetail.afterPropertiesSet();
/* */
/* 75 */ MethodInvokingJobDetailFactoryBean vendorJobDetail = new MethodInvokingJobDetailFactoryBean();
/* 76 */ vendorJobDetail.setTargetObject(vendorScheduler);
/* 77 */ vendorJobDetail.setTargetMethod("executeVendorScheduler");
/* 78 */ vendorJobDetail.setName("vendorScheduler");
/* 79 */ vendorJobDetail.setConcurrent(false);
/* 80 */ vendorJobDetail.afterPropertiesSet();
/* */
/* 82 */ MethodInvokingJobDetailFactoryBean prSyncJobDetail = new MethodInvokingJobDetailFactoryBean();
/* 83 */ prSyncJobDetail.setTargetObject(prSync);
/* 84 */ prSyncJobDetail.setTargetMethod("executeSyncPR");
/* 85 */ prSyncJobDetail.setName("prSync");
/* 86 */ prSyncJobDetail.setConcurrent(false);
/* 87 */ prSyncJobDetail.afterPropertiesSet();
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* 96 */ String expression = cronExpression;
/* */
/* */
/* 99 */ CronTriggerImpl cronTrigger = new CronTriggerImpl();
/* 100 */ cronTrigger.setName("masterSync");
/* 101 */ cronTrigger.setCronExpression(expression);
/* 102 */ cronTrigger.setKey(new TriggerKey("masterSync"));
/* */
/* 104 */ CronTriggerImpl cronTrigger2 = new CronTriggerImpl();
/* 105 */ cronTrigger2.setName("schedulerVendor");
/* 106 */ cronTrigger2.setCronExpression(expression);
/* 107 */ cronTrigger2.setKey(new TriggerKey("schedulerVendor"));
/* */
/* 109 */ CronTriggerImpl cronTrigger3 = new CronTriggerImpl();
/* 110 */ cronTrigger3.setName("prSync");
/* 111 */ cronTrigger3.setCronExpression(expression);
/* 112 */ cronTrigger3.setKey(new TriggerKey("prSync"));
/* */
/* 114 */ scheduler.scheduleJob(jobDetail.getObject(), cronTrigger);
/* 115 */ scheduler.scheduleJob(vendorJobDetail.getObject(), cronTrigger2);
/* 116 */ scheduler.scheduleJob(prSyncJobDetail.getObject(), cronTrigger3);
/* */
/* */
/* 119 */ scheduler.start();
/* */ }
/* */ catch (Exception e) {
/* 122 */ e.printStackTrace();
/* */ }
/* */ }
/* */ }
/* Location: F:\Combiphar\DECOMPILE\PROJECT\apps.zip!\apps\WEB-INF\classes\com\promise3\controller\QuartzInitiatorController.class
* Java compiler version: 7 (51.0)
* JD-Core Version: 0.7.1
*/
\ No newline at end of file
This diff is collapsed.
/* */ package com.promise3.controller;
/* */
/* */ import java.io.File;
/* */ import java.io.FileInputStream;
/* */ import java.io.OutputStream;
/* */ import java.io.PrintStream;
/* */ import java.util.Iterator;
/* */ import javax.servlet.ServletContext;
/* */ import javax.servlet.http.HttpServletRequest;
/* */ import javax.servlet.http.HttpServletResponse;
/* */ import org.apache.poi.ss.usermodel.Cell;
/* */ import org.apache.poi.ss.usermodel.Row;
/* */ import org.apache.poi.xslf.model.geom.Path;
/* */ import org.apache.poi.xssf.usermodel.XSSFSheet;
/* */ import org.apache.poi.xssf.usermodel.XSSFWorkbook;
/* */ import org.springframework.stereotype.Controller;
/* */ import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.bind.annotation.RequestParam;
/* */
/* */
/* */
/* */ @Controller
/* */ public class XlsxController
/* */ {
/* */ @RequestMapping({"downloadTemplateXlsx"})
/* */ public void downloadTemplateXlsx(@RequestParam("id") Integer id, HttpServletRequest request, HttpServletResponse response)
/* */ {
/* 28 */ String pathXlsx = "/form_product_list.xlsx";
/* */ try
/* */ {
/* 31 */ ServletContext context = request.getServletContext();
/* 32 */ String appPath = context.getRealPath("file");
/* */
/* 34 */ File file = null;
/* */
/* 36 */ if (id.intValue() == 1) {
/* 37 */ file = new File(appPath + "/form_product_list.xlsx");
/* 38 */ response.addHeader("Content-Disposition", "attachment;filename=" + "/form_product_list.xlsx".substring(1, "/form_product_list.xlsx".length()));
/* */ }
/* */
/* 41 */ FileInputStream fileIn = new FileInputStream(file);
/* */
/* 43 */ response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;");
/* 44 */ response.setContentLength((int)file.length());
/* */
/* 46 */ OutputStream out = response.getOutputStream();
/* */
/* 48 */ byte[] outputByte = new byte['က'];
/* 49 */ int bytesRead = -1;
/* 50 */ while ((bytesRead = fileIn.read(outputByte)) != -1) {
/* 51 */ out.write(outputByte, 0, bytesRead);
/* */ }
/* 53 */ fileIn.close();
/* 54 */ out.close();
/* */ } catch (Exception ex) {
/* 56 */ ex.printStackTrace();
/* */ }
/* */ }
/* */
/* */ public void saveXlsx(Path path)
/* */ {
/* */ try {
/* 63 */ FileInputStream file = new FileInputStream(path.toString());
/* */
/* */
/* 66 */ XSSFWorkbook workbook = new XSSFWorkbook(file);
/* */
/* 68 */ XSSFSheet sheet = workbook.getSheetAt(0);
/* */
/* 70 */ Iterator<Row> rowIterator = sheet.iterator();
/* 71 */ while (rowIterator.hasNext()) {
/* 72 */ Row row = (Row)rowIterator.next();
/* */
/* */
/* 75 */ Iterator<Cell> cellIterator = row.cellIterator();
/* 76 */ while (cellIterator.hasNext()) {
/* 77 */ Cell cell = (Cell)cellIterator.next();
/* */
/* 79 */ switch (cell.getCellType()) {
/* */ case 4:
/* 81 */ System.out.println(cell.getBooleanCellValue() + "\t \t");
/* 82 */ break;
/* */ case 0:
/* 84 */ System.out.println(cell.getNumericCellValue() + "\t \t");
/* 85 */ break;
/* */ case 1:
/* 87 */ System.out.println(cell.getStringCellValue() + "\t \t");
/* */ }
/* */
/* */ }
/* 91 */ System.out.println("");
/* */ }
/* 93 */ file.close();
/* */ } catch (Exception ex) {
/* 95 */ ex.printStackTrace();
/* */ }
/* */ }
/* */ }
/* Location: F:\Combiphar\DECOMPILE\PROJECT\apps.zip!\apps\WEB-INF\classes\com\promise3\controller\XlsxController.class
* Java compiler version: 7 (51.0)
* JD-Core Version: 0.7.1
*/
\ No newline at end of file
package com.promise3.controller.core;
import com.promise3.services.master.Perencanaan00;
import com.promise3.services.master.Perencanaan00Services;
import com.promise3.services.master.PerencanaanAcctAssignments00;
import com.promise3.services.master.PerencanaanItemNote00;
import com.promise3.services.master.PerencanaanItemText00;
import com.promise3.services.master.PerencanaanNumber00;
import com.promise3.services.master.PerencanaanPrLines00;
import com.promise3.utility.ParamContext;
import com.promise3.utility.security.SessionSecurityUtil;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Controller;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;
@Controller
public class PerencanaanController {
@RequestMapping({"perencanaan"})
public ModelAndView search(@ModelAttribute("Perencanaan") PerencanaanNumber00 perencanaanNumber00,
BindingResult result, HttpSession session, HttpServletResponse response) {
SessionSecurityUtil ssu = new SessionSecurityUtil();
if (ssu.validateSessionActive(session)) {
return new ModelAndView("redirect:/");
} else {
ssu.setNoCache(response);
Map<String, Object> model = new HashMap();
model.put("title", "view.core.perencanaan");
model.put("action", "");
return new ModelAndView("PerencanaanFind", model);
}
}
@RequestMapping({"perencanaanFind"})
public ModelAndView perencanaanFind(HttpServletRequest request, HttpSession session, HttpServletResponse response) {
SessionSecurityUtil ssu = new SessionSecurityUtil();
if (ssu.validateSessionActive(session)) {
return new ModelAndView("redirect:/");
} else {
ssu.setNoCache(response);
Map<String, String[]> parameters = request.getParameterMap();
Iterator var7 = parameters.keySet().iterator();
while (var7.hasNext()) {
String key = (String) var7.next();
System.out.println(key);
String[] vals = (String[]) parameters.get(key);
String[] var12 = vals;
int var11 = vals.length;
for (int var10 = 0; var10 < var11; ++var10) {
String val = var12[var10];
System.out.println(" " + val);
}
}
System.out.println("Datanya adalah " + request.getParameter("prReffId"));
Map<String, Object> model = new HashMap();
model.put("title", "view.core.perencanaan");
model.put("action", "");
return new ModelAndView("PerencanaanDetails", model);
}
}
@RequestMapping({"perencanaanDetails"})
public ModelAndView perencanaanDetail(
@ModelAttribute("perencanaanNumber00") PerencanaanNumber00 perencanaanNumber00,
@ModelAttribute("perencanaanAcctAssignments00") PerencanaanAcctAssignments00 perencanaanAcctAssignments00,
@ModelAttribute("perencanaanPrLines00") PerencanaanPrLines00 perencanaanPrLines00,
@ModelAttribute("perencanaanItemNote00") PerencanaanItemNote00 perencanaanItemNote00,
@ModelAttribute("PerencanaanItemText00") PerencanaanItemText00 perencanaanItemText00,
@RequestParam("id") Integer id, HttpSession session, HttpServletResponse response) {
SessionSecurityUtil ssu = new SessionSecurityUtil();
if (ssu.validateSessionActive(session)) {
return new ModelAndView("redirect:/");
} else {
ssu.setNoCache(response);
ApplicationContext context = ParamContext.getContext();
Perencanaan00Services perencanaanService = (Perencanaan00Services) context.getBean("Perencanaan00Services");
List<Perencanaan00> perencanaan00 = new ArrayList();
Map<String, Object> model = new HashMap();
model.put("perencanaan", perencanaan00);
model.put("title", "view.core.perencanaan");
model.put("action", "");
return new ModelAndView("PerencanaanDetails", model);
}
}
}
\ No newline at end of file
/* */ package com.promise3.controller.exception;
/* */
/* */ import java.util.HashMap;
/* */ import java.util.Map;
/* */ import javax.servlet.http.HttpServletRequest;
/* */ import javax.servlet.http.HttpServletResponse;
/* */ import org.springframework.stereotype.Controller;
/* */ import org.springframework.ui.Model;
/* */ import org.springframework.web.bind.annotation.RequestMapping;
/* */ import org.springframework.web.servlet.ModelAndView;
/* */
/* */
/* */
/* */
/* */ @Controller
/* */ public class CustomErrorController
/* */ {
/* */ @RequestMapping({"error"})
/* */ public ModelAndView customError(HttpServletRequest request, HttpServletResponse response, Model model)
/* */ {
/* 21 */ Integer statusCode = (Integer)request.getAttribute("javax.servlet.error.status_code");
/* */
/* 23 */ Map<String, Object> models = new HashMap();
/* 24 */ models.put("title", "view.error.page");
/* 25 */ models.put("action", "");
/* 26 */ models.put("statusCode", statusCode);
/* */
/* 28 */ return new ModelAndView("CustomErrorMessage", models);
/* */ }
/* */ }
/* Location: F:\Combiphar\DECOMPILE\PROJECT\apps.zip!\apps\WEB-INF\classes\com\promise3\controller\exception\CustomErrorController.class
* Java compiler version: 7 (51.0)
* JD-Core Version: 0.7.1
*/
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment