Exemplo n.º 1
0
 protected void lnkBtnUnpaidCientCheques_Click(object sender, EventArgs e)
 {
     PanelUnPaidCientCheques.Visible             = true;
     PanelPaidCientCheques.Visible               = false;
     PanelUpcomingPayableClientCheques.Visible   = false;
     lnkBtnUpcomingPayableCientCheques.ForeColor = System.Drawing.Color.Black;
     lnkBtnPaidCientCheques.ForeColor            = System.Drawing.Color.Black;
     lnkBtnUnpaidCientCheques.ForeColor          = System.Drawing.Color.White;
     GridViewUnPaidCientCheques.DataBind();
     GridViewUnPaidCientCheques.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();
            }
        }