protected void Button4_Click(object sender, EventArgs e)
        {
            int Etos_Y = DateTime.Parse(TextBox151.Text).Year;

            TextBox154.Text = FINANCIAL_MANAGEMENT.App_Code.xrisi.XrisiTR(Etos_Y).ToString();
            TextBox155.Text = "1"; // 0 Kane tipota, 1 Gia epistrofi Xrimaton, 2 gia epistrofi me Nea eggrafi 3, ..
            TextBox153.Text = "3"; // Status 3  Pliromi - 0 Check in
            if (DropDownList1.SelectedValue == "0")
            {
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(),
                                                        "alertMessage",
                                                        "alert('Δεν έχει επιλεγεί Αίτηση !!!!');", true);
            }
            else
            {
                Passport_Satet.Insert();



                ScriptManager.RegisterClientScriptBlock(this, this.GetType(),
                                                        "alertMessage",
                                                        "alert('Επιτυχής Ενημέρωση του Ταμίου για την επιστροφή!');", true);

                //  Response.Redirect("Pass_Paradosi.aspx");
                DropDownList1.SelectedValue = "0";
            }
        }
示例#2
0
 protected void Button112_Click(object sender, EventArgs e)
 {
     Passport_Satet.DataBind();
     Passport_Satet_Edit_data.DataBind();
     DropDownList6.SelectedValue = "0";
     DropDownList1.SelectedValue = "0";
     TextBox8.Text = "";
     DropDownList6_SelectedIndexChanged(null, null);
     Pass_kinisi.DataBind();
     DropDownList1.DataBind();
     GridView3.DataBind();
     ModalPopupExtender2.Hide();
 }
示例#3
0
        protected void Button4_Click(object sender, EventArgs e)
        {
            if (DropDownList1.SelectedValue == "0")
            {
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(),
                                                        "alertMessage",
                                                        "alert('Δεν έχει επιλεγεί Αίτηση !!!!');", true);
            }
            else
            {
                int Etos_Y = DateTime.Parse(TextBox9.Text).Year;
                TextBox154.Text = FINANCIAL_MANAGEMENT.App_Code.xrisi.XrisiTR(Etos_Y).ToString();
                TextBox155.Text = "2";  // 0 Kane tipota, 1 Gia epistrofi Xrimaton, 2 gia epistrofi me Nea eggrafi 3, ..
                TextBox153.Text = "2";  // Status 3  Pliromi - 0 Check in
                Passport_Satet.Insert();
                Response.Redirect("Pass_Pol_reply_K.aspx");

                ScriptManager.RegisterClientScriptBlock(this, this.GetType(),
                                                        "alertMessage",
                                                        "alert('Επιτυχή Δημιουργία Νέου Ραντεβού!');", true);
            }
        }
 protected void DropDownList3_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (DropDownList3.SelectedValue == "0")
     {
         Label1.Text     = "Ημ. Παράδοσης";
         Button1.Visible = true;
         Button4.Visible = false;
         Button5.Visible = false;
     }
     else
     {
         Label1.Text     = "Ημ. Επιστροφής Χρημάτων";
         Button1.Visible = false;
         Button4.Visible = true;
         Button5.Visible = true;
     }
     Pass_kinisi.DataBind();
     GridView3.DataBind();
     Passport_Satet.DataBind();
     DropDownList1.Items.Clear();
     DropDownList1.Items.Add(new ListItem("Επιλογή", "0"));
     DropDownList1.DataBind();
 }