diff --git a/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs b/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs
index 9c9a1f04..f3c71dd6 100644
--- a/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs
+++ b/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs
@@ -1297,6 +1297,145 @@ namespace BLL
{
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";
+ //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.ContractNo equals z.ProCode
+ // join v in Funs.DB.ProjectData_TeamGroup on x.TeamGroupId equals v.TeamGroupId
+ // join w in Funs.DB.Base_WorkPost on x.WorkPostId equals w.WorkPostId
+ // where x.IdentityCard == identityCard && y.ContractNo == proCode
+ // && v.TeamId.HasValue && z.JTproCode != null
+ // && ((type == Const.BtnAdd && x.HeadImage != null && x.HeadImage.Length > 0) || (type == Const.BtnModify && x.RealNameAddTime.HasValue))
+ // select new
+ // {
+ // name = x.PersonName,
+ // idcardType = "SHENFEN_ZHENGJIAN",
+ // idcardNumber = x.IdentityCard,
+ // idcardStartDate = x.IdcardStartDate.HasValue ? string.Format("{0:yyyy-MM-dd}", x.IdcardStartDate) : null,
+ // idcardEndDate = x.IdcardEndDate.HasValue ? string.Format("{0:yyyy-MM-dd}", x.IdcardEndDate) : (x.IdcardStartDate.HasValue ? string.Format("{0:yyyy-MM-dd}", x.IdcardStartDate.Value.AddYears(30)) : null),
+ // idcardForever = x.IdcardStartDate.HasValue ? "N" : "Y",
+ // politicsStatus = x.PoliticsStatus,
+ // eduLevel = x.EduLevel,
+ // maritalStatus = x.MaritalStatus,
+ // sex = (x.Sex == "2" ? "F" : "M"),
+ // idcardAddress = x.IdcardAddress,
+ // homeAddress = x.Address,
+ // birthday = x.Birthday.HasValue ? string.Format("{0:yyyy-MM-dd}", x.Birthday) : null,
+ // nation = x.Nation,
+ // countryCode = x.CountryCode,
+ // provinceCode = x.ProvinceCode,
+ // headImage = x.HeadImage,
+ // proCode = z.JTproCode,
+ // teamId = v.TeamId,
+ // mobile = x.Telephone,
+ // teamLeaderFlag = (v.GroupLeaderId == x.PersonId ? "Y" : "N"),
+ // userType = ((w.PostType == "1" || w.PostType == "4") ? "LAB_USER_MANAGE" : "LAB_USER_BULIDER"),
+ // workType = w.WorkPostCode,
+ // isLeave = x.OutTime.HasValue ? "Y" : "N",
+ // 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,
+ // x.PersonId,
+ // }).ToList();
+ //if (getData.Count() > 0)
+ //{
+ // string returndata = string.Empty;
+ // Hashtable newToken = new Hashtable
+ // {
+ // { "token", getaccess_token(proCode) }
+ // };
+ // if (type == Const.BtnModify)
+ // {
+ // var updatelistObject = new
+ // {
+ // list = getData.Select(x => new { x.name, x.idcardType, x.idcardNumber, x.idcardStartDate, x.idcardEndDate, x.idcardForever, x.politicsStatus, x.eduLevel, x.maritalStatus, x.sex, x.idcardAddress, x.homeAddress, x.birthday, x.nation, x.countryCode, x.provinceCode, x.proCode, x.teamId, x.mobile, x.teamLeaderFlag, x.userType, x.workType, x.isLeave, x.entryTime, x.exitTime })
+ // };
+ // pushContent = JsonConvert.SerializeObject(updatelistObject);
+ // returndata = BLL.APIGetHttpService.OutsideHttp(Funs.RealNameApiUrl + "/foreignApi/accept/updatePersons", "POST", contenttype, newToken, pushContent);
+ // }
+ // else
+ // {
+ // var addlistObject = new
+ // {
+ // list = getData.Select(x => new { x.name, x.idcardType, x.idcardNumber, x.idcardStartDate, x.idcardEndDate, x.idcardForever, x.politicsStatus, x.eduLevel, x.maritalStatus, x.sex, x.idcardAddress, x.homeAddress, x.birthday, x.nation, x.countryCode, x.provinceCode, x.headImage, x.proCode, x.teamId, x.mobile, x.teamLeaderFlag, x.userType, x.workType, x.isLeave, x.entryTime, x.exitTime })
+ // };
+ // pushContent = JsonConvert.SerializeObject(addlistObject);
+ // returndata = BLL.APIGetHttpService.OutsideHttp(Funs.RealNameApiUrl + "/foreignApi/accept/persons", "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))
+ // {
+ // 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 (mess.Contains("token无效"))
+ // {
+ // getaccess_token_New(proCode);
+ // }
+ // }
+ // }
+
+ // InsertRealNamePushLog(null, proCode, "推送人员数据", sucess, code, mess, data, pushContent);
+ // if (data.Contains("已存在") || mess.Contains("已存在"))
+ // {
+ // using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ // {
+ // foreach (var item in getData)
+ // {
+ // if (data.Contains(item.idcardNumber) || mess.Contains(item.idcardNumber))
+ // {
+ // var getPerson = db.SitePerson_Person.FirstOrDefault(x => x.PersonId == item.PersonId);
+ // if (getPerson != null)
+ // {
+ // if (!getPerson.RealNameAddTime.HasValue)
+ // {
+ // getPerson.RealNameAddTime = DateTime.Now;
+ // }
+ // db.SubmitChanges();
+ // }
+ // }
+ // }
+ // }
+ // }
+ //}
+ //else
+ //{
+ // mess = "没有符合条件的数据!";
+ //}
+
+ //return mess;
string mess = string.Empty;
string sucess = string.Empty;
string code = string.Empty;
diff --git a/SGGL/FineUIPro.Web/DataShow/JD.aspx b/SGGL/FineUIPro.Web/DataShow/JD.aspx
new file mode 100644
index 00000000..b221328e
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/JD.aspx
@@ -0,0 +1,114 @@
+<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JD.aspx.cs" Inherits="FineUIPro.Web.DataShow.JD" %>
+
+
+
+
+
+ 进度情况
+
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/DataShow/JD.aspx.cs b/SGGL/FineUIPro.Web/DataShow/JD.aspx.cs
new file mode 100644
index 00000000..259ab5a7
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/JD.aspx.cs
@@ -0,0 +1,87 @@
+using BLL;
+using System;
+using System.Collections.Generic;
+using System.Data;
+using System.Data.SqlClient;
+using System.Linq;
+
+namespace FineUIPro.Web.DataShow
+{
+ public partial class JD : PageBase
+ {
+ protected void Page_Load(object sender, EventArgs e)
+ {
+ if (!IsPostBack)
+ {
+ Funs.DropDownPageSize(this.ddlPageSize);
+ ddlPageSize.SelectedValue = Grid1.PageSize.ToString();
+ BLL.ProjectService.InitProjectDropDownList(this.drpProject, true);
+ BindGrid1();
+ }
+ }
+
+ private void BindGrid1()
+ {
+ string strSql = @"select ProjectId,ProjectCode, ProjectName,(select sum(isnull(RealNum,0)) from JDGL_ProgressCompletion a where a.ProjectId=p.ProjectId) as RealNum
+ from Base_Project p where ProjectState =1 ";
+ List listStr = new List();
+ string cpara = string.Empty;
+ if (this.drpProject.SelectedValue != Const._Null)
+ {
+ strSql += " AND p.ProjectId = @projectId";
+ listStr.Add(new SqlParameter("@projectId", this.drpProject.SelectedValue));
+ }
+ SqlParameter[] parameter = listStr.ToArray();
+ DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
+ Grid1.RecordCount = tb.Rows.Count;
+ var table = this.GetPagedDataTable(Grid1, tb);
+ Grid1.DataSource = table;
+ Grid1.DataBind();
+ }
+
+ #region 查询
+ ///
+ /// 查询
+ ///
+ ///
+ ///
+ protected void TextBox_TextChanged(object sender, EventArgs e)
+ {
+ this.BindGrid1();
+ }
+ #endregion
+
+ #region 表排序、分页、关闭窗口
+ ///
+ /// 分页
+ ///
+ ///
+ ///
+ protected void Grid1_PageIndexChange(object sender, GridPageEventArgs e)
+ {
+ BindGrid1();
+ }
+
+ ///
+ /// 排序
+ ///
+ ///
+ ///
+ protected void Grid1_Sort(object sender, GridSortEventArgs e)
+ {
+ BindGrid1();
+ }
+
+ ///
+ /// 分页显示条数下拉框
+ ///
+ ///
+ ///
+ protected void ddlPageSize_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
+ BindGrid1();
+ }
+ #endregion
+ }
+}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/DataShow/JD.aspx.designer.cs b/SGGL/FineUIPro.Web/DataShow/JD.aspx.designer.cs
new file mode 100644
index 00000000..37fd77ce
--- /dev/null
+++ b/SGGL/FineUIPro.Web/DataShow/JD.aspx.designer.cs
@@ -0,0 +1,159 @@
+//------------------------------------------------------------------------------
+// <自动生成>
+// 此代码由工具生成。
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+// 自动生成>
+//------------------------------------------------------------------------------
+
+namespace FineUIPro.Web.DataShow {
+
+
+ public partial class JD {
+
+ ///
+ /// form1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.HtmlControls.HtmlForm form1;
+
+ ///
+ /// PageManager1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.PageManager PageManager1;
+
+ ///
+ /// Panel2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Panel Panel2;
+
+ ///
+ /// TabStrip1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.TabStrip TabStrip1;
+
+ ///
+ /// Tab1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Tab Tab1;
+
+ ///
+ /// Grid1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Grid Grid1;
+
+ ///
+ /// Toolbar2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Toolbar Toolbar2;
+
+ ///
+ /// drpProject 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpProject;
+
+ ///
+ /// btnClose 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnClose;
+
+ ///
+ /// labNumber 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::System.Web.UI.WebControls.Label labNumber;
+
+ ///
+ /// ToolbarSeparator1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
+
+ ///
+ /// ToolbarText1 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.ToolbarText ToolbarText1;
+
+ ///
+ /// ddlPageSize 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList ddlPageSize;
+
+ ///
+ /// Tab2 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Tab Tab2;
+
+ ///
+ /// Tab3 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Tab Tab3;
+
+ ///
+ /// TabOnlineMenuSet 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Tab TabOnlineMenuSet;
+ }
+}
diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
index 858983a7..119da814 100644
--- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -706,6 +706,7 @@
+
@@ -9338,6 +9339,13 @@
InspectionManagementItem.aspx
+
+ JD.aspx
+ ASPXCodeBehind
+
+
+ JD.aspx
+
LargeEngineering.aspx
ASPXCodeBehind
diff --git a/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx.cs
index 82614252..8cdd8295 100644
--- a/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx.cs
+++ b/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx.cs
@@ -423,12 +423,10 @@ namespace FineUIPro.Web.ZHGL.RealName
{
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.HeadImage != null && x.HeadImage.Length > 0
- && !x.RealNameAddTime.HasValue
- && p.IsSynchro == true
+ join pu in Funs.DB.Project_ProjectUnit on new { x.UnitId, x.ProjectId } equals new { pu.UnitId, pu.ProjectId }
+ where x.ProjectId == projectId && x.IsCardNoOK == true && pu.IsSynchro == true
+ && v.TeamId.HasValue && !x.RealNameAddTime.HasValue
+ && x.HeadImage != null && x.HeadImage.Length > 0
select x.IdentityCard).Take(500);
foreach (var item in getIdentityCards)
{
diff --git a/SGGL/FineUIPro.Web/common/main_new.aspx b/SGGL/FineUIPro.Web/common/main_new.aspx
index 06ddcd07..8f87f456 100644
--- a/SGGL/FineUIPro.Web/common/main_new.aspx
+++ b/SGGL/FineUIPro.Web/common/main_new.aspx
@@ -178,7 +178,7 @@
-
+
@@ -529,6 +529,10 @@
// $('iframe').attr('src', '../InterfacePopup/CQMS/QualityProblem.aspx') //关键事项数据
window.open("../DataShow/GJSX.aspx")
+ }else if (type == 'JD') {
+ // $('iframe').attr('src', '../InterfacePopup/CQMS/QualityProblem.aspx') //关键事项数据
+ window.open("../DataShow/JD.aspx")
+
}
else if (type == 'ManagerData') {
// $('iframe').attr('src', '../InterfacePopup/CQMS/ManagerData.aspx') //管理人员数据