This commit is contained in:
gaofei 2022-02-25 10:17:00 +08:00
commit 7157212b10
13 changed files with 258 additions and 487 deletions

View File

@ -1037,7 +1037,7 @@ namespace BLL
}
#endregion
#region
#region
/// <summary>
/// 人员出入场
/// </summary>

View File

@ -69,7 +69,10 @@ namespace BLL
newWelder.IsUsed = welder.IsUsed;
newWelder.QualificationCertificateUrl = welder.QualificationCertificateUrl;
newWelder.Remark = welder.Remark;
newWelder.PhotoUrl = welder.PhotoUrl;
if (!string.IsNullOrEmpty(welder.PhotoUrl))
{
newWelder.PhotoUrl = welder.PhotoUrl;
}
newWelder.WorkPostId = welder.WorkPostId;
newWelder.Isprint = welder.Isprint;
Funs.DB.SubmitChanges();

View File

@ -462,7 +462,7 @@ namespace BLL
newPerson.Telephone = person.Telephone;
newPerson.PositionId = person.PositionId;
newPerson.PostTitleId = person.PostTitleId;
if (newPerson.PhotoUrl != person.PhotoUrl)
if (newPerson.PhotoUrl != person.PhotoUrl && !string.IsNullOrEmpty(person.PhotoUrl))
{
newPerson.PhotoUrl = person.PhotoUrl;
newPerson.ExchangeTime = null;

View File

@ -58,15 +58,16 @@ namespace BLL
{
foreach (var item in getRProjects)
{
var getSynchroSet = Funs.DB.RealName_SynchroSet.FirstOrDefault(x => x.ProCode == item.ProCode);
if (getSynchroSet != null && !string.IsNullOrEmpty(item.ProCode))
var getSynchroSet = Funs.DB.RealName_SynchroSet.FirstOrDefault(x => x.ProCode == item.JTproCode);
if (getSynchroSet != null && !string.IsNullOrEmpty(item.JTproCode))
{
SynchroSetService.PushProCollCompany(item.ProCode);
SynchroSetService.PushProCollCompany(item.JTproCode);
//SynchroSetService.PushCollTeam(item.ProCode);
//SynchroSetService.getCollTeam(item.ProCode);
SynchroSetService.PushPersons(Const.BtnAdd, item.ProCode, null);
SynchroSetService.PushPersons(Const.BtnModify, item.ProCode, null);
SynchroSetService.PushAttendance(item.ProCode);
SynchroSetService.PushPersons(Const.BtnAdd, item.JTproCode, null);
SynchroSetService.PushPersons(Const.BtnModify, item.JTproCode, null);
SynchroSetService.PushAttendance(item.JTproCode);
SynchroSetService.updatePersonsExitTime(item.JTproCode);
}
}
}

View File

@ -1103,7 +1103,7 @@ namespace BLL
join p in Funs.DB.Project_ProjectUnit on new { x.UnitId,x.ProjectId } equals new { p.UnitId,p.ProjectId }
where x.IdentityCard == identityCard && y.JTProjectCode == proCode
&& v.TeamId.HasValue && z.JTproCode != null
&& ((type ==Const.BtnAdd && x.HeadImage != null && x.HeadImage.Length > 0) || (type == Const.BtnModify && x.RealNameAddTime.HasValue))
&& ((type ==Const.BtnAdd && x.HeadImage != null && x.HeadImage.Length > 0) || type == Const.BtnModify)
&& p.UnitType != Const.ProjectUnitType_3 && p.UnitType != Const.ProjectUnitType_4
select new
{
@ -1170,7 +1170,7 @@ namespace BLL
code = obj["code"].ToString();
sucess = obj["success"].ToString();
data = obj["data"].ToString();
if (obj["success"] != null && Convert.ToBoolean(obj["success"].ToString()))
if (obj["success"] != null && Convert.ToBoolean(obj["success"].ToString()) && code == "200")
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
@ -1189,8 +1189,45 @@ namespace BLL
}
}
}
else
{
if (data.Contains("历史项目进退场时间重合") || data.Contains("已推送"))
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
foreach (var item in getData)
{
var getPerson = db.SitePerson_Person.FirstOrDefault(x => x.PersonId == item.PersonId);
if (getPerson != null)
{
if (!getPerson.RealNameAddTime.HasValue)
{
getPerson.RealNameAddTime = DateTime.Now;
}
if (type == Const.BtnModify)
{
getPerson.RealNameUpdateTime = DateTime.Now;
}
db.SubmitChanges();
}
}
}
}
else if (data.Contains("人员不存在"))
{
SynchroSetService.PushPersonsByIdentityCard(Const.BtnAdd, proCode, identityCard);
}
else
{
InsertRealNamePushLog(null, proCode, "推送人员数据", sucess, code, mess, data, pushContent);
}
}
}
InsertRealNamePushLog(null, proCode, "推送人员数据", sucess, code, mess, data, pushContent);
else
{
InsertRealNamePushLog(null, proCode, "推送人员数据", sucess, code, mess, data, pushContent);
}
if (data.Contains("已存在") || mess.Contains("已存在"))
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
@ -1226,6 +1263,106 @@ namespace BLL
return "";
}
}
/// <summary>
/// 推送人员数据
/// </summary>
/// <returns></returns>
public static string updatePersonsExitTime(string proCode)
{
try
{
string mess = string.Empty;
string sucess = string.Empty;
string code = string.Empty;
string data = string.Empty;
string pushContent = string.Empty;
string contenttype = "application/json;charset=unicode";
int okcount = 0;
var getData = (from x in Funs.DB.SitePerson_Person
join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId
join z in Funs.DB.RealName_Project on y.JTProjectCode equals z.ProCode
where y.JTProjectCode == proCode && x.OutTime.HasValue
&& !x.RealNameUpdateTime.HasValue
&& x.RealNameAddTime.HasValue
select new
{
idcardNumber = x.IdentityCard,
proCode=z.JTproCode,
entryTime = x.InTime.HasValue ? string.Format("{0:yyyy-MM-dd}", x.InTime) : null,
exitTime = x.OutTime.HasValue ? string.Format("{0:yyyy-MM-dd}", x.OutTime) : null,
x.RealNameAddTime,
x.RealNameUpdateTime,
name = x.PersonName,
x.PersonId,
});
if (getData.Count() > 0)
{
foreach (var itemData in getData)
{
string returndata = string.Empty;
Hashtable newToken = new Hashtable
{
{ "token", getaccess_token(proCode) }
};
var getItemList = getData.Where(x => x.idcardNumber == itemData.idcardNumber).ToList();
var addlistObject = new
{
list = getItemList.Select(x => new { x.idcardNumber, x.proCode, x.entryTime, x.exitTime, x.name })
};
pushContent = JsonConvert.SerializeObject(addlistObject);
returndata = BLL.APIGetHttpService.OutsideHttp(Funs.RealNameApiUrl + "/foreignApi/accept/updatePersonsExitTime", "POST", contenttype, newToken, pushContent);
if (!string.IsNullOrEmpty(returndata))
{
JObject obj = JObject.Parse(returndata);
mess = obj["message"].ToString();
code = obj["code"].ToString();
sucess = obj["success"].ToString();
data = obj["data"].ToString();
if (obj["success"] != null && Convert.ToBoolean(obj["success"].ToString()))
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
var getPerson = db.SitePerson_Person.FirstOrDefault(x => x.PersonId == itemData.PersonId);
if (getPerson != null)
{
if (!getPerson.RealNameAddTime.HasValue)
{
getPerson.RealNameAddTime = DateTime.Now;
}
getPerson.RealNameUpdateTime = DateTime.Now;
db.SubmitChanges();
}
}
okcount++;
}
else
{
mess += itemData.name + "退场失败";
}
}
if (okcount > 0)
{
mess += "退场成功人数"+okcount.ToString();
}
InsertRealNamePushLog(null, proCode, "推送更新离岗人员", sucess, code, mess, data, pushContent);
}
}
else
{
mess = "没有符合条件的数据!";
}
return mess;
}
catch (Exception ex)
{
ErrLogInfo.WriteLog(ex, "推送未更新离岗人员", "SynchroSetService.updatePersonsExitTime");
return "推送人员异常";
}
}
#endregion
#region

View File

@ -1,465 +0,0 @@
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 41
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.WorkloadStatisticsService.GetTreeDataTable(String projectId, DateTime months, String startDate, String cnProfessionId, String unitProjectCode, String wbsSetCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\WorkloadStatisticsService.cs:行号 207
在 FineUIPro.Web.JDGL.WBS.WorkloadStatistics.btnSearch_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\WorkloadStatistics.aspx.cs:行号 87
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:01/06/2022 16:31:14
出错文件:http://localhost:8118/JDGL/WBS/WorkloadStatistics.aspx
IP地址:::1
操作人员:JT
出错时间:01/06/2022 16:31:14
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 41
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.WorkloadStatisticsService.GetTreeDataTable(String projectId, DateTime months, String startDate, String cnProfessionId, String unitProjectCode, String wbsSetCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\WorkloadStatisticsService.cs:行号 207
在 FineUIPro.Web.JDGL.WBS.WorkloadStatistics.btnSearch_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\WorkloadStatistics.aspx.cs:行号 87
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:01/06/2022 16:35:57
出错文件:http://localhost:8118/JDGL/WBS/WorkloadStatistics.aspx
IP地址:::1
操作人员:JT
出错时间:01/06/2022 16:35:57
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 41
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.WorkloadStatisticsService.GetTreeDataTable(String projectId, DateTime months, String startDate, String cnProfessionId, String unitProjectCode, String wbsSetCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\WorkloadStatisticsService.cs:行号 207
在 FineUIPro.Web.JDGL.WBS.WorkloadStatistics.btnSearch_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\WorkloadStatistics.aspx.cs:行号 87
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:01/06/2022 16:36:52
出错文件:http://localhost:8118/JDGL/WBS/WorkloadStatistics.aspx
IP地址:::1
操作人员:JT
出错时间:01/06/2022 16:36:52
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 41
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.WorkloadStatisticsService.GetTreeDataTable(String projectId, DateTime months, String startDate, String cnProfessionId, String unitProjectCode, String wbsSetCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\WorkloadStatisticsService.cs:行号 207
在 FineUIPro.Web.JDGL.WBS.WorkloadStatistics.btnSearch_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\WorkloadStatistics.aspx.cs:行号 87
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:01/06/2022 16:39:23
出错文件:http://localhost:8118/JDGL/WBS/WorkloadStatistics.aspx
IP地址:::1
操作人员:JT
出错时间:01/06/2022 16:39:24
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 41
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.CnProfessionService.GetCnProfessionIdByInstallationIdAndOldId(String installationId, String oldId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CnProfessionService.cs:行号 46
在 BLL.WorkloadStatisticsService.GetTreeDataTable(String projectId, DateTime months, String startDate, String cnProfessionId, String unitProjectCode, String wbsSetCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\WorkloadStatisticsService.cs:行号 207
在 FineUIPro.Web.JDGL.WBS.WorkloadStatistics.btnSearch_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\WorkloadStatistics.aspx.cs:行号 87
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:01/06/2022 16:40:00
出错文件:http://localhost:8118/JDGL/WBS/WorkloadStatistics.aspx
IP地址:::1
操作人员:JT
出错时间:01/06/2022 16:40:00
错误信息开始=====>
错误类型:ChangeConflictException
错误信息:找不到行或行已更改。
错误堆栈:
在 System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode)
在 System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode)
在 System.Data.Linq.DataContext.SubmitChanges()
在 BLL.CostControlService.UpdateCostControl(WBS_CostControl costControl) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\CostControlService.cs:行号 89
在 FineUIPro.Web.JDGL.WBS.WBSSetAudit.btnSave_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\WBSSetAudit.aspx.cs:行号 1419
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:01/06/2022 16:45:21
出错文件:http://localhost:8118/JDGL/WBS/WBSSetAudit.aspx
IP地址:::1
操作人员:JT
出错时间:01/06/2022 16:45:21
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 120
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.UnitProjectService.GetUnitProjectIdByInstallationIdAndCNCodeAndUnitProjectCode(String installationId, String cnCode, String unitProjectCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\UnitProjectService.cs:行号 86
在 BLL.WorkloadStatisticsService.GetTreeDataTable(String projectId, DateTime months, String startDate, String cnProfessionId, String unitProjectCode, String wbsSetCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\WorkloadStatisticsService.cs:行号 546
在 FineUIPro.Web.JDGL.WBS.WorkloadStatistics.btnSearch_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\WorkloadStatistics.aspx.cs:行号 87
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:01/07/2022 10:31:27
出错文件:http://localhost:8118/JDGL/WBS/WorkloadStatistics.aspx
IP地址:::1
操作人员:JT
出错时间:01/07/2022 10:31:27
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 120
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.UnitProjectService.GetUnitProjectIdByInstallationIdAndCNCodeAndUnitProjectCode(String installationId, String cnCode, String unitProjectCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\UnitProjectService.cs:行号 86
在 BLL.WorkloadStatisticsService.GetTreeDataTable(String projectId, DateTime months, String startDate, String cnProfessionId, String unitProjectCode, String wbsSetCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\WorkloadStatisticsService.cs:行号 546
在 FineUIPro.Web.JDGL.WBS.WorkloadStatistics.btnSearch_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\WorkloadStatistics.aspx.cs:行号 87
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:01/07/2022 10:31:34
出错文件:http://localhost:8118/JDGL/WBS/WorkloadStatistics.aspx
IP地址:::1
操作人员:JT
出错时间:01/07/2022 10:31:34
错误信息开始=====>
错误类型:SqlException
错误信息:执行超时已过期。完成操作之前已超时或服务器未响应。
错误堆栈:
在 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.ExecuteReader()
在 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
在 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
在 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)
在 BLL.GetDataService.CorrectingPersonInOutNumber(String projectId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\OpenService\GetDataService.cs:行号 139
在 BLL.MonitorService.DoSynchData() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\OpenService\MonitorService.cs:行号 2180
在 BLL.MonitorService.ColligateFormConfirmProcessEve(Object sender, ElapsedEventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\OpenService\MonitorService.cs:行号 112
----错误类型:Win32Exception
----错误信息:
----等待的操作过时。
----错误堆栈:
出错时间:01/07/2022 10:43:01
出错时间:01/07/2022 10:43:01
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 System.Data.Linq.SqlClient.QueryConverter.VisitInvocation(InvocationExpression invoke)
在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node)
在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp)
在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b)
在 System.Data.Linq.SqlClient.QueryConverter.VisitInner(Expression node)
在 System.Data.Linq.SqlClient.QueryConverter.VisitExpression(Expression exp)
在 System.Data.Linq.SqlClient.QueryConverter.VisitBinary(BinaryExpression b)
在 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.VisitSelect(Expression sequence, LambdaExpression selector)
在 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.Collections.Generic.IEnumerable<T>.GetEnumerator()
在 System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
在 System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
在 BLL.UnitProjectService.GetUnitProjectIdByInstallationIdAndCNCodeAndUnitProjectCode(String installationId, String cnCode, String unitProjectCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\UnitProjectService.cs:行号 86
在 BLL.UnitProjectService.GetUnitProjectIdByInstallationIdAndCNCodeAndUnitProjectCode(String installationId, String cnCode, String unitProjectCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\UnitProjectService.cs:行号 93
在 BLL.UnitProjectService.GetUnitProjectIdByInstallationIdAndCNCodeAndUnitProjectCode(String installationId, String cnCode, String unitProjectCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\UnitProjectService.cs:行号 93
在 BLL.UnitProjectService.GetUnitProjectIdByInstallationIdAndCNCodeAndUnitProjectCode(String installationId, String cnCode, String unitProjectCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\UnitProjectService.cs:行号 93
在 BLL.UnitProjectService.GetUnitProjectIdByInstallationIdAndCNCodeAndUnitProjectCode(String installationId, String cnCode, String unitProjectCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\UnitProjectService.cs:行号 93
在 BLL.WorkloadStatisticsService.GetTreeDataTable(String projectId, DateTime months, String startDate, String cnProfessionId, String unitProjectCode, String wbsSetCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\WorkloadStatisticsService.cs:行号 546
在 FineUIPro.Web.JDGL.WBS.WorkloadStatistics.btnSearch_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\WorkloadStatistics.aspx.cs:行号 87
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:01/07/2022 11:05:16
出错文件:http://localhost:8118/JDGL/WBS/WorkloadStatistics.aspx
IP地址:::1
操作人员:JT
出错时间:01/07/2022 11:05:16
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 120
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.Project_InstallationService.GetEndInstallationId(String installationId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\ProjectData\Project_InstallationService.cs:行号 126
在 BLL.WbsSetService.GetWbsSetIdByInstallationIdAndCNCodeAndUnitProjectCodeAndWbsSetCode(String installationId, String cnCode, String unitProjectCode, String wbsSetCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\WbsSetService.cs:行号 356
在 BLL.WorkloadStatisticsService.GetTreeDataTable(String projectId, DateTime months, String startDate, String cnProfessionId, String unitProjectCode, String wbsSetCode) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\JDGL\WBS\WorkloadStatisticsService.cs:行号 913
在 FineUIPro.Web.JDGL.WBS.WorkloadStatistics.btnSearch_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\JDGL\WBS\WorkloadStatistics.aspx.cs:行号 87
在 FineUIPro.Button.OnClick(EventArgs e)
在 (Button , EventArgs )
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
出错时间:01/07/2022 11:18:53
出错文件:http://localhost:8118/JDGL/WBS/WorkloadStatistics.aspx
IP地址:::1
操作人员:JT
出错时间:01/07/2022 11:18:54
错误信息开始=====>
错误类型:SqlException
错误信息:执行超时已过期。完成操作之前已超时或服务器未响应。
错误堆栈:
在 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.ExecuteReader()
在 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
在 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
在 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)
在 BLL.GetDataService.CorrectingPersonInOutNumber(String projectId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\OpenService\GetDataService.cs:行号 139
在 BLL.MonitorService.DoSynchData() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\OpenService\MonitorService.cs:行号 2180
在 BLL.MonitorService.ColligateFormConfirmProcessEve(Object sender, ElapsedEventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\OpenService\MonitorService.cs:行号 112
----错误类型:Win32Exception
----错误信息:
----等待的操作过时。
----错误堆栈:
出错时间:01/07/2022 11:21:52
出错时间:01/07/2022 11:21:52
错误信息开始=====>
错误类型:SqlException
错误信息:执行超时已过期。完成操作之前已超时或服务器未响应。
错误堆栈:
在 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.ExecuteReader()
在 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
在 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
在 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)
在 BLL.GetDataService.CorrectingPersonInOutNumber(String projectId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\OpenService\GetDataService.cs:行号 139
在 BLL.MonitorService.DoSynchData() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\OpenService\MonitorService.cs:行号 2180
在 BLL.MonitorService.ColligateFormConfirmProcessEve(Object sender, ElapsedEventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\OpenService\MonitorService.cs:行号 112
----错误类型:Win32Exception
----错误信息:
----等待的操作过时。
----错误堆栈:
出错时间:01/07/2022 11:26:34
出错时间:01/07/2022 11:26:34
错误信息开始=====>
错误类型:SqlException
错误信息:执行超时已过期。完成操作之前已超时或服务器未响应。
错误堆栈:
在 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.TdsParserStateObject.ReadSniError(TdsParserStateObject stateObj, UInt32 error)
在 System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync()
在 System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket()
在 System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer()
在 System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value)
在 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.ExecuteReader()
在 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
在 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
在 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)
在 BLL.PersonInOutService.DeletePersonInOutByPersonId(String personId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\HSSE\SitePerson\PersonInOutService.cs:行号 114
在 BLL.PersonService.DeletePerson(String personId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\HSSE\SitePerson\PersonService.cs:行号 604
在 FineUIPro.Web.HSSE.SitePerson.PersonList.DeleteData() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\HSSE\SitePerson\PersonList.aspx.cs:行号 364
在 FineUIPro.Web.HSSE.SitePerson.PersonList.btnMenuDelete_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\HSSE\SitePerson\PersonList.aspx.cs:行号 343
在 FineUIPro.MenuButton.OnClick(EventArgs e)
在 (MenuButton , EventArgs )
在 FineUIPro.MenuButton.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
----错误类型:Win32Exception
----错误信息:
----等待的操作过时。
----错误堆栈:
出错时间:01/10/2022 10:46:47
出错文件:http://localhost:8118/HSSE/SitePerson/PersonList.aspx
IP地址:::1
操作人员:JT
出错时间:01/10/2022 10:46:47
错误信息开始=====>
错误类型:SqlException
错误信息:执行超时已过期。完成操作之前已超时或服务器未响应。
错误堆栈:
在 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.ExecuteReader()
在 System.Data.Linq.SqlClient.SqlProvider.Execute(Expression query, QueryInfo queryInfo, IObjectReaderFactory factory, Object[] parentArgs, Object[] userArgs, ICompiledSubQuery[] subQueries, Object lastResult)
在 System.Data.Linq.SqlClient.SqlProvider.ExecuteAll(Expression query, QueryInfo[] queryInfos, IObjectReaderFactory factory, Object[] userArguments, ICompiledSubQuery[] subQueries)
在 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)
在 BLL.PersonInOutService.DeletePersonInOutByPersonId(String personId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\HSSE\SitePerson\PersonInOutService.cs:行号 114
在 BLL.PersonService.DeletePerson(String personId) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\BLL\HSSE\SitePerson\PersonService.cs:行号 604
在 FineUIPro.Web.HSSE.SitePerson.PersonList.DeleteData() 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\HSSE\SitePerson\PersonList.aspx.cs:行号 364
在 FineUIPro.Web.HSSE.SitePerson.PersonList.btnMenuDelete_Click(Object sender, EventArgs e) 位置 E:\工作\五环施工平台\SGGL_CWCEC\SGGL\FineUIPro.Web\HSSE\SitePerson\PersonList.aspx.cs:行号 343
在 FineUIPro.MenuButton.OnClick(EventArgs e)
在 (MenuButton , EventArgs )
在 FineUIPro.MenuButton.RaisePostBackEvent(String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
----错误类型:Win32Exception
----错误信息:
----等待的操作过时。
----错误堆栈:
出错时间:01/10/2022 10:47:58
出错文件:http://localhost:8118/HSSE/SitePerson/PersonList.aspx
IP地址:::1
操作人员:JT
出错时间:01/10/2022 10:47:59

View File

@ -31,6 +31,7 @@
</f:DatePicker>
<f:DatePicker ID="txtEndDate" runat="server" Label="结束日期" LabelWidth="80px" Width="220px">
</f:DatePicker>
<f:TextBox runat="server" ID="txtConet" EmptyText="请输入查询条件" Width="220px"></f:TextBox>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnSearch" runat="server" Icon="SystemSearch" ToolTip="查询" OnClick="btnSearch_Click">
</f:Button>

View File

@ -57,6 +57,11 @@ namespace FineUIPro.Web.ZHGL.RealName
strSql += " AND PushTime < @EndDate";
listStr.Add(new SqlParameter("@EndDate", Funs.GetNewDateTime(this.txtEndDate.Text).Value.AddDays(1)));
}
if (!string.IsNullOrEmpty(this.txtConet.Text))
{
strSql += " AND (Success LIKE @name OR Message LIKE @name OR ReturnData LIKE @name)";
listStr.Add(new SqlParameter("@name", "%" + this.txtConet.Text.Trim() + "%"));
}
SqlParameter[] parameter = listStr.ToArray();
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
Grid1.RecordCount = tb.Rows.Count;

View File

@ -75,6 +75,15 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// </remarks>
protected global::FineUIPro.DatePicker txtEndDate;
/// <summary>
/// txtConet 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.TextBox txtConet;
/// <summary>
/// btnSearch 控件。
/// </summary>

View File

@ -90,6 +90,12 @@
<Items>
<f:Label runat="server" ID="lbxx"></f:Label>
<f:ToolbarFill runat="server"></f:ToolbarFill>
<f:Button ID="btnCanelUpdate" Icon="DatabaseAdd" runat="server" Text="清空更新状态" ToolTip="批量清空人员更新状态"
OnClick="btnCanelUpdate_Click">
</f:Button>
<f:Button ID="btnupdatePersonsExitTime" Icon="DatabaseAdd" runat="server" Text="批量退场人员" ToolTip="批量推送所有退场人员"
OnClick="btnupdatePersonsExitTime_Click">
</f:Button>
<f:Button ID="btnAllPushData" Icon="DatabaseAdd" runat="server" Text="上报所有人员" ToolTip="单条循环推送(500条)"
OnClick="btnAllPushData_Click">
</f:Button>

View File

@ -262,8 +262,8 @@ namespace FineUIPro.Web.ZHGL.RealName
if (!string.IsNullOrEmpty(idText))
{
string proCode = ProjectService.GetJTProjectCodeByProjectId(this.drpProject.SelectedValue);
var getRProjects = Funs.DB.RealName_Project.FirstOrDefault(x => x.ProCode == proCode);
if (getRProjects != null && !string.IsNullOrEmpty(getRProjects.ProCode))
var getRProjects = Funs.DB.RealName_Project.FirstOrDefault(x => x.JTproCode == proCode);
if (getRProjects != null && !string.IsNullOrEmpty(getRProjects.JTproCode))
{
var getList = returnCardList();
if (getList != null && getList.Count > 0)
@ -418,8 +418,8 @@ namespace FineUIPro.Web.ZHGL.RealName
int count = 0;
string projectId = this.drpProject.SelectedValue;
string proCode = ProjectService.GetJTProjectCodeByProjectId(projectId);
var getRProjects = Funs.DB.RealName_Project.FirstOrDefault(x => x.ProCode == proCode);
if (getRProjects != null && !string.IsNullOrEmpty(getRProjects.ProCode))
var getRProjects = Funs.DB.RealName_Project.FirstOrDefault(x => x.JTproCode == proCode);
if (getRProjects != null && !string.IsNullOrEmpty(getRProjects.JTproCode))
{
var getIdentityCards = (from x in Funs.DB.SitePerson_Person
join v in Funs.DB.ProjectData_TeamGroup on x.TeamGroupId equals v.TeamGroupId
@ -444,7 +444,12 @@ namespace FineUIPro.Web.ZHGL.RealName
}
}
SynchroSetService.InsertRealNamePushLog(projectId, proCode, "单条批量推送(新增)", "完成", null, message, null, null);
string meshow = "新增成功!";
if (message.Contains("失败"))
{
meshow = "存在新增失败数据!";
}
SynchroSetService.InsertRealNamePushLog(projectId, proCode, "批量单条推送(新增)", "完成", null, meshow, null, null);
if (string.IsNullOrEmpty(message))
{
ShowNotify("同步完成!" + count.ToString() + "条", MessageBoxIcon.Success);
@ -465,14 +470,14 @@ namespace FineUIPro.Web.ZHGL.RealName
int count = 0;
string projectId = this.drpProject.SelectedValue;
string proCode = ProjectService.GetJTProjectCodeByProjectId(projectId);
var getRProjects = Funs.DB.RealName_Project.FirstOrDefault(x => x.ProCode == proCode);
if (getRProjects != null && !string.IsNullOrEmpty(getRProjects.ProCode))
var getRProjects = Funs.DB.RealName_Project.FirstOrDefault(x => x.JTproCode == proCode);
if (getRProjects != null && !string.IsNullOrEmpty(getRProjects.JTproCode))
{
var getIdentityCards = (from x in Funs.DB.SitePerson_Person
join v in Funs.DB.ProjectData_TeamGroup on x.TeamGroupId equals v.TeamGroupId
join p in Funs.DB.Project_ProjectUnit on new { x.UnitId, x.ProjectId } equals new { p.UnitId, p.ProjectId }
where x.ProjectId == projectId && x.IsCardNoOK == true && v.TeamId.HasValue
&& !x.RealNameUpdateTime.HasValue && x.RealNameAddTime.HasValue
&& !x.RealNameUpdateTime.HasValue
&& p.UnitType != Const.ProjectUnitType_3 && p.UnitType != Const.ProjectUnitType_4
select x.IdentityCard).Take(100);
foreach (var item in getIdentityCards)
@ -488,8 +493,12 @@ namespace FineUIPro.Web.ZHGL.RealName
}
}
}
SynchroSetService.InsertRealNamePushLog(projectId, proCode, "单条批量推送(更新)", "完成", null, message, null, null);
string meshow = "更新成功!";
if (message.Contains("失败"))
{
meshow = "存在更新失败数据!";
}
SynchroSetService.InsertRealNamePushLog(projectId, proCode, "批量单条推送(更新)", "完成", null, meshow, null, null);
if (string.IsNullOrEmpty(message))
{
ShowNotify("同步完成!" + count.ToString() + "条", MessageBoxIcon.Success);
@ -500,5 +509,52 @@ namespace FineUIPro.Web.ZHGL.RealName
}
}
#endregion
protected void btnupdatePersonsExitTime_Click(object sender, EventArgs e)
{
string message = string.Empty;
string projectId = this.drpProject.SelectedValue;
string proCode = ProjectService.GetJTProjectCodeByProjectId(projectId);
var getRProjects = Funs.DB.RealName_Project.FirstOrDefault(x => x.JTproCode == proCode);
if (getRProjects != null && !string.IsNullOrEmpty(getRProjects.JTproCode))
{
message= SynchroSetService.updatePersonsExitTime(getRProjects.JTproCode);
}
if (string.IsNullOrEmpty(message))
{
ShowNotify("同步完成!" + message, MessageBoxIcon.Warning);
}
else
{
Alert.ShowInParent("同步完成!" + message, MessageBoxIcon.Warning);
}
}
/// <summary>
/// 一键清理更新状态
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnCanelUpdate_Click(object sender, EventArgs e)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
var getPersons = from x in db.SitePerson_Person
where x.ProjectId == this.drpProject.SelectedValue && x.RealNameUpdateTime != null
select x;
int count = getPersons.Count();
if (count > 0)
{
foreach (var item in getPersons)
{
item.RealNameUpdateTime = null;
db.SubmitChanges();
}
}
ShowNotify("操作完成!" + count.ToString() + "条", MessageBoxIcon.Success);
}
}
}
}

View File

@ -219,6 +219,24 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// </remarks>
protected global::FineUIPro.Label lbxx;
/// <summary>
/// btnCanelUpdate 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnCanelUpdate;
/// <summary>
/// btnupdatePersonsExitTime 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnupdatePersonsExitTime;
/// <summary>
/// btnAllPushData 控件。
/// </summary>