Exemplo n.º 1
0
        protected void TotalOplitis_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName == "Select")
            {
                BLayer myBlayer = new BLayer();
                int    row      = Convert.ToInt32(e.CommandArgument);
                int    id       = Convert.ToInt32(TotalOplitis.DataKeys[row].Values["op_id"].ToString());
                otherOplitis.id           = id;
                aa.Text                   = id.ToString();
                lastPaymentsPanel.Visible = true;

                SqlDataReader myDtr = myBlayer.get_last_payment(otherOplitis);
                LastPayments.DataSource = myDtr;
                LastPayments.DataBind();

                SqlDataReader myDtr1 = myBlayer.get_last_updated_oplitis_dik(otherOplitis);
                BulletedListDik.DataSource = myDtr1;
                BulletedListDik.DataBind();

                Katigoria myKatigoria = new Katigoria();
                myKatigoria       = myBlayer.get_Katigoria_By_Id(otherOplitis);
                katigoria.Text    = myKatigoria.katPerigrafi.ToString();
                katalogisteo.Text = myKatigoria.katKatalogisteo.ToString();
                kratiseis.Text    = myKatigoria.katKratiseis.ToString();
                pliroteo.Text     = myKatigoria.katPliroteo.ToString();
                dp.Text           = myKatigoria.katDPasxa.ToString();
                dx.Text           = myKatigoria.katDXmas.ToString();

                RadioButtonListMisthodType.Enabled = true;
                posoPliromis.Enabled = true;
                RadioButtonListMisthodType.SelectedIndex = -1;
                posoPliromis.Text       = string.Empty;
                currentKatigoria.Text   = string.Empty;
                oldKatigoria.Text       = string.Empty;
                isxysKatigorias.Text    = string.Empty;
                metaboliDate.Text       = string.Empty;
                anadromika.Text         = string.Empty;
                PanelAnadromika.Visible = false;
                anaforaPliromis.Visible = false;


                panelApousias.Visible          = false;
                panelAllagiKatigorias.Visible  = false;
                logosAnadromikon.SelectedIndex = -1;
                lastPliromiDate.Text           = string.Empty;
                currentDate.Text = string.Empty;
            }
        }
Exemplo n.º 2
0
        protected void deletedOplitis_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName == "Select")
            {
                BLayer  myBlayer  = new BLayer();
                Oplitis myOplitis = new Oplitis();
                int     row       = Convert.ToInt32(e.CommandArgument);
                int     id        = Convert.ToInt32(deletedOplitis.DataKeys[row].Values["do_id"].ToString());
                lastDeletedPaymentsPanel.Visible = true;
                myOplitis.id = id;

                SqlDataReader myDtr = myBlayer.get_pliromi_diagrammenou_opliti_by_id_opliti(myOplitis);
                LastPayments.DataSource = myDtr;
                LastPayments.DataBind();
            }
        }