Ejemplo n.º 1
0
        private void btnPark_Click(object sender, RoutedEventArgs e)
        {
            string result = "";

            if (!string.IsNullOrEmpty(Cmd) && (Cmd.Equals("Payment") || Cmd.Equals("Taking Photo")) && !string.IsNullOrEmpty(Gate))
            {
                if (MessageBox.Show("Do you want to return back this car with id   " + queueId + "?", "Return Car", MessageBoxButton.YesNo, MessageBoxImage.Information) == MessageBoxResult.Yes)
                {
                    objERPDba.CompleteTransaction(queueId);
                    objERPDba.AbortTransaction(queueId);
                    QueueData objQueueData = new QueueData();
                    objQueueData.eesNumber   = (int)Char.GetNumericValue(Gate[Gate.Length - 1]);
                    objQueueData.plateNumber = this.txtPlate.Text;
                    objQueueData.patronName  = this.txtName.Text;
                    objQueueData.customerId  = txtCustomerId.Text;
                    objQueueData.isRotate    = txtRotation.Text.Equals("TRUE");
                    this.Close();


                    kioskDataForm objForm = new kioskDataForm(objQueueData.eesNumber);
                    objForm.SetRequestData(objQueueData);

                    objForm.Show();
                }
            }
            else
            {
                MessageBox.Show("You can do this operation only when car reached in the gate in exit.");
            }
        }
Ejemplo n.º 2
0
        private void EES_MouseDown(object sender, MouseButtonEventArgs e)
        {
            Ellipse objEllipse = (Ellipse)sender;
            int     gateNumber = 0;

            if (int.TryParse(objEllipse.Name[objEllipse.Name.Length - 1].ToString(), out gateNumber))
            {
                kioskDataForm objForm = new kioskDataForm(gateNumber);
                objForm.Show();
            }
        }