Exemplo n.º 1
0
 protected void lnkBtnUpcomingPayableCientCheques_Click(object sender, EventArgs e)
 {
     PanelPaidCientCheques.Visible               = false;
     PanelUnPaidCientCheques.Visible             = false;
     PanelUpcomingPayableClientCheques.Visible   = true;
     lnkBtnPaidCientCheques.ForeColor            = System.Drawing.Color.Black;
     lnkBtnUnpaidCientCheques.ForeColor          = System.Drawing.Color.Black;
     lnkBtnUpcomingPayableCientCheques.ForeColor = System.Drawing.Color.White;
     GridViewUpcomingPayableClientCheques.DataBind();
     GridViewUpcomingPayableClientCheques.PageIndex = 0;
 }
Exemplo n.º 2
0
        protected void ImageButtonConfirmEdit_Click(object sender, ImageClickEventArgs e)
        {
            int          row_index     = ((GridViewRow)((ImageButton)sender).NamingContainer).RowIndex;
            GridView     ClientCheques = (GridView)((GridViewRow)((ImageButton)sender).NamingContainer).NamingContainer;
            ClientCheque clientCheque  = new ClientCheque();
            int          Id            = (int)GridViewUnPaidCientCheques.DataKeys[row_index].Value;

            if (!clientCheque.Update_UnPaidClientCheques_By_Id(Id))
            {
                lblFinishMsg.Text      = "هناك مشكلة في التحديث برجاء اعادة المحاولة";
                lblFinishMsg.ForeColor = System.Drawing.Color.Red;
            }
            else
            {
                lblFinishMsg.Text      = "تم بنجاح";
                lblFinishMsg.ForeColor = System.Drawing.Color.Green;
                GridViewPaidCientCheques.DataBind();
                GridViewUnPaidCientCheques.DataBind();
                GridViewUpcomingPayableClientCheques.DataBind();
            }
        }