Commit 8f4d45b3 authored by ysawant's avatar ysawant

*Migrated component of Tour Programme menu

AttendanceProcess.java
tour11.xml
tour12.xml
tour21.xml
tour22.xml
d_tour_brow.srd
d_tour_edit.srd
TourApprove.java
TourApproveErp.java
TourApproveErpLocal.java
TourApproveErpRemote.java
TourApproveLocal.java
TourApproveRemote.java
TourCnc.java
TourCncErp.java
TourCncErpLocal.java
TourCncErpRemote.java
TourCncLocal.java
TourCncRemote.java
TourIC.java
TourICLocal.java
TourICRemote.java
w_tour.sql
d_tourdet_brow.srd
d_tourdet_edit.srd
TourProgramme.png
TourProgrammewht.png


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@212571 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2f29226c
This diff is collapsed.
$PBExportHeader$d_tourdet_brow.srd
release 9;
datawindow(units=1 timer_interval=0 color=79741120 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no grid.lines=0 )
header(height=19 color="536870912" )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=20 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tour_id dbname="tourdet.tour_id" )
column=(type=decimal(0) update=yes updatewhereclause=yes key=yes name=line_no dbname="tourdet.line_no" )
column=(type=decimal(0) update=yes updatewhereclause=yes name=line_no__plan dbname="tourdet.line_no__plan" )
column=(type=char(5) update=yes updatewhereclause=yes name=stan_code dbname="tourdet.stan_code" )
column=(type=char(60) update=yes updatewhereclause=yes name=to_place dbname="tourdet.to_place" )
column=(type=datetime update=yes updatewhereclause=yes name=date_to dbname="tourdet.date_to" )
column=(type=char(200) update=yes updatewhereclause=yes name=purpose dbname="tourdet.purpose" )
column=(type=char(50) update=yes updatewhereclause=yes name=mode_travel dbname="tourdet.mode_travel" )
column=(type=datetime update=yes updatewhereclause=yes name=date_from dbname="tourdet.date_from" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"tourdet~" ) COLUMN(NAME=~"tourdet.tour_id~") COLUMN(NAME=~"tourdet.line_no~") COLUMN(NAME=~"tourdet.line_no__plan~") COLUMN(NAME=~"tourdet.stan_code~") COLUMN(NAME=~"tourdet.to_place~") COLUMN(NAME=~"tourdet.date_to~") COLUMN(NAME=~"tourdet.purpose~") COLUMN(NAME=~"tourdet.mode_travel~") COLUMN(NAME=~"tourdet.date_from~")WHERE( EXP1 =~"tourdet.tour_id~" OP =~"=~" EXP2 =~":mtour_id ~" ) ) ARG(NAME = ~"mtour_id~" TYPE = string) " update="TOURDET" updatewhere=0 updatekeyinplace=no arguments=(("mtour_id", string)) )
text(band=header alignment="0" text="Line No" border="6" color="0" x="2" y="2" height="16" width="51" html.valueishtml="0" name=line_no_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="0" text="Line No Plan" border="6" color="0" x="55" y="2" height="16" width="81" html.valueishtml="0" name=line_no__plan_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="2" text="Station Code" border="6" color="0" x="138" y="2" height="16" width="85" html.valueishtml="0" name=stan_code_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="0" text="Place" border="6" color="0" x="225" y="2" height="16" width="142" html.valueishtml="0" name=to_place_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="0" text="Date To" border="6" color="0" x="370" y="2" height="16" width="67" html.valueishtml="0" name=date_to_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="0" text="Purpose" border="6" color="0" x="439" y="2" height="16" width="174" html.valueishtml="0" name=purpose_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="0" text="Mode of Travel" border="6" color="0" x="615" y="2" height="16" width="92" html.valueishtml="0" name=mode_travel_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=header alignment="2" text="Tour Id" border="6" color="0" x="709" y="2" height="16" width="63" html.valueishtml="0" name=tour_id_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=2 alignment="0" tabsequence=32766 border="5" color="0" x="2" y="1" height="16" width="51" format="#,##,##,###.####" html.valueishtml="0" name=line_no visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=3 alignment="0" tabsequence=10 border="5" color="0" x="55" y="1" height="16" width="81" format="#,##,##,###.####" html.valueishtml="0" name=line_no__plan visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=4 alignment="0" tabsequence=20 border="5" color="0" x="138" y="1" height="16" width="85" format="[general]" html.valueishtml="0" name=stan_code visible="1" edit.limit=5 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=5 alignment="0" tabsequence=30 border="5" color="0" x="225" y="1" height="16" width="142" format="[general]" html.valueishtml="0" name=to_place visible="1" edit.limit=20 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=6 alignment="0" tabsequence=40 border="5" color="0" x="370" y="1" height="16" width="67" format="[shortdate] [time]" html.valueishtml="0" name=date_to visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=7 alignment="0" tabsequence=50 border="5" color="0" x="439" y="1" height="16" width="174" format="[general]" html.valueishtml="0" name=purpose visible="1" edit.limit=200 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=8 alignment="0" tabsequence=60 border="5" color="0" x="615" y="0" height="16" width="92" format="[general]" html.valueishtml="0" name=mode_travel visible="1" edit.limit=15 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="0" x="709" y="0" height="16" width="63" format="[general]" html.valueishtml="0" name=tour_id visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=9 alignment="0" tabsequence=70 border="5" color="0" x="775" y="0" height="16" width="72" html.valueishtml="0" name=date_from visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=header alignment="2" text="Date From" border="6" color="0" x="774" y="1" height="16" width="73" html.valueishtml="0" name=date_from_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
$PBExportHeader$d_tourdet_edit.srd
release 9;
datawindow(units=1 timer_interval=0 color=79741120 processing=0 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 24 print.margin.right = 24 print.margin.top = 24 print.margin.bottom = 24 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes hidegrayline=no )
summary(height=0 color="536870912" )
footer(height=0 color="536870912" )
detail(height=322 color="536870912" )
table(column=(type=char(10) update=yes updatewhereclause=yes key=yes name=tour_id dbname="tourdet.tour_id" )
column=(type=decimal(0) update=yes updatewhereclause=yes key=yes name=line_no dbname="tourdet.line_no" )
column=(type=decimal(0) update=yes updatewhereclause=yes name=line_no__plan dbname="tourdet.line_no__plan" )
column=(type=char(5) update=yes updatewhereclause=yes name=stan_code dbname="tourdet.stan_code" )
column=(type=char(60) update=yes updatewhereclause=yes name=to_place dbname="tourdet.to_place" )
column=(type=datetime update=yes updatewhereclause=yes name=date_to dbname="tourdet.date_to" )
column=(type=char(200) update=yes updatewhereclause=yes name=purpose dbname="tourdet.purpose" )
column=(type=char(50) update=yes updatewhereclause=yes name=mode_travel dbname="tourdet.mode_travel" initial="Road" values="Air Air/Road Road/Train Train/Ship Ship/" )
column=(type=datetime update=yes updatewhereclause=yes name=date_from dbname="tourdet.date_from" )
retrieve="PBSELECT( VERSION(400) TABLE(NAME=~"tourdet~" ) COLUMN(NAME=~"tourdet.tour_id~") COLUMN(NAME=~"tourdet.line_no~") COLUMN(NAME=~"tourdet.line_no__plan~") COLUMN(NAME=~"tourdet.stan_code~") COLUMN(NAME=~"tourdet.to_place~") COLUMN(NAME=~"tourdet.date_to~") COLUMN(NAME=~"tourdet.purpose~") COLUMN(NAME=~"tourdet.mode_travel~") COLUMN(NAME=~"tourdet.date_from~")) " update="TOURDET" updatewhere=0 updatekeyinplace=no )
groupbox(band=detail text="Tour Details"border="2" color="0" x="12" y="25" height="211" width="571" name=gb_1 visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" )
text(band=detail alignment="1" text="Purpose :" border="0" color="0" x="26" y="129" height="16" width="104" html.valueishtml="0" name=purpose_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=detail alignment="1" text="Mode of Travel :" border="0" color="0" x="26" y="189" height="16" width="104" html.valueishtml="0" name=mode_travel_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=detail alignment="1" text="Line No :" border="0" color="0" x="26" y="54" height="16" width="104" html.valueishtml="0" name=line_no_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=2 alignment="1" tabsequence=32766 border="5" color="255" x="134" y="54" height="16" width="42" format="[General]" html.valueishtml="0" name=line_no visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=7 alignment="0" tabsequence=50 border="5" color="0" x="134" y="129" height="51" width="393" format="[general]" html.valueishtml="0" name=purpose visible="1" edit.limit=200 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autovscroll=yes edit.imemode=0 edit.vscrollbar=yes font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=8 alignment="0" tabsequence=60 border="5" color="0" x="134" y="189" height="16" width="91" format="[general]" html.valueishtml="0" name=mode_travel visible="1" ddlb.limit=1 ddlb.allowedit=no ddlb.case=upper ddlb.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=5 alignment="0" tabsequence=30 border="5" color="0" x="427" y="79" height="16" width="98" format="[general]" html.valueishtml="0" name=to_place visible="1" edit.limit=20 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=3 alignment="1" tabsequence=10 border="5" color="0" x="427" y="54" height="16" width="98" format="###" html.valueishtml="0" name=line_no__plan visible="1" editmask.mask="###" editmask.imemode=0 editmask.focusrectangle=no font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=4 alignment="0" tabsequence=20 border="5" color="0" x="134" y="79" height="16" width="74" format="[general]" html.valueishtml="0" name=stan_code visible="1" edit.limit=5 edit.case=upper edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Station Code :" border="0" color="0" x="26" y="79" height="16" width="104" html.valueishtml="0" name=stan_code_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=detail alignment="1" text="Line No Plan :" border="0" color="0" x="339" y="54" height="16" width="84" html.valueishtml="0" name=line_no__plan_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=detail alignment="1" text="Place :" border="0" color="0" x="339" y="79" height="16" width="84" html.valueishtml="0" name=to_place_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=detail alignment="1" text="Date To :" border="0" color="0" x="340" y="104" height="16" width="84" html.valueishtml="0" name=date_to_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
text(band=detail alignment="1" text="Tour Id :" border="0" color="0" x="340" y="189" height="16" width="84" html.valueishtml="0" name=tour_id_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
column(band=detail id=6 alignment="0" tabsequence=40 border="5" color="0" x="428" y="104" height="16" width="98" format="dd/mm/yy" html.valueishtml="0" name=date_to visible="1" edit.name="datetime" editmask.mask="dd/mm/yy" editmask.imemode=0 editmask.focusrectangle=no font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
column(band=detail id=1 alignment="0" tabsequence=32766 border="5" color="0" x="428" y="189" height="16" width="98" format="[general]" html.valueishtml="0" name=tour_id visible="1" edit.limit=10 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="16777215" )
text(band=detail alignment="1" text="Date From :" border="0" color="0" x="26" y="103" height="16" width="104" html.valueishtml="0" name=date_from_t visible="1" font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" )
column(band=detail id=9 alignment="0" tabsequence=70 border="5" color="255" x="134" y="103" height="16" width="55" format="[shortdate] [time]" html.valueishtml="0" name=date_from visible="1" edit.limit=0 edit.case=any edit.autoselect=yes edit.imemode=0 font.face="Times New Roman" font.height="-10" font.weight="400" font.family="1" font.pitch="2" font.charset="0" background.mode="2" background.color="79741120" )
htmltable(border="1" )
htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" )
export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 )
import.xml()
export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" )
\ No newline at end of file
......@@ -46,7 +46,7 @@ public class AttendanceProcess extends ValidatorEJB
int ilRemMin1 = 0;
public String isProcFrom = "MANUAL";
public String gbfAutoAttdProc(String asEmpCode, Timestamp adFromDate, Timestamp adToDate, int aiCommit, String xtraParams)throws RemoteException, ITMException
public String gbfAutoAttdProc(String asEmpCode, Timestamp adFromDate, Timestamp adToDate, int aiCommit, String xtraParams , Connection conn)throws RemoteException, ITMException
{
String[] lsPrdCode = new String[10];
String lsErrCode = ""; String lsPrd = ""; String lsWorkSite = ""; String lsProcGroup = "";
......@@ -55,7 +55,6 @@ public class AttendanceProcess extends ValidatorEJB
Timestamp ldCutOffDate = null; Timestamp ldFrDt = null; Timestamp ldToDt = null;
Timestamp[] ldFr = new Timestamp[10];
Timestamp[] ldTo = new Timestamp[10];
Connection conn = null;
PreparedStatement pstmt = null;
PreparedStatement pstmtAttdMnth = null;
ResultSet rs = null;
......@@ -70,7 +69,7 @@ public class AttendanceProcess extends ValidatorEJB
userId = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode"));
chgTerm = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "termId"));
conn = getConnection();
//conn = getConnection();
lsAuto = admCommon.getEnv("999999", "AUTOLVEAPRV", conn);
String str1;
......
This diff is collapsed.
package ibase.webitm.ejb.adm;
import java.rmi.RemoteException;
import org.w3c.dom.Document;
import ibase.webitm.ejb.ValidatorLocal;
import ibase.webitm.utility.ITMException;
public interface TourICLocal extends ValidatorLocal
{
public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(Document dom, Document dom1,Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String wfValData(String xmlString, String xmlString1,String xmlString2, String objContext, String editFlag,String xtraParams) throws RemoteException,ITMException ;
public String wfValData(Document dom, Document dom1, Document dom2,String objContext, String editFlag, String xtraParams)throws RemoteException, ITMException;
}
package ibase.webitm.ejb.adm;
import java.rmi.RemoteException;
import org.w3c.dom.Document;
import ibase.webitm.ejb.ValidatorRemote;
import ibase.webitm.utility.ITMException;
public interface TourICRemote extends ValidatorRemote
{
public String itemChanged(String xmlString, String xmlString1, String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(Document dom, Document dom1,Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String wfValData(String xmlString, String xmlString1,String xmlString2, String objContext, String editFlag,String xtraParams) throws RemoteException,ITMException ;
public String wfValData(Document dom, Document dom1, Document dom2,String objContext, String editFlag, String xtraParams)throws RemoteException, ITMException;
}
package ibase.webitm.ejb.adm.adv;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Timestamp;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.adm.AttendanceProcess;
import ibase.webitm.ejb.sys.UtilMethods;
import ibase.webitm.utility.ITMException;
public class TourApprove extends ActionHandlerEJB implements TourApproveLocal,TourActRemote
{
E12GenericUtility genericUtility = new E12GenericUtility();
ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB();
UtilMethods utilMethod = new UtilMethods();
String userId = "";
AttendanceProcess AtProcess = new AttendanceProcess();
public String gbfPostLogic(String asTranidFr, String asTranidTo,int aiCommit, String xtraParams, Connection conn)
throws ITMException
{
ResultSet rs = null;
PreparedStatement pstmt = null;
String sql = null;
String errString = "";
String lsTranid = "";
Timestamp ldDate = null;
Timestamp fdate = null;
Timestamp tdate = null;
Timestamp mtoday = null;
Timestamp mdate = null;
Timestamp ldFr = null;
Timestamp ldTo = null;
String mprd = "";
String empCode = "";
String mVal = "";
String status = "";
String lsTourStarts = "";
String lsTourEnds = "";
String termId = "";
String loginEmpCode = "";
int cnt = 0;
int row = 0;
double lcNoDays = 0.0;
try
{
System.out.println("***********Inside Post Logic Method**************");
userId = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode"));
termId = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "termId"));
loginEmpCode = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginEmpCode"));
mtoday = utilMethod.dateTime(utilMethod.today(), utilMethod.now());
System.out.println("mtoday ===> "+mtoday);
if(asTranidFr.equalsIgnoreCase(asTranidTo))
{
lsTranid = asTranidFr;
}
do
{
sql = "select emp_code, emp_code__appr, status, date_from, date_to, tour_starts, tour_ends from tour where tour_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTranid);
rs = pstmt.executeQuery();
if (rs.next())
{
empCode = checkNull(rs.getString("emp_code"));
mVal = checkNull(rs.getString("emp_code__appr"));
status = checkNull(rs.getString("status"));
fdate = rs.getTimestamp("date_from");
tdate = rs.getTimestamp("date_to");
lsTourStarts = checkNull(rs.getString("tour_starts"));
lsTourEnds = checkNull(rs.getString("tour_ends"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
System.out.println("status--->"+status);
if(!"U".equalsIgnoreCase(status))
{
System.out.println("status if not U--->"+status);
if("C".equalsIgnoreCase(status))
{
System.out.println("status if C--->"+status);
errString=checkNull(itmDBAccess.getErrorString("", "VTCANC02", userId, "", conn));
break;
}
else
{
errString=checkNull(itmDBAccess.getErrorString("", "VTAPPR02", userId, "", conn));
break;
}
}
ldDate = fdate;
do
{
sql = "select count(*) as cnt from tour where emp_code = ? and ? between date_from and date_to and status = 'A'";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,empCode);
pstmt.setTimestamp(2,ldDate);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("cnt");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt > 0)
{
errString=checkNull(itmDBAccess.getErrorString("", "VTTOUR", userId, "", conn));
break;
}
if(ldDate.equals(tdate))
{
break;
}
ldDate = utilMethod.RelativeDate(ldDate, 1);
} while (true);
if(errString != null && errString.trim().length() > 0)
{
return errString;
}
mdate = fdate;
do
{
sql = "select code, fr_date, to_date from period where fr_date <= ? and to_date >= ?";
pstmt = conn.prepareStatement(sql);
pstmt.setTimestamp(1,mdate);
pstmt.setTimestamp(2,mdate);
rs = pstmt.executeQuery();
if (rs.next())
{
mprd = checkNull(rs.getString("code"));
ldFr = rs.getTimestamp("fr_date");
ldTo = rs.getTimestamp("to_date");
}
if (rs != null)
{
rs.close();
rs = null;
}
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(ldTo.after(tdate))
{
ldTo = tdate;
}
lcNoDays = utilMethod.DaysAfter(mdate, ldTo) + 1;
if((mdate.equals(fdate)) && ("B".equalsIgnoreCase(lsTourStarts)));
{
lcNoDays = lcNoDays - 0.5;
}
if((ldTo.equals(tdate)) && ("B".equalsIgnoreCase(lsTourEnds)));
{
lcNoDays = lcNoDays - 0.5;
}
sql = "insert into tour_summary (emp_code, fr_date, to_date, no_days, prd_code, chg_date, chg_user, chg_term)"
+" values ( ? , ? , ? , ? , ? , ? , ? , ?)";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,empCode);
pstmt.setTimestamp(2,fdate);
pstmt.setTimestamp(3,tdate);
pstmt.setDouble(4,lcNoDays);
pstmt.setString(5,mprd);
pstmt.setTimestamp(6,mtoday);
pstmt.setString(7,userId);
pstmt.setString(8,termId);
row = pstmt.executeUpdate();
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
mdate = utilMethod.RelativeDate(ldTo, 1);
} while (mdate.before(tdate) || mdate.equals(tdate));
if(errString != null && errString.trim().length() > 0)
{
return errString;
}
row = 0;
sql = "update tour set status = 'A', emp_code__appr = ?, aprv_date = ? where tour_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,loginEmpCode);
pstmt.setTimestamp(2,mtoday);
pstmt.setString(3,lsTranid);
row = pstmt.executeUpdate();
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(row == 0)
{
errString=checkNull(itmDBAccess.getErrorString("", "DS000NR", userId, "", conn));
break;
}
errString = AtProcess.gbfAutoAttdProc(empCode, fdate, tdate, 2 ,xtraParams, conn);
System.out.println("----After errString----");
if(utilMethod.pos(errString, "<Errors") > 0)
{
return errString;
}
else
{
errString = "";
break;
}
} while (true);
}
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e1)
{
e1.printStackTrace();
}
}
return errString;
}
private String checkNull(String input)
{
if (input == null)
{
input = "";
}
return input;
}
}
package ibase.webitm.ejb.adm.adv;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Timestamp;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.sys.UtilMethods;
import ibase.webitm.utility.ITMException;
public class TourApproveErp extends ActionHandlerEJB implements TourApproveErpLocal,TourApproveErpRemote
{
TourApprove tourApprove = new TourApprove();
ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB();
UtilMethods utilMethod = new UtilMethods();
String userId = "";
public String actionHandler(String tranId, String xtraParams, String forcedFlag) throws RemoteException,ITMException
{
String retString = null;
String retErrString = "";
int aiCommit = 0;
Connection conn = null;
try
{
conn = getConnection();
System.out.println("Conn==>[" + conn + "]");
retErrString = gbfPostLogic(tranId, tranId, aiCommit, xtraParams, conn);
System.out.println("returning String from TourApproveErp :actionHandler():==>[" + retErrString + "]");
if(retErrString == null || retErrString.trim().length() == 0)
{
conn.commit();
retString = itmDBAccess.getErrorString("", "VTAPPROVE", userId, "", conn);
}
else
{
conn.rollback();
retString = retErrString;
return retString;
}
}
catch(Exception e)
{
System.out.println("Exception :TourApproveErp :actionHandler() :" + e.getMessage() + ":");
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if(conn != null)
{
conn.close();
conn = null;
}
}
catch (Exception e)
{
e.printStackTrace();
}
}
return retString;
}
public String gbfPostLogic(String asTranidFr, String asTranidTo, int aiCommit, String xtraParams, Connection conn)
throws ITMException
{
ResultSet rs = null;
PreparedStatement pstmt = null;
String sql = null;
String errString = "";
String lsTranid = "";
String status = "";
String isErrxml = "";
Timestamp ldtCurrdate = null;
int cnt = 0;
int rowCnt = 0;
try
{
System.out.println("***********Inside Post Logic Method of TourApproveErp**************");
if(asTranidFr.equalsIgnoreCase(asTranidTo))
{
lsTranid = asTranidFr;
sql = "select status from tour where tour_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTranid);
rs = pstmt.executeQuery();
if (rs.next())
{
status = checkNull(rs.getString("status"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if("C".equalsIgnoreCase(status) || "X".equalsIgnoreCase(status))
{
errString=checkNull(itmDBAccess.getErrorString("", "VTCANC02", userId, "", conn));
return errString;
}
if("O".equalsIgnoreCase(status))
{
errString=checkNull(itmDBAccess.getErrorString("", "VTTOUR0001", userId, "", conn));
return errString;
}
if("A".equalsIgnoreCase(status))
{
errString=checkNull(itmDBAccess.getErrorString("", "VTAPPR02", userId, "", conn));
return errString;
}
isErrxml = tourApprove.gbfPostLogic(asTranidFr, asTranidTo, aiCommit, xtraParams, conn);
sql = "select status from tour where tour_id = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTranid);
rs = pstmt.executeQuery();
if (rs.next())
{
status = checkNull(rs.getString("status"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if("A".equalsIgnoreCase(status))
{
ldtCurrdate = utilMethod.dateTime(utilMethod.today(), utilMethod.now());
sql = "select count(1) as cnt from wf_prc_status where ref_ser in ('E-TOUR','E-TURP') and ref_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTranid);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("cnt");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt > 0)
{
sql = "update obj_sign_trans set SIGN_DATE = ? , SIGN_STATUS = 'S' , SIGN_REMARKS = 'Tour Approved' "+
"where ref_ser in ('E-TOUR','E-TURP') and ref_id = ? and sign_status = 'U'";
pstmt = conn.prepareStatement(sql);
pstmt.setTimestamp(1,ldtCurrdate);
pstmt.setString(2,lsTranid);
rowCnt = pstmt.executeUpdate();
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rowCnt > 0)
{
rowCnt = 0;
sql = "update wf_prc_status set process_status = '9' , status_remarks = 'Tour is approved from ERP' "+
"where ref_ser in ('E-TOUR','E-TURP') and ref_id = ? and process_status < 3";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTranid);
rowCnt = pstmt.executeUpdate();
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rowCnt > 0)
{
rowCnt = 0;
sql = "update tour set WRKFLW_STATUS = 'ZZ' where tour_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTranid);
rowCnt = pstmt.executeUpdate();
}
else
{
errString=checkNull(itmDBAccess.getErrorString("", "DS000", userId, "", conn));
return errString;
}
}
else
{
errString=checkNull(itmDBAccess.getErrorString("", "DS000", userId, "", conn));
return errString;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(errString.trim().length() > 0)
{
conn.rollback();
}
else
{
conn.commit();
}
}
}
}
}
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e1)
{
e1.printStackTrace();
}
}
return isErrxml;
}
private String checkNull(String input)
{
if (input == null)
{
input = "";
}
return input;
}
}
package ibase.webitm.ejb.adm.adv;
import java.sql.Connection;
import ibase.webitm.ejb.ActionHandlerLocal;
import ibase.webitm.utility.ITMException;
public interface TourApproveErpLocal extends ActionHandlerLocal
{
public String gbfPostLogic(String asTranidFr, String asTranidTo,int aiCommit, String xtraParams,Connection conn) throws ITMException;
}
package ibase.webitm.ejb.adm.adv;
import java.sql.Connection;
import ibase.webitm.ejb.ActionHandlerRemote;
import ibase.webitm.utility.ITMException;
public interface TourApproveErpRemote extends ActionHandlerRemote
{
public String gbfPostLogic(String asTranidFr, String asTranidTo,int aiCommit, String xtraParams,Connection conn) throws ITMException;
}
package ibase.webitm.ejb.adm.adv;
import java.sql.Connection;
import ibase.webitm.ejb.ActionHandlerLocal;
import ibase.webitm.utility.ITMException;
public interface TourApproveLocal extends ActionHandlerLocal
{
public String gbfPostLogic(String asTranidFr, String asTranidTo,int aiCommit, String xtraParams,Connection conn) throws ITMException;
}
package ibase.webitm.ejb.adm.adv;
import java.sql.Connection;
import ibase.webitm.ejb.ActionHandlerRemote;
import ibase.webitm.utility.ITMException;
public interface TourApproveRemote extends ActionHandlerRemote
{
public String gbfPostLogic(String asTranidFr, String asTranidTo,int aiCommit, String xtraParams,Connection conn) throws ITMException;
}
package ibase.webitm.ejb.adm.adv;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Timestamp;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.adm.AttendanceProcess;
import ibase.webitm.ejb.sys.UtilMethods;
import ibase.webitm.utility.ITMException;
public class TourCnc extends ActionHandlerEJB implements TourCncLocal,TourCncRemote
{
E12GenericUtility genericUtility = new E12GenericUtility();
ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB();
UtilMethods utilMethod = new UtilMethods();
AttendanceProcess AtProcess = new AttendanceProcess();
String userId = "";
public String gbfPostLogic(String asTranidFr, String asTranidTo, int aiCommit, String xtraParams, Connection conn)
throws ITMException
{
ResultSet rs = null;
PreparedStatement pstmt = null;
String sql = null;
String errString = "";
String lsTourId = "";
String empCode = "";
String status = "";
Timestamp ldFr = null;
Timestamp ldTo = null;
int row = 0;
try
{
System.out.println("*********** Inside Post Logic Method of TourCnc **************");
userId = checkNull(genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode"));
if(asTranidFr.equalsIgnoreCase(asTranidTo))
{
lsTourId = asTranidFr;
}
sql = "select emp_code, date_from, date_to, status from tour where tour_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTourId);
rs = pstmt.executeQuery();
if (rs.next())
{
empCode = checkNull(rs.getString("emp_code"));
ldFr = rs.getTimestamp("date_from");
ldTo = rs.getTimestamp("date_to");
status = checkNull(rs.getString("status"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if("A".equalsIgnoreCase(status))
{
sql = "delete from tour_summary where emp_code = ? and fr_date = ? and to_date = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,empCode);
pstmt.setTimestamp(2,ldFr);
pstmt.setTimestamp(3,ldTo);
row = pstmt.executeUpdate();
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
else if("C".equalsIgnoreCase(status))
{
errString=checkNull(itmDBAccess.getErrorString("", "VTCANC02", userId, "", conn));
return errString;
}
row = 0;
sql = "update tour set status = 'C' where tour_id = ? and emp_code = ? and date_from = ? and date_to = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTourId);
pstmt.setString(2,empCode);
pstmt.setTimestamp(3,ldFr);
pstmt.setTimestamp(4,ldTo);
row = pstmt.executeUpdate();
if (pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(row == 0)
{
errString=checkNull(itmDBAccess.getErrorString("", "DS000NR", userId, "", conn));
return errString;
}
else if("A".equalsIgnoreCase(status))
{
errString = AtProcess.gbfAutoAttdProc(empCode, ldFr, ldTo, 2 ,xtraParams, conn);
if(utilMethod.pos(errString, "<Errors") > 0)
{
return errString;
}
else
{
errString = "";
}
}
}
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e1)
{
e1.printStackTrace();
}
}
return null;
}
private String checkNull(String input)
{
if (input == null)
{
input = "";
}
return input;
}
}
package ibase.webitm.ejb.adm.adv;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Timestamp;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ActionHandlerEJB;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.adm.AttendanceProcess;
import ibase.webitm.ejb.sys.UtilMethods;
import ibase.webitm.utility.ITMException;
public class TourCncErp extends ActionHandlerEJB implements TourCncErpLocal,TourCncErpRemote
{
TourCnc tourCnc = new TourCnc();
E12GenericUtility genericUtility = new E12GenericUtility();
ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB();
UtilMethods utilMethod = new UtilMethods();
AttendanceProcess AtProcess = new AttendanceProcess();
String userId = "";
public String actionHandler(String tranId, String xtraParams, String forcedFlag) throws RemoteException,ITMException
{
String retString = null;
String retErrString = "";
int aiCommit = 0;
Connection conn = null;
try
{
conn = getConnection();
System.out.println("Conn==>[" + conn + "]");
retErrString = gbfPostLogic(tranId, tranId, aiCommit, xtraParams, conn);
System.out.println("returning String from TourCncErp :actionHandler():==>[" + retErrString + "]");
if(retErrString == null || retErrString.trim().length() == 0)
{
conn.commit();
retString = itmDBAccess.getErrorString("", "VTMCAN", userId, "", conn);
}
else
{
conn.rollback();
retString = retErrString;
return retString;
}
}
catch(Exception e)
{
System.out.println("Exception :TourCncErp :actionHandler() :" + e.getMessage() + ":");
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if(conn != null)
{
conn.close();
conn = null;
}
}
catch (Exception e)
{
e.printStackTrace();
}
}
return retString;
}
public String gbfPostLogic(String asTranidFr, String asTranidTo, int aiCommit , String xtraParams, Connection conn)
throws ITMException
{
ResultSet rs = null;
PreparedStatement pstmt = null;
String sql = null;
String errString = "";
String lsTranid = "";
String status = "";
String isErrxml = "";
Timestamp ldtCurrdate = null;
int cnt = 0;
int rowCnt = 0;
try
{
System.out.println("***********Inside Post Logic Method of TourCncErp**************");
if(asTranidFr.equalsIgnoreCase(asTranidTo))
{
lsTranid = asTranidFr;
sql = "select status from tour where tour_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTranid);
rs = pstmt.executeQuery();
if (rs.next())
{
status = checkNull(rs.getString("status"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if("C".equalsIgnoreCase(status) || "X".equalsIgnoreCase(status))
{
errString=checkNull(itmDBAccess.getErrorString("", "VTCANC02", userId, "", conn));
return errString;
}
isErrxml = tourCnc.gbfPostLogic(asTranidFr, asTranidTo, aiCommit, xtraParams, conn);
sql = "select status from tour where tour_id = ? ";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTranid);
rs = pstmt.executeQuery();
if (rs.next())
{
status = checkNull(rs.getString("status"));
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if("C".equalsIgnoreCase(status) || "X".equalsIgnoreCase(status))
{
ldtCurrdate = utilMethod.dateTime(utilMethod.today(), utilMethod.now());
sql = "select count(1) as cnt from wf_prc_status where ref_ser in ('E-TOUR','E-TURP') and ref_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTranid);
rs = pstmt.executeQuery();
if (rs.next())
{
cnt = rs.getInt("cnt");
}
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt > 0)
{
sql = "update obj_sign_trans set SIGN_DATE = ? , SIGN_STATUS = 'S' , SIGN_REMARKS = 'Tour Cancelled' "+
"where ref_ser in ('E-TOUR','E-TURP') and ref_id = ? and sign_status = 'U'";
pstmt = conn.prepareStatement(sql);
pstmt.setTimestamp(1,ldtCurrdate);
pstmt.setString(2,lsTranid);
rowCnt = pstmt.executeUpdate();
if(rowCnt > 0)
{
rowCnt = 0;
sql = "update wf_prc_status set process_status = '9' , status_remarks = 'Tour is cancelled from ERP' "+
"where ref_ser in ('E-TOUR','E-TURP') and ref_id = ? and process_status < 3";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTranid);
rowCnt = pstmt.executeUpdate();
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(rowCnt > 0)
{
rowCnt = 0;
sql = "update tour set WRKFLW_STATUS = 'ZZ' where tour_id = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,lsTranid);
rowCnt = pstmt.executeUpdate();
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
else
{
errString=checkNull(itmDBAccess.getErrorString("", "DS000", userId, "", conn));
return errString;
}
}
else
{
errString=checkNull(itmDBAccess.getErrorString("", "DS000", userId, "", conn));
return errString;
}
if(errString.trim().length() > 0)
{
conn.rollback();
}
else
{
conn.commit();
}
}
}
}
}
catch (Exception e)
{
e.printStackTrace();
throw new ITMException(e);
}
finally
{
try
{
if(rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e1)
{
e1.printStackTrace();
}
}
return isErrxml;
}
private String checkNull(String input)
{
if (input == null)
{
input = "";
}
return input;
}
}
package ibase.webitm.ejb.adm.adv;
import java.sql.Connection;
import ibase.webitm.ejb.ActionHandlerLocal;
import ibase.webitm.utility.ITMException;
public interface TourCncErpLocal extends ActionHandlerLocal
{
public String gbfPostLogic(String asTranidFr, String asTranidTo,int aiCommit , String xtraParams,Connection conn) throws ITMException;
}
package ibase.webitm.ejb.adm.adv;
import java.sql.Connection;
import ibase.webitm.ejb.ActionHandlerRemote;
import ibase.webitm.utility.ITMException;
public interface TourCncErpRemote extends ActionHandlerRemote
{
public String gbfPostLogic(String asTranidFr, String asTranidTo, int aiCommit , String xtraParams,Connection conn) throws ITMException;
}
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