protected void Button2_Click(object sender, EventArgs e) { TextBox19.Text = DateTime.Parse(TextBox11.Text).AddDays(-1).ToString("dd/MM/yyyy"); TextBox13.Text = TextBox13.Text.ToUpper(); if (TextBox9.Text.Length == 0 || TextBox9.Text.Length == 0) { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('ΥΠΟΛΟΓΟΣ -- Δεν έχει συμπληρωθεί το πεδίο Επώνυμο !!!!');", true); } else if (TextBox10.Text.Length == 0 || TextBox10.Text.Length == 0) { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('ΥΠΟΛΟΓΟΣ -- Δεν έχει συμπληρωθεί το Πεδίο Όνομα !!!!');", true); } else if (DropDownList1.Text.Length == 0 || DropDownList1.Text.Length == 0) { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Υπόλογος -- Δεν έχει συμπληρωθεί o Βαθμός !!!!');", true); } else if (TextBox13.Text.Length == 0 || TextBox13.Text.Length == 0) { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('ΥΠΟΛΟΓΟΣ -- Δεν έχει συμπληρωθεί το πεδίο ΑΦΜ !!!!');", true); } else if (TextBox14.Text.Length == 0 || TextBox14.Text.Length == 0) { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('ΥΠΟΛΟΓΟΣ -- Δεν έχει συμπληρωθεί το πεδίο ΔΟΥ !!!!');", true); } else { UpdateDate_To.Update(); Ypologi.Insert(); TextBox9.Text = ""; TextBox10.Text = ""; TextBox13.Text = ""; TextBox14.Text = ""; TextBox38.Text = ""; DropDownList1.SelectedIndex = 0; } SQL_ypologi.DataBind(); DropDownList5.DataBind(); }
protected void Button3_Click(object sender, EventArgs e) { SQL_ypologi.Update(); bt_Close_ONOFF.Text = "1"; Button4.Enabled = true; }
protected void GridView2_RowDeleted(object sender, GridViewDeletedEventArgs e) { SQL_ypologi.DataBind(); DropDownList5.DataBind(); }
protected void Button3_Click(object sender, EventArgs e) { SQL_ypologi.Update(); SQL_ypologi.DataBind(); SQL_Xrisi.DataBind(); }