2023-04-25-001
This commit is contained in:
@@ -38,10 +38,27 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
private void BindGrid()
|
||||
{
|
||||
var model = new Model.PHTGL_ContractStandingBook();
|
||||
if (drpDepartId.SelectedValue!=Const._Null)
|
||||
var RoleIds = this.CurrUser.RoleIds;
|
||||
|
||||
if (RoleIds.Contains(Const.SedinHTGLManager))
|
||||
{
|
||||
model.DepartId = drpDepartId.SelectedValue;
|
||||
//model.UnitId=this.CurrUser.UnitId;
|
||||
}
|
||||
else if (RoleIds.Contains(Const.OtherHTGLManager))
|
||||
{
|
||||
model.UnitId = this.CurrUser.UnitId;
|
||||
}
|
||||
else if (RoleIds.Contains(Const.SedinHTGLDepartManager))
|
||||
{
|
||||
model.UnitId = this.CurrUser.UnitId;
|
||||
model.DepartId= this.CurrUser.DepartId;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
model.UnitId = "normal";
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(txtContractName.Text.Trim()))
|
||||
{
|
||||
model.ContractName = txtContractName.Text.Trim();
|
||||
@@ -52,7 +69,10 @@ namespace FineUIPro.Web.PHTGL.Filing
|
||||
}
|
||||
var list= BLL.ContractStandingBookService.GetPHTGL_ContractStandingBookByModle( model);
|
||||
//var list= BLL.ContractStandingBookService.getListData( model, Grid1);
|
||||
|
||||
if (drpDepartId.SelectedValue != Const._Null)
|
||||
{
|
||||
list=list.Where(d => d.DepartId==drpDepartId.SelectedValue). ToList();
|
||||
}
|
||||
Grid1.RecordCount = list.Count;
|
||||
var table = this.GetPagedDataTable(Grid1, list);
|
||||
Grid1.DataSource = table;
|
||||
|
||||
Reference in New Issue
Block a user