예제 #1
0
        protected void lnkOrder_Click(object sender, EventArgs e)
        {
            if (txtPhone.Value == "" || txtEmail.Value == "" || txtZip.Value == "")
            {
                lblmessage.Text = "Please enter all the information to procees!";
            }
            else
            {
                SimpleBL nOrder = new SimpleBL();
                int      res    = nOrder.newOrder(txtPhone.Value, txtEmail.Value, txtZip.Value);
                string[] cuS    = nOrder.ScheduleOrder(res, txtZip.Value).Split("##".ToCharArray());

                if (cuS[6] == "1")
                {
                    cuS[6] = "9AM";
                }
                else
                {
                    cuS[6] = "1PM";
                }
                if (cuS[0] == "")
                {
                    lblmessage.Text = "Sorry we are not covering your location. :(";
                }
                else
                {
                    lblmessage.Text = "Thank you for Ordering FiOS - Order# " + cuS[8] + ". Technician " + cuS[0] + "(Mobile: " + cuS[2] + ") will come to your place on " + cuS[4] + " @ " + cuS[6] + ".";
                }
            }
            ModalPopupExtender1.Show();
        }
예제 #2
0
        protected void btnStatus_Click(object sender, EventArgs e)
        {
            SimpleBL sbl = new SimpleBL();

            string[] cuS = sbl.GetSchedule(Phone.Value, Order.Value).Split("##".ToCharArray());
            if (cuS[6] == "1")
            {
                cuS[6] = "9AM";
            }
            else
            {
                cuS[6] = "1PM";
            }
            if (cuS[0] == "")
            {
                lblmessage.Text = "Sorry we don't have detail. Please check your input. :(";
            }
            else if (cuS[0] == "Completed")
            {
                lblmessage.Text = "Your Order has been completed.";
            }
            else
            {
                lblmessage.Text = "Technician " + cuS[0] + "(Mobile: " + cuS[2] + ") will come to your place on " + cuS[4] + " @ " + cuS[6] + ".";
            }

            ModalPopupExtender1.Show();
        }
예제 #3
0
        protected void lnkOrder_Click(object sender, EventArgs e)
        {
            SimpleBL nOrder = new SimpleBL();
            //dinput.Visible = false;
            string[] cuS = nOrder.GetSchedule(txtPhone.Value, txtOrderNumber.Value).Split("##".ToCharArray());

            if (cuS[6] == "1")
                cuS[6] = "9AM";
            else
                cuS[6] = "1PM";
            //lblmessage.Text = "Thank you for Ordering FiOS. Technician " + cuS[0] + "(Mobile: " + cuS[2] + ") will come to your place on " + cuS[4] + " @ " + cuS[6] + ".";
        }
예제 #4
0
        protected void lnkOrder_Click(object sender, EventArgs e)
        {
            SimpleBL nOrder = new SimpleBL();
            int res = nOrder.newOrder(txtPhone.Value, txtEmail.Value, txtZip.Value);
            string[] cuS = nOrder.ScheduleOrder(res, txtZip.Value).Split("##".ToCharArray());

            if (cuS[6] == "1")
                cuS[6] = "9AM";
            else
                cuS[6] = "1PM";
            lblmessage.Text = "Thank you for Ordering FiOS. Technician " + cuS[0] + "(Mobile: " + cuS[2] + ") will come to your place on " + cuS[4]  + " @ " + cuS[6] + ".";
        }
예제 #5
0
        protected void lnkOrder_Click(object sender, EventArgs e)
        {
            SimpleBL nOrder = new SimpleBL();
            int      res    = nOrder.newOrder(txtPhone.Value, txtEmail.Value, txtZip.Value);

            string[] cuS = nOrder.ScheduleOrder(res, txtZip.Value).Split("##".ToCharArray());

            if (cuS[6] == "1")
            {
                cuS[6] = "9AM";
            }
            else
            {
                cuS[6] = "1PM";
            }
            lblmessage.Text = "Thank you for Ordering FiOS. Technician " + cuS[0] + "(Mobile: " + cuS[2] + ") will come to your place on " + cuS[4] + " @ " + cuS[6] + ".";
        }
예제 #6
0
        protected void btnStatus_Click(object sender, EventArgs e)
        {
            SimpleBL sbl = new SimpleBL();
            string[] cuS = sbl.GetSchedule(Phone.Value, Order.Value).Split("##".ToCharArray());
             if (cuS[6] == "1")
                cuS[6] = "9AM";
            else
                cuS[6] = "1PM";
                if(cuS[0] == "")
                    lblmessage.Text = "Sorry we don't have detail. Please check your input. :(";
                else if (cuS[0] == "Completed")
                    lblmessage.Text = "Your Order has been completed.";
                else
                    lblmessage.Text = "Technician " + cuS[0] + "(Mobile: " + cuS[2] + ") will come to your place on " + cuS[4] + " @ " + cuS[6] + ".";

            ModalPopupExtender1.Show();
        }
예제 #7
0
        protected void lnkOrder_Click(object sender, EventArgs e)
        {
            SimpleBL nOrder = new SimpleBL();

            //dinput.Visible = false;
            string[] cuS = nOrder.GetSchedule(txtPhone.Value, txtOrderNumber.Value).Split("##".ToCharArray());

            if (cuS[6] == "1")
            {
                cuS[6] = "9AM";
            }
            else
            {
                cuS[6] = "1PM";
            }
            //lblmessage.Text = "Thank you for Ordering FiOS. Technician " + cuS[0] + "(Mobile: " + cuS[2] + ") will come to your place on " + cuS[4] + " @ " + cuS[6] + ".";
        }
예제 #8
0
        protected void lnkOrder_Click(object sender, EventArgs e)
        {
            if (txtPhone.Value == "" || txtEmail.Value == "" || txtZip.Value == "")
                lblmessage.Text = "Please enter all the information to procees!";
            else
            {
            SimpleBL nOrder = new SimpleBL();
            int res = nOrder.newOrder(txtPhone.Value, txtEmail.Value, txtZip.Value);
            string[] cuS = nOrder.ScheduleOrder(res, txtZip.Value).Split("##".ToCharArray());

            if (cuS[6] == "1")
                cuS[6] = "9AM";
            else
                cuS[6] = "1PM";
                if(cuS[0] == "")
                    lblmessage.Text = "Sorry we are not covering your location. :(";
                else
            lblmessage.Text = "Thank you for Ordering FiOS - Order# " + cuS[8] + ". Technician " + cuS[0] + "(Mobile: " + cuS[2] + ") will come to your place on " + cuS[4] + " @ " + cuS[6] + ".";
            }
            ModalPopupExtender1.Show();
        }