private void Retrieve(long id)
        {
            mTable = db.POS_Tables.Find(id);
            if (mTable == null)
            {
                btn_AddNew_ItemClick(null, null);
                return;
            }
            NewRecord              = false;
            txtCode.Text           = mTable.TableCode;
            txtName.Text           = mTable.TableName;
            LookUpFloors.EditValue = mTable.Floor_ID;

            var user = db.Users.FirstOrDefault(c => c.ID == mTable.UserCreate && c.Branch_ID == Settings.CurrentBranch_ID);

            lblUserCreate.Text     = user.UserName;
            lblUserCreateDate.Text = mTable.CreationDate.ToString();
            user = db.Users.FirstOrDefault(c => c.ID == mTable.UserLastModified && c.Branch_ID == Settings.CurrentBranch_ID);
            if (user != null)
            {
                lblUserLastModified.Text = user.UserName;
            }
            else
            {
                lblUserLastModified.Text = "";
            }
            lbllblUserLastModifiedDate.Text = mTable.LastModified.ToString();
        }
        private void btnCopy_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            mTable = new POS_Tables();
            txtCode.Focus();
            txtCode.SelectAll();
            NewRecord = true;
            ID        = 0;


            var user = db.Users.FirstOrDefault(c => c.ID == Settings.CurrentUser_ID && c.Branch_ID == Settings.CurrentBranch_ID);

            lblUserCreate.Text              = user.UserName;
            lblUserCreateDate.Text          = DateTime.Now.ToString();
            lblUserLastModified.Text        = string.Empty;
            lbllblUserLastModifiedDate.Text = string.Empty;
        }
        private void btn_AddNew_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            mTable    = new POS_Tables();
            NewRecord = true;
            txtCode.Focus();
            txtCode.Text = string.Empty;
            txtName.Text = string.Empty;
            txtRem.Text  = string.Empty;
            searchLookUpEdit1.EditValue = null;
            ID = 0;
            LookUpFloors.EditValue = null;

            var user = db.Users.FirstOrDefault(c => c.ID == Settings.CurrentUser_ID && c.Branch_ID == Settings.CurrentBranch_ID);

            lblUserCreate.Text              = user.UserName;
            lblUserCreateDate.Text          = DateTime.Now.ToString();
            lblUserLastModified.Text        = string.Empty;
            lbllblUserLastModifiedDate.Text = string.Empty;
        }