Ejemplo n.º 1
0
        private void GetPosDetails()
        {
            EmployeeDetailsBLL _employeedetailsbll = new EmployeeDetailsBLL();

            try
            {
                POSDetails _Pos = _employeedetailsbll.GetPosDetails();
                if (_Pos != null)
                {
                    lblTicketSale.Text = _Pos.TicketSale.ToString();
                    lblFoodSale.Text   = _Pos.FoodSale.ToString();
                }
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 2
0
        public static List <POS_Details> GettPOSData()
        {
            EmployeeDetailsBLL _employeedetailsbll = new EmployeeDetailsBLL();
            POSDetails         _POSDetailsR        = _employeedetailsbll.GetPosDetails();

            int TicketSales = Convert.ToInt32(_POSDetailsR.TicketSale.ToString());
            int FoodSales   = Convert.ToInt32(_POSDetailsR.FoodSale.ToString());


            List <POS_Details> dataAtt = new List <POS_Details>()
            {
                new POS_Details {
                    Ticket_Sale = "Ticket Sales", Food_Sale = TicketSales
                },
                new POS_Details {
                    Ticket_Sale = "Food Sales", Food_Sale = FoodSales
                }
            };


            return(dataAtt);
        }