提交代码
This commit is contained in:
parent
15781a6969
commit
6ba17f2d02
|
@ -0,0 +1,126 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InspectionManagement.aspx.cs" Inherits="FineUIPro.Web.DataShow.InspectionManagement" %>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head runat="server">
|
||||||
|
<link href="~/res/css/common.css" rel="stylesheet" type="text/css" />
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
<script src="~/Controls/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
|
||||||
|
<title>质量共检数据</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||||
|
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||||
|
ShowHeader="true" Layout="VBox" BoxConfigAlign="Stretch">
|
||||||
|
<Items>
|
||||||
|
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="质量共检数据" EnableCollapse="true"
|
||||||
|
runat="server" BoxFlex="1" DataKeyNames="ProjectId" DataIDField="ProjectId" AllowSorting="true"
|
||||||
|
SortField="ProjectName" SortDirection="ASC" OnSort="Grid1_Sort" EnableColumnLines="true" AllowPaging="true"
|
||||||
|
IsDatabasePaging="true" PageSize="20" OnPageIndexChange="Grid1_PageIndexChange" ForceFit="true"
|
||||||
|
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
|
||||||
|
<Items>
|
||||||
|
<f:DropDownList ID="drpProject" runat="server" Label="项目" Width="400px" LabelWidth="80px" LabelAlign="Right"
|
||||||
|
EnableEdit="true" OnSelectedIndexChanged="TextBox_TextChanged" AutoPostBack="true">
|
||||||
|
</f:DropDownList>
|
||||||
|
<f:DatePicker ID="txtStartTime" runat="server" Label="验收日期" LabelAlign="Right"
|
||||||
|
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="80px">
|
||||||
|
</f:DatePicker>
|
||||||
|
<f:Label ID="Label3" runat="server" Text="至">
|
||||||
|
</f:Label>
|
||||||
|
<f:DatePicker ID="txtEndTime" runat="server" AutoPostBack="true" OnTextChanged="TextBox_TextChanged"
|
||||||
|
Width="130px">
|
||||||
|
</f:DatePicker>
|
||||||
|
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||||
|
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose" OnClientClick="closeNow();">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
<Columns>
|
||||||
|
<f:TemplateField ColumnID="tfNumber" Width="55px" HeaderText="序号" HeaderTextAlign="Center"
|
||||||
|
TextAlign="Center">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="labNumber" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</f:TemplateField>
|
||||||
|
<f:RenderField Width="150px" ColumnID="ProjectCode" DataField="ProjectCode" FieldType="String" HeaderText="项目号" TextAlign="Left"
|
||||||
|
HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="350px" ColumnID="ProjectName" DataField="ProjectName" FieldType="String" HeaderText="项目名称" TextAlign="Left"
|
||||||
|
HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:TemplateField ColumnID="Count1" Width="120px" HeaderText="共检数量" HeaderTextAlign="Center" TextAlign="Right">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="Label2" runat="server" Text='<%# Count1(Eval("ProjectId")) %>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</f:TemplateField>
|
||||||
|
<f:TemplateField ColumnID="Count2" Width="120px" HeaderText="合格数量" HeaderTextAlign="Center" TextAlign="Right">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="Label1" runat="server" Text='<%# Count2(Eval("ProjectId")) %>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</f:TemplateField>
|
||||||
|
<f:TemplateField ColumnID="Count4" Width="120px" HeaderText="一次共检合格率(%)" HeaderTextAlign="Center" TextAlign="Right">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="Label5" runat="server" Text='<%# Count4(Eval("ProjectId")) %>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</f:TemplateField>
|
||||||
|
</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:DropDownList>
|
||||||
|
</PageItems>
|
||||||
|
</f:Grid>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
<f:Window ID="Window1" Title="详情" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
|
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
|
||||||
|
Width="1200px" Height="620px" Maximized="true">
|
||||||
|
</f:Window>
|
||||||
|
<f:Menu ID="Menu1" runat="server">
|
||||||
|
<Items>
|
||||||
|
<f:MenuButton ID="btnView" EnablePostBack="true" runat="server"
|
||||||
|
Text="查看" Icon="Find" OnClick="btnView_Click">
|
||||||
|
</f:MenuButton>
|
||||||
|
</Items>
|
||||||
|
</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 closeNow(event) {
|
||||||
|
var bConfirmed = confirm('您确定要退出吗?');
|
||||||
|
if (bConfirmed) { closePage(); }
|
||||||
|
}
|
||||||
|
|
||||||
|
function closePage() {
|
||||||
|
if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) {
|
||||||
|
window.location.href = "about:blank";
|
||||||
|
window.close();
|
||||||
|
} else {
|
||||||
|
window.opener = null;
|
||||||
|
window.open("", "_self");
|
||||||
|
window.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,234 @@
|
||||||
|
using BLL;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Data;
|
||||||
|
using System.Data.SqlClient;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.DataShow
|
||||||
|
{
|
||||||
|
public partial class InspectionManagement : PageBase
|
||||||
|
{
|
||||||
|
#region 加载页面
|
||||||
|
/// <summary>
|
||||||
|
/// 加载页面
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
Funs.DropDownPageSize(this.ddlPageSize);
|
||||||
|
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||||
|
BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
|
||||||
|
// 绑定表格t
|
||||||
|
BindGrid();
|
||||||
|
this.Panel1.Title = "质量共检数据(" + BLL.UnitService.GetUnitNameByUnitId(BLL.Const.UnitId_CWCEC) + ")";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 绑定数据
|
||||||
|
/// </summary>
|
||||||
|
private void BindGrid()
|
||||||
|
{
|
||||||
|
string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1 ";
|
||||||
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
|
string cpara = string.Empty;
|
||||||
|
if (this.drpProject.SelectedValue != Const._Null)
|
||||||
|
{
|
||||||
|
strSql += " AND projectId = @projectId"; ///状态为已完成
|
||||||
|
listStr.Add(new SqlParameter("@projectId", this.drpProject.SelectedValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
//if (!string.IsNullOrEmpty(this.txtStartTime.Text))
|
||||||
|
//{
|
||||||
|
// strSql += " AND h.RegisterDate >=@StartTime";
|
||||||
|
// listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
|
||||||
|
|
||||||
|
// cpara += " AND c.RegisterDate >=" + this.txtStartTime.Text;
|
||||||
|
//}
|
||||||
|
//if (!string.IsNullOrEmpty(this.txtEndTime.Text))
|
||||||
|
//{
|
||||||
|
// strSql += " AND h.RegisterDate <=@EndTime";
|
||||||
|
// listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text));
|
||||||
|
|
||||||
|
// cpara += " AND c.RegisterDate <=" + this.txtEndTime.Text;
|
||||||
|
//}
|
||||||
|
|
||||||
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
|
Grid1.RecordCount = tb.Rows.Count;
|
||||||
|
var table = this.GetPagedDataTable(Grid1, tb);
|
||||||
|
Grid1.DataSource = table;
|
||||||
|
Grid1.DataBind();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 查询
|
||||||
|
/// <summary>
|
||||||
|
/// 查询
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 表排序、分页、关闭窗口
|
||||||
|
/// <summary>
|
||||||
|
/// 分页
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 排序
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void 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();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 关闭弹出窗
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Grid双击事件 编辑
|
||||||
|
/// <summary>
|
||||||
|
/// Grid行双击事件
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||||
|
{
|
||||||
|
EditData();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
private void EditData()
|
||||||
|
{
|
||||||
|
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("InspectionManagementItem.aspx?projectId={0}", Grid1.SelectedRowID, "查看 - ")));
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
protected void btnView_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
EditData();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 数量
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="state"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
protected int Count1(object projectId)
|
||||||
|
{
|
||||||
|
int cout1 = 0;
|
||||||
|
if (projectId != null)
|
||||||
|
{
|
||||||
|
var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||||
|
var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||||
|
var getT = Funs.DB.ProcessControl_InspectionManagement.Where(x => x.ProjectId == projectId.ToString());
|
||||||
|
if (datetime1.HasValue)
|
||||||
|
{
|
||||||
|
getT = getT.Where(x => x.InspectionDate >= datetime1);
|
||||||
|
}
|
||||||
|
if (datetime2.HasValue)
|
||||||
|
{
|
||||||
|
getT = getT.Where(x => x.InspectionDate <= datetime2);
|
||||||
|
}
|
||||||
|
|
||||||
|
cout1 = getT.Count();
|
||||||
|
}
|
||||||
|
return cout1;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected int Count2(object projectId)
|
||||||
|
{
|
||||||
|
int cout1 = 0;
|
||||||
|
if (projectId != null)
|
||||||
|
{
|
||||||
|
var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||||
|
var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||||
|
var getT = Funs.DB.ProcessControl_InspectionManagement.Where(x => x.ProjectId == projectId.ToString() && x.IsOnceQualified == true);
|
||||||
|
if (datetime1.HasValue)
|
||||||
|
{
|
||||||
|
getT = getT.Where(x => x.InspectionDate >= datetime1);
|
||||||
|
}
|
||||||
|
if (datetime2.HasValue)
|
||||||
|
{
|
||||||
|
getT = getT.Where(x => x.InspectionDate <= datetime2);
|
||||||
|
}
|
||||||
|
|
||||||
|
cout1 = getT.Count();
|
||||||
|
}
|
||||||
|
return cout1;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected string Count4(object projectId)
|
||||||
|
{
|
||||||
|
string rate = string.Empty;
|
||||||
|
if (projectId != null)
|
||||||
|
{
|
||||||
|
var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||||
|
var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||||
|
var getALL = Funs.DB.ProcessControl_InspectionManagement.Where(x => x.ProjectId == projectId.ToString());
|
||||||
|
|
||||||
|
if (datetime1.HasValue)
|
||||||
|
{
|
||||||
|
getALL = getALL.Where(x => x.CheckDate >= datetime1);
|
||||||
|
}
|
||||||
|
if (datetime2.HasValue)
|
||||||
|
{
|
||||||
|
getALL = getALL.Where(x => x.CheckDate >= datetime1);
|
||||||
|
}
|
||||||
|
var getT = getALL.Where(x => x.ProjectId == projectId.ToString() && x.IsOnceQualified == true);
|
||||||
|
int coutall = getALL.Count();
|
||||||
|
int cout0 = getT.Count();
|
||||||
|
if (coutall > 0)
|
||||||
|
{
|
||||||
|
rate = Math.Round(cout0 * 1.0 / coutall * 100, 2).ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return rate;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,195 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.DataShow {
|
||||||
|
|
||||||
|
|
||||||
|
public partial class InspectionManagement {
|
||||||
|
|
||||||
|
/// <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>
|
||||||
|
/// drpProject 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList drpProject;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtStartTime 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker txtStartTime;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Label3 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label Label3;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtEndTime 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker txtEndTime;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnClose 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnClose;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// labNumber 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label labNumber;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Label2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label Label2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Label1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label Label1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Label5 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label Label5;
|
||||||
|
|
||||||
|
/// <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>
|
||||||
|
/// btnView 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.MenuButton btnView;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,108 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="InspectionManagementItem.aspx.cs" Inherits="FineUIPro.Web.DataShow.InspectionManagementItem" %>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head runat="server">
|
||||||
|
<link href="~/res/css/common.css" rel="stylesheet" type="text/css" />
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
<script src="~/Controls/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
|
||||||
|
<title>质量共检详细</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||||
|
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||||
|
ShowHeader="true" Layout="VBox" BoxConfigAlign="Stretch">
|
||||||
|
<Items>
|
||||||
|
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="质量共检" EnableCollapse="true"
|
||||||
|
runat="server" BoxFlex="1" DataKeyNames="InspectionId" DataIDField="InspectionId" AllowSorting="true"
|
||||||
|
SortField="NoticeCode" SortDirection="DESC" OnSort="Grid1_Sort" EnableColumnLines="true" AllowPaging="true"
|
||||||
|
IsDatabasePaging="true" PageSize="20" OnPageIndexChange="Grid1_PageIndexChange" ForceFit="true" EnableTextSelection="True">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtProject" runat="server" Label="项目" Width="500px" LabelWidth="80px" Readonly="true" LabelAlign="Right">
|
||||||
|
</f:TextBox>
|
||||||
|
<f:DatePicker ID="txtStartTime" runat="server" Label="验收日期" LabelAlign="Right"
|
||||||
|
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="80px">
|
||||||
|
</f:DatePicker>
|
||||||
|
<f:Label ID="Label3" runat="server" Text="至">
|
||||||
|
</f:Label>
|
||||||
|
<f:DatePicker ID="txtEndTime" runat="server" AutoPostBack="true" OnTextChanged="TextBox_TextChanged"
|
||||||
|
Width="130px">
|
||||||
|
</f:DatePicker>
|
||||||
|
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||||
|
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
<Columns>
|
||||||
|
<f:TemplateField ColumnID="tfPageIndex" Width="55px" HeaderText="序号" HeaderTextAlign="Center" TextAlign="Center"
|
||||||
|
EnableLock="true" Locked="False">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="lblPageIndex" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</f:TemplateField>
|
||||||
|
<f:RenderField ColumnID="UnitName3" DataField="UnitName" FieldType="String" HeaderText="施工分包商" TextAlign="Center"
|
||||||
|
HeaderTextAlign="Center" Width="260px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField ColumnID="ProfessionalName" DataField="ProfessionalName" FieldType="String" HeaderText="专业" TextAlign="Center"
|
||||||
|
HeaderTextAlign="Center" Width="110px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField ColumnID="NoticeCode" DataField="NoticeCode" FieldType="String" HeaderText="共检通知单编号" TextAlign="Center"
|
||||||
|
HeaderTextAlign="Center" Width="130px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField ColumnID="AcceptanceSite" DataField="AcceptanceSite" FieldType="String" HeaderText="验收部位" TextAlign="Center"
|
||||||
|
HeaderTextAlign="Center" Width="150px">
|
||||||
|
</f:RenderField>
|
||||||
|
<%-- <f:RenderField ColumnID="AcceptanceCheckMan" DataField="AcceptanceCheckMan" FieldType="String" HeaderText="检查人" TextAlign="Center"
|
||||||
|
HeaderTextAlign="Center" Width="120px">
|
||||||
|
</f:RenderField>--%>
|
||||||
|
<f:TemplateField ColumnID="AcceptanceCheckMan" Width="280px" HeaderText="检查人" HeaderTextAlign="Center" TextAlign="Center">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="Label1" runat="server" Text='<%# ConvertCheckMan(Eval("AcceptanceCheckMan")) %>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</f:TemplateField>
|
||||||
|
<f:RenderField ColumnID="IsOnceQualified" DataField="IsOnceQualified" FieldType="String" HeaderText="是否一次合格" TextAlign="Center"
|
||||||
|
HeaderTextAlign="Center" Width="120px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField ColumnID="InspectionCode" DataField="InspectionCode" FieldType="String" HeaderText="报检编号" TextAlign="Center"
|
||||||
|
HeaderTextAlign="Center" Width="120px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField ColumnID="InspectionDate" DataField="InspectionDate" FieldType="Date" Renderer="Date" RendererArgument="yyyy-MM-dd" HeaderText="验收日期" TextAlign="Center"
|
||||||
|
HeaderTextAlign="Center" Width="120px">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:TemplateField ColumnID="AttachFile" Width="150px" HeaderText="附件" HeaderTextAlign="Center" TextAlign="Left" >
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:LinkButton ID="lbtnFileUrl" runat="server" CssClass="ItemLink"
|
||||||
|
Text='<%# BLL.AttachFileService.GetBtnFileUrl(Eval("InspectionId")+"R") %>' ToolTip="附件查看"></asp:LinkButton>
|
||||||
|
</ItemTemplate>
|
||||||
|
</f:TemplateField>
|
||||||
|
</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:DropDownList>
|
||||||
|
</PageItems>
|
||||||
|
</f:Grid>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
</form>
|
||||||
|
<script type="text/javascript">
|
||||||
|
// 返回false,来阻止浏览器右键菜单
|
||||||
|
function onRowContextMenu(event, rowId) {
|
||||||
|
// F(menuID).show(); //showAt(event.pageX, event.pageY);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,219 @@
|
||||||
|
using Aspose.Words;
|
||||||
|
using BLL;
|
||||||
|
using Org.BouncyCastle.Asn1.Ocsp;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Data;
|
||||||
|
using System.Data.SqlClient;
|
||||||
|
using System.IO;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.DataShow
|
||||||
|
{
|
||||||
|
public partial class InspectionManagementItem : PageBase
|
||||||
|
{
|
||||||
|
#region 加载页面
|
||||||
|
/// <summary>
|
||||||
|
/// 加载页面
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
string projectId = Request.Params["projectId"];
|
||||||
|
this.txtProject.Text = ProjectService.GetProjectNameByProjectId(projectId);
|
||||||
|
Funs.DropDownPageSize(this.ddlPageSize);
|
||||||
|
btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||||
|
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||||
|
// 绑定表格t
|
||||||
|
BindGrid();
|
||||||
|
this.Panel1.Title = "质量共检数据(" + BLL.UnitService.GetUnitNameByUnitId(BLL.Const.UnitId_CWCEC) + ")";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 绑定数据
|
||||||
|
/// </summary>
|
||||||
|
private void BindGrid()
|
||||||
|
{
|
||||||
|
string strSql = @"SELECT distinct P.InspectionId,
|
||||||
|
P.ProjectId,
|
||||||
|
P.UnitId,
|
||||||
|
P.CNProfessionalId,
|
||||||
|
P.UnitWorkId,
|
||||||
|
U.UnitName,
|
||||||
|
C.ProfessionalName,
|
||||||
|
P.NoticeCode,
|
||||||
|
UnitWork.UnitWorkName,
|
||||||
|
DP.DivisionName AS Branch,
|
||||||
|
BP.BreakdownName AS ControlPointType,
|
||||||
|
BP.Class,
|
||||||
|
P.AcceptanceSite,
|
||||||
|
P.AcceptanceCheckMan,
|
||||||
|
(CASE WHEN IsOnceQualified='True' THEN '是' ELSE '否' END)AS IsOnceQualified,
|
||||||
|
P.InspectionCode,
|
||||||
|
P.InspectionDate"
|
||||||
|
+ @" FROM ProcessControl_InspectionManagementDetail AS D"
|
||||||
|
+ @" LEFT JOIN ProcessControl_InspectionManagement AS P on P.InspectionId=D.InspectionId"
|
||||||
|
+ @" LEFT JOIN Base_Unit AS U ON U.UnitId = P.UnitId"
|
||||||
|
+ @" LEFT JOIN Base_CNProfessional C ON C.CNProfessionalId = P.CNProfessionalId"
|
||||||
|
+ @" LEFT JOIN WBS_UnitWork AS UnitWork ON UnitWork.UnitWorkId = P.UnitWorkId"
|
||||||
|
+ @" LEFT JOIN WBS_DivisionProject AS DP ON DP.DivisionProjectId = P.Branch"
|
||||||
|
+ @" LEFT JOIN WBS_BreakdownProject AS BP ON BP.BreakdownProjectId = P.ControlPointType"
|
||||||
|
+ @" WHERE P.ProjectId=@ProjectId ";
|
||||||
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
|
listStr.Add(new SqlParameter("@ProjectId", Request.Params["projectId"]));
|
||||||
|
|
||||||
|
strSql += " AND (P.InspectionDate>=@startTime or @startTime='') and (P.InspectionDate<=@endTime or @endTime='') ";
|
||||||
|
listStr.Add(new SqlParameter("@startTime", !string.IsNullOrEmpty(txtStartTime.Text.Trim()) ? txtStartTime.Text.Trim() + " 00:00:00" : ""));
|
||||||
|
listStr.Add(new SqlParameter("@endTime", !string.IsNullOrEmpty(txtEndTime.Text.Trim()) ? txtEndTime.Text.Trim() + " 23:59:59" : ""));
|
||||||
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
|
Grid1.RecordCount = tb.Rows.Count;
|
||||||
|
var table = this.GetPagedDataTable(Grid1, tb);
|
||||||
|
Grid1.DataSource = table;
|
||||||
|
Grid1.DataBind();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 查询
|
||||||
|
/// <summary>
|
||||||
|
/// 查询
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 表排序、分页、关闭窗口
|
||||||
|
/// <summary>
|
||||||
|
/// 分页
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 排序
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void 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();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
protected string ConvertImageUrlByImage(object registrationId)
|
||||||
|
{
|
||||||
|
string url = string.Empty;
|
||||||
|
string httpUrl = string.Empty;
|
||||||
|
var sysSet6 = (from x in Funs.DB.Sys_Set where x.SetName == "程序访问地址" select x).ToList().FirstOrDefault();
|
||||||
|
if (sysSet6 != null)
|
||||||
|
{
|
||||||
|
httpUrl = sysSet6.SetValue;
|
||||||
|
}
|
||||||
|
if (registrationId != null)
|
||||||
|
{
|
||||||
|
IList<Model.AttachFile> sourlist = AttachFileService.GetBeforeFileList(registrationId.ToString(), BLL.Const.CheckListMenuId);
|
||||||
|
|
||||||
|
if (sourlist != null && sourlist.Count > 0)
|
||||||
|
{
|
||||||
|
string AttachUrl = "";
|
||||||
|
foreach (var item in sourlist)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(item.AttachUrl) && item.AttachUrl.ToLower().EndsWith(".jpg") || item.AttachUrl.ToLower().EndsWith(".jpeg") || item.AttachUrl.ToLower().EndsWith(".png"))
|
||||||
|
AttachUrl += item.AttachUrl.TrimEnd(',') + ",";
|
||||||
|
}
|
||||||
|
url = BLL.UploadAttachmentService.ShowImage("../", AttachUrl.TrimEnd(','));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
protected string ConvertImgUrlByImage(object registrationId)
|
||||||
|
{
|
||||||
|
string url = string.Empty;
|
||||||
|
string httpUrl = string.Empty;
|
||||||
|
var sysSet6 = (from x in Funs.DB.Sys_Set where x.SetName == "程序访问地址" select x).ToList().FirstOrDefault();
|
||||||
|
if (sysSet6 != null)
|
||||||
|
{
|
||||||
|
httpUrl = sysSet6.SetValue;
|
||||||
|
}
|
||||||
|
if (registrationId != null)
|
||||||
|
{
|
||||||
|
IList<Model.AttachFile> sourlist = AttachFileService.Getfilelist(registrationId.ToString() + "r", BLL.Const.CheckListMenuId);
|
||||||
|
|
||||||
|
if (sourlist != null && sourlist.Count > 0)
|
||||||
|
{
|
||||||
|
string AttachUrl = "";
|
||||||
|
foreach (var item in sourlist)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(item.AttachUrl) && item.AttachUrl.ToLower().EndsWith(".jpg") || item.AttachUrl.ToLower().EndsWith(".jpeg") || item.AttachUrl.ToLower().EndsWith(".png"))
|
||||||
|
AttachUrl += item.AttachUrl.TrimEnd(',') + ",";
|
||||||
|
}
|
||||||
|
url = BLL.UploadAttachmentService.ShowImage("../", AttachUrl.TrimEnd(','));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return url;
|
||||||
|
}
|
||||||
|
|
||||||
|
public string Convertstatus(Object code)
|
||||||
|
{
|
||||||
|
Model.Check_CheckControl checkControl = BLL.CheckControlService.GetCheckControl(code.ToString());
|
||||||
|
if (checkControl.State.Equals("5") || checkControl.State.Equals("6"))
|
||||||
|
{
|
||||||
|
return "未确认";
|
||||||
|
}
|
||||||
|
else if (checkControl.State == Const.CheckControl_Complete)
|
||||||
|
{ //闭环
|
||||||
|
return "已闭环";
|
||||||
|
}
|
||||||
|
//else if( checkControl.LimitDate> )
|
||||||
|
else if (Convert.ToDateTime(checkControl.LimitDate).AddDays(1) < DateTime.Now) //延期未整改
|
||||||
|
{
|
||||||
|
return "超期未整改";
|
||||||
|
|
||||||
|
}
|
||||||
|
else //期内未整改
|
||||||
|
{
|
||||||
|
return "未整改";
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 获取检查人名称
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="CarryUnitIds"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
protected string ConvertCheckMan(object CarryUnitIds)
|
||||||
|
{
|
||||||
|
var uname = BLL.UserService.getUserNamesUserIds(CarryUnitIds);
|
||||||
|
if (string.IsNullOrEmpty(uname))
|
||||||
|
{
|
||||||
|
uname = CarryUnitIds.ToString();
|
||||||
|
}
|
||||||
|
return uname;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,159 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.DataShow {
|
||||||
|
|
||||||
|
|
||||||
|
public partial class InspectionManagementItem {
|
||||||
|
|
||||||
|
/// <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>
|
||||||
|
/// txtProject 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtProject;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtStartTime 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker txtStartTime;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Label3 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label Label3;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtEndTime 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker txtEndTime;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnClose 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnClose;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblPageIndex 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label lblPageIndex;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Label1 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label Label1;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lbtnFileUrl 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.LinkButton lbtnFileUrl;
|
||||||
|
|
||||||
|
/// <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;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,121 @@
|
||||||
|
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WeldOneOK.aspx.cs" Inherits="FineUIPro.Web.DataShow.WeldOneOK" %>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head runat="server">
|
||||||
|
<link href="~/res/css/common.css" rel="stylesheet" type="text/css" />
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
|
<script src="~/Controls/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
|
||||||
|
<title>焊接一次合格率</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<form id="form1" runat="server">
|
||||||
|
<f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
|
||||||
|
<f:Panel ID="Panel1" runat="server" Margin="5px" BodyPadding="5px" ShowBorder="false"
|
||||||
|
ShowHeader="true" Layout="VBox" BoxConfigAlign="Stretch">
|
||||||
|
<Items>
|
||||||
|
<f:Grid ID="Grid1" ShowBorder="true" ShowHeader="false" Title="焊接一次合格率" EnableCollapse="true"
|
||||||
|
runat="server" BoxFlex="1" DataKeyNames="ProjectId" DataIDField="ProjectId" AllowSorting="true"
|
||||||
|
SortField="ProjectName" SortDirection="ASC" OnSort="Grid1_Sort" EnableColumnLines="true" AllowPaging="true"
|
||||||
|
IsDatabasePaging="true" PageSize="20" OnPageIndexChange="Grid1_PageIndexChange" ForceFit="true"
|
||||||
|
EnableRowDoubleClickEvent="true" OnRowDoubleClick="Grid1_RowDoubleClick" EnableTextSelection="True">
|
||||||
|
<Toolbars>
|
||||||
|
<f:Toolbar ID="Toolbar2" Position="Top" runat="server" ToolbarAlign="Left">
|
||||||
|
<Items>
|
||||||
|
<f:DropDownList ID="drpProject" runat="server" Label="项目" Width="400px" LabelWidth="80px" LabelAlign="Right"
|
||||||
|
EnableEdit="true" OnSelectedIndexChanged="TextBox_TextChanged" AutoPostBack="true">
|
||||||
|
</f:DropDownList>
|
||||||
|
<f:DatePicker ID="txtStartTime" runat="server" Label="验收日期" LabelAlign="Right"
|
||||||
|
AutoPostBack="true" OnTextChanged="TextBox_TextChanged" Width="200px" LabelWidth="80px">
|
||||||
|
</f:DatePicker>
|
||||||
|
<f:Label ID="Label3" runat="server" Text="至">
|
||||||
|
</f:Label>
|
||||||
|
<f:DatePicker ID="txtEndTime" runat="server" AutoPostBack="true" OnTextChanged="TextBox_TextChanged"
|
||||||
|
Width="130px">
|
||||||
|
</f:DatePicker>
|
||||||
|
<f:ToolbarFill runat="server"></f:ToolbarFill>
|
||||||
|
<f:Button ID="btnClose" EnablePostBack="false" ToolTip="关闭" Text="关闭" runat="server" Icon="SystemClose" OnClientClick="closeNow();">
|
||||||
|
</f:Button>
|
||||||
|
</Items>
|
||||||
|
</f:Toolbar>
|
||||||
|
</Toolbars>
|
||||||
|
<Columns>
|
||||||
|
<f:TemplateField ColumnID="tfNumber" Width="55px" HeaderText="序号" HeaderTextAlign="Center"
|
||||||
|
TextAlign="Center">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="labNumber" runat="server" Text='<%# Grid1.PageIndex * Grid1.PageSize + Container.DataItemIndex + 1 %>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</f:TemplateField>
|
||||||
|
<f:RenderField Width="150px" ColumnID="ProjectCode" DataField="ProjectCode" FieldType="String" HeaderText="项目号" TextAlign="Left"
|
||||||
|
HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:RenderField Width="350px" ColumnID="ProjectName" DataField="ProjectName" FieldType="String" HeaderText="项目名称" TextAlign="Left"
|
||||||
|
HeaderTextAlign="Center">
|
||||||
|
</f:RenderField>
|
||||||
|
<f:TemplateField ColumnID="Count1" Width="120px" HeaderText="累计拍片数量" HeaderTextAlign="Center" TextAlign="Right">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="Label2" runat="server" Text='<%# Count1(Eval("ProjectId")) %>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</f:TemplateField>
|
||||||
|
<f:TemplateField ColumnID="Count4" Width="120px" HeaderText="累计一次合格率(%)" HeaderTextAlign="Center" TextAlign="Right">
|
||||||
|
<ItemTemplate>
|
||||||
|
<asp:Label ID="Label5" runat="server" Text='<%# Count4(Eval("ProjectId")) %>'></asp:Label>
|
||||||
|
</ItemTemplate>
|
||||||
|
</f:TemplateField>
|
||||||
|
</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:DropDownList>
|
||||||
|
</PageItems>
|
||||||
|
</f:Grid>
|
||||||
|
</Items>
|
||||||
|
</f:Panel>
|
||||||
|
<f:Window ID="Window1" Title="详情" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
|
Target="Parent" EnableResize="false" runat="server" IsModal="true" OnClose="Window1_Close"
|
||||||
|
Width="1200px" Height="620px" Maximized="true">
|
||||||
|
</f:Window>
|
||||||
|
<f:Menu ID="Menu1" runat="server">
|
||||||
|
<Items>
|
||||||
|
<f:MenuButton ID="btnView" EnablePostBack="true" runat="server"
|
||||||
|
Text="查看" Icon="Find" OnClick="btnView_Click">
|
||||||
|
</f:MenuButton>
|
||||||
|
</Items>
|
||||||
|
</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 closeNow(event) {
|
||||||
|
var bConfirmed = confirm('您确定要退出吗?');
|
||||||
|
if (bConfirmed) { closePage(); }
|
||||||
|
}
|
||||||
|
|
||||||
|
function closePage() {
|
||||||
|
if (navigator.userAgent.indexOf('Firefox') !== -1 || navigator.userAgent.indexOf('Chrome') !== -1) {
|
||||||
|
window.location.href = "about:blank";
|
||||||
|
window.close();
|
||||||
|
} else {
|
||||||
|
window.opener = null;
|
||||||
|
window.open("", "_self");
|
||||||
|
window.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,234 @@
|
||||||
|
using BLL;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Data;
|
||||||
|
using System.Data.SqlClient;
|
||||||
|
using System.Linq;
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.DataShow
|
||||||
|
{
|
||||||
|
public partial class WeldOneOK : PageBase
|
||||||
|
{
|
||||||
|
#region 加载页面
|
||||||
|
/// <summary>
|
||||||
|
/// 加载页面
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Page_Load(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
if (!IsPostBack)
|
||||||
|
{
|
||||||
|
Funs.DropDownPageSize(this.ddlPageSize);
|
||||||
|
ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||||
|
BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
|
||||||
|
// 绑定表格t
|
||||||
|
BindGrid();
|
||||||
|
this.Panel1.Title = "质量共检数据(" + BLL.UnitService.GetUnitNameByUnitId(BLL.Const.UnitId_CWCEC) + ")";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 绑定数据
|
||||||
|
/// </summary>
|
||||||
|
private void BindGrid()
|
||||||
|
{
|
||||||
|
string strSql = @"select ProjectId,ProjectCode, ProjectName from Base_Project where ProjectState =1 ";
|
||||||
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
|
string cpara = string.Empty;
|
||||||
|
if (this.drpProject.SelectedValue != Const._Null)
|
||||||
|
{
|
||||||
|
strSql += " AND projectId = @projectId"; ///状态为已完成
|
||||||
|
listStr.Add(new SqlParameter("@projectId", this.drpProject.SelectedValue));
|
||||||
|
}
|
||||||
|
|
||||||
|
//if (!string.IsNullOrEmpty(this.txtStartTime.Text))
|
||||||
|
//{
|
||||||
|
// strSql += " AND h.RegisterDate >=@StartTime";
|
||||||
|
// listStr.Add(new SqlParameter("@StartTime", this.txtStartTime.Text));
|
||||||
|
|
||||||
|
// cpara += " AND c.RegisterDate >=" + this.txtStartTime.Text;
|
||||||
|
//}
|
||||||
|
//if (!string.IsNullOrEmpty(this.txtEndTime.Text))
|
||||||
|
//{
|
||||||
|
// strSql += " AND h.RegisterDate <=@EndTime";
|
||||||
|
// listStr.Add(new SqlParameter("@EndTime", this.txtEndTime.Text));
|
||||||
|
|
||||||
|
// cpara += " AND c.RegisterDate <=" + this.txtEndTime.Text;
|
||||||
|
//}
|
||||||
|
|
||||||
|
SqlParameter[] parameter = listStr.ToArray();
|
||||||
|
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||||
|
Grid1.RecordCount = tb.Rows.Count;
|
||||||
|
var table = this.GetPagedDataTable(Grid1, tb);
|
||||||
|
Grid1.DataSource = table;
|
||||||
|
Grid1.DataBind();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 查询
|
||||||
|
/// <summary>
|
||||||
|
/// 查询
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void TextBox_TextChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
this.BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region 表排序、分页、关闭窗口
|
||||||
|
/// <summary>
|
||||||
|
/// 分页
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 排序
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void 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();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 关闭弹出窗
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Window1_Close(object sender, WindowCloseEventArgs e)
|
||||||
|
{
|
||||||
|
BindGrid();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
#region Grid双击事件 编辑
|
||||||
|
/// <summary>
|
||||||
|
/// Grid行双击事件
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
|
||||||
|
{
|
||||||
|
EditData();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
private void EditData()
|
||||||
|
{
|
||||||
|
if (Grid1.SelectedRowIndexArray.Length == 0)
|
||||||
|
{
|
||||||
|
Alert.ShowInTop("请至少选择一条记录!", MessageBoxIcon.Warning);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("InspectionManagementItem.aspx?projectId={0}", Grid1.SelectedRowID, "查看 - ")));
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
protected void btnView_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
EditData();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 数量
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="state"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
protected int Count1(object projectId)
|
||||||
|
{
|
||||||
|
int cout1 = 0;
|
||||||
|
if (projectId != null)
|
||||||
|
{
|
||||||
|
var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||||
|
var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||||
|
var getT = Funs.DB.ProcessControl_InspectionManagement.Where(x => x.ProjectId == projectId.ToString());
|
||||||
|
if (datetime1.HasValue)
|
||||||
|
{
|
||||||
|
getT = getT.Where(x => x.InspectionDate >= datetime1);
|
||||||
|
}
|
||||||
|
if (datetime2.HasValue)
|
||||||
|
{
|
||||||
|
getT = getT.Where(x => x.InspectionDate <= datetime2);
|
||||||
|
}
|
||||||
|
|
||||||
|
cout1 = getT.Count();
|
||||||
|
}
|
||||||
|
return cout1;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected int Count2(object projectId)
|
||||||
|
{
|
||||||
|
int cout1 = 0;
|
||||||
|
if (projectId != null)
|
||||||
|
{
|
||||||
|
var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||||
|
var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||||
|
var getT = Funs.DB.ProcessControl_InspectionManagement.Where(x => x.ProjectId == projectId.ToString() && x.IsOnceQualified == true);
|
||||||
|
if (datetime1.HasValue)
|
||||||
|
{
|
||||||
|
getT = getT.Where(x => x.InspectionDate >= datetime1);
|
||||||
|
}
|
||||||
|
if (datetime2.HasValue)
|
||||||
|
{
|
||||||
|
getT = getT.Where(x => x.InspectionDate <= datetime2);
|
||||||
|
}
|
||||||
|
|
||||||
|
cout1 = getT.Count();
|
||||||
|
}
|
||||||
|
return cout1;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected string Count4(object projectId)
|
||||||
|
{
|
||||||
|
string rate = string.Empty;
|
||||||
|
if (projectId != null)
|
||||||
|
{
|
||||||
|
var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||||
|
var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text);
|
||||||
|
var getALL = Funs.DB.ProcessControl_InspectionManagement.Where(x => x.ProjectId == projectId.ToString());
|
||||||
|
|
||||||
|
if (datetime1.HasValue)
|
||||||
|
{
|
||||||
|
getALL = getALL.Where(x => x.CheckDate >= datetime1);
|
||||||
|
}
|
||||||
|
if (datetime2.HasValue)
|
||||||
|
{
|
||||||
|
getALL = getALL.Where(x => x.CheckDate >= datetime1);
|
||||||
|
}
|
||||||
|
var getT = getALL.Where(x => x.ProjectId == projectId.ToString() && x.IsOnceQualified == true);
|
||||||
|
int coutall = getALL.Count();
|
||||||
|
int cout0 = getT.Count();
|
||||||
|
if (coutall > 0)
|
||||||
|
{
|
||||||
|
rate = Math.Round(cout0 * 1.0 / coutall * 100, 2).ToString();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return rate;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,186 @@
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <自动生成>
|
||||||
|
// 此代码由工具生成。
|
||||||
|
//
|
||||||
|
// 对此文件的更改可能导致不正确的行为,如果
|
||||||
|
// 重新生成代码,则所做更改将丢失。
|
||||||
|
// </自动生成>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace FineUIPro.Web.DataShow {
|
||||||
|
|
||||||
|
|
||||||
|
public partial class WeldOneOK {
|
||||||
|
|
||||||
|
/// <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>
|
||||||
|
/// drpProject 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList drpProject;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtStartTime 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker txtStartTime;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Label3 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Label Label3;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtEndTime 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DatePicker txtEndTime;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnClose 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnClose;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// labNumber 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label labNumber;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Label2 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label Label2;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Label5 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label Label5;
|
||||||
|
|
||||||
|
/// <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>
|
||||||
|
/// btnView 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.MenuButton btnView;
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,215 @@
|
||||||
|
|
||||||
|
错误信息开始=====>
|
||||||
|
错误类型:SqlException
|
||||||
|
错误信息:无法绑定由多个部分组成的标识符 "chec.InspectionDate"。
|
||||||
|
无法绑定由多个部分组成的标识符 "chec.InspectionDate"。
|
||||||
|
错误堆栈:
|
||||||
|
在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
|
||||||
|
在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
|
||||||
|
在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
|
||||||
|
在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
|
||||||
|
在 System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
|
||||||
|
在 System.Data.SqlClient.SqlDataReader.get_MetaData()
|
||||||
|
在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
|
||||||
|
在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
|
||||||
|
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
|
||||||
|
在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
|
||||||
|
在 System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
|
||||||
|
在 System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
|
||||||
|
在 System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior)
|
||||||
|
在 System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior)
|
||||||
|
在 System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
|
||||||
|
在 System.Data.Common.DbDataAdapter.Fill(DataTable dataTable)
|
||||||
|
在 BLL.SQLHelper.GetDataTableRunText(String strSql, SqlParameter[] parameters) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\SQLHelper.cs:行号 311
|
||||||
|
在 FineUIPro.Web.DataShow.InspectionManagementItem.BindGrid() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\DataShow\InspectionManagementItem.aspx.cs:行号 74
|
||||||
|
在 FineUIPro.Web.DataShow.InspectionManagementItem.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\DataShow\InspectionManagementItem.aspx.cs:行号 32
|
||||||
|
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
|
||||||
|
在 System.EventHandler.Invoke(Object sender, EventArgs e)
|
||||||
|
在 System.Web.UI.Control.OnLoad(EventArgs e)
|
||||||
|
在 System.Web.UI.Control.LoadRecursive()
|
||||||
|
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||||
|
出错时间:04/17/2024 17:23:37
|
||||||
|
出错文件:http://localhost:8579/DataShow/InspectionManagementItem.aspx?projectId=32d0bca0-7693-4bd6-813d-6ee174ba29d3
|
||||||
|
IP地址:::1
|
||||||
|
操作人员:JT
|
||||||
|
|
||||||
|
出错时间:04/17/2024 17:23:37
|
||||||
|
|
||||||
|
|
||||||
|
错误信息开始=====>
|
||||||
|
错误类型:ArgumentNullException
|
||||||
|
错误信息:值不能为 null。
|
||||||
|
参数名: source
|
||||||
|
错误堆栈:
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitContains(Expression sequence, Expression value)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node)
|
||||||
|
在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations)
|
||||||
|
在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
|
||||||
|
在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression)
|
||||||
|
在 System.Linq.Queryable.Count[TSource](IQueryable`1 source)
|
||||||
|
在 FineUIPro.Web.common.main_new.getZlgj() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\common\main_new.aspx.cs:行号 544
|
||||||
|
在 FineUIPro.Web.common.main_new.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\common\main_new.aspx.cs:行号 91
|
||||||
|
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
|
||||||
|
在 System.EventHandler.Invoke(Object sender, EventArgs e)
|
||||||
|
在 System.Web.UI.Control.OnLoad(EventArgs e)
|
||||||
|
在 System.Web.UI.Control.LoadRecursive()
|
||||||
|
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||||
|
出错时间:04/18/2024 11:19:17
|
||||||
|
出错文件:http://localhost:8579/common/main_new.aspx
|
||||||
|
IP地址:::1
|
||||||
|
操作人员:JT
|
||||||
|
|
||||||
|
出错时间:04/18/2024 11:19:17
|
||||||
|
|
||||||
|
|
||||||
|
错误信息开始=====>
|
||||||
|
错误类型:ArgumentException
|
||||||
|
错误信息:提供的 URI 方案“http”无效,应为“https”。
|
||||||
|
参数名: via
|
||||||
|
错误堆栈:
|
||||||
|
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
|
||||||
|
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
|
||||||
|
在 System.ServiceModel.ClientBase`1.CreateChannel()
|
||||||
|
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
|
||||||
|
在 System.ServiceModel.ClientBase`1.get_Channel()
|
||||||
|
在 BLL.CNCECHSSEWebService.getSupervise_SubUnitReport() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2180
|
||||||
|
出错时间:04/18/2024 12:51:29
|
||||||
|
出错时间:04/18/2024 12:51:29
|
||||||
|
|
||||||
|
|
||||||
|
错误信息开始=====>
|
||||||
|
错误类型:ArgumentException
|
||||||
|
错误信息:提供的 URI 方案“http”无效,应为“https”。
|
||||||
|
参数名: via
|
||||||
|
错误堆栈:
|
||||||
|
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
|
||||||
|
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
|
||||||
|
在 System.ServiceModel.ClientBase`1.CreateChannel()
|
||||||
|
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
|
||||||
|
在 System.ServiceModel.ClientBase`1.get_Channel()
|
||||||
|
在 BLL.CNCECHSSEWebService.getCheck_CheckInfo_Table8Item() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 2045
|
||||||
|
出错时间:04/18/2024 12:51:29
|
||||||
|
出错时间:04/18/2024 12:51:29
|
||||||
|
|
||||||
|
|
||||||
|
错误信息开始=====>
|
||||||
|
错误类型:ArgumentException
|
||||||
|
错误信息:提供的 URI 方案“http”无效,应为“https”。
|
||||||
|
参数名: via
|
||||||
|
错误堆栈:
|
||||||
|
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
|
||||||
|
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
|
||||||
|
在 System.ServiceModel.ClientBase`1.CreateChannel()
|
||||||
|
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
|
||||||
|
在 System.ServiceModel.ClientBase`1.get_Channel()
|
||||||
|
在 BLL.CNCECHSSEWebService.getCheck_CheckRectify() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1941
|
||||||
|
出错时间:04/18/2024 12:51:29
|
||||||
|
出错时间:04/18/2024 12:51:29
|
||||||
|
|
||||||
|
|
||||||
|
错误信息开始=====>
|
||||||
|
错误类型:ArgumentException
|
||||||
|
错误信息:提供的 URI 方案“http”无效,应为“https”。
|
||||||
|
参数名: via
|
||||||
|
错误堆栈:
|
||||||
|
在 System.ServiceModel.Channels.TransportChannelFactory`1.ValidateScheme(Uri via)
|
||||||
|
在 System.ServiceModel.Channels.HttpChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.HttpsChannelFactory`1.ValidateCreateChannelParameters(EndpointAddress remoteAddress, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.HttpsChannelFactory`1.OnCreateChannelCore(EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.HttpChannelFactory`1.OnCreateChannel(EndpointAddress remoteAddress, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.ChannelFactoryBase`1.InternalCreateChannel(EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.ChannelFactoryBase`1.CreateChannel(EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.ServiceChannelFactory.ServiceChannelFactoryOverRequest.CreateInnerChannelBinder(EndpointAddress to, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateServiceChannel(EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.Channels.ServiceChannelFactory.CreateChannel(Type channelType, EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.ChannelFactory`1.CreateChannel(EndpointAddress address, Uri via)
|
||||||
|
在 System.ServiceModel.ChannelFactory`1.CreateChannel()
|
||||||
|
在 System.ServiceModel.ClientBase`1.CreateChannel()
|
||||||
|
在 System.ServiceModel.ClientBase`1.CreateChannelInternal()
|
||||||
|
在 System.ServiceModel.ClientBase`1.get_Channel()
|
||||||
|
在 BLL.CNCECHSSEWebService.getInformation_UrgeReport() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\BLL\WebService\CNCECHSSEWebService.cs:行号 1883
|
||||||
|
出错时间:04/18/2024 12:51:29
|
||||||
|
出错时间:04/18/2024 12:51:29
|
||||||
|
|
||||||
|
|
||||||
|
错误信息开始=====>
|
||||||
|
错误类型:ArgumentNullException
|
||||||
|
错误信息:值不能为 null。
|
||||||
|
参数名: source
|
||||||
|
错误堆栈:
|
||||||
|
在 System.Linq.Enumerable.OfType[TResult](IEnumerable source)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitContains(Expression sequence, Expression value)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitWhere(Expression sequence, LambdaExpression predicate)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitAggregate(Expression sequence, LambdaExpression lambda, SqlNodeType aggType, Type returnType)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitSequenceOperatorCall(MethodCallExpression mc)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitMethodCall(MethodCallExpression mc)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node)
|
||||||
|
在 System.Data.Linq.SqlClient.QueryConverter.ConvertOuter(Expression node)
|
||||||
|
在 System.Data.Linq.SqlClient.SqlProvider.BuildQuery(Expression query, SqlNodeAnnotations annotations)
|
||||||
|
在 System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query)
|
||||||
|
在 System.Data.Linq.DataQuery`1.System.Linq.IQueryProvider.Execute[S](Expression expression)
|
||||||
|
在 System.Linq.Queryable.Count[TSource](IQueryable`1 source)
|
||||||
|
在 FineUIPro.Web.common.main_new.getZlgj() 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\common\main_new.aspx.cs:行号 546
|
||||||
|
在 FineUIPro.Web.common.main_new.Page_Load(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\CNCEC_SUBQHSE_WUHUAN\SGGL\FineUIPro.Web\common\main_new.aspx.cs:行号 92
|
||||||
|
在 System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
|
||||||
|
在 System.EventHandler.Invoke(Object sender, EventArgs e)
|
||||||
|
在 System.Web.UI.Control.OnLoad(EventArgs e)
|
||||||
|
在 System.Web.UI.Control.LoadRecursive()
|
||||||
|
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||||
|
出错时间:04/18/2024 14:10:41
|
||||||
|
出错文件:http://localhost:8579/common/main_new.aspx
|
||||||
|
IP地址:::1
|
||||||
|
操作人员:JT
|
||||||
|
|
||||||
|
出错时间:04/18/2024 14:10:41
|
||||||
|
|
|
@ -602,6 +602,8 @@
|
||||||
<Content Include="DataShow\HJGLWelder.aspx" />
|
<Content Include="DataShow\HJGLWelder.aspx" />
|
||||||
<Content Include="DataShow\HJGLWelding.aspx" />
|
<Content Include="DataShow\HJGLWelding.aspx" />
|
||||||
<Content Include="DataShow\HJGLWeldingItem.aspx" />
|
<Content Include="DataShow\HJGLWeldingItem.aspx" />
|
||||||
|
<Content Include="DataShow\InspectionManagement.aspx" />
|
||||||
|
<Content Include="DataShow\InspectionManagementItem.aspx" />
|
||||||
<Content Include="DataShow\LargeEngineering.aspx" />
|
<Content Include="DataShow\LargeEngineering.aspx" />
|
||||||
<Content Include="DataShow\LargeEngineeringItem.aspx" />
|
<Content Include="DataShow\LargeEngineeringItem.aspx" />
|
||||||
<Content Include="DataShow\License.aspx" />
|
<Content Include="DataShow\License.aspx" />
|
||||||
|
@ -622,6 +624,7 @@
|
||||||
<Content Include="DataShow\SecurityCost.aspx" />
|
<Content Include="DataShow\SecurityCost.aspx" />
|
||||||
<Content Include="DataShow\SecurityRisk.aspx" />
|
<Content Include="DataShow\SecurityRisk.aspx" />
|
||||||
<Content Include="DataShow\SecurityRiskItem.aspx" />
|
<Content Include="DataShow\SecurityRiskItem.aspx" />
|
||||||
|
<Content Include="DataShow\WeldOneOK.aspx" />
|
||||||
<Content Include="DataShow\WorkingHours.aspx" />
|
<Content Include="DataShow\WorkingHours.aspx" />
|
||||||
<Content Include="DataShow\WorkingHoursItem.aspx" />
|
<Content Include="DataShow\WorkingHoursItem.aspx" />
|
||||||
<Content Include="DigData\HSEDataCollect.aspx" />
|
<Content Include="DigData\HSEDataCollect.aspx" />
|
||||||
|
@ -8583,6 +8586,20 @@
|
||||||
<Compile Include="DataShow\HJGLWeldingItem.aspx.designer.cs">
|
<Compile Include="DataShow\HJGLWeldingItem.aspx.designer.cs">
|
||||||
<DependentUpon>HJGLWeldingItem.aspx</DependentUpon>
|
<DependentUpon>HJGLWeldingItem.aspx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="DataShow\InspectionManagement.aspx.cs">
|
||||||
|
<DependentUpon>InspectionManagement.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="DataShow\InspectionManagement.aspx.designer.cs">
|
||||||
|
<DependentUpon>InspectionManagement.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="DataShow\InspectionManagementItem.aspx.cs">
|
||||||
|
<DependentUpon>InspectionManagementItem.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="DataShow\InspectionManagementItem.aspx.designer.cs">
|
||||||
|
<DependentUpon>InspectionManagementItem.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="DataShow\LargeEngineering.aspx.cs">
|
<Compile Include="DataShow\LargeEngineering.aspx.cs">
|
||||||
<DependentUpon>LargeEngineering.aspx</DependentUpon>
|
<DependentUpon>LargeEngineering.aspx</DependentUpon>
|
||||||
<SubType>ASPXCodeBehind</SubType>
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
@ -8723,6 +8740,13 @@
|
||||||
<Compile Include="DataShow\SecurityRiskItem.aspx.designer.cs">
|
<Compile Include="DataShow\SecurityRiskItem.aspx.designer.cs">
|
||||||
<DependentUpon>SecurityRiskItem.aspx</DependentUpon>
|
<DependentUpon>SecurityRiskItem.aspx</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
|
<Compile Include="DataShow\WeldOneOK.aspx.cs">
|
||||||
|
<DependentUpon>WeldOneOK.aspx</DependentUpon>
|
||||||
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
</Compile>
|
||||||
|
<Compile Include="DataShow\WeldOneOK.aspx.designer.cs">
|
||||||
|
<DependentUpon>WeldOneOK.aspx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
<Compile Include="DataShow\WorkingHours.aspx.cs">
|
<Compile Include="DataShow\WorkingHours.aspx.cs">
|
||||||
<DependentUpon>WorkingHours.aspx</DependentUpon>
|
<DependentUpon>WorkingHours.aspx</DependentUpon>
|
||||||
<SubType>ASPXCodeBehind</SubType>
|
<SubType>ASPXCodeBehind</SubType>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||||
<UseIISExpress>true</UseIISExpress>
|
<UseIISExpress>true</UseIISExpress>
|
||||||
<Use64BitIISExpress>false</Use64BitIISExpress>
|
<Use64BitIISExpress>false</Use64BitIISExpress>
|
||||||
<IISExpressSSLPort />
|
<IISExpressSSLPort />
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
<appSettings>
|
<appSettings>
|
||||||
<!--连接字符串-->
|
<!--连接字符串-->
|
||||||
<!--<add key="ConnectionString" value="Server=.;Database=SGGLDB_WH;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Connect Timeout=1200"/>-->
|
<!--<add key="ConnectionString" value="Server=.;Database=SGGLDB_WH;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Connect Timeout=1200"/>-->
|
||||||
<add key="ConnectionString" value="Server=.\SQL2012;Database=SGGLDB_WH;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Connect Timeout=1200"/>
|
<add key="ConnectionString" value="Server=.;Database=SGGLDB_WH;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Connect Timeout=1200"/>
|
||||||
<!--系统名称-->
|
<!--系统名称-->
|
||||||
<add key="SystemName" value="智慧施工管理信息系统V1.0"/>
|
<add key="SystemName" value="智慧施工管理信息系统V1.0"/>
|
||||||
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>
|
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>
|
||||||
|
|
|
@ -100,10 +100,10 @@
|
||||||
<div class="y_zlry_label">质量培训累计人员</div>
|
<div class="y_zlry_label">质量培训累计人员</div>
|
||||||
<div class="y_zlry_value" id="divCqmsPxNum" runat="server">0</div>
|
<div class="y_zlry_value" id="divCqmsPxNum" runat="server">0</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="y_zlmap y_row js-hover" data-type="QualityProblem">
|
<div class="y_zlmap y_row js-hover">
|
||||||
<div class="zgmap" id="zlmap"></div>
|
<div class="zgmap y_row js-hover" id="zlmap" data-type="QualityProblem"></div>
|
||||||
<div class="zgmap" id="ycmap"></div>
|
<div class="zgmap y_row js-hover" id="ycmap" data-type="InspectionManagement"></div>
|
||||||
<div class="zgmap" id="hjmap"></div>
|
<div class="zgmap y_row js-hover" id="hjmap" data-type="WeldOneOK"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -403,7 +403,12 @@
|
||||||
// $('iframe').attr('src', '../InterfacePopup/CQMS/QualityProblem.aspx') //质量问题数据
|
// $('iframe').attr('src', '../InterfacePopup/CQMS/QualityProblem.aspx') //质量问题数据
|
||||||
window.open("../DataShow/QualityProblem.aspx")
|
window.open("../DataShow/QualityProblem.aspx")
|
||||||
|
|
||||||
} else if (type == 'ManagerData') {
|
}else if (type == 'InspectionManagement') {
|
||||||
|
// $('iframe').attr('src', '../InterfacePopup/CQMS/QualityProblem.aspx') //质量共检数据
|
||||||
|
window.open("../DataShow/InspectionManagement.aspx")
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (type == 'ManagerData') {
|
||||||
// $('iframe').attr('src', '../InterfacePopup/CQMS/ManagerData.aspx') //管理人员数据
|
// $('iframe').attr('src', '../InterfacePopup/CQMS/ManagerData.aspx') //管理人员数据
|
||||||
window.open("../DataShow/QualityPerson.aspx")
|
window.open("../DataShow/QualityPerson.aspx")
|
||||||
|
|
||||||
|
|
|
@ -84,18 +84,6 @@ namespace FineUIPro.Web.common
|
||||||
select x).Count();
|
select x).Count();
|
||||||
divCqmsPxNum.InnerText = CqmsPxNum.ToString();
|
divCqmsPxNum.InnerText = CqmsPxNum.ToString();
|
||||||
|
|
||||||
//质量问题
|
|
||||||
getZlwt();
|
|
||||||
|
|
||||||
//质量共检
|
|
||||||
getZlgj();
|
|
||||||
|
|
||||||
//焊接
|
|
||||||
getHj();
|
|
||||||
|
|
||||||
//关键事项
|
|
||||||
getGjsx();
|
|
||||||
|
|
||||||
//在建项目
|
//在建项目
|
||||||
allProjects = ProjectService.GetAllProjectDropDownList();
|
allProjects = ProjectService.GetAllProjectDropDownList();
|
||||||
int acount = allProjects.Count();
|
int acount = allProjects.Count();
|
||||||
|
@ -112,6 +100,18 @@ namespace FineUIPro.Web.common
|
||||||
div_cjrsCount.InnerText = pcount2.ToString();
|
div_cjrsCount.InnerText = pcount2.ToString();
|
||||||
div_wdgcCount.InnerText = pcount3.ToString();
|
div_wdgcCount.InnerText = pcount3.ToString();
|
||||||
|
|
||||||
|
//质量问题
|
||||||
|
getZlwt();
|
||||||
|
|
||||||
|
//质量共检
|
||||||
|
getZlgj();
|
||||||
|
|
||||||
|
//焊接
|
||||||
|
getHj();
|
||||||
|
|
||||||
|
//关键事项
|
||||||
|
getGjsx();
|
||||||
|
|
||||||
//人员信息
|
//人员信息
|
||||||
getSitePerson();
|
getSitePerson();
|
||||||
|
|
||||||
|
@ -571,28 +571,14 @@ namespace FineUIPro.Web.common
|
||||||
List<double> listdata = new List<double>();
|
List<double> listdata = new List<double>();
|
||||||
double result = 0;
|
double result = 0;
|
||||||
Model.SGGLDB db = Funs.DB;
|
Model.SGGLDB db = Funs.DB;
|
||||||
var ndtLists = from x in db.HJGL_FL_NdtList select x;
|
var ndtLists = from x in db.ProcessControl_NondestructiveTest_New select x;
|
||||||
////一次检测合格焊口数
|
|
||||||
//int oneCheckJotNum = (from x in db.HJGL_Batch_NDEItem
|
|
||||||
// join y in db.HJGL_Batch_BatchTrustItem on x.TrustBatchItemId equals y.TrustBatchItemId
|
|
||||||
// join z in db.HJGL_Batch_PointBatchItem on y.PointBatchItemId equals z.PointBatchItemId
|
|
||||||
// join a in db.HJGL_Batch_NDE on x.NDEID equals a.NDEID
|
|
||||||
// where z.PointDate != null && z.PointState == "1" && y.RepairRecordId == null
|
|
||||||
// select x.NDEItemID).Count();
|
|
||||||
////一次检测返修焊口数
|
|
||||||
//int oneCheckRepairJotNum = (from x in db.HJGL_Batch_NDEItem
|
|
||||||
// join y in db.HJGL_Batch_BatchTrustItem on x.TrustBatchItemId equals y.TrustBatchItemId
|
|
||||||
// join z in db.HJGL_Batch_PointBatchItem on y.PointBatchItemId equals z.PointBatchItemId
|
|
||||||
// join a in db.HJGL_Batch_NDE on x.NDEID equals a.NDEID
|
|
||||||
// where z.PointDate != null && z.PointState == "1" && y.RepairRecordId == null && x.CheckResult == "2"
|
|
||||||
// select x.NDEItemID).Count();
|
|
||||||
if (ndtLists.Count() > 0)
|
if (ndtLists.Count() > 0)
|
||||||
{
|
{
|
||||||
decimal a = 0, b = 0;
|
decimal a = 0, b = 0;
|
||||||
foreach (var item in ndtLists)
|
foreach (var item in ndtLists)
|
||||||
{
|
{
|
||||||
a += Funs.GetNewDecimalOrZero(item.OneTimeFilmQualifiedAmount);
|
//a += Funs.GetNewDecimalOrZero(item.OneTimeFilmQualifiedAmount);
|
||||||
b += Funs.GetNewDecimalOrZero(item.OneTimeFilmAmount);
|
//b += Funs.GetNewDecimalOrZero(item.OneTimeFilmAmount);
|
||||||
}
|
}
|
||||||
if (b > 0)
|
if (b > 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -142,11 +142,11 @@
|
||||||
<div class="zl-number" style="color: #2BFAFF;"><%=getAllInspectionManagement() %></div>
|
<div class="zl-number" style="color: #2BFAFF;"><%=getAllInspectionManagement() %></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="y_image_default y_column" style="width: 2.7625rem;">
|
<div class="y_image_default y_column" style="width: 2.7625rem;">
|
||||||
<div class="zl-label">-次合格数量</div>
|
<div class="zl-label">一次合格数量</div>
|
||||||
<div class="zl-number" style="color: #FF7474;"><%=getIsOnceInspectionManagement() %></div>
|
<div class="zl-number" style="color: #FF7474;"><%=getIsOnceInspectionManagement() %></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="y_image_default y_column" style="width: 2.7625rem;">
|
<div class="y_image_default y_column" style="width: 2.7625rem;">
|
||||||
<div class="zl-label">-次验收合格率</div>
|
<div class="zl-label">一次验收合格率</div>
|
||||||
<div class="zl-number" style="color: #FFA602;"><%=GetInspectionManagementZgl() %></div>
|
<div class="zl-number" style="color: #FFA602;"><%=GetInspectionManagementZgl() %></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -57,7 +57,8 @@ namespace FineUIPro.Web.common
|
||||||
unitId = thisUnit.UnitId;
|
unitId = thisUnit.UnitId;
|
||||||
}
|
}
|
||||||
int result = (from x in Funs.DB.Person_CompanyBranchPerson
|
int result = (from x in Funs.DB.Person_CompanyBranchPerson
|
||||||
where x.IsOnJob == true && x.UnitId == unitId
|
join y in Funs.DB.Base_WorkPost on x.WorkPostId equals y.WorkPostId
|
||||||
|
where x.IsOnJob == true && x.UnitId == unitId && y.IsCQMS == true
|
||||||
select x).Count();
|
select x).Count();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -74,7 +75,8 @@ namespace FineUIPro.Web.common
|
||||||
unitId = thisUnit.UnitId;
|
unitId = thisUnit.UnitId;
|
||||||
}
|
}
|
||||||
int result = (from x in Funs.DB.Person_CompanyBranchPerson
|
int result = (from x in Funs.DB.Person_CompanyBranchPerson
|
||||||
where x.IsOnJob == true && x.UnitId != unitId
|
join y in Funs.DB.Base_WorkPost on x.WorkPostId equals y.WorkPostId
|
||||||
|
where x.IsOnJob == true && x.UnitId != unitId && y.IsCQMS == true
|
||||||
select x).Count();
|
select x).Count();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
@ -182,10 +184,12 @@ namespace FineUIPro.Web.common
|
||||||
int result = 0;
|
int result = 0;
|
||||||
;
|
;
|
||||||
//统计所给时间段的全部数量
|
//统计所给时间段的全部数量
|
||||||
List<Model.View_CQMS_InspectionManagementDetail> managementListSunNumber =
|
//List<Model.View_CQMS_InspectionManagementDetail> managementListSunNumber =
|
||||||
BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(
|
// BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(
|
||||||
null, null, DateTime.Parse("2001-01-01"), DateTime.Now, false);
|
// null, null, DateTime.Parse("2001-01-01"), DateTime.Now, false);
|
||||||
result = managementListSunNumber.Count;
|
var num1 = (from x in Funs.DB.ProcessControl_InspectionManagement
|
||||||
|
select x).Count();
|
||||||
|
result = num1;
|
||||||
//int result = (from x in Funs.DB.Check_CheckControl
|
//int result = (from x in Funs.DB.Check_CheckControl
|
||||||
// where x.CheckDate <= DateTime.Now && x.State == "7"
|
// where x.CheckDate <= DateTime.Now && x.State == "7"
|
||||||
// select x).Count();
|
// select x).Count();
|
||||||
|
@ -199,10 +203,13 @@ namespace FineUIPro.Web.common
|
||||||
{
|
{
|
||||||
int result = 0;
|
int result = 0;
|
||||||
//统计所给时间段的合格数量
|
//统计所给时间段的合格数量
|
||||||
List<Model.View_CQMS_InspectionManagementDetail> managementListOneNumber =
|
//List<Model.View_CQMS_InspectionManagementDetail> managementListOneNumber =
|
||||||
BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(
|
// BLL.InspectionManagementService.getInspectionManagementDetailListByCNProfessionalIdAndDate(
|
||||||
null, null, DateTime.Parse("2001-01-01"), DateTime.Now, true);
|
// null, null, DateTime.Parse("2001-01-01"), DateTime.Now, true);
|
||||||
result = managementListOneNumber.Count;
|
var num2 = (from x in Funs.DB.ProcessControl_InspectionManagement
|
||||||
|
where x.IsOnceQualified == true
|
||||||
|
select x).Count();
|
||||||
|
result = num2;
|
||||||
|
|
||||||
//int result = (from x in Funs.DB.Check_CheckControl
|
//int result = (from x in Funs.DB.Check_CheckControl
|
||||||
// where x.CheckDate <= DateTime.Now && x.State != "7"
|
// where x.CheckDate <= DateTime.Now && x.State != "7"
|
||||||
|
@ -422,17 +429,23 @@ namespace FineUIPro.Web.common
|
||||||
//获取专业
|
//获取专业
|
||||||
InspectionManagementZy += "'" + item.ProfessionalName + "',";
|
InspectionManagementZy += "'" + item.ProfessionalName + "',";
|
||||||
//根据专业获取总计
|
//根据专业获取总计
|
||||||
var num1 = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
//var num1 = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||||
join y in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId
|
// join y in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId
|
||||||
where y.CNProfessionalId == item.CNProfessionalId
|
// where y.CNProfessionalId == item.CNProfessionalId
|
||||||
select x).ToList().Count;
|
// select x).ToList().Count;
|
||||||
|
var num1 = (from x in Funs.DB.ProcessControl_InspectionManagement
|
||||||
|
where x.CNProfessionalId == item.CNProfessionalId
|
||||||
|
select x).Count();
|
||||||
InspectionManagementSumCount += "'"+ num1 + "',";
|
InspectionManagementSumCount += "'"+ num1 + "',";
|
||||||
|
|
||||||
//根据专业获取合格数
|
//根据专业获取合格数
|
||||||
var num2 = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
//var num2 = (from x in Funs.DB.ProcessControl_InspectionManagementDetail
|
||||||
join y in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId
|
// join y in Funs.DB.ProcessControl_InspectionManagement on x.InspectionId equals y.InspectionId
|
||||||
where y.CNProfessionalId == item.CNProfessionalId && y.IsOnceQualified==true
|
// where y.CNProfessionalId == item.CNProfessionalId && y.IsOnceQualified==true
|
||||||
select x).ToList().Count;
|
// select x).ToList().Count;
|
||||||
|
var num2 = (from x in Funs.DB.ProcessControl_InspectionManagement
|
||||||
|
where x.CNProfessionalId == item.CNProfessionalId && x.IsOnceQualified == true
|
||||||
|
select x).Count();
|
||||||
InspectionManagementOkCount += "'" + num2 + "',";
|
InspectionManagementOkCount += "'" + num2 + "',";
|
||||||
|
|
||||||
//一次验收合格率
|
//一次验收合格率
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
|
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
|
||||||
<UseIISExpress>true</UseIISExpress>
|
<UseIISExpress>true</UseIISExpress>
|
||||||
<Use64BitIISExpress />
|
<Use64BitIISExpress />
|
||||||
<IISExpressSSLPort />
|
<IISExpressSSLPort />
|
||||||
|
|
Loading…
Reference in New Issue