代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,11 +1,7 @@
|
||||
using BLL;
|
||||
using FastReport.DevComponents.Editors;
|
||||
using Model;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.Linq;
|
||||
using AspNet = System.Web.UI.WebControls;
|
||||
|
||||
@@ -29,7 +25,7 @@ namespace FineUIPro.Web.Person
|
||||
this.GetButtonPower();
|
||||
WorkPostService.InitWorkPostNameByTypeDropDownList2(this.drpWorkPost, "1", false); //加载管理岗位
|
||||
Funs.FineUIPleaseSelect(this.drpWorkPost, "请选择岗位");
|
||||
|
||||
|
||||
WorkPostService.InitWorkPostNameByTypeDropDownList(this.drpWP, Const.PostType_1, false); //加载管理岗位
|
||||
Funs.FineUIPleaseSelectNull(this.drpWP, "请选择岗位");
|
||||
|
||||
@@ -53,7 +49,7 @@ namespace FineUIPro.Web.Person
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
var getData = Person_ShuntService.getListData(this.drpWorkPost.SelectedValue,this.drpPostTitle.SelectedValue,String.Empty,this.drpCertificate.SelectedValue, Grid1);
|
||||
var getData = Person_ShuntService.getListData(this.drpWorkPost.SelectedValue, this.drpPostTitle.SelectedValue, String.Empty, this.drpCertificate.SelectedValue, Grid1);
|
||||
Grid1.RecordCount = Person_ShuntService.count;
|
||||
Grid1.DataSource = getData;
|
||||
Grid1.DataBind();
|
||||
@@ -79,7 +75,7 @@ namespace FineUIPro.Web.Person
|
||||
/// <returns></returns>
|
||||
private void GetButtonPower()
|
||||
{
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, BLL.Const.DepartPersonShuntMenuId);
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.PersonId, BLL.Const.DepartPersonShuntMenuId);
|
||||
if (buttonList.Count() > 0)
|
||||
{
|
||||
if (buttonList.Contains(BLL.Const.BtnAdd))
|
||||
@@ -101,7 +97,7 @@ namespace FineUIPro.Web.Person
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 关闭弹出窗
|
||||
/// </summary>
|
||||
@@ -295,7 +291,7 @@ namespace FineUIPro.Web.Person
|
||||
return;
|
||||
}
|
||||
|
||||
int count=0;
|
||||
int count = 0;
|
||||
int outCount = 0;
|
||||
var workPosts = BLL.WorkPostService.GetWorkPostList();
|
||||
foreach (JObject mergedRow in Grid1.GetMergedData())
|
||||
@@ -306,7 +302,7 @@ namespace FineUIPro.Web.Person
|
||||
if (cb.Checked) //选择项
|
||||
{
|
||||
string personId = this.Grid1.Rows[i].RowID;
|
||||
string workPostId = string.Empty;
|
||||
string workPostId = string.Empty;
|
||||
var getWorkPost = WorkPostService.GetWorkPostByName(values.Value<string>("WorkPost"));
|
||||
if (getWorkPost != null)
|
||||
{
|
||||
@@ -331,7 +327,7 @@ namespace FineUIPro.Web.Person
|
||||
string message = "批量派遣成功!共计成功" + count.ToString() + "人。";
|
||||
if (outCount > 0)
|
||||
{
|
||||
message+="未能派遣(不在职)人员" + outCount.ToString() + "人。";
|
||||
message += "未能派遣(不在职)人员" + outCount.ToString() + "人。";
|
||||
}
|
||||
ShowNotify(message, MessageBoxIcon.Success);
|
||||
BindGrid();
|
||||
@@ -390,12 +386,12 @@ namespace FineUIPro.Web.Person
|
||||
DataId = newProjectPerson.PersonId,
|
||||
ProjectId = newProjectPerson.ProjectId,
|
||||
};
|
||||
SitePerson_PersonService.UpdateSitePerson(newProjectPerson,newlog);
|
||||
SitePerson_PersonService.UpdateSitePerson(newProjectPerson, newlog);
|
||||
LogService.AddSys_Log(this.CurrUser, newProjectPerson.IdentityCard, newProjectPerson.SitePersonId, BLL.Const.ProjectPersonMenuId, BLL.Const.BtnModify);
|
||||
}
|
||||
else
|
||||
{
|
||||
newProjectPerson.SitePersonId = SQLHelper.GetNewID();
|
||||
newProjectPerson.SitePersonId = SQLHelper.GetNewID();
|
||||
SitePerson_PersonService.AddSitePerson(newProjectPerson);
|
||||
LogService.AddSys_Log(this.CurrUser, newProjectPerson.IdentityCard, newProjectPerson.SitePersonId, BLL.Const.ProjectPersonMenuId, BLL.Const.BtnAdd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user