Commit 9d6fbcf7 by lsk

W-Z修改

parent 0f6cd0df
default $cbe\dat order 1000 default $cbe\dat order 1000
{ {
if( Platform.isempty ( $cbe\dat.getValue()) ) if( Platform.isEmpty ( $cbe\dat.getValue()) )
{ {
$cbe\dat = today; $cbe\dat = Platform.today();
} }
} }
\ No newline at end of file
...@@ -26,8 +26,8 @@ void cbsstore() ...@@ -26,8 +26,8 @@ void cbsstore()
{ {
$cbe\cbt = "LIAOUT"; $cbe\cbt = "LIAOUT";
$cbe\nam = "outbooking " + $namsfx.getValue(); $cbe\nam = "outbooking " + $namsfx.getValue();
$cbe\amt = new BigDecimal(Platform.abs( $cbe\amt.getValue() )); $cbe\amt = Platform.abs( $cbe\amt.getValue() );//new BigDecimal(Platform.abs( $cbe\amt.getValue() ));
$cbe\xrfamt = new BigDecimal(Platform.abs( $cbe\xrfamt.getValue() )); $cbe\xrfamt =Platform.abs( $cbe\xrfamt.getValue() ) ;//new BigDecimal(Platform.abs( $cbe\xrfamt.getValue() ));
Platform.cbsStoreEntry( $cbe, Platform.recGetGrpMod( Platform.getModule( $objmod.getValue() ) ) ); Platform.cbsStoreEntry( $cbe, Platform.recGetGrpMod( Platform.getModule( $objmod.getValue() ) ) );
} }
$cbe\amt = amt; $cbe\amt = amt;
......
...@@ -26,7 +26,7 @@ default $cbe\acc order 1000 ...@@ -26,7 +26,7 @@ default $cbe\acc order 1000
// check if set by LiaallSetRefAct // check if set by LiaallSetRefAct
actval = getAvailAcc(); actval = getAvailAcc();
Platform.setFieldValue( $cbe\acc, actval ); Platform.setFieldValue( $cbe\acc, actval );
actval = Platform.getValues( $cbe\acc.getValue() ); actval = String.valueOf(Platform.getValues( $cbe\acc.getValue() ));
if( Platform.errorCode() == 0 ) if( Platform.errorCode() == 0 )
{ {
if( Platform.isEmpty( $cbe\acc ) && ! Platform.isEmpty( actval ) ) if( Platform.isEmpty( $cbe\acc ) && ! Platform.isEmpty( actval ) )
......
...@@ -11,6 +11,7 @@ void lscDeleteLsm(#lsm arglsm) ...@@ -11,6 +11,7 @@ void lscDeleteLsm(#lsm arglsm)
lscGetAllLsbForLsr( lsbInrStm, $lsr\inr.getValue() ); lscGetAllLsbForLsr( lsbInrStm, $lsr\inr.getValue() );
int lsbMax = Platform.streamCount( lsbInrStm ); int lsbMax = Platform.streamCount( lsbInrStm );
String lsbInr = NULLSTR; String lsbInr = NULLSTR;
String lssFlg;
for(int lsbIdx = 1;lsbIdx <= lsbMax;lsbIdx++) for(int lsbIdx = 1;lsbIdx <= lsbMax;lsbIdx++)
{ {
lsbInr = Platform.getLine( lsbInrStm, lsbIdx ); lsbInr = Platform.getLine( lsbInrStm, lsbIdx );
......
void lscStoreNewEarmark(#lsb deblsb,#lsb crelsb,String argcur,int argamt) void lscStoreNewEarmark(#lsb deblsb,#lsb crelsb,String argcur,int argamt)
{ {
BigDecimal amt = Platform.xrtCurrentLimitSysCur( argcur, argamt ); BigDecimal amt = Platform.xrtCurrentLimitSysCur( argcur, BigDecimal.valueOf(argamt) );
$lse\debinr = $$deblsb\inr; $lse\debinr = $$deblsb\inr;
$lse\creinr = $$crelsb\inr; $lse\creinr = $$crelsb\inr;
$lse\cur = $\cbsmod\xrtmod.sysiso(); $lse\cur = $\cbsmod\xrtmod.sysiso();
......
...@@ -23,7 +23,7 @@ String lscCheckTrnAccepted(String argtrninr) ...@@ -23,7 +23,7 @@ String lscCheckTrnAccepted(String argtrninr)
case "O": case "O":
case "A": case "A":
rtn = LscAccepted; rtn = LscAccepted;
return ; // #######TODO 改写 LABEL与GOTO #### goto NextLsm //return ; // #######TODO 改写 LABEL与GOTO #### goto NextLsm
break; break;
case "R": case "R":
rtn = LscRejected; rtn = LscRejected;
......
...@@ -59,7 +59,7 @@ void lscHandleLssFlg(#lsm arglsm,String arglsbinr,Argument<String> argsta,String ...@@ -59,7 +59,7 @@ void lscHandleLssFlg(#lsm arglsm,String arglsbinr,Argument<String> argsta,String
$lss\usr = "AUT"; $lss\usr = "AUT";
$lss\ssninr = $\sysmod\ssn\inr; $lss\ssninr = $\sysmod\ssn\inr;
$lss\dat = Platform.today(); $lss\dat = Platform.today();
$lss\tim = Platform.Time( 4 ); $lss\tim = BigDecimal.valueOf(Constants.Time(4));
} }
Platform.dbUpdate( $lss, $$arglsm\inr.getValue(), "LSMINR", arglsbinr, "LSBINR" ); Platform.dbUpdate( $lss, $$arglsm\inr.getValue(), "LSMINR", arglsbinr, "LSBINR" );
} }
...@@ -70,7 +70,7 @@ void lscHandleLssFlg(#lsm arglsm,String arglsbinr,Argument<String> argsta,String ...@@ -70,7 +70,7 @@ void lscHandleLssFlg(#lsm arglsm,String arglsbinr,Argument<String> argsta,String
$lss\usr = $\sysmod\ssn\usr; $lss\usr = $\sysmod\ssn\usr;
$lss\ssninr = $\sysmod\ssn\inr; $lss\ssninr = $\sysmod\ssn\inr;
$lss\dat = Platform.today(); $lss\dat = Platform.today();
$lss\tim = Platform.Time( 4 ); $lss\tim = BigDecimal.valueOf(Constants.Time(4));
Platform.dbUpdate( $lss, $$arglsm\inr.getValue(), "LSMINR", arglsbinr, "LSBINR" ); Platform.dbUpdate( $lss, $$arglsm\inr.getValue(), "LSMINR", arglsbinr, "LSBINR" );
} }
break; break;
......
...@@ -25,6 +25,7 @@ String lsiGetCBEStatus(#cbe argcbe) ...@@ -25,6 +25,7 @@ String lsiGetCBEStatus(#cbe argcbe)
return LscRejected; return LscRejected;
default: default:
Platform.sysDump( "LSCMOD.LsiGetCBEStatus: LscReadLSMByCbe return unknown LSMFLG '" + $lsm\lsmflg.getValue() + "'." ); Platform.sysDump( "LSCMOD.LsiGetCBEStatus: LscReadLSMByCbe return unknown LSMFLG '" + $lsm\lsmflg.getValue() + "'." );
return "";
} }
} }
\ No newline at end of file
...@@ -59,6 +59,7 @@ void lsiProcessCbeEntry(#cbe argcbe,IModule arggrp) ...@@ -59,6 +59,7 @@ void lsiProcessCbeEntry(#cbe argcbe,IModule arggrp)
lscGetAllLsbForLsr( lsbInrStm, $lsr\inr.getValue() ); lscGetAllLsbForLsr( lsbInrStm, $lsr\inr.getValue() );
int lsbMax = Platform.streamCount( lsbInrStm ); int lsbMax = Platform.streamCount( lsbInrStm );
String lsbInr = NULLSTR; String lsbInr = NULLSTR;
String lssFlg;
for(int lsbIdx = 1;lsbIdx <= lsbMax;lsbIdx++) for(int lsbIdx = 1;lsbIdx <= lsbMax;lsbIdx++)
{ {
lsbInr = Platform.getLine( lsbInrStm, lsbIdx ); lsbInr = Platform.getLine( lsbInrStm, lsbIdx );
......
...@@ -41,7 +41,7 @@ event $can order 1000 ...@@ -41,7 +41,7 @@ event $can order 1000
} }
} }
} }
if( prompt == tdPromptOK ) if( prompt )
{ {
mtaButSptClear(); mtaButSptClear();
Platform.sptClear(); Platform.sptClear();
...@@ -55,10 +55,10 @@ event $can order 1000 ...@@ -55,10 +55,10 @@ event $can order 1000
} }
else else
{ {
prompt = tdPromptOK; prompt = true;
} }
} }
if( prompt == tdPromptOK ) if( prompt )
{ {
if( Platform.sptIsAnyLoaded() ) if( Platform.sptIsAnyLoaded() )
{ {
......
...@@ -7,13 +7,13 @@ event $pen order 500 ...@@ -7,13 +7,13 @@ event $pen order 500
boolean prompt = false; boolean prompt = false;
if( Platform.sptIsAnyLoaded() || mod ) if( Platform.sptIsAnyLoaded() || mod )
{ {
prompt = tdPromptOK; prompt = true;
} }
else else
{ {
prompt = Platform.prompt( #CT000008, objNam ); prompt = Platform.prompt( #CT000008, objNam );
} }
if( prompt != tdPromptOK ) if( !prompt )
{ {
Platform.status( "" ); Platform.status( "" );
Platform.exitEvent(); Platform.exitEvent();
......
...@@ -167,12 +167,12 @@ init $\ order 200 ...@@ -167,12 +167,12 @@ init $\ order 200
Platform.dbLock( $sptchk ); Platform.dbLock( $sptchk );
if( Platform.errorCode() == tdOdbcLocked ) if( Platform.errorCode() == tdOdbcLocked )
{ {
Platform.message( #CT000145, Platform.trim( GetLockUID ), GetLockDate, Platform.mid( Platform.fmtTime( GetLockTime ), 1, 5 ) ); Platform.message( #CT000145, Platform.trim( GetLockUID ), GetLockDate, Platform.mid( Platform.fmtTime( new Double(GetLockTime).intValue() ), 1, 5 ) );
Platform.lnkReturnToCaller(); Platform.lnkReturnToCaller();
} }
Platform.streamInsert( $sptinrstr.getValue(), 0, $sptchk\inr.getValue() ); Platform.streamInsert( $sptinrstr.getValue(), 0, $sptchk\inr.getValue() );
// Issue fitting warning messages // Issue fitting warning messages
if( Platform.sptIsIncLoaded() || !( Platform.compareTo( $sptchk\sta , "INC") ) == 0 || sptIdx > 0 ) if( Platform.sptIsIncLoaded() || !(( Platform.compareTo( $sptchk\sta , "INC") ) == 0 )|| sptIdx > 0 )
{ {
if( ! Platform.isEmpty( $sptchk\delflg ) ) if( ! Platform.isEmpty( $sptchk\delflg ) )
{ {
......
...@@ -29,7 +29,7 @@ void checkinfo() ...@@ -29,7 +29,7 @@ void checkinfo()
{ {
if( Platform.compareTo($\sysmod\ssn\bckgrd, "F" )== 0 ) if( Platform.compareTo($\sysmod\ssn\bckgrd, "F" )== 0 )
{ {
if( Platform.prompt( #CT000198, errtxt ) == tdPromptCancel ) if( Platform.prompt( #CT000198, errtxt ) )
{ {
saverecgrp(); saverecgrp();
Platform.lnkReturnToCaller(); Platform.lnkReturnToCaller();
......
...@@ -19,6 +19,6 @@ boolean unmapped() ...@@ -19,6 +19,6 @@ boolean unmapped()
return false; return false;
// endif // endif
} }
return false; //return false;
} }
\ No newline at end of file
...@@ -22,7 +22,7 @@ event $usrexi order 1000 ...@@ -22,7 +22,7 @@ event $usrexi order 1000
prompt = Platform.prompt( #CT000206, objNam ); prompt = Platform.prompt( #CT000206, objNam );
} }
} }
if( prompt == tdPromptOK ) if( prompt )
{ {
mtaButSptClear(); mtaButSptClear();
Platform.sptClear(); Platform.sptClear();
...@@ -36,10 +36,10 @@ event $usrexi order 1000 ...@@ -36,10 +36,10 @@ event $usrexi order 1000
} }
else else
{ {
prompt = tdPromptOK; prompt = true;
} }
} }
if( prompt == tdPromptOK ) if( prompt )
{ {
if( Platform.sptIsAnyLoaded() ) if( Platform.sptIsAnyLoaded() )
{ {
......
...@@ -26,11 +26,11 @@ String getSptPtsInfo(String arginfo) ...@@ -26,11 +26,11 @@ String getSptPtsInfo(String arginfo)
case "CCT": case "CCT":
return Platform.getContent( objPth + "\\PRE" + arginfo ); return Platform.getContent( objPth + "\\PRE" + arginfo );
// case "CLT" // case "CLT"
break; //break;
case "GET": case "GET":
return Platform.getContent( objPth + "\\BEN" + arginfo ); return Platform.getContent( objPth + "\\BEN" + arginfo );
// case "CPT" // case "CPT"
break; //break;
default: default:
return ""; return "";
} }
......
void storeAdress(#ptsp argptsp) void storeAdress(#ptsp argptsp)
{ {
if( $$argptsp\ptspta.isrolset() ) if( $$argptsp\ptspta.isRolSet() )
{ {
if( ! Platform.isEmpty( $$argptsp\ptspta\dbfadrblk ) && Platform.compareTo($$argptsp\ptspta\dbfadrblk.getValue(), $$argptsp\ptspta\pts\adrblk.getValue()) != 0 ) if( ! Platform.isEmpty( $$argptsp\ptspta\dbfadrblk ) && Platform.compareTo($$argptsp\ptspta\dbfadrblk.getValue(), $$argptsp\ptspta\pts\adrblk.getValue()) != 0 )
{ {
......
...@@ -25,7 +25,7 @@ void wfeAdd(String insub,String insrv,Date tarday,int tartim) ...@@ -25,7 +25,7 @@ void wfeAdd(String insub,String insrv,Date tarday,int tartim)
} }
if( tartim >= 24 ) if( tartim >= 24 )
{ {
tartim = 23.59; tartim = (int)23.59;
} }
Date tardaytim = Platform.dateTimeMake( tarday, tartim ); Date tardaytim = Platform.dateTimeMake( tarday, tartim );
// check for fitting Service-Entries. // check for fitting Service-Entries.
......
...@@ -14,7 +14,7 @@ void wfeUpdate(int idx,String newsta) ...@@ -14,7 +14,7 @@ void wfeUpdate(int idx,String newsta)
datediff = Platform.dateTimeDiff( newdattim, $wfe[idx]\dattim.getValue() ); datediff = Platform.dateTimeDiff( newdattim, $wfe[idx]\dattim.getValue() );
if( Platform.errorCode() <= 0 ) if( Platform.errorCode() <= 0 )
{ {
difsec = Platform.round( convertTimeToSeconds( datediff ), 0 ); difsec = Platform.round( convertTimeToSeconds( datediff.intValue() ), 0 );
} }
else else
{ {
...@@ -26,13 +26,13 @@ void wfeUpdate(int idx,String newsta) ...@@ -26,13 +26,13 @@ void wfeUpdate(int idx,String newsta)
switch( $wfe[idx]\sta.getValue() ) switch( $wfe[idx]\sta.getValue() )
{ {
case "O": case "O":
$wfe[idx]\opndur = Platform.numAdd($wfe[idx]\opndur.getValue() , difsec); $wfe[idx]\opndur = Platform.numAdd($wfe[idx]\opndur.getValue() , difsec).longValue();
break; break;
case "W": case "W":
$wfe[idx]\waidur = Platform.numAdd($wfe[idx]\waidur.getValue() , difsec); $wfe[idx]\waidur = Platform.numAdd($wfe[idx]\waidur.getValue() , difsec).longValue();
break; break;
case "R": case "R":
$wfe[idx]\retdur = Platform.numAdd($wfe[idx]\retdur.getValue() , difsec); $wfe[idx]\retdur = Platform.numAdd($wfe[idx]\retdur.getValue() , difsec).longValue();
break; break;
} }
} }
......
...@@ -26,9 +26,9 @@ void setWfeStatWithTextandTime(String insub,String newsta,String txt,int duratio ...@@ -26,9 +26,9 @@ void setWfeStatWithTextandTime(String insub,String newsta,String txt,int duratio
// \WFETSK\TSKLIST\LOGMOD.WriteLine ( FormatText( "Duration $3 exceeded 60 seconds, WFSINR=$1, SRV=$2", WFS\INR, WFE( $useidx )\srv, duration / 1000 ), LogmodInfo ) // \WFETSK\TSKLIST\LOGMOD.WriteLine ( FormatText( "Duration $3 exceeded 60 seconds, WFSINR=$1, SRV=$2", WFS\INR, WFE( $useidx )\srv, duration / 1000 ), LogmodInfo )
} }
$wfe[useidx]\hdldur = $wfe[useidx]\hdldur.getValue() + duration; $wfe[useidx]\hdldur = $wfe[useidx]\hdldur.getValue() + duration;
if( $wfe[useidx]\hdldur.getValue() > 9999999999 ) if( $wfe[useidx]\hdldur.getValue() > 9999999999L )
{ {
$wfe[useidx]\hdldur = 9999999999; $wfe[useidx]\hdldur = 9999999999L;
} }
setWfeStatInternal( useidx, newsta ); setWfeStatInternal( useidx, newsta );
......
...@@ -66,7 +66,7 @@ boolean dealInterfaceNew(#trn argtrn) ...@@ -66,7 +66,7 @@ boolean dealInterfaceNew(#trn argtrn)
} }
else else
{ {
if( srv = "SMS" ) if(srv.equals("SMS" ))
{ {
$wfe[idx]\txt = $errmsg; $wfe[idx]\txt = $errmsg;
} }
......
...@@ -16,23 +16,38 @@ void insertNewXID(int idx,String ownref,String trninr,String objtyp,String objin ...@@ -16,23 +16,38 @@ void insertNewXID(int idx,String ownref,String trninr,String objtyp,String objin
//!=============================== //!===============================
Platform.clear( $xid ); Platform.clear( $xid );
//设置接口类型 //设置接口类型
switch( typ ) /*switch( typ )
{ {
case GetFXQCode: case GetFXQCode:
$xid.setINTTYPFXQ(); $xid.setINTTYPFXQ();
break; break;
case GetFAMCode: case GetFAMCode:*/
//20110525与蒋秀芹确认下费用为外币的情况下发送ABOQ //20110525与蒋秀芹确认下费用为外币的情况下发送ABOQ
/**if \SETMOD\SETGLG\SETGLL( Idx )\ABQGET\ABQP\FEEFLG <> "Y" then /**if \SETMOD\SETGLG\SETGLL( Idx )\ABQGET\ABQP\FEEFLG <> "Y" then
exit exit
else else
XID.SetINTTYPFAM XID.SetINTTYPFAM
endif**/ endif**/
$xid.setINTTYPFAM(); /*$xid.setINTTYPFAM();
break; break;
default: default:
if(1==1) return; if(1==1) return;
}*/
if(typ.equals(getFXQCode()))
{
$xid.setINTTYPFXQ();
}
else if(typ.equals(getFAMCode()))
{
//20110525与蒋秀芹确认下费用为外币的情况下发送ABOQ
/**if \SETMOD\SETGLG\SETGLL( Idx )\ABQGET\ABQP\FEEFLG <> "Y" then
exit
else
XID.SetINTTYPFAM
endif**/
$xid.setINTTYPFAM();
} }
String cdflg = $\setmod\setglg\setgll[idx]\debcdtflg; String cdflg = $\setmod\setglg\setgll[idx]\debcdtflg;
$xid\trndat = Platform.today(); $xid\trndat = Platform.today();
$xid\opttyp = ""; $xid\opttyp = "";
......
...@@ -43,9 +43,9 @@ String getOppoRole() ...@@ -43,9 +43,9 @@ String getOppoRole()
case "BPDGRP": case "BPDGRP":
rol = "FIA"; rol = "FIA";
break; break;
case "BEDGRP": //case "BEDGRP":
rol = "APL"; //rol = "APL";
break; //break;
} }
return rol; return rol;
......
BigDecimal amtViaSysCnv(BigDecimal amt,BigDecimal fromrat,BigDecimal torat,String fromcur,String tocur) BigDecimal amtViaSysCnv(BigDecimal amt,BigDecimal fromrat,BigDecimal torat,String fromcur,String tocur)
{ {
String refcur = $bascurcac; String refcur = $bascurcac;
int refamt = 0; BigDecimal refamt = new BigDecimal(0);
Argument<String> refcurBox = new Argument<String>("",refcur); Argument<String> refcurBox = new Argument<String>("",refcur);
Argument<BigDecimal> refamtBox = new Argument<BigDecimal>("",refamt); Argument<BigDecimal> refamtBox = new Argument<BigDecimal>("",refamt);
return amtConvRates( amt, fromrat, torat, fromcur, tocur, refcurBox, refamtBox ); return amtConvRates( amt, fromrat, torat, fromcur, tocur, refcurBox, refamtBox );
......
...@@ -33,7 +33,7 @@ BigDecimal sysCurEqu(String fromcur,BigDecimal amt,Date value) ...@@ -33,7 +33,7 @@ BigDecimal sysCurEqu(String fromcur,BigDecimal amt,Date value)
sqrrat = sqrratBox1.value; sqrrat = sqrratBox1.value;
String refcur = $bascurcac; String refcur = $bascurcac;
int refamt = 0; BigDecimal refamt = new BigDecimal(0);
Argument<String> refcurBox = new Argument<String>("",refcur); Argument<String> refcurBox = new Argument<String>("",refcur);
Argument<BigDecimal> refamtBox = new Argument<BigDecimal>("",refamt); Argument<BigDecimal> refamtBox = new Argument<BigDecimal>("",refamt);
return amtConvRates( amt, frmrat, sysrat, fromcur, sysiso(), refcurBox, refamtBox ); return amtConvRates( amt, frmrat, sysrat, fromcur, sysiso(), refcurBox, refamtBox );
......
...@@ -30,9 +30,9 @@ BigDecimal basCurEqu(String fromcur,BigDecimal amt,Date value) ...@@ -30,9 +30,9 @@ BigDecimal basCurEqu(String fromcur,BigDecimal amt,Date value)
sqrrat = sqrratBox.value; sqrrat = sqrratBox.value;
String refcur = $bascurcac; String refcur = $bascurcac;
int refamt = 0; BigDecimal refamt = new BigDecimal(0);
Argument<String> refcurBox = new Argument<String>("",refcur); Argument<String> refcurBox = new Argument<String>("",refcur);
Argument<BigDecimal> refamtBox = new Argument<BigDecimal>("",refamt); Argument<BigDecimal> refamtBox = new Argument<BigDecimal>("",refamt);
return amtConvRates( amt, frmrat, 1, fromcur, $bascurcac.getValue(), refcurBox, refamtBox ); return amtConvRates( amt, frmrat, new BigDecimal(1), fromcur, $bascurcac.getValue(), refcurBox, refamtBox );
} }
\ No newline at end of file
BigDecimal amtConvTypes(String fromcur,BigDecimal amt,String fromtyp,String tocur,String totyp,Date value) BigDecimal amtConvTypes(String fromcur,BigDecimal amt,String fromtyp,String tocur,String totyp,Date value)
{ {
// AmtConvTypes( FromCur , Amt , fromtyp , tocur , totyp, value ) // AmtConvTypes( FromCur , Amt , fromtyp , tocur , totyp, value )
int ignorecross = 1; BigDecimal ignorecross = new BigDecimal(1);
Argument<BigDecimal> ignorecrossBox = new Argument<BigDecimal>("",ignorecross); Argument<BigDecimal> ignorecrossBox = new Argument<BigDecimal>("",ignorecross);
return amtConvTypesWithCrossrate( fromcur, amt, fromtyp, tocur, totyp, value, ignorecrossBox ); return amtConvTypesWithCrossrate( fromcur, amt, fromtyp, tocur, totyp, value, ignorecrossBox );
......
...@@ -2,7 +2,7 @@ BigDecimal amtConvTypesWithCrossrate(String fromcur,BigDecimal amt,String fromty ...@@ -2,7 +2,7 @@ BigDecimal amtConvTypesWithCrossrate(String fromcur,BigDecimal amt,String fromty
{ {
// AmtConvTypes( FromCur , Amt , fromtyp , tocur , totyp, value ) // AmtConvTypes( FromCur , Amt , fromtyp , tocur , totyp, value )
String bscur = $bascurcac; String bscur = $bascurcac;
int refamt = 0; BigDecimal refamt = new BigDecimal(0);
String newcur; String newcur;
Argument<String> newcurBox = new Argument<String>(); Argument<String> newcurBox = new Argument<String>();
String newsys; String newsys;
......
...@@ -14,7 +14,7 @@ BigDecimal amtRndUnt(BigDecimal argamt,String argcur) ...@@ -14,7 +14,7 @@ BigDecimal amtRndUnt(BigDecimal argamt,String argcur)
else else
{ {
// otherwise round with rounding unit // otherwise round with rounding unit
if( Platform.compareTo(Platform.abs( argamt ) , Platform.numMul(0.5 , rndunt)<0) ) if( Platform.compareTo(Platform.abs( argamt ) , Platform.numMul(0.5 , rndunt))<0)
{ {
return new BigDecimal(0); return new BigDecimal(0);
} }
......
void getratCeb(String fromcur,String tocur,String typ,Date value,Argument<Integer> rmbrat) void getratCeb(String fromcur,String tocur,String typ,Date value,Argument<BigDecimal> rmbrat)
{ {
// Add by ZJ on Feb 2008 // Add by ZJ on Feb 2008
// 会计模组修改,从5.01移植 // 会计模组修改,从5.01移植
String sysiso = sysiso(); String sysiso = sysiso();
int frmrat = 1; int frmrat = 1;
int torat = 1; int torat = 1;
rmbrat.value = 0.000000; rmbrat.value = new BigDecimal(0.000000);
if( Platform.compareTo( fromcur , tocur ) == 0 ) if( Platform.compareTo( fromcur , tocur ) == 0 )
{ {
rmbrat.value = 1; rmbrat.value = new BigDecimal(1);
return ; // #######TODO 改写 LABEL与GOTO #### goto done return ; // #######TODO 改写 LABEL与GOTO #### goto done
} }
if( ( Platform.compareTo(fromcur, sysiso) != 0 ) && ( ! Platform.isEmpty( fromcur ) ) ) if( ( Platform.compareTo(fromcur, sysiso) != 0 ) && ( ! Platform.isEmpty( fromcur ) ) )
......
...@@ -29,11 +29,11 @@ BigDecimal amtViaCebRat(int amt,int rat,String acccur,String doccur,String dpy) ...@@ -29,11 +29,11 @@ BigDecimal amtViaCebRat(int amt,int rat,String acccur,String doccur,String dpy)
BigDecimal actamt = null; BigDecimal actamt = null;
if( Platform.compareTo( doccur , vdpy ) == 0 ) if( Platform.compareTo( doccur , vdpy ) == 0 )
{ {
actamt = amtRnd( amt * rat * bas, acccur ); actamt = amtRnd( new BigDecimal(amt * rat * bas), acccur );
} }
else else
{ {
actamt = amtRnd( amt / rat * bas, acccur ); actamt = amtRnd( new BigDecimal(amt / rat * bas), acccur );
} }
return actamt; return actamt;
......
...@@ -19,6 +19,6 @@ BigDecimal amtcnv(int amt,int rat,String fromcur,String tocur) ...@@ -19,6 +19,6 @@ BigDecimal amtcnv(int amt,int rat,String fromcur,String tocur)
{ {
bas = bas / frombas; bas = bas / frombas;
} }
return amtRnd( amt / rat * bas, tocur ); return amtRnd( new BigDecimal(amt / rat * bas), tocur );
} }
\ No newline at end of file
...@@ -21,26 +21,26 @@ BigDecimal amtCay(int argamt,int argplaces) ...@@ -21,26 +21,26 @@ BigDecimal amtCay(int argamt,int argplaces)
} }
else else
{ {
if( argplaces = 2 ) if( argplaces == 2 )
{ {
num = new BigDecimal("0.01"); num = new BigDecimal("0.01");
} }
else else
{ {
if( argplaces = 3 ) if( argplaces == 3 )
{ {
num = new BigDecimal("0.001"); num = new BigDecimal("0.001");
} }
else else
{ {
if( argplaces = 4 ) if( argplaces == 4 )
{ {
num = new BigDecimal("0.0001"); num = new BigDecimal("0.0001");
} }
} }
} }
} }
argamt = Platform.numAdd(Platform.parseInt( tt ) , num); argamt = Platform.numAdd(Platform.parseInt( tt ) , num).intValue();
return new BigDecimal(argamt); return new BigDecimal(argamt);
} }
} }
......
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