Пример #1
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        DataView dv = (DataView)TypeSelect.Select(DataSourceSelectArguments.Empty);

        if ((string)dv.Table.Rows[0][1] == "Small Event")
        {
            TagUpdate0.Update();
        }
        else
        {
            TagUpdate.Update();
        }
        BalanceInsert.Insert();
        Response.Redirect("~/client/ClientAccount.aspx?bbb=" + 1);
    }
Пример #2
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        DataView dv3   = (DataView)SelectTag.Select(DataSourceSelectArguments.Empty);
        int      taggg = (int)dv3.Table.Rows[0][0];

        x = Convert.ToDouble(TextBox8.Text);
        y = Convert.ToDouble(TextBox3.Text);
        if (taggg == 4)
        {
            if (x == y)
            {
                TagUpdate.Update();
            }
        }
        else if (taggg == 6)
        {
            if (x == y)
            {
                TagUpdate0.Update();
            }
        }
        string sttt = "";

        sttt = DateTime.Now.ToLongTimeString();
        if (sttt.Length == 10)
        {
            sttt = "0" + sttt;
        }
        string post = sttt.Substring(9, 2);

        if (post == "PM")
        {
            int h = Convert.ToInt32(sttt.Substring(0, 2)) + 12;
            TTime.Text = h.ToString() + sttt.Substring(2, 6);
        }
        else
        {
            TTime.Text = sttt.Substring(0, 8);
        }
        y             = x - y;
        TextBox6.Text = y.ToString();
        PaymentInsert.Insert();
        TextBox5.Text = DateTime.Now.ToShortDateString();
        SqlDataSource1.Update();
        LinkButton1.Enabled     = true;
        Button3.Enabled         = true;
        RangeValidator1.Visible = false;
    }
Пример #3
0
    protected void Button2_Click(object sender, EventArgs e)
    {
        int      x, y, z, w;
        Double   a, b, c;
        DataView dv = (DataView)SqlDataSource1.Select(DataSourceSelectArguments.Empty);

        foreach (DataRow dr in dv.Table.Rows)
        {
            x             = (int)dv.Table.Rows[0][3];
            y             = (int)dv.Table.Rows[0][1];
            TextBox5.Text = y.ToString();
            DataView dv2 = (DataView)amSelect.Select(DataSourceSelectArguments.Empty);
            w             = (int)dv2.Table.Rows[0][1];
            w             = w - x;
            TextBox4.Text = w.ToString();
            amSelect.Update();
        }
        TagUpdate.Update();
        DataView dv3 = (DataView)PerformanceBondSelect.Select(DataSourceSelectArguments.Empty);

        a = (Double)dv3.Table.Rows[0][0];
        DataView dv4 = (DataView)TotalAccum.Select(DataSourceSelectArguments.Empty);

        b = (Double)dv4.Table.Rows[0][0];
        a = a - b;
        if (a > 0)
        {
            amnt.Text = a.ToString();
            Refunded.Insert();
        }
        else if (a < 0)
        {
            a         = Math.Abs(a);
            amnt.Text = a.ToString();
            BalanceAgain.Update();
            TagUpdate0.Update();
        }
        else
        {
            TagUpdate1.Update();
        }
        Response.Redirect("~/admin/EOS0.aspx?rr=1");
    }
Пример #4
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        int    x    = 0;
        string sttt = "";

        sttt = DateTime.Now.ToLongTimeString();
        if (sttt.Length == 10)
        {
            sttt = "0" + sttt;
        }
        string post = sttt.Substring(9, 2);

        if (post == "PM")
        {
            x = Convert.ToInt32(sttt.Substring(0, 2)) + 12;
            if (x == 24)
            {
                x = x - 12;
            }
            TextBox2.Text = x.ToString() + sttt.Substring(2, 6);
        }
        else
        {
            x = Convert.ToInt32(sttt.Substring(0, 2));
            if (x == 12)
            {
                x             = x - 12;
                TextBox2.Text = x.ToString() + sttt.Substring(2, 6);
            }
            else
            {
                TextBox2.Text = sttt.Substring(0, 8);
            }
        }
        SqlDataSource1.Update();
        TagUpdate0.Update();
        Response.Redirect("~/Admin/Refunds.aspx");
    }