Commit b1ee754c authored by cpatil's avatar cpatil

modify by manoj sir in sun


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100985 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6b670f61
...@@ -103,7 +103,7 @@ public class PorcpVouchCreateSch implements Schedule ...@@ -103,7 +103,7 @@ public class PorcpVouchCreateSch implements Schedule
System.out.println("intializingLog$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$........."+ intializingLog("Porcp_Vouch_Sch")); System.out.println("intializingLog$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$........."+ intializingLog("Porcp_Vouch_Sch"));
String tranDateFrom = "01/04/15"; //change by cpatil "01/04/14" to "01/04/15" String tranDateFrom = "01/04/15"; //change by cpatil "01/04/14" to "01/04/15"
boolean isValidReceipt=true; //boolean isValidReceipt=true;
tranDateFromNew = Timestamp.valueOf(genericUtility.getValidDateString(tranDateFrom, genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()) + " 00:00:00.0"); tranDateFromNew = Timestamp.valueOf(genericUtility.getValidDateString(tranDateFrom, genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()) + " 00:00:00.0");
java.util.Date currentDate = new java.util.Date(); java.util.Date currentDate = new java.util.Date();
System.out.println(">>>>>>>>>>currentDate:"+currentDate); System.out.println(">>>>>>>>>>currentDate:"+currentDate);
...@@ -122,11 +122,20 @@ public class PorcpVouchCreateSch implements Schedule ...@@ -122,11 +122,20 @@ public class PorcpVouchCreateSch implements Schedule
rs=pstmt.executeQuery(); rs=pstmt.executeQuery();
while(rs.next()) while(rs.next())
{ {
//siteCode=rs.getString("SITE_CODE"); tranidRcp = rs.getString("tran_id");
isValidReceipt=true; //Called PB component by Manoj dtd 21/03/2016
tranidRcp = rs.getString("tran_id"); retString=createVoucher("porcp",tranidRcp,xtraParams,conn);
System.out.println("retString----"+retString);
fos1.write(retString.getBytes());
}
rs.close();
rs=null;
pstmt.close();
pstmt=null;
//System.out.println("End Time for transaction"+endDateStr+"string to write"+strToWrite);
double countQC=0,countQCclose=0; /* double countQC=0,countQCclose=0;
pstmt3=conn.prepareStatement(" select count(*) from qc_order where porcp_no = '"+tranidRcp+"' " pstmt3=conn.prepareStatement(" select count(*) from qc_order where porcp_no = '"+tranidRcp+"' "
+ " "); + " ");
rs3=pstmt3.executeQuery(); rs3=pstmt3.executeQuery();
...@@ -268,24 +277,19 @@ public class PorcpVouchCreateSch implements Schedule ...@@ -268,24 +277,19 @@ public class PorcpVouchCreateSch implements Schedule
pstmt1=null; pstmt1=null;
*/ */
//strToWrite =strToWrite+ "TranID of Receipt : "+tranidRcp+" Voucher No : "+voucherId+"\r\n\r\n"; //strToWrite =strToWrite+ "TranID of Receipt : "+tranidRcp+" Voucher No : "+voucherId+"\r\n\r\n";
strWrite="TranID of Receipt : "+tranidRcp+" Voucher No : "+voucherId+"\n Return String : "+retString+"\r\n\r\n"; //strWrite="TranID of Receipt : "+tranidRcp+" Voucher No : "+voucherId+"\n Return String : "+retString+"\r\n\r\n";
//fos1.write(strWrite.getBytes()); //fos1.write(strWrite.getBytes());
fos1.write(retString.getBytes()); //fos1.write(retString.getBytes());
strWrite=""; //strWrite="";
endDate = new java.util.Date(System.currentTimeMillis()); //endDate = new java.util.Date(System.currentTimeMillis());
calendar.setTime(new java.sql.Timestamp(System.currentTimeMillis())); //calendar.setTime(new java.sql.Timestamp(System.currentTimeMillis()));
//strToWrite = strToWrite + "Return String : "+retString+"\r\n\r\n"; //strToWrite = strToWrite + "Return String : "+retString+"\r\n\r\n";
} //}
} // }
rs.close();
rs=null;
pstmt.close();
pstmt=null;
System.out.println("End Time for transaction"+endDateStr+"string to write"+strToWrite);
}catch(Exception e) }catch(Exception e)
{ {
......
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