代码无效引用清理,试压包资料界面看板修改
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using BLL;
|
||||
using Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
@@ -28,7 +27,7 @@ namespace FineUIPro.Web.Person
|
||||
this.drpIsPost.SelectedValue = Const._True;
|
||||
DropListService.InitConstDropDownList(this.drpPersonType, DropListService.Group_PersonType, false);
|
||||
Funs.FineUIPleaseSelect(drpPersonType, "按员工类别查询");
|
||||
|
||||
|
||||
WorkPostService.InitWorkPostDropDownList(this.drpWorkPost, false);
|
||||
Funs.FineUIPleaseSelect(drpWorkPost, "按岗位查询");
|
||||
// 绑定表格
|
||||
@@ -46,7 +45,7 @@ namespace FineUIPro.Web.Person
|
||||
string personId = Grid1.SelectedRowID;
|
||||
if (args.Length > 0 && !string.IsNullOrEmpty(personId))
|
||||
{
|
||||
var commandName = args[0];
|
||||
var commandName = args[0];
|
||||
if (commandName == "editit")
|
||||
{
|
||||
if (!this.btnMenuEdit.Hidden)
|
||||
@@ -103,7 +102,7 @@ namespace FineUIPro.Web.Person
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
string[] workPostIds= this.drpWorkPost.SelectedValueArray.Where(x => x != Const._Null).ToArray();
|
||||
string[] workPostIds = this.drpWorkPost.SelectedValueArray.Where(x => x != Const._Null).ToArray();
|
||||
var getData = Person_PersonsService.getListData(Const.UnitId_SEDIN, Const.Depart_constructionId, this.drpProject.SelectedValue,
|
||||
this.txtPersonName.Text.Trim(), this.txtIdCard.Text.Trim(), this.drpIsPost.SelectedValue, this.drpPersonType.SelectedValue, null, workPostIds, Grid1);
|
||||
Grid1.RecordCount = Person_PersonsService.count;
|
||||
@@ -164,7 +163,7 @@ namespace FineUIPro.Web.Person
|
||||
/// <param name="e"></param>
|
||||
protected void btnMenuDelete_Click(object sender, EventArgs e)
|
||||
{
|
||||
// this.PageSize = this.Grid1.PageIndex;
|
||||
// this.PageSize = this.Grid1.PageIndex;
|
||||
this.DeleteData();
|
||||
}
|
||||
|
||||
@@ -332,7 +331,7 @@ namespace FineUIPro.Web.Person
|
||||
if (getPerson != null && getPerson.IsPost == true)
|
||||
{
|
||||
var getcuuProject = Funs.DB.SitePerson_Person.FirstOrDefault(x => x.IdentityCard == getPerson.IdentityCard && x.States == Const.ProjectPersonStates_1);
|
||||
if (getcuuProject != null && (getPerson.MultiProject == false|| !getPerson.MultiProject.HasValue))
|
||||
if (getcuuProject != null && (getPerson.MultiProject == false || !getPerson.MultiProject.HasValue))
|
||||
{
|
||||
SitePerson_PersonService.SetSitePerson_PersonStates(getcuuProject.SitePersonId, Const.ProjectPersonStates_2, DateTime.Now);
|
||||
}
|
||||
@@ -351,7 +350,7 @@ namespace FineUIPro.Web.Person
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
{
|
||||
int count = 0;
|
||||
var getSitePersons = db.SitePerson_PersonItem.Where(x=>x.IdentityCard != null).Select(x => x.IdentityCard).Distinct();
|
||||
var getSitePersons = db.SitePerson_PersonItem.Where(x => x.IdentityCard != null).Select(x => x.IdentityCard).Distinct();
|
||||
if (getSitePersons.Count() > 0)
|
||||
{
|
||||
foreach (var item in getSitePersons)
|
||||
|
||||
Reference in New Issue
Block a user