Beispiel #1
0
        private void raToDay_CheckedChanged(object sender, EventArgs e)
        {
            if (raOR.Checked == true)
            {
                dataGridView1.DataSource = order.ORDER_TOTAL_TODAY(Convert.ToDateTime(dt3.Value.ToShortDateString()));
                CalculateTotalAmount1();
            }
            else if (raPOR.Checked == true)
            {
                dataGridView1.DataSource = order.PURCHASE_TOTAL_TODAY(Convert.ToDateTime(dt3.Value.ToShortDateString()));
                CalculateTotalAmount1();
            }
            else
            {
                dataGridView1.DataSource = order.ITEM_TOTAL_TODAY(Convert.ToDateTime(dt3.Value.ToShortDateString()));
                CalculateTotalAmount2();
            }

            groupBox3.Visible = false;
            groupBox4.Visible = false;
        }