20240419 NCR、图纸收发导入

This commit is contained in:
毕文静 2024-04-19 15:34:10 +08:00
parent 9b5866fabd
commit 44580d9acb
9 changed files with 191 additions and 320 deletions

View File

@ -590,5 +590,24 @@ namespace BLL
} }
return name; return name;
} }
public static string GetUnitWorkIdsByUnitWorkNames(string projectId,string unitWorks)
{
if (!string.IsNullOrEmpty(unitWorks))
{
string[] ins = unitWorks.Split(',');
string unitIds = string.Empty;
foreach (string s in ins)
{
var q = GetUnitWorkByUnitWorkName(projectId, s.Trim()).UnitWorkId;
unitIds += q + ",";
}
return unitIds.Substring(0, unitIds.LastIndexOf(','));
}
else
{
return string.Empty;
}
}
} }
} }

View File

@ -671,10 +671,10 @@ namespace BLL
string unitIds = string.Empty; string unitIds = string.Empty;
foreach (string s in ins) foreach (string s in ins)
{ {
var q = BLL.UnitService.getUnitByUnitName(s); var q = getUnitByUnitName(s.Trim());
unitIds = unitIds + q.UnitId + ","; unitIds += q.UnitId + ",";
} }
return unitIds.Substring(0, unitIds.Length - 1); return unitIds.Substring(0, unitIds.LastIndexOf(","));
} }
else else
{ {

View File

@ -126,7 +126,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
oleDBConn.Close(); oleDBConn.Close();
oleDBConn.Dispose(); oleDBConn.Dispose();
AddDatasetToSQL(ds.Tables[0], 11); AddDatasetToSQL(ds.Tables[0], 12);
hdCheckResult.Text = "1"; hdCheckResult.Text = "1";
} }
catch (Exception exc) catch (Exception exc)
@ -173,6 +173,11 @@ namespace FineUIPro.Web.CQMS.Comprehensive
var cns = from x in Funs.DB.Base_CNProfessional select x; var cns = from x in Funs.DB.Base_CNProfessional select x;
var unitWorks = from x in Funs.DB.WBS_UnitWork
where x.ProjectId == this.CurrUser.LoginProjectId
&& x.SuperUnitWork == null
select x;
for (int i = 0; i < ir; i++) for (int i = 0; i < ir; i++)
{ {
string row0 = pds.Rows[i][0].ToString(); string row0 = pds.Rows[i][0].ToString();
@ -196,35 +201,23 @@ namespace FineUIPro.Web.CQMS.Comprehensive
} }
string row2 = pds.Rows[i][2].ToString(); string row2 = pds.Rows[i][2].ToString();
if (string.IsNullOrEmpty(row2)) if (!string.IsNullOrEmpty(row2))
{ {
result += (i + 2).ToString() + "," + "图纸内容" + "," + "此项为必填项!" + "|"; string[] reunit = row2.Split(',');
foreach (string unitWork in reunit)
{
var u = unitWorks.Where(x => x.UnitWorkName == unitWork.Trim()).FirstOrDefault();
if (u == null)
{
result += (i + 2).ToString() + "," + "单位工程名称" + "," + "[" + unitWork.Trim() + "]不存在!" + "|";
} }
string row4 = pds.Rows[i][4].ToString();
if (!string.IsNullOrEmpty(row4))
{
try
{
Int32 date = Convert.ToInt32(row4.Trim());
}
catch (Exception)
{
result += (i + 2).ToString() + "," + "页数" + "," + "[" + row4 + "]错误!" + "|";
} }
} }
string row5 = pds.Rows[i][5].ToString(); string row5 = pds.Rows[i][5].ToString();
if (!string.IsNullOrEmpty(row5)) if (string.IsNullOrEmpty(row5))
{ {
try result += (i + 2).ToString() + "," + "标识编号" + "," + "此项为必填项!" + "|";
{
DateTime date = Convert.ToDateTime(row5.Trim());
}
catch (Exception)
{
result += (i + 2).ToString() + "," + "接收日期" + "," + "[" + row5 + "]错误!" + "|";
}
} }
string row6 = pds.Rows[i][6].ToString(); string row6 = pds.Rows[i][6].ToString();
@ -232,38 +225,53 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{ {
try try
{ {
DateTime date = Convert.ToDateTime(row6.Trim()); Int32 date = Convert.ToInt32(row6.Trim());
} }
catch (Exception) catch (Exception)
{ {
result += (i + 2).ToString() + "," + "发送日期" + "," + "[" + row6 + "]错误!" + "|"; result += (i + 2).ToString() + "," + "页数" + "," + "[" + row6 + "]错误!" + "|";
} }
} }
string row7 = pds.Rows[i][7].ToString(); string row7 = pds.Rows[i][7].ToString();
if (!string.IsNullOrEmpty(row7)) if (!string.IsNullOrEmpty(row7))
{ {
string[] reunit = row7.Split(','); try
foreach (string unit in reunit)
{ {
var u = units.Where(x => x.UnitName == unit).FirstOrDefault(); DateTime date = Convert.ToDateTime(row7.Trim());
if (u == null)
{
result += (i + 2).ToString() + "," + "接收单位" + "," + "[" + unit + "]不存在!" + "|";
} }
catch (Exception)
{
result += (i + 2).ToString() + "," + "接收日期" + "," + "[" + row7 + "]错误!" + "|";
} }
} }
string row10 = pds.Rows[i][10].ToString(); string row8 = pds.Rows[i][8].ToString();
if (string.IsNullOrEmpty(row10)) if (!string.IsNullOrEmpty(row8))
{ {
result += (i + 2).ToString() + "," + "标识编号" + "," + "此项为必填项!" + "|"; try
{
DateTime date = Convert.ToDateTime(row8.Trim());
}
catch (Exception)
{
result += (i + 2).ToString() + "," + "发送日期" + "," + "[" + row8 + "]错误!" + "|";
}
}
string row9 = pds.Rows[i][9].ToString();
if (!string.IsNullOrEmpty(row9))
{
string[] reunit = row9.Split(',');
foreach (string unit in reunit)
{
var u = units.Where(x => x.UnitName == unit.Trim()).FirstOrDefault();
if (u == null)
{
result += (i + 2).ToString() + "," + "接收单位" + "," + "[" + unit.Trim() + "]不存在!" + "|";
}
}
} }
//}
//else
//{
// result += (i + 2).ToString() + "," + "报验编号" + "," + "该单位报验编号已存在!" + "|";
//}
} }
if (!string.IsNullOrEmpty(result)) if (!string.IsNullOrEmpty(result))
{ {
@ -369,7 +377,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
oleDBConn.Close(); oleDBConn.Close();
oleDBConn.Dispose(); oleDBConn.Dispose();
AddDatasetToSQL2(ds.Tables[0], 11); AddDatasetToSQL2(ds.Tables[0], 12);
} }
catch (Exception ex) catch (Exception ex)
{ {
@ -408,72 +416,84 @@ namespace FineUIPro.Web.CQMS.Comprehensive
var cns = from x in Funs.DB.Base_CNProfessional select x; var cns = from x in Funs.DB.Base_CNProfessional select x;
var unitWorks = from x in Funs.DB.WBS_UnitWork
where x.ProjectId == this.CurrUser.LoginProjectId
&& x.SuperUnitWork == null
select x;
for (int i = 0; i < ir; i++) for (int i = 0; i < ir; i++)
{ {
Model.Comprehensive_DesignDrawings oldViewInfo = new Model.Comprehensive_DesignDrawings(); Model.Comprehensive_DesignDrawings oldViewInfo = new Model.Comprehensive_DesignDrawings();
string row0 = pds.Rows[i][0].ToString().Trim(); string row0 = pds.Rows[i][0].ToString().Trim();
var cn = cns.Where(y => y.ProfessionalName == row0).FirstOrDefault(); var cn = cns.Where(y => y.ProfessionalName == row0).FirstOrDefault();
oldViewInfo = oldViewInfos.Where(x => x.RemarkCode == pds.Rows[i][10].ToString().Trim() oldViewInfo = oldViewInfos.Where(x => x.RemarkCode == pds.Rows[i][5].ToString().Trim()
).FirstOrDefault(); ).FirstOrDefault();
if (oldViewInfo == null) if (oldViewInfo == null)
{ {
Model.Comprehensive_DesignDrawings des = new Model.Comprehensive_DesignDrawings(); Model.Comprehensive_DesignDrawings des = new Model.Comprehensive_DesignDrawings();
des.DesignDrawingsId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DesignDrawings)); des.DesignDrawingsId = SQLHelper.GetNewID(typeof(Model.Comprehensive_DesignDrawings));
des.ProjectId = this.CurrUser.LoginProjectId; des.ProjectId = this.CurrUser.LoginProjectId;
des.CNProfessionalId = cn.CNProfessionalId; des.CNProfessionalId = cn.CNProfessionalId;//专业名称
des.DesignDrawingsCode = pds.Rows[i][1].ToString().Trim(); des.DesignDrawingsCode = pds.Rows[i][1].ToString().Trim();//图纸编号
des.DesignDrawingsContent = pds.Rows[i][2].ToString().Trim(); if (!string.IsNullOrEmpty(pds.Rows[i][2].ToString().Trim()))//单位工程
des.Edition = pds.Rows[i][3].ToString().Trim();
if (!string.IsNullOrEmpty(pds.Rows[i][4].ToString().Trim()))
{ {
des.PageNumber = Convert.ToInt32(pds.Rows[i][4].ToString().Trim()); des.UnitWorkId = BLL.UnitWorkService.GetUnitWorkIdsByUnitWorkNames(this.CurrUser.LoginProjectId, pds.Rows[i][2].ToString().Trim());
}
if (!string.IsNullOrEmpty(pds.Rows[i][5].ToString().Trim()))
{
des.ReceiveDate = Convert.ToDateTime(pds.Rows[i][5].ToString().Trim());
} }
des.DesignDrawingsContent = pds.Rows[i][3].ToString().Trim();//图纸内容
des.Edition = pds.Rows[i][4].ToString().Trim();//版次
des.RemarkCode = pds.Rows[i][5].ToString().Trim();//标志编号
if (!string.IsNullOrEmpty(pds.Rows[i][6].ToString().Trim())) if (!string.IsNullOrEmpty(pds.Rows[i][6].ToString().Trim()))
{ {
des.SendDate = Convert.ToDateTime(pds.Rows[i][6].ToString().Trim()); des.PageNumber = Convert.ToInt32(pds.Rows[i][6].ToString().Trim());//页数
} }
if (!string.IsNullOrEmpty(pds.Rows[i][7].ToString().Trim())) if (!string.IsNullOrEmpty(pds.Rows[i][7].ToString().Trim()))
{ {
des.ReceiveUnits = UnitService.GetUnitIds(pds.Rows[i][7].ToString().Trim()); des.ReceiveDate = Convert.ToDateTime(pds.Rows[i][7].ToString().Trim());//接收日期
} }
des.ReceiveMan = pds.Rows[i][8].ToString().Trim(); if (!string.IsNullOrEmpty(pds.Rows[i][8].ToString().Trim()))
des.Remark = pds.Rows[i][9].ToString().Trim(); {
des.RemarkCode = pds.Rows[i][10].ToString().Trim(); des.SendDate = Convert.ToDateTime(pds.Rows[i][8].ToString().Trim());//发送日期
}
if (!string.IsNullOrEmpty(pds.Rows[i][9].ToString().Trim()))
{
des.ReceiveUnits = UnitService.GetUnitIds(pds.Rows[i][9].ToString().Trim());//接收单位
}
des.ReceiveMan = pds.Rows[i][10].ToString().Trim(); //接收人
des.Remark = pds.Rows[i][11].ToString().Trim();//备注
BLL.DesignDrawingsService.AddDesignDrawings(des); BLL.DesignDrawingsService.AddDesignDrawings(des);
} }
else else
{ {
oldViewInfo.CNProfessionalId = cn.CNProfessionalId; oldViewInfo.CNProfessionalId = cn.CNProfessionalId;//专业名称
oldViewInfo.DesignDrawingsCode = pds.Rows[i][1].ToString().Trim(); oldViewInfo.DesignDrawingsCode = pds.Rows[i][1].ToString().Trim();//图纸编号
oldViewInfo.DesignDrawingsContent = pds.Rows[i][2].ToString().Trim(); if (!string.IsNullOrEmpty(pds.Rows[i][2].ToString().Trim()))//单位工程
oldViewInfo.Edition = pds.Rows[i][3].ToString().Trim();
if (!string.IsNullOrEmpty(pds.Rows[i][4].ToString().Trim()))
{ {
oldViewInfo.PageNumber = Convert.ToInt32(pds.Rows[i][4].ToString().Trim()); oldViewInfo.UnitWorkId = BLL.UnitWorkService.GetUnitWorkIdsByUnitWorkNames(this.CurrUser.LoginProjectId, pds.Rows[i][2].ToString().Trim());
}
if (!string.IsNullOrEmpty(pds.Rows[i][5].ToString().Trim()))
{
oldViewInfo.ReceiveDate = Convert.ToDateTime(pds.Rows[i][5].ToString().Trim());
} }
oldViewInfo.DesignDrawingsContent = pds.Rows[i][3].ToString().Trim();//图纸内容
oldViewInfo.Edition = pds.Rows[i][4].ToString().Trim();//版次
oldViewInfo.RemarkCode = pds.Rows[i][5].ToString().Trim();//标志编号
if (!string.IsNullOrEmpty(pds.Rows[i][6].ToString().Trim())) if (!string.IsNullOrEmpty(pds.Rows[i][6].ToString().Trim()))
{ {
oldViewInfo.SendDate = Convert.ToDateTime(pds.Rows[i][6].ToString().Trim()); oldViewInfo.PageNumber = Convert.ToInt32(pds.Rows[i][6].ToString().Trim());//页数
} }
if (!string.IsNullOrEmpty(pds.Rows[i][7].ToString().Trim())) if (!string.IsNullOrEmpty(pds.Rows[i][7].ToString().Trim()))
{ {
oldViewInfo.ReceiveUnits = Funs.DB.Base_Unit.FirstOrDefault(x => x.UnitName == (pds.Rows[i][7].ToString().Trim())).UnitId; oldViewInfo.ReceiveDate = Convert.ToDateTime(pds.Rows[i][7].ToString().Trim());//接收日期
} }
oldViewInfo.ReceiveMan = pds.Rows[i][8].ToString().Trim(); if (!string.IsNullOrEmpty(pds.Rows[i][8].ToString().Trim()))
oldViewInfo.Remark = pds.Rows[i][9].ToString().Trim(); {
oldViewInfo.RemarkCode = pds.Rows[i][10].ToString().Trim(); oldViewInfo.SendDate = Convert.ToDateTime(pds.Rows[i][8].ToString().Trim());//发送日期
}
if (!string.IsNullOrEmpty(pds.Rows[i][9].ToString().Trim()))
{
oldViewInfo.ReceiveUnits = UnitService.GetUnitIds(pds.Rows[i][9].ToString().Trim());//接收单位
}
oldViewInfo.ReceiveMan = pds.Rows[i][10].ToString().Trim(); //接收人
oldViewInfo.Remark = pds.Rows[i][11].ToString().Trim();//备注
BLL.DesignDrawingsService.UpdateDesignDrawings(oldViewInfo); BLL.DesignDrawingsService.UpdateDesignDrawings(oldViewInfo);
} }
} }
} }
else else
{ {
@ -484,7 +504,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive
#endregion #endregion
#endregion #endregion
#region #region
/// <summary> /// <summary>
/// 下载模板按钮 /// 下载模板按钮

View File

@ -126,7 +126,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
oleDBConn.Close(); oleDBConn.Close();
oleDBConn.Dispose(); oleDBConn.Dispose();
AddDatasetToSQL(ds.Tables[0], 10); AddDatasetToSQL(ds.Tables[0], 13);
hdCheckResult.Text = "1"; hdCheckResult.Text = "1";
} }
catch (Exception exc) catch (Exception exc)
@ -173,6 +173,11 @@ namespace FineUIPro.Web.CQMS.Comprehensive
var cns = from x in Funs.DB.Base_CNProfessional select x; var cns = from x in Funs.DB.Base_CNProfessional select x;
var unitWorks = from x in Funs.DB.WBS_UnitWork
where x.ProjectId == this.CurrUser.LoginProjectId
&& x.SuperUnitWork == null
select x;
for (int i = 0; i < ir; i++) for (int i = 0; i < ir; i++)
{ {
string row0 = pds.Rows[i][0].ToString(); string row0 = pds.Rows[i][0].ToString();
@ -225,40 +230,72 @@ namespace FineUIPro.Web.CQMS.Comprehensive
string row5 = pds.Rows[i][5].ToString(); string row5 = pds.Rows[i][5].ToString();
if (!string.IsNullOrEmpty(row5)) if (!string.IsNullOrEmpty(row5))
{ {
string[] reunit = row5.Split(','); if (row5 != "过程监督不到位" && row5 != "质量缺陷" && row5 != "质量管理问题" && row5 != "不按设计要求施工" && row5 != "不按程序施工" && row5 != "成品保护不到位")
foreach (string unit in reunit)
{ {
var u = units.Where(x => x.UnitName == unit).FirstOrDefault(); result += (i + 2).ToString() + "," + "问题类别" + "," + "[" + row5 + "]错误!" + "|";
if (u == null)
{
result += (i + 2).ToString() + "," + "接收单位" + "," + "[" + unit + "]不存在!" + "|";
}
} }
} }
string row7 = pds.Rows[i][7].ToString(); string row7 = pds.Rows[i][7].ToString();
if (!string.IsNullOrEmpty(row7)) if (!string.IsNullOrEmpty(row7))
{ {
try string[] reunit = row7.Split(',');
foreach (string unitWork in reunit)
{ {
DateTime date = Convert.ToDateTime(row7.Trim()); var u = unitWorks.Where(x => x.UnitWorkName == unitWork.Trim()).FirstOrDefault();
if (u == null)
{
result += (i + 2).ToString() + "," + "单位工程名称" + "," + "[" + unitWork.Trim() + "]不存在!" + "|";
} }
catch (Exception)
{
result += (i + 2).ToString() + "," + "要求封闭日期" + "," + "[" + row7 + "]错误!" + "|";
} }
} }
string row8 = pds.Rows[i][8].ToString(); string row8 = pds.Rows[i][8].ToString();
if (!string.IsNullOrEmpty(row8)) if (!string.IsNullOrEmpty(row8))
{
string[] reunit = row8.Split(',');
foreach (string unit in reunit)
{
var u = units.Where(x => x.UnitName == unit.Trim()).FirstOrDefault();
if (u == null)
{
result += (i + 2).ToString() + "," + "接收单位" + "," + "[" + unit.Trim() + "]不存在!" + "|";
}
}
}
string row9 = pds.Rows[i][9].ToString().Trim();
if (!string.IsNullOrEmpty(row9))
{
if (row9 != "整改中" && row9 != "已闭合")
{
result += (i + 2).ToString() + "," + "实施状态" + "," + "[" + row9 + "]错误!" + "|";
}
}
string row11 = pds.Rows[i][11].ToString();
if (!string.IsNullOrEmpty(row11))
{ {
try try
{ {
DateTime date = Convert.ToDateTime(row8.Trim()); DateTime date = Convert.ToDateTime(row11.Trim());
} }
catch (Exception) catch (Exception)
{ {
result += (i + 2).ToString() + "," + "完成日期" + "," + "[" + row8 + "]错误!" + "|"; result += (i + 2).ToString() + "," + "要求封闭日期" + "," + "[" + row11 + "]错误!" + "|";
}
}
string row12 = pds.Rows[i][12].ToString();
if (!string.IsNullOrEmpty(row12))
{
try
{
DateTime date = Convert.ToDateTime(row12.Trim());
}
catch (Exception)
{
result += (i + 2).ToString() + "," + "完成日期" + "," + "[" + row12 + "]错误!" + "|";
} }
} }
} }
@ -366,7 +403,7 @@ namespace FineUIPro.Web.CQMS.Comprehensive
oleDBConn.Close(); oleDBConn.Close();
oleDBConn.Dispose(); oleDBConn.Dispose();
AddDatasetToSQL2(ds.Tables[0], 10); AddDatasetToSQL2(ds.Tables[0], 13);
} }
catch (Exception ex) catch (Exception ex)
{ {
@ -405,6 +442,11 @@ namespace FineUIPro.Web.CQMS.Comprehensive
var cns = from x in Funs.DB.Base_CNProfessional select x; var cns = from x in Funs.DB.Base_CNProfessional select x;
var unitWorks = from x in Funs.DB.WBS_UnitWork
where x.ProjectId == this.CurrUser.LoginProjectId
&& x.SuperUnitWork == null
select x;
for (int i = 0; i < ir; i++) for (int i = 0; i < ir; i++)
{ {
Model.Comprehensive_NCRManagement oldViewInfo = new Model.Comprehensive_NCRManagement(); Model.Comprehensive_NCRManagement oldViewInfo = new Model.Comprehensive_NCRManagement();
@ -426,20 +468,27 @@ namespace FineUIPro.Web.CQMS.Comprehensive
{ {
des.IssuedDate = Convert.ToDateTime(pds.Rows[i][4].ToString().Trim()); des.IssuedDate = Convert.ToDateTime(pds.Rows[i][4].ToString().Trim());
} }
if (!string.IsNullOrEmpty(pds.Rows[i][5].ToString().Trim())) des.Problem = pds.Rows[i][5].ToString().Trim();
{ des.Measure = pds.Rows[i][6].ToString().Trim();
des.ReceiveUnit = BLL.UnitService.GetUnitIds(pds.Rows[i][5].ToString().Trim());
}
des.ImplementationFrontState = pds.Rows[i][6].ToString().Trim();
if (!string.IsNullOrEmpty(pds.Rows[i][7].ToString().Trim())) if (!string.IsNullOrEmpty(pds.Rows[i][7].ToString().Trim()))
{ {
des.ClosedDate = Convert.ToDateTime(pds.Rows[i][7].ToString().Trim()); des.UnitWorkId = BLL.UnitWorkService.GetUnitWorkIdsByUnitWorkNames(this.CurrUser.LoginProjectId, pds.Rows[i][7].ToString().Trim());
} }
if (!string.IsNullOrEmpty(pds.Rows[i][8].ToString().Trim())) if (!string.IsNullOrEmpty(pds.Rows[i][8].ToString().Trim()))
{ {
des.CompleteDate = Convert.ToDateTime(pds.Rows[i][8].ToString().Trim()); des.ReceiveUnit = BLL.UnitService.GetUnitIds(pds.Rows[i][8].ToString().Trim());
}
des.ImplementationFrontState = pds.Rows[i][9].ToString().Trim();
des.ResponsibleMan = pds.Rows[i][10].ToString().Trim();
if (!string.IsNullOrEmpty(pds.Rows[i][11].ToString().Trim()))
{
des.ClosedDate = Convert.ToDateTime(pds.Rows[i][11].ToString().Trim());
}
if (!string.IsNullOrEmpty(pds.Rows[i][12].ToString().Trim()))
{
des.CompleteDate = Convert.ToDateTime(pds.Rows[i][12].ToString().Trim());
} }
des.ResponsibleMan = pds.Rows[i][9].ToString().Trim();
BLL.NCRManagementService.AddNCRManagement(des); BLL.NCRManagementService.AddNCRManagement(des);
} }
} }
@ -454,7 +503,6 @@ namespace FineUIPro.Web.CQMS.Comprehensive
#endregion #endregion
#endregion #endregion
#region #region
/// <summary> /// <summary>
/// 下载模板按钮 /// 下载模板按钮

View File

@ -35,7 +35,7 @@
<f:FormRow> <f:FormRow>
<Items> <Items>
<f:DropDownList ID="ddlProblem" runat="server" Label="问题类别" Required="true" LabelAlign="Right" LabelWidth="130px"> <f:DropDownList ID="ddlProblem" runat="server" Label="问题类别" LabelAlign="Right" LabelWidth="130px">
<f:ListItem Value="" Text="-请选择-" Selected="true" /> <f:ListItem Value="" Text="-请选择-" Selected="true" />
<f:ListItem Value="过程监督不到位" Text="过程监督不到位" /> <f:ListItem Value="过程监督不到位" Text="过程监督不到位" />
<f:ListItem Value="质量缺陷" Text="质量缺陷" /> <f:ListItem Value="质量缺陷" Text="质量缺陷" />

View File

@ -1,215 +0,0 @@
错误信息开始=====>
错误类型: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

View File

@ -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=.;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="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/;"/>