Package com.centraview.activity.helper

Examples of com.centraview.activity.helper.ActivityVO


        String detailtitle = requestForm.getTitle();
        String detaildetail = requestForm.getDescription();

        // call to getting activity details
        ActivityVO vo = null;
        activitytype = syncfacade.getActivityType(activityid);
        vo = syncfacade.getActivity(activityid, individualID);

        ActivityGenericFillVOX agf = new ActivityGenericFillVOX();
        activityForm.setLocale(request.getLocale());
View Full Code Here


      }

      OpportunityForm opportunityForm = (OpportunityForm) form;

      OpportunityVO opportunityVO = new OpportunityVO();
      ActivityVO activityVO = new ActivityVO();
      activityVO.setStatus(Integer.parseInt(opportunityForm.getStatusid()));
      activityVO.setTitle(opportunityForm.getTitle());
      activityVO.setActivityDetails(opportunityForm.getDescription());

      int ownerId = ((UserObject) session.getAttribute("userobject")).getIndividualID();

      activityVO.setCreatedBy(ownerId);
      activityVO.setOwner(ownerId);
      activityVO.setActivityID(Integer.parseInt(opportunityForm.getActivityid()));
      opportunityVO.setActivityVO(activityVO);
      opportunityVO.setTitle(opportunityForm.getTitle());
      opportunityVO.setDescription(opportunityForm.getDescription());
      opportunityVO.setEntityID(Integer.parseInt(opportunityForm.getEntityid()));
      opportunityVO.setIndividualID(Integer.parseInt(opportunityForm.getIndividualid()));
View Full Code Here

      remote.setDataSource(dataSource);

      OpportunityForm opportunityForm = (OpportunityForm)form;
      OpportunityVO opportunityVO = new OpportunityVO();

      ActivityVO activityVO = new ActivityVO();
      activityVO.setStatus(Integer.parseInt(opportunityForm.getStatusid()));
      activityVO.setTitle(opportunityForm.getTitle());
      activityVO.setActivityDetails(opportunityForm.getDescription());
      activityVO.setCreatedBy(ownerId);
      activityVO.setOwner(ownerId);

      opportunityVO.setActivityVO(activityVO);
      opportunityVO.setTitle(opportunityForm.getTitle());
      opportunityVO.setDescription(opportunityForm.getDescription());
View Full Code Here

     
      oForm.setCreatedbyname(oVO.getCreatedbyname());
      oForm.setModifiedbyname(oVO.getModifiedbyname());
      oForm.setActivityid(String.valueOf(oVO.getActivityID()));
     
      ActivityVO activityVO = oVO.getActivityVO();

      form = (ActionForm) oForm;

      request.setAttribute(SaleConstantKeys.CURRENTTAB, SaleConstantKeys.DETAIL);
      request.setAttribute(SaleConstantKeys.TYPEOFOPERATION, SaleConstantKeys.EDIT);
View Full Code Here

    try {

      InitialContext ic = CVUtility.getInitialContext();

      ActivityVO aVO = oVO.getActivityVO();
      cvdal.setSql("sale.opportunity.addactivity");

      cvdal.setInt(1, ActivityVO.AT_FORCASTED_SALES);
      cvdal.setString(2, aVO.getTitle());
      cvdal.setTimestamp(3, oVO.getEstimatedClose());
      cvdal.setString(4, aVO.getActivityDetails());
      cvdal.setInt(5, aVO.getOwner());
      cvdal.setInt(6, aVO.getOwner());
      cvdal.setInt(7, aVO.getOwner());
      // cvdal.setInt(8,2);

      cvdal.executeUpdate();

      int activityID = cvdal.getAutoGeneratedKey();
View Full Code Here

        ModuleFieldRightMatrix.UPDATE_RIGHT, this.dataSource))
      throw new AuthorizationFailedException("Opportunities - updateOpportunity");

    CVDal cvdal = new CVDal(dataSource);
    try {
      ActivityVO aVO = oVO.getActivityVO();
      float totalAmount = (float)0.0;
      OpportunityVO oppDBVO = new OpportunityVO();
      oppDBVO = getOpportunity(userId, oVO.getOpportunityID());
      oVO = (OpportunityVO)CVUtility.replaceVO(oppDBVO, oVO, "Opportunities", userId,
          this.dataSource);

      // Update the Activity
      cvdal.setSql("sale.opportunity.updateactivity");
      cvdal.setInt(1, ActivityVO.AT_FORCASTED_SALES);
      cvdal.setInt(2, oVO.getStatusID());
      cvdal.setString(3, aVO.getTitle());
      cvdal.setTimestamp(4, oVO.getEstimatedClose());
      cvdal.setTimestamp(5, oVO.getActualclose());
      cvdal.setString(6, aVO.getActivityDetails());
      cvdal.setInt(7, aVO.getOwner());
      cvdal.setInt(8, aVO.getActivityID());
      cvdal.executeUpdate();
      cvdal.setSqlQueryToNull();

      // Update the Opportunity
      cvdal.setSql("sale.opportunity.updateopportunity");
View Full Code Here

      InitialContext ic = CVUtility.getInitialContext();
      ActivityHelperLocalHome home = (ActivityHelperLocalHome)ic.lookup("local/ActivityHelper");
      ActivityHelperLocal remote = (ActivityHelperLocal) home.create();
      remote.setDataSource(dataSource);

      ActivityVO actVo = new ActivityVO();
      actVo.setEntityID(entityid);
      actVo.setIndividualID(individualid);
      actVo.setActivityType(4);
      actVo.setOwner(ownerid);
      actVo.setTitle(strTitle);
      actVo.setActivityDetails(strDetail);
      actVo.setActivityDetails(strDetail);
      actVo.setActivityDueDate(duebydate);
      actVo.setStatus(statusid);
      actVo.setVisibility("PUBLIC");
      int activityid = remote.addActivity(actVo,ownerid);

      cvdal.setSqlQuery("INSERT INTO literaturerequest VALUES(?,?,?)");
      cvdal.setInt(1,activityid);
      cvdal.setInt(2,assignedtoid);
View Full Code Here

    {
      InitialContext ic = CVUtility.getInitialContext();
      ActivityHelperLocalHome home = (ActivityHelperLocalHome)ic.lookup("local/ActivityHelper");
      ActivityHelperLocal remote = (ActivityHelperLocal) home.create();
      remote.setDataSource(dataSource);
      ActivityVO actVo = new ActivityVO();
      actVo = remote.getActivity(activityID,individualID);

      literatureDetails.setDuebydate(actVo.getActivityDueDate());
      if(actVo.getEntityID() != 0){
        literatureDetails.setEntityid(actVo.getEntityID());
        literatureDetails.setEntityname(actVo.getEntityName());
      }
      if(actVo.getIndividualID() != 0){
        literatureDetails.setIndividualid(actVo.getIndividualID());
        literatureDetails.setIndividualname(actVo.getIndividualName());
      }
      if(actVo.getTitle() != null){
        literatureDetails.setDetail(actVo.getTitle());
      }
      if(actVo.getActivityDetails() != null){
        literatureDetails.setTitle(actVo.getActivityDetails());
      }

      literatureDetails.setStatusid(actVo.getStatus());

      String selectQuery = " SELECT lr.deliverymethod deliveryMethod,   " +
        " lr.requestedby requestedBy, concat(req.firstname, ' ' , req.lastname) requestedByName   " +
        " FROM literaturerequest lr " +
        " LEFT OUTER JOIN individual req ON (lr.requestedby = req.individualid) " +
View Full Code Here

      InitialContext ic = CVUtility.getInitialContext();
      ActivityHelperLocalHome home = (ActivityHelperLocalHome)ic.lookup("local/ActivityHelper");
      ActivityHelperLocal remote = (ActivityHelperLocal) home.create();
      remote.setDataSource(dataSource);

      ActivityVO actVo = new ActivityVO();
      actVo.setActivityID(activityid);
      actVo.setEntityID(entityid);
      actVo.setIndividualID(individualid);
      actVo.setActivityType(4);
      actVo.setTitle(strTitle);
      actVo.setActivityDetails(strDetail);
      actVo.setActivityDueDate(duebydate);
      actVo.setStatus(statusid);

      remote.updateActivity(actVo,ownerid);

      cvdal.setSqlQuery("DELETE FROM literaturerequestlink WHERE ActivityID = ? ");
      cvdal.setInt(1 , activityid );
View Full Code Here

    if (!CVUtility.canPerformRecordOperation(userid, "Activities", activityId,
        ModuleFieldRightMatrix.VIEW_RIGHT, this.dataSource)) {
      throw new AuthorizationFailedException("Activity - getActivity");
    }

    ActivityVO av = null;
    try {
      InitialContext ic = CVUtility.getInitialContext();
      ActivityHelperLocalHome home = (ActivityHelperLocalHome)ic.lookup("local/ActivityHelper");
      ActivityHelperLocal remote = home.create();
      remote.setDataSource(dataSource);
View Full Code Here

TOP

Related Classes of com.centraview.activity.helper.ActivityVO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.