diff --git a/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs b/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs index f3c71dd6..4a0bc23c 100644 --- a/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs +++ b/SGGL/BLL/ZHGL/RealName/SynchroSetService.cs @@ -1444,10 +1444,10 @@ namespace BLL 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 z in Funs.DB.RealName_Project on y.JTProjectCode 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 + where x.IdentityCard == identityCard && y.JTProjectCode == 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 @@ -1507,7 +1507,7 @@ namespace BLL pushContent = JsonConvert.SerializeObject(addlistObject); returndata = BLL.APIGetHttpService.OutsideHttp(Funs.RealNameApiUrl + "/foreignApi/accept/persons", "POST", contenttype, newToken, pushContent); } - + InsertRealNamePushLog(null, proCode, "推送人员数据", sucess, code, mess, returndata, pushContent); if (!string.IsNullOrEmpty(returndata)) { JObject obj = JObject.Parse(returndata); @@ -1545,8 +1545,7 @@ namespace BLL } } } - - InsertRealNamePushLog(null, proCode, "推送人员数据", sucess, code, mess, data, pushContent); + //InsertRealNamePushLog(null, proCode, "推送人员数据", sucess, code, mess, data, pushContent); if (data.Contains("已存在") || mess.Contains("已存在")) { using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString)) diff --git a/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx.cs b/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx.cs index d7f72a25..b3ce619e 100644 --- a/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/EduTrain.aspx.cs @@ -91,7 +91,8 @@ namespace FineUIPro.Web.DataShow TrainDepart as UnitName From Bo_Sheng_Train F LEFT JOIN Base_Project AS Project ON F.ProjectId=Project.ProjectId - )f WHERE 1=1 and Project.ProjectState ='1' "; + where Project.ProjectState ='1' + )f WHERE 1=1 "; #region 总数 var strSqlSum = @"select Count(*)as allCount from( @@ -129,7 +130,8 @@ namespace FineUIPro.Web.DataShow TrainDepart as UnitName From Bo_Sheng_Train F LEFT JOIN Base_Project AS Project ON F.ProjectId=Project.ProjectId - )f WHERE 1=1 and Project.ProjectState ='1'" ; + WHERE Project.ProjectState ='1' + )f WHERE 1=1 " ; #endregion if (this.drpProject.SelectedValue != Const._Null) diff --git a/SGGL/FineUIPro.Web/DataShow/GJSX.aspx.cs b/SGGL/FineUIPro.Web/DataShow/GJSX.aspx.cs index a11485ee..f86554fa 100644 --- a/SGGL/FineUIPro.Web/DataShow/GJSX.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/GJSX.aspx.cs @@ -166,7 +166,7 @@ namespace FineUIPro.Web.DataShow { var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text); var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text); - var getT = Funs.DB.GJSX.Where(x => x.ProjectId == projectId.ToString()); + var getT = Funs.DB.GJSX.Where(x => x.ProjectId == projectId.ToString() && x.State != "1"); if (datetime1.HasValue) { getT = getT.Where(x => x.CreateDate >= datetime1); @@ -210,7 +210,7 @@ namespace FineUIPro.Web.DataShow { var datetime1 = Funs.GetNewDateTime(this.txtStartTime.Text); var datetime2 = Funs.GetNewDateTime(this.txtStartTime.Text); - var getT = Funs.DB.GJSX.Where(x => x.ProjectId == projectId.ToString() && x.State != "0"); + var getT = Funs.DB.GJSX.Where(x => x.ProjectId == projectId.ToString() && x.State != "0" && x.State != "1"); if (datetime1.HasValue) { getT = getT.Where(x => x.CreateDate >= datetime1); diff --git a/SGGL/FineUIPro.Web/DataShow/GJSXItem.aspx.cs b/SGGL/FineUIPro.Web/DataShow/GJSXItem.aspx.cs index 6e6d7ba2..806405e5 100644 --- a/SGGL/FineUIPro.Web/DataShow/GJSXItem.aspx.cs +++ b/SGGL/FineUIPro.Web/DataShow/GJSXItem.aspx.cs @@ -39,7 +39,7 @@ namespace FineUIPro.Web.DataShow /// private void BindGrid() { - string strSql = ""; + string strSql = "and state <> '1'"; List listStr = new List(); listStr.Add(new SqlParameter("@ProjectId", Request.Params["projectId"])); diff --git a/SGGL/FineUIPro.Web/DataShow/JD.aspx b/SGGL/FineUIPro.Web/DataShow/JD.aspx index b221328e..5c6718d2 100644 --- a/SGGL/FineUIPro.Web/DataShow/JD.aspx +++ b/SGGL/FineUIPro.Web/DataShow/JD.aspx @@ -23,8 +23,8 @@ - @@ -56,10 +56,16 @@ - - + + + + @@ -77,10 +83,144 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +