20210708
This commit is contained in:
parent
7f785d6423
commit
e092c6cfb0
|
@ -1073,7 +1073,7 @@ namespace BLL
|
||||||
db.SitePerson_PersonInOut.InsertOnSubmit(newInOut);
|
db.SitePerson_PersonInOut.InsertOnSubmit(newInOut);
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
|
|
||||||
string proCode = ProjectService.GetProjectCodeByProjectId(projectId);
|
string proCode = ProjectService.GetJTProjectCodeByProjectId(projectId);
|
||||||
Model.SitePerson_PersonInOutNow newNow = new Model.SitePerson_PersonInOutNow
|
Model.SitePerson_PersonInOutNow newNow = new Model.SitePerson_PersonInOutNow
|
||||||
{
|
{
|
||||||
PersonInOutId = newInOut.PersonInOutId,
|
PersonInOutId = newInOut.PersonInOutId,
|
||||||
|
|
|
@ -47,6 +47,25 @@
|
||||||
}
|
}
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
///根据ID获取项目编号
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
|
public static string GetJTProjectCodeByProjectId(string projectId)
|
||||||
|
{
|
||||||
|
string name = string.Empty;
|
||||||
|
var project = Funs.DB.Base_Project.FirstOrDefault(e => e.ProjectId == projectId);
|
||||||
|
if (project != null)
|
||||||
|
{
|
||||||
|
name = project.JTProjectCode;
|
||||||
|
if (string.IsNullOrEmpty(name))
|
||||||
|
{
|
||||||
|
name = project.ProjectCode;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
|
||||||
public static Model.Base_Project GetProjectByProjectShortName(string name)
|
public static Model.Base_Project GetProjectByProjectShortName(string name)
|
||||||
{
|
{
|
||||||
return Funs.DB.Base_Project.FirstOrDefault(e => e.ShortName == name);
|
return Funs.DB.Base_Project.FirstOrDefault(e => e.ShortName == name);
|
||||||
|
@ -82,6 +101,7 @@
|
||||||
{
|
{
|
||||||
ProjectId = project.ProjectId,
|
ProjectId = project.ProjectId,
|
||||||
ProjectCode = project.ProjectCode,
|
ProjectCode = project.ProjectCode,
|
||||||
|
JTProjectCode = project.JTProjectCode,
|
||||||
ProjectName = project.ProjectName,
|
ProjectName = project.ProjectName,
|
||||||
StartDate = project.StartDate,
|
StartDate = project.StartDate,
|
||||||
EndDate = project.EndDate,
|
EndDate = project.EndDate,
|
||||||
|
@ -127,6 +147,7 @@
|
||||||
if (newProject != null)
|
if (newProject != null)
|
||||||
{
|
{
|
||||||
newProject.ProjectCode = project.ProjectCode;
|
newProject.ProjectCode = project.ProjectCode;
|
||||||
|
newProject.JTProjectCode = project.JTProjectCode;
|
||||||
newProject.ProjectName = project.ProjectName;
|
newProject.ProjectName = project.ProjectName;
|
||||||
newProject.StartDate = project.StartDate;
|
newProject.StartDate = project.StartDate;
|
||||||
newProject.EndDate = project.EndDate;
|
newProject.EndDate = project.EndDate;
|
||||||
|
|
|
@ -226,7 +226,7 @@ namespace BLL
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 实名制推送记录日志
|
/// 实名制推送记录日志
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static void InsertRealNamePushLog(string ProjectId, string ProjectCode, string PushType, string Success, string Code, string Message)
|
public static void InsertRealNamePushLog(string ProjectId, string JTProjectCode, string PushType, string Success, string Code, string Message)
|
||||||
{
|
{
|
||||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||||
{
|
{
|
||||||
|
@ -234,7 +234,7 @@ namespace BLL
|
||||||
{
|
{
|
||||||
PushLogId = SQLHelper.GetNewID(),
|
PushLogId = SQLHelper.GetNewID(),
|
||||||
ProjectId = ProjectId,
|
ProjectId = ProjectId,
|
||||||
ProjectCode = ProjectCode,
|
ProjectCode = JTProjectCode,
|
||||||
PushType = PushType,
|
PushType = PushType,
|
||||||
Success = Success,
|
Success = Success,
|
||||||
Code = Code,
|
Code = Code,
|
||||||
|
@ -479,19 +479,16 @@ namespace BLL
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="type"></param>
|
/// <param name="type"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public static string getProject()
|
public static string getProject(string proCode)
|
||||||
{
|
{
|
||||||
Model.SGGLDB db = Funs.DB;
|
|
||||||
string mess = string.Empty;
|
string mess = string.Empty;
|
||||||
string sucess = string.Empty;
|
string sucess = string.Empty;
|
||||||
string code = string.Empty;
|
string code = string.Empty;
|
||||||
string proCode = string.Empty;
|
|
||||||
string contenttype = "application/json;charset=unicode";
|
string contenttype = "application/json;charset=unicode";
|
||||||
|
|
||||||
string url = Funs.RealNameApiUrl + "/foreignApi/baseData/getProjectList";
|
string url = Funs.RealNameApiUrl + "/foreignApi/baseData/getProjectList";
|
||||||
Hashtable newToken = new Hashtable
|
Hashtable newToken = new Hashtable
|
||||||
{
|
{
|
||||||
{ "token", getaccess_token(null) }
|
{ "token", getaccess_token(proCode) }
|
||||||
};
|
};
|
||||||
var returndata = BLL.APIGetHttpService.OutsideHttp(url, "POST", contenttype, newToken, null);
|
var returndata = BLL.APIGetHttpService.OutsideHttp(url, "POST", contenttype, newToken, null);
|
||||||
if (!string.IsNullOrEmpty(returndata))
|
if (!string.IsNullOrEmpty(returndata))
|
||||||
|
@ -510,12 +507,12 @@ namespace BLL
|
||||||
string proShortName = item["proShortName"].ToString();
|
string proShortName = item["proShortName"].ToString();
|
||||||
if (!string.IsNullOrEmpty(proCode))
|
if (!string.IsNullOrEmpty(proCode))
|
||||||
{
|
{
|
||||||
var getProject = db.RealName_Project.FirstOrDefault(x => x.ProCode == proCode);
|
var getProject = Funs.DB.RealName_Project.FirstOrDefault(x => x.ProCode == proCode);
|
||||||
if (getProject != null)
|
if (getProject != null)
|
||||||
{
|
{
|
||||||
getProject.ProName = proName;
|
getProject.ProName = proName;
|
||||||
getProject.ProShortName = proShortName;
|
getProject.ProShortName = proShortName;
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -526,8 +523,8 @@ namespace BLL
|
||||||
ProName = proName,
|
ProName = proName,
|
||||||
ProShortName = proShortName
|
ProShortName = proShortName
|
||||||
};
|
};
|
||||||
db.RealName_Project.InsertOnSubmit(newProject);
|
Funs.DB.RealName_Project.InsertOnSubmit(newProject);
|
||||||
db.SubmitChanges();
|
Funs.DB.SubmitChanges();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -714,15 +711,15 @@ namespace BLL
|
||||||
string url = Funs.RealNameApiUrl + "/foreignApi/accept/proCollCompany";
|
string url = Funs.RealNameApiUrl + "/foreignApi/accept/proCollCompany";
|
||||||
var getProjectUnits = (from x in db.Project_ProjectUnit
|
var getProjectUnits = (from x in db.Project_ProjectUnit
|
||||||
join y in db.Base_Project on x.ProjectId equals y.ProjectId
|
join y in db.Base_Project on x.ProjectId equals y.ProjectId
|
||||||
join z in db.RealName_Project on y.ProjectCode equals z.ProCode
|
join z in db.RealName_Project on y.JTProjectCode equals z.ProCode
|
||||||
join u in db.Base_Unit on x.UnitId equals u.UnitId
|
join u in db.Base_Unit on x.UnitId equals u.UnitId
|
||||||
where z.ProCode != null && !x.RealNamePushTime.HasValue && x.UnitType != null
|
where z.ProCode != null && !x.RealNamePushTime.HasValue && x.UnitType != null
|
||||||
&& (proCode == null || y.ProjectCode == proCode)
|
&& (proCode == null || y.JTProjectCode == proCode)
|
||||||
&& u.CollCropCode != null && u.CollCropCode != ""
|
&& u.CollCropCode != null && u.CollCropCode != ""
|
||||||
select new
|
select new
|
||||||
{
|
{
|
||||||
unitId=x.UnitId,
|
unitId=x.UnitId,
|
||||||
proCode = y.ProjectCode,
|
proCode = y.JTProjectCode,
|
||||||
collCropCode = u.CollCropCode,
|
collCropCode = u.CollCropCode,
|
||||||
collCropType = db.Sys_Const.First(t => t.GroupId == ConstValue.Group_ProjectUnitType && t.ConstValue == x.UnitType).Remark,
|
collCropType = db.Sys_Const.First(t => t.GroupId == ConstValue.Group_ProjectUnitType && t.ConstValue == x.UnitType).Remark,
|
||||||
entryTime = string.Format("{0:yyyy-MM-dd}", x.InTime),
|
entryTime = string.Format("{0:yyyy-MM-dd}", x.InTime),
|
||||||
|
@ -834,16 +831,16 @@ namespace BLL
|
||||||
string url = Funs.RealNameApiUrl + "/foreignApi/accept/collTeam";
|
string url = Funs.RealNameApiUrl + "/foreignApi/accept/collTeam";
|
||||||
var getCollTeam = (from x in Funs.DB.ProjectData_TeamGroup
|
var getCollTeam = (from x in Funs.DB.ProjectData_TeamGroup
|
||||||
join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId
|
join y in Funs.DB.Base_Project on x.ProjectId equals y.ProjectId
|
||||||
join z in Funs.DB.RealName_Project on y.ProjectCode equals z.ProCode
|
join z in Funs.DB.RealName_Project on y.JTProjectCode equals z.ProCode
|
||||||
join u in Funs.DB.Base_Unit on x.UnitId equals u.UnitId
|
join u in Funs.DB.Base_Unit on x.UnitId equals u.UnitId
|
||||||
join s in Funs.DB.SitePerson_Person on x.GroupLeaderId equals s.PersonId into jonPerson
|
join s in Funs.DB.SitePerson_Person on x.GroupLeaderId equals s.PersonId into jonPerson
|
||||||
from s in jonPerson.DefaultIfEmpty()
|
from s in jonPerson.DefaultIfEmpty()
|
||||||
where z.ProCode != null && !x.RealNamePushTime.HasValue && x.TeamTypeId != null
|
where z.ProCode != null && !x.RealNamePushTime.HasValue && x.TeamTypeId != null
|
||||||
&& (proCode == null || y.ProjectCode == proCode)
|
&& (proCode == null || y.JTProjectCode == proCode)
|
||||||
&& u.CollCropCode != null && u.CollCropCode != ""
|
&& u.CollCropCode != null && u.CollCropCode != ""
|
||||||
select new
|
select new
|
||||||
{
|
{
|
||||||
proCode = y.ProjectCode,
|
proCode = y.JTProjectCode,
|
||||||
collCropCode = u.CollCropCode,
|
collCropCode = u.CollCropCode,
|
||||||
teamType = x.TeamTypeId,
|
teamType = x.TeamTypeId,
|
||||||
teamName = x.TeamGroupName,
|
teamName = x.TeamGroupName,
|
||||||
|
@ -920,7 +917,7 @@ namespace BLL
|
||||||
join v in Funs.DB.ProjectData_TeamGroup on x.TeamGroupId equals v.TeamGroupId
|
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
|
join w in Funs.DB.Base_WorkPost on x.WorkPostId equals w.WorkPostId
|
||||||
where ((x.IdentityCard != null && x.IdentityCard != "" && identityCard == null) || (identityCard != null && x.IdentityCard == identityCard))
|
where ((x.IdentityCard != null && x.IdentityCard != "" && identityCard == null) || (identityCard != null && x.IdentityCard == identityCard))
|
||||||
&& y.ProjectCode == proCode
|
&& y.JTProjectCode == proCode
|
||||||
&& v.TeamId.HasValue && x.HeadImage != null && x.HeadImage.Length > 0
|
&& v.TeamId.HasValue && x.HeadImage != null && x.HeadImage.Length > 0
|
||||||
&& ((type == Const.BtnModify && !x.RealNameUpdateTime.HasValue) || (type != Const.BtnModify && !x.RealNameAddTime.HasValue))
|
&& ((type == Const.BtnModify && !x.RealNameUpdateTime.HasValue) || (type != Const.BtnModify && !x.RealNameAddTime.HasValue))
|
||||||
&& ((x.IdcardType == null || x.IdcardType == "SHENFEN_ZHENGJIAN")
|
&& ((x.IdcardType == null || x.IdcardType == "SHENFEN_ZHENGJIAN")
|
||||||
|
@ -946,7 +943,7 @@ namespace BLL
|
||||||
//positiveIdcardImage = db.AttachFile.First(t => (x.PersonId + "#1") == t.ToKeyId).ImageByte,
|
//positiveIdcardImage = db.AttachFile.First(t => (x.PersonId + "#1") == t.ToKeyId).ImageByte,
|
||||||
//negativeIdcardImage = db.AttachFile.First(t => (x.PersonId + "#5") == t.ToKeyId).ImageByte,
|
//negativeIdcardImage = db.AttachFile.First(t => (x.PersonId + "#5") == t.ToKeyId).ImageByte,
|
||||||
headImage = x.HeadImage,
|
headImage = x.HeadImage,
|
||||||
proCode = y.ProjectCode,
|
proCode = y.JTProjectCode,
|
||||||
teamId = v.TeamId,
|
teamId = v.TeamId,
|
||||||
mobile = x.Telephone,
|
mobile = x.Telephone,
|
||||||
teamLeaderFlag = (v.GroupLeaderId == x.PersonId ? "Y" : "N"),
|
teamLeaderFlag = (v.GroupLeaderId == x.PersonId ? "Y" : "N"),
|
||||||
|
@ -1043,7 +1040,7 @@ namespace BLL
|
||||||
join u in Funs.DB.Base_Unit on x.UnitId equals u.UnitId
|
join u in Funs.DB.Base_Unit on x.UnitId equals u.UnitId
|
||||||
join v in Funs.DB.ProjectData_TeamGroup on x.TeamGroupId equals v.TeamGroupId
|
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
|
join w in Funs.DB.Base_WorkPost on x.WorkPostId equals w.WorkPostId
|
||||||
where x.IdentityCard == identityCard && y.ProjectCode == proCode
|
where x.IdentityCard == identityCard && y.JTProjectCode == proCode
|
||||||
&& v.TeamId.HasValue && x.HeadImage != null && x.HeadImage.Length > 0
|
&& v.TeamId.HasValue && x.HeadImage != null && x.HeadImage.Length > 0
|
||||||
&& ((x.IdcardType == null || x.IdcardType == "SHENFEN_ZHENGJIAN")
|
&& ((x.IdcardType == null || x.IdcardType == "SHENFEN_ZHENGJIAN")
|
||||||
&& (x.IdentityCard.Length == 15 || x.IdentityCard.Length == 18))
|
&& (x.IdentityCard.Length == 15 || x.IdentityCard.Length == 18))
|
||||||
|
@ -1066,7 +1063,7 @@ namespace BLL
|
||||||
countryCode = x.CountryCode,
|
countryCode = x.CountryCode,
|
||||||
provinceCode = x.ProvinceCode,
|
provinceCode = x.ProvinceCode,
|
||||||
headImage = x.HeadImage,
|
headImage = x.HeadImage,
|
||||||
proCode = y.ProjectCode,
|
proCode = y.JTProjectCode,
|
||||||
teamId = v.TeamId,
|
teamId = v.TeamId,
|
||||||
mobile = x.Telephone,
|
mobile = x.Telephone,
|
||||||
teamLeaderFlag = (v.GroupLeaderId == x.PersonId ? "Y" : "N"),
|
teamLeaderFlag = (v.GroupLeaderId == x.PersonId ? "Y" : "N"),
|
||||||
|
@ -1168,6 +1165,7 @@ namespace BLL
|
||||||
where x.IdcardNumber != null && x.IdcardType != null && x.ChangeTime.HasValue
|
where x.IdcardNumber != null && x.IdcardType != null && x.ChangeTime.HasValue
|
||||||
&& (proCode == null || x.ProCode == proCode) && p.HeadImage != null && p.HeadImage.Length > 0
|
&& (proCode == null || x.ProCode == proCode) && p.HeadImage != null && p.HeadImage.Length > 0
|
||||||
&& v.TeamId.HasValue && p.HeadImage != null && r.TeamId.HasValue
|
&& v.TeamId.HasValue && p.HeadImage != null && r.TeamId.HasValue
|
||||||
|
&& (p.IdentityCard.Length == 15 || p.IdentityCard.Length == 18)
|
||||||
select new
|
select new
|
||||||
{
|
{
|
||||||
p.PersonId,
|
p.PersonId,
|
||||||
|
@ -1313,7 +1311,7 @@ namespace BLL
|
||||||
where teamGroupIds.Contains(x.TeamGroupId)
|
where teamGroupIds.Contains(x.TeamGroupId)
|
||||||
select new
|
select new
|
||||||
{
|
{
|
||||||
proCode = y.ProjectCode,
|
proCode = y.JTProjectCode,
|
||||||
collCropCode = u.CollCropCode,
|
collCropCode = u.CollCropCode,
|
||||||
teamType = x.TeamTypeId,
|
teamType = x.TeamTypeId,
|
||||||
teamName = x.TeamGroupName,
|
teamName = x.TeamGroupName,
|
||||||
|
@ -1371,7 +1369,7 @@ namespace BLL
|
||||||
//positiveIdcardImage = db.AttachFile.First(t => (x.PersonId + "#1") == t.ToKeyId).ImageByte,
|
//positiveIdcardImage = db.AttachFile.First(t => (x.PersonId + "#1") == t.ToKeyId).ImageByte,
|
||||||
//negativeIdcardImage = db.AttachFile.First(t => (x.PersonId + "#5") == t.ToKeyId).ImageByte,
|
//negativeIdcardImage = db.AttachFile.First(t => (x.PersonId + "#5") == t.ToKeyId).ImageByte,
|
||||||
headImage = x.HeadImage,
|
headImage = x.HeadImage,
|
||||||
proCode = y.ProjectCode,
|
proCode = y.JTProjectCode,
|
||||||
teamId = v.TeamId,
|
teamId = v.TeamId,
|
||||||
mobile = x.Telephone,
|
mobile = x.Telephone,
|
||||||
teamLeaderFlag = (v.GroupLeaderId == x.PersonId ? "Y" : "N"),
|
teamLeaderFlag = (v.GroupLeaderId == x.PersonId ? "Y" : "N"),
|
||||||
|
|
|
@ -721,3 +721,28 @@ IP地址:::1
|
||||||
|
|
||||||
出错时间:07/06/2021 14:24:26
|
出错时间:07/06/2021 14:24:26
|
||||||
|
|
||||||
|
|
||||||
|
错误信息开始=====>
|
||||||
|
错误类型:JsonReaderException
|
||||||
|
错误信息:Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
|
||||||
|
错误堆栈:
|
||||||
|
在 Newtonsoft.Json.JsonTextReader.ParseValue()
|
||||||
|
在 Newtonsoft.Json.JsonTextReader.Read()
|
||||||
|
在 Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
|
||||||
|
在 Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
|
||||||
|
在 Newtonsoft.Json.Linq.JObject.Parse(String json)
|
||||||
|
在 BLL.SynchroSetService.PushProCollCompany(String proCode) 位置 D:\WuHuan\SGGL\SGGL\BLL\ZHGL\RealName\SynchroSetService.cs:行号 750
|
||||||
|
在 FineUIPro.Web.ZHGL.RealName.SynchroSet.btnProCollCompany_Click(Object sender, EventArgs e) 位置 D:\WuHuan\SGGL\SGGL\FineUIPro.Web\ZHGL\RealName\SynchroSet.aspx.cs:行号 131
|
||||||
|
在 FineUIPro.Button.OnClick(EventArgs e)
|
||||||
|
在 (Button , EventArgs )
|
||||||
|
在 FineUIPro.Button.RaisePostBackEvent(String eventArgument)
|
||||||
|
在 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
|
||||||
|
在 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)
|
||||||
|
在 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
|
||||||
|
出错时间:07/08/2021 20:22:22
|
||||||
|
出错文件:http://localhost:8118/ZHGL/RealName/SynchroSet.aspx
|
||||||
|
IP地址:::1
|
||||||
|
操作人员:系统管理员
|
||||||
|
|
||||||
|
出错时间:07/08/2021 20:22:22
|
||||||
|
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 2.2 MiB |
Binary file not shown.
After Width: | Height: | Size: 2.2 MiB |
Binary file not shown.
After Width: | Height: | Size: 2.2 MiB |
|
@ -91,6 +91,8 @@
|
||||||
</f:Button>
|
</f:Button>
|
||||||
<f:Button ID="btnQR" ToolTip="批量生成二维码" Icon="TableRefresh" runat="server" OnClick="btnQR_Click">
|
<f:Button ID="btnQR" ToolTip="批量生成二维码" Icon="TableRefresh" runat="server" OnClick="btnQR_Click">
|
||||||
</f:Button>
|
</f:Button>
|
||||||
|
<f:Button ID="btnPhoto" ToolTip="刷新照片转二进制" Icon="ArrowRefresh" runat="server" OnClick="btnPhoto_Click" >
|
||||||
|
</f:Button>
|
||||||
</Items>
|
</Items>
|
||||||
</f:Toolbar>
|
</f:Toolbar>
|
||||||
</Toolbars>
|
</Toolbars>
|
||||||
|
|
|
@ -722,5 +722,23 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||||
}
|
}
|
||||||
ShowNotify("操作完成,新生成二维码"+ num.ToString()+"条", MessageBoxIcon.Success);
|
ShowNotify("操作完成,新生成二维码"+ num.ToString()+"条", MessageBoxIcon.Success);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender"></param>
|
||||||
|
/// <param name="e"></param>
|
||||||
|
protected void btnPhoto_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
var getPersons = from x in Funs.DB.SitePerson_Person
|
||||||
|
where x.ProjectId == this.ProjectId && x.HeadImage == null && x.PhotoUrl != null
|
||||||
|
select x;
|
||||||
|
foreach (var item in getPersons)
|
||||||
|
{
|
||||||
|
item.HeadImage = AttachFileService.SetImageToByteArray(Funs.RootPath + item.PhotoUrl);
|
||||||
|
Funs.DB.SubmitChanges();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -237,6 +237,15 @@ namespace FineUIPro.Web.HSSE.SitePerson {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.Button btnQR;
|
protected global::FineUIPro.Button btnQR;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// btnPhoto 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.Button btnPhoto;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// lbI 控件。
|
/// lbI 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -92,9 +92,10 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||||
if (person != null)
|
if (person != null)
|
||||||
{
|
{
|
||||||
this.ProjectId = person.ProjectId;
|
this.ProjectId = person.ProjectId;
|
||||||
if (this.ProjectId != this.CurrUser.LoginProjectId)
|
if (this.ProjectId != this.CurrUser.LoginProjectId || this.UnitId != person.UnitId)
|
||||||
{
|
{
|
||||||
this.InitDropDownList();
|
this.UnitId = person.UnitId;
|
||||||
|
this.InitProjectDropDownList();
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrEmpty(person.Sex))
|
if (!string.IsNullOrEmpty(person.Sex))
|
||||||
{
|
{
|
||||||
|
@ -106,7 +107,6 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||||
if (unit != null)
|
if (unit != null)
|
||||||
{
|
{
|
||||||
this.txtUnitName.Text = unit.UnitName;
|
this.txtUnitName.Text = unit.UnitName;
|
||||||
this.UnitId = person.UnitId;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!string.IsNullOrEmpty(person.WorkAreaId))
|
if (!string.IsNullOrEmpty(person.WorkAreaId))
|
||||||
|
@ -258,14 +258,10 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitDropDownList()
|
private void InitDropDownList()
|
||||||
{
|
{
|
||||||
gvWorkArea.DataSource = BLL.UnitWorkService.GetUnitWorkLists(this.CurrUser.LoginProjectId);
|
|
||||||
gvWorkArea.DataBind();//单位工程
|
|
||||||
WorkPostService.InitWorkPostDropDownList(this.drpPost, true);
|
WorkPostService.InitWorkPostDropDownList(this.drpPost, true);
|
||||||
PositionService.InitPositionDropDownList(this.drpPosition, true);
|
PositionService.InitPositionDropDownList(this.drpPosition, true);
|
||||||
PostTitleService.InitPostTitleDropDownList(this.drpTitle, true);
|
PostTitleService.InitPostTitleDropDownList(this.drpTitle, true);
|
||||||
TeamGroupService.InitTeamGroupProjectUnitDropDownList(this.drpTeamGroup, this.ProjectId, this.UnitId, true);
|
|
||||||
CertificateService.InitCertificateDropDownList(this.drpCertificate, true);
|
CertificateService.InitCertificateDropDownList(this.drpCertificate, true);
|
||||||
UserService.InitFlowOperateControlUserDropDownList(this.drpAuditor, this.ProjectId, Const.UnitId_CWCEC, true);
|
|
||||||
CNProfessionalService.InitCNProfessionalDownList(this.drpMainCNProfessional, true);
|
CNProfessionalService.InitCNProfessionalDownList(this.drpMainCNProfessional, true);
|
||||||
CNProfessionalService.InitCNProfessionalDownList(this.drpViceCNProfessional, true);
|
CNProfessionalService.InitCNProfessionalDownList(this.drpViceCNProfessional, true);
|
||||||
BasicDataService.InitBasicDataProjectUnitDropDownList(this.drpEduLevel, "EDU_LEVEL", true);
|
BasicDataService.InitBasicDataProjectUnitDropDownList(this.drpEduLevel, "EDU_LEVEL", true);
|
||||||
|
@ -277,6 +273,17 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||||
Funs.FineUIPleaseSelect(this.drpProvinceCode);
|
Funs.FineUIPleaseSelect(this.drpProvinceCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void InitProjectDropDownList()
|
||||||
|
{
|
||||||
|
gvWorkArea.DataSource = BLL.UnitWorkService.GetUnitWorkLists(this.ProjectId);
|
||||||
|
gvWorkArea.DataBind();//单位工程
|
||||||
|
|
||||||
|
this.drpTeamGroup.Items.Clear();
|
||||||
|
TeamGroupService.InitTeamGroupProjectUnitDropDownList(this.drpTeamGroup, this.ProjectId, this.UnitId, true);
|
||||||
|
|
||||||
|
UserService.InitFlowOperateControlUserDropDownList(this.drpAuditor, this.ProjectId, Const.UnitId_CWCEC, true);
|
||||||
|
}
|
||||||
|
|
||||||
#region 保存
|
#region 保存
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 保存按钮
|
/// 保存按钮
|
||||||
|
|
|
@ -119,7 +119,7 @@
|
||||||
</f:Panel>
|
</f:Panel>
|
||||||
<f:Window ID="Window1" Title="项目" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
<f:Window ID="Window1" Title="项目" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||||
Target="Parent" EnableResize="false" runat="server" IsModal="true"
|
Target="Parent" EnableResize="false" runat="server" IsModal="true"
|
||||||
Width="900px" Height="500px">
|
Width="900px" Height="600px">
|
||||||
</f:Window>
|
</f:Window>
|
||||||
<f:Menu ID="Menu1" runat="server">
|
<f:Menu ID="Menu1" runat="server">
|
||||||
<f:MenuButton ID="btnEnter" EnablePostBack="true" runat="server" Icon="Outline" Text="进入项目"
|
<f:MenuButton ID="btnEnter" EnablePostBack="true" runat="server" Icon="Outline" Text="进入项目"
|
||||||
|
|
|
@ -77,13 +77,18 @@
|
||||||
<Items>
|
<Items>
|
||||||
<f:DropDownList ID="drpDriveManager" runat="server" Label="开车经理" EnableEdit="true">
|
<f:DropDownList ID="drpDriveManager" runat="server" Label="开车经理" EnableEdit="true">
|
||||||
</f:DropDownList>
|
</f:DropDownList>
|
||||||
|
<f:DropDownList ID="drpUnit" Label="所属单位" runat="server" EnableEdit="true">
|
||||||
|
</f:DropDownList>
|
||||||
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
<f:TextBox ID="txtProjectAddress" runat="server" Label="项目地址" LabelWidth="150px" MaxLength="500" ></f:TextBox>
|
<f:TextBox ID="txtProjectAddress" runat="server" Label="项目地址" LabelWidth="150px" MaxLength="500" ></f:TextBox>
|
||||||
</Items>
|
</Items>
|
||||||
</f:FormRow>
|
</f:FormRow>
|
||||||
<f:FormRow>
|
<f:FormRow>
|
||||||
<Items>
|
<Items>
|
||||||
<f:DropDownList ID="drpUnit" Label="所属单位" runat="server" EnableEdit="true">
|
<f:TextBox ID="txtJTProjectCode" runat="server" Label="集团项目号" MaxLength="50" LabelWidth="150px"></f:TextBox>
|
||||||
</f:DropDownList>
|
|
||||||
<f:CheckBox runat="server" ID="ckbIsForeign" Label="海外项目" LabelWidth="150px"></f:CheckBox>
|
<f:CheckBox runat="server" ID="ckbIsForeign" Label="海外项目" LabelWidth="150px"></f:CheckBox>
|
||||||
</Items>
|
</Items>
|
||||||
</f:FormRow>
|
</f:FormRow>
|
||||||
|
|
|
@ -63,6 +63,7 @@ namespace FineUIPro.Web.ProjectData
|
||||||
if (project != null)
|
if (project != null)
|
||||||
{
|
{
|
||||||
this.txtProjectCode.Text = project.ProjectCode;
|
this.txtProjectCode.Text = project.ProjectCode;
|
||||||
|
this.txtJTProjectCode.Text = project.JTProjectCode;
|
||||||
this.txtProjectName.Text = project.ProjectName;
|
this.txtProjectName.Text = project.ProjectName;
|
||||||
this.txtProjectAddress.Text = project.ProjectAddress;
|
this.txtProjectAddress.Text = project.ProjectAddress;
|
||||||
this.txtWorkRange.Text = project.WorkRange;
|
this.txtWorkRange.Text = project.WorkRange;
|
||||||
|
@ -184,6 +185,7 @@ namespace FineUIPro.Web.ProjectData
|
||||||
Base_Project project = new Base_Project
|
Base_Project project = new Base_Project
|
||||||
{
|
{
|
||||||
ProjectCode = this.txtProjectCode.Text.Trim(),
|
ProjectCode = this.txtProjectCode.Text.Trim(),
|
||||||
|
JTProjectCode = this.txtJTProjectCode.Text.Trim(),
|
||||||
ProjectName = Regex.Replace(this.txtProjectName.Text, @"\s", ""),
|
ProjectName = Regex.Replace(this.txtProjectName.Text, @"\s", ""),
|
||||||
ProjectAddress = this.txtProjectAddress.Text.Trim(),
|
ProjectAddress = this.txtProjectAddress.Text.Trim(),
|
||||||
WorkRange = this.txtWorkRange.Text.Trim(),
|
WorkRange = this.txtWorkRange.Text.Trim(),
|
||||||
|
@ -200,7 +202,10 @@ namespace FineUIPro.Web.ProjectData
|
||||||
EnglishRemark = this.txtEnglishRemark.Text.Trim(),
|
EnglishRemark = this.txtEnglishRemark.Text.Trim(),
|
||||||
Progress = Funs.GetNewDecimal(this.txtProgress.Text),
|
Progress = Funs.GetNewDecimal(this.txtProgress.Text),
|
||||||
};
|
};
|
||||||
|
if (string.IsNullOrEmpty(project.JTProjectCode))
|
||||||
|
{
|
||||||
|
project.JTProjectCode = project.ProjectCode;
|
||||||
|
}
|
||||||
//Country = this.txtCountry.Text.Trim(),
|
//Country = this.txtCountry.Text.Trim(),
|
||||||
/// Province = this.drpProvince.SelectedValue,
|
/// Province = this.drpProvince.SelectedValue,
|
||||||
if (this.drpCountry.SelectedValue != Const._Null)
|
if (this.drpCountry.SelectedValue != Const._Null)
|
||||||
|
|
|
@ -174,6 +174,15 @@ namespace FineUIPro.Web.ProjectData {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.DropDownList drpDriveManager;
|
protected global::FineUIPro.DropDownList drpDriveManager;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// drpUnit 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.DropDownList drpUnit;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// txtProjectAddress 控件。
|
/// txtProjectAddress 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -184,13 +193,13 @@ namespace FineUIPro.Web.ProjectData {
|
||||||
protected global::FineUIPro.TextBox txtProjectAddress;
|
protected global::FineUIPro.TextBox txtProjectAddress;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// drpUnit 控件。
|
/// txtJTProjectCode 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// 自动生成的字段。
|
/// 自动生成的字段。
|
||||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.DropDownList drpUnit;
|
protected global::FineUIPro.TextBox txtJTProjectCode;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ckbIsForeign 控件。
|
/// ckbIsForeign 控件。
|
||||||
|
|
|
@ -20,45 +20,50 @@
|
||||||
<f:FormRow>
|
<f:FormRow>
|
||||||
<Items>
|
<Items>
|
||||||
<f:TextBox ID="txtProjectCode" runat="server" Label="项目号" Readonly="true" LabelWidth="150px"></f:TextBox>
|
<f:TextBox ID="txtProjectCode" runat="server" Label="项目号" Readonly="true" LabelWidth="150px"></f:TextBox>
|
||||||
<f:TextBox ID="txtShortName" runat="server" Label="简称" Readonly="true" LabelWidth="140px"></f:TextBox>
|
<f:TextBox ID="txtShortName" runat="server" Label="简称" Readonly="true" LabelWidth="150px"></f:TextBox>
|
||||||
</Items>
|
</Items>
|
||||||
</f:FormRow>
|
</f:FormRow>
|
||||||
<f:FormRow ColumnWidths="50% 25% 25%">
|
<f:FormRow ColumnWidths="50% 25% 25%">
|
||||||
<Items>
|
<Items>
|
||||||
<f:TextBox ID="txtProjectType" runat="server" Label="项目类型" Readonly="true" LabelWidth="150px"></f:TextBox>
|
<f:TextBox ID="txtProjectType" runat="server" Label="项目类型" Readonly="true" LabelWidth="150px"></f:TextBox>
|
||||||
<f:TextBox ID="txtProjectState" runat="server" Label="项目状态" Readonly="true" LabelWidth="140px"></f:TextBox>
|
<f:TextBox ID="txtProjectState" runat="server" Label="项目状态" Readonly="true" LabelWidth="150px"></f:TextBox>
|
||||||
<f:TextBox ID="txtProjectState2" runat="server" Label="细分状态" Readonly="true" LabelWidth="140px"></f:TextBox>
|
<f:TextBox ID="txtProjectState2" runat="server" Label="细分状态" Readonly="true" LabelWidth="150px"></f:TextBox>
|
||||||
</Items>
|
</Items>
|
||||||
</f:FormRow>
|
</f:FormRow>
|
||||||
<f:FormRow>
|
<f:FormRow>
|
||||||
<Items>
|
<Items>
|
||||||
<f:TextBox runat="server" Label="开工日期" ID="txtStartDate" Readonly="true" LabelWidth="150px"></f:TextBox>
|
<f:TextBox runat="server" Label="开工日期" ID="txtStartDate" Readonly="true" LabelWidth="150px"></f:TextBox>
|
||||||
<f:TextBox runat="server" Label="竣工日期" ID="txtEndDate" Readonly="true" LabelWidth="140px"></f:TextBox>
|
<f:TextBox runat="server" Label="竣工日期" ID="txtEndDate" Readonly="true" LabelWidth="150px"></f:TextBox>
|
||||||
</Items>
|
</Items>
|
||||||
</f:FormRow>
|
</f:FormRow>
|
||||||
<f:FormRow>
|
<f:FormRow>
|
||||||
<Items>
|
<Items>
|
||||||
<f:TextBox runat="server" ID="txtDuration" Label="项目建设工期(月)" LabelWidth="150px" Readonly="true">
|
<f:TextBox runat="server" ID="txtDuration" Label="项目建设工期(月)" LabelWidth="150px" Readonly="true">
|
||||||
</f:TextBox>
|
</f:TextBox>
|
||||||
<f:TextBox ID="txtProjectManager" runat="server" Label="项目经理" Readonly="true" LabelWidth="140px"></f:TextBox>
|
<f:TextBox ID="txtProjectManager" runat="server" Label="项目经理" Readonly="true" LabelWidth="150px"></f:TextBox>
|
||||||
</Items>
|
</Items>
|
||||||
</f:FormRow>
|
</f:FormRow>
|
||||||
<f:FormRow>
|
<f:FormRow>
|
||||||
<Items>
|
<Items>
|
||||||
<f:TextBox ID="txtConstructionManager" runat="server" Label="施工经理" Readonly="true" LabelWidth="150px"></f:TextBox>
|
<f:TextBox ID="txtConstructionManager" runat="server" Label="施工经理" Readonly="true" LabelWidth="150px"></f:TextBox>
|
||||||
<f:TextBox ID="txtHSSEManager" runat="server" Label="安全经理" Readonly="true" LabelWidth="140px"></f:TextBox>
|
<f:TextBox ID="txtHSSEManager" runat="server" Label="安全经理" Readonly="true" LabelWidth="150px"></f:TextBox>
|
||||||
</Items>
|
</Items>
|
||||||
</f:FormRow>
|
</f:FormRow>
|
||||||
<f:FormRow>
|
<f:FormRow>
|
||||||
<Items>
|
<Items>
|
||||||
<f:TextBox ID="txtQAManager" runat="server" Label="质量经理" Readonly="true" LabelWidth="150px"></f:TextBox>
|
<f:TextBox ID="txtQAManager" runat="server" Label="质量经理" Readonly="true" LabelWidth="150px"></f:TextBox>
|
||||||
<f:TextBox ID="txtDriveManager" runat="server" Label="开车经理" Readonly="true" LabelWidth="140px"></f:TextBox>
|
<f:TextBox ID="txtDriveManager" runat="server" Label="开车经理" Readonly="true" LabelWidth="150px"></f:TextBox>
|
||||||
</Items>
|
</Items>
|
||||||
</f:FormRow>
|
</f:FormRow>
|
||||||
<f:FormRow>
|
<f:FormRow>
|
||||||
<Items>
|
<Items>
|
||||||
<f:TextBox ID="txtProjectAddress" runat="server" Label="项目地址" Readonly="true" LabelWidth="150px"></f:TextBox>
|
<f:TextBox ID="txtProjectAddress" runat="server" Label="项目地址" Readonly="true" LabelWidth="150px"></f:TextBox>
|
||||||
<f:TextBox ID="txtUnitName" runat="server" Label="所属单位" Readonly="true" LabelWidth="140px"></f:TextBox>
|
</Items>
|
||||||
|
</f:FormRow>
|
||||||
|
<f:FormRow>
|
||||||
|
<Items>
|
||||||
|
<f:TextBox ID="txtJTProjectCode" runat="server" Label="集团项目号" Readonly="true" LabelWidth="150px"></f:TextBox>
|
||||||
|
<f:TextBox ID="txtUnitName" runat="server" Label="所属单位" Readonly="true" LabelWidth="150px"></f:TextBox>
|
||||||
</Items>
|
</Items>
|
||||||
</f:FormRow>
|
</f:FormRow>
|
||||||
<f:FormRow>
|
<f:FormRow>
|
||||||
|
@ -74,19 +79,19 @@
|
||||||
<f:FormRow>
|
<f:FormRow>
|
||||||
<Items>
|
<Items>
|
||||||
<f:TextBox runat="server" ID="txtProjectMoney" Label="合同额(万元)" Readonly="true" LabelWidth="150px"></f:TextBox>
|
<f:TextBox runat="server" ID="txtProjectMoney" Label="合同额(万元)" Readonly="true" LabelWidth="150px"></f:TextBox>
|
||||||
<f:TextBox runat="server" ID="txtConstructionMoney" Label="施工合同额(万元)" LabelWidth="140px" Readonly="true"></f:TextBox>
|
<f:TextBox runat="server" ID="txtConstructionMoney" Label="施工合同额(万元)" LabelWidth="150px" Readonly="true"></f:TextBox>
|
||||||
</Items>
|
</Items>
|
||||||
</f:FormRow>
|
</f:FormRow>
|
||||||
<f:FormRow>
|
<f:FormRow>
|
||||||
<Items>
|
<Items>
|
||||||
<f:TextBox runat="server" ID="txtTelephone" Label="项目部电话" Readonly="true" LabelWidth="150px"></f:TextBox>
|
<f:TextBox runat="server" ID="txtTelephone" Label="项目部电话" Readonly="true" LabelWidth="150px"></f:TextBox>
|
||||||
<f:TextBox runat="server" ID="txtCountry" Label="国家" LabelWidth="140px" Readonly="true"></f:TextBox>
|
<f:TextBox runat="server" ID="txtCountry" Label="国家" LabelWidth="150px" Readonly="true"></f:TextBox>
|
||||||
</Items>
|
</Items>
|
||||||
</f:FormRow>
|
</f:FormRow>
|
||||||
<f:FormRow>
|
<f:FormRow>
|
||||||
<Items>
|
<Items>
|
||||||
<f:TextBox runat="server" ID="txtProvince" Label="省份" Readonly="true" LabelWidth="150px"></f:TextBox>
|
<f:TextBox runat="server" ID="txtProvince" Label="省份" Readonly="true" LabelWidth="150px"></f:TextBox>
|
||||||
<f:TextBox runat="server" ID="txtCity" Label="城市" LabelWidth="140px" Readonly="true"></f:TextBox>
|
<f:TextBox runat="server" ID="txtCity" Label="城市" LabelWidth="150px" Readonly="true"></f:TextBox>
|
||||||
</Items>
|
</Items>
|
||||||
</f:FormRow>
|
</f:FormRow>
|
||||||
<f:FormRow>
|
<f:FormRow>
|
||||||
|
|
|
@ -43,6 +43,7 @@ namespace FineUIPro.Web.ProjectData
|
||||||
if (project != null)
|
if (project != null)
|
||||||
{
|
{
|
||||||
this.txtProjectCode.Text = project.ProjectCode;
|
this.txtProjectCode.Text = project.ProjectCode;
|
||||||
|
this.txtJTProjectCode.Text = project.JTProjectCode;
|
||||||
this.txtProjectName.Text = project.ProjectName;
|
this.txtProjectName.Text = project.ProjectName;
|
||||||
this.txtProjectAddress.Text = project.ProjectAddress;
|
this.txtProjectAddress.Text = project.ProjectAddress;
|
||||||
this.txtRemark.Text = project.Remark;
|
this.txtRemark.Text = project.Remark;
|
||||||
|
|
|
@ -174,6 +174,15 @@ namespace FineUIPro.Web.ProjectData {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::FineUIPro.TextBox txtProjectAddress;
|
protected global::FineUIPro.TextBox txtProjectAddress;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtJTProjectCode 控件。
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// 自动生成的字段。
|
||||||
|
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||||
|
/// </remarks>
|
||||||
|
protected global::FineUIPro.TextBox txtJTProjectCode;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// txtUnitName 控件。
|
/// txtUnitName 控件。
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -29,7 +29,7 @@ namespace FineUIPro.Web.ZHGL.RealName
|
||||||
var getproject = ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId);
|
var getproject = ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId);
|
||||||
if (getproject != null)
|
if (getproject != null)
|
||||||
{
|
{
|
||||||
this.drpProject.SelectedValue = getproject.ProjectCode;
|
this.drpProject.SelectedValue = getproject.JTProjectCode;
|
||||||
this.drpProject.Readonly = true;
|
this.drpProject.Readonly = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -190,7 +190,28 @@ namespace FineUIPro.Web.ZHGL.RealName
|
||||||
/// <param name="e"></param>
|
/// <param name="e"></param>
|
||||||
protected void btnDatabaseGo4_Click(object sender, EventArgs e)
|
protected void btnDatabaseGo4_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
ShowNotify(BLL.SynchroSetService.getProject(), MessageBoxIcon.Information);
|
List<string> getCodeList = new List<string>();
|
||||||
|
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
||||||
|
{
|
||||||
|
var getProject = ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId);
|
||||||
|
if (getProject != null)
|
||||||
|
{
|
||||||
|
getCodeList.Add(getProject.JTProjectCode);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
getCodeList = Funs.DB.RealName_SynchroSet.Select(x => x.ProCode).ToList();
|
||||||
|
}
|
||||||
|
if (getCodeList != null && getCodeList.Count() > 0)
|
||||||
|
{
|
||||||
|
string info = string.Empty;
|
||||||
|
foreach (var item in getCodeList)
|
||||||
|
{
|
||||||
|
info += "项目[" + item + "]" + SynchroSetService.getProject(item);
|
||||||
|
}
|
||||||
|
ShowNotify(info, MessageBoxIcon.Information);
|
||||||
|
}
|
||||||
this.BindGrid4();
|
this.BindGrid4();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ namespace FineUIPro.Web.ZHGL.RealName
|
||||||
List<SqlParameter> listStr = new List<SqlParameter>();
|
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||||
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
||||||
{
|
{
|
||||||
string pcode= ProjectService.GetProjectCodeByProjectId(this.CurrUser.LoginProjectId);
|
string pcode= ProjectService.GetJTProjectCodeByProjectId(this.CurrUser.LoginProjectId);
|
||||||
strSql += " AND ProjectCode = @ProjectCode";
|
strSql += " AND ProjectCode = @ProjectCode";
|
||||||
listStr.Add(new SqlParameter("@ProjectCode", pcode));
|
listStr.Add(new SqlParameter("@ProjectCode", pcode));
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
<Items>
|
<Items>
|
||||||
<f:TextArea ID="txtIdentityCard" runat="server" Label="身份证号码" LabelWidth="120px" >
|
<f:TextArea ID="txtIdentityCard" runat="server" Label="身份证号码" LabelWidth="120px" >
|
||||||
</f:TextArea>
|
</f:TextArea>
|
||||||
<f:Button ID="btnPushData" Icon="Accept" runat="server" Text="提交" ToolTip="多身份证用逗号(,)隔开" OnClick="btnPushData_Click">
|
<f:Button ID="btnPushData" Icon="Accept" runat="server" Text="提交" ToolTip="多身份证用逗号(,)隔开;或直接复制日志中错误提示信息。" OnClick="btnPushData_Click">
|
||||||
</f:Button>
|
</f:Button>
|
||||||
</Items>
|
</Items>
|
||||||
</f:FormRow>
|
</f:FormRow>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
using BLL;
|
using BLL;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using System.Configuration;
|
using System.Configuration;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
|
@ -45,11 +46,7 @@ namespace FineUIPro.Web.ZHGL.RealName
|
||||||
Password = this.txtword.Text.Trim(),
|
Password = this.txtword.Text.Trim(),
|
||||||
Intervaltime=Funs.GetNewInt(this.txtintervaltime.Text.Trim()),
|
Intervaltime=Funs.GetNewInt(this.txtintervaltime.Text.Trim()),
|
||||||
};
|
};
|
||||||
var getProject = ProjectService.GetProjectByProjectId(this.drpProject.SelectedValue);
|
newSynchroSet.ProCode = ProjectService.GetJTProjectCodeByProjectId(this.drpProject.SelectedValue);
|
||||||
if (getProject != null)
|
|
||||||
{
|
|
||||||
newSynchroSet.ProCode = getProject.ProjectCode;
|
|
||||||
}
|
|
||||||
BLL.SynchroSetService.SaveSynchroSet(newSynchroSet);
|
BLL.SynchroSetService.SaveSynchroSet(newSynchroSet);
|
||||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||||
}
|
}
|
||||||
|
@ -70,12 +67,7 @@ namespace FineUIPro.Web.ZHGL.RealName
|
||||||
Password = this.txtword.Text.Trim(),
|
Password = this.txtword.Text.Trim(),
|
||||||
Intervaltime = Funs.GetNewInt(this.txtintervaltime.Text.Trim()),
|
Intervaltime = Funs.GetNewInt(this.txtintervaltime.Text.Trim()),
|
||||||
};
|
};
|
||||||
var getProject = ProjectService.GetProjectByProjectId(this.drpProject.SelectedValue);
|
newSynchroSet.ProCode = ProjectService.GetJTProjectCodeByProjectId(this.drpProject.SelectedValue);
|
||||||
if (getProject != null)
|
|
||||||
{
|
|
||||||
newSynchroSet.ProCode = getProject.ProjectCode;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(SynchroSetService.SaveToken(newSynchroSet)))
|
if (!string.IsNullOrEmpty(SynchroSetService.SaveToken(newSynchroSet)))
|
||||||
{
|
{
|
||||||
ShowNotify("连接成功!", MessageBoxIcon.Success);
|
ShowNotify("连接成功!", MessageBoxIcon.Success);
|
||||||
|
@ -132,7 +124,7 @@ namespace FineUIPro.Web.ZHGL.RealName
|
||||||
protected void btnProCollCompany_Click(object sender, EventArgs e)
|
protected void btnProCollCompany_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
string message = string.Empty;
|
string message = string.Empty;
|
||||||
string proCode =BLL.ProjectService.GetProjectCodeByProjectId(this.drpProject.SelectedValue);
|
string proCode =BLL.ProjectService.GetJTProjectCodeByProjectId(this.drpProject.SelectedValue);
|
||||||
var getRProjects = Funs.DB.RealName_Project.FirstOrDefault(x => x.ProCode == proCode);
|
var getRProjects = Funs.DB.RealName_Project.FirstOrDefault(x => x.ProCode == proCode);
|
||||||
if (getRProjects != null)
|
if (getRProjects != null)
|
||||||
{
|
{
|
||||||
|
@ -153,7 +145,7 @@ namespace FineUIPro.Web.ZHGL.RealName
|
||||||
protected void btnCollTeam_Click(object sender, EventArgs e)
|
protected void btnCollTeam_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
string message = string.Empty;
|
string message = string.Empty;
|
||||||
string proCode = BLL.ProjectService.GetProjectCodeByProjectId(this.drpProject.SelectedValue);
|
string proCode = BLL.ProjectService.GetJTProjectCodeByProjectId(this.drpProject.SelectedValue);
|
||||||
var getRProjects = Funs.DB.RealName_Project.FirstOrDefault(x => x.ProCode == proCode);
|
var getRProjects = Funs.DB.RealName_Project.FirstOrDefault(x => x.ProCode == proCode);
|
||||||
if (getRProjects != null)
|
if (getRProjects != null)
|
||||||
{
|
{
|
||||||
|
@ -177,7 +169,7 @@ namespace FineUIPro.Web.ZHGL.RealName
|
||||||
//string update ="更新"+ BLL.SynchroSetService.PushPersons(Const.BtnModify,null) ?? "";
|
//string update ="更新"+ BLL.SynchroSetService.PushPersons(Const.BtnModify,null) ?? "";
|
||||||
//ShowNotify(add+"|"+ update, MessageBoxIcon.Information);
|
//ShowNotify(add+"|"+ update, MessageBoxIcon.Information);
|
||||||
string message = string.Empty;
|
string message = string.Empty;
|
||||||
string proCode = BLL.ProjectService.GetProjectCodeByProjectId(this.drpProject.SelectedValue);
|
string proCode = BLL.ProjectService.GetJTProjectCodeByProjectId(this.drpProject.SelectedValue);
|
||||||
var getRProjects = Funs.DB.RealName_Project.FirstOrDefault(x => x.ProCode == proCode);
|
var getRProjects = Funs.DB.RealName_Project.FirstOrDefault(x => x.ProCode == proCode);
|
||||||
if (getRProjects != null)
|
if (getRProjects != null)
|
||||||
{
|
{
|
||||||
|
@ -199,7 +191,7 @@ namespace FineUIPro.Web.ZHGL.RealName
|
||||||
protected void btnAttendance_Click(object sender, EventArgs e)
|
protected void btnAttendance_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
string message = string.Empty;
|
string message = string.Empty;
|
||||||
string proCode = BLL.ProjectService.GetProjectCodeByProjectId(this.drpProject.SelectedValue);
|
string proCode = BLL.ProjectService.GetJTProjectCodeByProjectId(this.drpProject.SelectedValue);
|
||||||
var getRProjects = Funs.DB.RealName_Project.FirstOrDefault(x => x.ProCode == proCode);
|
var getRProjects = Funs.DB.RealName_Project.FirstOrDefault(x => x.ProCode == proCode);
|
||||||
if (getRProjects != null)
|
if (getRProjects != null)
|
||||||
{
|
{
|
||||||
|
@ -233,10 +225,10 @@ namespace FineUIPro.Web.ZHGL.RealName
|
||||||
this.txtapiUrl.Text = Funs.RealNameApiUrl;
|
this.txtapiUrl.Text = Funs.RealNameApiUrl;
|
||||||
this.txtintervaltime.Text = ConfigurationManager.AppSettings["Intervaltime"];
|
this.txtintervaltime.Text = ConfigurationManager.AppSettings["Intervaltime"];
|
||||||
|
|
||||||
string proCode = BLL.ProjectService.GetProjectCodeByProjectId(this.drpProject.SelectedValue);
|
var getpro = Funs.DB.Base_Project.FirstOrDefault(x=>x.ProjectId == this.drpProject.SelectedValue);
|
||||||
if (!string.IsNullOrEmpty(proCode))
|
if (getpro !=null && !string.IsNullOrEmpty(getpro.JTProjectCode))
|
||||||
{
|
{
|
||||||
var getSynchroSet = SynchroSetService.GetSynchroSetByUnitId(Const.UnitId_CWCEC, proCode);
|
var getSynchroSet = SynchroSetService.GetSynchroSetByUnitId(Const.UnitId_CWCEC, getpro.JTProjectCode);
|
||||||
if (getSynchroSet != null)
|
if (getSynchroSet != null)
|
||||||
{
|
{
|
||||||
this.txtapiUrl.Text = Funs.RealNameApiUrl;
|
this.txtapiUrl.Text = Funs.RealNameApiUrl;
|
||||||
|
@ -256,15 +248,40 @@ namespace FineUIPro.Web.ZHGL.RealName
|
||||||
protected void btnPushData_Click(object sender, EventArgs e)
|
protected void btnPushData_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
string message = string.Empty;
|
string message = string.Empty;
|
||||||
if (!string.IsNullOrEmpty(this.txtIdentityCard.Text.Trim()))
|
string idText = this.txtIdentityCard.Text.Trim();
|
||||||
|
if (!string.IsNullOrEmpty(idText))
|
||||||
{
|
{
|
||||||
string proCode = BLL.ProjectService.GetProjectCodeByProjectId(this.drpProject.SelectedValue);
|
string proCode = ProjectService.GetJTProjectCodeByProjectId(this.drpProject.SelectedValue);
|
||||||
var getRProjects = Funs.DB.RealName_Project.FirstOrDefault(x => x.ProCode == proCode);
|
var getRProjects = Funs.DB.RealName_Project.FirstOrDefault(x => x.ProCode == proCode);
|
||||||
if (getRProjects != null && !string.IsNullOrEmpty(getRProjects.ProCode))
|
if (getRProjects != null && !string.IsNullOrEmpty(getRProjects.ProCode))
|
||||||
{
|
{
|
||||||
string idc = this.txtIdentityCard.Text.Trim().Replace(',', ',');
|
idText = idText.Replace(",",",").Replace("(条)","").Replace(";",";").Replace("(","(").Replace(")",")");
|
||||||
var getList = Funs.GetStrListByStr(idc, ',');
|
List<string> getList = new List<string>();
|
||||||
if (getList.Count > 0)
|
if (idText.Contains("("))
|
||||||
|
{
|
||||||
|
var getData = Funs.GetStrListByStr(idText, ';');
|
||||||
|
foreach (var itemD in getData)
|
||||||
|
{
|
||||||
|
if (!string.IsNullOrEmpty(itemD))
|
||||||
|
{
|
||||||
|
var a = itemD.Split('(');
|
||||||
|
if (a.Count() > 1)
|
||||||
|
{
|
||||||
|
var b = a[1].Split(')');
|
||||||
|
if (b.Count() > 1)
|
||||||
|
{
|
||||||
|
getList.Add(b[0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
getList = Funs.GetStrListByStr(idText, ',');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (getList != null && getList.Count > 0)
|
||||||
{
|
{
|
||||||
foreach (var item in getList)
|
foreach (var item in getList)
|
||||||
{
|
{
|
||||||
|
|
4981
SGGL/Model/Model.cs
4981
SGGL/Model/Model.cs
File diff suppressed because it is too large
Load Diff
|
@ -868,7 +868,7 @@ namespace WebAPI.Controllers
|
||||||
{
|
{
|
||||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||||
{
|
{
|
||||||
var getPerson = db.SitePerson_Person_Bak.FirstOrDefault(e => e.PersonId == personId);
|
var getPerson = db.SitePerson_Person.FirstOrDefault(e => e.PersonId == personId);
|
||||||
if (getPerson != null && !string.IsNullOrEmpty(type))
|
if (getPerson != null && !string.IsNullOrEmpty(type))
|
||||||
{
|
{
|
||||||
if (type == "1")
|
if (type == "1")
|
||||||
|
@ -885,6 +885,24 @@ namespace WebAPI.Controllers
|
||||||
}
|
}
|
||||||
db.SubmitChanges();
|
db.SubmitChanges();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var getPersonb = db.SitePerson_Person_Bak.FirstOrDefault(e => e.PersonId == personId);
|
||||||
|
if (getPersonb != null && !string.IsNullOrEmpty(type))
|
||||||
|
{
|
||||||
|
if (type == "1")
|
||||||
|
{
|
||||||
|
getPersonb.ExchangeTime2 = DateTime.Now;
|
||||||
|
if (!getPersonb.ExchangeTime.HasValue)
|
||||||
|
{
|
||||||
|
getPersonb.ExchangeTime = DateTime.Now;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
getPersonb.ExchangeTime = DateTime.Now;
|
||||||
|
}
|
||||||
|
db.SubmitChanges();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|
Loading…
Reference in New Issue