提交代码
This commit is contained in:
parent
fd35988a76
commit
debd6973a7
|
@ -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);
|
||||
|
|
|
@ -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<SqlParameter> listStr = new List<SqlParameter>();
|
||||
|
||||
|
||||
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
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue