diff --git a/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/WelderPerformancePAUT.aspx.cs b/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/WelderPerformancePAUT.aspx.cs index d2d8658..58d2017 100644 --- a/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/WelderPerformancePAUT.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/HJGL/WeldingReport/WelderPerformancePAUT.aspx.cs @@ -269,7 +269,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport } SqlParameter[] parameter = listStr.ToArray(); - tb = SQLHelper.GetDataTableRunProc("HJGL_sp_rpt_welderPerformance", parameter); + tb = SQLHelper.GetDataTableRunProc("HJGL_sp_rpt_welderPerformancePAUT", parameter); this.Grid1.RecordCount = tb.Rows.Count; tb = GetFilteredTable(Grid1.FilteredData, tb); var table = this.GetPagedDataTable(Grid1, tb); @@ -348,7 +348,7 @@ namespace FineUIPro.Web.HJGL.WeldingReport } SqlParameter[] parameter = listStr.ToArray(); - tb = SQLHelper.GetDataTableRunProc("HJGL_sp_rpt_welderPerformance2", parameter); + tb = SQLHelper.GetDataTableRunProc("HJGL_sp_rpt_welderPerformancePAUT2", parameter); this.Grid1.RecordCount = tb.Rows.Count; tb = GetFilteredTable(Grid1.FilteredData, tb); var table = this.GetPagedDataTable(Grid1, tb); diff --git a/HJGL_DS/FineUIPro.Web/WeldMat/Stock/StockSelect.aspx.cs b/HJGL_DS/FineUIPro.Web/WeldMat/Stock/StockSelect.aspx.cs index c52e969..1c85caa 100644 --- a/HJGL_DS/FineUIPro.Web/WeldMat/Stock/StockSelect.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/WeldMat/Stock/StockSelect.aspx.cs @@ -57,7 +57,7 @@ namespace FineUIPro.Web.WeldMat.Stock LEFT JOIN dbo.Weld_WeldType AS wType ON wType.WeldTypeId = weld.WeldTypeId WHERE 1=1"; List listStr = new List(); - + if (!string.IsNullOrEmpty(this.txtWeldName.Text.Trim())) { strSql += " AND weld.WeldName LIKE @WeldName"; @@ -175,7 +175,12 @@ namespace FineUIPro.Web.WeldMat.Stock string id = Grid1.SelectedRowID.Split(',')[0]; if (!string.IsNullOrEmpty(id)) { - PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("StockSelectDetail.aspx?WeldId={0}", id, "编辑 - "))); + string unitStoreId = string.Empty; + if (this.drpUnitStore.SelectedValue != BLL.Const._Null) + { + unitStoreId = this.drpUnitStore.SelectedValue; + } + PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("StockSelectDetail.aspx?WeldId={0}&UnitStoreId={1}", id, unitStoreId, "编辑 - "))); } } #endregion diff --git a/HJGL_DS/FineUIPro.Web/WeldMat/Stock/StockSelectDetail.aspx.cs b/HJGL_DS/FineUIPro.Web/WeldMat/Stock/StockSelectDetail.aspx.cs index 7605262..9975b77 100644 --- a/HJGL_DS/FineUIPro.Web/WeldMat/Stock/StockSelectDetail.aspx.cs +++ b/HJGL_DS/FineUIPro.Web/WeldMat/Stock/StockSelectDetail.aspx.cs @@ -80,7 +80,12 @@ namespace FineUIPro.Web.WeldMat.Stock strSql += " AND StockIn.WeldId=@WeldId"; listStr.Add(new SqlParameter("@WeldId", this.WeldId)); } - + string unitStoreId= Request.Params["UnitStoreId"]; + if (!string.IsNullOrEmpty(unitStoreId)) + { + strSql += " AND StockIn.UnitStoreId=@UnitStoreId"; + listStr.Add(new SqlParameter("@UnitStoreId", unitStoreId)); + } if (drpUnit.SelectedValue != Const._Null && drpUnit.SelectedValue != null) { strSql += " AND unit.UnitId = @UnitId";