/// <summary> /// Loading the customer information for the takeaway order. /// </summary> private void FillSummary() { try { CCustomerManager tempCustomerManager = new CCustomerManager(); CCustomerInfo tempCustomerInfo = new CCustomerInfo(); CResult oResult = tempCustomerManager.GetCustomerTakeawayInfo(orderID); tempCustomerInfo = (CCustomerInfo)oResult.Data; m_customerID = tempCustomerInfo.CustomerID; if (m_orderUserName.Replace(" ", "").ToUpper() != "Web User".Replace(" ", "").ToUpper()) { m_objOrderLog = tempCustomerManager.GetOrderLogInformation(orderID); m_objOrderLogInfo = (List<OrderLogInformation>)m_objOrderLog.Data; } else { m_objOrderLog = tempCustomerManager.GetOnlineOrderLogInformation(orderID); m_objOrderLogInfo = (List<OrderLogInformation>)m_objOrderLog.Data; } if (tempCustomerInfo.CustomerID > 0) //If takeaway type order then shows the customer information { g_ItemSelectionFlowLayoutPanel.Controls.Clear(); CustomerControl objCustomer = new CustomerControl(orderID, this, m_objOrderLogInfo); g_ItemSelectionFlowLayoutPanel.Controls.Add(objCustomer); } else //For table order { g_ItemSelectionFlowLayoutPanel.Controls.Clear(); TableInformationControl objTableInfo = new TableInformationControl(orderID, this, m_objOrderLogInfo); g_ItemSelectionFlowLayoutPanel.Controls.Add(objTableInfo); } } catch (Exception exp) { throw exp; } }