20210819单位人员考勤未知人员查询方法修改

This commit is contained in:
2021-08-19 18:33:20 +08:00
parent 33835b762e
commit 04202b8c1c
10 changed files with 119 additions and 80 deletions
@@ -115,11 +115,12 @@ namespace FineUIPro.Web.Door
/// </summary>
private void GetPersonStatistic()
{
string strSql = @"SELECT NewID,ProjectId,InstallationName,UnitId,UnitName,EmployNO,EmployName,RecordDate
,IDCardNo,Nation,PostName,WorkIn1,OffDuty1,WorkIn2,OffDuty2,WorkIn3,OffDuty3,ManHours
,DepartmentID,DepartName,NationName,PostId,ManOverHours
FROM dbo.t_d_EmployInOutRecord
WHERE ProjectId = @ProjectId ";
string strSql = @"SELECT NewID,T.ProjectId,T.InstallationName,T.UnitId,T.UnitName,T.EmployNO,T.EmployName,T.RecordDate
,T.IDCardNo,T.Nation,T.PostName,T.WorkIn1,T.OffDuty1,T.WorkIn2,T.OffDuty2,T.WorkIn3,T.OffDuty3,T.ManHours
,T.DepartmentID,T.DepartName,T.NationName,T.PostId,T.ManOverHours
FROM dbo.t_d_EmployInOutRecord T
LEFT JOIN dbo.SitePerson_Person AS P ON T.ProjectId=P.ProjectId AND T.IDCardNo=P.IdentityCard
WHERE T.ProjectId = @ProjectId ";
List<SqlParameter> listStr = new List<SqlParameter>
{
new SqlParameter("@ProjectId", this.ProjectId),
@@ -127,8 +128,7 @@ namespace FineUIPro.Web.Door
if (this.UnitName == "未知")
{
strSql += " AND (UnitName IS NULL OR UnitName='')";
listStr.Add(new SqlParameter("@UnitName", this.UnitName));
strSql += " AND P.UnitId IS NULL";
}
else
{
@@ -137,8 +137,7 @@ namespace FineUIPro.Web.Door
}
if (this.PostName == "未知")
{
strSql += " AND (PostName IS NULL OR PostName='')";
listStr.Add(new SqlParameter("@PostName", this.UnitName));
strSql += " AND P.WorkPostId IS NULL ";
}
else
{
+1 -64
View File
@@ -1,64 +1 @@
错误信息开始=====>
错误类型:HttpException
错误信息:文件“/ZHGL/RealName/LeavePost.aspx”不存在。
错误堆栈:
在 System.Web.UI.Util.CheckVirtualFileExists(VirtualPath virtualPath)
在 System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
在 System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound, Boolean ensureIsUpToDate)
在 System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean throwIfNotFound)
在 System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp)
在 System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
在 System.Web.UI.PageHandlerFactory.GetHandler(HttpContext context, String requestType, String virtualPath, String path)
在 System.Web.HttpApplication.MaterializeHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
出错时间:08/16/2021 14:45:33
出错文件:http://localhost:8118/ZHGL/RealName/LeavePost.aspx
IP地址:::1
出错时间:08/16/2021 14:45:33
错误信息开始=====>
错误类型:NullReferenceException
错误信息:未将对象引用设置到对象的实例。
错误堆栈:
在 System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
在 FineUIPro.ResourceHelper.GetResourceContentAsBinary(String resName, String resVersion)
在 FineUIPro.ResourceHandler.ProcessRequest(HttpContext context)
在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
在 System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
出错时间:08/16/2021 16:29:05
出错文件:http://localhost:8118/res.axd?font=lib.iconfont.iconfont.woff&t=636947851460000000
IP地址:::1
出错时间:08/16/2021 16:29:05
错误信息开始=====>
错误类型:HttpParseException
错误信息:类型“FineUIPro.CheckBox”不具有名为“OnSelectedIndexChanged”的公共属性。
错误堆栈:
在 System.Web.UI.TemplateParser.ProcessException(Exception ex)
在 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
在 System.Web.UI.TemplateParser.ParseString(String text, VirtualPath virtualPath, Encoding fileEncoding)
----错误类型:HttpException
----错误信息:
----类型“FineUIPro.CheckBox”不具有名为“OnSelectedIndexChanged”的公共属性。
----错误堆栈:
在 System.Web.UI.ControlBuilder.AddProperty(String filter, String name, String value, Boolean mainDirectiveMode)
在 System.Web.UI.ControlBuilder.PreprocessAttribute(String filter, String attribname, String attribvalue, Boolean mainDirectiveMode, Int32 line, Int32 column)
在 System.Web.UI.ControlBuilder.PreprocessAttributes(ParsedAttributeCollection attribs)
在 System.Web.UI.ControlBuilder.Init(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs)
在 System.Web.UI.ControlBuilder.CreateBuilderFromType(TemplateParser parser, ControlBuilder parentBuilder, Type type, String tagName, String id, IDictionary attribs, Int32 line, String sourceFileName)
在 System.Web.UI.ControlBuilder.CreateChildBuilder(String filter, String tagName, IDictionary attribs, TemplateParser parser, ControlBuilder parentBuilder, String id, Int32 line, VirtualPath virtualPath, Type& childType, Boolean defaultProperty)
在 System.Web.UI.TemplateParser.ProcessBeginTag(Match match, String inputText)
在 System.Web.UI.TemplateParser.ParseStringInternal(String text, Encoding fileEncoding)
出错时间:08/17/2021 10:54:26
出错文件:http://localhost:8118/HSSE/SitePerson/PersonList.aspx
IP地址:::1
出错时间:08/17/2021 10:54:26

@@ -63,8 +63,8 @@ namespace FineUIPro.Web.HSSE.SitePerson
this.drpUnit.SelectedValue = this.CurrUser.UnitId;
this.drpUnit.Enabled = false;
}
this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now.AddMonths(-1));
this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now.AddDays(1));
this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now.AddDays(-1));
this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now.AddMinutes(1));
// 绑定表格
BindGrid();
}
@@ -246,9 +246,11 @@ namespace FineUIPro.Web.HSSE.SitePerson
string[] personIds = this.drpPersonId.Value.Split(',');
foreach (var item in personIds)
{
Model.SitePerson_Checking personInfo = new Model.SitePerson_Checking();
personInfo.ProjectId = this.ProjectId;
personInfo.PersonId = item.Trim();
Model.SitePerson_Checking personInfo = new Model.SitePerson_Checking
{
ProjectId = this.ProjectId,
PersonId = item.Trim()
};
var person = BLL.PersonService.GetPersonById(personInfo.PersonId);
if (person != null)
{