Exemplo n.º 1
0
        public void OnEditButton()
        {
            //CBaseObjectMgr BaseObjectMgr = new CBaseObjectMgr();
            //BaseObjectMgr.TbCode = "UI_NavigateBarButton";
            //BaseObjectMgr.Ctx = Program.Ctx;

            TableWindow frm = new TableWindow(WindowControl.NavigateBarButtonMgr);

            frm.ShowDialog();

            LoadData();
        }
Exemplo n.º 2
0
        private void tbtData_Click(object sender, EventArgs e)
        {
            if (listTable.SelectedItems.Count == 0)
            {
                MessageBox.Show("请选择一项!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            CTable table = (CTable)listTable.SelectedItems[0].Tag;

            CBaseObjectMgr BaseObjectMgr = new CBaseObjectMgr();

            BaseObjectMgr.TbCode = table.Code;
            BaseObjectMgr.Ctx    = Program.Ctx;

            TableWindow frm = new TableWindow(BaseObjectMgr);

            frm.ShowDialog();
        }
        /// <summary>
        /// 初始化餐桌定位页面
        /// </summary>
        public void InitTableLocation()
        {
            TableXaml = new TableWindow();
            Config config = _ConfigurationService.Find(TableLocationMapping.TableLocationName[TableLocation.NAME]);

            if (config != null)
            {
                string[] value = config.Value.Split(new char[] { '_' });
                //餐桌定位的拼接类型是编码或者id直接使用下划线分割"_"
                if (config.Disabled == 1)   //餐桌类型
                {
                    TableXaml.TableType.IsChecked = true;
                    LoaderTableTypeLocation(value);
                }
                else if (config.Disabled == 2)   //区域
                {
                    TableXaml.Location.IsChecked = true;
                    LoaderTableLocation(value);
                }
            }
            TableXaml.ShowDialog();
        }
        /// <summary>
        /// 初始化餐桌定位页面
        /// </summary>
        public void InitTableLocation(){
            TableXaml = new TableWindow();
            Config config = _ConfigurationService.Find(TableLocationMapping.TableLocationName[TableLocation.NAME]);
            if (config != null)
            {

                string[] value=config.Value.Split(new char[]{'_'});
                //餐桌定位的拼接类型是编码或者id直接使用下划线分割"_"
                if (config.Disabled == 1)   //餐桌类型
                {
                    TableXaml.TableType.IsChecked = true;
                    LoaderTableTypeLocation(value);
                }
                else if (config.Disabled == 2)   //区域
                {
                    TableXaml.Location.IsChecked = true;
                    LoaderTableLocation(value);
                }
            }
            TableXaml.ShowDialog();
        }