This commit is contained in:
李超 2023-09-04 19:38:45 +08:00
parent 6c19bf6a3e
commit dece3781ec
55 changed files with 2730 additions and 971 deletions

View File

@ -0,0 +1,2 @@
Alter TABLE [dbo].[Common_FileManager]add
[FileCode] [nvarchar](50) NULL

View File

@ -117,6 +117,7 @@ namespace BLL
CompanyTrainingItemId = x.CompanyTrainingItemId,
CompanyTrainingItemCode = z.CompanyTrainingItemCode,
CompanyTrainingItemName = z.CompanyTrainingItemName,
LearningTime = z.LearningTime,
}).ToList();
return getDataLists;
}

View File

@ -6047,5 +6047,16 @@ namespace BLL
/// 项目应急物资管理
/// </summary>
public const string ServerEmergencySupplyMenuId = "3EA741CE-66A6-4CF8-8620-0C5906AC7D94";
/// <summary>
/// 开工报告
/// </summary>
public const string PZHGL_StartWorkReportMenuId = "68A54450-557C-4C33-9121-797C15AF1047";
/// <summary>
/// 施工总平面布置
/// </summary>
public const string PZHGL_LayoutMaptMenuId = "F266456A-991F-45A3-BCD6-CF2515D71E39";
}
}

View File

@ -33,6 +33,7 @@ namespace BLL
newCompanyTrainingItem.AttachUrl = companyTrainingItem.AttachUrl;
newCompanyTrainingItem.CompileMan = companyTrainingItem.CompileMan;
newCompanyTrainingItem.CompileDate = companyTrainingItem.CompileDate;
newCompanyTrainingItem.LearningTime = companyTrainingItem.LearningTime;
db.Training_CompanyTrainingItem.InsertOnSubmit(newCompanyTrainingItem);
db.SubmitChanges();
}
@ -51,6 +52,7 @@ namespace BLL
newCompanyTrainingItem.AttachUrl = companyTrainingItem.AttachUrl;
newCompanyTrainingItem.CompileMan = companyTrainingItem.CompileMan;
newCompanyTrainingItem.CompileDate = companyTrainingItem.CompileDate;
newCompanyTrainingItem.LearningTime = companyTrainingItem.LearningTime;
db.SubmitChanges();
}
}

View File

@ -52,7 +52,8 @@ namespace BLL
ResourcesFromType = trainingItem.ResourcesFromType,
IsPass = trainingItem.IsPass,
UnitId = trainingItem.UnitId,
UpState = trainingItem.UpState
UpState = trainingItem.UpState,
LearningTime=trainingItem.LearningTime
};
db.Training_TrainingItem.InsertOnSubmit(newTrainingItem);
@ -80,6 +81,7 @@ namespace BLL
newTrainingItem.ResourcesFrom = trainingItem.ResourcesFrom;
newTrainingItem.ResourcesFromType = trainingItem.ResourcesFromType;
newTrainingItem.UpState = trainingItem.UpState;
newTrainingItem.LearningTime = trainingItem.LearningTime;
db.SubmitChanges();
}

View File

@ -71,35 +71,36 @@
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList ID="drpModelType" runat="server" Label="模板类别" LabelAlign="Right" EnableEdit="true">
<f:DropDownList ID="drpModelType" runat="server" Label="模板类别" LabelAlign="Right" EnableEdit="true" AutoPostBack="true" OnSelectedIndexChanged="btnQuery_Click" >
<f:ListItem Text="施工组织设计模板" Value="1" />
<f:ListItem Text="施工方案模板" Value="3" />
</f:DropDownList>
<f:DropDownList ID="drpUnitWork" runat="server" Label="单位工程" LabelAlign="Right" EnableEdit="true">
<f:DropDownList ID="drpUnitWork" runat="server" Label="单位工程" LabelAlign="Right" EnableEdit="true" AutoPostBack="true" OnSelectedIndexChanged="btnQuery_Click" >
</f:DropDownList>
<f:DropDownList ID="drpCNProfessional" runat="server" Label="专业" LabelAlign="Right" EnableEdit="true">
<f:DropDownList ID="drpCNProfessional" runat="server" Label="专业" LabelAlign="Right" EnableEdit="true" AutoPostBack="true" OnSelectedIndexChanged="btnQuery_Click" >
</f:DropDownList>
<f:DropDownList ID="drpProposeUnit" runat="server" Label="单位名称" LabelAlign="Right" EnableEdit="true">
<f:DropDownList ID="drpProposeUnit" runat="server" Label="单位名称" LabelAlign="Right" EnableEdit="true" AutoPostBack="true" OnSelectedIndexChanged="btnQuery_Click" >
</f:DropDownList>
<f:DropDownList ID="drpSolutionType" runat="server" Label="方案类别" LabelAlign="Right" EnableEdit="true">
<f:DropDownList ID="drpSolutionType" runat="server" Label="方案类别" LabelAlign="Right" EnableEdit="true" AutoPostBack="true" OnSelectedIndexChanged="btnQuery_Click" >
</f:DropDownList>
</Items>
</f:Toolbar>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList ID="drpState" runat="server" Label="审批状态" LabelAlign="Right" EnableEdit="true" >
<f:DropDownList ID="drpState" runat="server" Label="审批状态" LabelAlign="Right" EnableEdit="true" AutoPostBack="true" OnSelectedIndexChanged="btnQuery_Click" >
<f:ListItem Text="全部" Value="null" />
<f:ListItem Text="已闭合" Value="1" />
<f:ListItem Text="未闭合" Value="0" Selected="true"/>
</f:DropDownList>
<f:Button ID="btnQuery" ToolTip="查询" OnClick="btnQuery_Click" Icon="SystemSearch" EnablePostBack="true" runat="server">
</f:Button>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button runat="server" ID="btnDownLoad" Icon="ArrowDown" ToolTip="模板下载">
<Listeners>
<f:Listener Event="click" Handler="ButtonClick" />
</Listeners>
</f:Button>
<f:Button ID="btnQuery" ToolTip="查询" OnClick="btnQuery_Click" Icon="SystemSearch" EnablePostBack="true" runat="server">
</f:Button>
<f:Button ID="btnRset" ToolTip="重置" OnClick="btnRset_Click" Icon="ArrowUndo" EnablePostBack="true" runat="server">
</f:Button>
<f:Button ID="btnNew" ToolTip="编制" Icon="Add" EnablePostBack="false" runat="server">

View File

@ -7,10 +7,12 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.CQMS.Solution {
namespace FineUIPro.Web.CQMS.Solution
{
public partial class ConstructSolution {
public partial class ConstructSolution
{
/// <summary>
/// form1 控件。
@ -120,15 +122,6 @@ namespace FineUIPro.Web.CQMS.Solution {
/// </remarks>
protected global::FineUIPro.DropDownList drpState;
/// <summary>
/// btnDownLoad 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnDownLoad;
/// <summary>
/// btnQuery 控件。
/// </summary>
@ -138,6 +131,15 @@ namespace FineUIPro.Web.CQMS.Solution {
/// </remarks>
protected global::FineUIPro.Button btnQuery;
/// <summary>
/// btnDownLoad 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnDownLoad;
/// <summary>
/// btnRset 控件。
/// </summary>

View File

@ -73,11 +73,11 @@
<Items>
<f:DropDownList ID="drpProposeUnit" runat="server" Label="单位名称" LabelAlign="Right" EnableEdit="true">
</f:DropDownList>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnQuery" ToolTip="查询" OnClick="btnQuery_Click" Icon="SystemSearch" EnablePostBack="true" runat="server">
</f:Button>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnRset" ToolTip="重置" OnClick="btnRset_Click" Icon="ArrowUndo" EnablePostBack="true" runat="server">
</f:Button>
<f:Button ID="btnNew" ToolTip="编制" Icon="Add" EnablePostBack="false" runat="server">

View File

@ -1510,6 +1510,10 @@
<Content Include="PZHGL\InformationProject\WorkHandover.aspx" />
<Content Include="PZHGL\InformationProject\WorkHandoverEdit.aspx" />
<Content Include="PZHGL\InformationProject\WorkHandoverView.aspx" />
<Content Include="PZHGL\ProjectData\LayoutMap.aspx" />
<Content Include="PZHGL\ProjectData\LayoutMapEdit.aspx" />
<Content Include="PZHGL\StartWorkReport.aspx" />
<Content Include="PZHGL\StartWorkReportEdit.aspx" />
<Content Include="PZHGL\ProjectData\ProjectMap.aspx" />
<Content Include="PZHGL\ProjectData\ProjectMapEdit.aspx" />
<Content Include="PZHGL\ProjectData\ProjectMapView.aspx" />
@ -14755,6 +14759,34 @@
<Compile Include="PZHGL\InformationProject\WorkHandoverView.aspx.designer.cs">
<DependentUpon>WorkHandoverView.aspx</DependentUpon>
</Compile>
<Compile Include="PZHGL\ProjectData\LayoutMap.aspx.cs">
<DependentUpon>LayoutMap.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="PZHGL\ProjectData\LayoutMap.aspx.designer.cs">
<DependentUpon>LayoutMap.aspx</DependentUpon>
</Compile>
<Compile Include="PZHGL\ProjectData\LayoutMapEdit.aspx.cs">
<DependentUpon>LayoutMapEdit.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="PZHGL\ProjectData\LayoutMapEdit.aspx.designer.cs">
<DependentUpon>LayoutMapEdit.aspx</DependentUpon>
</Compile>
<Compile Include="PZHGL\StartWorkReport.aspx.cs">
<DependentUpon>StartWorkReport.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="PZHGL\StartWorkReport.aspx.designer.cs">
<DependentUpon>StartWorkReport.aspx</DependentUpon>
</Compile>
<Compile Include="PZHGL\StartWorkReportEdit.aspx.cs">
<DependentUpon>StartWorkReportEdit.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>
</Compile>
<Compile Include="PZHGL\StartWorkReportEdit.aspx.designer.cs">
<DependentUpon>StartWorkReportEdit.aspx</DependentUpon>
</Compile>
<Compile Include="PZHGL\ProjectData\ProjectMap.aspx.cs">
<DependentUpon>ProjectMap.aspx</DependentUpon>
<SubType>ASPXCodeBehind</SubType>

View File

@ -53,7 +53,7 @@
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="探伤综合报告" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="ISO_ID" AllowCellEditing="true" EnableColumnLines="true"
ClicksToEdit="2" DataIDField="ISO_ID" AllowSorting="true" SortField="bsu_unitcode,WorkAreaCode,ISO_IsoNo"
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="10"
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="20"
OnPageIndexChange="Grid1_PageIndexChange" EnableSummary="true" SummaryPosition="Flow">
<Columns>
<f:TemplateField ColumnID="tfNumber" HeaderText="序号" Width="60px" HeaderTextAlign="Center" TextAlign="Center">

View File

@ -54,7 +54,7 @@
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="管线综合分析" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="ISO_ID" AllowCellEditing="true" EnableColumnLines="true"
ClicksToEdit="2" DataIDField="ISO_ID" AllowSorting="true" SortField="bsu_unitcode,baw_areano,ISO_IsoNo"
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="10"
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="20"
OnPageIndexChange="Grid1_PageIndexChange" EnableSummary="true" SummaryPosition="Flow">
<Columns>
<f:TemplateField ColumnID="tfNumber" HeaderText="序号" Width="60px" HeaderTextAlign="Center" TextAlign="Center">

View File

@ -51,7 +51,7 @@
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="管线综合信息" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="ISO_ID" AllowCellEditing="true" EnableColumnLines="true"
ClicksToEdit="2" DataIDField="ISO_ID" AllowSorting="true" SortField="UnitName,WorkAreaCode,iso_isono"
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="10"
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="20"
OnPageIndexChange="Grid1_PageIndexChange" EnableSummary="true" SummaryPosition="Flow">
<Columns>
<f:TemplateField ColumnID="tfNumber" HeaderText="序号" Width="60px" HeaderTextAlign="Center" TextAlign="Center">

View File

@ -66,7 +66,7 @@ color: #fff;
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="焊口综合信息" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="JOT_ID" AllowCellEditing="true" EnableColumnLines="true"
ClicksToEdit="2" DataIDField="JOT_ID" AllowSorting="true" SortField="WorkAreaCode,ISO_ISONO,JOT_JointNo"
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="10"
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="20"
OnPageIndexChange="Grid1_PageIndexChange" EnableSummary="true" SummaryPosition="Flow">
<Columns>
<f:TemplateField ColumnID="tfNumber" HeaderText="序号" Width="60px" HeaderTextAlign="Center" TextAlign="Center">

View File

@ -55,7 +55,7 @@
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="介质综合分析" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="ISO_ID" AllowCellEditing="true" EnableColumnLines="true"
ClicksToEdit="2" DataIDField="ISO_ID" AllowSorting="true" SortField="bsu_unitcode,baw_areano"
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="10"
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="20"
OnPageIndexChange="Grid1_PageIndexChange" EnableSummary="true" SummaryPosition="Flow">
<Columns>
<f:TemplateField ColumnID="tfNumber" HeaderText="序号" Width="60px" HeaderTextAlign="Center" TextAlign="Center">

View File

@ -57,7 +57,7 @@
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="单位工区质量分析" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="id" AllowCellEditing="true" EnableColumnLines="true"
ClicksToEdit="2" DataIDField="id" AllowSorting="true" SortField="WorkAreaCode"
SortDirection="ASC" OnSort="Grid1_Sort" IsDatabasePaging="true" PageSize="10"
SortDirection="ASC" OnSort="Grid1_Sort" IsDatabasePaging="true" PageSize="20"
OnPageIndexChange="Grid1_PageIndexChange" EnableSummary="true" SummaryPosition="Flow">
<Columns>

View File

@ -55,7 +55,7 @@
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="预制安装进度" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="ISO_ID" AllowCellEditing="true" EnableColumnLines="true"
ClicksToEdit="2" DataIDField="ISO_ID" AllowSorting="true" SortField="bsu_unitcode,baw_areano,ISO_IsoNo"
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="10"
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="20"
OnPageIndexChange="Grid1_PageIndexChange" EnableSummary="true" SummaryPosition="Flow">
<Columns>
<f:TemplateField ColumnID="tfNumber" HeaderText="序号" Width="60px" HeaderTextAlign="Center" TextAlign="Center">

View File

@ -53,7 +53,7 @@
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="委托检测数据一览表" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="WorkAreaCode" AllowCellEditing="true" EnableColumnLines="true"
ClicksToEdit="2" DataIDField="WorkAreaCode" AllowSorting="true" SortField="bsu_unitcode,devicecode,WorkAreaCode"
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="10"
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="20"
OnPageIndexChange="Grid1_PageIndexChange" EnableSummary="true" SummaryPosition="Flow">
<Columns>
<f:TemplateField ColumnID="tfNumber" HeaderText="序号" Width="60px" HeaderTextAlign="Center" TextAlign="Center">
@ -64,7 +64,7 @@
<f:RenderField HeaderText="单位代码" ColumnID="bsu_unitcode" DataField="bsu_unitcode"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="150px">
</f:RenderField>
<f:RenderField HeaderText="单位名称" ColumnID="bsu_unitname" DataField="bsu_unitname"
<f:RenderField HeaderText="单位名称" ColumnID="bsu_unitname" DataField="bsu_unitname" ExpandUnusedSpace="true"
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" Width="320px">
</f:RenderField>
<f:RenderField HeaderText="装置名称" ColumnID="devicename" DataField="devicename"

View File

@ -75,7 +75,7 @@
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="单位工区质量分析" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="baw_areano" AllowCellEditing="true" EnableColumnLines="true"
ClicksToEdit="2" DataIDField="baw_areano" AllowSorting="true" SortField="bsu_unitname,devicename,baw_areano"
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="10"
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="20"
OnPageIndexChange="Grid1_PageIndexChange" EnableSummary="true" SummaryPosition="Flow">
<Columns>
<f:TemplateField ColumnID="tfNumber" HeaderText="序号" Width="50px" HeaderTextAlign="Center" TextAlign="Center">

View File

@ -82,7 +82,7 @@
EnableCollapse="true" runat="server" BoxFlex="1" EnableColumnLines="true" DataKeyNames="baw_areano"
AllowCellEditing="true" ClicksToEdit="2" DataIDField="baw_areano" AllowSorting="true"
SortField="bsu_unitcode,InstallationName,baw_areano" SortDirection="DESC" OnSort="Grid1_Sort"
AllowPaging="true" IsDatabasePaging="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange"
AllowPaging="true" IsDatabasePaging="true" PageSize="20" OnPageIndexChange="Grid1_PageIndexChange"
EnableTextSelection="True" EnableSummary="true" SummaryPosition="Flow">
<Columns>
<f:TemplateField ColumnID="tfNumber" HeaderText="序号"

View File

@ -74,7 +74,7 @@
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="焊工业绩分析" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="WED_ID" AllowCellEditing="true" EnableColumnLines="true"
ClicksToEdit="2" DataIDField="WED_ID" AllowSorting="true" SortField="TeamGroupName,wed_code"
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="10"
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="20"
OnPageIndexChange="Grid1_PageIndexChange" EnableSummary="true" SummaryPosition="Flow">
<Columns>
<f:TemplateField ColumnID="tfNumber" HeaderText="序号" Width="60px" HeaderTextAlign="Center" TextAlign="Center">

View File

@ -39,6 +39,11 @@
</f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:NumberBox ID="txtLearningTime" Label="时长" runat="server" DecimalPrecision="0" NoDecimal="true" NoNegative="true" ></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">

View File

@ -59,6 +59,10 @@ namespace FineUIPro.Web.HSSE.EduTrain
txtCompanyTrainingItemName.Text = q.CompanyTrainingItemName;
txtCompileMan.Text = q.CompileMan;
hdCompileMan.Text = q.CompileMan;
if (q.LearningTime.HasValue)
{
txtLearningTime.Text = q.LearningTime.Value.ToString();
}
if (q.CompileDate != null)
{
txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", q.CompileDate);
@ -93,6 +97,10 @@ namespace FineUIPro.Web.HSSE.EduTrain
CompanyTrainingItemName = this.txtCompanyTrainingItemName.Text.Trim(),
CompileMan = hdCompileMan.Text.Trim()
};
if (!string.IsNullOrEmpty(txtLearningTime.Text))
{
newCompanyTrainItem.LearningTime = int.Parse(txtLearningTime.Text);
}
if (!string.IsNullOrEmpty(txtCompileDate.Text.Trim()))
{
newCompanyTrainItem.CompileDate = Convert.ToDateTime(txtCompileDate.Text.Trim());

View File

@ -7,10 +7,12 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.HSSE.EduTrain {
namespace FineUIPro.Web.HSSE.EduTrain
{
public partial class CompanyTrainingItemSave {
public partial class CompanyTrainingItemSave
{
/// <summary>
/// form1 控件。
@ -75,6 +77,15 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// </remarks>
protected global::FineUIPro.DatePicker txtCompileDate;
/// <summary>
/// txtLearningTime 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtLearningTime;
/// <summary>
/// Toolbar1 控件。
/// </summary>

View File

@ -39,6 +39,11 @@
</f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:NumberBox ID="txtLearningTime" Label="时长" runat="server" DecimalPrecision="0" NoDecimal="true" NoNegative="true" ></f:NumberBox>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">

View File

@ -58,6 +58,10 @@ namespace FineUIPro.Web.HSSE.EduTrain
txtTrainingItemName.Text = q.TrainingItemName;
txtCompileMan.Text = q.CompileMan;
hdCompileMan.Text = q.CompileMan;
if (q.LearningTime.HasValue)
{
txtLearningTime.Text = q.LearningTime.Value.ToString();
}
if (q.CompileDate != null)
{
txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", q.CompileDate);
@ -95,7 +99,12 @@ namespace FineUIPro.Web.HSSE.EduTrain
TrainingItemName = txtTrainingItemName.Text.Trim(),
CompileMan = hdCompileMan.Text.Trim(),
UnitId = this.CurrUser.UnitId
};
if (!string.IsNullOrEmpty(this.txtLearningTime.Text))
{
trainingItem.LearningTime = int.Parse(this.txtLearningTime.Text);
}
if (!string.IsNullOrEmpty(txtCompileDate.Text.Trim()))
{
trainingItem.CompileDate = Convert.ToDateTime(txtCompileDate.Text.Trim());

View File

@ -7,10 +7,12 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.HSSE.EduTrain {
namespace FineUIPro.Web.HSSE.EduTrain
{
public partial class TrainingItemSave {
public partial class TrainingItemSave
{
/// <summary>
/// form1 控件。
@ -75,6 +77,15 @@ namespace FineUIPro.Web.HSSE.EduTrain {
/// </remarks>
protected global::FineUIPro.DatePicker txtCompileDate;
/// <summary>
/// txtLearningTime 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.NumberBox txtLearningTime;
/// <summary>
/// Toolbar1 控件。
/// </summary>

View File

@ -7,10 +7,12 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.HSSE.EduTrain {
namespace FineUIPro.Web.HSSE.EduTrain
{
public partial class TrainingSave {
public partial class TrainingSave
{
/// <summary>
/// form1 控件。

View File

@ -118,6 +118,7 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
position: 'top'
},
barWidth: 20,
barGap:'5%',
emphasis: {
focus: 'series'
},
@ -127,6 +128,7 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
name: '',
type: 'bar',
barWidth: 20,
barGap:'5%',
label: {
show: true,
position: 'top'
@ -140,6 +142,7 @@ namespace FineUIPro.Web.HSSE.HiddenInspection
name: '',
type: 'bar',
barWidth: 20,
barGap:'5%',
label: {
show: true,
position: 'top'

View File

@ -0,0 +1,83 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LayoutMap.aspx.cs" Inherits="FineUIPro.Web.PZHGL.ProjectData.LayoutMap" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
</head>
<body>
<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"
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="施工总平面布置" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="FileId" AllowCellEditing="true" EnableColumnLines="true"
AllowPaging="true" IsDatabasePaging="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange"
ClicksToEdit="2" DataIDField="FileId" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server">
<Items>
<f:TextBox ID="txtFileName" runat="server" LabelAlign="Right" EmptyText="按名称查询" Width="280px" NextFocusControl="btnSearch"></f:TextBox>
<f:Button ID="btnSearch" Icon="SystemSearch" runat="server" Size="Medium" CssClass="marginr" OnClick="btnSearch_Click" />
<f:ToolbarFill ID="ToolbarFill2" runat="server"></f:ToolbarFill>
<f:Button ID="btnNew" ToolTip="增加" Text="增加" Icon="Add" OnClick="btnAdd_Click" runat="server" Hidden="true">
</f:Button>
<f:Button ID="btnEdit" ToolTip="修改" Text="修改" Icon="Pencil" runat="server" OnClick="btnEdit_Click" Hidden="true">
</f:Button>
<f:Button ID="btnDelete" ToolTip="删除" Text="删除" Icon="Delete" ConfirmText="确定要删除数据吗?" OnClick="btnDelete_Click"
runat="server" Hidden="true">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:TemplateField Width="50px" TextAlign="Center">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="350px" ColumnID="FileCode" DataField="FileCode" FieldType="String" HeaderText="编号" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="350px" ColumnID="FileName" DataField="FileName" FieldType="String" HeaderText="名称" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="UploadManName" DataField="UploadManName" FieldType="String" HeaderText="编制人" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="UploadDate" DataField="UploadDate" FieldType="Date" Renderer="Date" HeaderText="上传日期" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="450px" ColumnID="Remark" DataField="Remark"
FieldType="String" HeaderText="备注" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:TemplateField HeaderText="附件查看" Width="250px" HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
<ItemTemplate>
<asp:LinkButton ID="lbtnUrl1" runat="server" CommandArgument='<%# Bind("AttachUrl") %>'
ToolTip="Attach Download" EnableAjax="false" Height="20px"></asp:LinkButton>
</ItemTemplate>
</f:TemplateField>
</Columns>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
<f:ListItem Text="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="页面编辑" Hidden="true" EnableIFrame="true" EnableMaximize="false"
Target="Parent" EnableResize="true" runat="server" IsModal="true" Width="900px"
Height="420px" OnClose="Window1_Close">
</f:Window>
</form>
</body>
</html>

View File

@ -0,0 +1,150 @@
using BLL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
namespace FineUIPro.Web.PZHGL.ProjectData
{
public partial class LayoutMap : PageBase
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
GetButtonPower();
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
BindGrid();
}
}
private void BindGrid()
{
string strSql = @"SELECT t.FileId,
t.FileName,
t.UploadMan,
t.UploadDate,
t.Remark,
t.AttachUrl,
U.UserName AS UploadManName
FROM dbo.Common_FileManager AS t
LEFT JOIN dbo.Sys_User AS U ON U.UserId = t.UploadMan
WHERE ToMenu='8' and t.ProjectId ='" + this.CurrUser.LoginProjectId+"'";
List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(txtFileName.Text))
{
strSql += " AND t.FileName like @FileName";
listStr.Add(new SqlParameter("@FileName", "%" + this.txtFileName.Text.Trim() + "%"));
}
strSql += " ORDER BY t.UploadDate DESC";
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
Grid1.RecordCount = tb.Rows.Count;
var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table;
Grid1.DataBind();
for (int i = 0; i < Grid1.Rows.Count; i++)
{
System.Web.UI.WebControls.LinkButton lbtnUrl = ((System.Web.UI.WebControls.LinkButton)(this.Grid1.Rows[i].FindControl("lbtnUrl1")));
string url = lbtnUrl.CommandArgument.ToString();
if (!string.IsNullOrEmpty(url))
{
url = url.Replace('\\', '/');
lbtnUrl.Text = BLL.UploadAttachmentService.ShowAttachment2("../../", url);
}
}
}
protected void btnSearch_Click(object sender, EventArgs e)
{
BindGrid();
}
protected void btnAdd_Click(object sender, EventArgs e)
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("LayoutMapEdit.aspx", "增加 - ")));
}
protected void btnEdit_Click(object sender, EventArgs e)
{
string rowId = Grid1.SelectedRowID;
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("LayoutMapEdit.aspx?fileId={0}", rowId, "编辑 - ")));
}
protected void btnDelete_Click(object sender, EventArgs e)
{
if (Grid1.SelectedRowIndexArray.Length > 0)
{
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
{
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
var p = BLL.FileManagerService.GetFileById(rowID);
if (p != null)
{
BLL.FileManagerService.DeleteFileById(rowID);
BLL.LogService.AddSys_Log(this.CurrUser, p.FileName, p.FileId, BLL.Const.PZHGL_LayoutMaptMenuId, BLL.Const.BtnDelete);
}
}
BindGrid();
ShowNotify("删除成功!");
}
}
protected void Grid1_RowDoubleClick(object sender, EventArgs e)
{
string rowId = Grid1.SelectedRowID;
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("StartWorkReportEdit.aspx?fileId={0}", rowId, "编辑 - ")));
}
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
{
Grid1.PageIndex = e.NewPageIndex;
BindGrid();
}
/// <summary>
/// 分页显示条数下拉框
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
BindGrid();
}
protected void Window1_Close(object sender, WindowCloseEventArgs e)
{
BindGrid();
}
#region
/// <summary>
/// 菜单按钮权限
/// </summary>
private void GetButtonPower()
{
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.PZHGL_LayoutMaptMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnAdd))
{
this.btnNew.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnModify))
{
this.btnEdit.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnDelete))
{
this.btnDelete.Hidden = false;
}
}
}
#endregion
}
}

View File

@ -0,0 +1,170 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.PZHGL.ProjectData
{
public partial class LayoutMap
{
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// Grid1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// txtFileName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtFileName;
/// <summary>
/// btnSearch 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSearch;
/// <summary>
/// ToolbarFill2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill2;
/// <summary>
/// btnNew 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnNew;
/// <summary>
/// btnEdit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnEdit;
/// <summary>
/// btnDelete 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnDelete;
/// <summary>
/// Label1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label Label1;
/// <summary>
/// lbtnUrl1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbtnUrl1;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
/// <summary>
/// Window1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window1;
}
}

View File

@ -0,0 +1,69 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LayoutMapEdit.aspx.cs" Inherits="FineUIPro.Web.PZHGL.ProjectData.LayoutMapEdit" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtFileName" runat="server" Label="名称" MaxLength="200" LabelAlign="Right" LabelWidth="150px"></f:TextBox>
<f:TextBox ID="txtCode" runat="server" Label="编号" MaxLength="200" LabelAlign="Right" LabelWidth="150px"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpUploadMan" runat="server" Label="编制人" EnableEdit="true" LabelAlign="Right" LabelWidth="150px"></f:DropDownList>
<f:DatePicker ID="txtUploadDate" runat="server" Label="上传日期" LabelAlign="Right" LabelWidth="150px" ></f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtRemark" runat="server" Label="备注" MaxLength="500" LabelAlign="Right" LabelWidth="150px"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Panel ID="Panel3" Width="300px" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
<Items>
<f:Label ID="lblAttach" runat="server" Label="附件上传" LabelAlign="Right" LabelWidth="150px">
</f:Label>
<f:Button ID="btnAttach" Icon="TableCell" EnablePostBack="true" Text="附件上传" runat="server" OnClick="btnAttach_Click">
</f:Button>
</Items>
</f:Panel>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:HiddenField ID="hdAttachUrl" runat="server">
</f:HiddenField>
<f:HiddenField ID="hdId" runat="server"></f:HiddenField>
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ToolTip="保存" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
Height="500px">
</f:Window>
</form>
</body>
</html>

View File

@ -0,0 +1,125 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
namespace FineUIPro.Web.PZHGL.ProjectData
{
public partial class LayoutMapEdit : PageBase
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
//上传人
UserService.InitUserDropDownList(drpUploadMan, CurrUser.LoginProjectId, false, Const.UnitId_CD);
drpUploadMan.SelectedIndex = 0;
string fileId = Request.Params["fileId"];
if (!string.IsNullOrEmpty(fileId))
{
Model.Common_FileManager t = BLL.FileManagerService.GetFileById(fileId);
if (t != null)
{
this.txtFileName.Text = t.FileName;
this.txtCode.Text = t.FileCode;
if (!string.IsNullOrEmpty(t.UploadMan))
{
this.drpUploadMan.SelectedValue = t.UploadMan;
}
this.txtUploadDate.Text = t.UploadDate.HasValue ? string.Format("{0:yyyy-MM-dd}", t.UploadDate) : "";
this.txtRemark.Text = t.Remark;
hdId.Text = fileId;
}
}
else
{
this.drpUploadMan.SelectedValue = this.CurrUser.UserId;
this.txtUploadDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
}
}
}
#region
protected void btnSave_Click(object sender, EventArgs e)
{
string fileId = Request.Params["fileId"];
Model.Common_FileManager temp = new Model.Common_FileManager();
if (txtFileName.Text == string.Empty)
{
ShowNotify("名称不能为空!", MessageBoxIcon.Warning);
return;
}
else
{
temp.FileName = txtFileName.Text.Trim();
}
if (this.drpUploadMan.SelectedValue != BLL.Const._Null)
{
temp.UploadMan = this.drpUploadMan.SelectedValue;
}
temp.UploadDate = Funs.GetNewDateTime(this.txtUploadDate.Text.Trim());
temp.ToMenu = "8";
temp.ProjectId = this.CurrUser.LoginProjectId;
temp.FileCode = this.txtCode.Text.Trim();
temp.Remark = this.txtRemark.Text.Trim();
if (!string.IsNullOrEmpty(fileId))
{
temp.FileId = fileId;
var att = from x in Funs.DB.AttachFile where x.ToKeyId == fileId select x;
if (att.Count() > 0)
{
temp.AttachUrl = att.First().AttachUrl;
}
BLL.FileManagerService.UpdateFile(temp);
BLL.LogService.AddSys_Log(this.CurrUser, temp.FileName, temp.FileId, BLL.Const.PZHGL_LayoutMaptMenuId, BLL.Const.BtnModify);
ShowNotify("保存成功!", MessageBoxIcon.Success);
}
else
{
if (!string.IsNullOrEmpty(this.hdId.Text))
{
temp.FileId = this.hdId.Text.Trim();
}
else
{
temp.FileId = SQLHelper.GetNewID(typeof(Model.Common_FileManager));
this.hdId.Text = temp.FileId;
}
var att = from x in Funs.DB.AttachFile where x.ToKeyId == temp.FileId select x;
if (att.Count() > 0)
{
temp.AttachUrl = att.First().AttachUrl;
}
BLL.FileManagerService.AddFile(temp);
BLL.LogService.AddSys_Log(this.CurrUser, temp.FileName, temp.FileId, BLL.Const.PZHGL_LayoutMaptMenuId, BLL.Const.BtnAdd);
ShowNotify("保存成功!", MessageBoxIcon.Success);
}
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
#endregion
#region
/// <summary>
/// 附件上传
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnAttach_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(this.hdId.Text)) //新增记录
{
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.Common_FileManager));
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/PZHGL/LschUrl/&menuId={1}", this.hdId.Text, BLL.Const.PZHGL_LayoutMaptMenuId)));
}
#endregion
}
}

View File

@ -0,0 +1,179 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.PZHGL.ProjectData
{
public partial class LayoutMapEdit
{
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// SimpleForm1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form SimpleForm1;
/// <summary>
/// txtFileName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtFileName;
/// <summary>
/// txtCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtCode;
/// <summary>
/// drpUploadMan 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpUploadMan;
/// <summary>
/// txtUploadDate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtUploadDate;
/// <summary>
/// txtRemark 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtRemark;
/// <summary>
/// Panel3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel3;
/// <summary>
/// lblAttach 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label lblAttach;
/// <summary>
/// btnAttach 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnAttach;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// hdAttachUrl 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HiddenField hdAttachUrl;
/// <summary>
/// hdId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HiddenField hdId;
/// <summary>
/// ToolbarFill1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// btnSave 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// btnClose 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnClose;
/// <summary>
/// WindowAtt 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window WindowAtt;
}
}

View File

@ -61,12 +61,7 @@
SortField="ProjectName" FieldType="String" HeaderText="名称" HeaderTextAlign="Center" ExpandUnusedSpace="true"
TextAlign="Left">
</f:RenderField>
<f:TemplateField ColumnID="AttachFile" Width="150px" HeaderText="附件" HeaderTextAlign="Center" TextAlign="Left">
<ItemTemplate>
<asp:LinkButton ID="lbtnFileUrl" runat="server" CssClass="ItemLink"
Text='<%# BLL.AttachFileService.GetBtnFileUrl(Eval("ProjectMapId")) %>' ToolTip="附件查看"></asp:LinkButton>
</ItemTemplate>
</f:TemplateField>
</Columns>
</f:Grid>
</PopPanel>
@ -112,6 +107,12 @@
<asp:Label ID="lblShortContentDef" runat="server" Text='<%# Bind("ShortContentDef") %>' ToolTip='<%#Bind("ContentDef") %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:TemplateField ColumnID="AttachFile" Width="150px" HeaderText="附件" HeaderTextAlign="Center" TextAlign="Left">
<ItemTemplate>
<asp:LinkButton ID="lbtnFileUrl" runat="server" CssClass="ItemLink"
Text='<%# BLL.AttachFileService.GetBtnFileUrl(Eval("ProjectMapId")) %>' ToolTip="附件查看"></asp:LinkButton>
</ItemTemplate>
</f:TemplateField>
<%-- <f:WindowField TextAlign="Left" Width="80px" WindowID="WindowAtt" HeaderTextAlign="Center"
Text="附件" HeaderText="附件" ToolTip="附件查看" DataIFrameUrlFields="ProjectMapId" DataIFrameUrlFormatString="~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/ProjectMapAttachUrl&type=-1&menuId=B58179BE-FE6E-4E91-84FC-D211E4692354"/>--%>
</Columns>

View File

@ -113,15 +113,6 @@ namespace FineUIPro.Web.PZHGL.ProjectData
/// </remarks>
protected global::FineUIPro.RadioButtonList cbType;
/// <summary>
/// lbtnFileUrl 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbtnFileUrl;
/// <summary>
/// txtTitle 控件。
/// </summary>
@ -176,6 +167,15 @@ namespace FineUIPro.Web.PZHGL.ProjectData
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblShortContentDef;
/// <summary>
/// lbtnFileUrl 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbtnFileUrl;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>

View File

@ -0,0 +1,83 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StartWorkReport.aspx.cs" Inherits="FineUIPro.Web.PZHGL.StartWorkReport" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
</head>
<body>
<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"
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="临设策划" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="FileId" AllowCellEditing="true" EnableColumnLines="true"
AllowPaging="true" IsDatabasePaging="true" PageSize="15" OnPageIndexChange="Grid1_PageIndexChange"
ClicksToEdit="2" DataIDField="FileId" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Top" runat="server">
<Items>
<f:TextBox ID="txtFileName" runat="server" LabelAlign="Right" EmptyText="按名称查询" Width="280px" NextFocusControl="btnSearch"></f:TextBox>
<f:Button ID="btnSearch" Icon="SystemSearch" runat="server" Size="Medium" CssClass="marginr" OnClick="btnSearch_Click" />
<f:ToolbarFill ID="ToolbarFill2" runat="server"></f:ToolbarFill>
<f:Button ID="btnNew" ToolTip="增加" Text="增加" Icon="Add" OnClick="btnAdd_Click" runat="server" Hidden="true">
</f:Button>
<f:Button ID="btnEdit" ToolTip="修改" Text="修改" Icon="Pencil" runat="server" OnClick="btnEdit_Click" Hidden="true">
</f:Button>
<f:Button ID="btnDelete" ToolTip="删除" Text="删除" Icon="Delete" ConfirmText="确定要删除数据吗?" OnClick="btnDelete_Click"
runat="server" Hidden="true">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:TemplateField Width="50px" TextAlign="Center">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="350px" ColumnID="FileCode" DataField="FileCode" FieldType="String" HeaderText="编号" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="350px" ColumnID="FileName" DataField="FileName" FieldType="String" HeaderText="名称" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="UploadManName" DataField="UploadManName" FieldType="String" HeaderText="编制人" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="150px" ColumnID="UploadDate" DataField="UploadDate" FieldType="Date" Renderer="Date" HeaderText="上传日期" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="450px" ColumnID="Remark" DataField="Remark"
FieldType="String" HeaderText="备注" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:TemplateField HeaderText="附件查看" Width="250px" HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
<ItemTemplate>
<asp:LinkButton ID="lbtnUrl1" runat="server" CommandArgument='<%# Bind("AttachUrl") %>'
ToolTip="Attach Download" EnableAjax="false" Height="20px"></asp:LinkButton>
</ItemTemplate>
</f:TemplateField>
</Columns>
<PageItems>
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
</f:ToolbarSeparator>
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
<f:ListItem Text="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
</f:DropDownList>
</PageItems>
</f:Grid>
</Items>
</f:Panel>
<f:Window ID="Window1" Title="页面编辑" Hidden="true" EnableIFrame="true" EnableMaximize="false"
Target="Parent" EnableResize="true" runat="server" IsModal="true" Width="900px"
Height="420px" OnClose="Window1_Close">
</f:Window>
</form>
</body>
</html>

View File

@ -0,0 +1,150 @@
using BLL;
using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
namespace FineUIPro.Web.PZHGL
{
public partial class StartWorkReport : PageBase
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
GetButtonPower();
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
BindGrid();
}
}
private void BindGrid()
{
string strSql = @"SELECT t.FileId,
t.FileName,
t.UploadMan,
t.UploadDate,
t.Remark,
t.AttachUrl,
U.UserName AS UploadManName
FROM dbo.Common_FileManager AS t
LEFT JOIN dbo.Sys_User AS U ON U.UserId = t.UploadMan
WHERE ToMenu='8' and t.ProjectId ='" + this.CurrUser.LoginProjectId+"'";
List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(txtFileName.Text))
{
strSql += " AND t.FileName like @FileName";
listStr.Add(new SqlParameter("@FileName", "%" + this.txtFileName.Text.Trim() + "%"));
}
strSql += " ORDER BY t.UploadDate DESC";
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
Grid1.RecordCount = tb.Rows.Count;
var table = this.GetPagedDataTable(Grid1, tb);
Grid1.DataSource = table;
Grid1.DataBind();
for (int i = 0; i < Grid1.Rows.Count; i++)
{
System.Web.UI.WebControls.LinkButton lbtnUrl = ((System.Web.UI.WebControls.LinkButton)(this.Grid1.Rows[i].FindControl("lbtnUrl1")));
string url = lbtnUrl.CommandArgument.ToString();
if (!string.IsNullOrEmpty(url))
{
url = url.Replace('\\', '/');
lbtnUrl.Text = BLL.UploadAttachmentService.ShowAttachment2("../../", url);
}
}
}
protected void btnSearch_Click(object sender, EventArgs e)
{
BindGrid();
}
protected void btnAdd_Click(object sender, EventArgs e)
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("StartWorkReportEdit.aspx", "增加 - ")));
}
protected void btnEdit_Click(object sender, EventArgs e)
{
string rowId = Grid1.SelectedRowID;
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("StartWorkReportEdit.aspx?fileId={0}", rowId, "编辑 - ")));
}
protected void btnDelete_Click(object sender, EventArgs e)
{
if (Grid1.SelectedRowIndexArray.Length > 0)
{
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
{
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
var p = BLL.FileManagerService.GetFileById(rowID);
if (p != null)
{
BLL.FileManagerService.DeleteFileById(rowID);
BLL.LogService.AddSys_Log(this.CurrUser, p.FileName, p.FileId, BLL.Const.PZHGL_StartWorkReportMenuId, BLL.Const.BtnDelete);
}
}
BindGrid();
ShowNotify("删除成功!");
}
}
protected void Grid1_RowDoubleClick(object sender, EventArgs e)
{
string rowId = Grid1.SelectedRowID;
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("StartWorkReportEdit.aspx?fileId={0}", rowId, "编辑 - ")));
}
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
{
Grid1.PageIndex = e.NewPageIndex;
BindGrid();
}
/// <summary>
/// 分页显示条数下拉框
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
BindGrid();
}
protected void Window1_Close(object sender, WindowCloseEventArgs e)
{
BindGrid();
}
#region
/// <summary>
/// 菜单按钮权限
/// </summary>
private void GetButtonPower()
{
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.PZHGL_StartWorkReportMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnAdd))
{
this.btnNew.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnModify))
{
this.btnEdit.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnDelete))
{
this.btnDelete.Hidden = false;
}
}
}
#endregion
}
}

View File

@ -0,0 +1,170 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.PZHGL
{
public partial class StartWorkReport
{
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// Grid1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// txtFileName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtFileName;
/// <summary>
/// btnSearch 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSearch;
/// <summary>
/// ToolbarFill2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill2;
/// <summary>
/// btnNew 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnNew;
/// <summary>
/// btnEdit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnEdit;
/// <summary>
/// btnDelete 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnDelete;
/// <summary>
/// Label1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label Label1;
/// <summary>
/// lbtnUrl1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbtnUrl1;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
/// <summary>
/// Window1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window1;
}
}

View File

@ -0,0 +1,70 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StartWorkReportEdit.aspx.cs" Inherits="FineUIPro.Web.PZHGL.StartWorkReportEdit" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtFileName" runat="server" Label="名称" MaxLength="200" LabelAlign="Right" LabelWidth="150px"></f:TextBox>
<f:TextBox ID="txtCode" runat="server" Label="编号" MaxLength="200" LabelAlign="Right" LabelWidth="150px"></f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpUploadMan" runat="server" Label="编制人" EnableEdit="true" LabelAlign="Right" LabelWidth="150px"></f:DropDownList>
<f:DatePicker ID="txtUploadDate" runat="server" Label="上传日期" LabelAlign="Right" LabelWidth="150px" ></f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtRemark" runat="server" Label="备注" MaxLength="500" LabelAlign="Right" LabelWidth="150px"></f:TextArea>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Panel ID="Panel3" Width="300px" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
<Items>
<f:Label ID="lblAttach" runat="server" Label="附件上传" LabelAlign="Right" LabelWidth="150px">
</f:Label>
<f:Button ID="btnAttach" Icon="TableCell" EnablePostBack="true" Text="附件上传" runat="server" OnClick="btnAttach_Click">
</f:Button>
</Items>
</f:Panel>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:HiddenField ID="hdAttachUrl" runat="server">
</f:HiddenField>
<f:HiddenField ID="hdId" runat="server"></f:HiddenField>
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存" ToolTip="保存" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" Width="700px"
Height="500px">
</f:Window>
</form>
</body>
</html>

View File

@ -0,0 +1,125 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
namespace FineUIPro.Web.PZHGL
{
public partial class StartWorkReportEdit : PageBase
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
//上传人
UserService.InitUserDropDownList(drpUploadMan, CurrUser.LoginProjectId, false, Const.UnitId_CD);
drpUploadMan.SelectedIndex = 0;
string fileId = Request.Params["fileId"];
if (!string.IsNullOrEmpty(fileId))
{
Model.Common_FileManager t = BLL.FileManagerService.GetFileById(fileId);
if (t != null)
{
this.txtFileName.Text = t.FileName;
this.txtCode.Text = t.FileCode;
if (!string.IsNullOrEmpty(t.UploadMan))
{
this.drpUploadMan.SelectedValue = t.UploadMan;
}
this.txtUploadDate.Text = t.UploadDate.HasValue ? string.Format("{0:yyyy-MM-dd}", t.UploadDate) : "";
this.txtRemark.Text = t.Remark;
hdId.Text = fileId;
}
}
else
{
this.drpUploadMan.SelectedValue = this.CurrUser.UserId;
this.txtUploadDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
}
}
}
#region
protected void btnSave_Click(object sender, EventArgs e)
{
string fileId = Request.Params["fileId"];
Model.Common_FileManager temp = new Model.Common_FileManager();
if (txtFileName.Text == string.Empty)
{
ShowNotify("名称不能为空!", MessageBoxIcon.Warning);
return;
}
else
{
temp.FileName = txtFileName.Text.Trim();
}
if (this.drpUploadMan.SelectedValue != BLL.Const._Null)
{
temp.UploadMan = this.drpUploadMan.SelectedValue;
}
temp.UploadDate = Funs.GetNewDateTime(this.txtUploadDate.Text.Trim());
temp.ToMenu = "8";
temp.ProjectId = this.CurrUser.LoginProjectId;
temp.FileCode = this.txtCode.Text.Trim();
temp.Remark = this.txtRemark.Text.Trim();
if (!string.IsNullOrEmpty(fileId))
{
temp.FileId = fileId;
var att = from x in Funs.DB.AttachFile where x.ToKeyId == fileId select x;
if (att.Count() > 0)
{
temp.AttachUrl = att.First().AttachUrl;
}
BLL.FileManagerService.UpdateFile(temp);
BLL.LogService.AddSys_Log(this.CurrUser, temp.FileName, temp.FileId, BLL.Const.PZHGL_StartWorkReportMenuId, BLL.Const.BtnModify);
ShowNotify("保存成功!", MessageBoxIcon.Success);
}
else
{
if (!string.IsNullOrEmpty(this.hdId.Text))
{
temp.FileId = this.hdId.Text.Trim();
}
else
{
temp.FileId = SQLHelper.GetNewID(typeof(Model.Common_FileManager));
this.hdId.Text = temp.FileId;
}
var att = from x in Funs.DB.AttachFile where x.ToKeyId == temp.FileId select x;
if (att.Count() > 0)
{
temp.AttachUrl = att.First().AttachUrl;
}
BLL.FileManagerService.AddFile(temp);
BLL.LogService.AddSys_Log(this.CurrUser, temp.FileName, temp.FileId, BLL.Const.PZHGL_StartWorkReportMenuId, BLL.Const.BtnAdd);
ShowNotify("保存成功!", MessageBoxIcon.Success);
}
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
#endregion
#region
/// <summary>
/// 附件上传
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnAttach_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(this.hdId.Text)) //新增记录
{
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.Common_FileManager));
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/PZHGL/LschUrl/&menuId={1}", this.hdId.Text, BLL.Const.PZHGL_StartWorkReportMenuId)));
}
#endregion
}
}

View File

@ -0,0 +1,179 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.PZHGL
{
public partial class StartWorkReportEdit
{
/// <summary>
/// form1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// SimpleForm1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Form SimpleForm1;
/// <summary>
/// txtFileName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtFileName;
/// <summary>
/// txtCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtCode;
/// <summary>
/// drpUploadMan 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpUploadMan;
/// <summary>
/// txtUploadDate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtUploadDate;
/// <summary>
/// txtRemark 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtRemark;
/// <summary>
/// Panel3 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel3;
/// <summary>
/// lblAttach 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label lblAttach;
/// <summary>
/// btnAttach 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnAttach;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// hdAttachUrl 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HiddenField hdAttachUrl;
/// <summary>
/// hdId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HiddenField hdId;
/// <summary>
/// ToolbarFill1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// btnSave 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// btnClose 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnClose;
/// <summary>
/// WindowAtt 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window WindowAtt;
}
}

View File

@ -23,7 +23,7 @@
runat="server" BoxFlex="1" DataKeyNames="UserId" EnableColumnLines="true"
DataIDField="UserId" AllowSorting="true" SortField="UserCode"
SortDirection="ASC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true"
PageSize="10" OnPageIndexChange="Grid1_PageIndexChange" EnableRowDoubleClickEvent="true"
PageSize="20" OnPageIndexChange="Grid1_PageIndexChange" EnableRowDoubleClickEvent="true"
OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True">
<Toolbars>
<f:Toolbar ID="Toolbar2" Position="Top" runat="server">

View File

@ -7,13 +7,9 @@
<TreeNode id="098307DA-C53D-4EDB-8587-339CD782031F" Text="质量管理规定/程序文件" NavigateUrl="CQMS/ZLCH/Zlglgd.aspx"></TreeNode>
</TreeNode>
<TreeNode id="BBBF69F1-9520-4E0A-B0C0-9F4D3FBF4C10" Text="施工组织设计/施工方案" NavigateUrl=""><TreeNode id="91C4BFDB-0A51-4992-99CC-EB4EC185593D" Text="施工组织设计及施工方案" NavigateUrl="CQMS/Solution/ConstructSolution.aspx"></TreeNode>
<TreeNode id="fd116c94-714b-4b92-a3c9-cc83d358e2b3" Text="超过一定规模危大施工方案" NavigateUrl="CQMS/Comprehensive/MajorPlanApproval.aspx"></TreeNode>
<TreeNode id="B068DA9C-FDB8-42CF-82FB-377F63840431" Text="施工方案定稿文件" NavigateUrl="CQMS/Solution/ConstructSolutionFinal.aspx"></TreeNode>
<TreeNode id="D5F6DFAA-4051-4E0E-818B-2A45F985C5A4" Text="HSE方案模板" NavigateUrl="HSSE/Solution/SolutionTemplate.aspx"></TreeNode>
<TreeNode id="9B42977B-FA0B-48EF-8616-D53FC14E5127" Text="HSE施工方案" NavigateUrl="HSSE/Solution/ConstructSolution.aspx"></TreeNode>
<TreeNode id="5B3D3F7B-9B50-4927-B131-11D13D4D1C19" Text="HSE危大工程施工方案清单" NavigateUrl="HSSE/Solution/LargerHazardList.aspx"></TreeNode>
<TreeNode id="27DE7248-C4FF-4288-BBAC-11CB8741AD67" Text="专家论证清单" NavigateUrl="HSSE/Solution/ExpertArgumentList.aspx"></TreeNode>
<TreeNode id="49485F7E-8E71-4EED-87B4-BF6CC180C69C" Text="HSE技术交底" NavigateUrl="HSSE/License/HSETechnical.aspx"></TreeNode>
<TreeNode id="5B3D3F7B-9B50-4927-B131-11D13D4D1C19" Text="危大工程施工方案清单" NavigateUrl="HSSE/Solution/LargerHazardList.aspx"></TreeNode>
<TreeNode id="fd116c94-714b-4b92-a3c9-cc83d358e2b3" Text="超危大工程施工方案清单" NavigateUrl="CQMS/Comprehensive/MajorPlanApproval.aspx"></TreeNode>
</TreeNode>
<TreeNode id="5DFD5DF9-6356-460C-9DA8-F8AFCEA2F997" Text="ITP管理" NavigateUrl=""><TreeNode id="2571D7F5-4DA4-46E1-8C7F-B926302A52BF" Text="ITP清单" NavigateUrl="CQMS/Foreign/ITPListProject.aspx"></TreeNode>
<TreeNode id="5AA08233-9E04-4808-AC43-DD411C5F9D31" Text="现场控制点裁剪" NavigateUrl="CQMS/WBS/ProjectControlPoint.aspx"></TreeNode>
@ -22,6 +18,7 @@
<TreeNode id="318589ea-2367-4e68-905a-9d7957138df5" Text="设计交底管理" NavigateUrl="CQMS/Comprehensive/DesignDetails.aspx"></TreeNode>
<TreeNode id="8ed133de-5899-4687-878a-20b1f5280f18" Text="人员报验" NavigateUrl="CQMS/Comprehensive/InspectionPerson.aspx"></TreeNode>
<TreeNode id="7e628f48-385f-4d52-8063-d0f812514316" Text="NCR管理" NavigateUrl="CQMS/Comprehensive/NCRManagement.aspx"></TreeNode>
<TreeNode id="aa55fad1-6c51-43f5-8c99-3c6aaae79118" Text="机具报验" NavigateUrl="CQMS/Comprehensive/InspectionMachine.aspx"></TreeNode>
<TreeNode id="9ac06df6-b91a-42bb-9a51-5cd59d8733a9" Text="特种设备管理" NavigateUrl="CQMS/Comprehensive/SpecialEquipment.aspx"></TreeNode>
<TreeNode id="49b87812-c07d-4b0e-9909-960e5cd822c7" Text="压力管道管理" NavigateUrl="CQMS/Comprehensive/PressurePipe.aspx"></TreeNode>
<TreeNode id="1da8fd71-f653-4764-bbfd-65e43f0220e5" Text="质量事故处理记录" NavigateUrl="CQMS/Comprehensive/QualityAccident.aspx"></TreeNode>

View File

@ -12,12 +12,6 @@
<TreeNode id="703D90A7-C40B-4753-943B-8A59AABDC043" Text="管理规定清单" NavigateUrl="HSSE/ActionPlan/ManagerRuleList.aspx"></TreeNode>
</TreeNode>
<TreeNode id="CBC47C8B-141C-446B-90D9-CE8F5AE66CE4" Text="HSE实施计划" NavigateUrl="HSSE/ActionPlan/ActionPlanList.aspx"></TreeNode>
<TreeNode id="9A3212F8-2392-4F21-A8C7-FF5EE3B191F1" Text="危险源辨识与评价" NavigateUrl=""><TreeNode id="762F0BF9-471B-4115-B35E-03A26C573877" Text="环境因素识别与评价" NavigateUrl="HSSE/Hazard/EnvironmentalRiskList.aspx"></TreeNode>
<TreeNode id="EDC50857-7762-4498-83C6-5BDE85036BAB" Text="职业健康安全危险源辨识与评价" NavigateUrl="HSSE/Hazard/HazardList.aspx"></TreeNode>
<TreeNode id="F6A6D53A-150E-43DB-A3C4-6FA18E9401E9" Text="风险提示" NavigateUrl="HSSE/Hazard/HazardPrompt.aspx"></TreeNode>
<TreeNode id="94C36333-C22A-499F-B9DB-53EEF77922AE" Text="项目现场重大HSE因素控制措施一览表" NavigateUrl="HSSE/Hazard/MajorHazardList.aspx"></TreeNode>
<TreeNode id="E22F555A-D41C-4F5F-9734-39B578957732" Text="其他危险源辨识文件" NavigateUrl="HSSE/Hazard/OtherHazard.aspx"></TreeNode>
</TreeNode>
<TreeNode id="26FDE187-F2EE-41D0-95EA-4E8E026F19E5" Text="资质审核" NavigateUrl=""><TreeNode id="DFDFEDA3-FECB-40DA-9216-C67B48002A8A" Text="施工分包资质" NavigateUrl="HSSE/QualityAudit/SubUnitQuality.aspx"></TreeNode>
<TreeNode id="03BAA34B-87D2-4479-9E69-10DD4A62A2A8" Text="采购供货厂家管理" NavigateUrl="HSSE/QualityAudit/InUnit.aspx"></TreeNode>
<TreeNode id="874B4232-E0AD-41CD-8C66-8A7FF2D79358" Text="项目安全协议清单" NavigateUrl="HSSE/QualityAudit/ProjectRecord.aspx"></TreeNode>
@ -47,6 +41,14 @@
<TreeNode id="C7481FEE-EA92-44B8-99F6-C5CA6BBDCFF5" Text="专项检查记录" NavigateUrl="HSSE/Check/CheckSpecialRecord.aspx"></TreeNode>
<TreeNode id="C198EBA8-9E23-4654-92E1-09C61105C522" Text="综合检查" NavigateUrl="HSSE/Check/CheckColligation.aspx"></TreeNode>
<TreeNode id="355265DE-901A-4110-B934-B4DA067C4334" Text="领导带班检查" NavigateUrl="HSSE/Check/ProjectLeaderCheck.aspx"></TreeNode>
<TreeNode id="9A3212F8-2392-4F21-A8C7-FF5EE3B191F1" Text="风险分级动态管控" NavigateUrl=""><TreeNode id="762F0BF9-471B-4115-B35E-03A26C573877" Text="环境因素识别与评价" NavigateUrl="HSSE/Hazard/EnvironmentalRiskList.aspx"></TreeNode>
<TreeNode id="EDC50857-7762-4498-83C6-5BDE85036BAB" Text="风险评价" NavigateUrl="HSSE/Hazard/HazardList.aspx"></TreeNode>
<TreeNode id="74A6B343-5837-416B-AE9C-D2BBCA08E41F" Text="风险信息库" NavigateUrl="HSSE/Hazard/HazardInfo.aspx"></TreeNode>
<TreeNode id="F6A6D53A-150E-43DB-A3C4-6FA18E9401E9" Text="风险分级管控" NavigateUrl="HSSE/Hazard/RiskControl.aspx"></TreeNode>
<TreeNode id="D256E5C8-DC76-4F4D-BABE-A253418823F4" Text="风险巡检记录" NavigateUrl="HSSE/Hazard/RoutingInspection.aspx"></TreeNode>
<TreeNode id="94C36333-C22A-499F-B9DB-53EEF77922AE" Text="项目现场重大HSE因素控制措施一览表" NavigateUrl="HSSE/Hazard/MajorHazardList.aspx"></TreeNode>
<TreeNode id="E22F555A-D41C-4F5F-9734-39B578957732" Text="其他危险源辨识文件" NavigateUrl="HSSE/Hazard/OtherHazard.aspx"></TreeNode>
</TreeNode>
<TreeNode id="80F786CB-E8CA-44AD-A08C-8E4D12BFDCA1" Text="总部检查" NavigateUrl="HSSE/Check/OfficeCheck.aspx"></TreeNode>
<TreeNode id="7B272C3F-39D2-496D-A87C-E2C89A20E4EF" Text="HSE巡检统计(图表)" NavigateUrl="HSSE/HiddenInspection/RiskAnalysisChart.aspx"></TreeNode>
</TreeNode>

View File

@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Tree>
<TreeNode id="8DE7DF6C-979E-48A7-80F7-55287726685F" Text="施工策划" NavigateUrl="">
<TreeNode id="67CEE910-DDFB-4E69-B4B7-DA29B9F43E1D" Text="公司/部门施工管理规定" NavigateUrl="PZHGL/SGCH/GsBmGlgd.aspx">
<TreeNode id="68A54450-557C-4C33-9121-797C15AF1047" Text="开工报告" NavigateUrl="PZHGL/StartWorkReport.aspx">
</TreeNode>
<TreeNode id="8DE7DF6C-979E-48A7-80F7-55287726685F" Text="施工策划" NavigateUrl=""><TreeNode id="67CEE910-DDFB-4E69-B4B7-DA29B9F43E1D" Text="公司/部门施工管理规定" NavigateUrl="PZHGL/SGCH/GsBmGlgd.aspx"></TreeNode>
<TreeNode id="90217D8E-D2AC-4B8D-A1A7-A27317890408" Text="项目施工管理规定" NavigateUrl="PZHGL/SGCH/XmsgGlgd.aspx"></TreeNode>
<TreeNode id="971D3B85-9ECE-4325-BB84-AE9CF7577476" Text="分包策划" NavigateUrl="PZHGL/SGCH/Fbch.aspx"></TreeNode>
<TreeNode id="DC14E545-F8B5-40C1-A604-73A8DA8741CC" Text="人力动员策划" NavigateUrl="PZHGL/SGCH/Rldych.aspx"></TreeNode>
<TreeNode id="6979A259-25A1-4A60-93A2-32FEA577CE70" Text="临设策划" NavigateUrl="PZHGL/SGCH/Lsch.aspx"></TreeNode>
<TreeNode id="F266456A-991F-45A3-BCD6-CF2515D71E39" Text="总平面策划及施工总平面布置" NavigateUrl="PZHGL/ProjectData/ProjectMap.aspx"></TreeNode>
<TreeNode id="F266456A-991F-45A3-BCD6-CF2515D71E39" Text="总平面策划及施工总平面布置" NavigateUrl="PZHGL/ProjectData/LayoutMap.aspx"></TreeNode>
<TreeNode id="8DE7DD60-712B-4545-9784-D3D96BFD2419" Text="大件吊装策划" NavigateUrl="PZHGL/SGCH/Djdzch.aspx"></TreeNode>
</TreeNode>
<TreeNode id="5B794B48-2FB6-4AC5-8628-0B7364A2B6CE" Text="施工重点难点分析及处理" NavigateUrl="PZHGL/SGCH/SgzdNd.aspx"></TreeNode>

View File

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<Tree>
<TreeNode id="831FA803-E2E9-4674-9B56-44E5A5DDCB1A" Text="自动上报集团对接" NavigateUrl="">
<TreeNode id="FFD221D7-AE05-447F-8727-80058A04F401" Text="接口设置" NavigateUrl="TaskScheduling/InterFace/InterFaceSet.aspx">
</TreeNode>
<TreeNode id="FFD221D7-AE05-447F-8727-80058A04F402" Text="任务清单" NavigateUrl="TaskScheduling/InterFace/InterFaceTask.aspx"></TreeNode>
<TreeNode id="FFD221D7-AE05-447F-8727-80058A04F404" Text="数据调用日志" NavigateUrl="TaskScheduling/InterFace/IFLogList.aspx"></TreeNode>
</TreeNode>
</Tree>

View File

@ -42,6 +42,7 @@
<TreeNode id="4BB6AC40-D4D5-439B-85CC-100E431CF3F1" Text="安全措施类型定义" NavigateUrl="BaseInfo/SafetyMeasures.aspx"></TreeNode>
<TreeNode id="3EC2676A-70EB-400E-BE17-EEBBA0B7E9D7" Text="安全巡检类型定义" NavigateUrl="BaseInfo/HazardRegisterTypes.aspx"></TreeNode>
<TreeNode id="CCF9E615-78C9-4085-BCFE-0F9907D3FA0A" Text="物资类别" NavigateUrl="BaseInfo/GoodsCategory.aspx"></TreeNode>
<TreeNode id="E4B526CC-805E-4131-8E18-2FFA6871507E" Text="风险等级" NavigateUrl="BaseInfo/RiskLevel.aspx"></TreeNode>
</TreeNode>
<TreeNode id="85DFE1D3-9E68-46B5-87E5-A525698F2F5F" Text="焊接设置" NavigateUrl=""><TreeNode id="8IDKGJE2-09B1-4607-BC6D-865CE48F0004" Text="焊接耗材定义" NavigateUrl="HJGL/BaseInfo/Consumables.aspx"></TreeNode>
<TreeNode id="4C41FC4C-659E-495E-8BD3-0702F35F534E" Text="管道级别定义" NavigateUrl="HJGL/BaseInfo/PipingClass.aspx"></TreeNode>

View File

@ -26,34 +26,32 @@
<div class="sd-section1-inner">
<div class="sd-user-calc">
<div class="sd-user-calc-left">
<div class="sd-user-calc-item">
<div class="sd-user-calc-item" style="width:100%">
<div class="sd-user-calc-label">
<span>管理人员</span>
</div>
<div class="sd-user-calc-value"><span class="sd-security-ratio-value--blue" runat="server" id="divGLPerson">0</span><span>个</span></div>
</div>
<div class="sd-user-calc-item">
<div class="sd-user-calc-item" style="width:100%">
<div class="sd-user-calc-label">
<span>作业人员</span>
</div>
<div class="sd-user-calc-value"><span class="sd-security-ratio-value--blue" runat="server" id="divZYPerson">0</span><span>个</span></div>
</div>
</div>
<div class="sd-user-calc-right">
<canvas id="circleId" data-value="0" class="sd-user-calc-circle" width="110" height="110"></canvas>
</div>
</div>
</div>
</div>
</div>
<div class="sd-section">
<%-- <div class="sd-section">
<div class="sd-section-title ellipsis">产值统计</div>
<div class="sd-section-content">
<div class="sd-section2-inner">
<div class="sd-output-box" id="outputId"></div>
</div>
</div>
</div>
</div>--%>
<div class="sd-section">
<div class="sd-section-title ellipsis">进度统计</div>
<div class="sd-section-content sd-section-content-scroll">
@ -212,7 +210,7 @@
var cRectificationRate = '<%=CRectificationRate %>'
var cQualifiedRate = '<%=CQualifiedRate %>'
function getValues() {
$('#circleId').attr('data-value', onDutyRate);
//$('#circleId').attr('data-value', onDutyRate);
$('#circleId1').attr('data-value', cRectificationRate);
$('#circleId2').attr('data-value', cQualifiedRate);
}
@ -984,7 +982,7 @@
$(function () {
initCircle()
initBarEchart()
// initBarEchart()
initMapEchart()
if (content_Height > Box_Height) {
initScroll()

View File

@ -66,29 +66,31 @@ namespace FineUIPro.Web
/// </summary>
private void getSitePerson()
{
// var getallin = APIPageDataService.getPersonInOutNum(this.ProjectId, DateTime.Now);
string sql = @"select c.ConstText,b.PostType,count( *) num from SitePerson_Person a left join Base_WorkPost b on a.WorkPostId=b.WorkPostId
LEFT JOIN Sys_Const AS c ON c.ConstValue = b.PostType and c.GroupId = 'PostType' where IsUsed =1 and InTime<='" + DateTime.Now.ToString("yyyy-MM-dd") + "' and (OutTime is null or OutTime>'" + DateTime.Now.ToString("yyyy-MM-dd") + @"' )
and a.ProjectId='" + this.CurrUser.LoginProjectId + @"' and a.AuditorDate is not null
group by c.ConstText,b.PostType ";
List<SqlParameter> listStr = new List<SqlParameter>();
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(sql, parameter);
int allcount = 0;
int mcount = 0;
if (tb != null)
{
foreach (DataRow row in tb.Rows)
{
allcount += int.Parse(row["num"].ToString());
if (!string.IsNullOrEmpty(row["ConstText"].ToString()) && row["ConstText"].ToString().Contains("管理"))
{
mcount += int.Parse(row["num"].ToString());
}
}
}
var getEmployInOutRecords = Funs.DB.T_d_EmployInOutRecord.Where(x => x.ProjectId == this.CurrUser.LoginProjectId && x.RecordDate.Value == DateTime.Now.Date).ToList();
this.divPersonNum.InnerHtml = allcount.ToString();
// var getallin = APIPageDataService.getPersonInOutNum(this.ProjectId, DateTime.Now);
//string sql = @"select c.ConstText,b.PostType,count( *) num from SitePerson_Person a left join Base_WorkPost b on a.WorkPostId=b.WorkPostId
// LEFT JOIN Sys_Const AS c ON c.ConstValue = b.PostType and c.GroupId = 'PostType' where IsUsed =1 and InTime<='" + DateTime.Now.ToString("yyyy-MM-dd") + "' and (OutTime is null or OutTime>'" + DateTime.Now.ToString("yyyy-MM-dd") + @"' )
// and a.ProjectId='" + this.CurrUser.LoginProjectId + @"' and a.AuditorDate is not null
// group by c.ConstText,b.PostType ";
// List<SqlParameter> listStr = new List<SqlParameter>();
// SqlParameter[] parameter = listStr.ToArray();
// DataTable tb = SQLHelper.GetDataTableRunText(sql, parameter);
// int allcount = 0;
// int mcount = 0;
// if (tb != null)
// {
// foreach (DataRow row in tb.Rows)
// {
// allcount += int.Parse(row["num"].ToString());
// if (!string.IsNullOrEmpty(row["ConstText"].ToString()) && row["ConstText"].ToString().Contains("管理"))
// {
// mcount += int.Parse(row["num"].ToString());
// }
// }
// }
this.divPersonNum.InnerHtml = getEmployInOutRecords.Count().ToString();
if (CurrUser.LoginProjectId == "b11a16ea-148c-4bae-a5a1-32158b599482")
{

View File

@ -94,6 +94,7 @@ namespace FineUIPro.Web.common
}
}
}
if (sumMonthCount>0)
{
this.divSafeWorkTime.InnerHtml = sumMonthCount.ToString("0000000000"); ;
@ -143,6 +144,8 @@ namespace FineUIPro.Web.common
/// </summary>
private void getSitePerson()
{
var getEmployInOutRecords = Funs.DB.T_d_EmployInOutRecord.Where(x => x.ProjectId == this.CurrUser.LoginProjectId && x.RecordDate.Value == DateTime.Now.Date).ToList();
string sql = @"select c.ConstText,b.PostType,count( *) num from SitePerson_Person a left join Base_WorkPost b on a.WorkPostId=b.WorkPostId
LEFT JOIN Sys_Const AS c ON c.ConstValue = b.PostType and c.GroupId = 'PostType' where IsUsed =1 and InTime<='" + DateTime.Now.ToString("yyyy-MM-dd") + "' and (OutTime is null or OutTime>'" + DateTime.Now.ToString("yyyy-MM-dd") + @"' )
@ -151,13 +154,13 @@ namespace FineUIPro.Web.common
List<SqlParameter> listStr = new List<SqlParameter>();
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(sql, parameter);
int allcount = 0;
int allcount = getEmployInOutRecords.Count();
int mcount = 0;
if (tb != null)
{
foreach (DataRow row in tb.Rows)
{
allcount += int.Parse(row["num"].ToString());
//allcount += int.Parse(row["num"].ToString());
if (!string.IsNullOrEmpty(row["ConstText"].ToString()) && row["ConstText"].ToString().Contains("管理"))
{
mcount += int.Parse(row["num"].ToString());
@ -165,9 +168,18 @@ namespace FineUIPro.Web.common
}
}
this.divALLPerson.InnerHtml = allcount.ToString();
if (allcount > mcount)
{
this.divGLPerson.InnerHtml = mcount.ToString();
this.divZYPerson.InnerHtml = (allcount - mcount).ToString();
}
else
{
this.divGLPerson.InnerHtml = allcount.ToString();
this.divZYPerson.InnerHtml = "0";
}
if (CurrUser.LoginProjectId == "b11a16ea-148c-4bae-a5a1-32158b599482")
{

View File

@ -68,6 +68,11 @@ namespace Model
/// 培训教材明细编号
/// </summary>
public string CompanyTrainingItemCode
{
get;
set;
}
public int ? LearningTime
{
get;
set;

View File

@ -81903,6 +81903,8 @@ namespace Model
private string _ProjectId;
private string _FileCode;
private EntityRef<Sys_User> _Sys_User;
#region
@ -81925,6 +81927,8 @@ namespace Model
partial void OnRemarkChanged();
partial void OnProjectIdChanging(string value);
partial void OnProjectIdChanged();
partial void OnFileCodeChanging(string value);
partial void OnFileCodeChanged();
#endregion
public Common_FileManager()
@ -82097,6 +82101,26 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_FileCode", DbType="NVarChar(50)")]
public string FileCode
{
get
{
return this._FileCode;
}
set
{
if ((this._FileCode != value))
{
this.OnFileCodeChanging(value);
this.SendPropertyChanging();
this._FileCode = value;
this.SendPropertyChanged("FileCode");
this.OnFileCodeChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Common_FileManager_Sys_User", Storage="_Sys_User", ThisKey="UploadMan", OtherKey="UserId", IsForeignKey=true)]
public Sys_User Sys_User
{
@ -363195,6 +363219,8 @@ namespace Model
private string _WorkPostIds;
private System.Nullable<int> _LearningTime;
private EntitySet<Person_TrainingTask> _Person_TrainingTask;
private EntityRef<Training_CompanyTraining> _Training_CompanyTraining;
@ -363219,6 +363245,8 @@ namespace Model
partial void OnCompileDateChanged();
partial void OnWorkPostIdsChanging(string value);
partial void OnWorkPostIdsChanged();
partial void OnLearningTimeChanging(System.Nullable<int> value);
partial void OnLearningTimeChanged();
#endregion
public Training_CompanyTrainingItem()
@ -363392,6 +363420,26 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LearningTime", DbType="Int")]
public System.Nullable<int> LearningTime
{
get
{
return this._LearningTime;
}
set
{
if ((this._LearningTime != value))
{
this.OnLearningTimeChanging(value);
this.SendPropertyChanging();
this._LearningTime = value;
this.SendPropertyChanged("LearningTime");
this.OnLearningTimeChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Person_TrainingTask_Training_CompanyTrainingItem", Storage="_Person_TrainingTask", ThisKey="CompanyTrainingItemId", OtherKey="CompanyTrainingItemId", DeleteRule="NO ACTION")]
public EntitySet<Person_TrainingTask> Person_TrainingTask
{
@ -369225,6 +369273,8 @@ namespace Model
private string _UpState;
private System.Nullable<int> _LearningTime;
private EntitySet<Training_PlanItem> _Training_PlanItem;
private EntityRef<Sys_User> _Sys_User;
@ -369267,6 +369317,8 @@ namespace Model
partial void OnUnitIdChanged();
partial void OnUpStateChanging(string value);
partial void OnUpStateChanged();
partial void OnLearningTimeChanging(System.Nullable<int> value);
partial void OnLearningTimeChanged();
#endregion
public Training_TrainingItem()
@ -369605,6 +369657,26 @@ namespace Model
}
}
[global::System.Data.Linq.Mapping.ColumnAttribute(Storage="_LearningTime", DbType="Int")]
public System.Nullable<int> LearningTime
{
get
{
return this._LearningTime;
}
set
{
if ((this._LearningTime != value))
{
this.OnLearningTimeChanging(value);
this.SendPropertyChanging();
this._LearningTime = value;
this.SendPropertyChanged("LearningTime");
this.OnLearningTimeChanged();
}
}
}
[global::System.Data.Linq.Mapping.AssociationAttribute(Name="FK_Training_PlanItem_Training_TrainingItem", Storage="_Training_PlanItem", ThisKey="TrainingItemId", OtherKey="TrainingEduItemId", DeleteRule="NO ACTION")]
public EntitySet<Training_PlanItem> Training_PlanItem
{