提交代码
This commit is contained in:
@@ -41,7 +41,7 @@ namespace FineUIPro.Web.HSSE.Hazard
|
||||
{
|
||||
if (projectUnit.UnitType == BLL.Const.ProjectUnitType_1 || projectUnit.UnitType == BLL.Const.ProjectUnitType_3 || projectUnit.UnitType == BLL.Const.ProjectUnitType_4)
|
||||
{
|
||||
var ids = Funs.DB.HSSE_ConstructionRisk.Select(x => x.UnitId).Distinct().ToList();
|
||||
var ids = Funs.DB.HSSE_ConstructionRisk.Where(x => x.ProjectId == this.CurrUser.LoginProjectId).Select(x => x.UnitId).Distinct().ToList();
|
||||
units = (from x in Funs.DB.Base_Unit
|
||||
where ids.Contains(x.UnitId)
|
||||
select x).OrderBy(x => x.UnitCode).ToList();
|
||||
@@ -56,7 +56,7 @@ namespace FineUIPro.Web.HSSE.Hazard
|
||||
}
|
||||
else if (user.UnitId == Const.UnitId_SEDIN || user.PersonId == Const.hfnbdId)
|
||||
{
|
||||
var ids = Funs.DB.HSSE_ConstructionRisk.Select(x => x.UnitId).Distinct().ToList();
|
||||
var ids = Funs.DB.HSSE_ConstructionRisk.Where(x => x.ProjectId == this.CurrUser.LoginProjectId).Select(x => x.UnitId).Distinct().ToList();
|
||||
units = (from x in Funs.DB.Base_Unit
|
||||
where ids.Contains(x.UnitId)
|
||||
select x).OrderBy(x => x.UnitCode).ToList();
|
||||
|
||||
@@ -108,7 +108,9 @@
|
||||
var z = tileCoord[0];
|
||||
var x = tileCoord[1];
|
||||
var y = tileCoord[2];
|
||||
return '../../File/Map/SD1-PC-2023-001/tiles/' + z + '/tile-' + x + '_' + y + '.png';
|
||||
var projectCode = '<%=ProjectCode%>'
|
||||
return '../../File/Map/' + projectCode + '/tiles/' + z + '/tile-' + x + '_' + y + '.png';
|
||||
//return '../../File/Map/SD1-PC-2023-001/tiles/' + z + '/tile-' + x + '_' + y + '.png';
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
@@ -18,22 +18,12 @@ namespace FineUIPro.Web.HSSE.Hazard
|
||||
ViewState["ConstructionRiskId"] = value;
|
||||
}
|
||||
}
|
||||
public string ProjectCode
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["ProjectCode"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["ProjectCode"] = value;
|
||||
}
|
||||
}
|
||||
public string ProjectCode = "";
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
var project = Funs.DB.Base_Project.FirstOrDefault(x => x.ProjectId== ProjectCode);
|
||||
ProjectCode = BLL.ProjectService.GetProjectCodeByProjectId(this.CurrUser.LoginProjectId);
|
||||
ConstructionRiskId = Request.Params["ConstructionRiskId"] ;
|
||||
if (!string.IsNullOrEmpty(Request.Params["type"]))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user