Package org.resmedicinae.application.healthcare.resdata.model

Examples of org.resmedicinae.application.healthcare.resdata.model.IModel


        }

        else if (action.equalsIgnoreCase("DoctorLogin")) {

            //check of the correkt login
            IModel myModelLogin  = getModel( param, loginmodel_param );
            IModel myModelDoctor = getModel( param, doctormodel_param );

            myModelLogin.run( param );
            if ( myModelLogin.getModelstatus() == Model.DOCTOR_LOGIN_SUCCESSFULL ) {

                param.putAll( myModelLogin.getModelData() );
                myModelDoctor.run( param );
                page = "ResDataDoctor.jsp";
            }

            else if ( myModelLogin.getModelstatus() == Model.DOCTOR_LOGIN_UNSUCCESSFULL ) {

                //Errorpage for incorrekt Login
                page = "ResDataLoginDoctorIncorrect.jsp";
            }

            else if ( myModelLogin.getModelstatus() == Model.DOCTOR_LOGIN_REQUIRED ) {

                //Loginpage for Doctor
                page = "ResDataLoginDoctor.jsp";
            }

            else {

                //no useful modelstatus
                page = "no_modelstatus.jsp";
            }
        }

        else if (action.equalsIgnoreCase("AdminLogin")) {

            //check of the correkt login
            IModel myModelLogin  = getModel( param, loginmodel_param );
            IModel myModelDoctor = getModel( param, doctormodel_param );
            IModel myModelDate   = getModel( param, datemodel_param );

            myModelLogin.run( param );
            if ( myModelLogin.getModelstatus() == Model.ADMIN_LOGIN_SUCCESSFULL ) {

        myModelDate.run(param);

                param.putAll( myModelLogin.getModelData() );
                myModelDoctor.run( param );
                page = "ResDataAdmin.jsp";
            }

            else if ( myModelLogin.getModelstatus() == Model.ADMIN_LOGIN_UNSUCCESSFULL ) {

                page = "ResDataLoginAdminIncorrect.jsp";
            }

            else if ( myModelLogin.getModelstatus() == Model.ADMIN_LOGIN_REQUIRED ) {

                page = "ResDataLoginAdmin.jsp";
            }

            else {

                //no useful modelstatus
                page = "no_modelstatus.jsp";
            }
        }

        else if (action.equalsIgnoreCase("DoctorSave")) {

            //check of the correkt login
            IModel myModel = getModel( param, doctormodel_param );

            myModel.run( param );

            if  (myModel.getModelstatus() == Model.DOCTOR_SAVE_SUCCESSFULL ) {

                page = "ResDataDoctorSaveOK.jsp";
            }

            else if  (myModel.getModelstatus() == Model.DOCTOR_SAVE_UNSUCCESSFULL ) {

                page = "ResDataDoctorSaveFailed.jsp";
            }

            else {

                //no useful modelstatus
                page = "no_modelstatus.jsp";
            }

        }

        else if (action.equalsIgnoreCase("AdminDoctorSave")) {

            //check of the correkt login
            IModel myModel = getModel( param, doctormodel_param );

            myModel.run( param );

            if  (myModel.getModelstatus() == Model.DOCTOR_SAVE_SUCCESSFULL ) {

                page = "ResDataAdminSaveOK.jsp";
            }

            else if  (myModel.getModelstatus() == Model.DOCTOR_SAVE_UNSUCCESSFULL ) {

                page = "ResDataAdminSaveFailed.jsp";
            }

            else if  (myModel.getModelstatus() == Model.DOCTOR_SAVE_PWD_NOT_CONFIRM ) {

                page = "ResDataAdminSaveFailed.jsp";
            }
            else {

                //no useful modelstatus
                page = "no_modelstatus.jsp";
            }

        }

        else if (action.equalsIgnoreCase("DoctorList")) {

            page = "ResDataDoctorList.jsp";
        }

        else if (action.equalsIgnoreCase("DoctorListAll")) {

            IModel myModelDate = getModel( param, datemodel_param );
           
            myModelDate.run( param );
     
            page = "ResDataDoctorList.jsp";
        }

        else if (action.equalsIgnoreCase("DoctorSearch")) {
         
            IModel myModel = getModel( param, datemodel_param );

            myModel.run( param );
           
            page = "ResDataDoctorList.jsp";
        }

        else if (action.equalsIgnoreCase("DoctorDateOverview")) {

            IModel myModelDoctor = getModel( param, doctormodel_param );

            myModelDoctor.run( param );

            IModel myModelDate = getModel( param, datemodel_param );

            myModelDate.run( param );

            page = "ResDataDate.jsp";
        }

        else if (action.equalsIgnoreCase("DoctorDatePred")) {

            IModel myModel = getModel( param, datemodel_param );

            myModel.run( param );

            page = "ResDataDate.jsp";
        }

        else if (action.equalsIgnoreCase("DoctorDateNext")) {

            IModel myModel = getModel( param, datemodel_param );

            myModel.run( param );

            page = "ResDataDate.jsp";
        }

        else if (action.equalsIgnoreCase("DoctorDateDesired")) {

            IModel myModel = getModel( param, datemodel_param );

            myModel.run( param );

            page = "ResDataDateDesired.jsp";
        }

        else if (action.equalsIgnoreCase("DoctorSendMailDesired")) {

            IModel myModel = getModel( param, mailmodel_param );

            myModel.run( param );

            if ( myModel.getModelstatus() == Model.MAIL_SEND_SUCCESSFULL ) {

                //the Mail was send successfull
                //now you must a index in the table
                myModel = getModel( param, datemodel_param );
                myModel.run( param );
   
                page = "ResDataDate.jsp";
            }
            else if ( myModel.getModelstatus() == Model.MAIL_SEND_UNSUCCESSFULL ) {
             
                page = "ResDataMailNoSend.jsp";
            }
            else {
               
                //
                page = "no_status.jsp";
            }

        }
/*
        else if (action.equalsIgnoreCase("DoctorSendMailConfirm")) {

            IModel myModel = getModel( param, mailmodel_param );

            myModel.run( param );

            if ( myModel.getModelstatus() == Model.MAIL_SEND_SUCCESSFULL ) {

                //the Mail was send successfull
                //now you must ein Index in the table
                myModel = getModel( param, datemodel_param );
                myModel.run( param );
            }

            page = "ResDataDateConfirmList.jsp";
        }
*/
        else if ( (action.equalsIgnoreCase("DoctorSendMailCancel")) ||
               (action.equalsIgnoreCase("DoctorSendMailConfirm")) ) {

            IModel myModel = getModel( param, mailmodel_param );

            myModel.run( param );

            if ( myModel.getModelstatus() == Model.MAIL_SEND_SUCCESSFULL ) {


              myModel = getModel( param, doctormodel_param );
 
              myModel.run( param );
 
              param.putAll( myModel.getModelData() );
 
              myModel = getModel( param, datemodel_param );
 
              myModel.run( param );
             
              if ( myModel.getModelstatus() == Model.DOCTOR_NO_CONFIRM_LIST ) {    
 
                  page = "ResDataDateNoConfirmList.jsp";
              }
              else {
                  page = "ResDataDateConfirmList.jsp";
              }
            }
            else if ( myModel.getModelstatus() == Model.MAIL_SEND_UNSUCCESSFULL ) {

              page = "ResDataMailNoSend.jsp";
            }
            else {
             
              page = "no_modelstatus.jsp";
            }
          
        }

        else if (action.equalsIgnoreCase("DoctorDateConfirmList")) {

            IModel myModel = getModel( param, doctormodel_param );

            myModel.run( param );

            param.putAll( myModel.getModelData() );

            myModel = getModel( param, datemodel_param );

            myModel.run( param );
           
            if ( myModel.getModelstatus() == Model.DOCTOR_NO_CONFIRM_LIST ) {    

                page = "ResDataDateNoConfirmList.jsp";
            }
            else {
                page = "ResDataDateConfirmList.jsp";
            }
        }

        else if (action.equalsIgnoreCase("DoctorDateConfirm")) {

            IModel myModel = getModel( param, datemodel_param );

            myModel.run( param );

            page = "ResDataDateConfirm.jsp";
        }

        else if (action.equalsIgnoreCase("DoctorDateCancel")) {

            IModel myModel = getModel( param, datemodel_param );

            myModel.run( param );

            page = "ResDataDateCancel.jsp";
        }

        else if (action.equalsIgnoreCase("DoctorDateDelete")) {

            IModel myModel = getModel( param, doctormodel_param );

            myModel.run( param );

            param.putAll( myModel.getModelData() );

            myModel = getModel( param, datemodel_param );

            myModel.run( param );

            if ( myModel.getModelstatus() == Model.DOCTOR_NO_CONFIRM_LIST ) {    

                page = "ResDataDateNoConfirmList.jsp";
            }
            else {
                page = "ResDataDateConfirmList.jsp";
            }
        }

        else if (action.equalsIgnoreCase("AdminNewDoc")) {

            IModel myModel = getModel( param, doctormodel_param );
           
            myModel.run( param );

            page = "ResDataAdminDoctor.jsp";
        }

        else if (action.equalsIgnoreCase("AdminEditDoc")) {

            IModel myModel = getModel( param, doctormodel_param );
           
            myModel.run( param );

            page = "ResDataAdminDoctor.jsp";
        }

        else if (action.equalsIgnoreCase("AdminDeleteDoc")) {

            IModel myModel = getModel( param, doctormodel_param );
           
            myModel.run( param );

            page = "ResDataAdmin.jsp";
        }
        else {

View Full Code Here


        param.put( "doc_id", doc_id );
        param.put( parentTimeIdFieldName, parentTimeId );
        param.put( parentDateIdFieldName, parentDateId );
        
        
             IModel dateModel = (IModel)pageContext.getSession().getAttribute( name );
          
             dateModel.run( param );
 
        param = dateModel.getModelData();
        String datecolor = (String)param.get( "datecolor" );
          
             out.print (datecolor);
       }
      
View Full Code Here

TOP

Related Classes of org.resmedicinae.application.healthcare.resdata.model.IModel

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.