This commit is contained in:
parent
4348926e4d
commit
bd3af6400e
|
@ -61,7 +61,8 @@ WHERE 1=1 ";
|
||||||
var thisUnit = BLL.CommonService.GetIsThisUnit();
|
var thisUnit = BLL.CommonService.GetIsThisUnit();
|
||||||
if (!string.IsNullOrEmpty(this.CurrUser.UnitId) && thisUnit.UnitId != this.CurrUser.UnitId)
|
if (!string.IsNullOrEmpty(this.CurrUser.UnitId) && thisUnit.UnitId != this.CurrUser.UnitId)
|
||||||
{
|
{
|
||||||
strSql += " AND P.UnitId = @UnitId";
|
//strSql += " AND P.UnitId = @UnitId";
|
||||||
|
strSql += " AND (U.UnitId = @UnitId or CU.UnitId = @UnitId)";
|
||||||
listStr.Add(new SqlParameter("@UnitId", this.CurrUser.UnitId));
|
listStr.Add(new SqlParameter("@UnitId", this.CurrUser.UnitId));
|
||||||
}
|
}
|
||||||
if (this.drpCheckMainType.SelectedValue != null && this.drpCheckMainType.SelectedValue != BLL.Const._Null)
|
if (this.drpCheckMainType.SelectedValue != null && this.drpCheckMainType.SelectedValue != BLL.Const._Null)
|
||||||
|
|
Loading…
Reference in New Issue