protected void Button2_Click2(object sender, EventArgs e) { Find_Date(); if (TextBox129.Text == "0" && TextBox128.Text == "1") { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert(' Δεν έχει ορισθεί Ισοτιμία για τον μήνα');", true); } else { TextBox12.Text = DateTime.Parse(TextBox8.Text).Year.ToString(); TextBox11.Text = DateTime.Parse(TextBox8.Text).Month.ToString(); xrisi(); if (DropDownList1.Text.Length == 0 || DropDownList2.SelectedValue == "0" || TextBox9.Text.Length == 0 || (DropDownList1.SelectedValue == "6" && DropDownList18.SelectedValue == "0") || (DropDownList1.SelectedValue == "8" && DropDownList18.SelectedValue == "0")) { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Δεν έχει συμπληρωθεί το Είδος Πράξης ή η Κατηγορία ή η Περιγραφή !!!!');", true); } else { if (GridView1.Rows.Count > 0) { TextBox121.Text = GridView1.Rows[0].Cells[0].Text; if (TextBox128.Text == "1") { TextBox130.Text = GridView6.Rows[0].Cells[0].Text; } } if (Convert.ToDateTime(TextBox8.Text) < Convert.ToDateTime(TextBox133.Text)) { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert(' Λανθασμένη Ημερομηνία, υπάρχει μεταγενέστερη εγγραφή : " + TextBox133.Text + " ');", true); } else { Visa_kinisi_NoShow.Insert(); Response.Redirect("Kinisis_Pass_Visa.aspx"); } } } }
protected void Button2_Click2(object sender, EventArgs e) { TextBox134.Text = DropDownList18.SelectedIndex.ToString(); Find_Date(); TextBox12.Text = DateTime.Parse(TextBox8.Text).Year.ToString(); TextBox11.Text = DateTime.Parse(TextBox8.Text).Month.ToString(); xrisi(); if (DropDownList1.Text.Length == 0 || (DropDownList1.SelectedValue == "8" && DropDownList18.SelectedValue == "0")) { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Δεν έχει συμπληρωθεί το Είδος Πράξης ή η Κατηγορία ή η Περιγραφή !!!!');", true); } else { if (Convert.ToDateTime(TextBox8.Text) < Convert.ToDateTime(TextBox133.Text)) { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert(' Λανθασμένη Ημερομηνία, υπάρχει μεταγενέστερη εγγραφή : " + TextBox133.Text + " ');", true); } else { Visa_kinisi_NoShow.Insert(); if (TextBox139.Text == "101") { Session["Visa_Ait_K"] = "0"; Session["Visa_ID_K"] = "0"; Response.Redirect("Kinisis_kiosk.aspx"); } else { Response.Redirect("Visa_Print_Kiosk.aspx"); } } } }