ackage xxpfc.oracle.apps.per. selfservice. personalinformation.webui;
import java.util.Date;
import oracle.apps.fnd.framework. OAApplicationModule;
import oracle.apps.fnd.framework. OAException;
import oracle.apps.fnd.framework. OAViewObject;
import oracle.apps.fnd.framework. webui.OAPageContext;
import oracle.apps.fnd.framework. webui.OAWebBeanConstants;
import oracle.apps.fnd.framework. webui.beans.OAWebBean;
import oracle.apps.fnd.framework. webui.beans.form. OASubmitButtonBean;
import oracle.apps.fnd.framework. webui.beans.layout. OAStackLayoutBean;
import oracle.apps.per.selfservice. personalinformation.webui. PerinfoNavigationBarCO;
import oracle.cabo.ui.action. FireAction;
import oracle.cabo.ui.action. FirePartialAction;
import oracle.jbo.Row;
import oracle.jbo.ViewObject;
public class PFCPerinfoNavigationBarCO extends PerinfoNavigationBarCO
{
public PFCPerinfoNavigationBarCO()
{
}
public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
{
super.processRequest( oapagecontext, oawebbean);
OAApplicationModule rootAM=(OAApplicationModule) oapagecontext. getRootApplicationModule();
String rootam= rootAM.getDefFullName();
oapagecontext. writeDiagnostics(this,"value oa am is :"+rootam,4);
OAApplicationModule contactsMainAM=( OAApplicationModule)rootAM. findApplicationModule(" ContactsMainAM");
if(contactsMainAM!=null)
{
String contactAM=contactsMainAM. getDefFullName();
oapagecontext. writeDiagnostics(this,"value oa am is :"+contactAM,4);
}
OAStackLayoutBean slb=(OAStackLayoutBean) oawebbean.findChildRecursive(" BasicDetailsUpdateForm");
if(slb !=null)
{
String slbName=slb.getDataObjectName( );
oapagecontext. writeDiagnostics(this,"value oa am is :"+slb,4);
oapagecontext. writeDiagnostics(this,"value oa am is :"+slbName,4);
}
OAApplicationModule contactNameAM=( OAApplicationModule) oapagecontext. getApplicationModule(slb);
if(contactNameAM!=null)
{
String contact1AM=contactNameAM. getDefFullName();
oapagecontext. writeDiagnostics(this,"value oa am is :"+contact1AM,4);
}
}
// oapagecontext. writeDiagnostics(this,"value oa am is :"+ams,4);
// OASubmitButtonBean oasubmitbuttonbean1 = (OASubmitButtonBean)oawebbean. findIndexedChildRecursive(" HrnextButton");
// FireAction firePartialAction = new FirePartialAction(" HrnextButton");
// oasubmitbuttonbean1. setAttributeValue(PRIMARY_ CLIENT_ACTION_ATTR, firePartialAction);
}
// public void processFormRequest( OAPageContext oapagecontext, OAWebBean oawebbean)
// {
// if(oapagecontext.getParameter( "HrnextButton")!=null)
// {
// OAApplicationModule rootAM=(OAApplicationModule) oapagecontext. getRootApplicationModule();
// String rootam= rootAM.getDefFullName();
// oapagecontext. writeDiagnostics(this,"value from query"+rootam,4);
// super.processFormRequest( oapagecontext, oawebbean);
//// OAStackLayoutBean slb=(OAStackLayoutBean) oawebbean.findChildRecursive(" BasicDetailsUpdateForm");
// OAApplicationModule ContactsMainAM=( OAApplicationModule) oapagecontext. getApplicationModule( oawebbean);
//
//
//// OAViewObject ContactsMainVO=(OAViewObject) ContactsMainAM.findViewObject( "ContactsMainVO");
//// Row birthDayDateRow =ContactsMainVO.getCurrentRow( );
//
//// String birthDate= birthDayDateRow.getAttribute(" DateOfBirth").toString();
//
//// oapagecontext. writeDiagnostics(this,"value birthDate"+birthDate,4);
//// Date BirthDayDate=oapagecontext. getOANLSServices(). stringToDate("birthDate");
//// oapagecontext. writeDiagnostics(this,"value BirthDayDate"+BirthDayDate,4);
//// String kin=birthDayDateRow. getAttribute(" ContInformation1").toString();
//// oapagecontext. writeDiagnostics(this,"value kin:"+kin,4);
////
////
//// if(kin.equalsIgnoreCase("yes") &&("HrnextButton".equals( oapagecontext.getParameter( OAWebBeanConstants.EVENT_ PARAM))))
//// {
////
//// String Query= "SELECT trunc(sysdate) - to_date(:1)\n" +
//// " FROM dual";
//// ViewObject QueryVO = (ViewObject)rootAM. createViewObjectFromQueryStmt( "QueryVO",Query);
//// QueryVO.setWhereClauseParam(0, BirthDayDate);
//// Row QueryRow = QueryVO.first();
//// String QueryValue =(String)(QueryRow. getAttribute(0));
//// QueryVO.remove();
//// oapagecontext. writeDiagnostics(this,"value from query"+QueryValue,4);
//// int DateOfBirth=Integer.parseInt(" QueryValue");
////
//// //days in 18 years is 6574
//// if(DateOfBirth <6574)
//// {
//// throw new OAException("For Next Of Kin The Age Should Be Must Greater Then 18Yrs",OAException.ERROR);
//// }
////
////
////
//// }
// }
//
//}
import java.util.Date;
import oracle.apps.fnd.framework.
import oracle.apps.fnd.framework.
import oracle.apps.fnd.framework.
import oracle.apps.fnd.framework.
import oracle.apps.fnd.framework.
import oracle.apps.fnd.framework.
import oracle.apps.fnd.framework.
import oracle.apps.fnd.framework.
import oracle.apps.per.selfservice.
import oracle.cabo.ui.action.
import oracle.cabo.ui.action.
import oracle.jbo.Row;
import oracle.jbo.ViewObject;
public class PFCPerinfoNavigationBarCO extends PerinfoNavigationBarCO
{
public PFCPerinfoNavigationBarCO()
{
}
public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
{
super.processRequest(
OAApplicationModule rootAM=(OAApplicationModule)
String rootam= rootAM.getDefFullName();
oapagecontext.
OAApplicationModule contactsMainAM=(
if(contactsMainAM!=null)
{
String contactAM=contactsMainAM.
oapagecontext.
}
OAStackLayoutBean slb=(OAStackLayoutBean)
if(slb !=null)
{
String slbName=slb.getDataObjectName(
oapagecontext.
oapagecontext.
}
OAApplicationModule contactNameAM=(
if(contactNameAM!=null)
{
String contact1AM=contactNameAM.
oapagecontext.
}
}
// oapagecontext.
// OASubmitButtonBean oasubmitbuttonbean1 = (OASubmitButtonBean)oawebbean.
// FireAction firePartialAction = new FirePartialAction("
// oasubmitbuttonbean1.
}
// public void processFormRequest(
// {
// if(oapagecontext.getParameter(
// {
// OAApplicationModule rootAM=(OAApplicationModule)
// String rootam= rootAM.getDefFullName();
// oapagecontext.
// super.processFormRequest(
//// OAStackLayoutBean slb=(OAStackLayoutBean)
// OAApplicationModule ContactsMainAM=(
//
//
//// OAViewObject ContactsMainVO=(OAViewObject)
//// Row birthDayDateRow =ContactsMainVO.getCurrentRow(
//
//// String birthDate= birthDayDateRow.getAttribute("
//
//// oapagecontext.
//// Date BirthDayDate=oapagecontext.
//// oapagecontext.
//// String kin=birthDayDateRow.
//// oapagecontext.
////
////
//// if(kin.equalsIgnoreCase("yes")
//// {
////
//// String Query= "SELECT trunc(sysdate) - to_date(:1)\n" +
//// " FROM dual";
//// ViewObject QueryVO = (ViewObject)rootAM.
//// QueryVO.setWhereClauseParam(0,
//// Row QueryRow = QueryVO.first();
//// String QueryValue =(String)(QueryRow.
//// QueryVO.remove();
//// oapagecontext.
//// int DateOfBirth=Integer.parseInt("
////
//// //days in 18 years is 6574
//// if(DateOfBirth <6574)
//// {
//// throw new OAException("For Next Of Kin The Age Should Be Must Greater Then 18Yrs",OAException.ERROR);
//// }
////
////
////
//// }
// }
//
//}
No comments:
Post a Comment