Ejemplo n.º 1
0
 public BookedHotelTableControl(HotelTableModel hotelTableDetails)
 {
     InitializeComponent();
     this.tempHotelTableModel   = hotelTableDetails;
     this.tableNumber.Text      = hotelTableDetails.hotelTableName;
     this.tempLocalInvoiceModel = this.getLocalInvoiceModel();
 }
Ejemplo n.º 2
0
 public AddFood(HotelTableModel hotelTableModel, LocalInvoiceModel localInvoiceModel)
 {
     InitializeComponent();
     SkinClass.SetSkiner(this);
     this.hotelTableModel   = hotelTableModel;
     this.localInvoiceModel = localInvoiceModel;
     this.loadFoodComboBox();
 }
Ejemplo n.º 3
0
 public HotelTableInvoiceForm(LocalInvoiceModel localInvoiceModel)
 {
     InitializeComponent();
     SkinClass.SetSkiner(this);
     this.tempLocalInvoiceModel = localInvoiceModel;
     this.setCustomerDetails();
     this.gridViewButtonLoad();
 }
Ejemplo n.º 4
0
        public void viewInvoiceData(LocalInvoiceModel localInvoiceDetails)
        {
            Form formExits = Application.OpenForms["HotelTableInvoiceForm"];

            if (formExits != null)
            {
                formExits.Close();
            }
            new HotelTableInvoiceForm(localInvoiceDetails).Show();
        }
Ejemplo n.º 5
0
        public LocalInvoiceModel getLocalInvoiceModel()
        {
            LocalInvoiceModel tempLocalInvoiceResult = null;

            if (GlobalClass.localInvoiceTables != null)
            {
                List <DataRow> tempDataRow = GlobalClass.localInvoiceTables.AsEnumerable().Where(row => row["hotelTableId"].Equals(this.tempHotelTableModel.hotelTableId.ToString())).ToList();
                tempLocalInvoiceResult = new LocalInvoiceModel(Convert.ToInt32(tempDataRow[0].ItemArray[0]), tempDataRow[0].ItemArray[1].ToString(), tempDataRow[0].ItemArray[2].ToString());
            }
            return(tempLocalInvoiceResult);
        }
Ejemplo n.º 6
0
 // this function used for the return HotelModel
 private void getHotelModel(LocalInvoiceModel localInvoiceDeatils)
 {
     try
     {
         List <DataRow> tempRow = GlobalClass.hotelTables.AsEnumerable().Where(row => row["hotelTableId"].Equals(localInvoiceDeatils.hotelTableId.ToString())).ToList();
         if (tempRow.Count > 0)
         {
             this.tempHotelModel = new HotelTableModel(Convert.ToInt32(tempRow[0].ItemArray[0]), tempRow[0].ItemArray[1].ToString(), tempRow[0].ItemArray[2].ToString(), Convert.ToInt32(tempRow[0].ItemArray[3]), Convert.ToDouble(tempRow[0].ItemArray[4]), Convert.ToBoolean(tempRow[0].ItemArray[5]));
         }
     }
     catch (Exception msg)
     {
         UserMessage.ShowExceptions(msg.Message);
     }
 }
Ejemplo n.º 7
0
 public void loadViewIconClick(LocalInvoiceModel localInvoiceDetails)
 {
     new MainTableManagement().viewInvoiceData(localInvoiceDetails);
 }