人员管理-人员信息下菜单补充公司级树

This commit is contained in:
夏菊 2025-04-08 17:41:02 +08:00
parent ff335e8f27
commit 5a6796f656
24 changed files with 1147 additions and 573 deletions

View File

@ -33,10 +33,6 @@ namespace FineUIPro.Web.Customization.CNCCG.HSSE.QualityAudit
public string MenuId= Const.CompanySafePersonMenuId; public string MenuId= Const.CompanySafePersonMenuId;
#endregion #endregion
#region #region
/// <summary> /// <summary>
/// 加载页面 /// 加载页面
@ -54,18 +50,13 @@ namespace FineUIPro.Web.Customization.CNCCG.HSSE.QualityAudit
{ {
this.ProjectId = Request.Params["projectId"]; this.ProjectId = Request.Params["projectId"];
} }
this.InitDropDownList();
this.ucTree.UnitId = this.CurrUser.UnitId; this.ucTree.UnitId = this.CurrUser.UnitId;
this.ucTree.ProjectId = this.ProjectId; this.ucTree.ProjectId = this.ProjectId;
BLL.UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true);
if (BLL.ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.ProjectId, this.CurrUser.UnitId))
{
this.drpUnitId.SelectedValue = this.CurrUser.UnitId;
this.drpUnitId.Enabled = false;
}
Funs.DropDownPageSize(this.ddlPageSize); Funs.DropDownPageSize(this.ddlPageSize);
// 绑定表格 // 绑定表格
this.BindGrid(); this.BindGrid();
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId) && CommonService.GetThisUnitId() != Const.CncecFccId) if (!string.IsNullOrEmpty(this.ProjectId) && CommonService.GetThisUnitId() != Const.CncecFccId)
{ {
MenuId = Const.SafePersonQualityMenuId; MenuId = Const.SafePersonQualityMenuId;
this.panelLeftRegion.Hidden = true; this.panelLeftRegion.Hidden = true;
@ -78,8 +69,18 @@ namespace FineUIPro.Web.Customization.CNCCG.HSSE.QualityAudit
protected void changeTree(object sender, EventArgs e) protected void changeTree(object sender, EventArgs e)
{ {
this.ProjectId = this.ucTree.ProjectId; this.ProjectId = this.ucTree.ProjectId;
this.InitDropDownList();
this.BindGrid(); this.BindGrid();
} }
private void InitDropDownList()
{
BLL.UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true);
if (BLL.ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.ProjectId, this.CurrUser.UnitId))
{
this.drpUnitId.SelectedValue = this.CurrUser.UnitId;
this.drpUnitId.Enabled = false;
}
}
/// <summary> /// <summary>
/// 绑定数据 /// 绑定数据
/// </summary> /// </summary>
@ -291,7 +292,7 @@ namespace FineUIPro.Web.Customization.CNCCG.HSSE.QualityAudit
/// <returns></returns> /// <returns></returns>
private void GetButtonPower() private void GetButtonPower()
{ {
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, MenuId); var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, MenuId);
if (buttonList.Count() > 0) if (buttonList.Count() > 0)
{ {
if (buttonList.Contains(BLL.Const.BtnModify)) if (buttonList.Contains(BLL.Const.BtnModify))

View File

@ -2478,7 +2478,6 @@
<Content Include="Controls\My97DatePicker\开发包\skin\whyGreen\datepicker.css" /> <Content Include="Controls\My97DatePicker\开发包\skin\whyGreen\datepicker.css" />
<Content Include="Controls\My97DatePicker\开发包\skin\whyGreen\img.gif" /> <Content Include="Controls\My97DatePicker\开发包\skin\whyGreen\img.gif" />
<Content Include="Downloads\chinaexcelweb.cab" /> <Content Include="Downloads\chinaexcelweb.cab" />
<Content Include="ErrLog.txt" />
<Content Include="favicon.ico" /> <Content Include="favicon.ico" />
<Content Include="App_Themes\Default\Default.css" /> <Content Include="App_Themes\Default\Default.css" />
<Content Include="aspnet_client\FreeTextBox\FTB-FreeTextBox.js" /> <Content Include="aspnet_client\FreeTextBox\FTB-FreeTextBox.js" />

View File

@ -1,4 +1,7 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PersonQuality.aspx.cs" Inherits="FineUIPro.Web.HSSE.QualityAudit.PersonQuality" %> <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PersonQuality.aspx.cs" Inherits="FineUIPro.Web.HSSE.QualityAudit.PersonQuality" %>
<%@ Register Src="~/Controls/UnitProjectTControl.ascx" TagName="UnitProjectTControl" TagPrefix="uc1" %>
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server"> <head runat="server">
@ -7,8 +10,23 @@
</head> </head>
<body> <body>
<form id="form1" runat="server"> <form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" /> <f:PageManager ID="PageManager1" AutoSizePanelID="Panel2" runat="server" />
<f:Panel ID="Panel1" runat="server" Margin="10px" BodyPadding="10px" ShowBorder="false" <f:Panel ID="Panel2" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="380" Title="公司-项目" TitleToolTip="公司-项目" ShowBorder="true"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft" Layout="Fit">
<Items>
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" EnableCollapse="true" AutoScroll="true"
BodyPadding="0px">
<uc1:UnitProjectTControl ID="ucTree" runat="server" Onchange="changeTree" />
</f:ContentPanel>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" AutoScroll="true">
<Items>
<f:Panel ID="Panel1" runat="server" Margin="10px" BodyPadding="10px" ShowBorder="false" MinHeight="700px"
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch" AutoScroll="true"> ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch" AutoScroll="true">
<Items> <Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="特种作业人员资质" EnableCollapse="true" <f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="特种作业人员资质" EnableCollapse="true"
@ -24,14 +42,14 @@
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="70px" AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="70px"
LabelAlign="right"> LabelAlign="right">
</f:TextBox> </f:TextBox>
<f:DropDownList ID="drpUnitId" runat="server" Label="单位" <f:DropDownList ID="drpUnitId" runat="server" Label="单位" AutoSelectFirstItem="true"
AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged" LabelWidth="70px" Width="250px"> AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged" LabelWidth="70px" Width="250px">
</f:DropDownList> </f:DropDownList>
<f:TextBox runat="server" Label="姓名" ID="txtPersonName" EmptyText="输入查询条件" AutoPostBack="true" <f:TextBox runat="server" Label="姓名" ID="txtPersonName" EmptyText="输入查询条件" AutoPostBack="true"
OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="70px" LabelAlign="right"> OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="70px" LabelAlign="right">
</f:TextBox> </f:TextBox>
<f:TextBox runat="server" Label="岗位" ID="txtWorkPostName" EmptyText="输入查询条件" AutoPostBack="true" <f:TextBox runat="server" Label="岗位" ID="txtWorkPostName" EmptyText="输入查询条件" AutoPostBack="true"
OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="70px" LabelAlign="right"> OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="70px" LabelAlign="right" >
</f:TextBox> </f:TextBox>
<f:DropDownList ID="drpIsUsedName" runat="server" Label="是否在岗" EnableEdit="true" OnSelectedIndexChanged="TextBox_TextChanged" <f:DropDownList ID="drpIsUsedName" runat="server" Label="是否在岗" EnableEdit="true" OnSelectedIndexChanged="TextBox_TextChanged"
AutoPostBack="true" Width="200px" LabelWidth="100px" LabelAlign="right" ForceSelection="false"> AutoPostBack="true" Width="200px" LabelWidth="100px" LabelAlign="right" ForceSelection="false">
@ -121,6 +139,10 @@
</f:Grid> </f:Grid>
</Items> </Items>
</f:Panel> </f:Panel>
</Items>
</f:Panel>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="特种作业人员资质" Hidden="true" EnableIFrame="true" EnableMaximize="true" <f:Window ID="Window1" Title="特种作业人员资质" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="1000px" Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="1000px"
Height="500px"> Height="500px">

View File

@ -45,6 +45,39 @@ namespace FineUIPro.Web.HSSE.QualityAudit
{ {
this.ProjectId = Request.Params["projectId"]; this.ProjectId = Request.Params["projectId"];
} }
this.InitDropDownList();
this.ucTree.UnitId = this.CurrUser.UnitId;
this.ucTree.ProjectId = this.ProjectId;
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
{
this.panelLeftRegion.Hidden = true;
////权限按钮方法
this.GetButtonPower();
}
// 绑定表格
this.BindGrid();
}
}
/// <summary>
/// 公司级树加载
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void changeTree(object sender, EventArgs e)
{
this.ProjectId = this.ucTree.ProjectId;
this.InitDropDownList();
this.GetButtonPower();
//if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
//{
// btnNew.Hidden = true;
//}
this.BindGrid();
}
private void InitDropDownList()
{
BLL.UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true); BLL.UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true);
if (BLL.ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.ProjectId, this.CurrUser.UnitId)) if (BLL.ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.ProjectId, this.CurrUser.UnitId))
{ {
@ -56,15 +89,18 @@ namespace FineUIPro.Web.HSSE.QualityAudit
Grid1.PageSize = this.CurrUser.PageSize.Value; Grid1.PageSize = this.CurrUser.PageSize.Value;
} }
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
// 绑定表格
this.BindGrid();
}
} }
/// <summary> /// <summary>
/// 绑定数据 /// 绑定数据
/// </summary> /// </summary>
private void BindGrid() private void BindGrid()
{ {
if (string.IsNullOrEmpty(this.ProjectId))
{
return;
}
string strSql = @"SELECT DISTINCT InTime,PersonQuality.PersonQualityId,Person.PersonId,Person.ProjectId,Person.CardNo,Person.PersonName,Unit.UnitId,Unit.UnitCode,Unit.UnitName,WorkPost.WorkPostId,WorkPost.WorkPostName,WorkPost.WorkPostCode," string strSql = @"SELECT DISTINCT InTime,PersonQuality.PersonQualityId,Person.PersonId,Person.ProjectId,Person.CardNo,Person.PersonName,Unit.UnitId,Unit.UnitCode,Unit.UnitName,WorkPost.WorkPostId,WorkPost.WorkPostName,WorkPost.WorkPostCode,"
+ @" PersonQuality.CertificateNo,Certificate.CertificateName,PersonQuality.Grade,PersonQuality.SendUnit,PersonQuality.SendDate,PersonQuality.LimitDate,PersonQuality.LateCheckDate," + @" PersonQuality.CertificateNo,Certificate.CertificateName,PersonQuality.Grade,PersonQuality.SendUnit,PersonQuality.SendDate,PersonQuality.LimitDate,PersonQuality.LateCheckDate,"
+ @" PersonQuality.ApprovalPerson,PersonQuality.Remark,PersonQuality.CompileMan,Users.UserName AS CompileManName,PersonQuality.CompileDate,Auditor.UserName AS AuditorName,AuditDate," + @" PersonQuality.ApprovalPerson,PersonQuality.Remark,PersonQuality.CompileMan,Users.UserName AS CompileManName,PersonQuality.CompileDate,Auditor.UserName AS AuditorName,AuditDate,"
@ -81,7 +117,7 @@ namespace FineUIPro.Web.HSSE.QualityAudit
strSql += " AND Person.ProjectId = @ProjectId"; strSql += " AND Person.ProjectId = @ProjectId";
listStr.Add(new SqlParameter("@ProjectId", this.ProjectId)); listStr.Add(new SqlParameter("@ProjectId", this.ProjectId));
if (this.drpUnitId.SelectedValue != Const._Null) if (this.drpUnitId.SelectedValue != null && this.drpUnitId.SelectedValue != Const._Null)
{ {
strSql += " AND Person.UnitId = @UnitId"; strSql += " AND Person.UnitId = @UnitId";
listStr.Add(new SqlParameter("@UnitId", this.drpUnitId.SelectedValue.Trim())); listStr.Add(new SqlParameter("@UnitId", this.drpUnitId.SelectedValue.Trim()));
@ -219,7 +255,7 @@ namespace FineUIPro.Web.HSSE.QualityAudit
/// <returns></returns> /// <returns></returns>
private void GetButtonPower() private void GetButtonPower()
{ {
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.PersonQualityMenuId); var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.PersonQualityMenuId);
if (buttonList.Count() > 0) if (buttonList.Count() > 0)
{ {
if (buttonList.Contains(BLL.Const.BtnModify)) if (buttonList.Contains(BLL.Const.BtnModify))

View File

@ -32,6 +32,51 @@ namespace FineUIPro.Web.HSSE.QualityAudit
/// </remarks> /// </remarks>
protected global::FineUIPro.PageManager PageManager1; protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel2;
/// <summary>
/// panelLeftRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelLeftRegion;
/// <summary>
/// ContentPanel1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ContentPanel ContentPanel1;
/// <summary>
/// ucTree 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Web.Controls.UnitProjectTControl ucTree;
/// <summary>
/// panelCenterRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelCenterRegion;
/// <summary> /// <summary>
/// Panel1 控件。 /// Panel1 控件。
/// </summary> /// </summary>

View File

@ -1,5 +1,7 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DayReport.aspx.cs" Inherits="FineUIPro.Web.HSSE.SitePerson.DayReport" %> <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DayReport.aspx.cs" Inherits="FineUIPro.Web.HSSE.SitePerson.DayReport" %>
<%@ Register Src="~/Controls/UnitProjectTControl.ascx" TagName="UnitProjectTControl" TagPrefix="uc1" %>
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server"> <head runat="server">
@ -8,8 +10,23 @@
</head> </head>
<body> <body>
<form id="form1" runat="server"> <form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" /> <f:PageManager ID="PageManager1" AutoSizePanelID="Panel2" runat="server" />
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false" <f:Panel ID="Panel2" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="380" Title="公司-项目" TitleToolTip="公司-项目" ShowBorder="true"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft" Layout="Fit">
<Items>
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" EnableCollapse="true" AutoScroll="true"
BodyPadding="0px">
<uc1:UnitProjectTControl ID="ucTree" runat="server" Onchange="changeTree" />
</f:ContentPanel>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" AutoScroll="true">
<Items>
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false" MinHeight="700px"
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch"> ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
<Items> <Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="人工时日报" EnableCollapse="true" <f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="人工时日报" EnableCollapse="true"
@ -28,7 +45,8 @@
<f:ToolbarFill ID="ToolbarFill1" runat="server"> <f:ToolbarFill ID="ToolbarFill1" runat="server">
</f:ToolbarFill> </f:ToolbarFill>
<f:CheckBox runat="server" Label="历史" ID="ckRecord" Width="100px" LabelWidth="50px" <f:CheckBox runat="server" Label="历史" ID="ckRecord" Width="100px" LabelWidth="50px"
AutoPostBack="true" OnCheckedChanged="ckRecord_CheckedChanged"></f:CheckBox> AutoPostBack="true" OnCheckedChanged="ckRecord_CheckedChanged">
</f:CheckBox>
<f:ToolbarFill ID="ToolbarFill2" runat="server"> <f:ToolbarFill ID="ToolbarFill2" runat="server">
</f:ToolbarFill> </f:ToolbarFill>
<f:DatePicker runat="server" Label="日报日期" ID="txtCompileDate" LabelWidth="100px" <f:DatePicker runat="server" Label="日报日期" ID="txtCompileDate" LabelWidth="100px"
@ -51,12 +69,12 @@
</Toolbars> </Toolbars>
<Columns> <Columns>
<f:TemplateField ColumnID="tfPageIndex" Width="100px" HeaderText="序号" HeaderTextAlign="Center" <f:TemplateField ColumnID="tfPageIndex" Width="100px" HeaderText="序号" HeaderTextAlign="Center"
TextAlign="Center" EnableLock="true" Locked="False" > TextAlign="Center" EnableLock="true" Locked="False">
<ItemTemplate> <ItemTemplate>
<asp:Label ID="lblPageIndex" runat="server" Text='<%#Grid1.RecordCount- Grid1.PageIndex * Grid1.PageSize - Container.DataItemIndex %>'></asp:Label> <asp:Label ID="lblPageIndex" runat="server" Text='<%#Grid1.RecordCount- Grid1.PageIndex * Grid1.PageSize - Container.DataItemIndex %>'></asp:Label>
</ItemTemplate> </ItemTemplate>
</f:TemplateField> </f:TemplateField>
<%-- <f:RenderField Width="200px" ColumnID="DayReportCode" DataField="DayReportCode" SortField="DayReportCode" <%-- <f:RenderField Width="200px" ColumnID="DayReportCode" DataField="DayReportCode" SortField="DayReportCode"
FieldType="String" HeaderText="编号" TextAlign="Left" HeaderTextAlign="Center"> FieldType="String" HeaderText="编号" TextAlign="Left" HeaderTextAlign="Center">
</f:RenderField>--%> </f:RenderField>--%>
<f:RenderField Width="150px" ColumnID="CompileDate" DataField="CompileDate" SortField="CompileDate" <f:RenderField Width="150px" ColumnID="CompileDate" DataField="CompileDate" SortField="CompileDate"
@ -107,6 +125,11 @@
</f:Grid> </f:Grid>
</Items> </Items>
</f:Panel> </f:Panel>
</Items>
</f:Panel>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="人工时日报" Hidden="true" EnableIFrame="true" EnableMaximize="true" <f:Window ID="Window1" Title="人工时日报" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" OnClose="Window1_Close" IsModal="true" Target="Parent" EnableResize="false" runat="server" OnClose="Window1_Close" IsModal="true"
Width="1000px" Height="500px"> Width="1000px" Height="500px">

View File

@ -40,23 +40,51 @@ namespace FineUIPro.Web.HSSE.SitePerson
{ {
Funs.DropDownPageSize(this.ddlPageSize); Funs.DropDownPageSize(this.ddlPageSize);
this.ProjectId = this.CurrUser.LoginProjectId; this.ProjectId = this.CurrUser.LoginProjectId;
if (!string.IsNullOrEmpty(Request.Params["ProjectId"])) if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
{ {
this.ProjectId = Request.Params["ProjectId"]; this.ProjectId = Request.Params["projectId"];
} }
this.ucTree.UnitId = this.CurrUser.UnitId;
this.ucTree.ProjectId = this.ProjectId;
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
{
this.panelLeftRegion.Hidden = true;
////权限按钮方法 ////权限按钮方法
this.GetButtonPower(); this.GetButtonPower();
}
ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
// 绑定表格 // 绑定表格
BindGrid(); BindGrid();
} }
} }
/// <summary>
/// 公司级树加载
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void changeTree(object sender, EventArgs e)
{
this.ProjectId = this.ucTree.ProjectId;
this.BindGrid();
this.GetButtonPower();
if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
{
btnNew.Hidden = true;
}
}
/// <summary> /// <summary>
/// 绑定数据 /// 绑定数据
/// </summary> /// </summary>
private void BindGrid() private void BindGrid()
{ {
if (string.IsNullOrEmpty(this.ProjectId))
{
return;
}
//DateTime? sDate = Funs.GetNewDateTime(this.txtDate.Text); //DateTime? sDate = Funs.GetNewDateTime(this.txtDate.Text);
//var dayReports = BLL.SitePerson_DayReportService.getDayReports(this.ProjectId, sDate); //var dayReports = BLL.SitePerson_DayReportService.getDayReports(this.ProjectId, sDate);
//DataTable tb = this.LINQToDataTable(dayReports); //DataTable tb = this.LINQToDataTable(dayReports);
@ -102,7 +130,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
} }
else else
{ {
listStr.Add(new SqlParameter("@ProjectId", this.CurrUser.LoginProjectId)); listStr.Add(new SqlParameter("@ProjectId", this.ProjectId));
} }
if (!string.IsNullOrEmpty(this.txtDate.Text.Trim())) if (!string.IsNullOrEmpty(this.txtDate.Text.Trim()))
{ {
@ -235,7 +263,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
where where
(from z in db.SitePerson_DayReport (from z in db.SitePerson_DayReport
where z.CompileDate <= date && z.CompileDate.Value.Year == date.Year where z.CompileDate <= date && z.CompileDate.Value.Year == date.Year
&& z.ProjectId == this.CurrUser.LoginProjectId && z.ProjectId == this.ProjectId
select z.DayReportId).Contains(y.DayReportId) select z.DayReportId).Contains(y.DayReportId)
select y; select y;
if (q.Count() > 0) if (q.Count() > 0)
@ -257,7 +285,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
{ {
Model.SUBQHSEDB db = Funs.DB; Model.SUBQHSEDB db = Funs.DB;
DateTime date = Convert.ToDateTime(compileDate); DateTime date = Convert.ToDateTime(compileDate);
var q = from y in db.SitePerson_DayReportDetail where (from z in db.SitePerson_DayReport where z.CompileDate <= date && z.ProjectId == this.CurrUser.LoginProjectId select z.DayReportId).Contains(y.DayReportId) select y; var q = from y in db.SitePerson_DayReportDetail where (from z in db.SitePerson_DayReport where z.CompileDate <= date && z.ProjectId == this.ProjectId select z.DayReportId).Contains(y.DayReportId) select y;
if (q.Count() > 0) if (q.Count() > 0)
{ {
return q.Sum(x => x.PersonWorkTime ?? 0).ToString(); return q.Sum(x => x.PersonWorkTime ?? 0).ToString();
@ -279,7 +307,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
{ {
return; return;
} }
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.DayReportMenuId); var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.DayReportMenuId);
if (buttonList.Count() > 0) if (buttonList.Count() > 0)
{ {
if (buttonList.Contains(BLL.Const.BtnAdd)) if (buttonList.Contains(BLL.Const.BtnAdd))
@ -410,13 +438,13 @@ namespace FineUIPro.Web.HSSE.SitePerson
return; return;
} }
DateTime? compileDate = BLL.Funs.GetNewDateTime(this.txtCompileDate.Text); DateTime? compileDate = BLL.Funs.GetNewDateTime(this.txtCompileDate.Text);
if (compileDate.HasValue && !BLL.SitePerson_DayReportService.IsExistDayReport(compileDate.Value, this.CurrUser.LoginProjectId)) if (compileDate.HasValue && !BLL.SitePerson_DayReportService.IsExistDayReport(compileDate.Value, this.ProjectId))
{ {
this.DayReportId = SQLHelper.GetNewID(typeof(Model.SitePerson_DayReport)); this.DayReportId = SQLHelper.GetNewID(typeof(Model.SitePerson_DayReport));
Model.SitePerson_DayReport newDayReport = new Model.SitePerson_DayReport Model.SitePerson_DayReport newDayReport = new Model.SitePerson_DayReport
{ {
DayReportId = this.DayReportId, DayReportId = this.DayReportId,
ProjectId = this.CurrUser.LoginProjectId, ProjectId = this.ProjectId,
CompileMan = this.CurrUser.UserId, CompileMan = this.CurrUser.UserId,
CompileDate = compileDate, CompileDate = compileDate,
States = BLL.Const.State_0 //待提交 States = BLL.Const.State_0 //待提交
@ -424,7 +452,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
BLL.SitePerson_DayReportService.AddDayReport(newDayReport); BLL.SitePerson_DayReportService.AddDayReport(newDayReport);
var units = from x in Funs.DB.Project_ProjectUnit var units = from x in Funs.DB.Project_ProjectUnit
where x.ProjectId == this.CurrUser.LoginProjectId && (x.UnitType == BLL.Const.ProjectUnitType_1 || x.UnitType == BLL.Const.ProjectUnitType_2) where x.ProjectId == this.ProjectId && (x.UnitType == BLL.Const.ProjectUnitType_1 || x.UnitType == BLL.Const.ProjectUnitType_2)
select x; //1为总包2为施工分包 select x; //1为总包2为施工分包
if (units.Count() > 0) if (units.Count() > 0)
{ {
@ -443,7 +471,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
var posts = (from x in Funs.DB.Base_WorkPost var posts = (from x in Funs.DB.Base_WorkPost
join y in Funs.DB.SitePerson_Person join y in Funs.DB.SitePerson_Person
on x.WorkPostId equals y.WorkPostId on x.WorkPostId equals y.WorkPostId
where y.UnitId == item.UnitId && y.ProjectId == this.CurrUser.LoginProjectId where y.UnitId == item.UnitId && y.ProjectId == this.ProjectId
orderby x.WorkPostCode orderby x.WorkPostCode
select x).Distinct().ToList(); select x).Distinct().ToList();
foreach (var postItem in posts) foreach (var postItem in posts)
@ -483,7 +511,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
return; return;
} }
string id = Grid1.SelectedRowID.Split(',')[0]; string id = Grid1.SelectedRowID.Split(',')[0];
if (CommonService.GetAllButtonPowerList(CurrUser.LoginProjectId, CurrUser.UserId, Const.DayReportMenuId, Const.BtnDelete)) if (CommonService.GetAllButtonPowerList(this.ProjectId, CurrUser.UserId, Const.DayReportMenuId, Const.BtnDelete))
{ {
var db = Funs.DB; var db = Funs.DB;
var day = db.SitePerson_DayReport.Where(u => u.DayReportId == id).FirstOrDefault(); var day = db.SitePerson_DayReport.Where(u => u.DayReportId == id).FirstOrDefault();
@ -531,7 +559,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
var checks = from x in Funs.DB.SitePerson_Checking var checks = from x in Funs.DB.SitePerson_Checking
join y in Funs.DB.SitePerson_Person on x.PersonId equals y.PersonId join y in Funs.DB.SitePerson_Person on x.PersonId equals y.PersonId
join z in Funs.DB.Base_WorkPost on y.WorkPostId equals z.WorkPostId join z in Funs.DB.Base_WorkPost on y.WorkPostId equals z.WorkPostId
where x.IntoOutTime > nowMont.Value.AddDays(-1) && x.IntoOutTime < nowMont.Value.AddDays(1) && y.ProjectId == this.CurrUser.LoginProjectId where x.IntoOutTime > nowMont.Value.AddDays(-1) && x.IntoOutTime < nowMont.Value.AddDays(1) && y.ProjectId == this.ProjectId
&& z.WorkPostId == workPostId && z.WorkPostId == workPostId
select x; select x;
count = checks.Count(); count = checks.Count();

View File

@ -32,6 +32,51 @@ namespace FineUIPro.Web.HSSE.SitePerson
/// </remarks> /// </remarks>
protected global::FineUIPro.PageManager PageManager1; protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel2;
/// <summary>
/// panelLeftRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelLeftRegion;
/// <summary>
/// ContentPanel1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ContentPanel ContentPanel1;
/// <summary>
/// ucTree 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Web.Controls.UnitProjectTControl ucTree;
/// <summary>
/// panelCenterRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelCenterRegion;
/// <summary> /// <summary>
/// Panel1 控件。 /// Panel1 控件。
/// </summary> /// </summary>

View File

@ -1,5 +1,7 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PersonList.aspx.cs" Inherits="FineUIPro.Web.HSSE.SitePerson.PersonList" %> <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PersonList.aspx.cs" Inherits="FineUIPro.Web.HSSE.SitePerson.PersonList" %>
<%@ Register Src="~/Controls/UnitProjectTControl.ascx" TagName="UnitProjectTControl" TagPrefix="uc1" %>
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server"> <head runat="server">
@ -20,6 +22,16 @@
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" /> <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region"> <f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items> <Items>
<f:Panel runat="server" ID="panelLeftRegion1" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="380" Title="公司-项目" TitleToolTip="公司-项目" ShowBorder="true"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft" Layout="Fit">
<Items>
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" EnableCollapse="true" AutoScroll="true"
BodyPadding="0px">
<uc1:UnitProjectTControl ID="ucTree" runat="server" Onchange="changeTree" />
</f:ContentPanel>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true" <f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="250" Title="人员信息" TitleToolTip="人员信息" ShowBorder="true" EnableCollapse="true" Width="250" Title="人员信息" TitleToolTip="人员信息" ShowBorder="true"
ShowHeader="false" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft" Layout="Fit"> ShowHeader="false" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft" Layout="Fit">

View File

@ -56,12 +56,19 @@ namespace FineUIPro.Web.HSSE.SitePerson
{ {
Funs.DropDownPageSize(this.ddlPageSize); Funs.DropDownPageSize(this.ddlPageSize);
this.ProjectId = this.CurrUser.LoginProjectId; this.ProjectId = this.CurrUser.LoginProjectId;
if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.ProjectId) if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
{ {
this.ProjectId = Request.Params["projectId"]; this.ProjectId = Request.Params["projectId"];
} }
this.ucTree.UnitId = this.CurrUser.UnitId;
this.ucTree.ProjectId = this.ProjectId;
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
{
this.panelLeftRegion1.Hidden = true;
////权限按钮方法 ////权限按钮方法
this.GetButtonPower(); this.GetButtonPower();
}
this.btnMenuDelete.OnClientClick = Grid1.GetNoSelectionAlertReference("请至少选择一项!"); this.btnMenuDelete.OnClientClick = Grid1.GetNoSelectionAlertReference("请至少选择一项!");
this.btnMenuDelete.ConfirmText = String.Format("你确定要删除选中的&nbsp;<b><script>{0}</script></b>&nbsp;行数据吗?", Grid1.GetSelectedCountReference()); this.btnMenuDelete.ConfirmText = String.Format("你确定要删除选中的&nbsp;<b><script>{0}</script></b>&nbsp;行数据吗?", Grid1.GetSelectedCountReference());
this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString(); this.ddlPageSize.SelectedValue = this.Grid1.PageSize.ToString();
@ -70,6 +77,22 @@ namespace FineUIPro.Web.HSSE.SitePerson
} }
} }
/// <summary>
/// 公司级树加载
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void changeTree(object sender, EventArgs e)
{
this.ProjectId = this.ucTree.ProjectId;
this.InitTreeMenu();
this.BindGrid();
this.GetButtonPower();
if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
{
btnNew.Hidden = true;
}
}
/// <summary> /// <summary>
/// 加载树 /// 加载树
/// </summary> /// </summary>
@ -168,6 +191,11 @@ namespace FineUIPro.Web.HSSE.SitePerson
/// </summary> /// </summary>
private void BindGrid() private void BindGrid()
{ {
if (string.IsNullOrEmpty(this.ProjectId))
{
return;
}
using (Model.SUBQHSEDB db = new Model.SUBQHSEDB(Funs.ConnString)) using (Model.SUBQHSEDB db = new Model.SUBQHSEDB(Funs.ConnString))
{ {
if (this.tvProjectAndUnit != null && !string.IsNullOrEmpty(this.tvProjectAndUnit.SelectedNodeID)) if (this.tvProjectAndUnit != null && !string.IsNullOrEmpty(this.tvProjectAndUnit.SelectedNodeID))
@ -518,7 +546,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
{ {
return; return;
} }
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.PersonListMenuId); var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.PersonListMenuId);
if (buttonList.Count() > 0) if (buttonList.Count() > 0)
{ {
if (buttonList.Contains(BLL.Const.BtnAdd)) if (buttonList.Contains(BLL.Const.BtnAdd))
@ -563,7 +591,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
// Alert.ShowInTop("请选择单位!", MessageBoxIcon.Warning); // Alert.ShowInTop("请选择单位!", MessageBoxIcon.Warning);
// return; // return;
//} //}
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("PersonIn.aspx?ProjectId={0}", this.CurrUser.LoginProjectId, "导入 - "))); PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("PersonIn.aspx?ProjectId={0}", this.ProjectId, "导入 - ")));
} }
/// <summary> /// <summary>
@ -648,7 +676,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
/// <param name="e"></param> /// <param name="e"></param>
protected void btnPersonOut_Click(object sender, EventArgs e) protected void btnPersonOut_Click(object sender, EventArgs e)
{ {
PageContext.RegisterStartupScript(Window3.GetShowReference(String.Format("PersonOut.aspx?ProjectId={0}", this.CurrUser.LoginProjectId, "批量出场 - "))); PageContext.RegisterStartupScript(Window3.GetShowReference(String.Format("PersonOut.aspx?ProjectId={0}", this.ProjectId, "批量出场 - ")));
} }
/// <summary> /// <summary>
@ -699,7 +727,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
protected void btnQR_Click(object sender, EventArgs e) protected void btnQR_Click(object sender, EventArgs e)
{ {
var getPersons = from x in Funs.DB.SitePerson_Person var getPersons = from x in Funs.DB.SitePerson_Person
where x.ProjectId == this.CurrUser.LoginProjectId && x.IdentityCard != null && x.QRCodeAttachUrl == null where x.ProjectId == this.ProjectId && x.IdentityCard != null && x.QRCodeAttachUrl == null
select x; select x;
int num = 0; int num = 0;
if (getPersons.Count() > 0) if (getPersons.Count() > 0)
@ -715,7 +743,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
} }
} }
} }
ShowNotify("操作完成,新生成二维码"+ num.ToString()+"条", MessageBoxIcon.Success); ShowNotify("操作完成,新生成二维码" + num.ToString() + "条", MessageBoxIcon.Success);
} }
/// <summary> /// <summary>
/// 年龄 /// 年龄

View File

@ -41,6 +41,33 @@ namespace FineUIPro.Web.HSSE.SitePerson
/// </remarks> /// </remarks>
protected global::FineUIPro.Panel Panel1; protected global::FineUIPro.Panel Panel1;
/// <summary>
/// panelLeftRegion1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelLeftRegion1;
/// <summary>
/// ContentPanel1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ContentPanel ContentPanel1;
/// <summary>
/// ucTree 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Web.Controls.UnitProjectTControl ucTree;
/// <summary> /// <summary>
/// panelLeftRegion 控件。 /// panelLeftRegion 控件。
/// </summary> /// </summary>

View File

@ -1,5 +1,7 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PersonStatistic.aspx.cs" Inherits="FineUIPro.Web.HSSE.SitePerson.PersonStatistic" %> <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PersonStatistic.aspx.cs" Inherits="FineUIPro.Web.HSSE.SitePerson.PersonStatistic" %>
<%@ Register Src="~/Controls/UnitProjectTControl.ascx" TagName="UnitProjectTControl" TagPrefix="uc1" %>
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server"> <head runat="server">
@ -8,8 +10,24 @@
</head> </head>
<body> <body>
<form id="form1" runat="server"> <form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false" <f:PageManager ID="PageManager1" AutoSizePanelID="Panel2" runat="server" />
<f:Panel ID="Panel2" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="380" Title="公司-项目" TitleToolTip="公司-项目" ShowBorder="true"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft" Layout="Fit">
<Items>
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" EnableCollapse="true" AutoScroll="true"
BodyPadding="0px">
<uc1:UnitProjectTControl ID="ucTree" runat="server" Onchange="changeTree" />
</f:ContentPanel>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" AutoScroll="true">
<Items>
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false" MinHeight="700px"
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch"> ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
<Items> <Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="现场人员统计" EnableCollapse="true" <f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="现场人员统计" EnableCollapse="true"
@ -19,9 +37,11 @@
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left"> <f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
<Items> <Items>
<f:DropDownList runat="server" ID="drpUnit" Label="单位" <f:DropDownList runat="server" ID="drpUnit" Label="单位"
Width="300px" LabelAlign="Right" LabelWidth="50px"></f:DropDownList> Width="300px" LabelAlign="Right" LabelWidth="50px">
</f:DropDownList>
<f:DropDownList runat="server" ID="drpWorkPost" Label="岗位" <f:DropDownList runat="server" ID="drpWorkPost" Label="岗位"
Width="220px" LabelAlign="Right" LabelWidth="50px"></f:DropDownList> Width="220px" LabelAlign="Right" LabelWidth="50px">
</f:DropDownList>
<f:DatePicker ID="txtStartDate" runat="server" Label="开始日期" LabelWidth="80px" Width="220px"> <f:DatePicker ID="txtStartDate" runat="server" Label="开始日期" LabelWidth="80px" Width="220px">
</f:DatePicker> </f:DatePicker>
<f:DatePicker ID="txtEndDate" runat="server" Label="结束日期" LabelWidth="80px" Width="220px"> <f:DatePicker ID="txtEndDate" runat="server" Label="结束日期" LabelWidth="80px" Width="220px">
@ -32,7 +52,7 @@
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left"> <f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
<Items> <Items>
<f:RadioButtonList ID="rblIsUsed" runat="server" Label="进出场" LabelAlign="Right" Width="300px"> <f:RadioButtonList ID="rblIsUsed" runat="server" Label="进出场" LabelAlign="Right" Width="300px">
<f:RadioItem Value="0" Text="全部" Selected="true"/> <f:RadioItem Value="0" Text="全部" Selected="true" />
<f:RadioItem Value="True" Text="进场" /> <f:RadioItem Value="True" Text="进场" />
<f:RadioItem Value="False" Text="出场" /> <f:RadioItem Value="False" Text="出场" />
</f:RadioButtonList> </f:RadioButtonList>
@ -77,6 +97,11 @@
</f:Grid> </f:Grid>
</Items> </Items>
</f:Panel> </f:Panel>
</Items>
</f:Panel>
</Items>
</f:Panel>
</form> </form>
</body> </body>
</html> </html>

View File

@ -33,21 +33,63 @@ namespace FineUIPro.Web.HSSE.SitePerson
{ {
this.ProjectId = Request.Params["projectId"]; this.ProjectId = Request.Params["projectId"];
} }
this.InitDropDownList();
this.ucTree.UnitId = this.CurrUser.UnitId;
this.ucTree.ProjectId = this.ProjectId;
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
{
this.panelLeftRegion.Hidden = true;
//////权限按钮方法
//this.GetButtonPower();
}
this.BindGrid();
}
}
/// <summary>
/// 公司级树加载
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void changeTree(object sender, EventArgs e)
{
this.ProjectId = this.ucTree.ProjectId;
this.InitDropDownList();
this.BindGrid();
//this.GetButtonPower();
//if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
//{
// btnNew.Hidden = true;
//}
}
private void InitDropDownList()
{
UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true); UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
if (ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.ProjectId, this.CurrUser.UnitId)) if (ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.ProjectId, this.CurrUser.UnitId))
{ {
this.drpUnit.SelectedValue = this.CurrUser.UnitId; this.drpUnit.SelectedValue = this.CurrUser.UnitId;
this.drpUnit.Enabled = false; this.drpUnit.Enabled = false;
} }
WorkPostService.InitWorkPostDropDownList(this.drpWorkPost, true); WorkPostService.InitWorkPostDropDownList(this.drpWorkPost, true);
}
private void BindGrid()
{
if (string.IsNullOrEmpty(this.ProjectId))
{
return;
}
var project = BLL.ProjectService.GetProjectByProjectId(this.ProjectId); var project = BLL.ProjectService.GetProjectByProjectId(this.ProjectId);
if (project != null) if (project != null)
{ {
this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", project.StartDate); this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", project.StartDate);
this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now.AddDays(1)); this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now.AddDays(1));
GetPersonStatistic(); this.GetPersonStatistic();
}
} }
} }
@ -71,7 +113,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
{ {
endTime = this.txtEndDate.Text.Trim(); endTime = this.txtEndDate.Text.Trim();
} }
if (this.drpUnit.SelectedValue != Const._Null) if (this.drpUnit.SelectedValue != null && this.drpUnit.SelectedValue != Const._Null)
{ {
unitId = this.drpUnit.SelectedValue; unitId = this.drpUnit.SelectedValue;
} }
@ -79,7 +121,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
{ {
unitId = null; unitId = null;
} }
if (this.drpWorkPost.SelectedValue != Const._Null) if (this.drpWorkPost.SelectedValue != null && this.drpWorkPost.SelectedValue != Const._Null)
{ {
workPostId = this.drpWorkPost.SelectedValue; workPostId = this.drpWorkPost.SelectedValue;
} }

View File

@ -7,10 +7,12 @@
// </自动生成> // </自动生成>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace FineUIPro.Web.HSSE.SitePerson { namespace FineUIPro.Web.HSSE.SitePerson
{
public partial class PersonStatistic { public partial class PersonStatistic
{
/// <summary> /// <summary>
/// form1 控件。 /// form1 控件。
@ -30,6 +32,51 @@ namespace FineUIPro.Web.HSSE.SitePerson {
/// </remarks> /// </remarks>
protected global::FineUIPro.PageManager PageManager1; protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel2;
/// <summary>
/// panelLeftRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelLeftRegion;
/// <summary>
/// ContentPanel1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ContentPanel ContentPanel1;
/// <summary>
/// ucTree 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Web.Controls.UnitProjectTControl ucTree;
/// <summary>
/// panelCenterRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelCenterRegion;
/// <summary> /// <summary>
/// Panel1 控件。 /// Panel1 控件。
/// </summary> /// </summary>

View File

@ -1,5 +1,7 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectWorkPersonStatistic.aspx.cs" Inherits="FineUIPro.Web.HSSE.SitePerson.ProjectWorkPersonStatistic" %> <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ProjectWorkPersonStatistic.aspx.cs" Inherits="FineUIPro.Web.HSSE.SitePerson.ProjectWorkPersonStatistic" %>
<%@ Register Src="~/Controls/UnitProjectTControl.ascx" TagName="UnitProjectTControl" TagPrefix="uc1" %>
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server"> <head runat="server">
@ -8,8 +10,23 @@
</head> </head>
<body> <body>
<form id="form1" runat="server"> <form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" /> <f:PageManager ID="PageManager1" AutoSizePanelID="Panel2" runat="server" />
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false" <f:Panel ID="Panel2" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="380" Title="公司-项目" TitleToolTip="公司-项目" ShowBorder="true"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft" Layout="Fit">
<Items>
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" EnableCollapse="true" AutoScroll="true"
BodyPadding="0px">
<uc1:UnitProjectTControl ID="ucTree" runat="server" Onchange="changeTree" />
</f:ContentPanel>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" AutoScroll="true">
<Items>
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false" MinHeight="700px"
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch"> ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
<Items> <Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="基层人才队伍统计" EnableCollapse="true" <f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="基层人才队伍统计" EnableCollapse="true"
@ -72,6 +89,11 @@
</f:Grid> </f:Grid>
</Items> </Items>
</f:Panel> </f:Panel>
</Items>
</f:Panel>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="基层人才队伍统计" Hidden="true" EnableIFrame="true" EnableMaximize="true" <f:Window ID="Window1" Title="基层人才队伍统计" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" OnClose="Window1_Close" IsModal="true" Target="Parent" EnableResize="false" runat="server" OnClose="Window1_Close" IsModal="true"
Width="1000px" Height="500px"> Width="1000px" Height="500px">

View File

@ -40,28 +40,58 @@ namespace FineUIPro.Web.HSSE.SitePerson
{ {
Funs.DropDownPageSize(this.ddlPageSize); Funs.DropDownPageSize(this.ddlPageSize);
this.ProjectId = this.CurrUser.LoginProjectId; this.ProjectId = this.CurrUser.LoginProjectId;
if (!string.IsNullOrEmpty(Request.Params["ProjectId"])) if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
{ {
this.ProjectId = Request.Params["ProjectId"]; this.ProjectId = Request.Params["projectId"];
} }
if (string.IsNullOrWhiteSpace(this.ProjectId)) if (string.IsNullOrWhiteSpace(this.ProjectId))
{ {
txtProjectName.Hidden = false; txtProjectName.Hidden = false;
btSearch.Hidden = false; btSearch.Hidden = false;
} }
////权限按钮方法
this.ucTree.UnitId = this.CurrUser.UnitId;
this.ucTree.ProjectId = this.ProjectId;
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
{
this.panelLeftRegion.Hidden = true;
//////权限按钮方法
//this.GetButtonPower(); //this.GetButtonPower();
}
ddlPageSize.SelectedValue = Grid1.PageSize.ToString(); ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
// 绑定表格 // 绑定表格
BindGrid(); BindGrid();
} }
} }
/// <summary>
/// 公司级树加载
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void changeTree(object sender, EventArgs e)
{
this.ProjectId = this.ucTree.ProjectId;
this.BindGrid();
this.GetButtonPower();
//if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
//{
// btnNew.Hidden = true;
//}
}
/// <summary> /// <summary>
/// 绑定数据 /// 绑定数据
/// </summary> /// </summary>
private void BindGrid() private void BindGrid()
{ {
if (string.IsNullOrEmpty(this.ProjectId))
{
return;
}
string strSql = string.Empty; string strSql = string.Empty;
strSql = "SELECT ProjectId,ProjectName,Work1,Work2,Work3,Work4 FROM View_ProjectWorkPersonNum WHERE 1=1 "; strSql = "SELECT ProjectId,ProjectName,Work1,Work2,Work3,Work4 FROM View_ProjectWorkPersonNum WHERE 1=1 ";
@ -175,7 +205,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
{ {
return; return;
} }
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.DayReportMenuId); var buttonList = BLL.CommonService.GetAllButtonList(this.ProjectId, this.CurrUser.UserId, BLL.Const.DayReportMenuId);
if (buttonList.Count() > 0) if (buttonList.Count() > 0)
{ {
//if (buttonList.Contains(BLL.Const.BtnAdd)) //if (buttonList.Contains(BLL.Const.BtnAdd))

View File

@ -32,6 +32,51 @@ namespace FineUIPro.Web.HSSE.SitePerson
/// </remarks> /// </remarks>
protected global::FineUIPro.PageManager PageManager1; protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel2;
/// <summary>
/// panelLeftRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelLeftRegion;
/// <summary>
/// ContentPanel1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ContentPanel ContentPanel1;
/// <summary>
/// ucTree 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Web.Controls.UnitProjectTControl ucTree;
/// <summary>
/// panelCenterRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelCenterRegion;
/// <summary> /// <summary>
/// Panel1 控件。 /// Panel1 控件。
/// </summary> /// </summary>

View File

@ -1,5 +1,7 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkPostStatistic.aspx.cs" Inherits="FineUIPro.Web.HSSE.SitePerson.WorkPostStatistic" %> <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkPostStatistic.aspx.cs" Inherits="FineUIPro.Web.HSSE.SitePerson.WorkPostStatistic" %>
<%@ Register Src="~/Controls/UnitProjectTControl.ascx" TagName="UnitProjectTControl" TagPrefix="uc1" %>
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server"> <head runat="server">
@ -8,8 +10,23 @@
</head> </head>
<body> <body>
<form id="form1" runat="server"> <form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" /> <f:PageManager ID="PageManager1" AutoSizePanelID="Panel2" runat="server" />
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false" <f:Panel ID="Panel2" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="380" Title="公司-项目" TitleToolTip="公司-项目" ShowBorder="true"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft" Layout="Fit">
<Items>
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" EnableCollapse="true" AutoScroll="true"
BodyPadding="0px">
<uc1:UnitProjectTControl ID="ucTree" runat="server" Onchange="changeTree" />
</f:ContentPanel>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" AutoScroll="true">
<Items>
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false" MinHeight="700px"
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch"> ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
<Items> <Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="现场岗位人工时统计" EnableCollapse="true" <f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="现场岗位人工时统计" EnableCollapse="true"
@ -20,9 +37,11 @@
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left"> <f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
<Items> <Items>
<f:DropDownList runat="server" ID="drpUnit" Label="单位" <f:DropDownList runat="server" ID="drpUnit" Label="单位"
Width="300px" LabelAlign="Right" LabelWidth="50px"></f:DropDownList> Width="300px" LabelAlign="Right" LabelWidth="50px">
</f:DropDownList>
<f:DropDownList runat="server" ID="drpWorkPost" Label="岗位" <f:DropDownList runat="server" ID="drpWorkPost" Label="岗位"
Width="200px" LabelAlign="Right" LabelWidth="50px"></f:DropDownList> Width="200px" LabelAlign="Right" LabelWidth="50px">
</f:DropDownList>
<f:DatePicker ID="txtStartDate" runat="server" Label="开始日期" LabelWidth="80px" Width="210px" EnableEdit="false"> <f:DatePicker ID="txtStartDate" runat="server" Label="开始日期" LabelWidth="80px" Width="210px" EnableEdit="false">
</f:DatePicker> </f:DatePicker>
<f:DatePicker ID="txtEndDate" runat="server" Label="结束日期" LabelWidth="80px" Width="210px" EnableEdit="false"> <f:DatePicker ID="txtEndDate" runat="server" Label="结束日期" LabelWidth="80px" Width="210px" EnableEdit="false">
@ -73,6 +92,10 @@
</f:Grid> </f:Grid>
</Items> </Items>
</f:Panel> </f:Panel>
</Items>
</f:Panel>
</Items>
</f:Panel>
</form> </form>
</body> </body>
</html> </html>

View File

@ -29,24 +29,62 @@ namespace FineUIPro.Web.HSSE.SitePerson
{ {
Funs.DropDownPageSize(this.ddlPageSize); Funs.DropDownPageSize(this.ddlPageSize);
this.ProjectId = this.CurrUser.LoginProjectId; this.ProjectId = this.CurrUser.LoginProjectId;
if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.ProjectId) if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
{ {
this.ProjectId = Request.Params["projectId"]; this.ProjectId = Request.Params["projectId"];
} }
this.InitDropDownList();
this.ucTree.UnitId = this.CurrUser.UnitId;
this.ucTree.ProjectId = this.ProjectId;
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
{
this.panelLeftRegion.Hidden = true;
//////权限按钮方法
//this.GetButtonPower();
}
this.BindGrid();
}
}
public static List<Model.SitePerson_PersonInOut> getAllPersonInOutList;
/// <summary>
/// 公司级树加载
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void changeTree(object sender, EventArgs e)
{
this.ProjectId = this.ucTree.ProjectId;
this.InitDropDownList();
//this.GetButtonPower();
//if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
//{
// btnNew.Hidden = true;
//}
this.BindGrid();
}
private void InitDropDownList()
{
WorkPostService.InitWorkPostDropDownList(this.drpWorkPost, true);
this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now.AddMonths(-1));
this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true); UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
this.drpUnit.SelectedValue = string.IsNullOrEmpty(this.CurrUser.UnitId) ? CommonService.GetMainProjectUnitId(this.CurrUser.LoginProjectId) : this.CurrUser.UnitId; this.drpUnit.SelectedValue = string.IsNullOrEmpty(this.CurrUser.UnitId) ? CommonService.GetMainProjectUnitId(this.ProjectId) : this.CurrUser.UnitId;
if (ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.ProjectId, this.CurrUser.UnitId)) if (ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.ProjectId, this.CurrUser.UnitId))
{ {
this.drpUnit.Enabled = false; this.drpUnit.Enabled = false;
} }
WorkPostService.InitWorkPostDropDownList(this.drpWorkPost, true); }
this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now.AddMonths(-1));
this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now); private void BindGrid()
{
if (string.IsNullOrEmpty(this.ProjectId))
{
return;
}
this.setData(); this.setData();
GetPersonStatistic(); this.GetPersonStatistic();
} }
}
public static List<Model.SitePerson_PersonInOut> getAllPersonInOutList;
/// <summary> /// <summary>
/// ///

View File

@ -7,10 +7,12 @@
// </自动生成> // </自动生成>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
namespace FineUIPro.Web.HSSE.SitePerson { namespace FineUIPro.Web.HSSE.SitePerson
{
public partial class WorkPostStatistic { public partial class WorkPostStatistic
{
/// <summary> /// <summary>
/// form1 控件。 /// form1 控件。
@ -30,6 +32,51 @@ namespace FineUIPro.Web.HSSE.SitePerson {
/// </remarks> /// </remarks>
protected global::FineUIPro.PageManager PageManager1; protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel2;
/// <summary>
/// panelLeftRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelLeftRegion;
/// <summary>
/// ContentPanel1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ContentPanel ContentPanel1;
/// <summary>
/// ucTree 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Web.Controls.UnitProjectTControl ucTree;
/// <summary>
/// panelCenterRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelCenterRegion;
/// <summary> /// <summary>
/// Panel1 控件。 /// Panel1 控件。
/// </summary> /// </summary>

View File

@ -50,7 +50,7 @@
<span>工程</span> <span>工程</span>
</div> </div>
<%--<div id="rb_sy" class="login-help-left"> <%-- <div id="rb_sy" class="login-help-left" hidden="hidden">
<div class="checkbox"> <div class="checkbox">
<div class="basic-check"> <div class="basic-check">
<div id="sy" class="checkbox-content"></div> <div id="sy" class="checkbox-content"></div>
@ -117,26 +117,26 @@
var $gs = document.getElementById('gs'); var $gs = document.getElementById('gs');
var $sg = document.getElementById('sg'); var $sg = document.getElementById('sg');
var $sy = document.getElementById('sy'); //var $sy = document.getElementById('sy');
var $rb_gs = document.getElementById('rb_gs'); var $rb_gs = document.getElementById('rb_gs');
var $rb_sg = document.getElementById('rb_sg'); var $rb_sg = document.getElementById('rb_sg');
var $rb_sy = document.getElementById('rb_sy'); //var $rb_sy = document.getElementById('rb_sy');
$rb_gs.onclick = function () { $rb_gs.onclick = function () {
if ($rb_gs.className.indexOf('active') !== -1) { if ($rb_gs.className.indexOf('active') !== -1) {
$rb_gs.classList.remove("active"); $rb_gs.classList.remove("active");
$rb_sg.classList.remove("active"); $rb_sg.classList.remove("active");
$rb_sy.classList.remove("active"); //$rb_sy.classList.remove("active");
$gs.classList.remove("active"); $gs.classList.remove("active");
$sg.classList.remove("active"); $sg.classList.remove("active");
$sy.classList.remove("active"); //$sy.classList.remove("active");
} else { } else {
$rb_gs.classList.add("active"); $rb_gs.classList.add("active");
$rb_sg.classList.remove("active"); $rb_sg.classList.remove("active");
$rb_sy.classList.remove("active"); //$rb_sy.classList.remove("active");
$gs.classList.add("active"); $gs.classList.add("active");
$sg.classList.remove("active"); $sg.classList.remove("active");
$sy.classList.remove("active"); //$sy.classList.remove("active");
} }
} }
@ -144,37 +144,37 @@
if ($rb_sg.className.indexOf('active') !== -1) { if ($rb_sg.className.indexOf('active') !== -1) {
$rb_gs.classList.remove("active"); $rb_gs.classList.remove("active");
$rb_sg.classList.remove("active"); $rb_sg.classList.remove("active");
$rb_sy.classList.remove("active"); //$rb_sy.classList.remove("active");
$gs.classList.remove("active"); $gs.classList.remove("active");
$sg.classList.remove("active"); $sg.classList.remove("active");
$sy.classList.remove("active"); //$sy.classList.remove("active");
} else { } else {
$rb_gs.classList.remove("active"); $rb_gs.classList.remove("active");
$rb_sg.classList.add("active"); $rb_sg.classList.add("active");
$rb_sy.classList.remove("active"); //$rb_sy.classList.remove("active");
$gs.classList.remove("active"); $gs.classList.remove("active");
$sg.classList.add("active"); $sg.classList.add("active");
$sy.classList.remove("active"); //$sy.classList.remove("active");
} }
} }
$rb_sy.onclick = function () { //$rb_sy.onclick = function () {
if ($rb_sy.className.indexOf('active') !== -1) { // if ($rb_sy.className.indexOf('active') !== -1) {
$rb_gs.classList.remove("active"); // $rb_gs.classList.remove("active");
$rb_sg.classList.remove("active"); // $rb_sg.classList.remove("active");
$rb_sy.classList.remove("active"); // $rb_sy.classList.remove("active");
$gs.classList.remove("active"); // $gs.classList.remove("active");
$sg.classList.remove("active"); // $sg.classList.remove("active");
$sy.classList.remove("active"); // $sy.classList.remove("active");
} else { // } else {
$rb_gs.classList.remove("active"); // $rb_gs.classList.remove("active");
$rb_sg.classList.remove("active"); // $rb_sg.classList.remove("active");
$rb_sy.classList.add("active"); // $rb_sy.classList.add("active");
$gs.classList.remove("active"); // $gs.classList.remove("active");
$sg.classList.remove("active"); // $sg.classList.remove("active");
$sy.classList.add("active"); // $sy.classList.add("active");
} // }
} //}
}) })
</script> </script>
<script type="text/javascript"> <script type="text/javascript">
@ -219,7 +219,7 @@
var pwd = $("#pwd").val() var pwd = $("#pwd").val()
var $gs = document.getElementById('gs'); var $gs = document.getElementById('gs');
var $sg = document.getElementById('sg'); var $sg = document.getElementById('sg');
var $sy = document.getElementById('sy'); //var $sy = document.getElementById('sy');
var rbSys = '施工'; var rbSys = '施工';
if ($gs.className.indexOf('active') !== -1) { if ($gs.className.indexOf('active') !== -1) {
rbSys = '公司/分公司'; rbSys = '公司/分公司';

View File

@ -21,9 +21,7 @@ namespace FineUIPro.Web.common
if (thisUnit != null && thisUnit.CollCropCode== "913700001630777743") if (thisUnit != null && thisUnit.CollCropCode== "913700001630777743")
{ {
Tab3.Hidden=true; Tab3.Hidden=true;
Tab4.Hidden=true; //Tab4.Hidden=true;
} }
if(this.SysType == "SHIYE") if(this.SysType == "SHIYE")
{ {

View File

@ -219,10 +219,10 @@
<f:Button ID="Button4" IconUrl="~/res/image/home.png" CssClass="marginr" runat="server" Text="项目" CssStyle="color: #ffffff;" OnClick="btnHomeProjectIndex_Click" /> <f:Button ID="Button4" IconUrl="~/res/image/home.png" CssClass="marginr" runat="server" Text="项目" CssStyle="color: #ffffff;" OnClick="btnHomeProjectIndex_Click" />
</div> </div>
<span></span> <span></span>
<div class="set"> <%-- <div class="set">
<f:Button ID="Button5" IconUrl="~/res/image/home.png" CssClass="marginr" runat="server" Text="实业" CssStyle="color: #ffffff;" OnClick="btnHomeShiYe_Click" /> <f:Button ID="Button5" IconUrl="~/res/image/home.png" CssClass="marginr" runat="server" Text="实业" CssStyle="color: #ffffff;" OnClick="btnHomeShiYe_Click" />
</div> </div>
<span></span> <span></span>--%>
<div class="set"> <div class="set">
<f:Button ID="btnUser" IconUrl="~/res/image/acc.png" Text="苏华" IconAlign="Left" CssStyle="color: #ffffff;" runat="server" /> <f:Button ID="btnUser" IconUrl="~/res/image/acc.png" Text="苏华" IconAlign="Left" CssStyle="color: #ffffff;" runat="server" />
</div> </div>

View File

@ -95,15 +95,6 @@ namespace FineUIPro.Web
/// </remarks> /// </remarks>
protected global::FineUIPro.Button Button4; protected global::FineUIPro.Button Button4;
/// <summary>
/// Button5 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button Button5;
/// <summary> /// <summary>
/// btnUser 控件。 /// btnUser 控件。
/// </summary> /// </summary>