protected void TextBox5_TextChanged(object sender, EventArgs e)
        {
            TextBox27.Text = DateTime.Parse(TextBox5.Text).Month.ToString();
            DropDownList2.Items.Clear();
            DropDownList2.Items.Insert(0, new ListItem(" Επιλογή Μηνός ...", String.Empty));
            Months.DataBind();
            DropDownList2.DataBind();

            TextBox28.Text = Convert.ToDateTime(TextBox5.Text).ToString("yyyy-MM-dd");
        }
 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();
 }
Esempio n. 3
0
        protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
        {
            TextBox13.Text = DropDownList3.SelectedItem.ToString();
            DropDownList2.Items.Clear();
            DropDownList2.DataBind();
            DropDownList2.Items.Insert(0, new ListItem("Επιλογή Μηνός ...", "0"));
            DropDownList2.SelectedIndex = 0;

            TextBox1.Text = DropDownList1.SelectedValue;


            int    count;
            int    Full_String;
            string strOriginal; //= "These functions will come handy";
            string strModified = String.Empty;

            strOriginal = DropDownList1.SelectedItem.Text; // TextBox3.Text;

            string result = strOriginal.Substring(0, strOriginal.IndexOf("."));

            count       = result.Length;
            Full_String = strOriginal.Length;


            strModified = strOriginal.Substring(count + 1, Full_String - count - 1);


            TextBox2.Text = strModified;

            //    Button1.Enabled = true;


            DropDownList2.Items.Clear();
            DropDownList2.Items.Add(new ListItem(" Επιλογή Μηνός ...", "0"));
            Months.DataBind();
            DropDownList2.DataBind();
        }
Esempio n. 4
0
        protected void TextBox5_TextChanged(object sender, EventArgs e)
        {
            TextBox27.Text = DateTime.Parse(TextBox5.Text).Month.ToString();
            DropDownList2.Items.Clear();
            DropDownList2.Items.Insert(0, new ListItem(" Επιλογή Μηνός ...", String.Empty));
            Months.DataBind();
            DropDownList2.DataBind();

            DateTime dt;
            int      monthSt;

            if (DateTime.TryParse(TextBox5.Text, out dt))
            {
                monthSt = dt.Month;
            }

            int stY = Convert.ToInt16(DropDownList3.Text);

            calEx1.EndDate = FINANCIAL_MANAGEMENT.App_Code.xrisi.Ex_StartEnd(stY, dt.Month);

            TextBox29.Text = DateTime.ParseExact(TextBox5.Text, "dd/MM/yyyy", CultureInfo.CurrentCulture).ToString("MM/dd/yyyy");
            //   TextBox29.Text =  FINANCIAL_MANAGEMENT.App_Code.xrisi.Ex_StartEnd(stY, dt.Month).ToString("MM/dd/yyyy");
            TextBox30.Text = Convert.ToDateTime(TextBox5.Text).ToString("yyyy-MM-dd");
        }