public CTakeAwayForm(Int32 orderIndex) { InitializeComponent(); m_cCurrentControl = txtCustomerName; m_customerEditStatus = false; m_deliveryTime = String.Empty; m_orderType = String.Empty; m_orderIndex = orderIndex; if (orderIndex != 1) { // this.ChangeVisibility(); } if (orderIndex == 2 || orderIndex == 3) //If waiting type orders { this.GetWaitingNumber(); txtTips.Visible = true; } CUserManager tempUserManager = new CUserManager(); CResult tempResult = tempUserManager.GetAllUser(); if (tempResult.IsSuccess) { userList = new List<CUserInfo>(); userList = (List<CUserInfo>)tempResult.Data; } ScreenTitle = "Takeaway Customer Information"; m_oCommonConstants = ConfigManager.GetConfig<CCommonConstants>(); if (m_oCommonConstants.UserInfo == null) return; }
private void LoadUserButtons() { try { CUserManager tempUserManager = new CUserManager(); List<CUserInfo> tempUserList = new List<CUserInfo>(); tempUserList = (List<CUserInfo>)tempUserManager.GetAllUser().Data; int buttonCount = tempUserList.Count; buttons = new UserButton[buttonCount]; for (int counter = 0; counter < buttonCount; counter++) { if (tempUserList[counter].Status == 1) { // NAIN.K modified 06/01/2009 string webuser = "******"; if (tempUserList[counter].UserName.Replace(" ", " ").ToUpper() != webuser.Replace(" ", " ").ToUpper()) { buttons[counter] = new UserButton(); buttons[counter].Gender = tempUserList[counter].Gender; // buttons[counter].TouchButton.Text = tempUserList[counter].UserName; buttons[counter].rmsUserName.Text = tempUserList[counter].UserName; buttons[counter].Click += new System.EventHandler(this.UserButton_Click); buttons[counter].Show(); } } } LoadUserPanel(); } catch (Exception ee) { MessageBox.Show(ee.Message); } }
private void LoadUserButtons() { try { CUserManager tempUserManager = new CUserManager(); List<CUserInfo> tempUserList = new List<CUserInfo>(); tempUserList = (List<CUserInfo>)tempUserManager.GetAllUser().Data; int buttonCount = tempUserList.Count; //buttons = new UserButton[buttonCount]; buttons = new UserLoginButton[buttonCount]; for (int counter = 0; counter < buttonCount; counter++) { if (tempUserList[counter].Status == 1 && tempUserList[counter].Type != CUserConstant.GetUSerConstant("WAITER")) { // NAIN.K modified 06/01/2009 string webuser = "******"; if (tempUserList[counter].UserName.Replace(" "," ").ToUpper()!= webuser.Replace(" "," ").ToUpper()) { // buttons[counter] = new UserButton(); buttons[counter] = new UserLoginButton(); // buttons[counter].Gender = tempUserList[counter].Gender; if (tempUserList[counter].Gender == "Female") { buttons[counter].setFemale(true); } //buttons[counter].TouchButton.Text = tempUserList[counter].UserName; buttons[counter].Text = tempUserList[counter].UserName; buttons[counter].Click += new System.EventHandler(this.LogInUserButton_Click); buttons[counter].Show(); } } } LoadUserPanel(); if (buttons.Length > MAX_USER_BUTTON) { UpButton.Visible = true; DownButton.Visible = true; } } catch (Exception ee) { } }
public CTakeAwayForm(Int64 inOrderId) { InitializeComponent(); ScreenTitle = "Takeaway Customer Information"; m_cCurrentControl = txtCustomerName; m_customerEditStatus = false; m_deliveryTime = String.Empty; m_orderType = String.Empty; m_oCommonConstants = ConfigManager.GetConfig<CCommonConstants>(); if (m_oCommonConstants.UserInfo == null) return; m_iOrderID = inOrderId; CUserManager tempUserManager = new CUserManager(); CResult tempResult = tempUserManager.GetAllUser(); if (tempResult.IsSuccess) { userList = new List<CUserInfo>(); userList = (List<CUserInfo>)tempResult.Data; } }
private void CTableOrderForm_Load(object sender, EventArgs e) { //g_ServiceChargeButton.Enabled = false; // Change by Mithu //dtpStart.Visible = false; xmlDoc = new XmlDocument(); string executableName = System.Reflection.Assembly.GetExecutingAssembly().Location; FileInfo executableFileInfo = new FileInfo(executableName); currentDirectory = executableFileInfo.DirectoryName + "\\Config"; xmlDoc.Load(currentDirectory + "\\CommonConstants.xml"); XmlNode appSettingsNode = xmlDoc.SelectSingleNode("CCommonConstants/PrinterTypeName"); this.Init(); this.LoadOrderDetails(); this.FillSummary();//New added by baruri at 31.01.2009 CUserManager tempUserManager = new CUserManager(); CResult tempResult = tempUserManager.GetAllUser(); if (tempResult.IsSuccess) { userList = new List<CUserInfo>(); userList = (List<CUserInfo>)tempResult.Data; } }
private void CMainForm_Load(object sender, EventArgs e) { try { tsCallerIdStatus.Text = "Connected on port "+RMSGlobal.m_comPortName; tmrCallerInfo.Start();//Starting the caller timer CCommonConstants oConstants = ConfigManager.GetConfig<CCommonConstants>(); tsLblCurrentUser.Text = " Logged in as " + oConstants.UserInfo.UserName + " "; } catch (Exception exp) { tsCallerIdStatus.Text = RMSGlobal.m_connectionStatus; } CUserManager tempUserManager = new CUserManager(); CResult tempResult = tempUserManager.GetAllUser(); if (tempResult.IsSuccess) { userList = new List<CUserInfo>(); userList = (List<CUserInfo>)tempResult.Data; } }