1202-003-gaofei
This commit is contained in:
@@ -21,13 +21,23 @@ namespace FineUIPro.Web.CLGL
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
BLL.MCSWebService.getReqDetails(3919);
|
||||
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||
// 绑定表格
|
||||
this.BindGrid();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnGet_Click(object sender, EventArgs e)
|
||||
{
|
||||
BLL.MCSWebService.getReqDetails(BLL.ProjectService.GetCLProjectCodeByProjectId(this.CurrUser.LoginProjectId));
|
||||
this.BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 绑定数据
|
||||
/// </summary>
|
||||
@@ -37,7 +47,7 @@ namespace FineUIPro.Web.CLGL
|
||||
from dbo.CLGL_PurchaseRequisition c
|
||||
where c.ProjectId=@ProjectId order by c.PurchaseRequisitionCode desc";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
listStr.Add(new SqlParameter("@ProjectId", "3919"));
|
||||
listStr.Add(new SqlParameter("@ProjectId", BLL.ProjectService.GetCLProjectCodeByProjectId(this.CurrUser.LoginProjectId)));
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
|
||||
Reference in New Issue
Block a user