예제 #1
0
        protected void Button4_Click(object sender, EventArgs e)
        {
            //  TextBox33.Text = FINANCIAL_MANAGEMENT.App_Code.xrisi.Fetch_Isot_Descr(DateTime.Today.ToString("dd/MM/yyyy"));
            ReportViewer1.LocalReport.Refresh();

            Isozugio_Parakratithen.Insert();
            Isozugio_Parakratithen.Update();

            if (DropDownList6.Text.Length > 0)
            {
                if (Convert.ToDecimal(DropDownList2.SelectedValue) > Convert.ToDecimal(DropDownList6.SelectedValue))
                {
                    Session["CO_Etos"]  = DropDownList1.Text;
                    Session["CO_Month"] = DropDownList2.SelectedValue;
                    ScriptManager.RegisterStartupScript(this, typeof(string), "OPEN_WINDOW", "var Mleft = (screen.width/2)-(760/2);var Mtop = (screen.height/2)-(700/2);window.open( '../Parametroi/Kleisimo_mina_message.aspx', null, 'height=260,width=380,status=yes,toolbar=no,scrollbars=yes,menubar=no,location=no, left=\'+Mleft+\'' );", true);
                }
            }
        }
        protected void Button1_Click(object sender, EventArgs e)
        {
            if (CheckBox2.Checked)
            {
                Isozugio_Parakratithen.Insert();
                Isozugio_Parakratithen.Update();
            }

            if (DropDownList2.SelectedItem.Value == "1")
            {
                TextBox5.Text = "1";
                TextBox6.Text = "2";
                TextBox7.Text = "3";
            }
            else if (DropDownList2.SelectedItem.Value == "2")
            {
                TextBox5.Text = "4";
                TextBox6.Text = "5";
                TextBox7.Text = "6";
            }
            else if (DropDownList2.SelectedItem.Value == "3")
            {
                TextBox5.Text = "7";
                TextBox6.Text = "8";
                TextBox7.Text = "9";
            }
            else
            {
                TextBox5.Text = "10";
                TextBox6.Text = "11";
                TextBox7.Text = "12";
            }


            ReportViewer1.LocalReport.Refresh();
        }