protected void lnkBtnPaidSupplierCheques_Click(object sender, EventArgs e)
 {
     PanelPaidSupplierCheques.Visible               = true;
     PanelUnPaidSupplierCheques.Visible             = false;
     PanelUpcomingPayableSupplierCheques.Visible    = false;
     lnkBtnUpcomingPayableSupplierCheques.ForeColor = System.Drawing.Color.Black;
     lnkBtnPaidSupplierCheques.ForeColor            = System.Drawing.Color.White;
     lnkBtnUnpaidSupplierCheques.ForeColor          = System.Drawing.Color.Black;
     GridViewPaidSupplierCheques.DataBind();
     GridViewPaidSupplierCheques.PageIndex = 0;
 }
        protected void ImageButtonConfirmEdit_Click(object sender, ImageClickEventArgs e)
        {
            int            row_index       = ((GridViewRow)((ImageButton)sender).NamingContainer).RowIndex;
            GridView       SupplierCheques = (GridView)((GridViewRow)((ImageButton)sender).NamingContainer).NamingContainer;
            SupplierCheque SupplierCheque  = new SupplierCheque();
            int            Id = (int)GridViewUnPaidSupplierCheques.DataKeys[row_index].Value;

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