| | |
| | | }); |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | txt_barCode.Focus(); |
| | | txt_barCode.KeyDown += (s, e) => |
| | | { |
| | | if (e.KeyCode == Keys.Enter) { getModel(lbGuid.Text.Trim(), "","","",""); }; |
| | |
| | | /// <param name="pageSize">每页几条</param> |
| | | private void getPageList(int curPage) |
| | | { |
| | | txt_barCode.Text = ""; |
| | | var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); |
| | | PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "a.createDate", "desc", "", _sbSqlWhere.ToString()); |
| | | string json = JsonConvert.SerializeObject(pgq); |
| | |
| | | string _msg = _rtn.rtnMsg; |
| | | if (!string.IsNullOrEmpty(_msg)) |
| | | { |
| | | //设置单窗口出现弹出的速度 |
| | | this.alertControl1.FormDisplaySpeed = DevExpress.XtraBars.Alerter.AlertFormDisplaySpeed.Fast; |
| | | //设置显示多少时间窗口会自动关闭 以毫秒为单位 |
| | | this.alertControl1.AutoFormDelay = 3000; |
| | | //设置提出窗口的显示的位置 |
| | | this.alertControl1.FormLocation = DevExpress.XtraBars.Alerter.AlertFormLocation.BottomLeft; |
| | | this.alertControl1.Show(this, "提示!", _msg); |
| | | Toast vm = new Toast(1, _msg); |
| | | vm.Show(); |
| | | }; |
| | | } |
| | | else |
| | |
| | | ToolBox.MsgHelper.ShowError("提示:" + ex.Message); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | } |