Merge branch 'master' of http://47.104.102.122:3000/panhf/CNCEC_SUBQHSE_WUHUAN
This commit is contained in:
commit
5f6e21c6ff
|
@ -0,0 +1,5 @@
|
|||
|
||||
CREATE NONCLUSTERED INDEX [t_d_facerecord_Projectid_Index]
|
||||
ON [dbo].[t_d_facerecord] ([ProjectId])
|
||||
INCLUDE ([ID],[EmployName],[DepartmentID],[DepartName],[AreaID],[AreaName],[EmployNO],[CardID],[RoleID],[DateTimeRecord],[RecordDes],[FaceIP],[InOrOut],[Des1],[Des2],[Des3],[Des4])
|
||||
;
|
|
@ -326,7 +326,7 @@
|
|||
/// 获取userId参与项目下拉框
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static List<Model.Base_Project> GetProjectByUserIdStateDropDownList(string userId, string state)
|
||||
public static List<Model.Base_Project> GetProjectByUserIdStateDropDownList(string userId, string state,string urlType="")
|
||||
{
|
||||
if (userId == Const.sysglyId || userId == Const.hfnbdId || userId == Const.sedinId)
|
||||
{
|
||||
|
@ -340,20 +340,42 @@
|
|||
{
|
||||
/// 获取角色类型
|
||||
var getRoleP = Funs.DB.Sys_RolePower.FirstOrDefault(x => x.RoleId == getUser.RoleId && x.IsOffice == false);
|
||||
if (getRoleP != null)
|
||||
//如果是项目级别,获取到他的类型后,并且还要单位是五环的
|
||||
if (!string.IsNullOrEmpty(urlType))
|
||||
{
|
||||
return (from x in Funs.DB.Base_Project
|
||||
where x.ProjectState == state
|
||||
orderby x.ProjectCode descending
|
||||
select x).ToList();
|
||||
//五环的能看所有项目,否则只能看项目用户中有自己或者所属单位是自己单位的
|
||||
if (getRoleP != null && getUser.UnitId== Const.UnitId_CWCEC)
|
||||
{
|
||||
return (from x in Funs.DB.Base_Project
|
||||
where x.ProjectState == state
|
||||
orderby x.ProjectCode descending
|
||||
select x).ToList();
|
||||
}
|
||||
else
|
||||
{
|
||||
return (from x in Funs.DB.Base_Project
|
||||
join y in Funs.DB.Project_ProjectUser on x.ProjectId equals y.ProjectId
|
||||
where ( (y.UserId == userId && y.IsPost == true)|| x.UnitId== getUser.UnitId) && x.ProjectState == state
|
||||
orderby x.ProjectCode descending
|
||||
select x).Distinct().ToList();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return (from x in Funs.DB.Base_Project
|
||||
join y in Funs.DB.Project_ProjectUser on x.ProjectId equals y.ProjectId
|
||||
where y.UserId == userId && y.IsPost == true && x.ProjectState == state
|
||||
orderby x.ProjectCode descending
|
||||
select x).Distinct().ToList();
|
||||
else {
|
||||
if (getRoleP != null)
|
||||
{
|
||||
return (from x in Funs.DB.Base_Project
|
||||
where x.ProjectState == state
|
||||
orderby x.ProjectCode descending
|
||||
select x).ToList();
|
||||
}
|
||||
else
|
||||
{
|
||||
return (from x in Funs.DB.Base_Project
|
||||
join y in Funs.DB.Project_ProjectUser on x.ProjectId equals y.ProjectId
|
||||
where y.UserId == userId && y.IsPost == true && x.ProjectState == state
|
||||
orderby x.ProjectCode descending
|
||||
select x).Distinct().ToList();
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -459,11 +481,11 @@
|
|||
/// <param name="dropName"></param>
|
||||
/// <param name="userId"></param>
|
||||
/// <param name="isShowPlease"></param>
|
||||
public static void InitProjectShortNameByStateDropDownList(FineUIPro.DropDownList dropName, string userId, string state, bool isShowPlease)
|
||||
public static void InitProjectShortNameByStateDropDownList(FineUIPro.DropDownList dropName, string userId, string state, bool isShowPlease,string urlType="")
|
||||
{
|
||||
dropName.DataValueField = "ProjectId";
|
||||
dropName.DataTextField = "ProjectName";
|
||||
var projectlist = GetProjectByUserIdStateDropDownList(userId, state);
|
||||
var projectlist = GetProjectByUserIdStateDropDownList(userId, state, urlType);
|
||||
dropName.DataSource = projectlist;
|
||||
dropName.DataBind();
|
||||
if (projectlist.Count() == 0)
|
||||
|
|
|
@ -19256,7 +19256,7 @@
|
|||
</FlavorProperties>
|
||||
</VisualStudio>
|
||||
</ProjectExtensions>
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v15.0\WebApplications\Microsoft.WebApplication.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v16.0\WebApplications\Microsoft.WebApplication.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
|
|
|
@ -788,8 +788,8 @@ namespace FineUIPro.Web.ZHGL.InspectionSummary
|
|||
model.CompileDateMonth = this.drpCompileDateMonth.Text.Trim();
|
||||
model.InspectionSummaryId = Guid.NewGuid().ToString();
|
||||
model.InspectionSummaryMbId = "24";
|
||||
var Rykq =db.T_d_facerecord.Where(x => x.ProjectId == pid).FirstOrDefault();
|
||||
if (Rykq !=null)
|
||||
var Rykq =db.T_d_facerecord.Where(x => x.ProjectId == pid).Select(x=>x.ID).FirstOrDefault();
|
||||
if (Rykq !=0)
|
||||
{
|
||||
model.SummeryResult = "已对接";
|
||||
}
|
||||
|
|
|
@ -116,7 +116,7 @@
|
|||
<div class="bw-b-bottom-up">
|
||||
<div class="tab-wrap" style="left: 20px">
|
||||
<div class="tab" style="border: 0; box-shadow: none;">
|
||||
<div class="t-item" style="font-size: 16px; font-weight: normal; color: #fff">投料试车进度</div>
|
||||
<div class="t-item" style="font-size: 16px; font-weight: normal; color: #fff" id="tlscNum" runat="server">投料试车进度</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-wrap">
|
||||
|
@ -143,7 +143,7 @@
|
|||
<div class="bw-b-bottom-up">
|
||||
<div class="tab-wrap" style="left: 20px">
|
||||
<div class="tab" style="border: 0; box-shadow: none;">
|
||||
<div class="t-item" style="font-size: 16px; font-weight: normal; color: #fff">试运行进度</div>
|
||||
<div class="t-item" style="font-size: 16px; font-weight: normal; color: #fff" id="syxNum" runat="server">试运行进度</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-wrap">
|
||||
|
|
|
@ -290,6 +290,7 @@ namespace FineUIPro.Web
|
|||
InstallationName = item.InstallationName
|
||||
});
|
||||
}
|
||||
tlscNum.InnerHtml = "投料试车进度(" + result.Count.ToString() + ")";
|
||||
feedingRunStr = JsonConvert.SerializeObject(result);
|
||||
}
|
||||
}
|
||||
|
@ -312,6 +313,7 @@ namespace FineUIPro.Web
|
|||
InstallationName = item.InstallationName
|
||||
});
|
||||
}
|
||||
syxNum.InnerHtml = "试运行进度(" + result.Count.ToString() + ")";
|
||||
productsStr = JsonConvert.SerializeObject(result);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,11 +7,13 @@
|
|||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web {
|
||||
|
||||
|
||||
public partial class mainMenu_TestRun {
|
||||
|
||||
namespace FineUIPro.Web
|
||||
{
|
||||
|
||||
|
||||
public partial class mainMenu_TestRun
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Head1 控件。
|
||||
/// </summary>
|
||||
|
@ -20,5 +22,23 @@ namespace FineUIPro.Web {
|
|||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
|
||||
|
||||
/// <summary>
|
||||
/// tlscNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl tlscNum;
|
||||
|
||||
/// <summary>
|
||||
/// syxNum 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlGenericControl syxNum;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1919,23 +1919,23 @@
|
|||
textStyle: {
|
||||
rich: {
|
||||
a: {
|
||||
fontSize: 14,
|
||||
fontSize: 12,
|
||||
color: '#DADADA',
|
||||
},
|
||||
b: {
|
||||
color: '#FFFFFF',
|
||||
fontSize: 14,
|
||||
fontSize: 12,
|
||||
},
|
||||
c: {
|
||||
padding: [0, 6],
|
||||
fontSize: 14,
|
||||
fontSize: 12,
|
||||
color: '#FFFFFF',
|
||||
},
|
||||
d: {
|
||||
fontSize: 14,
|
||||
fontSize: 12,
|
||||
color: '#12CDA2',
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
],
|
||||
|
@ -2325,7 +2325,7 @@
|
|||
},
|
||||
axisLabel: {
|
||||
interval: 0,
|
||||
rotate: -16, // 如果数据较多时旋转标签以避免重叠
|
||||
rotate: -10, // 如果数据较多时旋转标签以避免重叠
|
||||
margin: 8, // 设置标签与轴线之间的距离
|
||||
// align: 'center'
|
||||
},
|
||||
|
@ -2535,7 +2535,8 @@
|
|||
map: "china",
|
||||
roam: false, // 可以缩放和平移
|
||||
aspectScale: 0.75, // 比例
|
||||
top: 120,
|
||||
top: 130,
|
||||
left: 170,
|
||||
zlevel: 10,
|
||||
zoom: 1.4,
|
||||
regions: [
|
||||
|
|
|
@ -162,9 +162,9 @@
|
|||
.bgbtn_head {
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
width: 40%;
|
||||
width: 96%;
|
||||
height: 50%;
|
||||
left: 30%;
|
||||
left: 2%;
|
||||
top: 0;
|
||||
background: none !important;
|
||||
border: none !important;
|
||||
|
|
|
@ -294,7 +294,7 @@ namespace FineUIPro.Web
|
|||
Response.Expires = 0; //设置过期时间
|
||||
Response.Cache.SetNoStore(); //在服务器端不缓存该页面
|
||||
Response.AppendHeader("Pragma", "no-cache"); //在客户端不缓存
|
||||
ProjectService.InitProjectShortNameByStateDropDownList(this.drpProject, this.CurrUser.UserId, BLL.Const.ProjectState_1, false);
|
||||
ProjectService.InitProjectShortNameByStateDropDownList(this.drpProject, this.CurrUser.UserId, BLL.Const.ProjectState_1, false,"1");
|
||||
if (!string.IsNullOrEmpty(Request.Params["projectId"]))
|
||||
{
|
||||
this.drpProject.SelectedValue = Request.Params["projectId"];
|
||||
|
@ -730,8 +730,10 @@ namespace FineUIPro.Web
|
|||
|
||||
protected void btnHome_Click(object sender, EventArgs e)
|
||||
{
|
||||
//修改本部用户都能进
|
||||
//this.CurrUser.UnitId == Const.drpProject &&
|
||||
if (string.IsNullOrEmpty(this.CurrUser.LastProjectId)
|
||||
&& ((this.CurrUser.UnitId == Const.UnitId_CWCEC && this.CurrUser.IsOffice == true) || this.CurrUser.UserId == Const.sysglyId || this.CurrUser.UserId == Const.hfnbdId))
|
||||
&& ((this.CurrUser.IsOffice == true) || this.CurrUser.UserId == Const.sysglyId || this.CurrUser.UserId == Const.hfnbdId))
|
||||
{
|
||||
UserService.UpdateLastUserInfo(this.CurrUser.UserId, this.CurrUser.LastMenuType, false, this.CurrUser.LoginProjectId);
|
||||
this.CurrUser.LastProjectId = this.CurrUser.LoginProjectId;
|
||||
|
|
Loading…
Reference in New Issue