Skip to content

Commit

Permalink
US Assigner GMP Revs/Appr.-- bugs fixed...
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsav815 committed Oct 19, 2023
1 parent d478bc1 commit b652866
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
28 changes: 24 additions & 4 deletions programs/us_esigner_gmp/us_esigner_gmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ void US_eSignaturesGMP::get_gappr_data( QListWidgetItem* item )

void US_eSignaturesGMP::set_greviewer()
{

qDebug() << "Set gRev: INIT -- ";
QString entry = lw_inv_list->currentItem()->text();
qDebug() << "Set gRev: -- " << entry;

Expand Down Expand Up @@ -1299,8 +1299,10 @@ void US_eSignaturesGMP::set_greviewer()
init_gapprs();

if ( !assign_revs_sep )
setUnset_AddRemove_RevAppr_bttn( "Reviewer" );

setUnset_AddRemove_RevAppr_bttn( "Reviewer" );

//Disable all action buttons:
disableSetUnsetGButtons();
}

void US_eSignaturesGMP::unset_greviewer()
Expand Down Expand Up @@ -1352,6 +1354,9 @@ void US_eSignaturesGMP::unset_greviewer()
for(int i=0; i<investigators.size(); ++i )
qDebug() << "inv after unsetting -- " << investigators[i].lastName;

//Disable all action buttons:
disableSetUnsetGButtons();

}


Expand Down Expand Up @@ -1399,7 +1404,10 @@ void US_eSignaturesGMP::set_gappr()
init_gapprs();

if ( !assign_revs_sep )
setUnset_AddRemove_RevAppr_bttn( "Approver" );
setUnset_AddRemove_RevAppr_bttn( "Approver" );

//Disable all action buttons:
disableSetUnsetGButtons();
}

void US_eSignaturesGMP::unset_gappr()
Expand Down Expand Up @@ -1451,6 +1459,9 @@ void US_eSignaturesGMP::unset_gappr()
for(int i=0; i<investigators.size(); ++i )
qDebug() << "inv after unsetting -- " << investigators[i].lastName;

//Disable all action buttons:
disableSetUnsetGButtons();

}


Expand Down Expand Up @@ -1882,6 +1893,15 @@ QMap< QString, QString> US_eSignaturesGMP::read_autoflowGMPReportEsign_record( Q
return eSign_record;
}

//Disable all action buttons:
void US_eSignaturesGMP::disableSetUnsetGButtons( void )
{
pb_set_global_rev -> setEnabled( false );
pb_set_global_appr -> setEnabled( false );
pb_unset_global_rev -> setEnabled( false );
pb_unset_global_appr -> setEnabled( false );
}

//Set/Unset Add/Remove Rev/Appr bttn.
void US_eSignaturesGMP::setUnset_AddRemove_RevAppr_bttn( QString p_type )
{
Expand Down
1 change: 1 addition & 0 deletions programs/us_esigner_gmp/us_esigner_gmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ class US_eSignaturesGMP : public US_Widgets
void addApprtoList( void );
void removeApprfromList( void );
bool is_eSignProcessBegan( void );
void disableSetUnsetGButtons( void );
void setUnsetPb_operRev( void );
void setUnset_AddRemove_RevAppr_bttn( QString );
QString compose_updated_admin_logJson( int, QString, QString );
Expand Down

0 comments on commit b652866

Please sign in to comment.