lu
2024-12-09 0cda77328c5e7e818a2c0f7f03a2d738c338634c
修改模版
已修改2个文件
44 ■■■■ 文件已修改
DevApp/Gs.DevApp/bin/Debug/templeEasyCode/category1/category.cs 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/bin/Debug/templeEasyCode/category2/category.cs 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
DevApp/Gs.DevApp/bin/Debug/templeEasyCode/category1/category.cs
@@ -27,20 +27,7 @@
          getPageList(1);
            pageBar1.PagerEvent += PageBar1_PagerEvent;
 Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1);
            gridView1.CustomDrawRowIndicator += (s, e) =>
            {
                if (e.Info.IsRowIndicator && e.RowHandle >= 0)
                {
                    e.Info.DisplayText = (e.RowHandle + 1).ToString();
                }
            };
            gridView1.CustomDrawEmptyForeground += (s, e) =>
            {
                string str = "暂未查找到匹配的数据!";
                Font f = new Font("微软雅黑", 16);
                Rectangle r = new Rectangle(gridView1.GridControl.Width / 2 - 100, e.Bounds.Top + 45, e.Bounds.Right - 5, e.Bounds.Height - 5);
                e.Graphics.DrawString(str, f, Brushes.Gray, r);
            };
        }
   private async void GridView1_ColumnFilterChanged(object sender, EventArgs e)
   {
@@ -90,7 +77,7 @@
        private void Frm_UpdateParent(object sender, UpdateParentEventArgs e)
        {
            _filterList = e.FilterList;
            getPageList(1, pageBar1.RowsCount);
            getPageList(1);
        }
        /// <summary>
@@ -232,14 +219,14 @@
        /// <param name="pageSize">每页几条</param>
        private async void getPageList(int curPage)
        {
              UcLoading _loading = new UcLoading();
 var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList);
 var pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "a.create_date",
 "asc", "", _sbSqlWhere.ToString());
 var json = JsonConvert.SerializeObject(pgq);
 try
 {
     var strReturn = await UtilityHelper.HttpPostAsync("",
     var strReturn = UtilityHelper.HttpPost("",
         _webServiceName + "GetListPage", json);
     var dd = UtilityHelper.ReturnToTablePage(strReturn);
     if (dd.rtnCode > 0)
@@ -268,7 +255,7 @@
 {
     MsgHelper.Warning("提示:" + ex.Message);
 }
 _loading.Stop();
        }
        /// <summary>
        /// 
DevApp/Gs.DevApp/bin/Debug/templeEasyCode/category2/category.cs
@@ -30,20 +30,7 @@
            getPageList(1);
 pageBar1.PagerEvent += PageBar1_PagerEvent;
 Gs.DevApp.ToolBox.UtilityHelper.SetGridSear(gridView1);
            gridView1.CustomDrawRowIndicator += (s, e) =>
            {
                if (e.Info.IsRowIndicator && e.RowHandle >= 0)
                {
                    e.Info.DisplayText = (e.RowHandle + 1).ToString();
                }
            };
            gridView1.CustomDrawEmptyForeground += (s, e) =>
            {
                string str = "暂未查找到匹配的数据!";
                Font f = new Font("微软雅黑", 16);
                Rectangle r = new Rectangle(gridView1.GridControl.Width / 2 - 100, e.Bounds.Top + 45, e.Bounds.Right - 5, e.Bounds.Height - 5);
                e.Graphics.DrawString(str, f, Brushes.Gray, r);
            };
        }
  private async void GridView1_ColumnFilterChanged(object sender, EventArgs e)
  {
@@ -237,13 +224,13 @@
 /// <param name="pageSize">每页几条</param>
 private async void getPageList(int curPage)
 {
     UcLoading _loading = new UcLoading();
     var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList);
     PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "create_date", "asc", "", _sbSqlWhere.ToString());
     string json = JsonConvert.SerializeObject(pgq);
     try
     {
         var strReturn = await UtilityHelper.HttpPostAsync("", _webServiceName + "GetListPage", json);
         var strReturn = UtilityHelper.HttpPost("", _webServiceName + "GetListPage", json);
         ReturnModel<PageListModel> dd = UtilityHelper.ReturnToTablePage(strReturn);
         if (dd.rtnCode > 0)
         {
@@ -271,7 +258,7 @@
     {
         ToolBox.MsgHelper.ShowError("提示:" + ex.Message);
     }
     _loading.Stop();
 }
        private void getModel(string strGuid, bool isEdit, int tabIdx)
        {