void GetStoreByRule()
        {
            StoreRulesC src = new StoreRulesC();

            List <StoreRules> lsr = src.GetStoreRulesByRuleId(_user.Rule_id);

            foreach (StoreRules sr in lsr)
            {
                StoreC sc = new StoreC();
                try {
                    string storeName = sc.GetOneStore(new Store()
                    {
                        Id = sr.Store_id
                    }).Name;
                    cbstore.Items.Add(storeName);
                } catch (Exception) {
                    Debug.WriteLine("Error When Get Store Name Update Class");
                }
            }
        }
        /// <summary>
        ///
        /// </summary>
        void GetStoreByRule()
        {
            StoreRulesC src     = new StoreRulesC();
            bool        isFirst = true;

            _listStoreRules = src.GetStoreRulesByRuleId(_user.Rule_id);

            foreach (StoreRules sr in _listStoreRules)
            {
                StoreC sc = new StoreC();
                Debug.WriteLine(sr.Store_id.ToString());

                if (isFirst)
                {
                    _query = " store_id=" + sr.Store_id;
                }
                else
                {
                    _query += " or store_id=" + sr.Store_id;
                }

                isFirst = false;
                try {
                    string storeName = sc.GetOneStore(new Store()
                    {
                        Id = sr.Store_id
                    }).Name;
                    cbplace.Items.Add(storeName);
                    _store.Add(new Store {
                        Name = storeName, Id = sr.Store_id
                    });
                } catch (Exception) {
                    Debug.WriteLine("Error When Get Store Name MainForm Class");
                }
            }
            isFirst    = true;
            finalquery = _query;
            getAll("");
            //foreach (Store st in _store)
            // {
            //     GUI.ETabPage etp = new GUI.ETabPage();
            //     etp.Name = st.Name;
            //     etp.Text = st.Name;

            //     GUI.EListView etl = new GUI.EListView(st.Name);


            //     etp.AddToTabPage(etl.GetList());
            //     _listListView.Add(etl.GetList());

            //  tabControl1.Controls.Add(etp.GetTabPage());
            //     _listTabPage.Add(etp.GetTabPage());

            //  //   tabControl1.TabPages[st.Name].Text = st.Name;
            //  //   tabControl1.TabPages[st.Name].Controls.Add(new GUI.TestButton().GetButton(st.Name+4,"click"));
            //}
            // Debug.WriteLine(_listTabPage.Count);
            // foreach (ListView l in _listListView)
            // {
            //     Debug.WriteLine(l.Name);
            // }
            Debug.WriteLine("this is query=>" + _query);
        }