Merge branch 'master' of https://gitee.com/frane-yang/SGGL_SeDin_New
This commit is contained in:
commit
0fda5ad389
|
|
@ -184,6 +184,16 @@ namespace BLL
|
|||
return;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 为目标下拉框加上选择内容
|
||||
/// </summary>
|
||||
/// <param name="DLL">目标下拉框</param>
|
||||
public static void FineUIPleaseSelectNull(FineUIPro.DropDownList DDL, string text)
|
||||
{
|
||||
DDL.Items.Insert(0, new FineUIPro.ListItem(text, null));
|
||||
return;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 为目标下拉框加上 "重新编制" 项
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -128,7 +128,7 @@ namespace BLL
|
|||
db.SubmitChanges();
|
||||
|
||||
////在岗
|
||||
if (sitePerson.States == Const.ProjectPersonStates_1)
|
||||
if (sitePerson.States == Const.ProjectPersonStates_1 )
|
||||
{
|
||||
Model.SitePerson_PersonItem newPersonItem = new Model.SitePerson_PersonItem
|
||||
{
|
||||
|
|
@ -157,6 +157,7 @@ namespace BLL
|
|||
db.SubmitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
getPersons.CurrentProjectId = sitePerson.ProjectId;
|
||||
getPersons.CurrentProjectRoleId = sitePerson.RoleIds;
|
||||
getPersons.CurrentProjectWorkPostId = sitePerson.WorkPostId;
|
||||
|
|
|
|||
|
|
@ -1,426 +0,0 @@
|
|||
|
||||
错误信息开始=====>
|
||||
错误类型:HttpCompileException
|
||||
错误信息:e:\SEDIN\SGGL_SeDin_New\SGGL\FineUIPro.Web\Person\CompanyPerson.aspx(41): error CS1061: “ASP.person_companyperson_aspx”不包含“ckIsTemp_CheckedChanged”的定义,并且找不到可接受类型为“ASP.person_companyperson_aspx”的第一个参数的扩展方法“ckIsTemp_CheckedChanged”(是否缺少 using 指令或程序集引用?)
|
||||
错误堆栈:
|
||||
在 System.Web.Compilation.BuildManager.CompileWebFile(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)
|
||||
出错时间:10/18/2022 11:00:45
|
||||
出错文件:http://localhost:8008/Person/CompanyPerson.aspx
|
||||
IP地址:::1
|
||||
|
||||
出错时间:10/18/2022 11:00:45
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:NullReferenceException
|
||||
错误信息:未将对象引用设置到对象的实例。
|
||||
错误堆栈:
|
||||
在 FineUIPro.Web.Person.PersonLib.GetButtonPower() 位置 E:\SEDIN\SGGL_SeDin_New\SGGL\FineUIPro.Web\Person\PersonLib.aspx.cs:行号 78
|
||||
在 FineUIPro.Web.Person.PersonLib.Page_Load(Object sender, EventArgs e) 位置 E:\SEDIN\SGGL_SeDin_New\SGGL\FineUIPro.Web\Person\PersonLib.aspx.cs:行号 21
|
||||
在 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)
|
||||
出错时间:10/18/2022 14:37:17
|
||||
出错文件:http://localhost:8008/Person/PersonLib.aspx?vsedit=true
|
||||
IP地址:::1
|
||||
|
||||
出错时间:10/18/2022 14:37:17
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:HttpException
|
||||
错误信息:文件“/Person/ShuntList.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)
|
||||
出错时间:10/18/2022 15:41:53
|
||||
出错文件:http://localhost:8008/Person/ShuntList.aspx
|
||||
IP地址:::1
|
||||
|
||||
出错时间:10/18/2022 15:41:53
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:EvaluateException
|
||||
错误信息:未找到列 [材料编码]。
|
||||
错误堆栈:
|
||||
在 System.Data.NameNode.Bind(DataTable table, List`1 list)
|
||||
在 System.Data.BinaryNode.Bind(DataTable table, List`1 list)
|
||||
在 System.Data.BinaryNode.Bind(DataTable table, List`1 list)
|
||||
在 System.Data.BinaryNode.Bind(DataTable table, List`1 list)
|
||||
在 System.Data.DataExpression.Bind(DataTable table)
|
||||
在 System.Data.DataExpression..ctor(DataTable table, String expression, Type type)
|
||||
在 System.Data.DataTable.Select(String filterExpression)
|
||||
在 FineUIPro.Web.HJGL.WeldingManage.PipelineMatIn.AddDatasetToSQL(DataTable pds, Int32 Cols) 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\HJGL\WeldingManage\PipelineMatIn.aspx.cs:行号 155
|
||||
在 FineUIPro.Web.HJGL.WeldingManage.PipelineMatIn.btnAudit_Click(Object sender, EventArgs e) 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\HJGL\WeldingManage\PipelineMatIn.aspx.cs:行号 377
|
||||
在 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)
|
||||
出错时间:10/24/2022 01:24:42
|
||||
出错文件:http://localhost:8008/HJGL/WeldingManage/PipelineMatIn.aspx?UnitWorkId=5c955308-1645-4575-acbf-68dd66c4179a
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:10/24/2022 01:24:42
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:InvalidOperationException
|
||||
错误信息:序列不包含任何元素
|
||||
错误堆栈:
|
||||
在 System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
|
||||
在 FineUIPro.Web.HJGL.PreDesign.PipelingDivide.ConvertPipeArea(Object PipeArea) 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\HJGL\PreDesign\PipelingDivide.aspx.cs:行号 375
|
||||
在 ASP.hjgl_predesign_pipelingdivide_aspx.__DataBindingtxt(Object sender, EventArgs e) 位置 d:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\HJGL\PreDesign\PipelingDivide.aspx:行号 119
|
||||
在 System.Web.UI.Control.OnDataBinding(EventArgs e)
|
||||
在 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
|
||||
在 System.Web.UI.Control.DataBind()
|
||||
在 System.Web.UI.Control.DataBindChildren()
|
||||
在 System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding)
|
||||
在 System.Web.UI.Control.DataBind()
|
||||
在 (Control )
|
||||
在 FineUIPro.GridRow.BkpgFeAELTFlAvoTrOBrConfcLJbA()
|
||||
在 (GridRow )
|
||||
在 FineUIPro.Grid.BkpgFeAELTFlAvoTrOBrConfcLJbA(Int32 , Object )
|
||||
在 (Grid , Int32 , Object )
|
||||
在 FineUIPro.Grid.LDChsdiaqdhUTcxBcQPMKyQFfjEDB(DataTable , Boolean )
|
||||
在 (Grid , DataTable , Boolean )
|
||||
在 FineUIPro.Grid.DataBind(Boolean keepCurrentData)
|
||||
在 (Grid , Boolean )
|
||||
在 FineUIPro.Grid.DataBind()
|
||||
在 FineUIPro.Web.HJGL.PreDesign.PipelingDivide.BindGrid() 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\HJGL\PreDesign\PipelingDivide.aspx.cs:行号 207
|
||||
在 FineUIPro.Web.HJGL.PreDesign.PipelingDivide.tvControlItem_NodeCommand(Object sender, TreeCommandEventArgs e) 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\HJGL\PreDesign\PipelingDivide.aspx.cs:行号 143
|
||||
在 FineUIPro.Tree.OnNodeCommand(TreeCommandEventArgs e)
|
||||
在 (Tree , TreeCommandEventArgs )
|
||||
在 FineUIPro.Tree.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)
|
||||
出错时间:10/24/2022 22:26:31
|
||||
出错文件:http://localhost:8008/HJGL/PreDesign/PipelingDivide.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:10/24/2022 22:26:31
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:IndexOutOfRangeException
|
||||
错误信息:无法找到列 UnitWorkCode。
|
||||
错误堆栈:
|
||||
在 System.Data.DataTable.ParseSortString(String sortString)
|
||||
在 System.Data.DataView.CheckSort(String sort)
|
||||
在 System.Data.DataView.set_Sort(String value)
|
||||
在 FineUIPro.Web.PageBase.GetPagedDataTable[T](Grid Grid1, IEnumerable`1 varlist) 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\common\PageBase.cs:行号 458
|
||||
在 FineUIPro.Web.HJGL.InfoQuery.JointQuery.BindGrid() 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\HJGL\InfoQuery\JointQuery.aspx.cs:行号 355
|
||||
在 FineUIPro.Web.HJGL.InfoQuery.JointQuery.tvControlItem_NodeCommand(Object sender, TreeCommandEventArgs e) 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\HJGL\InfoQuery\JointQuery.aspx.cs:行号 238
|
||||
在 FineUIPro.Tree.OnNodeCommand(TreeCommandEventArgs e)
|
||||
在 (Tree , TreeCommandEventArgs )
|
||||
在 FineUIPro.Tree.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)
|
||||
出错时间:10/25/2022 18:40:26
|
||||
出错文件:http://localhost:8008/HJGL/InfoQuery/JointQuery.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:10/25/2022 18:40:26
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:IndexOutOfRangeException
|
||||
错误信息:无法找到列 UnitWorkCode。
|
||||
错误堆栈:
|
||||
在 System.Data.DataTable.ParseSortString(String sortString)
|
||||
在 System.Data.DataView.CheckSort(String sort)
|
||||
在 System.Data.DataView.set_Sort(String value)
|
||||
在 FineUIPro.Web.PageBase.GetPagedDataTable[T](Grid Grid1, IEnumerable`1 varlist) 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\common\PageBase.cs:行号 458
|
||||
在 FineUIPro.Web.HJGL.InfoQuery.JointQuery.BindGrid() 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\HJGL\InfoQuery\JointQuery.aspx.cs:行号 355
|
||||
在 FineUIPro.Web.HJGL.InfoQuery.JointQuery.tvControlItem_NodeCommand(Object sender, TreeCommandEventArgs e) 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\HJGL\InfoQuery\JointQuery.aspx.cs:行号 238
|
||||
在 FineUIPro.Tree.OnNodeCommand(TreeCommandEventArgs e)
|
||||
在 (Tree , TreeCommandEventArgs )
|
||||
在 FineUIPro.Tree.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)
|
||||
出错时间:10/25/2022 18:40:28
|
||||
出错文件:http://localhost:8008/HJGL/InfoQuery/JointQuery.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:10/25/2022 18:40:28
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:IndexOutOfRangeException
|
||||
错误信息:无法找到列 UnitWorkCode。
|
||||
错误堆栈:
|
||||
在 System.Data.DataTable.ParseSortString(String sortString)
|
||||
在 System.Data.DataView.CheckSort(String sort)
|
||||
在 System.Data.DataView.set_Sort(String value)
|
||||
在 FineUIPro.Web.PageBase.GetPagedDataTable[T](Grid Grid1, IEnumerable`1 varlist) 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\common\PageBase.cs:行号 458
|
||||
在 FineUIPro.Web.HJGL.InfoQuery.JointQuery.BindGrid() 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\HJGL\InfoQuery\JointQuery.aspx.cs:行号 355
|
||||
在 FineUIPro.Web.HJGL.InfoQuery.JointQuery.tvControlItem_NodeCommand(Object sender, TreeCommandEventArgs e) 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\HJGL\InfoQuery\JointQuery.aspx.cs:行号 238
|
||||
在 FineUIPro.Tree.OnNodeCommand(TreeCommandEventArgs e)
|
||||
在 (Tree , TreeCommandEventArgs )
|
||||
在 FineUIPro.Tree.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)
|
||||
出错时间:10/25/2022 18:40:29
|
||||
出错文件:http://localhost:8008/HJGL/InfoQuery/JointQuery.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:10/25/2022 18:40:29
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:IndexOutOfRangeException
|
||||
错误信息:无法找到列 UnitWorkCode。
|
||||
错误堆栈:
|
||||
在 System.Data.DataTable.ParseSortString(String sortString)
|
||||
在 System.Data.DataView.CheckSort(String sort)
|
||||
在 System.Data.DataView.set_Sort(String value)
|
||||
在 FineUIPro.Web.PageBase.GetPagedDataTable[T](Grid Grid1, IEnumerable`1 varlist) 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\common\PageBase.cs:行号 458
|
||||
在 FineUIPro.Web.HJGL.InfoQuery.JointQuery.BindGrid() 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\HJGL\InfoQuery\JointQuery.aspx.cs:行号 355
|
||||
在 FineUIPro.Web.HJGL.InfoQuery.JointQuery.tvControlItem_NodeCommand(Object sender, TreeCommandEventArgs e) 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\HJGL\InfoQuery\JointQuery.aspx.cs:行号 238
|
||||
在 FineUIPro.Tree.OnNodeCommand(TreeCommandEventArgs e)
|
||||
在 (Tree , TreeCommandEventArgs )
|
||||
在 FineUIPro.Tree.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)
|
||||
出错时间:10/25/2022 18:40:30
|
||||
出错文件:http://localhost:8008/HJGL/InfoQuery/JointQuery.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:10/25/2022 18:40:30
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:IndexOutOfRangeException
|
||||
错误信息:无法找到列 UnitWorkCode。
|
||||
错误堆栈:
|
||||
在 System.Data.DataTable.ParseSortString(String sortString)
|
||||
在 System.Data.DataView.CheckSort(String sort)
|
||||
在 System.Data.DataView.set_Sort(String value)
|
||||
在 FineUIPro.Web.PageBase.GetPagedDataTable[T](Grid Grid1, IEnumerable`1 varlist) 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\common\PageBase.cs:行号 458
|
||||
在 FineUIPro.Web.HJGL.InfoQuery.JointQuery.BindGrid() 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\HJGL\InfoQuery\JointQuery.aspx.cs:行号 355
|
||||
在 FineUIPro.Web.HJGL.InfoQuery.JointQuery.tvControlItem_NodeCommand(Object sender, TreeCommandEventArgs e) 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\HJGL\InfoQuery\JointQuery.aspx.cs:行号 238
|
||||
在 FineUIPro.Tree.OnNodeCommand(TreeCommandEventArgs e)
|
||||
在 (Tree , TreeCommandEventArgs )
|
||||
在 FineUIPro.Tree.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)
|
||||
出错时间:10/25/2022 18:40:32
|
||||
出错文件:http://localhost:8008/HJGL/InfoQuery/JointQuery.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:10/25/2022 18:40:32
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:IndexOutOfRangeException
|
||||
错误信息:无法找到列 UnitWorkCode。
|
||||
错误堆栈:
|
||||
在 System.Data.DataTable.ParseSortString(String sortString)
|
||||
在 System.Data.DataView.CheckSort(String sort)
|
||||
在 System.Data.DataView.set_Sort(String value)
|
||||
在 FineUIPro.Web.PageBase.GetPagedDataTable[T](Grid Grid1, IEnumerable`1 varlist) 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\common\PageBase.cs:行号 458
|
||||
在 FineUIPro.Web.HJGL.InfoQuery.JointQuery.BindGrid() 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\HJGL\InfoQuery\JointQuery.aspx.cs:行号 355
|
||||
在 FineUIPro.Web.HJGL.InfoQuery.JointQuery.tvControlItem_NodeCommand(Object sender, TreeCommandEventArgs e) 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\HJGL\InfoQuery\JointQuery.aspx.cs:行号 238
|
||||
在 FineUIPro.Tree.OnNodeCommand(TreeCommandEventArgs e)
|
||||
在 (Tree , TreeCommandEventArgs )
|
||||
在 FineUIPro.Tree.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)
|
||||
出错时间:10/25/2022 18:41:58
|
||||
出错文件:http://localhost:8008/HJGL/InfoQuery/JointQuery.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:10/25/2022 18:41:58
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:KeyNotFoundException
|
||||
错误信息:给定关键字不在字典中。
|
||||
错误堆栈:
|
||||
在 System.Collections.Generic.Dictionary`2.get_Item(TKey key)
|
||||
在 BLL.Funs.get_DB() 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\BLL\Common\Funs.cs:行号 140
|
||||
在 FineUIPro.Web.PageBase.get_CurrUser() 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\common\PageBase.cs:行号 39
|
||||
在 FineUIPro.Web.HJGL.InfoQuery.JointQuery.Page_Load(Object sender, EventArgs e) 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\HJGL\InfoQuery\JointQuery.aspx.cs:行号 83
|
||||
在 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)
|
||||
出错时间:10/25/2022 18:42:00
|
||||
出错文件:http://localhost:8008/HJGL/InfoQuery/JointQuery.aspx
|
||||
IP地址:::1
|
||||
|
||||
出错时间:10/25/2022 18:42:01
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:IndexOutOfRangeException
|
||||
错误信息:无法找到列 UnitWorkCode。
|
||||
错误堆栈:
|
||||
在 System.Data.DataTable.ParseSortString(String sortString)
|
||||
在 System.Data.DataView.CheckSort(String sort)
|
||||
在 System.Data.DataView.set_Sort(String value)
|
||||
在 FineUIPro.Web.PageBase.GetPagedDataTable[T](Grid Grid1, IEnumerable`1 varlist) 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\common\PageBase.cs:行号 458
|
||||
在 FineUIPro.Web.HJGL.InfoQuery.JointQuery.BindGrid() 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\HJGL\InfoQuery\JointQuery.aspx.cs:行号 355
|
||||
在 FineUIPro.Web.HJGL.InfoQuery.JointQuery.tvControlItem_NodeCommand(Object sender, TreeCommandEventArgs e) 位置 D:\诺必达\赛鼎\SGGL_SeDin_new\SGGL\FineUIPro.Web\HJGL\InfoQuery\JointQuery.aspx.cs:行号 238
|
||||
在 FineUIPro.Tree.OnNodeCommand(TreeCommandEventArgs e)
|
||||
在 (Tree , TreeCommandEventArgs )
|
||||
在 FineUIPro.Tree.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)
|
||||
出错时间:10/25/2022 18:42:05
|
||||
出错文件:http://localhost:8008/HJGL/InfoQuery/JointQuery.aspx
|
||||
IP地址:127.0.0.1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:10/25/2022 18:42:05
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:NullReferenceException
|
||||
错误信息:未将对象引用设置到对象的实例。
|
||||
错误堆栈:
|
||||
在 FineUIPro.Web.indexProject.Page_Load(Object sender, EventArgs e) 位置 D:\诺必达\赛鼎\SGGL_SeDin\SGGL\FineUIPro.Web\indexProject.aspx.cs:行号 292
|
||||
在 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)
|
||||
出错时间:10/26/2022 00:40:19
|
||||
出错文件:http://localhost:14901/indexProject.aspx?projectId=0040f558-0a0a-4e52-a688-64a0c2e7a0d4
|
||||
IP地址:::1
|
||||
|
||||
出错时间:10/26/2022 00:40:19
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:NullReferenceException
|
||||
错误信息:未将对象引用设置到对象的实例。
|
||||
错误堆栈:
|
||||
在 FineUIPro.Web.common.ProjectSet.ProjectSysSet.btnSave_Click(Object sender, EventArgs e) 位置 D:\诺必达\赛鼎\SGGL_SeDin\SGGL\FineUIPro.Web\ProjectData\ProjectSysSet.aspx.cs:行号 284
|
||||
在 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)
|
||||
出错时间:10/26/2022 00:41:20
|
||||
出错文件:http://localhost:14901/ProjectData/ProjectSysSet.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:10/26/2022 00:41:20
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:NullReferenceException
|
||||
错误信息:未将对象引用设置到对象的实例。
|
||||
错误堆栈:
|
||||
在 FineUIPro.Web.common.ProjectSet.ProjectSysSet.btnSave_Click(Object sender, EventArgs e)
|
||||
在 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)
|
||||
出错时间:10/26/2022 00:46:06
|
||||
出错文件:http://localhost:14901/ProjectData/ProjectSysSet.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:10/26/2022 00:46:06
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:NullReferenceException
|
||||
错误信息:未将对象引用设置到对象的实例。
|
||||
错误堆栈:
|
||||
在 FineUIPro.Web.common.ProjectSet.ProjectSysSet.GetButtonPower() 位置 D:\诺必达\赛鼎\SGGL_SeDin\SGGL\FineUIPro.Web\ProjectData\ProjectSysSet.aspx.cs:行号 30
|
||||
在 FineUIPro.Web.common.ProjectSet.ProjectSysSet.Page_Load(Object sender, EventArgs e) 位置 D:\诺必达\赛鼎\SGGL_SeDin\SGGL\FineUIPro.Web\ProjectData\ProjectSysSet.aspx.cs:行号 18
|
||||
在 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)
|
||||
出错时间:10/26/2022 00:48:48
|
||||
出错文件:http://localhost:14901/ProjectData/ProjectSysSet.aspx
|
||||
IP地址:::1
|
||||
|
||||
出错时间:10/26/2022 00:48:48
|
||||
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:NullReferenceException
|
||||
错误信息:未将对象引用设置到对象的实例。
|
||||
错误堆栈:
|
||||
在 FineUIPro.Web.common.ProjectSet.ProjectSysSet.btnSave_Click(Object sender, EventArgs e) 位置 D:\诺必达\赛鼎\SGGL_SeDin\SGGL\FineUIPro.Web\ProjectData\ProjectSysSet.aspx.cs:行号 284
|
||||
在 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)
|
||||
出错时间:10/26/2022 00:50:19
|
||||
出错文件:http://localhost:14901/ProjectData/ProjectSysSet.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:10/26/2022 00:50:19
|
||||
|
||||
|
||||
错误信息开始=====>
|
||||
错误类型:NullReferenceException
|
||||
错误信息:未将对象引用设置到对象的实例。
|
||||
错误堆栈:
|
||||
在 FineUIPro.Web.common.ProjectSet.ProjectSysSet.btnSave_Click(Object sender, EventArgs e) 位置 D:\诺必达\赛鼎\SGGL_SeDin\SGGL\FineUIPro.Web\ProjectData\ProjectSysSet.aspx.cs:行号 284
|
||||
在 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)
|
||||
出错时间:10/26/2022 00:50:37
|
||||
出错文件:http://localhost:14901/ProjectData/ProjectSysSet.aspx
|
||||
IP地址:::1
|
||||
操作人员:JT
|
||||
|
||||
出错时间:10/26/2022 00:50:37
|
||||
|
||||
|
|
@ -37,15 +37,27 @@
|
|||
<f:DropDownList ID="drpCertificate" runat="server" EmptyText="职业资格证书" Width="200px"
|
||||
EnableEdit="true" AutoPostBack="true" OnSelectedIndexChanged="TextBox_TextChanged">
|
||||
</f:DropDownList>
|
||||
<f:ToolbarFill runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:ToolbarSeparator runat="server"></f:ToolbarSeparator>
|
||||
<f:Button ID="btnNew" Text="新增" Icon="Add" EnablePostBack="false" runat="server"
|
||||
Hidden="true">
|
||||
</f:Button>
|
||||
<f:ToolbarFill runat="server">
|
||||
</f:ToolbarFill>
|
||||
<f:DropDownList ID="drpProject" runat="server" EmptyText="派遣项目" Width="350px"
|
||||
EnableEdit="true" ShowRedStar="true" Required="true" Hidden="true">
|
||||
</f:DropDownList>
|
||||
<f:Button ID="btnSure" Text="确定" ToolTip="确定派遣" Icon="Accept" Hidden="true" runat="server" OnClick="btnSure_Click">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
<Columns>
|
||||
<f:TemplateField ColumnID="Check" Width="50px" HeaderText="选择" HeaderTextAlign="Center" TextAlign="Center"
|
||||
EnableLock="true" Locked="False">
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox runat="server" ID="cbSelect" />
|
||||
</ItemTemplate>
|
||||
</f:TemplateField>
|
||||
<f:TemplateField ColumnID="tfNumber" Width="55px" HeaderText="序号" HeaderTextAlign="Center"
|
||||
TextAlign="Center">
|
||||
<ItemTemplate>
|
||||
|
|
@ -71,7 +83,7 @@
|
|||
<f:CheckBoxField Width="60px" SortField="IsPost" RenderAsStaticField="true" DataField="IsPost"
|
||||
HeaderText="在职" HeaderTextAlign="Center" TextAlign="Center">
|
||||
</f:CheckBoxField>
|
||||
<f:RenderField Width="100px" ColumnID="Major" DataField="Major"
|
||||
<f:RenderField Width="100px" ColumnID="Major" DataField="Major"
|
||||
FieldType="String" HeaderText="专业" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="100px" ColumnID="WorkPostName" DataField="WorkPostName"
|
||||
|
|
@ -89,22 +101,22 @@
|
|||
<f:RenderField Width="90px" ColumnID="IsPostName" DataField="IsPostName"
|
||||
FieldType="String" HeaderText="是否在职" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="150px" ColumnID="LastProjectName" DataField="LastProjectName" SortField="LastProjectName"
|
||||
<f:RenderField Width="150px" ColumnID="LastProjectName" DataField="LastProjectName" SortField="LastProjectName"
|
||||
FieldType="String" HeaderText="最近所在项目" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:RenderField Width="130px" ColumnID="LastWorkPostName" DataField="LastWorkPostName"
|
||||
FieldType="String" HeaderText="最近项目岗位" HeaderTextAlign="Center" TextAlign="Left">
|
||||
</f:RenderField>
|
||||
<f:WindowField TextAlign="Left" Width="80px" WindowID="Window1" HeaderText="详细信息"
|
||||
<f:WindowField TextAlign="Left" Width="80px" WindowID="Window1" HeaderText="详细信息"
|
||||
Text="查看" ToolTip="人员详细信息查看" DataIFrameUrlFields="PersonId" DataIFrameUrlFormatString="PersonView.aspx?PersonId={0}"
|
||||
HeaderTextAlign="Center" />
|
||||
<%-- <f:RenderField Width="100px" ColumnID="WorkPost" DataField="WorkPost" FieldType="String"
|
||||
HeaderText="拟聘岗位" HeaderTextAlign="Center">
|
||||
<f:RenderField Width="100px" ColumnID="WorkPost" DataField="WorkPostName" FieldType="String"
|
||||
HeaderText="拟聘岗位" HeaderTextAlign="Center" >
|
||||
<Editor>
|
||||
<f:DropDownList ID="drpWP" Required="true" runat="server">
|
||||
<f:DropDownList ID="drpWP" Required="true" runat="server" EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
</Editor>
|
||||
</f:RenderField>--%>
|
||||
</f:RenderField>
|
||||
</Columns>
|
||||
<Listeners>
|
||||
<f:Listener Event="beforerowcontextmenu" Handler="onRowContextMenu" />
|
||||
|
|
@ -129,7 +141,7 @@
|
|||
<f:MenuButton ID="btnMenuEdit" OnClick="btnMenuEdit_Click" EnablePostBack="true"
|
||||
Hidden="true" runat="server" Text="编辑" Icon="Pencil">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDispatch" OnClick="btnMenuDispatch_Click" EnablePostBack="true"
|
||||
<f:MenuButton ID="btnMenuDispatch" OnClick="btnMenuDispatch_Click" EnablePostBack="true"
|
||||
Hidden="true" runat="server" Text="派遣" Icon="TableEdit">
|
||||
</f:MenuButton>
|
||||
<f:MenuButton ID="btnMenuDelete" OnClick="btnMenuDelete_Click" EnablePostBack="true"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using BLL;
|
||||
using FastReport.DevComponents.Editors;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
|
@ -23,20 +24,23 @@ namespace FineUIPro.Web.Person
|
|||
Funs.DropDownPageSize(this.ddlPageSize);
|
||||
|
||||
this.btnNew.OnClientClick = Window1.GetShowReference("PersonEdit.aspx?Type=Shunt&UnitId=" + Const.UnitId_SEDIN + "&DepartId=" + Const.Depart_constructionId) + "return false;";
|
||||
|
||||
////权限按钮方法
|
||||
this.GetButtonPower();
|
||||
WorkPostService.InitWorkPostNameByTypeDropDownList2(this.drpWorkPost, "1", false); //加载管理岗位
|
||||
Funs.FineUIPleaseSelect(this.drpWorkPost, "请选择岗位");
|
||||
|
||||
//WorkPostService.InitWorkPostNameByTypeDropDownList(this.drpWP, "1", true); //加载管理岗位
|
||||
|
||||
WorkPostService.InitWorkPostNameByTypeDropDownList(this.drpWP, Const.PostType_1, false); //加载管理岗位
|
||||
Funs.FineUIPleaseSelectNull(this.drpWP, "请选择岗位");
|
||||
|
||||
PostTitleService.InitPostTitleDropDownList(this.drpPostTitle, false);
|
||||
Funs.FineUIPleaseSelect(this.drpPostTitle, "请选择职称");
|
||||
|
||||
PracticeCertificateService.InitPracticeCertificateDropDownList(this.drpCertificate, false);
|
||||
Funs.FineUIPleaseSelect(this.drpCertificate, "请选择职业资格证书");
|
||||
|
||||
BLL.ProjectService.InitProjectDropDownList(this.drpProject, false);
|
||||
Funs.FineUIPleaseSelect(this.drpProject, "请选择拟聘项目");
|
||||
|
||||
this.ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
|
||||
// 绑定表格
|
||||
this.BindGrid();
|
||||
|
|
@ -85,6 +89,8 @@ namespace FineUIPro.Web.Person
|
|||
{
|
||||
this.btnMenuEdit.Hidden = false;
|
||||
this.btnMenuDispatch.Hidden = false;
|
||||
this.btnSure.Hidden = false;
|
||||
this.drpProject.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnDelete))
|
||||
{
|
||||
|
|
@ -254,5 +260,135 @@ namespace FineUIPro.Web.Person
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 确定按钮事件
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSure_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.drpProject.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
bool b = true;
|
||||
foreach (JObject mergedRow in Grid1.GetMergedData())
|
||||
{
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
int i = mergedRow.Value<int>("index");
|
||||
if (this.Grid1.SelectedRowIndexArray.Contains(i))
|
||||
{
|
||||
AspNet.CheckBox cb = (AspNet.CheckBox)(this.Grid1.Rows[i].FindControl("cbSelect"));
|
||||
if (cb.Checked) //选择项
|
||||
{
|
||||
string workPost = values.Value<string>("WorkPost");
|
||||
if (string.IsNullOrEmpty(workPost))
|
||||
{
|
||||
b = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!b)
|
||||
{
|
||||
Alert.ShowInTop("勾选人员的拟聘岗位不能为空!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
|
||||
int count=0;
|
||||
int outCount = 0;
|
||||
var workPosts = BLL.WorkPostService.GetWorkPostList();
|
||||
foreach (JObject mergedRow in Grid1.GetMergedData())
|
||||
{
|
||||
JObject values = mergedRow.Value<JObject>("values");
|
||||
int i = mergedRow.Value<int>("index");
|
||||
AspNet.CheckBox cb = (AspNet.CheckBox)(this.Grid1.Rows[i].FindControl("cbSelect"));
|
||||
if (cb.Checked) //选择项
|
||||
{
|
||||
string personId = this.Grid1.Rows[i].RowID;
|
||||
string workPostId = string.Empty;
|
||||
var getWorkPost = WorkPostService.GetWorkPostByName(values.Value<string>("WorkPost"));
|
||||
if (getWorkPost != null)
|
||||
{
|
||||
workPostId = getWorkPost.WorkPostId;
|
||||
}
|
||||
var getPerson = Person_PersonsService.GetPerson_PersonsById(personId);
|
||||
if (getPerson != null)
|
||||
{
|
||||
if (getPerson.IsPost == false)
|
||||
{
|
||||
outCount++;
|
||||
}
|
||||
else
|
||||
{
|
||||
SaveSitePerson(getPerson, workPostId);
|
||||
Funs.DB.SubmitChanges();
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
string message = "批量派遣成功!共计成功" + count.ToString() + "人。";
|
||||
if (outCount > 0)
|
||||
{
|
||||
message+="未能派遣(不在职)人员" + outCount.ToString() + "人。";
|
||||
}
|
||||
ShowNotify(message, MessageBoxIcon.Success);
|
||||
BindGrid();
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, "人员派遣", string.Empty, BLL.Const.DepartPersonShuntMenuId, "人员批量派遣");
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert.ShowInParent("请选择派遣项目!", MessageBoxIcon.Warning);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="getPerson"></param>
|
||||
/// <param name="workPostId"></param>
|
||||
private void SaveSitePerson(Model.Person_Persons getPerson, string workPostId)
|
||||
{
|
||||
Model.SitePerson_Person newProjectPerson = new Model.SitePerson_Person
|
||||
{
|
||||
PersonId = getPerson.PersonId,
|
||||
PersonName = getPerson.PersonName,
|
||||
IdentityCard = getPerson.IdentityCard,
|
||||
UnitId = getPerson.UnitId ?? Const.UnitId_SEDIN,
|
||||
ProjectId = this.drpProject.SelectedValue,
|
||||
WorkPostId = workPostId,
|
||||
// RoleIds = Funs.GetStringByArray(this.drpProjectRole.SelectedValueArray),
|
||||
//TeamGroupId = this.drpTeamGroup.SelectedValue == Const._Null ? null : this.drpTeamGroup.SelectedValue,
|
||||
InTime = DateTime.Now,
|
||||
// AuditorId = this.drpAuditor.SelectedValue == Const._Null ? null : this.drpAuditor.SelectedValue,
|
||||
AuditorDate = DateTime.Now,
|
||||
OutTime = null,
|
||||
States = Const.ProjectPersonStates_1,
|
||||
};
|
||||
|
||||
var getPersonAuditor = Funs.DB.SitePerson_Person.FirstOrDefault(x => x.ProjectId == newProjectPerson.ProjectId && (x.RoleIds.Contains(Const.HSSEManager) || x.RoleIds.Contains(Const.HSSEAssistantManager)));
|
||||
if (getPersonAuditor != null)
|
||||
{
|
||||
newProjectPerson.AuditorId = getPersonAuditor.PersonId;
|
||||
}
|
||||
|
||||
var getProjectPerson = Funs.DB.SitePerson_Person.FirstOrDefault(x => x.ProjectId == newProjectPerson.ProjectId && (x.PersonId == newProjectPerson.PersonId || x.IdentityCard == newProjectPerson.IdentityCard));
|
||||
if (getProjectPerson != null)
|
||||
{
|
||||
newProjectPerson.SitePersonId = getProjectPerson.SitePersonId;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(newProjectPerson.SitePersonId))
|
||||
{
|
||||
SitePerson_PersonService.UpdateSitePerson(newProjectPerson);
|
||||
LogService.AddSys_Log(this.CurrUser, newProjectPerson.IdentityCard, newProjectPerson.SitePersonId, BLL.Const.ProjectPersonMenuId, BLL.Const.BtnModify);
|
||||
}
|
||||
else
|
||||
{
|
||||
newProjectPerson.SitePersonId = SQLHelper.GetNewID();
|
||||
SitePerson_PersonService.AddSitePerson(newProjectPerson);
|
||||
LogService.AddSys_Log(this.CurrUser, newProjectPerson.IdentityCard, newProjectPerson.SitePersonId, BLL.Const.ProjectPersonMenuId, BLL.Const.BtnAdd);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -95,6 +95,33 @@ namespace FineUIPro.Web.Person
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnNew;
|
||||
|
||||
/// <summary>
|
||||
/// drpProject 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpProject;
|
||||
|
||||
/// <summary>
|
||||
/// btnSure 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSure;
|
||||
|
||||
/// <summary>
|
||||
/// cbSelect 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.CheckBox cbSelect;
|
||||
|
||||
/// <summary>
|
||||
/// lblNumber 控件。
|
||||
/// </summary>
|
||||
|
|
@ -131,6 +158,15 @@ namespace FineUIPro.Web.Person
|
|||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label Label2;
|
||||
|
||||
/// <summary>
|
||||
/// drpWP 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpWP;
|
||||
|
||||
/// <summary>
|
||||
/// ToolbarSeparator1 控件。
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -1285,7 +1285,5 @@ namespace FineUIPro.Web.Person
|
|||
}
|
||||
#endregion
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue