This commit is contained in:
gaofei
2021-08-13 11:15:59 +08:00
parent 43acc57060
commit d8dff88c39
320 changed files with 37219 additions and 4678 deletions
@@ -25,6 +25,7 @@ namespace FineUIPro.Web.JDGL.Check
BindGrid4();
BindGrid5();
BindGrid6();
BindGrid7();
}
}
@@ -96,6 +97,14 @@ namespace FineUIPro.Web.JDGL.Check
this.btnImport6.Hidden = false;
}
}
var buttonList7 = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.LowTankCompletionMenuId);
if (buttonList7.Count() > 0)
{
if (buttonList7.Contains(BLL.Const.BtnSave))
{
this.btnImport7.Hidden = false;
}
}
}
#endregion
@@ -233,6 +242,25 @@ namespace FineUIPro.Web.JDGL.Check
Grid6.DataBind();
}
/// <summary>
/// 加载Grid
/// </summary>
private void BindGrid7()
{
string strSql = @"select *
from dbo.View_JDGL_LowTankCompletion qc
where qc.ProjectId=@ProjectId order by qc.Code";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId));
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
Grid6.RecordCount = tb.Rows.Count;
//tb = GetFilteredTable(Grid1.FilteredData, tb);
var table = this.GetPagedDataTable(Grid6, tb);
Grid6.DataSource = table;
Grid6.DataBind();
}
#region
/// <summary>
/// 导入按钮
@@ -304,6 +332,16 @@ namespace FineUIPro.Web.JDGL.Check
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("UndergroundPipeCompletionIn.aspx?ProjectId={0}", this.CurrUser.LoginProjectId, "导入 - ")));
}
/// <summary>
/// 导入按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnImport7_Click(object sender, EventArgs e)
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("LowTankCompletionIn.aspx?ProjectId={0}", this.CurrUser.LoginProjectId, "导入 - ")));
}
/// <summary>
/// 关闭导入弹出窗口
/// </summary>
@@ -318,6 +356,7 @@ namespace FineUIPro.Web.JDGL.Check
BindGrid4();
BindGrid5();
BindGrid6();
BindGrid7();
}
#endregion
}