lg
2024-09-13 c685ae1bcb234616e8930621a4b087f4e8fd98bb
DevApp/Gs.DevApp/DevFrm/User/User.cs
@@ -23,10 +23,17 @@
            this.toolBarMenu1.btnLoadClick += ToolBarMenu1_btnLoadClick;
            this.toolBarMenu1.btnDelClick += ToolBarMenu1_btnDelClick1;
            this.toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick;
            this.toolBarMenu1.btnReportClick += ToolBarMenu1_btnReportClick;
            gcMain.MouseDoubleClick += GcMain_MouseDoubleClick;
            gridView1.ColumnFilterChanged += GridView1_ColumnFilterChanged;
            pageBar1.PagerEvent += PageBar1_PagerEvent;
            getPageList(1, UtilityHelper.GetPageSize());
        }
        private void ToolBarMenu1_btnReportClick(object sender, EventArgs e)
        {
            Rpt.RptPreview frm = new Rpt.RptPreview("001");
            frm.Show();
        }
        private void GridView1_ColumnFilterChanged(object sender, EventArgs e)
@@ -183,10 +190,10 @@
                txt_userName.Focus();
                return;
            }
            if (txt_isLocked.SelectedIndex <= 0)
            if (txt_isStatus.SelectedIndex <= 0)
            {
                Gs.DevApp.ToolBox.MsgHelper.Warning("状态不能为空!");
                txt_isLocked.Focus();
                txt_isStatus.Focus();
                return;
            }
            var _obj = new
@@ -198,7 +205,7 @@
                address = txt_address.Text.Trim(),
                tel = txt_tel.Text.Trim(),
                email = txt_email.Text.Trim(),
                isLocked = txt_isLocked.SelectedIndex,
                isStatus = txt_isStatus.SelectedIndex,
                flagAdmin = 0,
                flagOnline = 0,
                loginCounter = 0,
@@ -232,7 +239,7 @@
        /// <param name="pageSize">每页几条</param>
        private void getPageList(int curPage, int pageSize)
        {
            PageQueryModel pgq = new PageQueryModel(curPage, pageSize, "createTime", "asc", "", "");
            PageQueryModel pgq = new PageQueryModel(curPage, pageSize, "edtTime", "asc", "", "");
            string json = JsonConvert.SerializeObject(pgq);
            try
            {