diff --git a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user index abef49a..e3436b8 100644 --- a/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user +++ b/HJGL_DS/FineUIPro.Web/FineUIPro.Web.csproj.user @@ -1,8 +1,8 @@ - + true - Debug|Any CPU + Release|Any CPU diff --git a/HJGL_DS/FineUIPro.Web/JGZL/WeldingRodBaking.aspx b/HJGL_DS/FineUIPro.Web/JGZL/WeldingRodBaking.aspx index 249d99a..3ce2c20 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/WeldingRodBaking.aspx +++ b/HJGL_DS/FineUIPro.Web/JGZL/WeldingRodBaking.aspx @@ -19,17 +19,19 @@ + OnSort="Grid1_Sort" EnableTextSelection="True" AllowPaging="true" IsDatabasePaging="true" PageSize="50" + OnPageIndexChange="Grid1_PageIndexChange" > - - + + diff --git a/HJGL_DS/FineUIPro.Web/JGZL/WeldingRodBaking.aspx.cs b/HJGL_DS/FineUIPro.Web/JGZL/WeldingRodBaking.aspx.cs index e637fc6..c09409b 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/WeldingRodBaking.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/WeldingRodBaking.aspx.cs @@ -33,7 +33,10 @@ namespace FineUIPro.Web.JGZL this.drpProjectId.DataSource = BLL.Base_ProjectService.GetOnProjectList("1"); this.drpProjectId.DataBind(); Funs.FineUIPleaseSelect(this.drpProjectId); - this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId; + this.drpProjectId.SelectedValue = this.CurrUser.LoginProjectId; + + BLL.UnitStoreService.InitUnitStoreDropDownList(drpUnitStore, null, true); + BindGrid(); } } @@ -86,13 +89,18 @@ namespace FineUIPro.Web.JGZL strSql += " AND BakeRecords.BakeDate <= @endDate"; listStr.Add(new SqlParameter("@endDate", this.txtEndDate.Text.Trim())); } + if (this.drpUnitStore.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpUnitStore.SelectedValue)) + { + strSql += " AND BakeRecords.UnitStoreId =@unitStoreId "; + listStr.Add(new SqlParameter("@unitStoreId", this.drpUnitStore.SelectedValue)); + } strSql += " order by BakeRecords.BakeDate desc"; SqlParameter[] parameter = listStr.ToArray(); DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter); Grid1.RecordCount = tb.Rows.Count; - //var table = this.GetPagedDataTable(Grid1, tb); - Grid1.DataSource = tb; + var table = this.GetPagedDataTable(Grid1, tb); + Grid1.DataSource = table; Grid1.DataBind(); } #endregion @@ -111,6 +119,19 @@ namespace FineUIPro.Web.JGZL } #endregion + #region 页索引改变事件 + /// + /// 页索引改变事件 + /// + /// + /// + protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e) + { + Grid1.PageIndex = e.NewPageIndex; + BindGrid(); + } + #endregion + #region 提交 /// /// 确定按钮 diff --git a/HJGL_DS/FineUIPro.Web/JGZL/WeldingRodBaking.aspx.designer.cs b/HJGL_DS/FineUIPro.Web/JGZL/WeldingRodBaking.aspx.designer.cs index 5e94cdf..f07a1d4 100644 --- a/HJGL_DS/FineUIPro.Web/JGZL/WeldingRodBaking.aspx.designer.cs +++ b/HJGL_DS/FineUIPro.Web/JGZL/WeldingRodBaking.aspx.designer.cs @@ -104,6 +104,15 @@ namespace FineUIPro.Web.JGZL /// protected global::FineUIPro.DatePicker txtEndDate; + /// + /// drpUnitStore 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.DropDownList drpUnitStore; + /// /// txtBrand 控件。 /// diff --git a/HJGL_DS/FineUIPro.Web/Web.config b/HJGL_DS/FineUIPro.Web/Web.config index 070a5f8..3c98f31 100644 --- a/HJGL_DS/FineUIPro.Web/Web.config +++ b/HJGL_DS/FineUIPro.Web/Web.config @@ -11,7 +11,7 @@ - + diff --git a/HJGL_DS/WebAPI/WebAPI.csproj.user b/HJGL_DS/WebAPI/WebAPI.csproj.user index a48b337..8cd7f1f 100644 --- a/HJGL_DS/WebAPI/WebAPI.csproj.user +++ b/HJGL_DS/WebAPI/WebAPI.csproj.user @@ -1,7 +1,7 @@ - + - Debug|Any CPU + Release|Any CPU FolderProfile true