protected void BtChageStatus_Click(object sender, EventArgs e)
        {
            BLManagerOrders blorders = new BLManagerOrders();

            string[] words = List_StatusFilter.SelectedItem.ToString().Split();

            if (RBOntime.Checked)
            {
                blorders.ChangeOrderStatus(words[2], RBOntime.Text);
            }
            if (RBAboutTime.Checked)
            {
                blorders.ChangeOrderStatus(words[2], RBAboutTime.Text);
            }
            if (RBCanceled.Checked)
            {
                blorders.ChangeOrderStatus(words[2], RBCanceled.Text);
            }
            if (RBComitted.Checked)
            {
                blorders.ChangeOrderStatus(words[2], RBComitted.Text);
            }
            if (RBLate.Checked)
            {
                blorders.ChangeOrderStatus(words[2], RBLate.Text);
            }
        }
Пример #2
0
        protected void B_charge_Click(object sender, EventArgs e)
        {
            BLManagerOrders blorders = new BLManagerOrders();
            List <String>   list     = blorders.ListClientEmail(TxtEmail.Text.Trim());

            List_ClientFilter.Items.Clear();
            foreach (string item in list)
            {
                List_ClientFilter.Items.Add(item);
            }
        }
        protected void B_charge_Click(object sender, EventArgs e)
        {
            BLManagerOrders blorders = new BLManagerOrders();

            if (RBOntime.Checked)
            {
                List <String> list = blorders.ListClientEmail(RBOntime.Text);
                List_StatusFilter.Items.Clear();
                foreach (string item in list)
                {
                    List_StatusFilter.Items.Add(item);
                }
            }
            if (RBAboutTime.Checked)
            {
                List <String> list = blorders.ListClientEmail(RBAboutTime.Text);
                List_StatusFilter.Items.Clear();
                foreach (string item in list)
                {
                    List_StatusFilter.Items.Add(item);
                }
            }
            if (RBCanceled.Checked)
            {
                List <String> list = blorders.ListClientEmail(RBCanceled.Text);
                List_StatusFilter.Items.Clear();
                foreach (string item in list)
                {
                    List_StatusFilter.Items.Add(item);
                }
            }
            if (RBComitted.Checked)
            {
                List <String> list = blorders.ListClientEmail(RBComitted.Text);
                List_StatusFilter.Items.Clear();
                foreach (string item in list)
                {
                    List_StatusFilter.Items.Add(item);
                }
            }

            if (RBLate.Checked)
            {
                List <String> list = blorders.ListClientEmail(RBLate.Text);
                List_StatusFilter.Items.Clear();
                foreach (string item in list)
                {
                    List_StatusFilter.Items.Add(item);
                }
            }
        }