protected void OnClientChangeReaction( object sender, ChangeReactionEventArgs e )
 {
     if( SiteContext.Current.User.Role != SecurityRole.Client )
         throw new HttpException( (int)HttpStatusCode.Forbidden, "Access denied" );
     OrderBO.ApplyStatusChangeClientReaction( e.OrderLineId, e.Reaction, DateTime.Now );
     _listView.DataBind();
 }
        protected void OnClientChangeReaction( object sender, ChangeReactionEventArgs e )
        {
            if( SiteContext.Current.User.Role != SecurityRole.Client )
                throw new HttpException((int)HttpStatusCode.Forbidden, "Access denied" );

            try
            {
                OrderBO.ApplyStatusChangeClientReaction( e.OrderLineId, e.Reaction, DateTime.Now );
                _dataPager.SetPageProperties( _dataPager.StartRowIndex, _dataPager.PageSize, true );
            }

            catch( Exception )
            {
                //TODO: отображение сообщения об ошибке
                throw;
            }
        }
 protected void OnClientChangeReaction( object sender, ChangeReactionEventArgs e )
 {
     if( ChangeReaction != null )
         ChangeReaction( sender, e );
 }
Ejemplo n.º 4
0
 protected virtual void OnChangeReaction( ChangeReactionEventArgs args )
 {
     if( ChangeReaction != null )
         ChangeReaction( this, args );
 }