20240305 开车HSE管理

This commit is contained in:
2024-03-05 09:52:53 +08:00
parent f227bbeba2
commit 8fec129c11
32 changed files with 2334 additions and 2283 deletions
@@ -4,23 +4,23 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>开车险源识别</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>开车险源清单</title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" runat="server" />
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
ShowHeader="false" Layout="HBox" BoxConfigAlign="Stretch">
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="开车险源识别" EnableCollapse="true"
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="开车险源清单" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="HseHazardId" AllowCellEditing="true" ClicksToEdit="2" DataIDField="HseHazardId" AllowSorting="true" SortField="Code"
SortDirection="ASC" OnSort="Grid1_Sort" EnableColumnLines="true" AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowDoubleClickEvent="true" EnableTextSelection="True" OnRowCommand="Grid1_RowCommand" OnRowDoubleClick="Grid1_RowDoubleClick">
<Toolbars>
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList ID="drpUnitWorkId" runat="server" Label="装置/工序" LabelAlign="Right"></f:DropDownList>
<f:TextBox ID="txtCode" runat="server" Label="编号" LabelAlign="Right"></f:TextBox>
<f:Button ID="btnSearch" Icon="SystemSearch" ToolTip="搜索"
EnablePostBack="true" runat="server" OnClick="btnSearch_Click">
</f:Button>
@@ -31,38 +31,29 @@
</f:Toolbar>
</Toolbars>
<Columns>
<f:TemplateField ColumnID="tfPageIndex" Width="55px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
EnableLock="true" Locked="False">
<ItemTemplate>
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField ColumnID="Code" DataField="Code"
FieldType="String" HeaderText="号" HeaderTextAlign="Center" Width="55px" TextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="UnitWorkName" DataField="UnitWorkName"
FieldType="String" HeaderText="装置/工序" HeaderTextAlign="Center" Width="120px">
FieldType="String" HeaderText="号" HeaderTextAlign="Center" Width="250px" TextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="WorkArea" DataField="WorkArea"
FieldType="String" HeaderText="位置/区域" HeaderTextAlign="Center" Width="150px">
FieldType="String" HeaderText="项目区域" HeaderTextAlign="Center" Width="220px">
</f:RenderField>
<f:RenderField ColumnID="UnitHead" DataField="UnitHead"
FieldType="String" HeaderText="装置负责人" HeaderTextAlign="Center" Width="120px">
<f:RenderField ColumnID="IdentificationDate" DataField="IdentificationDate"
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="辨识时间" HeaderTextAlign="Center" Width="120px">
</f:RenderField>
<f:RenderField ColumnID="Supervisor" DataField="Supervisor"
FieldType="String" HeaderText="监督人" HeaderTextAlign="Center" Width="110px">
</f:RenderField>
<f:RenderField ColumnID="Hazards" DataField="Hazards"
FieldType="String" HeaderText="危险源" HeaderTextAlign="Center" Width="110px">
</f:RenderField>
<f:RenderField ColumnID="Harm" DataField="Harm"
FieldType="String" HeaderText="危害" HeaderTextAlign="Center" Width="150px">
</f:RenderField>
<f:RenderField ColumnID="PreventiveMeasures" DataField="PreventiveMeasures"
FieldType="String" HeaderText="预防措施" HeaderTextAlign="Center" Width="180px">
</f:RenderField>
<f:RenderField ColumnID="Darificaiton" DataField="Darificaiton"
FieldType="String" HeaderText="交底/告知" HeaderTextAlign="Center" Width="200px">
<f:RenderField ColumnID="ControlHeaderMan" DataField="ControlHeaderMan"
FieldType="String" HeaderText="控制责任人" HeaderTextAlign="Center" Width="120px">
</f:RenderField>
<f:RenderField ColumnID="Remark" DataField="Remark"
FieldType="String" HeaderText="备注" HeaderTextAlign="Center" Width="120px" ExpandUnusedSpace="true">
</f:RenderField>
<f:LinkButtonField HeaderText="附件" ConfirmTarget="Top" Width="80px" CommandName="AttachUrl" ColumnID="AttachUrl"
TextAlign="Center" ToolTip="附件查看" Icon="Find"/>
TextAlign="Center" ToolTip="附件查看" Icon="Find" />
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
@@ -83,7 +74,7 @@
</f:Grid>
</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" OnClose="Window1_Close"
Width="1000px" Height="400px">
</f:Window>
@@ -17,7 +17,6 @@ namespace FineUIPro.Web.TestRun.DriverHse
GetButtonPower();
BindGrid();
btnNew.OnClientClick = Window1.GetShowReference("HseHazardEdit.aspx") + "return false;";
BLL.UnitWorkService.InitUnitWorkDropDownList(this.drpUnitWorkId, this.CurrUser.LoginProjectId, true);
}
}
#endregion
@@ -26,28 +25,22 @@ namespace FineUIPro.Web.TestRun.DriverHse
//加载列表
public void BindGrid()
{
string strSql = @"SELECT driver.HseHazardId,
driver.ProjectId,
driver.Code,
driver.WorkArea,
driver.UnitHead,
driver.Supervisor,
driver.Hazards,
driver.Harm,
driver.PreventiveMeasures,
driver.Darificaiton,
driver.AttachUrl,
driver.Remark,
driver.UnitWorkId,
UnitWork.UnitWorkName"
+ @" FROM DriverHse_HseHazard AS driver "
+ @" LEFT JOIN WBS_UnitWork AS UnitWork ON UnitWork.UnitWorkId = driver.UnitWorkId WHERE driver.ProjectId=@projectId";
string strSql = @"SELECT hseHazard.HseHazardId,
hseHazard.ProjectId,
hseHazard.Code,
hseHazard.WorkArea,
hseHazard.IdentificationDate,
hseHazard.ControlHeaderMan,
hseHazard.Remark,
hseHazard.AttachUrl"
+ @" FROM DriverHse_HseHazard AS hseHazard "
+ @" WHERE hseHazard.ProjectId=@projectId";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@projectId", this.CurrUser.LoginProjectId));
if (!string.IsNullOrEmpty(this.drpUnitWorkId.SelectedValue) && this.drpUnitWorkId.SelectedValue != BLL.Const._Null)
if (!string.IsNullOrEmpty(this.txtCode.Text.Trim()))
{
strSql += " AND driver.UnitWorkId=@unitWorkId";
listStr.Add(new SqlParameter("@unitWorkId", this.drpUnitWorkId.SelectedValue));
strSql += " AND hseHazard.Code like @code";
listStr.Add(new SqlParameter("@code", "%" + this.txtCode.Text.Trim() + "%"));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
@@ -58,13 +58,13 @@ namespace FineUIPro.Web.TestRun.DriverHse {
protected global::FineUIPro.Toolbar ToolSearch;
/// <summary>
/// drpUnitWorkId 控件。
/// txtCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpUnitWorkId;
protected global::FineUIPro.TextBox txtCode;
/// <summary>
/// btnSearch 控件。
@@ -84,6 +84,15 @@ namespace FineUIPro.Web.TestRun.DriverHse {
/// </remarks>
protected global::FineUIPro.Button btnNew;
/// <summary>
/// lblPageIndex 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblPageIndex;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
@@ -36,41 +36,23 @@
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtCode" runat="server" Label="号" LabelAlign="Right" LabelWidth="120px" MaxLength="50" Required="true" ShowRedStar="true">
<f:TextBox ID="txtCode" runat="server" Label="号" LabelAlign="Right" LabelWidth="120px" MaxLength="50" Required="true" ShowRedStar="true">
</f:TextBox>
<f:DropDownList ID="drpUnitWorkId" runat="server" Label="装置/工序" LabelAlign="Right" LabelWidth="120px" Required="true" ShowRedStar="true"></f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWorkArea" runat="server" Label="位置/区域" LabelAlign="Right" LabelWidth="120px" MaxLength="50">
</f:TextBox>
<f:TextBox ID="txtUnitHead" runat="server" Label="装置负责人" LabelAlign="Right" LabelWidth="120px" MaxLength="50">
<f:TextBox ID="txtWorkArea" runat="server" Label="项目区域" LabelAlign="Right" LabelWidth="120px" MaxLength="50">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtSupervisor" runat="server" Label="监督人" LabelAlign="Right" LabelWidth="120px" MaxLength="50">
</f:TextBox>
<f:TextBox ID="txtHazards" runat="server" Label="危险源" LabelAlign="Right" LabelWidth="120px" MaxLength="50">
<f:DatePicker ID="txtIdentificationDate" runat="server" Label="辨识时间" LabelAlign="Right" LabelWidth="120px"></f:DatePicker>
<f:TextBox ID="txtControlHeaderMan" runat="server" Label="控制责任人" LabelAlign="Right" LabelWidth="120px" MaxLength="50">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtHarm" runat="server" Label="危害" LabelAlign="Right" LabelWidth="120px" MaxLength="50">
</f:TextBox>
<f:TextBox ID="txtPreventiveMeasures" runat="server" Label="预防措施" LabelAlign="Right" LabelWidth="120px" MaxLength="50">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtDarificaiton" runat="server" Label="交底/告知" LabelAlign="Right" LabelWidth="120px" MaxLength="50">
</f:TextBox>
<f:TextBox ID="txtRemark" runat="server" Label="备注" LabelAlign="Right" LabelWidth="120px" MaxLength="500">
</f:TextBox>
<f:TextArea ID="txtRemark" runat="server" Label="备注" LabelAlign="Right" LabelWidth="120px" MaxLength="500">
</f:TextArea>
</Items>
</f:FormRow>
<f:FormRow runat="server">
@@ -15,7 +15,7 @@ namespace FineUIPro.Web.TestRun.DriverHse
{
if (!IsPostBack)
{
BLL.UnitWorkService.InitUnitWorkDropDownList(this.drpUnitWorkId, this.CurrUser.LoginProjectId, true);
//BLL.UnitWorkService.InitUnitWorkDropDownList(this.drpUnitWorkId, this.CurrUser.LoginProjectId, true);
string id = Request.Params["id"];
if (!string.IsNullOrEmpty(id))
@@ -24,18 +24,10 @@ namespace FineUIPro.Web.TestRun.DriverHse
if (data != null)
{
this.hdId.Text = id;
this.txtCode.Text = data.Code;
if (!string.IsNullOrEmpty(data.UnitWorkId))
{
this.drpUnitWorkId.SelectedValue = data.UnitWorkId;
}
this.txtCode.Text = data.Code;
this.txtWorkArea.Text = data.WorkArea;
this.txtUnitHead.Text = data.UnitHead;
this.txtSupervisor.Text = data.Supervisor;
this.txtHazards.Text = data.Hazards;
this.txtHarm.Text = data.Harm;
this.txtPreventiveMeasures.Text = data.PreventiveMeasures;
this.txtDarificaiton.Text = data.Darificaiton;
this.txtIdentificationDate.Text = data.IdentificationDate.HasValue ? string.Format("{0:yyyy-MM-dd}", data.IdentificationDate) : "";
this.txtControlHeaderMan.Text = data.ControlHeaderMan;
this.txtRemark.Text = data.Remark;
}
}
@@ -67,22 +59,12 @@ namespace FineUIPro.Web.TestRun.DriverHse
/// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e)
{
if (this.drpUnitWorkId.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("请选择装置/工序!", MessageBoxIcon.Warning);
return;
}
string id = Request.Params["id"];
Model.DriverHse_HseHazard newData = new Model.DriverHse_HseHazard();
newData.Code = this.txtCode.Text.Trim();
newData.WorkArea = this.txtWorkArea.Text.Trim();
newData.UnitHead = this.txtUnitHead.Text.Trim();
newData.UnitWorkId = this.drpUnitWorkId.SelectedValue;
newData.Supervisor = this.txtSupervisor.Text.Trim();
newData.Hazards = this.txtHazards.Text.Trim();
newData.Harm = this.txtHarm.Text.Trim();
newData.PreventiveMeasures = this.txtPreventiveMeasures.Text.Trim();
newData.Darificaiton = this.txtDarificaiton.Text.Trim();
newData.IdentificationDate =Funs.GetNewDateTime(this.txtIdentificationDate.Text.Trim());
newData.ControlHeaderMan = this.txtControlHeaderMan.Text.Trim();
newData.Remark = this.txtRemark.Text.Trim();
newData.ProjectId = this.CurrUser.LoginProjectId;
if (!string.IsNullOrEmpty(id))
@@ -111,15 +111,6 @@ namespace FineUIPro.Web.TestRun.DriverHse {
/// </remarks>
protected global::FineUIPro.TextBox txtCode;
/// <summary>
/// drpUnitWorkId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpUnitWorkId;
/// <summary>
/// txtWorkArea 控件。
/// </summary>
@@ -130,58 +121,22 @@ namespace FineUIPro.Web.TestRun.DriverHse {
protected global::FineUIPro.TextBox txtWorkArea;
/// <summary>
/// txtUnitHead 控件。
/// txtIdentificationDate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtUnitHead;
protected global::FineUIPro.DatePicker txtIdentificationDate;
/// <summary>
/// txtSupervisor 控件。
/// txtControlHeaderMan 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtSupervisor;
/// <summary>
/// txtHazards 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtHazards;
/// <summary>
/// txtHarm 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtHarm;
/// <summary>
/// txtPreventiveMeasures 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtPreventiveMeasures;
/// <summary>
/// txtDarificaiton 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtDarificaiton;
protected global::FineUIPro.TextBox txtControlHeaderMan;
/// <summary>
/// txtRemark 控件。
@@ -190,7 +145,7 @@ namespace FineUIPro.Web.TestRun.DriverHse {
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtRemark;
protected global::FineUIPro.TextArea txtRemark;
/// <summary>
/// Panel3 控件。
@@ -4,105 +4,106 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>开车作业票管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>施工开车交叉期间作业许可</title>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" runat="server" />
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
ShowHeader="false" Layout="HBox" BoxConfigAlign="Stretch">
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1" OnCustomEvent="PageManager1_CustomEvent"/>
<f:Panel ID="Panel1" CssClass="blockpanel" Margin="5px" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="开车作业票管理" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="HseLicenseId" AllowCellEditing="true" ClicksToEdit="2" DataIDField="HseLicenseId" AllowSorting="true" SortField="Code"
SortDirection="ASC" OnSort="Grid1_Sort" EnableColumnLines="true" AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowDoubleClickEvent="true" EnableTextSelection="True" OnRowDoubleClick="Grid1_RowDoubleClick">
<Toolbars>
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:DropDownList ID="drpUnitWorkId" runat="server" Label="装置/工序" LabelAlign="Right"></f:DropDownList>
<f:Button ID="btnSearch" Icon="SystemSearch" ToolTip="搜索"
EnablePostBack="true" runat="server" OnClick="btnSearch_Click">
</f:Button>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnNew" Icon="Add" ToolTip="新增" EnablePostBack="false" runat="server" Hidden="true">
</f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RenderField ColumnID="Code" DataField="Code"
FieldType="String" HeaderText="序号" HeaderTextAlign="Center" Width="55px" TextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="UnitWorkName" DataField="UnitWorkName"
FieldType="String" HeaderText="装置/工序" HeaderTextAlign="Center" Width="120px">
</f:RenderField>
<f:RenderField ColumnID="WorkArea" DataField="WorkArea"
FieldType="String" HeaderText="位置/区域" HeaderTextAlign="Center" Width="150px">
</f:RenderField>
<f:RenderField ColumnID="WorkContents" DataField="WorkContents"
FieldType="String" HeaderText="作业内容" HeaderTextAlign="Center" Width="180px">
</f:RenderField>
<f:RenderField ColumnID="WorkDate" DataField="WorkDate"
FieldType="Date" Renderer="Date" HeaderText="作业时间" HeaderTextAlign="Center" Width="110px">
</f:RenderField>
<f:RenderField ColumnID="UnitHead" DataField="UnitHead"
FieldType="String" HeaderText="装置负责人" HeaderTextAlign="Center" Width="110px">
</f:RenderField>
<f:RenderField ColumnID="ApplyMan" DataField="ApplyMan"
FieldType="String" HeaderText="申请作业人" HeaderTextAlign="Center" Width="110px">
</f:RenderField>
<f:RenderField ColumnID="ApplyUnit" DataField="ApplyUnit"
FieldType="String" HeaderText="申请作业单位" HeaderTextAlign="Center" Width="180px">
</f:RenderField>
<f:RenderField ColumnID="WorkTicket" DataField="WorkTicket"
FieldType="String" HeaderText="作业票" HeaderTextAlign="Center" Width="160px">
</f:RenderField>
<f:RenderField ColumnID="WorkTicketCode" DataField="WorkTicketCode"
FieldType="String" HeaderText="作业票编号" HeaderTextAlign="Center" Width="160px">
</f:RenderField>
<f:RenderField ColumnID="Detection" DataField="Detection"
FieldType="String" HeaderText="检测、防护" HeaderTextAlign="Center" Width="200px">
</f:RenderField>
<f:RenderField ColumnID="Guardian" DataField="Guardian"
FieldType="String" HeaderText="监护人" HeaderTextAlign="Center" Width="100px">
</f:RenderField>
<f:RenderField ColumnID="WorkEnd" DataField="WorkEnd"
FieldType="String" HeaderText="作业结束" HeaderTextAlign="Center" Width="120px">
</f:RenderField>
<f:RenderField ColumnID="Remark" DataField="Remark"
FieldType="String" HeaderText="备注" HeaderTextAlign="Center" Width="120px" >
</f:RenderField>
<%--<f:LinkButtonField HeaderText="附件" ConfirmTarget="Top" Width="80px" CommandName="AttachUrl" ColumnID="AttachUrl"
TextAlign="Center" ToolTip="附件查看" Icon="Find"/>--%>
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
</Listeners>
<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="10" Value="10" />
<f:ListItem Text="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
<f:ListItem Text="所有行" Value="100000" />
</f:DropDownList>
</PageItems>
</f:Grid>
<f:Panel runat="server" ID="Panel2" RegionPosition="Left" RegionSplit="true" EnableCollapse="true"
Width="300px" Title="作业类别" ShowBorder="true" ShowHeader="false" Layout="Region"
BodyPadding="1px">
<Items>
<f:Tree ID="tvDataTypeInit" EnableCollapse="true" ShowHeader="false" ShowBorder="true"
OnNodeCommand="tvDataTypeInit_NodeCommand" AutoLeafIdentification="true"
runat="server">
<Listeners>
<f:Listener Event="beforenodecontextmenu" Handler="onTreeNodeContextMenu" />
</Listeners>
</f:Tree>
</Items>
</f:Panel>
<f:Panel runat="server" ID="Panel4" RegionPosition="Center" Layout="Fit"
Title="中间面板" ShowBorder="true" ShowHeader="false" BodyPadding="10px">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="施工开车交叉期间作业许可" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="HseLicenseId" AllowCellEditing="true" EnableColumnLines="true" ClicksToEdit="2" DataIDField="HseLicenseId" AllowSorting="true" SortField="Code"
SortDirection="DESC" OnSort="Grid1_Sort" AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
EnableTextSelection="True" OnRowCommand="Grid1_RowCommand" EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
<Toolbars>
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:TextBox runat="server" ID="txtCode" Label="编号" LabelAlign="Right"></f:TextBox>
<f:Button ID="btnSearch" Icon="SystemSearch"
EnablePostBack="true" runat="server" OnClick="btnSearch_Click">
</f:Button>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnNew" Icon="Add" ToolTip="新增" OnClick="btnNew_Click" runat="server" Hidden="true">
</f:Button>
<f:Button ID="btnDownLoad" Icon="DiskDownload" ToolTip="下载模板" runat="server" Hidden="true" OnClick="btnDownLoad_Click" EnableAjaxLoading="false" ></f:Button>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:RenderField ColumnID="Code" DataField="Code"
FieldType="String" HeaderText="编号" HeaderTextAlign="Center" Width="180px" TextAlign="Center">
</f:RenderField>
<f:RenderField ColumnID="ApplyUnit" DataField="ApplyUnit"
FieldType="String" HeaderText="申请单位" HeaderTextAlign="Center" Width="220px">
</f:RenderField>
<f:RenderField ColumnID="ApplyMan" DataField="ApplyMan"
FieldType="String" HeaderText="申请人" HeaderTextAlign="Center" Width="100px">
</f:RenderField>
<f:RenderField ColumnID="HeaderMan" DataField="HeaderMan"
FieldType="String" HeaderText="作业负责人" HeaderTextAlign="Center" Width="100px">
</f:RenderField>
<f:RenderField ColumnID="WorkAddress" DataField="WorkAddress"
FieldType="String" HeaderText="作业地点" HeaderTextAlign="Center" Width="110px">
</f:RenderField>
<f:RenderField ColumnID="WorkContents" DataField="WorkContents"
FieldType="String" HeaderText="作业内容" HeaderTextAlign="Center" Width="110px" ExpandUnusedSpace="true">
</f:RenderField>
<f:RenderField ColumnID="Remark" DataField="Remark"
FieldType="String" HeaderText="备注" HeaderTextAlign="Center" Width="120px">
</f:RenderField>
<f:LinkButtonField HeaderText="附件" ConfirmTarget="Top" Width="80px" CommandName="AttachUrl" ColumnID="AttachUrl"
TextAlign="Center" ToolTip="附件查看" Icon="Find" />
</Columns>
<Listeners>
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
</Listeners>
<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="10" Value="10" />
<f:ListItem Text="15" Value="15" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
<f:ListItem Text="所有行" Value="100000" />
</f:DropDownList>
</PageItems>
</f:Grid>
</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" OnClose="Window1_Close"
Width="1000px" Height="600px">
Width="900px" Height="520px">
</f:Window>
<%--<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
<f:Window ID="Window2" Title="作业类别及模板" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
Width="600px" Height="380px">
</f:Window>
<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>--%>
</f:Window>
<f:Menu ID="Menu1" runat="server">
<Items>
<f:MenuButton ID="btnMenuModify" EnablePostBack="true" runat="server" Text="修改" Icon="Pencil" OnClick="btnMenuModify_Click">
@@ -112,15 +113,36 @@
</f:MenuButton>
</Items>
</f:Menu>
<f:Menu ID="Menu2" runat="server">
<Items>
<f:MenuButton ID="btnMenuAdd" EnablePostBack="true" runat="server" Text="新增" Icon="Add" OnClick="btnMenuAdd_Click" Hidden="true">
</f:MenuButton>
<f:MenuButton ID="btnMenuModify2" EnablePostBack="true" runat="server" Text="修改" Icon="Pencil" OnClick="btnMenuModify2_Click" Hidden="true">
</f:MenuButton>
<f:MenuButton ID="btnMenuDel2" EnablePostBack="true" runat="server" Icon="Delete" Text="删除" ConfirmText="确定删除类别及其下所有内容吗?"
OnClick="btnMenuDel2_Click" Hidden="true">
</f:MenuButton>
</Items>
</f:Menu>
</form>
<script type="text/javascript">
var menuID = '<%= Menu1.ClientID %>';
var menuID2 = '<%= Menu2.ClientID %>';
var currentNodeId;
var currentNodeId;
// 返回false,来阻止浏览器右键菜单
function onTreeNodeContextMenu(event, nodeId) {
currentNodeId = nodeId;
F(menuID2).show();
return false;
}
// 返回false,来阻止浏览器右键菜单
function onRowContextMenu(event, rowId) {
F(menuID).show(); //showAt(event.pageX, event.pageY);
return false;
}
function reloadGrid() {
__doPostBack(null, 'reloadGrid');
}
@@ -3,54 +3,92 @@ using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Linq;
namespace FineUIPro.Web.TestRun.DriverHse
{
public partial class HseLicense : PageBase
{
#region
#region
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
GetButtonPower();
BindGrid();
btnNew.OnClientClick = Window1.GetShowReference("HseLicenseEdit.aspx") + "return false;";
BLL.UnitWorkService.InitUnitWorkDropDownList(this.drpUnitWorkId, this.CurrUser.LoginProjectId, true);
InitTree();//加载类别树
}
}
#region
/// <summary>
/// 绑定资料库树节点
/// </summary>
private void InitTree()
{
this.tvDataTypeInit.Nodes.Clear();
TreeNode node = new TreeNode();
node.Text = "作业类别";
node.NodeID = "0";
node.Expanded = true;
this.tvDataTypeInit.Nodes.Add(node);
var types = BLL.TestRunLicenseTypeService.GetTestRunLicenseTypeList();
foreach (var q in types)
{
TreeNode newNode = new TreeNode();
newNode.ToolTip = q.LicenseTypeName;
newNode.Text = q.LicenseTypeName;
newNode.NodeID = q.LicenseTypeId;
newNode.EnableExpandEvent = true;
newNode.EnableClickEvent = true;
node.Nodes.Add(newNode);
}
}
#endregion
#endregion
#region
/// <summary>
/// 资料库类别树点击事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void tvDataTypeInit_NodeCommand(object sender, TreeCommandEventArgs e)
{
BindGrid();
}
#endregion
#region
//加载列表
/// <summary>
/// 数据绑定
/// </summary>
public void BindGrid()
{
string strSql = @"SELECT driver.HseLicenseId,
driver.ProjectId,
driver.Code,
driver.WorkArea,
driver.WorkContents,
driver.WorkDate,
driver.UnitHead,
driver.ApplyMan,
driver.LicenseTypeId,
driver.ApplyUnit,
driver.WorkTicket,
driver.WorkTicketCode,
driver.Detection,
driver.Guardian,
driver.WorkEnd,
driver.ApplyMan,
driver.HeaderMan,
driver.WorkAddress,
driver.WorkContents,
driver.Remark,
driver.UnitWorkId,
UnitWork.UnitWorkName"
+ @" FROM DriverHse_HseLicense AS driver "
+ @" LEFT JOIN WBS_UnitWork AS UnitWork ON UnitWork.UnitWorkId = driver.UnitWorkId WHERE driver.ProjectId=@projectId";
TestRunLicenseType.LicenseTypeName"
+ @" FROM DriverHse_HseLicense AS driver "
+ @" LEFT JOIN Base_TestRunLicenseType AS TestRunLicenseType ON TestRunLicenseType.LicenseTypeId = driver.LicenseTypeId WHERE driver.ProjectId=@projectId";
List<SqlParameter> listStr = new List<SqlParameter>();
listStr.Add(new SqlParameter("@projectId", this.CurrUser.LoginProjectId));
if (!string.IsNullOrEmpty(this.drpUnitWorkId.SelectedValue) && this.drpUnitWorkId.SelectedValue != BLL.Const._Null)
if (!string.IsNullOrEmpty(this.tvDataTypeInit.SelectedNodeID))
{
strSql += " AND driver.UnitWorkId=@unitWorkId";
listStr.Add(new SqlParameter("@unitWorkId", this.drpUnitWorkId.SelectedValue));
strSql += " AND driver.LicenseTypeId=@licenseTypeId";
listStr.Add(new SqlParameter("@licenseTypeId", this.tvDataTypeInit.SelectedNodeID));
}
if (!string.IsNullOrEmpty(this.txtCode.Text.Trim()))
{
strSql += " AND driver.Code like @code";
listStr.Add(new SqlParameter("@code", "%" + this.txtCode.Text.Trim() + "%"));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
@@ -97,8 +135,12 @@ namespace FineUIPro.Web.TestRun.DriverHse
}
#endregion
#region
//搜索按钮事件
#region
/// <summary>
/// 查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSearch_Click(object sender, EventArgs e)
{
BindGrid();
@@ -113,10 +155,96 @@ namespace FineUIPro.Web.TestRun.DriverHse
/// <param name="e"></param>
protected void Window1_Close(object sender, WindowCloseEventArgs e)
{
InitTree();
BindGrid();
}
#endregion
#region
/// <summary>
/// 增加类别
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnMenuAdd_Click(object sender, EventArgs e)
{
//string id = this.tvDataTypeInit.SelectedNodeID;
//if (!string.IsNullOrEmpty(id))
//{
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("TestRunLicenseTypeEdit.aspx?type={1}", "add", "编辑 - ")));
//}
}
/// <summary>
/// 修改类别
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnMenuModify2_Click(object sender, EventArgs e)
{
string id = this.tvDataTypeInit.SelectedNodeID;
if (!string.IsNullOrEmpty(id) && id != "0")
{
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("TestRunLicenseTypeEdit.aspx?licenseTypeId={0}&type={1}", id, "edit", "编辑 - ")));
}
else
{
Alert.ShowInTop("请选择类别", MessageBoxIcon.Warning);
return;
}
}
/// <summary>
/// 删除类别
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnMenuDel2_Click(object sender, EventArgs e)
{
string id = this.tvDataTypeInit.SelectedNodeID;
if (!string.IsNullOrEmpty(id) && id != "0")
{
Model.Base_TestRunLicenseType testRunLicenseType = BLL.TestRunLicenseTypeService.GetLicenseTypeById(id);
if (testRunLicenseType != null)
{
BLL.TestRunLicenseTypeService.DeleteTestRunLicenseTypeById(id);
}
}
else
{
Alert.ShowInTop("请选择类别", MessageBoxIcon.Warning);
return;
}
InitTree();
}
#endregion
#region
/// <summary>
/// 增加
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnNew_Click(object sender, EventArgs e)
{
if (this.tvDataTypeInit.SelectedNode != null)
{
if (this.tvDataTypeInit.SelectedNodeID != "0")
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HseLicenseEdit.aspx?licenseTypeId={0}", this.tvDataTypeInit.SelectedNode.NodeID, "新增 - ")));
}
else
{
Alert.ShowInTop("请选择类别!", MessageBoxIcon.Warning);
}
}
else
{
Alert.ShowInTop("请选择树节点!", MessageBoxIcon.Warning);
}
}
#endregion
#region
protected void btnMenuModify_Click(object sender, EventArgs e)
{
@@ -143,11 +271,16 @@ namespace FineUIPro.Web.TestRun.DriverHse
Alert.ShowInTop("请至少选择一条记录", MessageBoxIcon.Warning);
return;
}
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HseLicenseEdit.aspx?id={0}", Grid1.SelectedRowID, "编辑 - ")));
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("HseLicenseEdit.aspx?hseLicenseId={0}", Grid1.SelectedRowID, "编辑 - ")));
}
#endregion
#region
/// <summary>
/// 右键删除
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnMenuDel_Click(object sender, EventArgs e)
{
if (Grid1.SelectedRowIndexArray.Length > 0)
@@ -155,8 +288,8 @@ namespace FineUIPro.Web.TestRun.DriverHse
foreach (int rowIndex in Grid1.SelectedRowIndexArray)
{
string rowID = Grid1.DataKeys[rowIndex][0].ToString();
var info = BLL.HseLicenseService.GetHseLicenseById(rowID);
if (info != null)
var hseLicense = BLL.HseLicenseService.GetHseLicenseById(rowID);
if (hseLicense != null)
{
BLL.HseLicenseService.DeleteHseLicenseById(rowID);
}
@@ -173,14 +306,14 @@ namespace FineUIPro.Web.TestRun.DriverHse
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
//protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
//{
//string id = Grid1.DataKeys[e.RowIndex][0].ToString();
//if (e.CommandName == "AttachUrl")
//{
// PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/TestRun/DriverHse/HseLicense&menuId={1}", id, BLL.Const.HseLicenseMenuId)));
//}
//}
protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
{
string id = Grid1.DataKeys[e.RowIndex][0].ToString();
if (e.CommandName == "AttachUrl")
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=-1&toKeyId={0}&path=FileUpload/TestRun/DriverHse/HseLicense&menuId={1}", id, BLL.Const.HseLicenseMenuId)));
}
}
#endregion
#region
@@ -194,19 +327,80 @@ namespace FineUIPro.Web.TestRun.DriverHse
{
if (buttonList.Contains(BLL.Const.BtnAdd))
{
this.btnDownLoad.Hidden = false;
this.btnNew.Hidden = false;
this.btnMenuAdd.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnModify))
{
this.btnDownLoad.Hidden = false;
this.btnMenuModify.Hidden = false;
this.btnMenuModify2.Hidden = false;
this.Grid1.EnableRowDoubleClickEvent = true;
}
if (buttonList.Contains(BLL.Const.BtnDelete))
{
this.btnMenuDel.Hidden = false;
this.btnMenuDel2.Hidden = false;
}
}
}
#endregion
#region
protected void btnDownLoad_Click(object sender, EventArgs e)
{
if (this.tvDataTypeInit.SelectedNode != null)
{
if (this.tvDataTypeInit.SelectedNodeID != "0")
{
Model.AttachFile attachFile = BLL.AttachFileService.GetAttachFile(this.tvDataTypeInit.SelectedNodeID, BLL.Const.HseLicenseMenuId);
if (attachFile != null)
{
PageContext.RegisterStartupScript(Confirm.GetShowReference("是否确认下载作业类别模板?", String.Empty, MessageBoxIcon.Question, PageManager1.GetCustomEventReference(false, "Confirm_OK"), PageManager1.GetCustomEventReference("Confirm_Cancel")));
}
else
{
Alert.ShowInTop("模板不存在,请先上传模板!", MessageBoxIcon.Warning);
}
}
else
{
Alert.ShowInTop("请选择类别!", MessageBoxIcon.Warning);
}
}
else
{
Alert.ShowInTop("请选择树节点!", MessageBoxIcon.Warning);
}
}
/// <summary>
/// 下载导入模板
/// </summary>
protected void PageManager1_CustomEvent(object sender, CustomEventArgs e)
{
if (e.EventArgument == "Confirm_OK")
{
string rootPath = Server.MapPath("~/");
string initTemplatePath = string.Empty;
string uploadfilepath = string.Empty;
Model.AttachFile attachFile = BLL.AttachFileService.GetAttachFile(this.tvDataTypeInit.SelectedNodeID, BLL.Const.HseLicenseMenuId);
initTemplatePath = attachFile.AttachUrl;
uploadfilepath = rootPath + initTemplatePath;
string fileName = Path.GetFileName(initTemplatePath);
FileInfo info = new FileInfo(uploadfilepath);
long fileSize = info.Length;
Response.Clear();
Response.ContentType = "application/x-zip-compressed";
Response.AddHeader("Content-Disposition", "attachment;filename=" + System.Web.HttpUtility.UrlEncode(fileName, System.Text.Encoding.UTF8));
Response.AddHeader("Content-Length", fileSize.ToString());
Response.TransmitFile(uploadfilepath, 0, fileSize);
Response.Flush();
Response.Close();
}
}
#endregion
}
}
@@ -39,6 +39,33 @@ namespace FineUIPro.Web.TestRun.DriverHse {
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// Panel2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel2;
/// <summary>
/// tvDataTypeInit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Tree tvDataTypeInit;
/// <summary>
/// Panel4 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel4;
/// <summary>
/// Grid1 控件。
/// </summary>
@@ -58,13 +85,13 @@ namespace FineUIPro.Web.TestRun.DriverHse {
protected global::FineUIPro.Toolbar ToolSearch;
/// <summary>
/// drpUnitWorkId 控件。
/// txtCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpUnitWorkId;
protected global::FineUIPro.TextBox txtCode;
/// <summary>
/// btnSearch 控件。
@@ -84,6 +111,15 @@ namespace FineUIPro.Web.TestRun.DriverHse {
/// </remarks>
protected global::FineUIPro.Button btnNew;
/// <summary>
/// btnDownLoad 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnDownLoad;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
@@ -120,6 +156,24 @@ namespace FineUIPro.Web.TestRun.DriverHse {
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// Window2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window2;
/// <summary>
/// WindowAtt 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window WindowAtt;
/// <summary>
/// Menu1 控件。
/// </summary>
@@ -146,5 +200,41 @@ namespace FineUIPro.Web.TestRun.DriverHse {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuDel;
/// <summary>
/// Menu2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Menu Menu2;
/// <summary>
/// btnMenuAdd 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuAdd;
/// <summary>
/// btnMenuModify2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuModify2;
/// <summary>
/// btnMenuDel2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuDel2;
}
}
@@ -5,7 +5,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>编辑开车作业票管理</title>
<title>编辑施工开车交叉期间作业许可</title>
</head>
<body>
<form id="form1" runat="server">
@@ -36,9 +36,26 @@
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtCode" runat="server" Label="号" LabelAlign="Right" LabelWidth="120px" MaxLength="50" Required="true" ShowRedStar="true">
<f:TextBox ID="txtCode" runat="server" Label="号" LabelAlign="Right" LabelWidth="120px" MaxLength="50" Required="true" ShowRedStar="true">
</f:TextBox>
<f:TextBox ID="txtLicenseTypeName" runat="server" Label="作业类型" LabelAlign="Right" LabelWidth="120px" Readonly="true">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtApplyUnit" runat="server" Label="申请单位" LabelAlign="Right" LabelWidth="120px" MaxLength="50">
</f:TextBox>
<f:TextBox ID="txtApplyMan" runat="server" Label="申请人" LabelAlign="Right" LabelWidth="120px" MaxLength="50">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtHeaderMan" runat="server" Label="作业负责人" LabelAlign="Right" LabelWidth="120px" MaxLength="50">
</f:TextBox>
<f:TextBox ID="txtWorkAddress" runat="server" Label="作业地点" LabelAlign="Right" LabelWidth="120px" MaxLength="50">
</f:TextBox>
<f:DropDownList ID="drpUnitWorkId" runat="server" Label="装置/工序" LabelAlign="Right" LabelWidth="120px" Required="true" ShowRedStar="true"></f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
@@ -47,52 +64,13 @@
</f:TextArea>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWorkArea" runat="server" Label="作业区域" LabelAlign="Right" LabelWidth="120px" MaxLength="50">
</f:TextBox>
<f:DatePicker ID="txtWorkDate" runat="server" Label="作业时间" LabelAlign="Right" LabelWidth="120px"></f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtUnitHead" runat="server" Label="装置负责人" LabelAlign="Right" LabelWidth="120px" MaxLength="50">
</f:TextBox>
<f:TextBox ID="txtApplyMan" runat="server" Label="申请作业人" LabelAlign="Right" LabelWidth="120px" MaxLength="50">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtApplyUnit" runat="server" Label="申请作业单位" LabelAlign="Right" LabelWidth="120px" MaxLength="50">
</f:TextBox>
<f:TextBox ID="txtWorkTicket" runat="server" Label="作业票" LabelAlign="Right" LabelWidth="120px" MaxLength="50">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtWorkTicketCode" runat="server" Label="作业票编号" LabelAlign="Right" LabelWidth="120px" MaxLength="50">
</f:TextBox>
<f:TextBox ID="txtDetection" runat="server" Label="检测、防护" LabelAlign="Right" LabelWidth="120px" MaxLength="50">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtGuardian" runat="server" Label="监护人" LabelAlign="Right" LabelWidth="120px" MaxLength="50">
</f:TextBox>
<f:TextBox ID="txtWorkEnd" runat="server" Label="作业结束" LabelAlign="Right" LabelWidth="120px" MaxLength="50">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtRemark" runat="server" Label="备注" LabelAlign="Right" LabelWidth="120px" MaxLength="500">
</f:TextArea>
</Items>
</f:FormRow>
<%--<f:FormRow runat="server">
<f:FormRow runat="server">
<Items>
<f:Panel ID="Panel3" Width="300px" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
<Items>
@@ -104,7 +82,7 @@
</Items>
</f:Panel>
</Items>
</f:FormRow>--%>
</f:FormRow>
</Rows>
</f:Form>
</f:ContentPanel>
@@ -15,34 +15,31 @@ namespace FineUIPro.Web.TestRun.DriverHse
{
if (!IsPostBack)
{
BLL.UnitWorkService.InitUnitWorkDropDownList(this.drpUnitWorkId, this.CurrUser.LoginProjectId, true);
string id = Request.Params["id"];
if (!string.IsNullOrEmpty(id))
string licenseTypeId = Request.Params["licenseTypeId"];
string hseLicenseId = Request.Params["hseLicenseId"];
if (!string.IsNullOrEmpty(hseLicenseId))
{
Model.DriverHse_HseLicense data = BLL.HseLicenseService.GetHseLicenseById(id);
Model.DriverHse_HseLicense data = BLL.HseLicenseService.GetHseLicenseById(hseLicenseId);
if (data != null)
{
this.hdId.Text = id;
this.hdId.Text = hseLicenseId;
this.txtCode.Text = data.Code;
if (!string.IsNullOrEmpty(data.UnitWorkId))
if (!string.IsNullOrEmpty(data.LicenseTypeId))
{
this.drpUnitWorkId.SelectedValue = data.UnitWorkId;
this.txtLicenseTypeName.Text = BLL.TestRunLicenseTypeService.GetLicenseTypeById(data.LicenseTypeId).LicenseTypeName;
}
this.txtWorkContents.Text = data.WorkContents;
this.txtWorkArea.Text = data.WorkArea;
this.txtWorkDate.Text = data.WorkDate.HasValue ? string.Format("{0:yyyy-MM-dd}", data.WorkDate) : "";
this.txtUnitHead.Text = data.UnitHead;
this.txtApplyMan.Text = data.ApplyMan;
this.txtApplyUnit.Text = data.ApplyUnit;
this.txtWorkTicket.Text = data.WorkTicket;
this.txtWorkTicketCode.Text = data.WorkTicketCode;
this.txtDetection.Text = data.Detection;
this.txtGuardian.Text = data.Guardian;
this.txtWorkEnd.Text = data.WorkEnd;
this.txtApplyMan.Text = data.ApplyMan;
this.txtHeaderMan.Text = data.HeaderMan;
this.txtWorkAddress.Text = data.WorkAddress;
this.txtWorkContents.Text = data.WorkContents;
this.txtRemark.Text = data.Remark;
}
}
else
{
this.txtLicenseTypeName.Text = BLL.TestRunLicenseTypeService.GetLicenseTypeById(licenseTypeId).LicenseTypeName;
}
}
}
#endregion
@@ -53,14 +50,14 @@ namespace FineUIPro.Web.TestRun.DriverHse
/// </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.DriverHse_HseLicense));
// }
// PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/TestRun/DriverHse/HseLicense&menuId={1}", this.hdId.Text, BLL.Const.HseLicenseMenuId)));
//}
protected void btnAttach_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(this.hdId.Text)) //新增记录
{
this.hdId.Text = SQLHelper.GetNewID(typeof(Model.DriverHse_HseLicense));
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/TestRun/DriverHse/HseLicense&menuId={1}", this.hdId.Text, BLL.Const.HseLicenseMenuId)));
}
#endregion
#region
@@ -71,35 +68,25 @@ namespace FineUIPro.Web.TestRun.DriverHse
/// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e)
{
if (this.drpUnitWorkId.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("请选择装置/工序!", MessageBoxIcon.Warning);
return;
}
string id = Request.Params["id"];
string licenseTypeId = Request.Params["licenseTypeId"];
string hseLicenseId = Request.Params["hseLicenseId"];
Model.DriverHse_HseLicense newData = new Model.DriverHse_HseLicense();
newData.Code = this.txtCode.Text.Trim();
newData.WorkArea = this.txtWorkArea.Text.Trim();
newData.WorkContents = this.txtWorkContents.Text.Trim();
newData.WorkDate = Funs.GetNewDateTime(this.txtWorkDate.Text.Trim());
newData.UnitHead = this.txtUnitHead.Text.Trim();
newData.UnitWorkId = this.drpUnitWorkId.SelectedValue;
newData.ApplyMan = this.txtApplyMan.Text.Trim();
newData.ApplyUnit = this.txtApplyUnit.Text.Trim();
newData.WorkTicket = this.txtWorkTicket.Text.Trim();
newData.WorkTicketCode = this.txtWorkTicketCode.Text.Trim();
newData.Detection = this.txtDetection.Text.Trim();
newData.Guardian = this.txtGuardian.Text.Trim();
newData.WorkEnd = this.txtWorkEnd.Text.Trim();
newData.ApplyMan = this.txtApplyMan.Text.Trim();
newData.HeaderMan = this.txtHeaderMan.Text.Trim();
newData.WorkAddress = this.txtWorkAddress.Text.Trim();
newData.WorkContents = this.txtWorkContents.Text.Trim();
newData.Remark = this.txtRemark.Text.Trim();
newData.ProjectId = this.CurrUser.LoginProjectId;
if (!string.IsNullOrEmpty(id))
if (!string.IsNullOrEmpty(hseLicenseId))
{
newData.HseLicenseId = id;
newData.HseLicenseId = hseLicenseId;
BLL.HseLicenseService.UpdateHseLicense(newData);
}
else
{
newData.LicenseTypeId = licenseTypeId;
if (!string.IsNullOrEmpty(this.hdId.Text))
{
newData.HseLicenseId = this.hdId.Text.Trim();
@@ -112,58 +112,13 @@ namespace FineUIPro.Web.TestRun.DriverHse {
protected global::FineUIPro.TextBox txtCode;
/// <summary>
/// drpUnitWorkId 控件。
/// txtLicenseTypeName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpUnitWorkId;
/// <summary>
/// txtWorkContents 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextArea txtWorkContents;
/// <summary>
/// txtWorkArea 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtWorkArea;
/// <summary>
/// txtWorkDate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker txtWorkDate;
/// <summary>
/// txtUnitHead 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtUnitHead;
/// <summary>
/// txtApplyMan 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtApplyMan;
protected global::FineUIPro.TextBox txtLicenseTypeName;
/// <summary>
/// txtApplyUnit 控件。
@@ -175,49 +130,40 @@ namespace FineUIPro.Web.TestRun.DriverHse {
protected global::FineUIPro.TextBox txtApplyUnit;
/// <summary>
/// txtWorkTicket 控件。
/// txtApplyMan 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtWorkTicket;
protected global::FineUIPro.TextBox txtApplyMan;
/// <summary>
/// txtWorkTicketCode 控件。
/// txtHeaderMan 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtWorkTicketCode;
protected global::FineUIPro.TextBox txtHeaderMan;
/// <summary>
/// txtDetection 控件。
/// txtWorkAddress 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtDetection;
protected global::FineUIPro.TextBox txtWorkAddress;
/// <summary>
/// txtGuardian 控件。
/// txtWorkContents 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtGuardian;
/// <summary>
/// txtWorkEnd 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtWorkEnd;
protected global::FineUIPro.TextArea txtWorkContents;
/// <summary>
/// txtRemark 控件。
@@ -228,6 +174,33 @@ namespace FineUIPro.Web.TestRun.DriverHse {
/// </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>
/// WindowAtt 控件。
/// </summary>
@@ -0,0 +1,72 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestRunLicenseTypeEdit.aspx.cs" Inherits="FineUIPro.Web.TestRun.DriverHse.TestRunLicenseTypeEdit" %>
<!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>
<link href="../res/css/common.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" runat="server" />
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow runat="server">
<Items>
<f:TextBox ID="txtCode" runat="server" Label="编号"
Required="true" MaxLength="50" ShowRedStar="true" LabelWidth="110px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtName" runat="server" Label="作业类别"
Required="true" MaxLength="50" ShowRedStar="true" LabelWidth="110px">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextArea ID="txtRemark" runat="server" Label="备注" MaxLength="500" LabelWidth="110px">
</f:TextArea>
</Items>
</f:FormRow>
<f:FormRow runat="server">
<Items>
<f:Panel ID="Panel3" Width="300px" ShowHeader="false" ShowBorder="false" Layout="Column" CssClass="" runat="server">
<Items>
<f:Label ID="lblAttach" runat="server" Label="上传附件"
LabelWidth="120px">
</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:Button ID="btnSave" Icon="SystemSave" runat="server" ValidateForms="SimpleForm1" OnClick="btnSave_Click">
</f:Button>
<%--<f:Button ID="btnClose" EnablePostBack="false"
runat="server" Icon="SystemClose">
</f:Button>--%>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
</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>
</body>
</html>
@@ -0,0 +1,87 @@
using BLL;
using System;
namespace FineUIPro.Web.TestRun.DriverHse
{
public partial class TestRunLicenseTypeEdit : PageBase
{
#region
/// <summary>
/// 页面加载
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
//this.btnClose.OnClientClick = WindowAtt.GetHideReference();
string id = Request.Params["licenseTypeId"];
if (!string.IsNullOrEmpty(id))
{
Model.Base_TestRunLicenseType data = BLL.TestRunLicenseTypeService.GetLicenseTypeById(id);
if (data != null)
{
this.hdId.Text = id;
this.txtCode.Text = data.LicenseTypeCode;
this.txtName.Text = data.LicenseTypeName;
this.txtRemark.Text = data.Remark;
}
}
}
}
#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.Base_TestRunLicenseType));
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/TestRun/DriverHse/TestRunLicenseType&menuId={1}", this.hdId.Text, BLL.Const.HseLicenseMenuId)));
}
#endregion
#region
/// <summary>
/// 保存按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e)
{
string id = Request.Params["licenseTypeId"];
Model.Base_TestRunLicenseType newData = new Model.Base_TestRunLicenseType();
newData.LicenseTypeCode = this.txtCode.Text.Trim();
newData.LicenseTypeName = this.txtName.Text.Trim();
newData.Remark = this.txtRemark.Text.Trim();
if (!string.IsNullOrEmpty(id))
{
newData.LicenseTypeId = id;
BLL.TestRunLicenseTypeService.UpdateTestRunLicenseType(newData);
}
else
{
if (!string.IsNullOrEmpty(this.hdId.Text))
{
newData.LicenseTypeId = this.hdId.Text.Trim();
}
else
{
newData.LicenseTypeId = SQLHelper.GetNewID(typeof(Model.Base_TestRunLicenseType));
this.hdId.Text = newData.LicenseTypeId;
}
BLL.TestRunLicenseTypeService.AddTestRunLicenseType(newData);
}
ShowNotify("保存成功!", MessageBoxIcon.Success);
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
#endregion
}
}
@@ -0,0 +1,141 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.TestRun.DriverHse {
public partial class TestRunLicenseTypeEdit {
/// <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>
/// txtCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtCode;
/// <summary>
/// txtName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtName;
/// <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>
/// btnSave 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// WindowAtt 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window WindowAtt;
}
}