Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
0Activity
0 of .
Results for:
No results containing your search query
P. 1
catci

catci

Ratings: (0)|Views: 2 |Likes:
Published by Debashis Debata

More info:

Published by: Debashis Debata on Jun 24, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as TXT, PDF, TXT or read online from Scribd
See more
See less

06/24/2012

pdf

text

original

 
/*===>ThisisadynamicallygeneratedPeopleCodetemplatetobeusedonlyasahelpertotheapplicationdeveloper.Youneedtoreplaceallreferencesto'[*]'ORdefaultvalueswithreferencestoPeopleCodevariablesand/oraRec.Fields.*/LocalFile&fileLog;LocalApiObject&oSession,&oGenlDedDataCi;LocalApiObject&oGenlDedCd2;LocalApiObject&oGenlDedCdCollection,&oGenlDedCd;LocalApiObject&oGenlDeductionCollection,&oGenlDeduction;LocalApiObject&oGvtBondTmpVwCollection,&oGvtBondTmpVw;LocalApiObject&oBondTmpVwCollection,&oBondTmpVw;FunctionerrorHandler()LocalApiObject&oPSMessageCollection,&oPSMessage;Localnumber&i;Localstring&sErrMsgSetNum,&sErrMsgNum,&sErrMsgText,&sErrType;&oPSMessageCollection=&oSession.PSMessages;For&i=1To&oPSMessageCollection.Count&oPSMessage=&oPSMessageCollection.Item(&i);&sErrMsgSetNum=&oPSMessage.MessageSetNumber;&sErrMsgNum=&oPSMessage.MessageNumber;&sErrMsgText=&oPSMessage.Text;&fileLog.WriteLine(&sErrType|"("|&sErrMsgSetNum|","|&sErrMsgNum|")-"|&sErrMsgText);End-For;rem*****DeletetheMessagesfromthecollection*****;&oPSMessageCollection.DeleteAll();End-Function;&rs2=CreateRowset(Record.CX_GEN_DED_TMP1);&rs2.fill();rem&num_read=&rs2.fill("WHEREFLAGIN('N')");For&i=1To&rs2.activerowcounttryrem*****SettheLogFile*****;&fileLog=GetFile("C:\Users\user-21\AppData\Local\Temp\GENL_DED_DATA_CI.log","w","a",%FilePath_Absolute);&fileLog.WriteLine("Begin");rem*****GetcurrentPeopleSoftSession*****;&oSession=%Session;rem*****SetthePeopleSoftSessionErrorMessageMode*****;rem*****0-None*****;rem*****1-PSMessageCollectiononly(default)*****;rem*****2-MessageBoxonly*****;rem*****3-Bothcollectionandmessagebox*****;&oSession.PSMessagesMode=1;rem*****GettheComponentInterface*****;&oGenlDedDataCi=&oSession.GetCompIntfc(CompIntfc.GENL_DED_DATA_CI);If&oGenlDedDataCi=NullThenerrorHandler();throwCreateException(0,0,"GetCompIntfcfailed");
 
End-If;rem*****SettheComponentInterfaceMode*****;&oGenlDedDataCi.InteractiveMode=True;&oGenlDedDataCi.GetHistoryItems=True;&oGenlDedDataCi.EditHistoryItems=True;rem*****SetComponentInterfaceGet/CreateKeys*****;&oGenlDedDataCi.EMPLID=&rs2.getrow(&i).CX_GEN_DED_TMP1.EMPLID.value;&fileLog.WriteLine("&oGenlDedDataCi.EMPLID="|&oGenlDedDataCi.EMPLID);&oGenlDedDataCi.COMPANY=&rs2.getrow(&i).CX_GEN_DED_TMP1.COMPANY.value;&DEDCODE=&rs2.getrow(&i).CX_GEN_DED_TMP1.DEDCD.value;rem*****ExecuteGet*****;IfNot&oGenlDedDataCi.Get()Thenrem*****Norowsexistforthespecifiedkeys.*****;errorHandler();throwCreateException(0,0,"Getfailed");End-If;rem*****Begin:Get/SetComponentInterfaceProperties*****;&oGenlDedCdCollection=&oGenlDedDataCi.GENL_DED_CD;&oGenlDedCd2=&oGenlDedDataCi.GENL_DED_CD.ItemByKeys(&DEDCODE);&fileLog.WriteLine("Valuefound="|&oGenlDedCd2);rem&fileLog.WriteLine("Valuefoundatrownumber="|&oGenlDedCd2.ItemNum);rem&fileLog.WriteLine("Numberofrows="|&oGenlDedCdCollection.ItemNum);remIf&oGenlDedCdCollection.ItemNum=TrueThen;IfAll(&oGenlDedCd2)ThenremIfAll(&oGenlDedCd2)And&oGenlDedCdCollection.ItemNum=TrueThen;remIf&oGenlDedCdCollection.ItemNum=TrueThen;remLocalinteger&i110g;rem&i110g=&oGenlDedCd2.ItemNum;&fileLog.WriteLine("Valuefound="|&oGenlDedCd2.ItemNum);&oGenlDedCd=&oGenlDedCdCollection.Item(&oGenlDedCd2.ItemNum);&oGenlDedCd.DEDCD=&rs2.getrow(&i).CX_GEN_DED_TMP1.DEDCD.value;&fileLog.WriteLine("&oGenlDedCd.DEDCD="|&oGenlDedCd.DEDCD);rem*****Set/GetGENL_DEDUCTIONCollectionFieldProperties--Parent:GENL_DED_CDCollection*****;&oGenlDeductionCollection=&oGenlDedCd.GENL_DEDUCTION;remLocalinteger&i212;remFor&i212=1To&oGenlDeductionCollection.Count;&oGenlDeduction=&oGenlDeductionCollection.InsertItem(1);&oGenlDeduction.EFFDT=&rs2.getrow(&i).CX_GEN_DED_TMP1.EFFDT.value;&fileLog.WriteLine("&oGenlDeduction.EFFDT="|&oGenlDeduction.EFFDT);&oGenlDeduction.DED_CALC=&rs2.getrow(&i).CX_GEN_DED_TMP1.DED_CALC.value;&fileLog.WriteLine("&oGenlDeduction.DED_CALC="|&oGenlDeduction.DED_ CALC);&oGenlDeduction.DEDUCTION_END_DT=&rs2.getrow(&i).CX_GEN_DED_TMP1.DEDU
 
CTION_END_DT.value;&fileLog.WriteLine("&oGenlDeduction.DEDUCTION_END_DT="|&oGenlDeduction.DEDUCTION_END_DT);&oGenlDeduction.DED_ADDL_AMT=&rs2.getrow(&i).CX_GEN_DED_TMP1.DED_ADDL _AMT.value;&fileLog.WriteLine("&oGenlDeduction.DED_ADDL_AMT="|&oGenlDeduction.DED_ADDL_AMT);&oGenlDeduction.DED_RATE_PCT=&rs2.getrow(&i).CX_GEN_DED_TMP1.DED_RATE _PCT.value;&fileLog.WriteLine("&oGenlDeduction.DED_RATE_PCT="|&oGenlDeduction.DED_RATE_PCT);&oGenlDeduction.GOAL_AMT=&rs2.getrow(&i).CX_GEN_DED_TMP1.GOAL_AMT.value;&fileLog.WriteLine("&oGenlDeduction.GOAL_AMT="|&oGenlDeduction.GOAL _AMT);&oGenlDeduction.GOAL_BAL=&rs2.getrow(&i).CX_GEN_DED_TMP1.GOAL_BAL.value;&fileLog.WriteLine("&oGenlDeduction.GOAL_BAL="|&oGenlDeduction.GOAL _BAL);&oGenlDeduction.LOAN_INT_PCT=&rs2.getrow(&i).CX_GEN_DED_TMP1.LOAN_INT _PCT.value;&fileLog.WriteLine("&oGenlDeduction.LOAN_INT_PCT="|&oGenlDeduction.LOAN_INT_PCT);&oGenlDeduction.PROCESS_DEDN=&rs2.getrow(&i).CX_GEN_DED_TMP1.PROCESS_ DEDN.value;&fileLog.WriteLine("&oGenlDeduction.PROCESS_DEDN="|&oGenlDeduction.PROCESS_DEDN);remEnd-For;ElseremLocalinteger&i212;remFor&i212=1To&oGenlDeductionCollection.Count;&oGenlDedCd3=&oGenlDedCdCollection.Item(1);rem&string=&oGenlDedCdCollection.GetPropertyByName(&oGenlDedCd3.DEDCD);&fileLog.WriteLine("&oGenlDedCd3.DEDCD="|&oGenlDedCd3.DEDCD);IfAll(&oGenlDedCd3.DEDCD)Then;&oGenlDedCd=&oGenlDedCdCollection.InsertItem(1);&oGenlDedCd.DEDCD=&rs2.getrow(&i).CX_GEN_DED_TMP1.DEDCD.value;&fileLog.WriteLine("&oGenlDedCd.DEDCD="|&oGenlDedCd.DEDCD);rem*****Set/GetGENL_DEDUCTIONCollectionFieldProperties--Parent:GENL_DED_CDCollection*****;&oGenlDeductionCollection=&oGenlDedCd.GENL_DEDUCTION;Localinteger&i213;For&i213=1To&oGenlDeductionCollection.Count;&oGenlDeduction=&oGenlDeductionCollection.Item(&i213);&oGenlDeduction.EFFDT=&rs2.getrow(&i).CX_GEN_DED_TMP1.EFFDT.value;&fileLog.WriteLine("&oGenlDeduction.EFFDT="|&oGenlDeduction.EFFDT);&oGenlDeduction.DED_CALC=&rs2.getrow(&i).CX_GEN_DED_TMP1.DED_CA

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->