diff --git a/DataBase/版本日志/SGGLDB_V2022-012-12-001.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2022-012-12-001.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2022-012-12-001.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2022-012-12-001.sql
diff --git a/DataBase/版本日志/SGGLDB_V2022-12-14.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2022-12-14.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2022-12-14.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2022-12-14.sql
diff --git a/DataBase/版本日志/SGGLDB_V2022-12-25-001.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2022-12-25-001.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2022-12-25-001.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2022-12-25-001.sql
diff --git a/DataBase/版本日志/SGGLDB_V2022-12-26_001.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2022-12-26_001.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2022-12-26_001.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2022-12-26_001.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-01-03_001.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-01-03_001.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-01-03_001.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-01-03_001.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-01-04_gaofei_迁移集团子公司功能脚本.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-01-04_gaofei_迁移集团子公司功能脚本.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-01-04_gaofei_迁移集团子公司功能脚本.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-01-04_gaofei_迁移集团子公司功能脚本.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-01-29_gaofei_迁移五张报表功能脚本.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-01-29_gaofei_迁移五张报表功能脚本.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-01-29_gaofei_迁移五张报表功能脚本.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-01-29_gaofei_迁移五张报表功能脚本.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-02-13_gaofei.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-02-13_gaofei.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-02-13_gaofei.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-02-13_gaofei.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-02-14.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-02-14.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-02-14.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-02-14.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-02-17.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-02-17.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-02-17.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-02-17.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-02-20.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-02-20.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-02-20.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-02-20.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-02-21.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-02-21.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-02-21.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-02-21.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-02-22_gaofei.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-02-22_gaofei.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-02-22_gaofei.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-02-22_gaofei.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-02-23_gaofei.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-02-23_gaofei.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-02-23_gaofei.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-02-23_gaofei.sql
diff --git a/DataBase/版本日志/SGGLDB_V2023-02-28.sql b/DataBase/版本日志/已更新脚本/SGGLDB_V2023-02-28.sql
similarity index 100%
rename from DataBase/版本日志/SGGLDB_V2023-02-28.sql
rename to DataBase/版本日志/已更新脚本/SGGLDB_V2023-02-28.sql
diff --git a/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs b/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs
index e61322ac..70ebb554 100644
--- a/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs
+++ b/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs
@@ -256,10 +256,13 @@ namespace BLL
Success = Success,
Code = Code,
Message = Message,
- PushTime = DateTime.Now,
- ReturnData = ReturnData,
- PushContent = PushContent,
+ PushTime = DateTime.Now,
};
+ if (Code != "200")
+ {
+ newLog.ReturnData = ReturnData;
+ newLog.PushContent = PushContent;
+ }
db.RealName_PushLog.InsertOnSubmit(newLog);
db.SubmitChanges();
}
@@ -1029,6 +1032,7 @@ namespace BLL
x.RealNameAddTime,
x.RealNameUpdateTime,
x.PersonId,
+ x.SitePersonId,
}).Take(200).ToList();
if (getData.Count() > 0)
{
@@ -1069,7 +1073,7 @@ namespace BLL
{
foreach (var item in getData)
{
- var getPerson = db.SitePerson_Person.FirstOrDefault(x => x.PersonId == item.PersonId);
+ var getPerson = db.SitePerson_Person.FirstOrDefault(x => x.SitePersonId == item.SitePersonId);
if (getPerson != null)
{
if (!getPerson.RealNameAddTime.HasValue)
@@ -1162,6 +1166,7 @@ namespace BLL
x.RealNameAddTime,
x.RealNameUpdateTime,
x.PersonId,
+ x.SitePersonId,
}).ToList();
if (getData.Count() > 0)
{
@@ -1202,7 +1207,7 @@ namespace BLL
{
foreach (var item in getData)
{
- var getPerson = db.SitePerson_Person.FirstOrDefault(x => x.PersonId == item.PersonId);
+ var getPerson = db.SitePerson_Person.FirstOrDefault(x => x.SitePersonId == item.SitePersonId);
if (getPerson != null)
{
if (!getPerson.RealNameAddTime.HasValue)
@@ -1228,7 +1233,7 @@ namespace BLL
}
InsertRealNamePushLog(null, proCode, "推送人员数据", sucess, code, mess, data, pushContent);
- if (data.Contains("已存在") || mess.Contains("已存在"))
+ if (data.Contains("已存在") || mess.Contains("已存在") || mess.Contains("重合") || data.Contains("重合"))
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
@@ -1236,7 +1241,133 @@ namespace BLL
{
if (data.Contains(item.idcardNumber) || mess.Contains(item.idcardNumber))
{
- var getPerson = db.SitePerson_Person.FirstOrDefault(x => x.PersonId == item.PersonId);
+ var getPerson = db.SitePerson_Person.FirstOrDefault(x => x.SitePersonId == item.SitePersonId);
+ if (getPerson != null)
+ {
+ if (!getPerson.RealNameAddTime.HasValue)
+ {
+ getPerson.RealNameAddTime = DateTime.Now;
+ }
+ db.SubmitChanges();
+ }
+ }
+ }
+ }
+ }
+ }
+ else
+ {
+ mess = "没有符合条件的数据!";
+ }
+
+ return mess;
+ }
+ catch (Exception ex)
+ {
+ ErrLogInfo.WriteLog(ex, "推送人员数据", "SynchroSetService.PushPersons");
+ return "推送人员异常";
+ }
+ }
+
+ ///
+ /// 推送人员数据
+ ///
+ ///
+ public static string PushPersonsByIdentityCardUpdate(string proCode, string identityCard)
+ {
+ 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 Persons in Funs.DB.Person_Persons on x.IdentityCard equals Persons.IdentityCard
+ 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
+ select new
+ {
+ name = x.PersonName,
+ idcardType = "SHENFEN_ZHENGJIAN",
+ idcardNumber = x.IdentityCard,
+ proCode = z.JTproCode,
+ teamId = v.TeamId,
+ 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,
+ x.SitePersonId,
+ }).ToList();
+ if (getData.Count() > 0)
+ {
+ string returndata = string.Empty;
+ Hashtable newToken = new Hashtable
+ {
+ { "token", getaccess_token(proCode) }
+ };
+ var updatelistObject = new
+ {
+ list = getData.Select(x => new { x.name, x.idcardType, x.idcardNumber, x.proCode, x.teamId, 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, JsonConvert.SerializeObject(updatelistObject));
+
+ 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.SitePersonId == item.SitePersonId);
+ if (getPerson != null)
+ {
+ if (!getPerson.RealNameAddTime.HasValue)
+ {
+ getPerson.RealNameAddTime = DateTime.Now;
+ }
+ 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("已存在") || mess.Contains("重合") || data.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.SitePersonId == item.SitePersonId);
if (getPerson != null)
{
if (!getPerson.RealNameAddTime.HasValue)
@@ -1295,6 +1426,7 @@ namespace BLL
x.RealNameUpdateTime,
name = x.PersonName,
x.PersonId,
+ x.SitePersonId,
});
if (getData.Count() > 0)
{
@@ -1324,7 +1456,7 @@ namespace BLL
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
- var getPerson = db.SitePerson_Person.FirstOrDefault(x => x.PersonId == itemData.PersonId);
+ var getPerson = db.SitePerson_Person.FirstOrDefault(x => x.SitePersonId == itemData.SitePersonId);
if (getPerson != null)
{
if (!getPerson.RealNameAddTime.HasValue)
@@ -1637,6 +1769,7 @@ namespace BLL
x.RealNameAddTime,
x.RealNameUpdateTime,
x.PersonId,
+ x.SitePersonId,
}).ToList();
if (getData.Count() > 0)
{
diff --git a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
index 4569499c..c9300a95 100644
--- a/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
+++ b/SGGL/FineUIPro.Web/FineUIPro.Web.csproj
@@ -12820,7 +12820,7 @@
True
0
/
- http://localhost:1783/
+ http://localhost:2087/
False
False
diff --git a/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroRecord.aspx b/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroRecord.aspx
index b005d67e..9c5e7dee 100644
--- a/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroRecord.aspx
+++ b/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroRecord.aspx
@@ -31,6 +31,9 @@
+
+
@@ -38,6 +41,8 @@
+
+
diff --git a/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroRecord.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroRecord.aspx.cs
index c6c05e3d..be1c5357 100644
--- a/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroRecord.aspx.cs
+++ b/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroRecord.aspx.cs
@@ -5,6 +5,7 @@ using System.Data;
using System.Data.SqlClient;
using System.Text;
using AspNet = System.Web.UI.WebControls;
+using System.Linq;
namespace FineUIPro.Web.ZHGL.RealName
{
@@ -22,6 +23,12 @@ namespace FineUIPro.Web.ZHGL.RealName
Funs.DropDownPageSize(this.ddlPageSize);
this.txtStartDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", DateTime.Now);
+ ProjectService.InitAllProjectShortNameDropDownList(this.drpProject, this.CurrUser.PersonId, true);
+ if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
+ {
+ this.drpProject.SelectedValue = this.CurrUser.LoginProjectId;
+ this.drpProject.Readonly = true;
+ }
this.GridBind();
}
}
@@ -46,6 +53,11 @@ namespace FineUIPro.Web.ZHGL.RealName
strSql += " AND PushTime < @EndDate";
listStr.Add(new SqlParameter("@EndDate", Funs.GetNewDateTime(this.txtEndDate.Text).Value.AddDays(1)));
}
+ if (this.drpProject.SelectedValue != Const._Null && !string.IsNullOrEmpty(this.drpProject.SelectedValue))
+ {
+ strSql += " AND ProjectId = @ProjectId";
+ listStr.Add(new SqlParameter("@ProjectId", this.drpProject.SelectedValue));
+ }
if (!string.IsNullOrEmpty(this.txtConet.Text))
{
strSql += " AND (Success LIKE @name OR Message LIKE @name OR ReturnData LIKE @name)";
@@ -154,5 +166,23 @@ namespace FineUIPro.Web.ZHGL.RealName
this.GridBind();
}
#endregion
+
+ protected void drpProject_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ GridBind();
+ }
+
+ protected void btnDele_Click(object sender, EventArgs e)
+ {
+ using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
+ {
+ var getRealName_PushLog = from x in db.RealName_PushLog select x;
+ if (getRealName_PushLog.Count() > 0)
+ {
+ db.RealName_PushLog.DeleteAllOnSubmit(getRealName_PushLog);
+ db.SubmitChanges();
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroRecord.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroRecord.aspx.designer.cs
index ae73923c..68555445 100644
--- a/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroRecord.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroRecord.aspx.designer.cs
@@ -7,11 +7,13 @@
// 自动生成>
//------------------------------------------------------------------------------
-namespace FineUIPro.Web.ZHGL.RealName {
-
-
- public partial class SynchroRecord {
-
+namespace FineUIPro.Web.ZHGL.RealName
+{
+
+
+ public partial class SynchroRecord
+ {
+
///
/// form1 控件。
///
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
+
///
/// PageManager1 控件。
///
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.PageManager PageManager1;
-
+
///
/// Panel1 控件。
///
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel Panel1;
-
+
///
/// Grid1 控件。
///
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Grid Grid1;
-
+
///
/// Toolbar2 控件。
///
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar2;
-
+
///
/// txtStartDate 控件。
///
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DatePicker txtStartDate;
-
+
///
/// txtEndDate 控件。
///
@@ -74,7 +76,16 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DatePicker txtEndDate;
-
+
+ ///
+ /// drpProject 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpProject;
+
///
/// txtConet 控件。
///
@@ -83,7 +94,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtConet;
-
+
///
/// btnSearch 控件。
///
@@ -92,7 +103,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnSearch;
-
+
///
/// btnOut 控件。
///
@@ -101,7 +112,16 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnOut;
-
+
+ ///
+ /// btnDele 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnDele;
+
///
/// labNumber 控件。
///
@@ -110,7 +130,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.WebControls.Label labNumber;
-
+
///
/// ToolbarSeparator1 控件。
///
@@ -119,7 +139,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
-
+
///
/// ToolbarText1 控件。
///
@@ -128,7 +148,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.ToolbarText ToolbarText1;
-
+
///
/// ddlPageSize 控件。
///
diff --git a/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx b/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx
index edd23e64..3d6180d4 100644
--- a/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx
+++ b/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx
@@ -41,11 +41,15 @@
-
+
-
+
+
+
diff --git a/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx.cs b/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx.cs
index a8ffca45..bb265d3b 100644
--- a/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx.cs
+++ b/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx.cs
@@ -287,7 +287,33 @@ namespace FineUIPro.Web.ZHGL.RealName
}
}
}
+ protected void btnPushUpdate_Click(object sender, EventArgs e)
+ {
+ string message = string.Empty;
+ string idText = this.txtIdentityCard.Text.Trim();
+ if (!string.IsNullOrEmpty(idText))
+ {
+ string proCode = ProjectService.GetContractNoByProjectId(this.drpProject.SelectedValue);
+ var getRProjects = Funs.DB.RealName_Project.FirstOrDefault(x => x.ProCode == proCode);
+ if (getRProjects != null && !string.IsNullOrEmpty(getRProjects.ProCode))
+ {
+ var getList = returnCardList();
+ if (getList != null && getList.Count > 0)
+ {
+ foreach (var item in getList)
+ {
+ message += ("项目" + getRProjects.ProCode + "更新" + BLL.SynchroSetService.PushPersonsByIdentityCardUpdate(getRProjects.ProCode, item) ?? "");
+ }
+ ShowNotify(message, MessageBoxIcon.Information);
+ }
+ }
+ else
+ {
+ ShowNotify("当前项目还没有与实名制对接!", MessageBoxIcon.Information);
+ }
+ }
+ }
protected void btnDelete_Click(object sender, EventArgs e)
{
var getList = returnCardList();
@@ -637,5 +663,7 @@ namespace FineUIPro.Web.ZHGL.RealName
ShowNotify("操作完成!" + count.ToString() + "条", MessageBoxIcon.Success);
}
}
+
+
}
}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx.designer.cs b/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx.designer.cs
index d64ef60f..af7b65e6 100644
--- a/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/ZHGL/RealName/SynchroSet.aspx.designer.cs
@@ -7,11 +7,13 @@
// 自动生成>
//------------------------------------------------------------------------------
-namespace FineUIPro.Web.ZHGL.RealName {
-
-
- public partial class SynchroSet {
-
+namespace FineUIPro.Web.ZHGL.RealName
+{
+
+
+ public partial class SynchroSet
+ {
+
///
/// form1 控件。
///
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
+
///
/// PageManager1 控件。
///
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.PageManager PageManager1;
-
+
///
/// SimpleForm1 控件。
///
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Form SimpleForm1;
-
+
///
/// txtapiUrl 控件。
///
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtapiUrl;
-
+
///
/// txtUserName 控件。
///
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtUserName;
-
+
///
/// txtword 控件。
///
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtword;
-
+
///
/// txtclientId 控件。
///
@@ -74,7 +76,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtclientId;
-
+
///
/// txtintervaltime 控件。
///
@@ -83,7 +85,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.NumberBox txtintervaltime;
-
+
///
/// txtIdentityCard 控件。
///
@@ -92,7 +94,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextArea txtIdentityCard;
-
+
///
/// btnPushData 控件。
///
@@ -101,7 +103,16 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnPushData;
-
+
+ ///
+ /// btnPushUpdate 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnPushUpdate;
+
///
/// btnDelete 控件。
///
@@ -110,7 +121,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnDelete;
-
+
///
/// Toolbar1 控件。
///
@@ -119,7 +130,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar1;
-
+
///
/// btnConnect 控件。
///
@@ -128,7 +139,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnConnect;
-
+
///
/// btnSave 控件。
///
@@ -137,7 +148,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnSave;
-
+
///
/// drpProject 控件。
///
@@ -146,7 +157,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.DropDownList drpProject;
-
+
///
/// btnCompany 控件。
///
@@ -155,7 +166,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnCompany;
-
+
///
/// btnProCollCompany 控件。
///
@@ -164,7 +175,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnProCollCompany;
-
+
///
/// btnCollTeam 控件。
///
@@ -173,7 +184,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnCollTeam;
-
+
///
/// btnPersons 控件。
///
@@ -182,7 +193,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnPersons;
-
+
///
/// btnAttendance 控件。
///
@@ -191,7 +202,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnAttendance;
-
+
///
/// btnDataProcess 控件。
///
@@ -200,7 +211,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnDataProcess;
-
+
///
/// Toolbar2 控件。
///
@@ -209,7 +220,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar2;
-
+
///
/// lbProjectInfo 控件。
///
@@ -218,7 +229,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Label lbProjectInfo;
-
+
///
/// btnCanelUpdate 控件。
///
@@ -227,7 +238,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnCanelUpdate;
-
+
///
/// btnupdatePersonsExitTime 控件。
///
@@ -236,7 +247,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnupdatePersonsExitTime;
-
+
///
/// btnAllPushData 控件。
///
@@ -245,7 +256,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnAllPushData;
-
+
///
/// btnUpdate 控件。
///
@@ -254,7 +265,7 @@ namespace FineUIPro.Web.ZHGL.RealName {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnUpdate;
-
+
///
/// btnKQ 控件。
///
diff --git a/SGGL/WebAPI/WebAPI.csproj b/SGGL/WebAPI/WebAPI.csproj
index a240e131..30f4ed47 100644
--- a/SGGL/WebAPI/WebAPI.csproj
+++ b/SGGL/WebAPI/WebAPI.csproj
@@ -50,9 +50,8 @@
bin\WebAPI.xml
-
- False
- bin\Aspose.Words.dll
+
+ ..\FineUIPro\Reference BLL\Aspose.Words.dll