fix:升级

This commit is contained in:
geh
2025-06-19 19:23:01 +08:00
parent 0cb37e2c02
commit 7aa8baadbb
111 changed files with 14465 additions and 1480 deletions
@@ -0,0 +1,108 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PersonnelChangeRecord.aspx.cs" Inherits="FineUIPro.Web.ZHGL.DataSync.PersonnelChangeRecord" %>
<%@ Register Src="~/Controls/UnitProjectTControl.ascx" TagName="UnitProjectTControl" TagPrefix="uc1" %>
<!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>
<style>
.f-grid-row.Red {
background-color: red;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="380" Title="公司-项目" TitleToolTip="公司-项目" ShowBorder="true"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft" Layout="Fit">
<Items>
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" EnableCollapse="true" AutoScroll="true"
BodyPadding="0px">
<uc1:UnitProjectTControl ID="ucTree" runat="server" Onchange="changeTree" />
</f:ContentPanel>
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
Layout="VBox" ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="设备"
TitleToolTip="设备" AutoScroll="true">
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="共检通知单" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="ProjectPersonnelChangeRecordId" AllowCellEditing="true" EnableColumnLines="true"
ClicksToEdit="2" DataIDField="ProjectPersonnelChangeRecordId" AllowSorting="true" SortField="StartTime"
SortDirection="DESC" OnSort="Grid1_Sort" ForceFit="true"
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
EnableRowDoubleClickEvent="true" EnableTextSelection="true">
<Toolbars>
<f:Toolbar ID="ToolSearch" Position="Top" runat="server" ToolbarAlign="Left">
<Items>
<f:TextBox ID="txtUserName" runat="server" Label="名称" EmptyText="输入查询条件"
Width="220px" LabelWidth="70px" LabelAlign="Right">
</f:TextBox>
<f:Button ID="btnSearch" Icon="SystemSearch"
EnablePostBack="true" runat="server" ToolTip="查询" OnClick="TextBox_TextChanged" Text="查询">
</f:Button>
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp" Text="导出"
EnableAjax="false" DisableControlBeforePostBack="false">
</f:Button>
<f:ToolbarFill runat="server"></f:ToolbarFill>
</Items>
</f:Toolbar>
</Toolbars>
<Columns>
<f:TemplateField ColumnID="tfNumber" Width="80px" HeaderText="序号" HeaderTextAlign="Center"
TextAlign="Center">
<ItemTemplate>
<asp:Label ID="lblNumber" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
</ItemTemplate>
</f:TemplateField>
<f:RenderField Width="200px" ColumnID="RoleName" DataField="RoleName" FieldType="String" HeaderText="角色名称" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="200px" ColumnID="UserName" DataField="UserName" FieldType="String" HeaderText="人员名称" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
<f:RenderField Width="130px" ColumnID="StartTime" DataField="StartTime"
SortField="StartTime" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd"
HeaderText="到岗日期" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="130px" ColumnID="EndTime" DataField="EndTime"
SortField="EndTime" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd"
HeaderText="离岗日期" HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="250px" ColumnID="Remarks" DataField="Remarks" FieldType="String" HeaderText="备注" HeaderTextAlign="Center"
TextAlign="Left">
</f:RenderField>
</Columns>
<PageItems>
<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>
</form>
<script type="text/javascript">
function reloadGrid() {
__doPostBack(null, 'reloadGrid');
}
</script>
</body>
</html>
@@ -0,0 +1,192 @@
using BLL;
using FineUIPro.Web.Controls;
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using AspNet = System.Web.UI.WebControls;
namespace FineUIPro.Web.ZHGL.DataSync
{
public partial class PersonnelChangeRecord : PageBase
{
#region
/// <summary>
/// 项目主键
/// </summary>
public string ProjectId
{
get
{
return (string)ViewState["ProjectId"];
}
set
{
ViewState["ProjectId"] = value;
}
}
#endregion
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (!string.IsNullOrEmpty(Request.Params["projectId"]) && Request.Params["projectId"] != this.CurrUser.LoginProjectId)
{
this.ProjectId = Request.Params["projectId"];
}
this.ucTree.UnitId = this.CurrUser.UnitId;
this.ucTree.ProjectId = this.ProjectId;
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
{
this.panelLeftRegion.Hidden = true;
}
Funs.DropDownPageSize(this.ddlPageSize);
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
// 绑定表格
BindGrid();
}
}
protected void changeTree(object sender, EventArgs e)
{
this.ProjectId = this.ucTree.ProjectId;
this.BindGrid();
}
public void BindGrid()
{
string strSql = @"SELECT a.ProjectPersonnelChangeRecordId,a.ProjectId,a.RoleId,a.Remarks,a.UserId,a.StartTime,a.EndTime,b.UserName,c.RoleName "
+ @" FROM Project_PersonnelChangeRecord a "
+ @" LEFT JOIN Sys_Role c on a.RoleId=c.RoleId "
+ @" LEFT JOIN Sys_User b on a.UserId=b.UserId WHERE ";
List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrWhiteSpace(this.ProjectId))
{
strSql += " a.ProjectId = @ProjectId";
listStr.Add(new SqlParameter("@ProjectId", this.ProjectId));
}
else
{
strSql += " 1<>1 ";
}
if (!string.IsNullOrWhiteSpace(this.txtUserName.Text))
{
strSql += " AND b.UserName = @UserName";
listStr.Add(new SqlParameter("@UserName", this.txtUserName.Text));
}
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();
}
#region
/// <summary>
/// 改变索引事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
{
BindGrid();
}
/// <summary>
/// 分页下拉选择事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
{
this.Grid1.PageSize = Convert.ToInt32(this.ddlPageSize.SelectedValue);
BindGrid();
}
/// <summary>
/// 排序
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Grid1_Sort(object sender, FineUIPro.GridSortEventArgs e)
{
this.BindGrid();
}
#endregion
#region
/// <summary>
/// 查询
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void TextBox_TextChanged(object sender, EventArgs e)
{
this.BindGrid();
}
#endregion
#region
/// 导出按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnOut_Click(object sender, EventArgs e)
{
Response.ClearContent();
string filename = Funs.GetNewFileName();
Response.AddHeader("content-disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode("人员变动记录" + filename, System.Text.Encoding.UTF8) + ".xls");
Response.ContentType = "application/excel";
Response.ContentEncoding = System.Text.Encoding.UTF8;
this.Grid1.PageSize = 500;
this.BindGrid();
Response.Write(GetGridTableHtml(Grid1));
Response.End();
}
/// <summary>
/// 导出方法
/// </summary>
/// <param name="grid"></param>
/// <returns></returns>
private string GetGridTableHtml(Grid grid)
{
StringBuilder sb = new StringBuilder();
sb.Append("<meta http-equiv=\"content-type\" content=\"application/excel; charset=UTF-8\"/>");
sb.Append("<table cellspacing=\"0\" rules=\"all\" border=\"1\" style=\"border-collapse:collapse;\">");
sb.Append("<tr>");
foreach (GridColumn column in grid.Columns)
{
sb.AppendFormat("<td>{0}</td>", column.HeaderText);
}
sb.Append("</tr>");
foreach (GridRow row in grid.Rows)
{
sb.Append("<tr>");
foreach (GridColumn column in grid.Columns)
{
string html = row.Values[column.ColumnIndex].ToString();
if (column.ColumnID == "tfNumber")
{
html = (row.FindControl("lblNumber") as AspNet.Label).Text;
}
sb.AppendFormat("<td>{0}</td>", html);
}
sb.Append("</tr>");
}
sb.Append("</table>");
return sb.ToString();
}
#endregion
}
}
@@ -0,0 +1,152 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.ZHGL.DataSync
{
public partial class PersonnelChangeRecord
{
/// <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>
/// panelLeftRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelLeftRegion;
/// <summary>
/// ContentPanel1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ContentPanel ContentPanel1;
/// <summary>
/// ucTree 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Web.Controls.UnitProjectTControl ucTree;
/// <summary>
/// panelCenterRegion 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel panelCenterRegion;
/// <summary>
/// Grid1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// ToolSearch 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar ToolSearch;
/// <summary>
/// txtUserName 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtUserName;
/// <summary>
/// btnSearch 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSearch;
/// <summary>
/// btnOut 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnOut;
/// <summary>
/// lblNumber 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblNumber;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
}
}
@@ -27,8 +27,8 @@
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="250px" LabelWidth="90px"
LabelAlign="right">
</f:TextBox>
<%--<f:DropDownList ID="drpUnitId" runat="server" Label="单位" AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged" LabelWidth="70px" Width="250px">
</f:DropDownList>--%>
<f:DropDownList ID="drpUnitId" runat="server" Label="单位" AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged" LabelWidth="70px" Width="250px">
</f:DropDownList>
<f:TextBox runat="server" Label="演练名称" ID="txtDrillRecordName" EmptyText="输入查询条件"
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="250px" LabelWidth="90px"
LabelAlign="right">
@@ -40,12 +40,13 @@ namespace FineUIPro.Web.ZHGL.Emergency
{
////权限按钮方法
this.GetButtonPower();
var thisUnit = CommonService.GetIsThisUnit();
if (thisUnit != null)
{
this.UnitId = thisUnit.UnitId;
}
//var thisUnit = CommonService.GetIsThisUnit();
//if (thisUnit != null)
//{
// this.UnitId = thisUnit.UnitId;
//}
BLL.UnitService.InitBranchUnitDropDownList(this.drpUnitId, true);
this.btnNew.OnClientClick = Window1.GetShowReference("DrillRecordListEdit.aspx") + "return false;";
if (this.CurrUser != null && this.CurrUser.PageSize.HasValue)
{
@@ -70,16 +71,21 @@ namespace FineUIPro.Web.ZHGL.Emergency
+ @" LEFT JOIN Sys_User AS OperateUser ON FlowOperate.OperaterId=OperateUser.UserId"
+ @" LEFT JOIN Sys_User AS Users ON DrillRecordList.CompileMan=Users.UserId WHERE 1=1 ";
List<SqlParameter> listStr = new List<SqlParameter>();
strSql += " AND DrillRecordList.UnitIds =@UnitId";
//strSql += " AND DrillRecordList.UnitIds =@UnitId";
if (!string.IsNullOrEmpty(this.UnitId)) ///是否文件柜查看页面传项目值
{
listStr.Add(new SqlParameter("@UnitId", this.UnitId));
//listStr.Add(new SqlParameter("@UnitId", this.UnitId));
strSql += " AND DrillRecordList.States = @States"; ///状态为已完成
listStr.Add(new SqlParameter("@States", BLL.Const.State_2));
}
else
{
listStr.Add(new SqlParameter("@UnitId", this.UnitId));
//listStr.Add(new SqlParameter("@UnitId", this.UnitId));
}
if (this.drpUnitId.SelectedValue != BLL.Const._Null)
{
strSql += " AND DrillRecordList.UnitIds = @UnitId";
listStr.Add(new SqlParameter("@UnitId", this.drpUnitId.SelectedValue.Trim()));
}
if (!string.IsNullOrEmpty(this.txtDrillRecordCode.Text.Trim()))
@@ -307,6 +313,10 @@ namespace FineUIPro.Web.ZHGL.Emergency
this.btnMenuDelete.Hidden = false;
}
}
//if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
//{
// btnNew.Hidden = true;
//}
}
#endregion
}
@@ -68,6 +68,15 @@ namespace FineUIPro.Web.ZHGL.Emergency
/// </remarks>
protected global::FineUIPro.TextBox txtDrillRecordCode;
/// <summary>
/// drpUnitId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpUnitId;
/// <summary>
/// txtDrillRecordName 控件。
/// </summary>
@@ -31,9 +31,11 @@
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtUnit" runat="server" Label="参与单位" Required="true" ShowRedStar="true" Readonly="true"
<%-- <f:TextBox ID="txtUnit" runat="server" Label="参与单位" Required="true" ShowRedStar="true" Readonly="true"
LabelAlign="Right" MaxLength="500" FocusOnPageLoad="true">
</f:TextBox>
</f:TextBox>--%>
<f:DropDownList ID="drpUnit" runat="server" EmptyText="请选择单位" Label="参与单位" ShowRedStar="true" Required="true" AutoSelectFirstItem="true" >
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
@@ -21,17 +21,17 @@ namespace FineUIPro.Web.ZHGL.Emergency
ViewState["DrillRecordListId"] = value;
}
}
public string UnitId
{
get
{
return (string)ViewState["UnitId"];
}
set
{
ViewState["UnitId"] = value;
}
}
//public string UnitId
//{
// get
// {
// return (string)ViewState["UnitId"];
// }
// set
// {
// ViewState["UnitId"] = value;
// }
//}
#endregion
#region
@@ -59,7 +59,11 @@ namespace FineUIPro.Web.ZHGL.Emergency
{
this.drpDrillRecordType.SelectedValue = DrillRecordList.DrillRecordType;
}
this.txtUnit.Text = DrillRecordList.UnitNames;
//this.txtUnit.Text = DrillRecordList.UnitNames;
if (!string.IsNullOrEmpty(DrillRecordList.UnitIds))
{
this.drpUnit.SelectedValue = DrillRecordList.UnitIds;
}
this.txtDrillRecordDate.Text = string.Format("{0:yyyy-MM-dd}", DrillRecordList.DrillRecordDate);
if (DrillRecordList.JointPersonNum != null)
{
@@ -81,9 +85,11 @@ namespace FineUIPro.Web.ZHGL.Emergency
// this.txtDrillRecordContents.Text = HttpUtility.HtmlDecode(codeTemplateRule.Template);
//}
var thisUnit = BLL.CommonService.GetIsThisUnit();
////自动生成编码
this.txtDrillRecordCode.Text = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(BLL.Const.UnitDrillRecordListMenuId, null, this.UnitId);
this.txtDrillRecordCode.Text = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(BLL.Const.UnitDrillRecordListMenuId, null, thisUnit.UnitId);
this.txtDrillRecordName.Text = this.SimpleForm1.Title;
this.drpUnit.SelectedValue = thisUnit.UnitId;
}
///初始化审核菜单
@@ -100,12 +106,13 @@ namespace FineUIPro.Web.ZHGL.Emergency
private void InitDropDownList()
{
//BLL.UnitService.InitUnitDropDownList(this.drpUnits, this.ProjectId, false);
var thisUnit = CommonService.GetIsThisUnit();
if (thisUnit != null)
{
this.txtUnit.Text = thisUnit.UnitName;
this.UnitId = thisUnit.UnitId;
}
//var thisUnit = CommonService.GetIsThisUnit();
//if (thisUnit != null)
//{
// this.txtUnit.Text = thisUnit.UnitName;
// this.UnitId = thisUnit.UnitId;
//}
BLL.UnitService.InitBranchUnitDropDownList(this.drpUnit, false);
BLL.ConstValue.InitConstValueDropDownList(this.drpDrillRecordType, BLL.ConstValue.Group_DrillRecordType, false);
}
#endregion
@@ -155,8 +162,10 @@ namespace FineUIPro.Web.ZHGL.Emergency
DrillCost = Funs.GetNewDecimalOrZero(this.txtDrillCost.Text.Trim())
};
//参与单位
DrillRecordList.UnitIds = this.UnitId;
DrillRecordList.UnitNames = this.txtUnit.Text;
//DrillRecordList.UnitIds = this.UnitId;
//DrillRecordList.UnitNames = this.txtUnit.Text;
DrillRecordList.UnitIds = this.drpUnit.SelectedValue;
DrillRecordList.UnitNames = this.drpUnit.SelectedText;
////单据状态
DrillRecordList.States = BLL.Const.State_2;
@@ -69,13 +69,13 @@ namespace FineUIPro.Web.ZHGL.Emergency
protected global::FineUIPro.DatePicker txtDrillRecordDate;
/// <summary>
/// txtUnit 控件。
/// drpUnit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtUnit;
protected global::FineUIPro.DropDownList drpUnit;
/// <summary>
/// drpDrillRecordType 控件。
@@ -24,8 +24,8 @@
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="250px" LabelWidth="90px"
LabelAlign="right">
</f:TextBox>
<%--<f:DropDownList ID="drpUnitId" runat="server" Label="单位" AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged" LabelWidth="70px" Width="250px">
</f:DropDownList>--%>
<f:DropDownList ID="drpUnitId" runat="server" Label="单位" AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged" LabelWidth="70px" Width="250px">
</f:DropDownList>
<f:TextBox runat="server" Label="文件名称" ID="txtEmergencyName" EmptyText="输入查询条件"
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="250px" LabelWidth="90px"
LabelAlign="right">
@@ -37,12 +37,13 @@ namespace FineUIPro.Web.ZHGL.Emergency
Funs.DropDownPageSize(this.ddlPageSize);
////权限按钮方法
this.GetButtonPower();
var thisUnit = CommonService.GetIsThisUnit();
if (thisUnit != null)
{
this.UnitId = thisUnit.UnitId;
}
//var thisUnit = CommonService.GetIsThisUnit();
//if (thisUnit != null)
//{
// this.UnitId = thisUnit.UnitId;
//}
BLL.UnitService.InitBranchUnitDropDownList(this.drpUnitId, true);
//BLL.UnitService.InitUnitDropDownList(this.drpUnitId, this.ProjectId, true);
//if (BLL.ProjectUnitService.GetProjectUnitTypeByProjectIdUnitId(this.ProjectId, this.CurrUser.UnitId))
//{
@@ -76,16 +77,16 @@ namespace FineUIPro.Web.ZHGL.Emergency
+ @" LEFT JOIN Sys_User AS ApproveMan ON ApproveMan.UserId=EmergencyList.ApproveMan"
+ @" LEFT JOIN Sys_User AS Users ON EmergencyList.CompileMan=Users.UserId WHERE 1=1 ";
List<SqlParameter> listStr = new List<SqlParameter>();
strSql += " AND EmergencyList.UnitId = @UnitId";
//strSql += " AND EmergencyList.UnitId = @UnitId";
if (!string.IsNullOrEmpty(this.UnitId)) ///是否文件柜查看页面传项目值
{
listStr.Add(new SqlParameter("@UnitId", this.UnitId));
//listStr.Add(new SqlParameter("@UnitId", this.UnitId));
strSql += " AND EmergencyList.States = @States"; ///状态为已完成
listStr.Add(new SqlParameter("@States", BLL.Const.State_2));
}
else
{
listStr.Add(new SqlParameter("@UnitId", this.UnitId));
//listStr.Add(new SqlParameter("@UnitId", this.UnitId));
}
if (!string.IsNullOrEmpty(this.txtEmergencyCode.Text.Trim()))
@@ -93,11 +94,11 @@ namespace FineUIPro.Web.ZHGL.Emergency
strSql += " AND EmergencyCode LIKE @EmergencyCode";
listStr.Add(new SqlParameter("@EmergencyCode", "%" + this.txtEmergencyCode.Text.Trim() + "%"));
}
//if (this.drpUnitId.SelectedValue != BLL.Const._Null)
//{
// strSql += " AND EmergencyList.UnitId = @UnitId";
// listStr.Add(new SqlParameter("@UnitId", this.drpUnitId.SelectedValue.Trim()));
//}
if (this.drpUnitId.SelectedValue != BLL.Const._Null)
{
strSql += " AND EmergencyList.UnitId = @UnitId";
listStr.Add(new SqlParameter("@UnitId", this.drpUnitId.SelectedValue.Trim()));
}
if (!string.IsNullOrEmpty(this.txtEmergencyName.Text.Trim()))
{
strSql += " AND EmergencyList.EmergencyName LIKE @EmergencyName";
@@ -260,6 +261,12 @@ namespace FineUIPro.Web.ZHGL.Emergency
this.btnMenuDelete.Hidden = false;
}
}
//if (string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
//{
// btnNew.Hidden = true;
// btnMenuEdit.Hidden = true;
// btnMenuDelete.Hidden = true;
//}
}
#endregion
@@ -68,6 +68,15 @@ namespace FineUIPro.Web.ZHGL.Emergency
/// </remarks>
protected global::FineUIPro.TextBox txtEmergencyCode;
/// <summary>
/// drpUnitId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpUnitId;
/// <summary>
/// txtEmergencyName 控件。
/// </summary>
@@ -1,5 +1,6 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EmergencyListEdit.aspx.cs"
Inherits="FineUIPro.Web.ZHGL.Emergency.EmergencyListEdit" ValidateRequest="false" %>
<%@ Register Src="~/Controls/FlowOperateControl.ascx" TagName="FlowOperateControl" TagPrefix="uc1" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
@@ -10,53 +11,53 @@
</head>
<body>
<form id="form1" runat="server">
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="SimpleForm1"/>
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" Title="应急预案管理清单" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtEmergencyCode" runat="server" Label="编号" LabelAlign="Right"
MaxLength="50" Readonly="true">
</f:TextBox>
<f:TextBox ID="txtEmergencyName" runat="server" Label="文件名称" Required="true" ShowRedStar="true"
LabelAlign="Right" MaxLength="500" FocusOnPageLoad="true">
</f:TextBox>
<f:DropDownList ID="drpEmergencyType" runat="server" Label="类型" LabelAlign="Right" >
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtVersionCode" runat="server" Label="版本号" LabelAlign="Right" MaxLength="50">
</f:TextBox>
<f:TextBox ID="txtUnit" runat="server" Label="单位" LabelAlign="Right" MaxLength="50" Readonly="true">
</f:TextBox>
<%--<f:DropDownList ID="drpUnit" runat="server" Label="单位" LabelAlign="Right" >
</f:DropDownList>--%>
<f:DropDownList ID="drpCompileMan" runat="server" Label="整理人" LabelAlign="Right" >
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DatePicker ID="txtCompileDate" runat="server" Label="整理日期" LabelAlign="Right"
EnableEdit="true">
</f:DatePicker>
<%-- <f:DropDownList ID="drpAuditMan" runat="server" Label="审核人" LabelAlign="Right" >
<f:PageManager ID="PageManager1" runat="server" AutoSizePanelID="SimpleForm1" />
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" Title="应急预案管理清单" AutoScroll="true"
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
<Rows>
<f:FormRow>
<Items>
<f:TextBox ID="txtEmergencyCode" runat="server" Label="编号" LabelAlign="Right"
MaxLength="50" Readonly="true">
</f:TextBox>
<f:TextBox ID="txtEmergencyName" runat="server" Label="文件名称" Required="true" ShowRedStar="true"
LabelAlign="Right" MaxLength="500" FocusOnPageLoad="true">
</f:TextBox>
<f:DropDownList ID="drpEmergencyType" runat="server" Label="类型" LabelAlign="Right">
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:TextBox ID="txtVersionCode" runat="server" Label="版本号" LabelAlign="Right" MaxLength="50">
</f:TextBox>
<%--<f:TextBox ID="txtUnit" runat="server" Label="单位" LabelAlign="Right" MaxLength="50" Readonly="true">
</f:TextBox>--%>
<f:DropDownList ID="drpUnit" runat="server" EmptyText="请选择单位" Label="单位" ShowRedStar="true" Required="true" AutoSelectFirstItem="true" AutoPostBack="true" OnSelectedIndexChanged="drpUnit_SelectedIndexChanged">
</f:DropDownList>
<f:DropDownList ID="drpCompileMan" runat="server" Label="整理人" LabelAlign="Right" AutoSelectFirstItem="true">
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DatePicker ID="txtCompileDate" runat="server" Label="整理日期" LabelAlign="Right"
EnableEdit="true">
</f:DatePicker>
<%-- <f:DropDownList ID="drpAuditMan" runat="server" Label="审核人" LabelAlign="Right" >
</f:DropDownList>
<f:DropDownList ID="drpApproveMan" runat="server" Label="批准人" LabelAlign="Right" >
</f:DropDownList> --%>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:HtmlEditor runat="server" Label="应急预案内容" ID="txtEmergencyContents" ShowLabel="false"
Editor="UMEditor" BasePath="~/res/umeditor/" ToolbarSet="Full" Height="200" LabelAlign="Right">
</f:HtmlEditor>
</Items>
</f:FormRow>
<%-- <f:FormRow>
</f:DropDownList> --%>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:HtmlEditor runat="server" Label="应急预案内容" ID="txtEmergencyContents" ShowLabel="false"
Editor="UMEditor" BasePath="~/res/umeditor/" ToolbarSet="Full" Height="200" LabelAlign="Right">
</f:HtmlEditor>
</Items>
</f:FormRow>
<%-- <f:FormRow>
<Items>
<f:ContentPanel ID="ContentPanel1" runat="server" ShowHeader="false" EnableCollapse="true"
BodyPadding="0px">
@@ -64,30 +65,30 @@
</f:ContentPanel>
</Items>
</f:FormRow>--%>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnAttachUrl" Text="附件" ToolTip="附件上传及查看" Icon="TableCell" runat="server"
OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1" MarginLeft="5px">
</f:Button>
<f:ToolbarFill runat="server"> </f:ToolbarFill>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnSubmit" Icon="SystemSaveNew" runat="server" ToolTip="提交" ValidateForms="SimpleForm1"
OnClick="btnSubmit_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" 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>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnAttachUrl" Text="附件" ToolTip="附件上传及查看" Icon="TableCell" runat="server"
OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1" MarginLeft="5px">
</f:Button>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ToolTip="保存" ValidateForms="SimpleForm1"
OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnSubmit" Icon="SystemSaveNew" runat="server" ToolTip="提交" ValidateForms="SimpleForm1"
OnClick="btnSubmit_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" 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>
@@ -21,20 +21,20 @@ namespace FineUIPro.Web.ZHGL.Emergency
ViewState["EmergencyListId"] = value;
}
}
/// <summary>
/// 单位
/// </summary>
public string UnitId
{
get
{
return (string)ViewState["UnitId"];
}
set
{
ViewState["UnitId"] = value;
}
}
///// <summary>
///// 单位
///// </summary>
//public string UnitId
//{
// get
// {
// return (string)ViewState["UnitId"];
// }
// set
// {
// ViewState["UnitId"] = value;
// }
//}
#endregion
#region
@@ -47,7 +47,7 @@ namespace FineUIPro.Web.ZHGL.Emergency
{
if (!IsPostBack)
{
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
this.InitDropDownList();
this.EmergencyListId = Request.Params["EmergencyListId"];
@@ -56,26 +56,31 @@ namespace FineUIPro.Web.ZHGL.Emergency
Model.Emergency_EmergencyList_Unit EmergencyList = BLL.UnitEmergencyListService.GetEmergencyListById(this.EmergencyListId);
if (EmergencyList != null)
{
///读取编号
///读取编号
this.txtEmergencyCode.Text = BLL.CodeRecordsService.ReturnCodeByDataId(this.EmergencyListId);
this.txtEmergencyName.Text = EmergencyList.EmergencyName;
txtUnit.Text = BLL.UnitService.GetUnitNameByUnitId(EmergencyList.UnitId);
if (!string.IsNullOrEmpty(EmergencyList.EmergencyTypeId))
{
this.drpEmergencyType.SelectedValue = EmergencyList.EmergencyTypeId;
}
this.txtVersionCode.Text = EmergencyList.VersionCode;
//txtUnit.Text = BLL.UnitService.GetUnitNameByUnitId(EmergencyList.UnitId);
if (!string.IsNullOrEmpty(EmergencyList.UnitId))
{
this.drpUnit.SelectedValue = EmergencyList.UnitId;
BLL.UserService.InitUserUnitIdDropDownList(this.drpCompileMan, drpUnit.SelectedValue, true);
}
if (!string.IsNullOrEmpty(EmergencyList.CompileMan))
{
this.drpCompileMan.SelectedValue = EmergencyList.CompileMan;
}
this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", EmergencyList.CompileDate);
this.txtEmergencyContents.Text = HttpUtility.HtmlDecode(EmergencyList.EmergencyContents);
}
}
else
{
{
this.drpCompileMan.SelectedValue = this.CurrUser.UserId;
this.txtVersionCode.Text = "V1.0";
this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
@@ -87,6 +92,9 @@ namespace FineUIPro.Web.ZHGL.Emergency
////自动生成编码
this.txtEmergencyCode.Text = BLL.CodeRecordsService.ReturnCodeByMenuIdProjectId(BLL.Const.UnitEmergencyListMenuId, null, this.CurrUser.UnitId);
this.txtEmergencyName.Text = this.SimpleForm1.Title;
var thisUnit = BLL.CommonService.GetIsThisUnit();
this.drpUnit.SelectedValue = thisUnit.UnitId;
BLL.UserService.InitUserUnitIdDropDownList(this.drpCompileMan, thisUnit.UnitId, true);
}
///初始化审核菜单
@@ -97,23 +105,35 @@ namespace FineUIPro.Web.ZHGL.Emergency
}
}
#endregion
/// <summary>
/// 初始化下拉框
/// </summary>
private void InitDropDownList()
{
var thisUnit = CommonService.GetIsThisUnit();
if (thisUnit != null)
{
this.txtUnit.Text = thisUnit.UnitName;
this.UnitId = thisUnit.UnitId;
}
// BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
BLL.UserService.InitUserUnitIdDropDownList(this.drpCompileMan, this.UnitId, true);
//var thisUnit = CommonService.GetIsThisUnit();
//if (thisUnit != null)
//{
// //this.txtUnit.Text = thisUnit.UnitName;
// this.UnitId = thisUnit.UnitId;
//}
//BLL.UnitService.InitUnitDropDownList(this.drpUnit, this.ProjectId, true);
//BLL.UserService.InitUserUnitIdDropDownList(this.drpCompileMan, this.UnitId, true);
BLL.UnitService.InitBranchUnitDropDownList(this.drpUnit, false);
BLL.EmergencyTypeService.InitEmergencyTypeDropDownList(this.drpEmergencyType, true);
}
/// <summary>
/// 单位下拉加载
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void drpUnit_SelectedIndexChanged(object sender, EventArgs e)
{
//整理人
BLL.UserService.InitUserUnitIdDropDownList(this.drpCompileMan, this.drpUnit.SelectedValue, true);
}
#region
/// <summary>
/// 保存按钮
@@ -121,7 +141,7 @@ namespace FineUIPro.Web.ZHGL.Emergency
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e)
{
{
this.SaveData(BLL.Const.BtnSave);
PageContext.RegisterStartupScript(ActiveWindow.GetHideRefreshReference());
}
@@ -150,23 +170,27 @@ namespace FineUIPro.Web.ZHGL.Emergency
{
Model.Emergency_EmergencyList_Unit EmergencyList = new Model.Emergency_EmergencyList_Unit
{
UnitId = this.UnitId,
//UnitId = this.UnitId,
EmergencyCode = this.txtEmergencyCode.Text.Trim(),
EmergencyName = this.txtEmergencyName.Text.Trim()
};
if (this.drpUnit.SelectedValue != BLL.Const._Null)
{
EmergencyList.UnitId = this.drpUnit.SelectedValue;
}
if (this.drpEmergencyType.SelectedValue != BLL.Const._Null)
{
EmergencyList.EmergencyTypeId = this.drpEmergencyType.SelectedValue;
}
EmergencyList.VersionCode = this.txtVersionCode.Text.Trim();
EmergencyList.CompileDate = Funs.GetNewDateTime(this.txtCompileDate.Text.Trim());
if (this.drpCompileMan.SelectedValue!=BLL.Const._Null)
if (this.drpCompileMan.SelectedValue != BLL.Const._Null)
{
EmergencyList.CompileMan = this.drpCompileMan.SelectedValue;
}
EmergencyList.EmergencyContents = HttpUtility.HtmlEncode(this.txtEmergencyContents.Text);
////单据状态
EmergencyList.States = BLL.Const.State_2;
//if (type == BLL.Const.BtnSubmit)
@@ -203,7 +227,7 @@ namespace FineUIPro.Web.ZHGL.Emergency
{
SaveData(BLL.Const.BtnSave);
}
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/EmergencyListAttachUrl&menuId={1}", EmergencyListId,BLL.Const.UnitEmergencyListMenuId)));
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/EmergencyListAttachUrl&menuId={1}", EmergencyListId, BLL.Const.UnitEmergencyListMenuId)));
}
#endregion
}
@@ -78,13 +78,13 @@ namespace FineUIPro.Web.ZHGL.Emergency
protected global::FineUIPro.TextBox txtVersionCode;
/// <summary>
/// txtUnit 控件。
/// drpUnit 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtUnit;
protected global::FineUIPro.DropDownList drpUnit;
/// <summary>
/// drpCompileMan 控件。
@@ -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>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.f-grid-row .f-grid-cell-inner
@@ -21,7 +21,7 @@
<f:Panel ID="Panel1" runat="server" ShowBorder="false" ShowHeader="false" Layout="Region">
<Items>
<f:Panel runat="server" ID="panelLeftRegion" RegionPosition="Left" RegionSplit="true"
EnableCollapse="true" Width="250" Title="安全隐患" TitleToolTip="安全隐患" ShowBorder="true"
EnableCollapse="true" Width="250" Title="隐患" TitleToolTip="隐患" ShowBorder="true"
ShowHeader="true" AutoScroll="true" BodyPadding="5px" IconFont="ArrowCircleLeft">
<Items>
<f:Tree ID="trRectify" Width="200px" EnableCollapse="true" ShowHeader="true" Title="作业类别"
@@ -30,7 +30,7 @@
</Items>
</f:Panel>
<f:Panel runat="server" ID="panelCenterRegion" RegionPosition="Center" ShowBorder="true"
ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="安全隐患明细" TitleToolTip="安全隐患明细"
ShowHeader="false" BodyPadding="5px" IconFont="PlusCircle" Title="隐患明细" TitleToolTip="隐患明细"
Layout="VBox">
<Items>
<f:Grid ID="Grid1" Width="870px" ShowBorder="true" ShowHeader="false" EnableCollapse="true"
@@ -14,6 +14,21 @@ namespace FineUIPro.Web.ZHGL.Supervise
/// 定义集合
/// </summary>
private static List<string> list = new List<string>();
/// <summary>
/// 类型:安全、质量
/// </summary>
public string Type
{
get
{
return (string)ViewState["type"];
}
set
{
ViewState["type"] = value;
}
}
#endregion
#region
@@ -27,6 +42,7 @@ namespace FineUIPro.Web.ZHGL.Supervise
if (!IsPostBack)
{
list = new List<string>();
this.Type = Request.Params["type"];
string lists = Request.Params["lists"];
list = Funs.GetStrListByStr(lists, ',');
InitTreeMenu();
@@ -63,7 +79,7 @@ namespace FineUIPro.Web.ZHGL.Supervise
/// <param name="menuId"></param>
private void BoundTree(TreeNodeCollection nodes, string menuId)
{
var dt = BLL.RectifyService.GetRectifyBySupRectifyId(menuId);
var dt = BLL.RectifyService.GetRectifyBySupRectifyId(menuId, this.Type);
if (dt.Count() > 0)
{
TreeNode tn = null;
@@ -112,7 +128,8 @@ namespace FineUIPro.Web.ZHGL.Supervise
new SqlParameter("@IsPass",true)
};
}
else {
else
{
strSql = "select * from View_Technique_RectifyItem where IsPass=@IsPass and HazardSourcePoint like @HazardSourcePoint ";
parameter = new SqlParameter[]
{
@@ -259,7 +276,7 @@ namespace FineUIPro.Web.ZHGL.Supervise
{
this.BindGrid();
}
}
}
}
@@ -288,6 +288,13 @@ namespace FineUIPro.Web.ZHGL.Supervise
}
}
if (string.IsNullOrEmpty(CurrUser.LoginProjectId))
{
btnDelete.Hidden = true;
btnEdit.Hidden = true;
btnMenuDelete.Hidden = true;
btnMenuEdit.Hidden = true;
}
}
#endregion
@@ -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>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.f-grid-row .f-grid-cell-inner {
@@ -24,7 +24,7 @@
<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"
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="监督检查报告" EnableCollapse="true"
runat="server" BoxFlex="1" DataKeyNames="SuperviseCheckReportId" AllowCellEditing="true"
ClicksToEdit="2" DataIDField="SuperviseCheckReportId" AllowSorting="true" SortField="CheckDate"
SortDirection="DESC" OnSort="Grid1_Sort" OnRowCommand="Grid1_RowCommand" EnableColumnLines="true"
@@ -37,7 +37,25 @@
<f:TextBox runat="server" ID="txtName" Label="查询" EmptyText="请输入查询条件" LabelWidth="50px" Width="250px"
AutoPostBack="true" OnTextChanged="txtName_TextChanged">
</f:TextBox>
<f:DropDownList ID="drpCheckMainType" runat="server" AutoPostBack="true" OnSelectedIndexChanged="DrpCheckMainType_SelectChanged" Label="检查大类" Width="180px" LabelWidth="80px" LabelAlign="Right" >
<f:ListItem Value="0" Text="安全" />
<f:ListItem Value="1" Text="质量" />
</f:DropDownList>
<f:DropDownList runat="server" ID="drpCheckType" EnableSimulateTree="True" LabelAlign="Right" Label="检查类别" AutoPostBack="true" LabelWidth="80px" Width="260px" OnSelectedIndexChanged="txtName_TextChanged" AutoSelectFirstItem="true">
</f:DropDownList>
<%--
<f:DropDownList ID="drpCheckType" runat="server" AutoPostBack="true" OnSelectedIndexChanged="txtName_TextChanged" Label="检查类别" Width="210px" LabelWidth="80px" LabelAlign="Right">
<f:ListItem Value="1" Text="企业负责人带班检查" />
<f:ListItem Value="2" Text="企业综合检查" />
<f:ListItem Value="3" Text="企业专项检查" />
</f:DropDownList>--%>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnNewDG" ToolTip="新增(定稿)" Icon="Add" EnablePostBack="false" runat="server" Text="新增(定稿)"
Hidden="true">
</f:Button>
<f:Button ID="btnNew" ToolTip="新增" Icon="Add" EnablePostBack="false" runat="server" Text="新增"
Hidden="true">
</f:Button>
@@ -64,9 +82,13 @@
SortField="SuperviseCheckReportCode" FieldType="String" HeaderText="编号" TextAlign="Left"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="240px" ColumnID="CheckUnitName" DataField="CheckUnitName"
SortField="CheckUnitName" FieldType="String" HeaderText="检查单位" TextAlign="Left"
HeaderTextAlign="Center">
</f:RenderField>
<f:GroupField HeaderText="检查对象" TextAlign="Left" HeaderTextAlign="Center">
<Columns>
<f:RenderField Width="220px" ColumnID="UnitName" DataField="UnitName" FieldType="String"
<f:RenderField Width="240px" ColumnID="UnitName" DataField="UnitName" FieldType="String"
HeaderText="单位" HeaderToolTip="检查单位" HeaderTextAlign="Center" TextAlign="Left">
</f:RenderField>
<f:RenderField Width="230px" ColumnID="ProjectName" DataField="ProjectName" FieldType="String"
@@ -81,10 +103,14 @@
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="检查日期"
HeaderTextAlign="Center" TextAlign="Center">
</f:RenderField>
<f:RenderField Width="90px" ColumnID="CheckMainTypeName" DataField="CheckMainTypeName"
FieldType="String" HeaderText="检查大类" TextAlign="Center"
HeaderTextAlign="Center">
</f:RenderField>
<f:RenderField Width="100px" ColumnID="CheckTypeName" DataField="CheckTypeName"
SortField="CheckTypeName" FieldType="String" HeaderText="检查类别" TextAlign="Left"
HeaderTextAlign="Center">
</f:RenderField>
SortField="CheckTypeName" FieldType="String" HeaderText="检查类别" TextAlign="Left"
HeaderTextAlign="Center">
</f:RenderField>
<f:TemplateField ColumnID="tfRectify" Width="120px" HeaderText="检查整改" HeaderTextAlign="Center" TextAlign="Left">
<ItemTemplate>
<asp:LinkButton ID="lbtnRectify" runat="server" Text="整改单" CommandArgument='<%#Bind("SuperviseCheckReportId") %>'
@@ -120,11 +146,11 @@
</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="true" runat="server" IsModal="true" OnClose="Window1_Close"
Width="1300px" Height="500px">
Width="1300px" Height="660px">
</f:Window>
<f:Window ID="Window2" Title="编辑安全监督检查报告" Hidden="true" EnableIFrame="true" EnableMaximize="true"
<f:Window ID="Window2" Title="编辑监督检查报告" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" IsModal="true" Width="1024px"
Height="600px" OnClose="Window2_Close1">
</f:Window>
@@ -25,6 +25,9 @@ namespace FineUIPro.Web.ZHGL.Supervise
{
////权限按钮方法
this.GetButtonPower();
Funs.FineUIPleaseSelect(this.drpCheckMainType);
//Funs.FineUIPleaseSelect(this.drpCheckType);
btnNewDG.OnClientClick = Window1.GetShowReference("SuperviseCheckReportFinalizeEdit.aspx") + "return false;";
btnNew.OnClientClick = Window1.GetShowReference("SuperviseCheckReportEdit.aspx") + "return false;";
btnDelete.OnClientClick = Grid1.GetNoSelectionAlertReference("请至少选择一项!");
btnDelete.ConfirmText = String.Format("你确定要删除选中的&nbsp;<b><script>{0}</script></b>&nbsp;行数据吗?", Grid1.GetSelectedCountReference());
@@ -40,11 +43,15 @@ namespace FineUIPro.Web.ZHGL.Supervise
/// </summary>
private void BindGrid()
{
string strSql = @"SELECT S.SuperviseCheckReportId,S.SuperviseCheckReportCode,S.CheckDate,S.ProjectId,P.ProjectName,S.UnitId,u.UnitName,S.CheckTeam,S.EvaluationResult,S.AttachUrl,S.IsIssued,case S.CheckType when '1' then '企业负责人带班检查' when '2' then '企业综合检查' when '3' then '企业专项检查' else '' end as CheckTypeName"
+ @" FROM dbo.Supervise_SuperviseCheckReport AS S"
+ @" LEFT JOIN dbo.Base_Project AS P ON P.ProjectId=S.ProjectId"
+ @" LEFT JOIN dbo.Base_Unit AS U ON U.UnitId=S.UnitId"
+ @" WHERE 1=1 ";
string strSql = @"SELECT S.SuperviseCheckReportId,S.SuperviseCheckReportCode,S.CheckDate,CU.UnitName as CheckUnitName,S.ProjectId,P.ProjectName,S.UnitId,u.UnitName,S.CheckTeam,S.EvaluationResult,S.AttachUrl,S.IsIssued
,case S.CheckMainType when '0' then '安全' when '1' then '质量' else '' end as CheckMainTypeName
,SType.CheckTypeName as CheckTypeName
FROM dbo.Supervise_SuperviseCheckReport AS S
LEFT JOIN dbo.Base_Project AS P ON P.ProjectId=S.ProjectId
LEFT JOIN dbo.Base_Unit AS U ON U.UnitId=S.UnitId
LEFT JOIN dbo.Base_Unit AS CU ON CU.UnitId=S.CheckUnitId
LEFT JOIN dbo.Base_SuperviseCheckType AS SType ON SType.CheckMainType=S.CheckMainType and SType.CheckTypeCode=S.CheckType
WHERE 1=1 ";
List<SqlParameter> listStr = new List<SqlParameter>();
if (!string.IsNullOrEmpty(this.txtName.Text.Trim()))
{
@@ -57,6 +64,16 @@ namespace FineUIPro.Web.ZHGL.Supervise
strSql += " AND P.UnitId = @UnitId";
listStr.Add(new SqlParameter("@UnitId", this.CurrUser.UnitId));
}
if (this.drpCheckMainType.SelectedValue != BLL.Const._Null)
{
strSql += " AND S.CheckMainType = @CheckMainType";
listStr.Add(new SqlParameter("@CheckMainType", this.drpCheckMainType.SelectedValue));
}
if (this.drpCheckType.SelectedValue != null && this.drpCheckType.SelectedValue != BLL.Const._Null)
{
strSql += " AND S.CheckType = @CheckType";
listStr.Add(new SqlParameter("@CheckType", this.drpCheckType.SelectedValue));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
@@ -81,9 +98,12 @@ namespace FineUIPro.Web.ZHGL.Supervise
if (rectify != null)
{
code = rectify.SuperviseCheckRectifyCode;
lblRectify.Text = "已下发:" + code;
}
else
{
lblRectify.Text = "定稿";
}
lblRectify.Text = "已下发:" + code;
}
else
{
@@ -329,9 +349,29 @@ namespace FineUIPro.Web.ZHGL.Supervise
ShowNotify("删除的检查报告中已下发检查整改记录,请先删除对应检查整改记录!", MessageBoxIcon.Warning);
return;
}
BLL.SubUnitCheckRectifyItemService.DeleteSubUnitCheckRectifyBySuperviseCheckReportId(rowID);
BLL.SuperviseCheckReportItemService.DeleteSuperviseCheckReportItemBySuperviseCheckReportId(rowID);
BLL.SuperviseCheckReportService.DeleteSuperviseCheckReportById(rowID);
var superviseCheckReport = BLL.SuperviseCheckReportService.GetSuperviseCheckReportById(rowID);
if (superviseCheckReport.IsUpdate == true)
{
var returndata = HSSEData_HSSEService.DeleteSuperviseCheckReportData(rowID);
if (returndata.code == 1)
{
BLL.SubUnitCheckRectifyItemService.DeleteSubUnitCheckRectifyBySuperviseCheckReportId(rowID);
BLL.SuperviseCheckReportItemService.DeleteSuperviseCheckReportItemBySuperviseCheckReportId(rowID);
BLL.SuperviseCheckReportService.DeleteSuperviseCheckReportById(rowID);
}
else
{
Alert.ShowInTop("记录已上报集团,集团删除失败,无法删除本地数据!", MessageBoxIcon.Warning);
return;
}
}
else
{
BLL.SubUnitCheckRectifyItemService.DeleteSubUnitCheckRectifyBySuperviseCheckReportId(rowID);
BLL.SuperviseCheckReportItemService.DeleteSuperviseCheckReportItemBySuperviseCheckReportId(rowID);
BLL.SuperviseCheckReportService.DeleteSuperviseCheckReportById(rowID);
}
}
BindGrid();
ShowNotify("删除数据成功!");
@@ -369,6 +409,7 @@ namespace FineUIPro.Web.ZHGL.Supervise
{
if (buttonList.Contains(BLL.Const.BtnAdd))
{
this.btnNewDG.Hidden = false;
this.btnNew.Hidden = false;
}
if (buttonList.Contains(BLL.Const.BtnModify))
@@ -380,6 +421,14 @@ namespace FineUIPro.Web.ZHGL.Supervise
this.btnDelete.Hidden = false;
}
}
//if (string.IsNullOrEmpty(CurrUser.LoginProjectId))
//{
// btnNewDG.Hidden = true;
// btnNew.Hidden = true;
// btnDelete.Hidden = true;
// btnEdit.Hidden = true;
//}
}
#endregion
@@ -596,6 +645,23 @@ namespace FineUIPro.Web.ZHGL.Supervise
{
this.BindGrid();
}
/// <summary>
/// 检查大类下拉触发事件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void DrpCheckMainType_SelectChanged(object sender, EventArgs e)
{
BLL.SuperviseCheckTypeService.InitCheckTypeDropDownListByMainType(this.drpCheckType, this.drpCheckMainType.SelectedValue, false);
//var mainType = drpCheckMainType.SelectedValue;
//if (!string.IsNullOrWhiteSpace(mainType) && mainType != Const._Null)
//{
// BLL.SuperviseCheckTypeService.InitCheckTypeDropDownListByMainType(this.drpCheckType, mainType, true);
//}
this.BindGrid();
}
#endregion
}
}
@@ -7,11 +7,13 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.ZHGL.Supervise {
public partial class SuperviseCheckReport {
namespace FineUIPro.Web.ZHGL.Supervise
{
public partial class SuperviseCheckReport
{
/// <summary>
/// form1 控件。
/// </summary>
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.ZHGL.Supervise {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.ZHGL.Supervise {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// Panel1 控件。
/// </summary>
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.ZHGL.Supervise {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// Grid1 控件。
/// </summary>
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.ZHGL.Supervise {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// Toolbar2 控件。
/// </summary>
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.ZHGL.Supervise {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar2;
/// <summary>
/// txtName 控件。
/// </summary>
@@ -65,7 +67,34 @@ namespace FineUIPro.Web.ZHGL.Supervise {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtName;
/// <summary>
/// drpCheckMainType 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpCheckMainType;
/// <summary>
/// drpCheckType 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpCheckType;
/// <summary>
/// btnNewDG 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnNewDG;
/// <summary>
/// btnNew 控件。
/// </summary>
@@ -74,7 +103,7 @@ namespace FineUIPro.Web.ZHGL.Supervise {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnNew;
/// <summary>
/// btnEdit 控件。
/// </summary>
@@ -83,7 +112,7 @@ namespace FineUIPro.Web.ZHGL.Supervise {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnEdit;
/// <summary>
/// btnDelete 控件。
/// </summary>
@@ -92,7 +121,7 @@ namespace FineUIPro.Web.ZHGL.Supervise {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnDelete;
/// <summary>
/// btnOut 控件。
/// </summary>
@@ -101,7 +130,7 @@ namespace FineUIPro.Web.ZHGL.Supervise {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnOut;
/// <summary>
/// lblNumber 控件。
/// </summary>
@@ -110,7 +139,7 @@ namespace FineUIPro.Web.ZHGL.Supervise {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblNumber;
/// <summary>
/// lbtnRectify 控件。
/// </summary>
@@ -119,7 +148,7 @@ namespace FineUIPro.Web.ZHGL.Supervise {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbtnRectify;
/// <summary>
/// lblRectify 控件。
/// </summary>
@@ -128,7 +157,7 @@ namespace FineUIPro.Web.ZHGL.Supervise {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblRectify;
/// <summary>
/// lbtnSubRec 控件。
/// </summary>
@@ -137,7 +166,7 @@ namespace FineUIPro.Web.ZHGL.Supervise {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.LinkButton lbtnSubRec;
/// <summary>
/// lblSubRec 控件。
/// </summary>
@@ -146,7 +175,7 @@ namespace FineUIPro.Web.ZHGL.Supervise {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.WebControls.Label lblSubRec;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
@@ -155,7 +184,7 @@ namespace FineUIPro.Web.ZHGL.Supervise {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
@@ -164,7 +193,7 @@ namespace FineUIPro.Web.ZHGL.Supervise {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
@@ -173,7 +202,7 @@ namespace FineUIPro.Web.ZHGL.Supervise {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
/// <summary>
/// Window1 控件。
/// </summary>
@@ -182,7 +211,7 @@ namespace FineUIPro.Web.ZHGL.Supervise {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// Window2 控件。
/// </summary>
@@ -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>
<link href="../../res/css/common.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.labcenter {
@@ -29,13 +29,27 @@
<f:TextBox ID="txtSuperviseCheckReportCode" runat="server" Label="检查编号" Required="true" FocusOnPageLoad="true"
MaxLength="50" ShowRedStar="true" AutoPostBack="true" OnTextChanged="TextBox_TextChanged">
</f:TextBox>
<f:DropDownList ID="drpCheckType" runat="server" EmptyText="请选择检查类别" ShowRedStar="true" Label="检查类别">
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" Label="检查日期" ID="dpkCheckDate">
</f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpCheckMainType" runat="server" EmptyText="请选择检查大类" ShowRedStar="true" Label="检查大类" AutoPostBack="true" OnSelectedIndexChanged="drpCheckMainType_SelectedIndexChanged">
<f:ListItem Value="0" Text="安全" />
<f:ListItem Value="1" Text="质量" />
</f:DropDownList>
<f:DropDownList runat="server" ID="drpCheckType" EnableEdit="true" LabelAlign="Right" Label="检查类别" AutoSelectFirstItem="true" Required="true" ShowRedStar="true">
</f:DropDownList>
<%--<f:DropDownList ID="drpCheckMainType" runat="server" EmptyText="请选择检查大类" ShowRedStar="true" Label="检查大类" >
<f:ListItem Value="0" Text="安全" />
<f:ListItem Value="1" Text="质量" />
</f:DropDownList>
<f:DropDownList ID="drpCheckType" runat="server" EmptyText="请选择检查类别" AutoSelectFirstItem="true" ShowRedStar="true" Label="检查类别">
<f:ListItem Value="1" Text="企业负责人带班检查" />
<f:ListItem Value="2" Text="企业综合检查" />
<f:ListItem Value="3" Text="企业专项检查" />
</f:DropDownList>
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" Label="检查日期" ID="dpkCheckDate">
</f:DatePicker>
</f:DropDownList>--%>
</Items>
</f:FormRow>
<f:FormRow>
@@ -50,13 +64,15 @@
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="ddlCheckUnitId" runat="server" EmptyText="请选择检查单位" Label="检查单位" ShowRedStar="true" Required="true" AutoSelectFirstItem="true">
</f:DropDownList>
<f:TextBox ID="txtCheckTeam" runat="server" Label="检查组/人">
</f:TextBox>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" runat="server" ClicksToEdit="1" Height="280px"
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" runat="server" ClicksToEdit="1" Height="390px"
DataKeyNames="SuperviseCheckReportItemId" EnableMultiSelect="false" ShowGridHeader="true"
EnableColumnLines="true" OnRowCommand="Grid1_RowCommand">
<Toolbars>
@@ -126,9 +142,9 @@
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnAttachUrl" Text="附件" ToolTip="附件上传及查看" Icon="TableCell" runat="server"
OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1" MarginLeft="5px">
</f:Button>
<f:Button ID="btnAttachUrl" Text="附件" ToolTip="附件上传及查看" Icon="TableCell" runat="server"
OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1" MarginLeft="5px">
</f:Button>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ValidateForms="SimpleForm1" Text="保存"
Hidden="true" OnClick="btnSave_Click">
@@ -136,9 +152,9 @@
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server" Icon="SystemClose" Text="关闭">
</f:Button>
<f:TextBox Hidden="true" ID="hdId" runat="server">
</f:TextBox>
</f:TextBox>
<f:TextBox Hidden="true" ID="hdAttachUrl" runat="server">
</f:TextBox>
</f:TextBox>
</Items>
</f:Toolbar>
</Toolbars>
@@ -151,10 +167,10 @@
Target="Parent" EnableResize="true" runat="server" OnClose="Window2_Close" IsModal="false"
Width="1300px" Height="640px">
</f:Window>
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" IsModal="true" Width="700px"
Height="500px">
</f:Window>
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" IsModal="true" Width="700px"
Height="500px">
</f:Window>
</form>
<script>
@@ -54,7 +54,9 @@ namespace FineUIPro.Web.ZHGL.Supervise
BLL.ProjectService.InitProjectDropDownList(this.ddlProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.ddlUnitId, this.ddlProjectId.SelectedValue, true);
Funs.FineUIPleaseSelect(this.drpCheckType);
BLL.UnitService.InitBranchUnitDropDownList(this.ddlCheckUnitId, false);
Funs.FineUIPleaseSelect(this.drpCheckMainType);
//Funs.FineUIPleaseSelect(this.drpCheckType);
this.SuperviseCheckReportId = Request.Params["SuperviseCheckReportId"];
var superviseCheckReport = BLL.SuperviseCheckReportService.GetSuperviseCheckReportById(this.SuperviseCheckReportId);
if (superviseCheckReport != null)
@@ -64,21 +66,30 @@ namespace FineUIPro.Web.ZHGL.Supervise
{
this.dpkCheckDate.Text = string.Format("{0:yyyy-MM-dd}", superviseCheckReport.CheckDate);
}
if (!string.IsNullOrEmpty(superviseCheckReport.CheckType))
if (!string.IsNullOrWhiteSpace(superviseCheckReport.CheckMainType))
{
this.drpCheckMainType.SelectedValue = superviseCheckReport.CheckMainType;
BLL.SuperviseCheckTypeService.InitCheckTypeDropDownListByMainType(this.drpCheckType, superviseCheckReport.CheckMainType, false);
}
if (!string.IsNullOrWhiteSpace(superviseCheckReport.CheckType))
{
this.drpCheckType.SelectedValue = superviseCheckReport.CheckType;
}
if (!string.IsNullOrEmpty(superviseCheckReport.ProjectId))
if (!string.IsNullOrWhiteSpace(superviseCheckReport.ProjectId))
{
this.ddlProjectId.SelectedValue = superviseCheckReport.ProjectId;
this.ddlUnitId.Items.Clear();
BLL.UnitService.InitUnitDropDownList(this.ddlUnitId, this.ddlProjectId.SelectedValue, true);
if (!string.IsNullOrEmpty(superviseCheckReport.UnitId))
if (!string.IsNullOrWhiteSpace(superviseCheckReport.UnitId))
{
this.ddlUnitId.SelectedValue = superviseCheckReport.UnitId;
}
}
if (!string.IsNullOrWhiteSpace(superviseCheckReport.CheckUnitId))
{
this.ddlCheckUnitId.SelectedValue = superviseCheckReport.CheckUnitId;
}
this.txtCheckTeam.Text = superviseCheckReport.CheckTeam;
superviseCheckReportItems = (from x in Funs.DB.View_Supervise_SuperviseCheckReportItem where x.SuperviseCheckReportId == this.SuperviseCheckReportId orderby x.RectifyCode select x).ToList();
@@ -93,6 +104,8 @@ namespace FineUIPro.Web.ZHGL.Supervise
}
else
{
var thisUnit = BLL.CommonService.GetIsThisUnit();
this.ddlCheckUnitId.SelectedValue = thisUnit.UnitId;
this.txtCheckTeam.Text = BLL.UnitService.GetUnitNameByUnitId(this.CurrUser.UnitId) + this.CurrUser.UserName;
this.dpkCheckDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
}
@@ -102,6 +115,17 @@ namespace FineUIPro.Web.ZHGL.Supervise
}
}
/// <summary>
/// 检查大类下拉加载
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void drpCheckMainType_SelectedIndexChanged(object sender, EventArgs e)
{
//检查类别
BLL.SuperviseCheckTypeService.InitCheckTypeDropDownListByMainType(this.drpCheckType, this.drpCheckMainType.SelectedValue, false);
}
private void GetCheckItem()
{
for (int i = 0; i < Grid1.Rows.Count; i++)
@@ -175,12 +199,12 @@ namespace FineUIPro.Web.ZHGL.Supervise
{
lists += item.RectifyItemId + ",";
}
if (!string.IsNullOrEmpty(lists))
if (!string.IsNullOrWhiteSpace(lists))
{
lists = lists.Substring(0, lists.LastIndexOf(","));
}
string window = String.Format("ShowRectifyItem.aspx?lists={0}", lists, "选择 - ");
string type = this.drpCheckMainType.SelectedValue;
string window = String.Format("ShowRectifyItem.aspx?lists={0}&type={1}", lists, type, "选择 - ");
PageContext.RegisterStartupScript(Window2.GetSaveStateReference(hdItemId.ClientID)
+ Window2.GetShowReference(window));
}
@@ -194,7 +218,7 @@ namespace FineUIPro.Web.ZHGL.Supervise
/// <param name="e"></param>
protected void Window2_Close(object sender, EventArgs e)
{
if (!string.IsNullOrEmpty(hdItemId.Text))
if (!string.IsNullOrWhiteSpace(hdItemId.Text))
{
if (superviseCheckReportItems.Count == 0)
{
@@ -267,16 +291,26 @@ namespace FineUIPro.Web.ZHGL.Supervise
/// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e)
{
if (this.drpCheckMainType.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("检查大类不能为空!", MessageBoxIcon.Warning);
return;
}
if (this.drpCheckType.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("检查类别不能为空!", MessageBoxIcon.Warning);
return;
}
if (this.ddlCheckUnitId.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("检查单位不能为空!", MessageBoxIcon.Warning);
return;
}
Model.Supervise_SuperviseCheckReport superviseCheckReport = new Model.Supervise_SuperviseCheckReport
{
SuperviseCheckReportCode = this.txtSuperviseCheckReportCode.Text.Trim()
};
if (!string.IsNullOrEmpty(this.dpkCheckDate.Text.Trim()))
if (!string.IsNullOrWhiteSpace(this.dpkCheckDate.Text.Trim()))
{
superviseCheckReport.CheckDate = Convert.ToDateTime(this.dpkCheckDate.Text.Trim());
}
@@ -284,6 +318,10 @@ namespace FineUIPro.Web.ZHGL.Supervise
{
superviseCheckReport.CheckType = this.drpCheckType.SelectedValue;
}
if (this.drpCheckMainType.SelectedValue != BLL.Const._Null)
{
superviseCheckReport.CheckMainType = this.drpCheckMainType.SelectedValue;
}
if (this.ddlProjectId.SelectedValue != BLL.Const._Null)
{
superviseCheckReport.ProjectId = this.ddlProjectId.SelectedValue;
@@ -292,8 +330,12 @@ namespace FineUIPro.Web.ZHGL.Supervise
{
superviseCheckReport.UnitId = this.ddlUnitId.SelectedValue;
}
if (this.ddlCheckUnitId.SelectedValue != BLL.Const._Null)
{
superviseCheckReport.CheckUnitId = this.ddlCheckUnitId.SelectedValue;
}
superviseCheckReport.CheckTeam = this.txtCheckTeam.Text.Trim();
if (string.IsNullOrEmpty(this.SuperviseCheckReportId))
if (string.IsNullOrWhiteSpace(this.SuperviseCheckReportId))
{
superviseCheckReport.SuperviseCheckReportId = SQLHelper.GetNewID(typeof(Model.Supervise_SuperviseCheckReport));
SuperviseCheckReportId = superviseCheckReport.SuperviseCheckReportId;
@@ -339,7 +381,7 @@ namespace FineUIPro.Web.ZHGL.Supervise
protected void Window1_Close(object sender, EventArgs e)
{
jerqueSaveList();
if (!string.IsNullOrEmpty(hdAttachUrl.Text))
if (!string.IsNullOrWhiteSpace(hdAttachUrl.Text))
{
var item = superviseCheckReportItems.FirstOrDefault(x => x.SuperviseCheckReportItemId == hdId.Text);
item.AttachUrl = hdAttachUrl.Text;
@@ -422,21 +464,35 @@ namespace FineUIPro.Web.ZHGL.Supervise
/// <param name="e"></param>
protected void btnAttachUrl_Click(object sender, EventArgs e)
{
if (string.IsNullOrEmpty(this.SuperviseCheckReportId))
if (string.IsNullOrWhiteSpace(this.SuperviseCheckReportId))
{
if (this.drpCheckMainType.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("检查大类不能为空!", MessageBoxIcon.Warning);
return;
}
if (this.drpCheckType.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("检查类别不能为空!", MessageBoxIcon.Warning);
return;
}
if (this.ddlCheckUnitId.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("检查单位不能为空!", MessageBoxIcon.Warning);
return;
}
Model.Supervise_SuperviseCheckReport superviseCheckReport = new Model.Supervise_SuperviseCheckReport
{
SuperviseCheckReportCode = this.txtSuperviseCheckReportCode.Text.Trim()
};
if (!string.IsNullOrEmpty(this.dpkCheckDate.Text.Trim()))
if (!string.IsNullOrWhiteSpace(this.dpkCheckDate.Text.Trim()))
{
superviseCheckReport.CheckDate = Convert.ToDateTime(this.dpkCheckDate.Text.Trim());
}
if (this.drpCheckMainType.SelectedValue != BLL.Const._Null)
{
superviseCheckReport.CheckMainType = this.drpCheckMainType.SelectedValue;
}
if (this.drpCheckType.SelectedValue != BLL.Const._Null)
{
superviseCheckReport.CheckType = this.drpCheckType.SelectedValue;
@@ -449,8 +505,13 @@ namespace FineUIPro.Web.ZHGL.Supervise
{
superviseCheckReport.UnitId = this.ddlUnitId.SelectedValue;
}
if (this.ddlCheckUnitId.SelectedValue != BLL.Const._Null)
{
superviseCheckReport.CheckUnitId = this.ddlCheckUnitId.SelectedValue;
}
superviseCheckReport.CheckTeam = this.txtCheckTeam.Text.Trim();
if (string.IsNullOrEmpty(this.SuperviseCheckReportId))
if (string.IsNullOrWhiteSpace(this.SuperviseCheckReportId))
{
superviseCheckReport.SuperviseCheckReportId = SQLHelper.GetNewID(typeof(Model.Supervise_SuperviseCheckReport));
SuperviseCheckReportId = superviseCheckReport.SuperviseCheckReportId;
@@ -50,15 +50,6 @@ namespace FineUIPro.Web.ZHGL.Supervise
/// </remarks>
protected global::FineUIPro.TextBox txtSuperviseCheckReportCode;
/// <summary>
/// drpCheckType 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpCheckType;
/// <summary>
/// dpkCheckDate 控件。
/// </summary>
@@ -68,6 +59,24 @@ namespace FineUIPro.Web.ZHGL.Supervise
/// </remarks>
protected global::FineUIPro.DatePicker dpkCheckDate;
/// <summary>
/// drpCheckMainType 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpCheckMainType;
/// <summary>
/// drpCheckType 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpCheckType;
/// <summary>
/// ddlProjectId 控件。
/// </summary>
@@ -86,6 +95,15 @@ namespace FineUIPro.Web.ZHGL.Supervise
/// </remarks>
protected global::FineUIPro.DropDownList ddlUnitId;
/// <summary>
/// ddlCheckUnitId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlCheckUnitId;
/// <summary>
/// txtCheckTeam 控件。
/// </summary>
@@ -0,0 +1,122 @@
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SuperviseCheckReportFinalizeEdit.aspx.cs" Inherits="FineUIPro.Web.ZHGL.Supervise.SuperviseCheckReportFinalizeEdit" %>
<!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" />
<style type="text/css">
.labcenter {
text-align: center;
}
.f-grid-row .f-grid-cell-inner {
white-space: normal;
word-break: break-all;
}
</style>
</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="txtSuperviseCheckReportCode" runat="server" Label="检查编号" Required="true" FocusOnPageLoad="true"
MaxLength="50" ShowRedStar="true" AutoPostBack="true" OnTextChanged="TextBox_TextChanged">
</f:TextBox>
<f:DatePicker runat="server" DateFormatString="yyyy-MM-dd" Label="检查日期" ID="dpkCheckDate">
</f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="drpCheckMainType" runat="server" EmptyText="请选择检查大类" ShowRedStar="true" Label="检查大类" AutoPostBack="true" OnSelectedIndexChanged="drpCheckMainType_SelectedIndexChanged">
<f:ListItem Value="0" Text="安全" />
<f:ListItem Value="1" Text="质量" />
</f:DropDownList>
<f:DropDownList runat="server" ID="drpCheckType" EnableEdit="true" LabelAlign="Right" Label="检查类别" AutoSelectFirstItem="true" Required="true" ShowRedStar="true">
</f:DropDownList>
<%--<f:DropDownList ID="drpCheckMainType" runat="server" EmptyText="请选择检查大类" ShowRedStar="true" Label="检查大类" >
<f:ListItem Value="0" Text="安全" />
<f:ListItem Value="1" Text="质量" />
</f:DropDownList>
<f:DropDownList ID="drpCheckType" runat="server" EmptyText="请选择检查类别" AutoSelectFirstItem="true" ShowRedStar="true" Label="检查类别">
<f:ListItem Value="1" Text="企业负责人带班检查" />
<f:ListItem Value="2" Text="企业综合检查" />
<f:ListItem Value="3" Text="企业专项检查" />
</f:DropDownList>--%>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="ddlProjectId" runat="server" EmptyText="请选择项目" EnableEdit="true"
Label="检查对象" ShowRedStar="true" AutoPostBack="true" OnSelectedIndexChanged="ddlProjectId_SelectedIndexChanged">
</f:DropDownList>
<f:DropDownList ID="ddlUnitId" runat="server" EmptyText="请选择单位" ShowRedStar="true">
</f:DropDownList>
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<f:DropDownList ID="ddlCheckUnitId" runat="server" EmptyText="请选择检查单位" Label="检查单位" ShowRedStar="true" Required="true" AutoSelectFirstItem="true">
</f:DropDownList>
<f:TextBox ID="txtCheckTeam" runat="server" Label="检查组/人">
</f:TextBox>
</Items>
</f:FormRow>
</Rows>
<Toolbars>
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
<Items>
<f:Button ID="btnSubRec" Text="报告单" ToolTip="报告单" Icon="PageWhiteEdit" runat="server"
OnClick="btnSubRec_Click" ValidateForms="SimpleForm1" MarginLeft="5px">
</f:Button>
<f:ToolbarFill runat="server">
</f:ToolbarFill>
<f:Button ID="btnAttachUrl" Text="附件" ToolTip="附件上传及查看" Icon="TableCell" runat="server"
OnClick="btnAttachUrl_Click" ValidateForms="SimpleForm1" MarginLeft="5px">
</f:Button>
<f:Button ID="btnSave" Icon="SystemSave" runat="server" ValidateForms="SimpleForm1" Text="保存"
Hidden="true" OnClick="btnSave_Click">
</f:Button>
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" runat="server" Icon="SystemClose" Text="关闭">
</f:Button>
<f:TextBox Hidden="true" ID="hdId" runat="server">
</f:TextBox>
<f:TextBox Hidden="true" ID="hdAttachUrl" runat="server">
</f:TextBox>
</Items>
</f:Toolbar>
</Toolbars>
</f:Form>
<%--<f:Window ID="Window1" Title="上传附件" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Self" EnableResize="true" runat="server" OnClose="Window1_Close" IsModal="true"
Width="500px" Height="300px">
</f:Window>
<f:Window ID="Window2" Title="选择隐患项" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" OnClose="Window2_Close" IsModal="false"
Width="1300px" Height="640px">
</f:Window>--%>
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" IsModal="true" Width="700px"
Height="500px">
</f:Window>
<f:Window ID="Window2" Title="编辑监督检查报告" Hidden="true" EnableIFrame="true" EnableMaximize="true"
Target="Parent" EnableResize="true" runat="server" IsModal="true" Width="1024px"
Height="600px">
</f:Window>
</form>
<script>
function onGridDataLoad(event) {
this.mergeColumns(['RectifyName']);
}
</script>
</body>
</html>
@@ -0,0 +1,659 @@
using BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.UI.WebControls;
namespace FineUIPro.Web.ZHGL.Supervise
{
public partial class SuperviseCheckReportFinalizeEdit : PageBase
{
#region
/// <summary>
/// 主键
/// </summary>
public string SuperviseCheckReportId
{
get
{
return (string)ViewState["SuperviseCheckReportId"];
}
set
{
ViewState["SuperviseCheckReportId"] = value;
}
}
/// <summary>
/// 定义集合
/// </summary>
private static List<Model.View_Supervise_SuperviseCheckReportItem> superviseCheckReportItems = new List<Model.View_Supervise_SuperviseCheckReportItem>();
#endregion
#region
/// <summary>
/// 加载页面
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
//hdItemId.Text = string.Empty;
hdAttachUrl.Text = string.Empty;
hdId.Text = string.Empty;
btnClose.OnClientClick = ActiveWindow.GetHideReference();
superviseCheckReportItems.Clear();
if (Request.Params["type"] != "-1")
{
////权限按钮方法
this.GetButtonPower();
}
BLL.ProjectService.InitProjectDropDownList(this.ddlProjectId, true);
BLL.UnitService.InitUnitDropDownList(this.ddlUnitId, this.ddlProjectId.SelectedValue, true);
BLL.UnitService.InitBranchUnitDropDownList(this.ddlCheckUnitId, false);
Funs.FineUIPleaseSelect(this.drpCheckMainType);
//Funs.FineUIPleaseSelect(this.drpCheckType);
this.SuperviseCheckReportId = Request.Params["SuperviseCheckReportId"];
var superviseCheckReport = BLL.SuperviseCheckReportService.GetSuperviseCheckReportById(this.SuperviseCheckReportId);
if (superviseCheckReport != null)
{
this.txtSuperviseCheckReportCode.Text = superviseCheckReport.SuperviseCheckReportCode;
if (superviseCheckReport.CheckDate != null)
{
this.dpkCheckDate.Text = string.Format("{0:yyyy-MM-dd}", superviseCheckReport.CheckDate);
}
if (!string.IsNullOrWhiteSpace(superviseCheckReport.CheckMainType))
{
this.drpCheckMainType.SelectedValue = superviseCheckReport.CheckMainType;
BLL.SuperviseCheckTypeService.InitCheckTypeDropDownListByMainType(this.drpCheckType, superviseCheckReport.CheckMainType, false);
}
if (!string.IsNullOrWhiteSpace(superviseCheckReport.CheckType))
{
this.drpCheckType.SelectedValue = superviseCheckReport.CheckType;
}
if (!string.IsNullOrWhiteSpace(superviseCheckReport.ProjectId))
{
this.ddlProjectId.SelectedValue = superviseCheckReport.ProjectId;
this.ddlUnitId.Items.Clear();
BLL.UnitService.InitUnitDropDownList(this.ddlUnitId, this.ddlProjectId.SelectedValue, true);
if (!string.IsNullOrWhiteSpace(superviseCheckReport.UnitId))
{
this.ddlUnitId.SelectedValue = superviseCheckReport.UnitId;
}
}
if (!string.IsNullOrWhiteSpace(superviseCheckReport.CheckUnitId))
{
this.ddlCheckUnitId.SelectedValue = superviseCheckReport.CheckUnitId;
}
this.txtCheckTeam.Text = superviseCheckReport.CheckTeam;
superviseCheckReportItems = (from x in Funs.DB.View_Supervise_SuperviseCheckReportItem where x.SuperviseCheckReportId == this.SuperviseCheckReportId orderby x.RectifyCode select x).ToList();
//var report = BLL.SuperviseCheckReportService.GetSuperviseCheckReportById(this.SuperviseCheckReportId);
//if (report != null && report.IsIssued == "1") //已下发
//{
// this.btnSave.Hidden = true;
// this.btnSelect.Hidden = true;
// Grid1.Columns[10].Hidden = true;
//}
}
else
{
var thisUnit = BLL.CommonService.GetIsThisUnit();
this.ddlCheckUnitId.SelectedValue = thisUnit.UnitId;
this.txtCheckTeam.Text = BLL.UnitService.GetUnitNameByUnitId(this.CurrUser.UnitId) + this.CurrUser.UserName;
this.dpkCheckDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
}
//Grid1.DataSource = superviseCheckReportItems;
//Grid1.DataBind();
//GetCheckItem();
}
}
/// <summary>
/// 检查大类下拉加载
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void drpCheckMainType_SelectedIndexChanged(object sender, EventArgs e)
{
//检查类别
BLL.SuperviseCheckTypeService.InitCheckTypeDropDownListByMainType(this.drpCheckType, this.drpCheckMainType.SelectedValue, false);
}
//private void GetCheckItem()
//{
// for (int i = 0; i < Grid1.Rows.Count; i++)
// {
// var item = superviseCheckReportItems.FirstOrDefault(x => x.SuperviseCheckReportItemId == Grid1.Rows[i].Values[7].ToString());
// if (item != null)
// {
// CheckBoxField checkField = (CheckBoxField)Grid1.FindColumn("ckbIsSelected");
// if (item.IsSelected == true)
// {
// //Grid1.Rows[i].Values[6] = "True";
// checkField.SetCheckedState(i, true);
// }
// }
// }
//}
#endregion
#region Grid行点击事件
///// <summary>
///// Grid行事件
///// </summary>
///// <param name="sender"></param>
///// <param name="e"></param>
//protected void Grid1_RowCommand(object sender, GridCommandEventArgs e)
//{
// string rowID = Grid1.DataKeys[e.RowIndex][0].ToString();
// if (e.CommandName == "IsSelected")
// {
// CheckBoxField checkField = (CheckBoxField)Grid1.FindColumn("ckbIsSelected");
// if (checkField.GetCheckedState(e.RowIndex))
// {
// hdId.Text = rowID;
// PageContext.RegisterStartupScript(Window1.GetSaveStateReference(hdAttachUrl.ClientID)
// + Window1.GetShowReference("ShowFileUpload.aspx"));
// }
// }
// if (e.CommandName == "Attach")
// {
// var item = superviseCheckReportItems.FirstOrDefault(x => x.SuperviseCheckReportItemId == Grid1.Rows[e.RowIndex].Values[7].ToString());
// if (item != null)
// {
// PageBase.ShowFileEvent(item.AttachUrl);
// }
// }
// if (e.CommandName == "Delete")
// {
// //jerqueSaveList();
// //superviseCheckReportItems = (from x in superviseCheckReportItems where x.SuperviseCheckReportItemId != rowID select x).ToList();
// //Grid1.DataSource = superviseCheckReportItems;
// //Grid1.DataBind();
// GetCheckItem();
// ShowNotify("删除数据成功!", MessageBoxIcon.Success);
// }
//}
#endregion
#region
///// <summary>
///// 选择按钮
///// </summary>
///// <param name="sender"></param>
///// <param name="e"></param>
//protected void btnSelect_Click(object sender, EventArgs e)
//{
// jerqueSaveList();
// string lists = string.Empty;
// foreach (var item in superviseCheckReportItems)
// {
// lists += item.RectifyItemId + ",";
// }
// if (!string.IsNullOrWhiteSpace(lists))
// {
// lists = lists.Substring(0, lists.LastIndexOf(","));
// }
// string type = this.drpCheckMainType.SelectedValue;
// string window = String.Format("ShowRectifyItem.aspx?lists={0}&type={1}", lists, type, "选择 - ");
// PageContext.RegisterStartupScript(Window2.GetSaveStateReference(hdItemId.ClientID)
// + Window2.GetShowReference(window));
//}
#endregion
#region
///// <summary>
///// 关闭窗口
///// </summary>
///// <param name="sender"></param>
///// <param name="e"></param>
//protected void Window2_Close(object sender, EventArgs e)
//{
// if (!string.IsNullOrWhiteSpace(hdItemId.Text))
// {
// if (superviseCheckReportItems.Count == 0)
// {
// List<string> itemIds = hdItemId.Text.Split(',').ToList();
// var rectifyItem = from x in Funs.DB.View_Technique_RectifyItem where itemIds.Contains(x.RectifyItemId) orderby x.RectifyCode select x;
// foreach (var item in rectifyItem)
// {
// Model.View_Supervise_SuperviseCheckReportItem superviseCheckReportItem = new Model.View_Supervise_SuperviseCheckReportItem
// {
// SuperviseCheckReportItemId = SQLHelper.GetNewID(typeof(Model.Supervise_SuperviseCheckReportItem)),
// SuperviseCheckReportId = this.SuperviseCheckReportId,
// RectifyItemId = item.RectifyItemId,
// HazardSourcePoint = item.HazardSourcePoint,
// RiskAnalysis = item.RiskAnalysis,
// RiskPrevention = item.RiskPrevention,
// SimilarRisk = item.SimilarRisk,
// RectifyName = item.RectifyName,
// RectifyCode = item.RectifyCode,
// IsSelected = false
// };
// superviseCheckReportItems.Add(superviseCheckReportItem);
// }
// }
// else
// {
// List<string> itemIds = hdItemId.Text.Split(',').ToList();
// List<string> superviseCheckReportItemsRectifyItemIds = superviseCheckReportItems.Select(x => x.RectifyItemId).ToList();
// foreach (var item in itemIds)
// {
// if (!superviseCheckReportItemsRectifyItemIds.Contains(item))
// {
// var rectifyItem = (from x in Funs.DB.View_Technique_RectifyItem where x.RectifyItemId == item orderby x.RectifyCode select x).FirstOrDefault();
// if (rectifyItem != null)
// {
// Model.View_Supervise_SuperviseCheckReportItem superviseCheckReportItem = new Model.View_Supervise_SuperviseCheckReportItem
// {
// SuperviseCheckReportItemId = SQLHelper.GetNewID(typeof(Model.Supervise_SuperviseCheckReportItem)),
// SuperviseCheckReportId = this.SuperviseCheckReportId,
// RectifyItemId = rectifyItem.RectifyItemId,
// HazardSourcePoint = rectifyItem.HazardSourcePoint,
// RiskAnalysis = rectifyItem.RiskAnalysis,
// RiskPrevention = rectifyItem.RiskPrevention,
// SimilarRisk = rectifyItem.SimilarRisk,
// RectifyName = rectifyItem.RectifyName,
// RectifyCode = rectifyItem.RectifyCode,
// IsSelected = false
// };
// superviseCheckReportItems.Add(superviseCheckReportItem);
// }
// }
// }
// superviseCheckReportItems = (from x in superviseCheckReportItems
// join y in Funs.DB.View_Technique_RectifyItem
// on x.RectifyItemId equals y.RectifyItemId
// orderby y.RectifyCode
// select x).ToList();
// }
// Grid1.DataSource = superviseCheckReportItems;
// Grid1.DataBind();
// hdItemId.Text = string.Empty;
// }
//}
#endregion
#region
/// <summary>
/// 保存按钮
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSave_Click(object sender, EventArgs e)
{
if (this.drpCheckMainType.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("检查大类不能为空!", MessageBoxIcon.Warning);
return;
}
if (this.drpCheckType.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("检查类别不能为空!", MessageBoxIcon.Warning);
return;
}
if (this.ddlCheckUnitId.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("检查单位不能为空!", MessageBoxIcon.Warning);
return;
}
Model.Supervise_SuperviseCheckReport superviseCheckReport = new Model.Supervise_SuperviseCheckReport
{
SuperviseCheckReportCode = this.txtSuperviseCheckReportCode.Text.Trim()
};
if (!string.IsNullOrWhiteSpace(this.dpkCheckDate.Text.Trim()))
{
superviseCheckReport.CheckDate = Convert.ToDateTime(this.dpkCheckDate.Text.Trim());
}
if (this.drpCheckType.SelectedValue != BLL.Const._Null)
{
superviseCheckReport.CheckType = this.drpCheckType.SelectedValue;
}
if (this.drpCheckMainType.SelectedValue != BLL.Const._Null)
{
superviseCheckReport.CheckMainType = this.drpCheckMainType.SelectedValue;
}
if (this.ddlProjectId.SelectedValue != BLL.Const._Null)
{
superviseCheckReport.ProjectId = this.ddlProjectId.SelectedValue;
}
if (this.ddlUnitId.SelectedValue != BLL.Const._Null)
{
superviseCheckReport.UnitId = this.ddlUnitId.SelectedValue;
}
if (this.ddlCheckUnitId.SelectedValue != BLL.Const._Null)
{
superviseCheckReport.CheckUnitId = this.ddlCheckUnitId.SelectedValue;
}
superviseCheckReport.CheckTeam = this.txtCheckTeam.Text.Trim();
superviseCheckReport.IsIssued = "1";
if (string.IsNullOrWhiteSpace(this.SuperviseCheckReportId))
{
superviseCheckReport.SuperviseCheckReportId = SQLHelper.GetNewID(typeof(Model.Supervise_SuperviseCheckReport));
SuperviseCheckReportId = superviseCheckReport.SuperviseCheckReportId;
BLL.SuperviseCheckReportService.AddSuperviseCheckReport(superviseCheckReport);
BLL.LogService.AddSys_Log(this.CurrUser, superviseCheckReport.SuperviseCheckReportCode, superviseCheckReport.SuperviseCheckReportId, BLL.Const.SuperviseCheckReportMenuId, Const.BtnAdd);
}
else
{
var report = BLL.SuperviseCheckReportService.GetSuperviseCheckReportById(this.SuperviseCheckReportId);
if (report.IsIssued == "1") //已下发
{
ShowNotify("已下发检查整改,无法修改!", MessageBoxIcon.Warning);
return;
}
superviseCheckReport.SuperviseCheckReportId = this.SuperviseCheckReportId;
BLL.SuperviseCheckReportService.UpdateSuperviseCheckReport(superviseCheckReport);
BLL.SuperviseCheckReportItemService.DeleteSuperviseCheckReportItemBySuperviseCheckReportId(this.SuperviseCheckReportId);
BLL.LogService.AddSys_Log(this.CurrUser, superviseCheckReport.SuperviseCheckReportCode, superviseCheckReport.SuperviseCheckReportId, BLL.Const.SuperviseCheckReportMenuId, Const.BtnModify);
}
//jerqueSaveList();
foreach (var item in superviseCheckReportItems)
{
Model.Supervise_SuperviseCheckReportItem superviseCheckReportItem = new Model.Supervise_SuperviseCheckReportItem
{
SuperviseCheckReportItemId = item.SuperviseCheckReportItemId,
SuperviseCheckReportId = superviseCheckReport.SuperviseCheckReportId,
RectifyItemId = item.RectifyItemId,
IsSelected = item.IsSelected,
AttachUrl = item.AttachUrl
};
BLL.SuperviseCheckReportItemService.AddSuperviseCheckReportItem(superviseCheckReportItem);
}
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
}
#endregion
#region
/// <summary>
/// 关闭弹出窗
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Window1_Close(object sender, EventArgs e)
{
//jerqueSaveList();
if (!string.IsNullOrWhiteSpace(hdAttachUrl.Text))
{
var item = superviseCheckReportItems.FirstOrDefault(x => x.SuperviseCheckReportItemId == hdId.Text);
item.AttachUrl = hdAttachUrl.Text;
item.AttachUrlName = hdAttachUrl.Text.Substring((hdAttachUrl.Text.LastIndexOf("~") + 1), (hdAttachUrl.Text.Length - hdAttachUrl.Text.LastIndexOf("~") - 1));
}
//Grid1.DataSource = superviseCheckReportItems;
//Grid1.DataBind();
//GetCheckItem();
hdId.Text = string.Empty;
hdAttachUrl.Text = string.Empty;
}
#endregion
#region
///// <summary>
///// 保存集合
///// </summary>
//private void jerqueSaveList()
//{
// for (int i = 0; i < Grid1.Rows.Count; i++)
// {
// if (Grid1.Rows[i].Values[7] != null && Grid1.Rows[i].Values[7].ToString() != "")
// {
// var item = superviseCheckReportItems.FirstOrDefault(e => e.SuperviseCheckReportItemId == Grid1.Rows[i].Values[7].ToString());
// //item.IsSelected = ((System.Web.UI.WebControls.CheckBox)(Grid1.Rows[i].FindControl("ckbIsSelected"))).Checked;
// CheckBoxField checkField = (CheckBoxField)Grid1.FindColumn("ckbIsSelected");
// item.IsSelected = checkField.GetCheckedState(i);
// item.AttachUrl = Grid1.Rows[i].Values[8].ToString();
// }
// }
//}
#endregion
#region
/// <summary>
/// 验证检查编号是否存在
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void TextBox_TextChanged(object sender, EventArgs e)
{
var standard = Funs.DB.Supervise_SuperviseCheckReport.FirstOrDefault(x => x.SuperviseCheckReportCode == this.txtSuperviseCheckReportCode.Text.Trim() && (x.SuperviseCheckReportId != this.SuperviseCheckReportId || (this.SuperviseCheckReportId == null && x.SuperviseCheckReportId != null)));
if (standard != null)
{
ShowNotify("输入的检查编号已存在!", MessageBoxIcon.Warning);
}
}
#endregion
#region
/// <summary>
/// 获取按钮权限
/// </summary>
/// <param name="button"></param>
/// <returns></returns>
private void GetButtonPower()
{
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.SuperviseCheckReportMenuId);
if (buttonList.Count() > 0)
{
if (buttonList.Contains(BLL.Const.BtnSave))
{
this.btnSave.Hidden = false;
}
}
}
#endregion
protected void ddlProjectId_SelectedIndexChanged(object sender, EventArgs e)
{
this.ddlUnitId.Items.Clear();
BLL.UnitService.InitUnitDropDownList(this.ddlUnitId, this.ddlProjectId.SelectedValue, true);
}
#region
/// <summary>
/// 报告报告
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnSubRec_Click(object sender, EventArgs e)
{
if (string.IsNullOrWhiteSpace(this.SuperviseCheckReportId))
{
if (this.drpCheckMainType.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("检查大类不能为空!", MessageBoxIcon.Warning);
return;
}
if (this.drpCheckType.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("检查类别不能为空!", MessageBoxIcon.Warning);
return;
}
if (this.ddlCheckUnitId.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("检查单位不能为空!", MessageBoxIcon.Warning);
return;
}
Model.Supervise_SuperviseCheckReport superviseCheckReport = new Model.Supervise_SuperviseCheckReport
{
SuperviseCheckReportCode = this.txtSuperviseCheckReportCode.Text.Trim()
};
if (!string.IsNullOrWhiteSpace(this.dpkCheckDate.Text.Trim()))
{
superviseCheckReport.CheckDate = Convert.ToDateTime(this.dpkCheckDate.Text.Trim());
}
if (this.drpCheckMainType.SelectedValue != BLL.Const._Null)
{
superviseCheckReport.CheckMainType = this.drpCheckMainType.SelectedValue;
}
if (this.drpCheckType.SelectedValue != BLL.Const._Null)
{
superviseCheckReport.CheckType = this.drpCheckType.SelectedValue;
}
if (this.ddlProjectId.SelectedValue != BLL.Const._Null)
{
superviseCheckReport.ProjectId = this.ddlProjectId.SelectedValue;
}
if (this.ddlUnitId.SelectedValue != BLL.Const._Null)
{
superviseCheckReport.UnitId = this.ddlUnitId.SelectedValue;
}
if (this.ddlCheckUnitId.SelectedValue != BLL.Const._Null)
{
superviseCheckReport.CheckUnitId = this.ddlCheckUnitId.SelectedValue;
}
superviseCheckReport.CheckTeam = this.txtCheckTeam.Text.Trim();
if (string.IsNullOrWhiteSpace(this.SuperviseCheckReportId))
{
superviseCheckReport.SuperviseCheckReportId = SQLHelper.GetNewID(typeof(Model.Supervise_SuperviseCheckReport));
SuperviseCheckReportId = superviseCheckReport.SuperviseCheckReportId;
BLL.SuperviseCheckReportService.AddSuperviseCheckReport(superviseCheckReport);
BLL.LogService.AddSys_Log(this.CurrUser, superviseCheckReport.SuperviseCheckReportCode, superviseCheckReport.SuperviseCheckReportId, BLL.Const.SuperviseCheckReportMenuId, Const.BtnAdd);
this.SuperviseCheckReportId = superviseCheckReport.SuperviseCheckReportId;
}
else
{
var report = BLL.SuperviseCheckReportService.GetSuperviseCheckReportById(this.SuperviseCheckReportId);
if (report.IsIssued == "1") //已下发
{
ShowNotify("已下发检查整改,无法修改!", MessageBoxIcon.Warning);
return;
}
superviseCheckReport.SuperviseCheckReportId = this.SuperviseCheckReportId;
BLL.SuperviseCheckReportService.UpdateSuperviseCheckReport(superviseCheckReport);
BLL.SuperviseCheckReportItemService.DeleteSuperviseCheckReportItemBySuperviseCheckReportId(this.SuperviseCheckReportId);
BLL.LogService.AddSys_Log(this.CurrUser, superviseCheckReport.SuperviseCheckReportCode, superviseCheckReport.SuperviseCheckReportId, BLL.Const.SuperviseCheckReportMenuId, Const.BtnModify);
}
//jerqueSaveList();
foreach (var item in superviseCheckReportItems)
{
Model.Supervise_SuperviseCheckReportItem superviseCheckReportItem = new Model.Supervise_SuperviseCheckReportItem
{
SuperviseCheckReportItemId = item.SuperviseCheckReportItemId,
SuperviseCheckReportId = superviseCheckReport.SuperviseCheckReportId,
RectifyItemId = item.RectifyItemId,
IsSelected = item.IsSelected,
AttachUrl = item.AttachUrl
};
BLL.SuperviseCheckReportItemService.AddSuperviseCheckReportItem(superviseCheckReportItem);
}
}
if (!string.IsNullOrWhiteSpace(this.SuperviseCheckReportId))
{
PageContext.RegisterStartupScript(Window2.GetShowReference(String.Format("SubUnitCheckRectifyEdit.aspx?SuperviseCheckReportId={0}", this.SuperviseCheckReportId, "编辑 - ")));
}
}
#endregion
#region
/// <summary>
/// 上传附件
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnAttachUrl_Click(object sender, EventArgs e)
{
if (string.IsNullOrWhiteSpace(this.SuperviseCheckReportId))
{
if (this.drpCheckMainType.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("检查大类不能为空!", MessageBoxIcon.Warning);
return;
}
if (this.drpCheckType.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("检查类别不能为空!", MessageBoxIcon.Warning);
return;
}
if (this.ddlCheckUnitId.SelectedValue == BLL.Const._Null)
{
Alert.ShowInTop("检查单位不能为空!", MessageBoxIcon.Warning);
return;
}
Model.Supervise_SuperviseCheckReport superviseCheckReport = new Model.Supervise_SuperviseCheckReport
{
SuperviseCheckReportCode = this.txtSuperviseCheckReportCode.Text.Trim()
};
if (!string.IsNullOrWhiteSpace(this.dpkCheckDate.Text.Trim()))
{
superviseCheckReport.CheckDate = Convert.ToDateTime(this.dpkCheckDate.Text.Trim());
}
if (this.drpCheckMainType.SelectedValue != BLL.Const._Null)
{
superviseCheckReport.CheckMainType = this.drpCheckMainType.SelectedValue;
}
if (this.drpCheckType.SelectedValue != BLL.Const._Null)
{
superviseCheckReport.CheckType = this.drpCheckType.SelectedValue;
}
if (this.ddlProjectId.SelectedValue != BLL.Const._Null)
{
superviseCheckReport.ProjectId = this.ddlProjectId.SelectedValue;
}
if (this.ddlUnitId.SelectedValue != BLL.Const._Null)
{
superviseCheckReport.UnitId = this.ddlUnitId.SelectedValue;
}
if (this.ddlCheckUnitId.SelectedValue != BLL.Const._Null)
{
superviseCheckReport.CheckUnitId = this.ddlCheckUnitId.SelectedValue;
}
superviseCheckReport.CheckTeam = this.txtCheckTeam.Text.Trim();
if (string.IsNullOrWhiteSpace(this.SuperviseCheckReportId))
{
superviseCheckReport.SuperviseCheckReportId = SQLHelper.GetNewID(typeof(Model.Supervise_SuperviseCheckReport));
SuperviseCheckReportId = superviseCheckReport.SuperviseCheckReportId;
BLL.SuperviseCheckReportService.AddSuperviseCheckReport(superviseCheckReport);
BLL.LogService.AddSys_Log(this.CurrUser, superviseCheckReport.SuperviseCheckReportCode, superviseCheckReport.SuperviseCheckReportId, BLL.Const.SuperviseCheckReportMenuId, Const.BtnAdd);
}
else
{
var report = BLL.SuperviseCheckReportService.GetSuperviseCheckReportById(this.SuperviseCheckReportId);
if (report.IsIssued == "1") //已下发
{
ShowNotify("已下发检查整改,无法修改!", MessageBoxIcon.Warning);
return;
}
superviseCheckReport.SuperviseCheckReportId = this.SuperviseCheckReportId;
BLL.SuperviseCheckReportService.UpdateSuperviseCheckReport(superviseCheckReport);
BLL.SuperviseCheckReportItemService.DeleteSuperviseCheckReportItemBySuperviseCheckReportId(this.SuperviseCheckReportId);
BLL.LogService.AddSys_Log(this.CurrUser, superviseCheckReport.SuperviseCheckReportCode, superviseCheckReport.SuperviseCheckReportId, BLL.Const.SuperviseCheckReportMenuId, Const.BtnModify);
}
//jerqueSaveList();
foreach (var item in superviseCheckReportItems)
{
Model.Supervise_SuperviseCheckReportItem superviseCheckReportItem = new Model.Supervise_SuperviseCheckReportItem
{
SuperviseCheckReportItemId = item.SuperviseCheckReportItemId,
SuperviseCheckReportId = superviseCheckReport.SuperviseCheckReportId,
RectifyItemId = item.RectifyItemId,
IsSelected = item.IsSelected,
AttachUrl = item.AttachUrl
};
BLL.SuperviseCheckReportItemService.AddSuperviseCheckReportItem(superviseCheckReportItem);
}
}
if (btnSave.Hidden == true)
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/SuperviseCheckReportEdit&type=-1&menuId={1}", SuperviseCheckReportId, BLL.Const.SuperviseCheckReportMenuId)));
}
else
{
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/SuperviseCheckReportEdit&menuId={1}", SuperviseCheckReportId, BLL.Const.SuperviseCheckReportMenuId)));
}
}
#endregion
}
}
@@ -0,0 +1,197 @@
//------------------------------------------------------------------------------
// <自动生成>
// 此代码由工具生成。
//
// 对此文件的更改可能导致不正确的行为,如果
// 重新生成代码,则所做更改将丢失。
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.ZHGL.Supervise
{
public partial class SuperviseCheckReportFinalizeEdit
{
/// <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>
/// txtSuperviseCheckReportCode 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtSuperviseCheckReportCode;
/// <summary>
/// dpkCheckDate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DatePicker dpkCheckDate;
/// <summary>
/// drpCheckMainType 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpCheckMainType;
/// <summary>
/// drpCheckType 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList drpCheckType;
/// <summary>
/// ddlProjectId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlProjectId;
/// <summary>
/// ddlUnitId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlUnitId;
/// <summary>
/// ddlCheckUnitId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlCheckUnitId;
/// <summary>
/// txtCheckTeam 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtCheckTeam;
/// <summary>
/// Toolbar1 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// btnSubRec 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSubRec;
/// <summary>
/// btnAttachUrl 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnAttachUrl;
/// <summary>
/// btnSave 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// btnClose 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnClose;
/// <summary>
/// hdId 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox hdId;
/// <summary>
/// hdAttachUrl 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox hdAttachUrl;
/// <summary>
/// WindowAtt 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window WindowAtt;
/// <summary>
/// Window2 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window2;
}
}