Exemplo n.º 1
0
 protected override void OnViewCreated()
 {
     base.OnViewCreated();
     _cachedView.CloseBtn.onClick.AddListener(OnCloseBtn);
     _cachedView.AllBtn.onClick.AddListener(RefreshData);
     _cachedView.GridDataScroller.Set(OnRefreshItem, OnCreateItem);
     _cachedView.SearchBtn.onClick.AddListener(SearchBtn);
     _cachedView.Dropdown.ClearOptions();
     _cachedView.Dropdown.AddOptions(_searchOptions);
     _cachedView.Dropdown.onValueChanged.AddListener(DropDownValChanged);
     _cachedView.Dropdown.value = 0;
     _searchType = ESearchType.订单号;
 }
Exemplo n.º 2
0
        private void DropDownValChanged(int arg0)
        {
            _cachedView.SearchInputField.text = string.Empty;
            _searchType = (ESearchType)arg0;
            switch (_searchType)
            {
            case ESearchType.订单号:
                _cachedView.GuidTxt.text = "请输入订单号查询";
                _cachedView.SearchInputField.contentType = InputField.ContentType.IntegerNumber;
                break;

            case ESearchType.房间号:
                _cachedView.GuidTxt.text = "请输入房间号查询";
                _cachedView.SearchInputField.contentType = InputField.ContentType.IntegerNumber;
                break;

            case ESearchType.姓名:
                _cachedView.GuidTxt.text = "请输入姓名查询";
                _cachedView.SearchInputField.contentType = InputField.ContentType.Standard;
                break;
            }
        }
Exemplo n.º 3
0
        private void DoClickEvent(string tag)
        {
            switch (tag)
            {
            case "刷新":
                LoadData();
                break;

            case "生成补货任务":
                DoCalc();
                break;

            case "单品补货":
                // 找到缺货商品
                List <BillSKUNum> shortSummary = gridControl1.DataSource as List <BillSKUNum>;
                List <BillSKUNum> list         = shortSummary.FindAll(u => u.State == "N");
                using (FrmSingleReplenish frmSingle = new FrmSingleReplenish(list))
                {
                    frmSingle.ShowDialog();
                }
                break;

            case "安全库存触发补货":
                SafeSup();
                break;

            case "未排序订单":
                this._searchType = (ESearchType)Enum.Parse(typeof(ESearchType), tag);
                this.LoadData();
                break;

            case "已排序订单":
                this._searchType = (ESearchType)Enum.Parse(typeof(ESearchType), tag);
                this.LoadData();
                break;
            }
        }
 public Graph_SearchTimeSliced(ESearchType Type)
 {
     SearchType = Type;
 }