提交代码
This commit is contained in:
@@ -0,0 +1,232 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CheckNotice.aspx.cs" Inherits="FineUIPro.Web.DCGL.ServerCheck.CheckNotice" %>
|
||||
|
||||
<!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;
|
||||
}
|
||||
|
||||
.lab {
|
||||
font-size: small;
|
||||
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="250px" Title="督查检查" TitleToolTip="督查检查" ShowBorder="true"
|
||||
ShowHeader="false" BodyPadding="5px" IconFont="ArrowCircleLeft" Layout="VBox" AutoScroll="true">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:DatePicker ID="txtCheckStartTimeS" runat="server" Label="开始时间" AutoPostBack="true" OnTextChanged="Tree_TextChanged"
|
||||
DateFormatString="yyyy-MM-dd" LabelWidth="75px">
|
||||
</f:DatePicker>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
<f:Toolbar ID="Toolbar3" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:DatePicker ID="txtCheckEndTimeS" runat="server" Label="结束时间" AutoPostBack="true" OnTextChanged="Tree_TextChanged"
|
||||
DateFormatString="yyyy-MM-dd" LabelWidth="75px">
|
||||
</f:DatePicker>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Tree ID="tvControlItem" EnableCollapse="true" ShowHeader="true" Title="督查检查节点树"
|
||||
OnNodeCommand="tvControlItem_NodeCommand" AutoLeafIdentification="true" Height="410px"
|
||||
runat="server" EnableTextSelection="true" AutoScroll="true">
|
||||
</f:Tree>
|
||||
</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">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="btnFind" Text="督查检查管理办法" Icon="Find" runat="server" Hidden="true" OnClick="btnFind_Click">
|
||||
</f:Button>
|
||||
<f:TextBox Hidden="true" runat="server" ID="hdCheckInfoId"></f:TextBox>
|
||||
<f:ToolbarFill ID="ToolbarFill1" runat="server"></f:ToolbarFill>
|
||||
<f:Label runat="server" Text="数据来源于集团下发到各企业查看并准备检查资料。" CssClass="lab"></f:Label>
|
||||
<f:Button ID="btnGet" Text="获取" ToolTip="从集团获取督查检查信息" Icon="FolderPage" runat="server" OnClick="btnGet_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Items>
|
||||
<f:Form ID="SimpleForm1" ShowBorder="true" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Left">
|
||||
<Rows>
|
||||
<f:FormRow ColumnWidths="40% 60%">
|
||||
<Items>
|
||||
<f:Label ID="txtCheckType" Label="检查方式" runat="server" LabelWidth="90px">
|
||||
</f:Label>
|
||||
<f:Label runat="server" ID="temp">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="40% 60%">
|
||||
<Items>
|
||||
<f:Label ID="drpSubjectUnit" Label="受检单位" runat="server" LabelWidth="90px">
|
||||
</f:Label>
|
||||
<f:Label ID="txtSubjectObject" ShowLabel="false" runat="server"></f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="40% 60%">
|
||||
<Items>
|
||||
<f:Label ID="txtSubjectUnitMan" Label="受检单位负责人" runat="server" LabelWidth="130px">
|
||||
</f:Label>
|
||||
<f:Label ID="txtSubjectUnitTel" Label="受检单位负责人电话" runat="server" LabelWidth="160px">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label ID="txtSubjectUnitAdd" Label="受检单位地址" runat="server" LabelWidth="130px">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="40% 30% 30%">
|
||||
<Items>
|
||||
<f:Label ID="txtCheckManName" Label="检查人" runat="server" LabelWidth="90px">
|
||||
</f:Label>
|
||||
<f:Label ID="txtSupervisionGroupName" Label="检查组" runat="server" LabelWidth="90px">
|
||||
</f:Label>
|
||||
<f:Label ID="txtCheckTeamLeader" Label="检查组长" runat="server" LabelWidth="90px">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="40% 60%">
|
||||
<Items>
|
||||
<f:Label ID="txtCheckStartTime" Label="检查开始日期" runat="server" LabelWidth="130px">
|
||||
</f:Label>
|
||||
<f:Label ID="txtCheckEndTime" Label="检查结束日期" runat="server" LabelWidth="130px">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="40% 60%">
|
||||
<Items>
|
||||
<f:Label ID="txtCompileMan" Label="编制人" runat="server" LabelWidth="90px">
|
||||
</f:Label>
|
||||
<f:Label ID="txtCompileDate" Label="编制日期" runat="server" LabelWidth="130px">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
</f:Form>
|
||||
</Items>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" Width="870px" ShowBorder="true" ShowHeader="true" Title="检查资料" Hidden="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="CheckFileId" AllowSorting="true" IsDatabasePaging="true" PageSize="10"
|
||||
OnSort="Grid1_Sort" SortField="SortIndex" SortDirection="ASC" AllowCellEditing="true"
|
||||
ClicksToEdit="2" EnableColumnLines="true" DataIDField="CheckFileId" AllowPaging="true"
|
||||
EnableTextSelection="True">
|
||||
<Columns>
|
||||
<f:RenderField Width="90px" ColumnID="SortIndex" DataField="SortIndex"
|
||||
SortField="SortIndex" FieldType="Int" HeaderText="序号"
|
||||
HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="350px" ColumnID="CheckFileName" DataField="CheckFileName"
|
||||
SortField="CheckFileName" FieldType="String" HeaderText="资料名称"
|
||||
HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="300px" ColumnID="Remark" DataField="Remark"
|
||||
SortField="Remark" FieldType="String" HeaderText="备注"
|
||||
HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu1" />
|
||||
</Listeners>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
<Items>
|
||||
<f:Grid ID="Grid2" Width="870px" ShowBorder="true" ShowHeader="true" Title="检查组成员"
|
||||
runat="server" BoxFlex="1" DataKeyNames="CheckTeamId" AllowSorting="true" IsDatabasePaging="true" PageSize="10"
|
||||
OnSort="Grid2_Sort" SortField="SortIndex" SortDirection="ASC" AllowCellEditing="true"
|
||||
ClicksToEdit="2" EnableColumnLines="true" DataIDField="CheckTeamId" AllowPaging="true"
|
||||
EnableTextSelection="True">
|
||||
<Columns>
|
||||
<f:RenderField Width="60px" ColumnID="SortIndex" DataField="SortIndex"
|
||||
SortField="SortIndex" FieldType="Int" HeaderText="序号"
|
||||
HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="UserName" DataField="UserName"
|
||||
SortField="UserName" FieldType="String" HeaderText="姓名"
|
||||
HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="SexName" DataField="SexName"
|
||||
SortField="SexName" FieldType="String" HeaderText="性别"
|
||||
HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<%--<f:RenderField Width="200px" ColumnID="UnitName" DataField="UnitName"
|
||||
SortField="UnitName" FieldType="String" HeaderText="所在单位" ExpandUnusedSpace="true"
|
||||
HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>--%>
|
||||
<f:RenderField Width="200px" ColumnID="SupervisionGroupName" DataField="SupervisionGroupName"
|
||||
SortField="SupervisionGroupName" FieldType="String" HeaderText="检查组" ExpandUnusedSpace="true"
|
||||
HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<%--<f:RenderField Width="120px" ColumnID="PostName" DataField="PostName"
|
||||
SortField="PostName" FieldType="String" HeaderText="单位职务"
|
||||
HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>--%>
|
||||
<f:RenderField Width="120px" ColumnID="WorkTitle" DataField="WorkTitle"
|
||||
SortField="WorkTitle" FieldType="String" HeaderText="职称"
|
||||
HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="120px" ColumnID="CheckPostName" DataField="CheckPostName"
|
||||
SortField="CheckPostName" FieldType="String" HeaderText="检查工作组职务"
|
||||
HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="CheckDate" DataField="CheckDate"
|
||||
SortField="CheckDate" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd"
|
||||
HeaderText="检查日期" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu2" />
|
||||
</Listeners>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window3" Title="查看" ShowHeader="false" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="true" runat="server" IsModal="true"
|
||||
Width="900px" Height="510px">
|
||||
</f:Window>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu1(event, rowId) {
|
||||
//F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
function onRowContextMenu2(event, rowId) {
|
||||
// F(menuID2).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
function reloadGrid() {
|
||||
__doPostBack(null, 'reloadGrid');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,547 @@
|
||||
using BLL;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Windows.Forms;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace FineUIPro.Web.DCGL.ServerCheck
|
||||
{
|
||||
public partial class CheckNotice : PageBase
|
||||
{
|
||||
#region 定义项
|
||||
/// <summary>
|
||||
/// 督查检查主键
|
||||
/// </summary>
|
||||
public string CheckInfoId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["CheckInfoId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["CheckInfoId"] = value;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载页面
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
////权限按钮方法
|
||||
this.InitTreeMenu();
|
||||
this.CheckInfoId = string.Empty;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载树
|
||||
/// <summary>
|
||||
/// 加载树
|
||||
/// </summary>
|
||||
private void InitTreeMenu()
|
||||
{
|
||||
this.tvControlItem.Nodes.Clear();
|
||||
this.tvControlItem.ShowBorder = false;
|
||||
this.tvControlItem.ShowHeader = false;
|
||||
this.tvControlItem.EnableIcons = true;
|
||||
this.tvControlItem.AutoScroll = true;
|
||||
this.tvControlItem.EnableSingleClickExpand = true;
|
||||
TreeNode rootNode = new TreeNode
|
||||
{
|
||||
Text = "检查方式-年月",
|
||||
NodeID = "0",
|
||||
Expanded = true
|
||||
};
|
||||
|
||||
this.tvControlItem.Nodes.Add(rootNode);
|
||||
var checkInfoLists = (from x in Funs.DB.DCGL_Check_CheckInfo select x).ToList();
|
||||
if (!string.IsNullOrEmpty(this.txtCheckStartTimeS.Text))
|
||||
{
|
||||
checkInfoLists = checkInfoLists.Where(x => x.CheckStartTime >= Funs.GetNewDateTime(this.txtCheckStartTimeS.Text)).ToList();
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.txtCheckEndTimeS.Text))
|
||||
{
|
||||
checkInfoLists = checkInfoLists.Where(x => x.CheckEndTime <= Funs.GetNewDateTime(this.txtCheckEndTimeS.Text)).ToList();
|
||||
}
|
||||
|
||||
var checkTypeList = (from x in checkInfoLists select x.CheckTypeName).Distinct();
|
||||
foreach (var item in checkTypeList)
|
||||
{
|
||||
TreeNode rootUnitNode = new TreeNode
|
||||
{
|
||||
Text = item,
|
||||
NodeID = item,
|
||||
Expanded = true,
|
||||
ToolTip = "检查方式"
|
||||
};//定义根节点
|
||||
rootNode.Nodes.Add(rootUnitNode);
|
||||
var checkInfoList = (from x in checkInfoLists where x.CheckTypeName == item select x).ToList();
|
||||
this.BindNodes(rootUnitNode, checkInfoList);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 绑定树节点
|
||||
/// <summary>
|
||||
/// 绑定树节点
|
||||
/// </summary>
|
||||
/// <param name="node"></param>
|
||||
private void BindNodes(TreeNode node, List<Model.DCGL_Check_CheckInfo> checkInfoList)
|
||||
{
|
||||
if (node.ToolTip == "检查方式")
|
||||
{
|
||||
var pointListMonth = (from x in checkInfoList
|
||||
orderby x.CheckStartTime descending
|
||||
select string.Format("{0:yyyy-MM}", x.CheckStartTime)).Distinct();
|
||||
foreach (var item in pointListMonth)
|
||||
{
|
||||
TreeNode newNode = new TreeNode
|
||||
{
|
||||
Text = item,
|
||||
NodeID = item + "|" + node.NodeID,
|
||||
ToolTip = "月份"
|
||||
};
|
||||
node.Nodes.Add(newNode);
|
||||
this.BindNodes(newNode, checkInfoList);
|
||||
}
|
||||
}
|
||||
else if (node.ToolTip == "月份")
|
||||
{
|
||||
var dReports = from x in checkInfoList
|
||||
where string.Format("{0:yyyy-MM}", x.CheckStartTime) == node.Text
|
||||
orderby x.CheckStartTime descending
|
||||
select x;
|
||||
foreach (var item in dReports)
|
||||
{
|
||||
TreeNode newNode = new TreeNode();
|
||||
var units = BLL.UnitService.GetUnitByUnitId(item.SubjectUnitId);
|
||||
if (units != null)
|
||||
{
|
||||
newNode.Text = (item.CheckStartTime.Day).ToString().PadLeft(2, '0') + "日:" + units.UnitName;
|
||||
}
|
||||
else
|
||||
{
|
||||
newNode.Text = (item.CheckStartTime.Day).ToString().PadLeft(2, '0') + "日:未知单位";
|
||||
}
|
||||
newNode.NodeID = item.CheckInfoId;
|
||||
newNode.EnableClickEvent = true;
|
||||
node.Nodes.Add(newNode);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 点击TreeView
|
||||
/// <summary>
|
||||
/// 点击TreeView
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void tvControlItem_NodeCommand(object sender, TreeCommandEventArgs e)
|
||||
{
|
||||
this.CheckInfoId = this.tvControlItem.SelectedNodeID;
|
||||
this.txtCheckType.Text = this.tvControlItem.SelectedNode.ParentNode.ParentNode.Text;
|
||||
this.PageInfoLoad(); ///页面输入保存信息
|
||||
this.BindGrid1();
|
||||
this.BindGrid2();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 加载页面输入保存信息
|
||||
/// <summary>
|
||||
/// 加载页面输入保存信息
|
||||
/// </summary>
|
||||
private void PageInfoLoad()
|
||||
{
|
||||
var checkInfo = Funs.DB.DCGL_Check_CheckInfo.FirstOrDefault(x => x.CheckInfoId == this.CheckInfoId);
|
||||
if (checkInfo != null)
|
||||
{
|
||||
this.txtCheckStartTime.Text = string.Format("{0:yyyy-MM-dd}", checkInfo.CheckStartTime);
|
||||
this.txtCheckEndTime.Text = string.Format("{0:yyyy-MM-dd}", checkInfo.CheckEndTime);
|
||||
this.drpSubjectUnit.Text = BLL.UnitService.GetUnitNameByUnitId(checkInfo.SubjectUnitId);
|
||||
this.txtCheckType.Text = checkInfo.CheckTypeName;
|
||||
this.txtSubjectUnitMan.Text = checkInfo.SubjectUnitMan;
|
||||
this.txtSubjectUnitAdd.Text = checkInfo.SubjectUnitAdd;
|
||||
this.txtSubjectUnitTel.Text = checkInfo.SubjectUnitTel;
|
||||
this.txtSubjectObject.Text = checkInfo.SubjectObject;
|
||||
this.txtCheckTeamLeader.Text = checkInfo.CheckTeamLeader;
|
||||
this.txtCheckManName.Text = checkInfo.CheckManName;
|
||||
this.txtSupervisionGroupName.Text = checkInfo.SupervisionGroupName;
|
||||
this.txtCompileMan.Text = checkInfo.CompileMan;
|
||||
this.txtCompileDate.Text = string.Format("{0:yyyy-MM-dd}", checkInfo.CompileDate);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.drpSubjectUnit.Text = string.Empty;
|
||||
this.txtSubjectObject.Text = string.Empty;
|
||||
this.txtSubjectUnitMan.Text = string.Empty;
|
||||
this.txtSubjectUnitTel.Text = string.Empty;
|
||||
this.txtSubjectUnitAdd.Text = string.Empty;
|
||||
this.txtCheckStartTime.Text = string.Empty;
|
||||
this.txtCheckEndTime.Text = string.Empty;
|
||||
this.txtCheckType.Text = string.Empty;
|
||||
this.txtCheckTeamLeader.Text = string.Empty;
|
||||
this.txtCheckManName.Text = string.Empty;
|
||||
this.txtSupervisionGroupName.Text = string.Empty;
|
||||
this.txtCompileMan.Text = string.Empty;
|
||||
this.txtCompileDate.Text = string.Empty;
|
||||
this.CheckInfoId = string.Empty;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 数据绑定
|
||||
/// <summary>
|
||||
/// 数据绑定
|
||||
/// </summary>
|
||||
private void BindGrid1()
|
||||
{
|
||||
string strSql = @"SELECT CheckFileId,CheckInfoId,CheckFileName,SortIndex,Remark FROM dbo.DCGL_Check_CheckInfo_CheckFile WHERE 1=1 ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
strSql += " AND CheckInfoId = @CheckInfoId";
|
||||
listStr.Add(new SqlParameter("@CheckInfoId", this.CheckInfoId));
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 数据绑定
|
||||
/// </summary>
|
||||
private void BindGrid2()
|
||||
{
|
||||
string strSql = @"SELECT CheckTeamId,CheckInfoId,UserName,SexName,SupervisionGroupName,SortIndex,PostName,WorkTitle,CheckPostName,CheckDate
|
||||
FROM dbo.DCGL_Check_CheckInfo_CheckTeam
|
||||
WHERE 1=1 ";
|
||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
strSql += " AND CheckInfoId = @CheckInfoId";
|
||||
listStr.Add(new SqlParameter("@CheckInfoId", this.CheckInfoId));
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
Grid2.RecordCount = tb.Rows.Count;
|
||||
//tb = GetFilteredTable(Grid2.FilteredData, tb);
|
||||
var table = this.GetPagedDataTable(Grid2, tb);
|
||||
Grid2.DataSource = table;
|
||||
Grid2.DataBind();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 排序
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||
{
|
||||
BindGrid1();
|
||||
}
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid2_Sort(object sender, GridSortEventArgs e)
|
||||
{
|
||||
BindGrid2();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 查看检查办法
|
||||
/// <summary>
|
||||
/// 查看检查办法
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnFind_Click(object sender, EventArgs e)
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window3.GetShowReference(String.Format("CheckInfoTemplate.aspx")));
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 组面板 折叠展开事件
|
||||
/// <summary>
|
||||
/// 组面板 折叠展开事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Gridl_Collapse(object sender, EventArgs e)
|
||||
{
|
||||
if (this.Grid1.Collapsed)
|
||||
{
|
||||
this.Grid2.Collapsed = false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 组面板 折叠展开事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid2_Collapse(object sender, EventArgs e)
|
||||
{
|
||||
if (this.Grid2.Collapsed)
|
||||
{
|
||||
this.Grid1.Collapsed = false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 组面板 折叠展开事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Gridl_Expand(object sender, EventArgs e)
|
||||
{
|
||||
if (this.Grid1.Expanded)
|
||||
{
|
||||
this.Grid2.Expanded = false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 组面板 折叠展开事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid2_Expand(object sender, EventArgs e)
|
||||
{
|
||||
if (this.Grid2.Expanded)
|
||||
{
|
||||
this.Grid1.Expanded = false;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 查询
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Tree_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
this.InitTreeMenu();
|
||||
this.BindGrid1();
|
||||
this.BindGrid2();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 从集团获取
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnGet_Click(object sender, EventArgs e)
|
||||
{
|
||||
var returnValue = getDCGLCheckInfo_CheckTeam();
|
||||
// var returnValue= CNCECHSSEGetWebService.getCheck_CheckInfo_Table8Item();
|
||||
|
||||
if (returnValue.code == 1)
|
||||
{
|
||||
ShowNotify(returnValue.message, MessageBoxIcon.Success);
|
||||
PageInfoLoad();
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop(returnValue.message, MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
|
||||
#region 获取
|
||||
/// <summary>
|
||||
/// 获取
|
||||
/// </summary>
|
||||
/// <param name="type"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.ResponeData getDCGLCheckInfo_CheckTeam()
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
string unitId = BLL.Const.UnitId_SEDIN;
|
||||
string baseurl = SysConstSetService.CNCECPath + "/api/HSSEData/getDCGLCheckInfo_CheckTeam?unitId=" + unitId;
|
||||
string contenttype = "application/json;charset=unicode";
|
||||
Hashtable newToken = new Hashtable
|
||||
{
|
||||
{ "token", ServerService.GetToken().Token }
|
||||
};
|
||||
|
||||
var strJosn = APIGetHttpService.Http(baseurl, "GET", contenttype, newToken, null);
|
||||
if (!string.IsNullOrEmpty(strJosn))
|
||||
{
|
||||
JObject obj = JObject.Parse(strJosn);
|
||||
responeData.code = Funs.GetNewIntOrZero(obj["code"].ToString());
|
||||
responeData.message = obj["message"].ToString();
|
||||
if (responeData.code == 1)
|
||||
{
|
||||
string data = obj["data"].ToString();
|
||||
JArray arr = JArray.Parse(data);
|
||||
if (arr.Count() > 0)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
List<string> ids = new List<string>();
|
||||
foreach (var item in arr)
|
||||
{
|
||||
string getCheckInfoId = item["CheckInfoId"].ToString();
|
||||
if (!ids.Contains(getCheckInfoId))
|
||||
{
|
||||
var updateCheckInfo = db.DCGL_Check_CheckInfo.FirstOrDefault(x => x.CheckInfoId == getCheckInfoId);
|
||||
if (updateCheckInfo == null)
|
||||
{
|
||||
ids.Add(getCheckInfoId);
|
||||
Model.DCGL_Check_CheckInfo newCheckInfo = new Model.DCGL_Check_CheckInfo
|
||||
{
|
||||
CheckInfoId = getCheckInfoId,
|
||||
CheckTypeName = item["CheckTypeName"].ToString(),
|
||||
SubjectUnitId = item["SubjectUnitId"].ToString(),
|
||||
SubjectUnitAdd = item["SubjectUnitAdd"].ToString(),
|
||||
SubjectUnitMan = item["SubjectUnitMan"].ToString(),
|
||||
SubjectUnitTel = item["SubjectUnitTel"].ToString(),
|
||||
CheckStartTime = Funs.GetNewDateTimeOrNow(item["CheckStartTime"].ToString()),
|
||||
CheckEndTime = Funs.GetNewDateTimeOrNow(item["CheckEndTime"].ToString()),
|
||||
SubjectObject = item["SubjectObject"].ToString(),
|
||||
};
|
||||
|
||||
db.DCGL_Check_CheckInfo.InsertOnSubmit(newCheckInfo);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
else
|
||||
{
|
||||
updateCheckInfo.CheckInfoId = getCheckInfoId;
|
||||
updateCheckInfo.CheckTypeName = item["CheckTypeName"].ToString();
|
||||
updateCheckInfo.SubjectUnitId = item["SubjectUnitId"].ToString();
|
||||
updateCheckInfo.SubjectUnitAdd = item["SubjectUnitAdd"].ToString();
|
||||
updateCheckInfo.SubjectUnitMan = item["SubjectUnitMan"].ToString();
|
||||
updateCheckInfo.SubjectUnitTel = item["SubjectUnitTel"].ToString();
|
||||
updateCheckInfo.CheckStartTime = Funs.GetNewDateTimeOrNow(item["CheckStartTime"].ToString());
|
||||
updateCheckInfo.CheckEndTime = Funs.GetNewDateTimeOrNow(item["CheckEndTime"].ToString());
|
||||
updateCheckInfo.SubjectObject = item["SubjectObject"].ToString();
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
//string getCheckItemId = item["CheckItemId"].ToString();
|
||||
//var updateTable8 = db.Check_CheckInfo_Table8.FirstOrDefault(x => x.CheckItemId == getCheckItemId);
|
||||
//if (updateTable8 == null)
|
||||
//{
|
||||
// Model.Check_CheckInfo_Table8 newTable8 = new Model.Check_CheckInfo_Table8
|
||||
// {
|
||||
// CheckItemId = getCheckItemId,
|
||||
// CheckInfoId = getCheckInfoId,
|
||||
// Values1 = item["Values1"].ToString(),
|
||||
// Values2 = item["Values2"].ToString(),
|
||||
// Values3 = item["Values3"].ToString(),
|
||||
// Values4 = item["Values4"].ToString(),
|
||||
// Values5 = item["Values5"].ToString(),
|
||||
// Values6 = item["Values6"].ToString(),
|
||||
// Values7 = item["Values7"].ToString(),
|
||||
// Values8 = item["Values8"].ToString(),
|
||||
// };
|
||||
// db.Check_CheckInfo_Table8.InsertOnSubmit(newTable8);
|
||||
// db.SubmitChanges();
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// updateTable8.Values1 = item["Values1"].ToString();
|
||||
// updateTable8.Values2 = item["Values2"].ToString();
|
||||
// updateTable8.Values3 = item["Values3"].ToString();
|
||||
// updateTable8.Values4 = item["Values4"].ToString();
|
||||
// updateTable8.Values5 = item["Values5"].ToString();
|
||||
// updateTable8.Values6 = item["Values6"].ToString();
|
||||
// updateTable8.Values7 = item["Values7"].ToString();
|
||||
// updateTable8.Values8 = item["Values8"].ToString();
|
||||
// db.SubmitChanges();
|
||||
//}
|
||||
|
||||
string getCheckTeamId = item["CheckTeamId"].ToString();
|
||||
var checkTeam = db.DCGL_Check_CheckInfo_CheckTeam.FirstOrDefault(x => x.CheckTeamId == getCheckTeamId);
|
||||
if (checkTeam == null)
|
||||
{
|
||||
|
||||
string UserName = item["UserName"].ToString();
|
||||
string SexName = item["SexName"].ToString();
|
||||
//UnitId = item["UnitId"].ToString(),
|
||||
//UnitName = item["UnitName"].ToString(),
|
||||
string SupervisionGroupId = item["SupervisionGroupId"].ToString();
|
||||
string SupervisionGroupName = item["SupervisionGroupName"].ToString();
|
||||
string PostName = item["PostName"].ToString();
|
||||
string WorkTitle = item["WorkTitle"].ToString();
|
||||
string CheckPostName = item["CheckPostName"].ToString();
|
||||
var CheckDate = Funs.GetNewDateTime(item["CheckDate"].ToString());
|
||||
var SortIndex = Funs.GetNewInt(item["SortIndex"].ToString());
|
||||
|
||||
Model.DCGL_Check_CheckInfo_CheckTeam newCheckTeam = new Model.DCGL_Check_CheckInfo_CheckTeam
|
||||
{
|
||||
CheckTeamId = getCheckTeamId,
|
||||
CheckInfoId = getCheckInfoId,
|
||||
UserName = item["UserName"].ToString(),
|
||||
SexName = item["SexName"].ToString(),
|
||||
//UnitId = item["UnitId"].ToString(),
|
||||
//UnitName = item["UnitName"].ToString(),
|
||||
SupervisionGroupId = item["SupervisionGroupId"].ToString(),
|
||||
SupervisionGroupName = item["SupervisionGroupName"].ToString(),
|
||||
PostName = item["PostName"].ToString(),
|
||||
WorkTitle = item["WorkTitle"].ToString(),
|
||||
CheckPostName = item["CheckPostName"].ToString(),
|
||||
CheckDate = Funs.GetNewDateTime(item["CheckDate"].ToString()),
|
||||
SortIndex = Funs.GetNewInt(item["SortIndex"].ToString()),
|
||||
};
|
||||
db.DCGL_Check_CheckInfo_CheckTeam.InsertOnSubmit(newCheckTeam);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
else
|
||||
{
|
||||
checkTeam.CheckTeamId = getCheckTeamId;
|
||||
checkTeam.CheckInfoId = getCheckInfoId;
|
||||
checkTeam.UserName = item["UserName"].ToString();
|
||||
checkTeam.SexName = item["SexName"].ToString();
|
||||
//checkTeam.UnitId = item["UnitId"].ToString();
|
||||
//checkTeam.UnitName = item["UnitName"].ToString();
|
||||
checkTeam.SupervisionGroupId = item["SupervisionGroupId"].ToString();
|
||||
checkTeam.SupervisionGroupName = item["SupervisionGroupName"].ToString();
|
||||
checkTeam.PostName = item["PostName"].ToString();
|
||||
checkTeam.WorkTitle = item["WorkTitle"].ToString();
|
||||
checkTeam.CheckPostName = item["CheckPostName"].ToString();
|
||||
checkTeam.CheckDate = Funs.GetNewDateTime(item["CheckDate"].ToString());
|
||||
checkTeam.SortIndex = Funs.GetNewInt(item["SortIndex"].ToString());
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
responeData.message = "获取成功:记录" + arr.Count().ToString() + "条";
|
||||
}
|
||||
}
|
||||
else { responeData.message = "未获取数据!"; }
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = "获取失败:" + ex.Message;
|
||||
ErrLogInfo.WriteLog("督查检查通知单获取!", ex);
|
||||
}
|
||||
|
||||
return responeData;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,314 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.DCGL.ServerCheck
|
||||
{
|
||||
|
||||
|
||||
public partial class CheckNotice
|
||||
{
|
||||
|
||||
/// <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>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckStartTimeS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtCheckStartTimeS;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar3;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckEndTimeS 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtCheckEndTimeS;
|
||||
|
||||
/// <summary>
|
||||
/// tvControlItem 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Tree tvControlItem;
|
||||
|
||||
/// <summary>
|
||||
/// panelCenterRegion 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel panelCenterRegion;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// btnFind 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnFind;
|
||||
|
||||
/// <summary>
|
||||
/// hdCheckInfoId 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox hdCheckInfoId;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarFill1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarFill ToolbarFill1;
|
||||
|
||||
/// <summary>
|
||||
/// btnGet 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnGet;
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckType 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtCheckType;
|
||||
|
||||
/// <summary>
|
||||
/// temp 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label temp;
|
||||
|
||||
/// <summary>
|
||||
/// drpSubjectUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label drpSubjectUnit;
|
||||
|
||||
/// <summary>
|
||||
/// txtSubjectObject 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtSubjectObject;
|
||||
|
||||
/// <summary>
|
||||
/// txtSubjectUnitMan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtSubjectUnitMan;
|
||||
|
||||
/// <summary>
|
||||
/// txtSubjectUnitTel 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtSubjectUnitTel;
|
||||
|
||||
/// <summary>
|
||||
/// txtSubjectUnitAdd 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtSubjectUnitAdd;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckManName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtCheckManName;
|
||||
|
||||
/// <summary>
|
||||
/// txtSupervisionGroupName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtSupervisionGroupName;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckTeamLeader 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtCheckTeamLeader;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckStartTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtCheckStartTime;
|
||||
|
||||
/// <summary>
|
||||
/// txtCheckEndTime 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtCheckEndTime;
|
||||
|
||||
/// <summary>
|
||||
/// txtCompileMan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtCompileMan;
|
||||
|
||||
/// <summary>
|
||||
/// txtCompileDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtCompileDate;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// Grid2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid2;
|
||||
|
||||
/// <summary>
|
||||
/// Window3 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window3;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CheckRectify.aspx.cs" Inherits="FineUIPro.Web.DCGL.ServerCheck.CheckRectify" %>
|
||||
|
||||
<!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">
|
||||
.f-grid-row .f-grid-cell-inner {
|
||||
white-space: normal;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
.f-grid-row.yellow {
|
||||
background-color: YellowGreen;
|
||||
background-image: none;
|
||||
}
|
||||
|
||||
.f-grid-row.red {
|
||||
background-color: Yellow;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||
ShowHeader="false" Layout="VBox" BoxConfigAlign="Stretch">
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="督查检查整改" EnableCollapse="true"
|
||||
runat="server" BoxFlex="1" DataKeyNames="CheckRectifyId" AllowCellEditing="true"
|
||||
ClicksToEdit="2" DataIDField="CheckRectifyId" AllowSorting="true" SortField="CheckDate"
|
||||
SortDirection="DESC" OnSort="Grid1_Sort" EnableColumnLines="true"
|
||||
AllowPaging="true" IsDatabasePaging="true" PageSize="10" OnPageIndexChange="Grid1_PageIndexChange"
|
||||
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick">
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:Button ID="btnGet" Text="获取" ToolTip="从集团获取督查检查整改" Icon="FolderPage" runat="server" OnClick="btnGet_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnOut" OnClick="btnOut_Click" runat="server" ToolTip="导出" Icon="FolderUp" Text="导出"
|
||||
EnableAjax="false" DisableControlBeforePostBack="false">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="tfNumber" Width="50px" 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:GroupField HeaderText="检查对象" TextAlign="Center" HeaderTextAlign="Center">
|
||||
<Columns>
|
||||
<f:TemplateField Width="240px" HeaderText="检查单位" ColumnID="UnitName" HeaderTextAlign="Center"
|
||||
TextAlign="Left">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblUnit" runat="server" Text='<%# Bind("UnitName") %>' ToolTip='<%# Bind("UnitName") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:TemplateField Width="250px" HeaderText="项目" ColumnID="ProjectName" HeaderTextAlign="Center"
|
||||
TextAlign="Left" ExpandUnusedSpace="true">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="lblProjectName" runat="server" Text='<%# Bind("ProjectName") %>' ToolTip='<%# Bind("ProjectName") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
</Columns>
|
||||
</f:GroupField>
|
||||
<f:RenderField Width="100px" ColumnID="CheckDate" DataField="CheckDate" SortField="CheckDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="受检时间"
|
||||
HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="IssueMan" DataField="IssueMan" SortField="IssueMan"
|
||||
FieldType="String" HeaderText="签发人" TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="IssueDate" DataField="IssueDate" SortField="IssueDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="签发时间"
|
||||
HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="HandleState" DataField="HandleState" FieldType="String"
|
||||
HeaderText="状态" TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="TotalCount" DataField="TotalCount" FieldType="String"
|
||||
HeaderText="总项" TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="CompleteCount" DataField="CompleteCount" FieldType="String"
|
||||
HeaderText="完成项" TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
</Listeners>
|
||||
<PageItems>
|
||||
<f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
|
||||
</f:ToolbarSeparator>
|
||||
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
|
||||
</f:ToolbarText>
|
||||
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
|
||||
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
|
||||
<f:ListItem Text="10" Value="10" />
|
||||
<f:ListItem Text="15" Value="15" />
|
||||
<f:ListItem Text="20" Value="20" />
|
||||
<f:ListItem Text="25" Value="25" />
|
||||
<f:ListItem Text="所有行" Value="100000" />
|
||||
</f:DropDownList>
|
||||
</PageItems>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Window ID="Window1" runat="server" Hidden="true" ShowHeader="true" Maximized="true"
|
||||
IsModal="false" Target="Parent" EnableMaximize="true" EnableResize="true" OnClose="Window1_Close"
|
||||
Title="编辑督查检查整改" EnableIFrame="true" Height="650px" Width="1300px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
|
||||
Hidden="true" runat="server" Text="编辑" Icon="TabEdit">
|
||||
</f:MenuButton>
|
||||
</f:Menu>
|
||||
</form>
|
||||
<script type="text/javascript">
|
||||
var menuID = '<%= Menu1.ClientID %>';
|
||||
// 返回false,来阻止浏览器右键菜单
|
||||
function onRowContextMenu(event, rowId) {
|
||||
F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||
return false;
|
||||
}
|
||||
function reloadGrid() {
|
||||
__doPostBack(null, 'reloadGrid');
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,622 @@
|
||||
using BLL;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using AspNet = System.Web.UI.WebControls;
|
||||
|
||||
namespace FineUIPro.Web.DCGL.ServerCheck
|
||||
{
|
||||
public partial class CheckRectify : PageBase
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.GetButtonPower();
|
||||
//btnNew.OnClientClick = Window1.GetShowReference("CheckRectifyEdit.aspx") + "return false;";
|
||||
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||
// 绑定表格
|
||||
BindGrid();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 绑定数据
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
string strSql = string.Empty;
|
||||
SqlParameter[] parameter = new SqlParameter[] { };
|
||||
strSql = "SELECT S.CheckRectifyId,S.CheckRectifyCode,S.ProjectId,S.ProjectName,S.UnitId,U.UnitName,S.CheckDate,CASE S.HandleState WHEN '" + BLL.Const.State_1 + "' THEN '未签发' WHEN '" + BLL.Const.State_2 + "' THEN '未上报' ELSE '已上报' END AS HandleState,"
|
||||
+ @" S.IssueMan,S.IssueDate,ISNULL(TotalCount.TotalCount,0) AS TotalCount ,ISNULL(CompleteCount.CompleteCount,0) AS CompleteCount,(ISNULL(TotalCount.TotalCount,0) -ISNULL(CompleteCount.CompleteCount,0)) AS UnCompleteCount"
|
||||
+ @" FROM dbo.DCGL_Check_CheckRectify AS S LEFT JOIN dbo.Base_Unit AS U ON U.UnitId = S.UnitId"
|
||||
+ @" LEFT JOIN (SELECT COUNT(*) AS TotalCount, CheckRectifyId FROM dbo.DCGL_Check_CheckRectifyItem GROUP BY CheckRectifyId) AS TotalCount ON S.CheckRectifyId=TotalCount.CheckRectifyId"
|
||||
+ @" LEFT JOIN (SELECT COUNT(*) AS CompleteCount, CheckRectifyId FROM dbo.DCGL_Check_CheckRectifyItem WHERE RealEndDate IS NOT NULL GROUP BY CheckRectifyId) AS CompleteCount ON S.CheckRectifyId=CompleteCount.CheckRectifyId"
|
||||
+ @" ORDER BY HandleState";
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
|
||||
// 2.获取当前分页数据
|
||||
//var table = this.GetPagedDataTable(Grid1, tb1);
|
||||
|
||||
Grid1.RecordCount = tb.Rows.Count;
|
||||
//tb = GetFilteredTable(Grid1.FilteredData, tb);
|
||||
var table = this.GetPagedDataTable(Grid1, tb);
|
||||
|
||||
Grid1.DataSource = table;
|
||||
Grid1.DataBind();
|
||||
for (int i = 0; i < Grid1.Rows.Count; i++)
|
||||
{
|
||||
Model.DCGL_Check_CheckRectify rectify = BLL.DCGLCheckRectifyService.GetCheckRectifyByCheckRectifyId(Grid1.Rows[i].DataKeys[0].ToString());
|
||||
if (rectify != null)
|
||||
{
|
||||
if (rectify.HandleState == "1")
|
||||
{
|
||||
Grid1.Rows[i].RowCssClass = "yellow";
|
||||
}
|
||||
else if (rectify.HandleState == "2")
|
||||
{
|
||||
Grid1.Rows[i].RowCssClass = "red";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||
{
|
||||
Grid1.PageIndex = e.NewPageIndex;
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 排序
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_Sort(object sender, GridSortEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 分页显示条数下拉框
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
#region 数据编辑事件
|
||||
/// <summary>
|
||||
/// 右键编辑事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuEdit_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.EditData();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Grid行双击事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||
{
|
||||
this.EditData();
|
||||
}
|
||||
/// <summary>
|
||||
/// 编辑数据方法
|
||||
/// </summary>
|
||||
private void EditData()
|
||||
{
|
||||
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||
{
|
||||
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string CheckRectifyId = Grid1.SelectedRowID;
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("CheckRectifyEdit.aspx?CheckRectifyId={0}", CheckRectifyId, "编辑 - ")));
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 关闭弹出窗
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||
{
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
#region 获取权限按钮
|
||||
/// <summary>
|
||||
/// 获取按钮权限
|
||||
/// </summary>
|
||||
/// <param name="button"></param>
|
||||
/// <returns></returns>
|
||||
private void GetButtonPower()
|
||||
{
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, BLL.Const.DCGLCheckRectifyMenuId);
|
||||
if (buttonList.Count > 0)
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnModify))
|
||||
{
|
||||
this.btnMenuEdit.Hidden = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
#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;
|
||||
Response.Write(GetGridTableHtml(Grid1));
|
||||
Response.End();
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 导出方法
|
||||
/// </summary>
|
||||
/// <param name="grid"></param>
|
||||
/// <returns></returns>
|
||||
private string GetGridTableHtml(Grid grid)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
MultiHeaderTable mht = new MultiHeaderTable();
|
||||
mht.ResolveMultiHeaderTable(Grid1.Columns);
|
||||
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;\">");
|
||||
foreach (List<object[]> rows in mht.MultiTable)
|
||||
{
|
||||
sb.Append("<tr>");
|
||||
foreach (object[] cell in rows)
|
||||
{
|
||||
int rowspan = Convert.ToInt32(cell[0]);
|
||||
int colspan = Convert.ToInt32(cell[1]);
|
||||
GridColumn column = cell[2] as GridColumn;
|
||||
|
||||
sb.AppendFormat("<th{0}{1}{2}>{3}</th>",
|
||||
rowspan != 1 ? " rowspan=\"" + rowspan + "\"" : "",
|
||||
colspan != 1 ? " colspan=\"" + colspan + "\"" : "",
|
||||
colspan != 1 ? " style=\"text-align:center;\"" : "",
|
||||
column.HeaderText);
|
||||
}
|
||||
sb.Append("</tr>");
|
||||
}
|
||||
foreach (GridRow row in grid.Rows)
|
||||
{
|
||||
sb.Append("<tr>");
|
||||
foreach (GridColumn column in mht.Columns)
|
||||
{
|
||||
string html = row.Values[column.ColumnIndex].ToString();
|
||||
if (column.ColumnID == "tfNumber")
|
||||
{
|
||||
html = (row.FindControl("lblNumber") as AspNet.Label).Text;
|
||||
}
|
||||
if (column.ColumnID == "UnitName")
|
||||
{
|
||||
html = (row.FindControl("lblUnit") as AspNet.Label).Text;
|
||||
}
|
||||
if (column.ColumnID == "ProjectName")
|
||||
{
|
||||
//html = (row.FindControl("lblProjectId") as AspNet.Label).Text;
|
||||
html = (row.FindControl("lblProjectName") as AspNet.Label).Text;
|
||||
}
|
||||
sb.AppendFormat("<td>{0}</td>", html);
|
||||
}
|
||||
sb.Append("</tr>");
|
||||
}
|
||||
sb.Append("</table>");
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
#region 多表头处理
|
||||
/// <summary>
|
||||
/// 多表头处理
|
||||
/// </summary>
|
||||
public class MultiHeaderTable
|
||||
{
|
||||
// 包含 rowspan,colspan 的多表头,方便生成 HTML 的 table 标签
|
||||
public List<List<object[]>> MultiTable = new List<List<object[]>>();
|
||||
// 最终渲染的列数组
|
||||
public List<GridColumn> Columns = new List<GridColumn>();
|
||||
public void ResolveMultiHeaderTable(GridColumnCollection columns)
|
||||
{
|
||||
List<object[]> row = new List<object[]>();
|
||||
foreach (GridColumn column in columns)
|
||||
{
|
||||
object[] cell = new object[4];
|
||||
cell[0] = 1; // rowspan
|
||||
cell[1] = 1; // colspan
|
||||
cell[2] = column;
|
||||
cell[3] = null;
|
||||
row.Add(cell);
|
||||
}
|
||||
ResolveMultiTable(row, 0);
|
||||
ResolveColumns(row);
|
||||
}
|
||||
|
||||
private void ResolveColumns(List<object[]> row)
|
||||
{
|
||||
foreach (object[] cell in row)
|
||||
{
|
||||
GroupField groupField = cell[2] as GroupField;
|
||||
if (groupField != null && groupField.Columns.Count > 0)
|
||||
{
|
||||
List<object[]> subrow = new List<object[]>();
|
||||
foreach (GridColumn column in groupField.Columns)
|
||||
{
|
||||
subrow.Add(new object[]
|
||||
{
|
||||
1,
|
||||
1,
|
||||
column,
|
||||
groupField
|
||||
});
|
||||
}
|
||||
ResolveColumns(subrow);
|
||||
}
|
||||
else
|
||||
{
|
||||
Columns.Add(cell[2] as GridColumn);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void ResolveMultiTable(List<object[]> row, int level)
|
||||
{
|
||||
List<object[]> nextrow = new List<object[]>();
|
||||
|
||||
foreach (object[] cell in row)
|
||||
{
|
||||
GroupField groupField = cell[2] as GroupField;
|
||||
if (groupField != null && groupField.Columns.Count > 0)
|
||||
{
|
||||
// 如果当前列包含子列,则更改当前列的 colspan,以及增加父列(向上递归)的colspan
|
||||
cell[1] = Convert.ToInt32(groupField.Columns.Count);
|
||||
PlusColspan(level - 1, cell[3] as GridColumn, groupField.Columns.Count - 1);
|
||||
|
||||
foreach (GridColumn column in groupField.Columns)
|
||||
{
|
||||
nextrow.Add(new object[]
|
||||
{
|
||||
1,
|
||||
1,
|
||||
column,
|
||||
groupField
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
MultiTable.Add(row);
|
||||
// 如果当前下一行,则增加上一行(向上递归)中没有子列的列的 rowspan
|
||||
if (nextrow.Count > 0)
|
||||
{
|
||||
PlusRowspan(level);
|
||||
ResolveMultiTable(nextrow, level + 1);
|
||||
}
|
||||
}
|
||||
|
||||
private void PlusRowspan(int level)
|
||||
{
|
||||
if (level < 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
foreach (object[] cells in MultiTable[level])
|
||||
{
|
||||
GroupField groupField = cells[2] as GroupField;
|
||||
if (groupField != null && groupField.Columns.Count > 0)
|
||||
{
|
||||
// ...
|
||||
}
|
||||
else
|
||||
{
|
||||
cells[0] = Convert.ToInt32(cells[0]) + 1;
|
||||
}
|
||||
}
|
||||
PlusRowspan(level - 1);
|
||||
}
|
||||
|
||||
private void PlusColspan(int level, GridColumn parent, int plusCount)
|
||||
{
|
||||
if (level < 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
foreach (object[] cells in MultiTable[level])
|
||||
{
|
||||
GridColumn column = cells[2] as GridColumn;
|
||||
if (column == parent)
|
||||
{
|
||||
cells[1] = Convert.ToInt32(cells[1]) + plusCount;
|
||||
|
||||
PlusColspan(level - 1, cells[3] as GridColumn, plusCount);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 从集团获取
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnGet_Click(object sender, EventArgs e)
|
||||
{
|
||||
var returnValue = getCheck_CheckRectifyListToSUB();
|
||||
if (returnValue.code == 1)
|
||||
{
|
||||
ShowNotify(returnValue.message, MessageBoxIcon.Success);
|
||||
BindGrid();
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInTop(returnValue.message, MessageBoxIcon.Success);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#region 获取
|
||||
/// <summary>
|
||||
/// 获取
|
||||
/// </summary>
|
||||
/// <param name="type"></param>
|
||||
/// <returns></returns>
|
||||
public static Model.ResponeData getCheck_CheckRectifyListToSUB()
|
||||
{
|
||||
var responeData = new Model.ResponeData();
|
||||
try
|
||||
{
|
||||
string unitId =BLL.Const.UnitId_SEDIN;
|
||||
string baseurl = SysConstSetService.CNCECPath + "/api/HSSEData/getDCGLCheckRectify?unitId=" + unitId;
|
||||
string contenttype = "application/json;charset=unicode";
|
||||
Hashtable newToken = new Hashtable
|
||||
{
|
||||
{ "token", ServerService.GetToken().Token }
|
||||
};
|
||||
|
||||
var strJosn = APIGetHttpService.Http(baseurl, "GET", contenttype, newToken, null);
|
||||
if (!string.IsNullOrEmpty(strJosn))
|
||||
{
|
||||
JObject obj = JObject.Parse(strJosn);
|
||||
responeData.code = Funs.GetNewIntOrZero(obj["code"].ToString());
|
||||
responeData.message = obj["message"].ToString();
|
||||
if (responeData.code == 1)
|
||||
{
|
||||
JArray getData = JArray.Parse(obj["data"].ToString());
|
||||
if (getData.Count() > 0)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
List<string> ids = new List<string>();
|
||||
foreach (var item in getData)
|
||||
{
|
||||
string getCheckRectifyId = item["CheckRectifyId"].ToString();
|
||||
if (!ids.Contains(getCheckRectifyId))
|
||||
{
|
||||
var newRectify = db.DCGL_Check_CheckRectify.FirstOrDefault(e => e.CheckRectifyId == getCheckRectifyId);
|
||||
if (newRectify == null)
|
||||
{
|
||||
ids.Add(getCheckRectifyId);
|
||||
Model.DCGL_Check_CheckRectify newCheckRectify = new Model.DCGL_Check_CheckRectify
|
||||
{
|
||||
CheckRectifyId = getCheckRectifyId,
|
||||
CheckRectifyCode = item["CheckRectifyCode"].ToString(),
|
||||
ProjectId = item["ProjectId"].ToString(),
|
||||
ProjectName = item["ProjectName"].ToString(),
|
||||
UnitId = unitId,
|
||||
CheckDate = Funs.GetNewDateTime(item["CheckDate"].ToString()),
|
||||
IssueMan = item["IssueMan"].ToString(),
|
||||
IssueDate = Funs.GetNewDateTime(item["IssueDate"].ToString()),
|
||||
HandleState = item["HandleState"].ToString()
|
||||
};
|
||||
db.DCGL_Check_CheckRectify.InsertOnSubmit(newCheckRectify);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
else
|
||||
{
|
||||
newRectify.CheckRectifyCode = item["CheckRectifyCode"].ToString();
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
//获取对应主表主键的明细集合
|
||||
string getNoticeItemId = item["NoticeItemId"].ToString();
|
||||
var notice = db.DCGL_Check_CheckInfo_TableNoticeItem.FirstOrDefault(x => x.ID == getNoticeItemId);
|
||||
if (notice == null)
|
||||
{
|
||||
Model.DCGL_Check_CheckInfo_TableNoticeItem newCheckRectifyItem = new Model.DCGL_Check_CheckInfo_TableNoticeItem
|
||||
{
|
||||
ID = getNoticeItemId,
|
||||
CheckInfoId = item["CheckInfoId"].ToString(),
|
||||
SortIndex = Funs.GetNewInt(item["SortIndex"].ToString()),
|
||||
Describe = item["Describe"].ToString(),
|
||||
Standards = item["Standards"].ToString(),
|
||||
Advice = item["Advice"].ToString(),
|
||||
LimitTime = Funs.GetNewDateTime(item["LimitTime"].ToString()),
|
||||
|
||||
Situation = item["Situation"].ToString(),
|
||||
Remark = item["Remark"].ToString(),
|
||||
Url = item["Url"].ToString(),
|
||||
AffUrl = item["AffUrl"].ToString(),
|
||||
RiskLevel = item["RiskLevel"].ToString(),
|
||||
ProblemTypes = item["ProblemTypes"].ToString(),
|
||||
ProblemSubTypeId = item["ProblemSubTypeId"].ToString(),
|
||||
ProblemSubType = item["ProblemSubType"].ToString(),
|
||||
States = item["States"].ToString(),
|
||||
|
||||
//WorkType = item["WorkType"].ToString(),
|
||||
//DangerPoint = item["DangerPoint"].ToString(),
|
||||
//RiskExists = item["RiskExists"].ToString(),
|
||||
//IsProject = Convert.ToBoolean(item["IsProject"].ToString()),
|
||||
//CheckMan = item["CheckMan"].ToString(),
|
||||
//SubjectUnitMan = item["SubjectUnitMan"].ToString(),
|
||||
};
|
||||
db.DCGL_Check_CheckInfo_TableNoticeItem.InsertOnSubmit(newCheckRectifyItem);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
BLL.CommonService.DeleteAttachFileById(getNoticeItemId);//删除附件
|
||||
////上传附件
|
||||
string getAttachFileId = item["AttachFileId"].ToString();
|
||||
if (!string.IsNullOrEmpty(getAttachFileId))
|
||||
{
|
||||
JArray byteList = item["FileContext"] as JArray;
|
||||
List<byte[]> resultList = new List<byte[]>();
|
||||
foreach (JToken token in byteList)
|
||||
{
|
||||
byte[] byteArray = Convert.FromBase64String(token.ToString());
|
||||
resultList.Add(byteArray);
|
||||
}
|
||||
|
||||
//List<byte[]> fileContext = new List<byte[]>();
|
||||
//fileContext.Add(Convert.FromBase64String(item["FileContext"].ToString()));
|
||||
BLL.FileInsertService.InsertAttachFile(getAttachFileId, getNoticeItemId, item["AttachSource"].ToString(), item["AttachUrl"].ToString(), resultList);
|
||||
}
|
||||
|
||||
string getCheckRectifyItemId = item["CheckRectifyItemId"].ToString();
|
||||
var oldItem = db.DCGL_Check_CheckRectifyItem.FirstOrDefault(e => e.CheckRectifyItemId == getCheckRectifyItemId);
|
||||
if (oldItem == null)
|
||||
{
|
||||
Model.DCGL_Check_CheckRectifyItem newCheckRectifyItem = new Model.DCGL_Check_CheckRectifyItem
|
||||
{
|
||||
CheckRectifyItemId = getCheckRectifyItemId,
|
||||
CheckRectifyId = getCheckRectifyId,
|
||||
NoticeItemId = getNoticeItemId,
|
||||
ConfirmMan = item["ConfirmMan"].ToString(),
|
||||
ConfirmManName = item["ConfirmManName"].ToString(),
|
||||
ConfirmDate = Funs.GetNewDateTime(item["ConfirmDate"].ToString()),
|
||||
OrderEndDate = Funs.GetNewDateTime(item["OrderEndDate"].ToString()),
|
||||
OrderEndPerson = item["OrderEndPerson"].ToString(),
|
||||
RealEndDate = Funs.GetNewDateTime(item["RealEndDate"].ToString()),
|
||||
};
|
||||
|
||||
db.DCGL_Check_CheckRectifyItem.InsertOnSubmit(newCheckRectifyItem);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//获取对应主表主键的明细集合
|
||||
string getNoticeItemId = item["NoticeItemId"].ToString();
|
||||
var notice = db.DCGL_Check_CheckInfo_TableNoticeItem.FirstOrDefault(x => x.ID == getNoticeItemId);
|
||||
if (notice == null)
|
||||
{
|
||||
|
||||
Model.DCGL_Check_CheckInfo_TableNoticeItem newCheckRectifyItem = new Model.DCGL_Check_CheckInfo_TableNoticeItem
|
||||
{
|
||||
ID = getNoticeItemId,
|
||||
CheckInfoId = item["CheckInfoId"].ToString(),
|
||||
SortIndex = Funs.GetNewInt(item["SortIndex"].ToString()),
|
||||
Describe = item["Describe"].ToString(),
|
||||
Standards = item["Standards"].ToString(),
|
||||
Advice = item["Advice"].ToString(),
|
||||
LimitTime = Funs.GetNewDateTime(item["LimitTime"].ToString()),
|
||||
|
||||
Situation = item["Situation"].ToString(),
|
||||
Remark = item["Remark"].ToString(),
|
||||
Url = item["Url"].ToString(),
|
||||
AffUrl = item["AffUrl"].ToString(),
|
||||
RiskLevel = item["RiskLevel"].ToString(),
|
||||
ProblemTypes = item["ProblemTypes"].ToString(),
|
||||
ProblemSubTypeId = item["ProblemSubTypeId"].ToString(),
|
||||
ProblemSubType = item["ProblemSubType"].ToString(),
|
||||
States = item["States"].ToString(),
|
||||
|
||||
//WorkType = item["WorkType"].ToString(),
|
||||
//DangerPoint = item["DangerPoint"].ToString(),
|
||||
//RiskExists = item["RiskExists"].ToString(),
|
||||
//IsProject = Convert.ToBoolean(item["IsProject"].ToString()),
|
||||
//CheckMan = item["CheckMan"].ToString(),
|
||||
//SubjectUnitMan = item["SubjectUnitMan"].ToString(),
|
||||
};
|
||||
db.DCGL_Check_CheckInfo_TableNoticeItem.InsertOnSubmit(newCheckRectifyItem);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
|
||||
BLL.CommonService.DeleteAttachFileById(getNoticeItemId);//删除附件
|
||||
////上传附件
|
||||
string getAttachFileId = item["AttachFileId"].ToString();
|
||||
if (!string.IsNullOrEmpty(getAttachFileId))
|
||||
{
|
||||
JArray byteList = item["FileContext"] as JArray;
|
||||
List<byte[]> resultList = new List<byte[]>();
|
||||
foreach (JToken token in byteList)
|
||||
{
|
||||
byte[] byteArray = Convert.FromBase64String(token.ToString());
|
||||
resultList.Add(byteArray);
|
||||
}
|
||||
|
||||
//List<byte[]> fileContext = new List<byte[]>();
|
||||
//fileContext.Add(Convert.FromBase64String(item["FileContext"].ToString()));
|
||||
BLL.FileInsertService.InsertAttachFile(getAttachFileId, getNoticeItemId, item["AttachSource"].ToString(), item["AttachUrl"].ToString(), resultList);
|
||||
}
|
||||
|
||||
string getCheckRectifyItemId = item["CheckRectifyItemId"].ToString();
|
||||
var oldItem = db.DCGL_Check_CheckRectifyItem.FirstOrDefault(e => e.CheckRectifyItemId == getCheckRectifyItemId);
|
||||
if (oldItem == null)
|
||||
{
|
||||
Model.DCGL_Check_CheckRectifyItem newCheckRectifyItem = new Model.DCGL_Check_CheckRectifyItem
|
||||
{
|
||||
CheckRectifyItemId = getCheckRectifyItemId,
|
||||
CheckRectifyId = getCheckRectifyId,
|
||||
NoticeItemId = getNoticeItemId,
|
||||
ConfirmMan = item["ConfirmMan"].ToString(),
|
||||
ConfirmDate = Funs.GetNewDateTime(item["ConfirmDate"].ToString()),
|
||||
OrderEndDate = Funs.GetNewDateTime(item["OrderEndDate"].ToString()),
|
||||
OrderEndPerson = item["OrderEndPerson"].ToString(),
|
||||
RealEndDate = Funs.GetNewDateTime(item["RealEndDate"].ToString()),
|
||||
};
|
||||
|
||||
db.DCGL_Check_CheckRectifyItem.InsertOnSubmit(newCheckRectifyItem);
|
||||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
responeData.message = "获取成功:整改明细记录" + getData.Count().ToString() + "条";
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
responeData.code = 0;
|
||||
responeData.message = "获取失败:" + ex.Message;
|
||||
ErrLogInfo.WriteLog("督查检查通知单获取!", ex);
|
||||
}
|
||||
|
||||
return responeData;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.DCGL.ServerCheck
|
||||
{
|
||||
|
||||
|
||||
public partial class CheckRectify
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar2 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar2;
|
||||
|
||||
/// <summary>
|
||||
/// btnGet 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnGet;
|
||||
|
||||
/// <summary>
|
||||
/// btnOut 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnOut;
|
||||
|
||||
/// <summary>
|
||||
/// lblNumber 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblNumber;
|
||||
|
||||
/// <summary>
|
||||
/// lblUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblUnit;
|
||||
|
||||
/// <summary>
|
||||
/// lblProjectName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label lblProjectName;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarText1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.ToolbarText ToolbarText1;
|
||||
|
||||
/// <summary>
|
||||
/// ddlPageSize 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList ddlPageSize;
|
||||
|
||||
/// <summary>
|
||||
/// Window1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window Window1;
|
||||
|
||||
/// <summary>
|
||||
/// Menu1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Menu Menu1;
|
||||
|
||||
/// <summary>
|
||||
/// btnMenuEdit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.MenuButton btnMenuEdit;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,147 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CheckRectifyEdit.aspx.cs" Async="true" Inherits="FineUIPro.Web.DCGL.ServerCheck.CheckRectifyEdit" %>
|
||||
|
||||
<!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 type="text/css">
|
||||
.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="5px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Panel ID="Panel4" runat="server" ShowBorder="False" Layout="Table" TableConfigColumns="2"
|
||||
ShowHeader="false">
|
||||
<Items>
|
||||
<f:Panel ID="Panel1" Title="Panel1" runat="server" BodyPadding="5px" ShowBorder="false"
|
||||
ShowHeader="false">
|
||||
<Items>
|
||||
<f:Label runat="server" ID="lbUnitName">
|
||||
</f:Label>
|
||||
<f:Label runat="server" ID="lbProjectName">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
<f:Panel ID="Panel5" Title="Panel3" TableRowspan="2" runat="server" BodyPadding="5px"
|
||||
ShowBorder="false" ShowHeader="false">
|
||||
<Items>
|
||||
<f:Label runat="server" ID="Label1" Text=":你单位存在以下事故隐患,请立即组织治理整改并消项。">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:Panel>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Label runat="server" ID="lbCheckRectifyCode" Label="编号">
|
||||
</f:Label>
|
||||
<f:Label runat="server" ID="txtIssueMan" Label="签发人">
|
||||
</f:Label>
|
||||
<f:Label runat="server" ID="txtIssueDate" Label="签发时间">
|
||||
</f:Label>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" EnableCollapse="true" runat="server"
|
||||
BoxFlex="1" DataKeyNames="CheckRectifyItemId" AllowCellEditing="true" Height="420px"
|
||||
ClicksToEdit="1" DataIDField="CheckRectifyItemId" EnableColumnLines="true">
|
||||
<Columns>
|
||||
<f:RowNumberField EnablePagingNumber="true" HeaderText="序号" Width="45px" HeaderTextAlign="Center" TextAlign="Center" />
|
||||
<f:RenderField Width="100px" ColumnID="WorkType" DataField="WorkType" SortField="WorkType"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="作业类别" Hidden="true">
|
||||
</f:RenderField>
|
||||
<f:TemplateField Width="250px" HeaderText="隐患源点" HeaderTextAlign="Center" TextAlign="Left" Hidden="true">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label15" runat="server" Text='<%# Bind("DangerPoint") %>' ToolTip='<%#Bind("DangerPoint") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:TemplateField Width="150px" HeaderText="存在风险" HeaderTextAlign="Center" TextAlign="Left" ExpandUnusedSpace="true">
|
||||
<ItemTemplate>
|
||||
<asp:Label ID="Label4" runat="server" Text='<%# Bind("RiskExists") %>' ToolTip='<%#Bind("RiskExists") %>'></asp:Label>
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:WindowField TextAlign="Center" Width="80px" WindowID="WindowAtt" HeaderText="整改前" Text="相关照片"
|
||||
ToolTip="相关照片附件" DataIFrameUrlFields="NoticeItemId" DataIFrameUrlFormatString="../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/Check&type=-1"
|
||||
Title="相关照片" ColumnID="WindowAtt">
|
||||
</f:WindowField>
|
||||
<f:WindowField TextAlign="Center" Width="80px" WindowID="WindowAtt" HeaderText="整改后" Text="相关照片"
|
||||
ToolTip="相关照片附件" DataIFrameUrlFields="CheckRectifyItemId" DataIFrameUrlFormatString="../../AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/Check&menuId=2E4A3E58-44B7-41B0-BFE3-634DF29AAE27"
|
||||
Title="相关照片" ColumnID="WindowAtt1">
|
||||
</f:WindowField>
|
||||
<f:RenderField Width="100px" ColumnID="ConfirmManName" DataField="ConfirmManName" FieldType="String"
|
||||
HeaderTextAlign="Center" TextAlign="Left" HeaderText="立项人">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" EnableLock="true" ColumnID="ConfirmDate" DataField="ConfirmDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="立项时间"
|
||||
TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="110px" EnableLock="true" ColumnID="OrderEndDate" DataField="OrderEndDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="要求消项时间"
|
||||
TextAlign="Center" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="110px" ColumnID="OrderEndPerson" DataField="OrderEndPerson"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Center" HeaderText="消项责任人">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtOrderEndPerson" Text='<%# Eval("OrderEndPerson")%>' MaxLength="50" runat="server">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="110px" EnableLock="true" ColumnID="RealEndDate" DataField="RealEndDate"
|
||||
FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="实际消项时间"
|
||||
TextAlign="Center" HeaderTextAlign="Center">
|
||||
<Editor>
|
||||
<f:DatePicker ID="txtRealEndDate" runat="server" Text='<%# Eval("RealEndDate")%>'>
|
||||
</f:DatePicker>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField ColumnID="Verification" DataField="Verification" Width="100px" HeaderToolTip="企业管理部门验证人"
|
||||
FieldType="String" HeaderTextAlign="Center" TextAlign="Left" HeaderText="验证人">
|
||||
<Editor>
|
||||
<f:TextBox ID="txtVerification" Text='<%# Eval("Verification")%>' MaxLength="50" runat="server">
|
||||
</f:TextBox>
|
||||
</Editor>
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="1px" ColumnID="CheckRectifyItemId" DataField="CheckRectifyItemId"
|
||||
FieldType="String" HeaderText="主键" Hidden="true" HeaderTextAlign="Center">
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
</f:Grid>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Hidden="true" Text="保存" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnSaveUp" Icon="PageSave" runat="server" Text="保存并上报" Hidden="true" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSaveUp_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnClose" Icon="SystemClose" runat="server" Text="关闭" OnClick="btnClose_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
<f:Window ID="WindowAtt" Title="弹出窗体" Hidden="true" EnableIFrame="true"
|
||||
EnableMaximize="true" Target="Self" EnableResize="true" runat="server"
|
||||
IsModal="true" Width="800px" Height="500px">
|
||||
</f:Window>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,192 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using BLL;
|
||||
using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace FineUIPro.Web.DCGL.ServerCheck
|
||||
{
|
||||
public partial class CheckRectifyEdit : PageBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
/// </summary>
|
||||
public string CheckRectifyId
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["CheckRectifyId"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["CheckRectifyId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 定义集合
|
||||
/// </summary>
|
||||
private static List<Model.View_DCGL_CheckRectifyListFromSUB> CheckRectifyItems = new List<Model.View_DCGL_CheckRectifyListFromSUB>();
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.GetButtonPower();
|
||||
this.CheckRectifyId = Request.Params["CheckRectifyId"];
|
||||
if (!string.IsNullOrEmpty(this.CheckRectifyId))
|
||||
{
|
||||
var rectify = Funs.DB.DCGL_Check_CheckRectify.FirstOrDefault(x => x.CheckRectifyId == this.CheckRectifyId);
|
||||
if (rectify != null)
|
||||
{
|
||||
var unit = BLL.UnitService.GetUnitByUnitId(rectify.UnitId);
|
||||
if (unit != null)
|
||||
{
|
||||
this.lbUnitName.Text = unit.UnitName;
|
||||
}
|
||||
|
||||
this.lbProjectName.Text = rectify.ProjectName;
|
||||
this.lbCheckRectifyCode.Text = rectify.CheckRectifyCode;
|
||||
if (!string.IsNullOrEmpty(rectify.IssueMan))
|
||||
{
|
||||
this.txtIssueMan.Text = rectify.IssueMan;
|
||||
}
|
||||
if (rectify.IssueDate.HasValue)
|
||||
{
|
||||
this.txtIssueDate.Text = string.Format("{0:yyyy-MM-dd}", rectify.IssueDate);
|
||||
}
|
||||
if (rectify.HandleState == BLL.Const.State_3)
|
||||
{
|
||||
this.btnSave.Hidden = true;
|
||||
this.btnSaveUp.Hidden = true;
|
||||
}
|
||||
|
||||
CheckRectifyItems = (from x in Funs.DB.View_DCGL_CheckRectifyListFromSUB where x.CheckRectifyId == this.CheckRectifyId orderby x.SortIndex select x).ToList();
|
||||
Grid1.DataSource = CheckRectifyItems;
|
||||
Grid1.DataBind();
|
||||
//if (CheckRectifyItems.FirstOrDefault(x => x.DangerPoint.Length > 1) == null)
|
||||
//{
|
||||
this.Grid1.Columns[1].Hidden = true;
|
||||
this.Grid1.Columns[2].Hidden = true;
|
||||
//}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存按钮
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.SavaData(BLL.Const.BtnSave);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存并提交
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSaveUp_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.SavaData(BLL.Const.BtnSaveUp);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存数据方法
|
||||
/// </summary>
|
||||
/// <param name="type"></param>
|
||||
private void SavaData(string type)
|
||||
{
|
||||
jerqueSaveList();
|
||||
foreach (var item in CheckRectifyItems)
|
||||
{
|
||||
var newCheckRectifyItem = BLL.DCGLCheckRectifyItemService.GetCheckRectifyItemByCheckRectifyItemId(item.CheckRectifyItemId);
|
||||
if (newCheckRectifyItem != null)
|
||||
{
|
||||
newCheckRectifyItem.RealEndDate = item.RealEndDate;
|
||||
newCheckRectifyItem.OrderEndPerson = item.OrderEndPerson;
|
||||
newCheckRectifyItem.Verification = item.Verification;
|
||||
BLL.DCGLCheckRectifyItemService.UpdateCheckRectifyItem(newCheckRectifyItem);
|
||||
}
|
||||
}
|
||||
|
||||
var newCheckRectify = BLL.DCGLCheckRectifyService.GetCheckRectifyByCheckRectifyId(this.CheckRectifyId);
|
||||
if (newCheckRectify != null && newCheckRectify.HandleState != BLL.Const.State_3)
|
||||
{
|
||||
newCheckRectify.HandleState = BLL.Const.State_2; //待上报
|
||||
BLL.DCGLCheckRectifyService.UpdateCheckRectify(newCheckRectify);
|
||||
}
|
||||
if (type == BLL.Const.BtnSaveUp)
|
||||
{
|
||||
string code = CNCECHSSEWebService.UpDCGlCheck_CheckRectify(newCheckRectify.CheckRectifyId, this.CurrUser);
|
||||
if (code == "1")
|
||||
{
|
||||
ShowNotify("同步成功!", MessageBoxIcon.Success);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInParent("同步异常,请退出后重试!", MessageBoxIcon.Error);
|
||||
}
|
||||
}
|
||||
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, string.Empty, string.Empty, BLL.Const.DCGLCheckRectifyMenuId, BLL.Const.BtnModify);
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存集合
|
||||
/// </summary>
|
||||
private void jerqueSaveList()
|
||||
{
|
||||
JArray mergedData = Grid1.GetMergedData();
|
||||
foreach (JObject mergedRow in mergedData)
|
||||
{
|
||||
string status = mergedRow.Value<string>("status");
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
string checkRectifyItemId = values.Value<string>("CheckRectifyItemId").ToString();
|
||||
var item = CheckRectifyItems.FirstOrDefault(e => e.CheckRectifyItemId == checkRectifyItemId);
|
||||
if (item != null)
|
||||
{
|
||||
item.OrderEndPerson = values.Value<string>("OrderEndPerson").ToString();
|
||||
item.RealEndDate = Funs.GetNewDateTime(values.Value<string>("RealEndDate").ToString());
|
||||
item.Verification = values.Value<string>("Verification").ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#region 权限设置
|
||||
/// <summary>
|
||||
/// 权限按钮设置
|
||||
/// </summary>
|
||||
private void GetButtonPower()
|
||||
{
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, BLL.Const.DCGLCheckRectifyMenuId);
|
||||
if (buttonList.Count() > 0)
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnSave))
|
||||
{
|
||||
this.btnSave.Hidden = false;
|
||||
this.btnSaveUp.Hidden = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 关闭按钮事件
|
||||
/// <summary>
|
||||
/// 关闭按钮事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnClose_Click(object sender, EventArgs e)
|
||||
{
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,224 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <自动生成>
|
||||
// 此代码由工具生成。
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.DCGL.ServerCheck
|
||||
{
|
||||
|
||||
|
||||
public partial class CheckRectifyEdit
|
||||
{
|
||||
|
||||
/// <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>
|
||||
/// Panel4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel4;
|
||||
|
||||
/// <summary>
|
||||
/// Panel1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel1;
|
||||
|
||||
/// <summary>
|
||||
/// lbUnitName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbUnitName;
|
||||
|
||||
/// <summary>
|
||||
/// lbProjectName 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbProjectName;
|
||||
|
||||
/// <summary>
|
||||
/// Panel5 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Panel Panel5;
|
||||
|
||||
/// <summary>
|
||||
/// Label1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label1;
|
||||
|
||||
/// <summary>
|
||||
/// lbCheckRectifyCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label lbCheckRectifyCode;
|
||||
|
||||
/// <summary>
|
||||
/// txtIssueMan 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtIssueMan;
|
||||
|
||||
/// <summary>
|
||||
/// txtIssueDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label txtIssueDate;
|
||||
|
||||
/// <summary>
|
||||
/// Grid1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Grid Grid1;
|
||||
|
||||
/// <summary>
|
||||
/// Label15 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label15;
|
||||
|
||||
/// <summary>
|
||||
/// Label4 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label4;
|
||||
|
||||
/// <summary>
|
||||
/// txtOrderEndPerson 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtOrderEndPerson;
|
||||
|
||||
/// <summary>
|
||||
/// txtRealEndDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker txtRealEndDate;
|
||||
|
||||
/// <summary>
|
||||
/// txtVerification 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtVerification;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
/// <summary>
|
||||
/// btnSaveUp 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSaveUp;
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnClose;
|
||||
|
||||
/// <summary>
|
||||
/// WindowAtt 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Window WindowAtt;
|
||||
}
|
||||
}
|
||||
@@ -547,6 +547,9 @@
|
||||
<Content Include="DataShow\SecurityRiskItem.aspx" />
|
||||
<Content Include="DataShow\WorkingHours.aspx" />
|
||||
<Content Include="DataShow\WorkingHoursItem.aspx" />
|
||||
<Content Include="DCGL\ServerCheck\CheckNotice.aspx" />
|
||||
<Content Include="DCGL\ServerCheck\CheckRectify.aspx" />
|
||||
<Content Include="DCGL\ServerCheck\CheckRectifyEdit.aspx" />
|
||||
<Content Include="DigData\CQMSDataCollect.aspx" />
|
||||
<Content Include="DigData\CQMSDataDW.aspx" />
|
||||
<Content Include="DigData\HSEDataDW.aspx" />
|
||||
@@ -9572,6 +9575,27 @@
|
||||
<Compile Include="DataShow\WorkingHoursItem.aspx.designer.cs">
|
||||
<DependentUpon>WorkingHoursItem.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DCGL\ServerCheck\CheckNotice.aspx.cs">
|
||||
<DependentUpon>CheckNotice.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DCGL\ServerCheck\CheckNotice.aspx.designer.cs">
|
||||
<DependentUpon>CheckNotice.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DCGL\ServerCheck\CheckRectify.aspx.cs">
|
||||
<DependentUpon>CheckRectify.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DCGL\ServerCheck\CheckRectify.aspx.designer.cs">
|
||||
<DependentUpon>CheckRectify.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DCGL\ServerCheck\CheckRectifyEdit.aspx.cs">
|
||||
<DependentUpon>CheckRectifyEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="DCGL\ServerCheck\CheckRectifyEdit.aspx.designer.cs">
|
||||
<DependentUpon>CheckRectifyEdit.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="DigData\CQMSDataCollect.aspx.cs">
|
||||
<DependentUpon>CQMSDataCollect.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -13796,7 +13820,6 @@
|
||||
<Compile Include="Notice\NoticeView2.aspx.designer.cs">
|
||||
<DependentUpon>NoticeView2.aspx</DependentUpon>
|
||||
</Compile>
|
||||
|
||||
<Compile Include="OfficeCheck\Check\CheckContentEdit.aspx.cs">
|
||||
<DependentUpon>CheckContentEdit.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
|
||||
@@ -109,7 +109,6 @@
|
||||
<TreeNode id="FD572EFA-8E87-43D1-B514-25A39768106F" Text="生态环保工作总结报告" NavigateUrl="HSSE/InformationProject/EPSummaryReport.aspx"></TreeNode>
|
||||
<TreeNode id="25CE6894-2840-4DC4-AD2E-D72292849CEE" Text="建筑行业能源节约与生态环境保护汇总表" NavigateUrl="ZHGL/Environmental/ProjectArchitectureReport.aspx"></TreeNode>
|
||||
<TreeNode id="A44E98F6-E9FE-43F8-8349-C166263BF608" Text="化工行业能源节约与生态环境保护汇总表" NavigateUrl="ZHGL/Environmental/ProjectChemicalReport.aspx"></TreeNode>
|
||||
<TreeNode id="EFA6E45F-1267-4804-BEE7-41E0C5461204" Text="中央企业节能环保产业企业基本情况和经营情况报表" NavigateUrl="ZHGL/Environmental/ProjectOperationReport.aspx"></TreeNode>
|
||||
<TreeNode id="9DE996D9-A2CF-40C8-86D3-6A472AB30E5D" Text="中央企业节能环保产业企业生产和服务业务情况报表" NavigateUrl="ZHGL/Environmental/ProjectEnergyReport.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="C483220C-0FEE-4E45-9B78-BBBA857EFFB3" Text="安全数据" NavigateUrl="ZHGL/DataSync/ProjectDataSync/Project_HSSEData_HSSE.aspx"></TreeNode>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<TreeNode id="687991B6-73AC-42FA-9A72-178AF94D1EB4" Text="招标工程量清单定制" NavigateUrl="PHTGL/BillOfQuantities/BidProjectQuantityList.aspx"></TreeNode>
|
||||
<TreeNode id="0BB31BB1-469D-41E8-9039-A53A2B1EEB86" Text="招标文件审批" NavigateUrl="PHTGL/BiddingManagement/BidDocumentsReview.aspx"></TreeNode>
|
||||
<TreeNode id="133C55A1-3744-40F5-9C74-24E85AB1261F" Text="评标小组名单审批" NavigateUrl="PHTGL/BiddingManagement/ApproveUserReview.aspx"></TreeNode>
|
||||
<TreeNode id="11503AD6-742D-406D-96F1-17BA3B9E7580" Text="确定分包商审批" NavigateUrl="PHTGL/BiddingManagement/SetSubReview.aspx"></TreeNode>
|
||||
<TreeNode id="11503AD6-742D-406D-96F1-17BA3B9E7580" Text="确定中标人审批" NavigateUrl="PHTGL/BiddingManagement/SetSubReview.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="C041D799-47A0-4ECA-A6A2-C387857165D6" Text="合同管理" NavigateUrl=""><TreeNode id="C609FEA5-0904-4F59-A920-22B6459F1A94" Text="合同编制" NavigateUrl="PHTGL/ContractCompile/ContractFormation.aspx"></TreeNode>
|
||||
<TreeNode id="B32E7F62-5AA3-46B2-A438-E286909A47B4" Text="合同评审" NavigateUrl="PHTGL/ContractCompile/ContractReview_Countersign.aspx"></TreeNode>
|
||||
|
||||
@@ -45,6 +45,9 @@
|
||||
<TreeNode id="BFFBE172-7473-486E-9833-49F13B359C6C" Text="安全会议" NavigateUrl=""><TreeNode id="B911B4F8-DDFD-4F37-9EAC-EB104F753432" Text="企业安委会" NavigateUrl="ZHGL/Meeting/CompanySafetyMeeting.aspx"></TreeNode>
|
||||
<TreeNode id="2497EF13-C052-4228-B388-EBC5C18963BC" Text="企业专题会" NavigateUrl="ZHGL/Meeting/CompanySpecialMeeting.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="8B9C0F42-D36F-4798-94AB-F56723E8B714" Text="集团督查检查" NavigateUrl=""><TreeNode id="15443DE9-4AC2-43F9-A622-9F9253ECB157" Text="督查检查通知单" NavigateUrl="DCGL/ServerCheck/CheckNotice.aspx"></TreeNode>
|
||||
<TreeNode id="2E4A3E58-44B7-41B0-BFE3-634DF29AAE27" Text="集团下发督查检查整改" NavigateUrl="DCGL/ServerCheck/CheckRectify.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
<TreeNode id="CD9FC4C8-4B02-4619-8B02-50DA6AE6146E" Text="企业安全大检查" NavigateUrl=""><TreeNode id="40387C48-95A0-435C-82FB-57AF0A81B9D4" Text="安全监督检查报告" NavigateUrl="ZHGL/Supervise/SuperviseCheckReport.aspx"></TreeNode>
|
||||
<TreeNode id="A02E0365-383C-49A0-BF1A-B3E42052959B" Text="安全监督检查整改" NavigateUrl="ZHGL/Supervise/SuperviseCheckRectify.aspx"></TreeNode>
|
||||
</TreeNode>
|
||||
|
||||
Reference in New Issue
Block a user