protected void CheckBox2_CheckedChanged(object sender, EventArgs e)
 {
     TextBox2.Text = "";
     TextBox1.Text = "";
     DropDownList1.DataBind();
     DropDownList1.Items.Insert(0, new ListItem("Επιλογή Γραμματίου ...", String.Empty));
     DropDownList1.SelectedIndex = 0;
     Sinola_Gram.DataBind();
     GridView2.DataBind();
     DropDownList2.Items.Clear();
     DropDownList2.Items.Add(new ListItem(" Επιλογή Μηνός ...", "0"));
     Months.DataBind();
     DropDownList2.DataBind();
 }
Exemple #2
0
        protected void Button2_Click(object sender, EventArgs e)
        {
            if (DropDownList4.SelectedValue == "0" || DropDownList3.SelectedValue == "0" || DropDownList1.SelectedValue == "0" || DropDownList2.SelectedValue == "0" || TextBox1.Text.Length == 0 || TextBox5.Text.Length == 0)
            {
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(),
                                                        "alertMessage",
                                                        "alert('Δεν έχει επιλεγεί η Κατηγορία ή το Έτος ή το Γραμμάτιο Εισπρ. ή ο Μήνας Δαπάνης !!!!');", true);
            }
            else
            {
                if (GridView3.Rows.Count > 0)
                {
                    TextBox9.Text = GridView3.Rows[0].Cells[0].Text;
                }
                if (GridView6.Rows.Count > 0)
                {
                    TextBox14.Text = GridView6.Rows[0].Cells[0].Text;
                }
                Exoda_DS_LD.Insert();
                Sinola_Gram.DataBind();
                GridView2.DataBind();
                Label1.Text = " ";


                if (DropDownList4.SelectedValue == "1")
                {
                    Diax_Open_Close.Update();
                }
                else
                {
                    Leitourg_Dapanes.Update();
                    //    Leitourg_Dapanes.Delete();
                }

                Response.Redirect("MetaforaDS_LD.aspx");
            }
            Button2.Enabled = false;
            Button1.Enabled = false;
        }
 protected void GridView1_SelectedDelete(object sender, EventArgs e)
 {
     Sinola_Gram.DataBind();
     GridView2.DataBind();
 }
Exemple #4
0
 protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
 {
     Sinola_Gram.DataBind();
 }
Exemple #5
0
 protected void GridView1_SelectedIndexChanged2(object sender, EventArgs e)
 {
     Sinola_Gram.DataBind();
     GridView2.DataBind();
 }