fix:升级
This commit is contained in:
@@ -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("你确定要删除选中的 <b><script>{0}</script></b> 行数据吗?", 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
|
||||
}
|
||||
}
|
||||
+53
-24
@@ -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;
|
||||
|
||||
+27
-9
@@ -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
|
||||
}
|
||||
}
|
||||
+197
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user