コード例 #1
0
        protected void Button111_Click(object sender, EventArgs e)
        {
            TextBox9.Text = DropDownList10.SelectedValue;
            Ypologos.DataBind();

            ModalPopupExtender3.Hide();
        }
コード例 #2
0
        protected void Button3_Click(object sender, EventArgs e)
        {
            if (TextBox27.Text == "0")
            {
                Eggrafo.Insert();
                TextBox30.Text = DropDownList3.SelectedValue;
                Aitima_Dnsi.Insert();
                TextBox30.Text = DropDownList4.SelectedValue;
                Aitima_Dnsi.Insert();
                TextBox30.Text = DropDownList5.SelectedValue;
                Aitima_Dnsi.Insert();
                TextBox30.Text = DropDownList12.SelectedValue;
                Aitima_Dnsi.Insert();
            }
            else
            {
                Eggrafo.Update();
                Aitima_Dnsi.Delete();
                TextBox30.Text = DropDownList3.SelectedValue;
                Aitima_Dnsi.Insert();
                TextBox30.Text = DropDownList4.SelectedValue;
                Aitima_Dnsi.Insert();
                TextBox30.Text = DropDownList5.SelectedValue;
                Aitima_Dnsi.Insert();
                TextBox30.Text = DropDownList12.SelectedValue;
                Aitima_Dnsi.Insert();
            }

            Ypologos.DataBind();
        }
コード例 #3
0
 protected void DropDownList11_SelectedIndexChanged(object sender, EventArgs e)
 {
     TextBox28.Text = DropDownList11.SelectedValue;
     Ypologos.DataBind();
     Old_Eggrafa.DataBind();
     DropDownList10.Items.Clear();
     DropDownList10.DataBind();
     DropDownList10.Items.Insert(0, new ListItem("Επιλογή...", String.Empty));
     DropDownList10.SelectedIndex = 0;
 }
コード例 #4
0
        protected void Button110_Click(object sender, EventArgs e)
        {
            // Neo aitima

            TextBox9.Text = DropDownList10.SelectedValue;
            Ypologos.DataBind();
            ModalPopupExtender3.Hide();
            Old_Eggrafa.DataBind();

            TextBox27.Text = "0";
        }
コード例 #5
0
 protected void DropDownList10_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (TextBox27.Text != "0")
     {
         ModalPopupExtender3.Show();
     }
     else
     {
         TextBox9.Text = DropDownList10.SelectedValue;
         Ypologos.DataBind();
     }
 }
コード例 #6
0
 protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
 {
     DropDownList4.Items.Clear();
     Code_Leitour.DataBind();
     DropDownList4.Items.Add(new ListItem(" Επιλογή Kωδικού ...", "0"));
     DropDownList4.DataBind();
     Leitourgika_Search.DataBind();
     GridView2.DataBind();
     Check_Leit.DataBind();
     Check_Leit_LC.DataBind();
     GridView3.DataBind();
     GridView4.DataBind();
     Ypologos.DataBind();
     GridView5.DataBind();
 }
コード例 #7
0
        protected void Button1_Click(object sender, EventArgs e)
        {
//    if (CheckBox2.Checked)
//    {

            TextBox13.Text = DropDownList6.SelectedValue;
//            }
//            else
//           {

//                TextBox13.Text = null;
//            }



            if (DropDownList4.SelectedValue == "0" || TextBox2.Text.Length == 0 || TextBox14.Text.Length == 0 || TextBox15.Text.Length == 0 || TextBox3.Text.Length == 0 || (TextBox5.Text.Length == 0 && TextBox27.Text == "0") || (TextBox26.Text.Length == 0 && TextBox27.Text == "1" && TextBox5.Text.Length == 0))
            {
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(),
                                                        "alertMessage",
                                                        "alert('Δεν έχει συνπληρωθει το Έτος ή ο Κωδικός ή το Ποσό ή το Όνομα ή το Επώνυμο ή ο Βαθμός!!!!!!');", true);
            }
            else
            {
                TextBox6.Text = DateTime.Now.ToString();
                if (FINANCIAL_MANAGEMENT.App_Code.xrisi.Fetch_Isotimia() == 1 && (TextBox5.Text == "0" || TextBox5.Text.Length == 0))
                {
                    TextBox5.Text = (Convert.ToDecimal(TextBox26.Text) / Convert.ToDecimal(TextBox30.Text)).ToString();
                }
                if (FINANCIAL_MANAGEMENT.App_Code.xrisi.Fetch_Isotimia() == 1 && (TextBox26.Text == "0" || TextBox26.Text.Length == 0))
                {
                    TextBox26.Text = (Convert.ToDecimal(TextBox5.Text) * Convert.ToDecimal(TextBox30.Text)).ToString();
                }

                Leitourgika.Insert();
                Gr_leitourgikwn.Insert();



                TextBox4.Text    = "";
                TextBox5.Text    = "";
                TextBox26.Text   = "";
                TextBox7.Enabled = false;
                TextBox7.Text    = "0.00";
                DropDownList4.Items.Clear();
                Code_Leitour.DataBind();
                DropDownList4.Items.Insert(0, new ListItem("Επιλογή Κωδικού ...", "0"));
                DropDownList4.DataBind();
                Button1.Enabled = true;
                Leitourgika_Search.DataBind();
                GridView2.DataBind();


                if (GridView1.Rows.Count > 0)
                {
                    TextBox14.ReadOnly    = true;
                    TextBox15.ReadOnly    = true;
                    DropDownList7.Enabled = false;
                }
            }

            Check_Leit.DataBind();
            Check_Leit_LC.DataBind();
            GridView3.DataBind();
            GridView4.DataBind();
            Ypologos.DataBind();
            GridView5.DataBind();
        }