}//END getClientDataObject Method //=================================================================================== /// <summary> /// This method generates the relevant page commands for the milestone record page. /// </summary> /// <param name="PageObject">Evado.Model.UniForm.Page object</param> //----------------------------------------------------------------------------------- private void getClientDataObject_PageCommands ( Evado.Model.UniForm.Page PageObject ) { this.LogMethod ( "getClientDataObject_PageCommands" ); // // Set the page access and commands based on the user role and the record state. // switch ( this.Session.AncillaryRecord.State ) { case EvFormObjectStates.Draft_Record: case EvFormObjectStates.Queried_Record: case EvFormObjectStates.Submitted_Record: { if ( this.Session.UserProfile.hasRecordEditAccess == true ) { PageObject.EditAccess = Evado.Model.UniForm.EditAccess.Enabled; // // Add the save groupCommand and add it to the groupCommand list. // Evado.Model.UniForm.Command saveCommand = PageObject.addCommand( this.createRecordSaveCommand ( this.Session.AncillaryRecord.Guid, EvLabels.Ancillary_Record_Save_Command_Title, EvAncillaryRecords.ACTION_SAVE ) ); /* // // Add the create groupCommand and add it to the groupCommand list. // Evado.Model.UniForm.Command submitRecord = PageObject.addCommand( this.createRecordSaveCommand ( this.SessionObjects.AncillaryRecord.Guid, EvLabels.Ancillary_Record_Submit_Command_Title, EvAncillaryRecords.ACTION_SIGNED ) ); */ } break; } default: { PageObject.EditAccess = Evado.Model.UniForm.EditAccess.Enabled; break; } }//END switch this.LogMethodEnd ( "getClientDataObject_PageCommands" ); }//END getClientDataObject_PageCommands method
}//END getDataObject_RegistrationPage Method // ============================================================================== /// <summary> /// This method adds the ResultData object page commands. /// </summary> /// <param name="Page"> Evado.Model.UniForm.Page object.</param> // ------------------------------------------------------------------------------ private void getDataObject_PageCommands ( Evado.Model.UniForm.Page Page ) { this.LogMethod ( "getDataObject_PageCommands" ); // // Initialise the methods variables and objects. // Evado.Model.UniForm.Command pageCommand = new Evado.Model.UniForm.Command ( ); // // Add the save groupCommand // pageCommand = Page.addCommand ( EdLabels.Demo_Registration_Save_Command_Title, EuAdapter.ADAPTER_ID, EuAdapterClasses.User_Registration.ToString ( ), Evado.Model.UniForm.ApplicationMethods.Custom_Method ); pageCommand.setCustomMethod ( Model.UniForm.ApplicationMethods.Get_Object ); pageCommand.SetPageId ( EdStaticPageIds.Demo_User_Exit_Page ); }//END getclientDataObject_Commands Method