20210708
This commit is contained in:
parent
7f785d6423
commit
e092c6cfb0
|
@ -1073,7 +1073,7 @@ namespace BLL
|
|||
db.SitePerson_PersonInOut.InsertOnSubmit(newInOut);
|
||||
db.SubmitChanges();
|
||||
|
||||
string proCode = ProjectService.GetProjectCodeByProjectId(projectId);
|
||||
string proCode = ProjectService.GetJTProjectCodeByProjectId(projectId);
|
||||
Model.SitePerson_PersonInOutNow newNow = new Model.SitePerson_PersonInOutNow
|
||||
{
|
||||
PersonInOutId = newInOut.PersonInOutId,
|
||||
|
|
|
@ -47,6 +47,25 @@
|
|||
}
|
||||
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)
|
||||
{
|
||||
return Funs.DB.Base_Project.FirstOrDefault(e => e.ShortName == name);
|
||||
|
@ -82,6 +101,7 @@
|
|||
{
|
||||
ProjectId = project.ProjectId,
|
||||
ProjectCode = project.ProjectCode,
|
||||
JTProjectCode = project.JTProjectCode,
|
||||
ProjectName = project.ProjectName,
|
||||
StartDate = project.StartDate,
|
||||
EndDate = project.EndDate,
|
||||
|
@ -127,6 +147,7 @@
|
|||
if (newProject != null)
|
||||
{
|
||||
newProject.ProjectCode = project.ProjectCode;
|
||||
newProject.JTProjectCode = project.JTProjectCode;
|
||||
newProject.ProjectName = project.ProjectName;
|
||||
newProject.StartDate = project.StartDate;
|
||||
newProject.EndDate = project.EndDate;
|
||||
|
|
|
@ -226,7 +226,7 @@ namespace BLL
|
|||
/// <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))
|
||||
{
|
||||
|
@ -234,7 +234,7 @@ namespace BLL
|
|||
{
|
||||
PushLogId = SQLHelper.GetNewID(),
|
||||
ProjectId = ProjectId,
|
||||
ProjectCode = ProjectCode,
|
||||
ProjectCode = JTProjectCode,
|
||||
PushType = PushType,
|
||||
Success = Success,
|
||||
Code = Code,
|
||||
|
@ -479,19 +479,16 @@ namespace BLL
|
|||
/// </summary>
|
||||
/// <param name="type"></param>
|
||||
/// <returns></returns>
|
||||
public static string getProject()
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
public static string getProject(string proCode)
|
||||
{
|
||||
string mess = string.Empty;
|
||||
string sucess = string.Empty;
|
||||
string code = string.Empty;
|
||||
string proCode = string.Empty;
|
||||
string contenttype = "application/json;charset=unicode";
|
||||
|
||||
string url = Funs.RealNameApiUrl + "/foreignApi/baseData/getProjectList";
|
||||
Hashtable newToken = new Hashtable
|
||||
{
|
||||
{ "token", getaccess_token(null) }
|
||||
{ "token", getaccess_token(proCode) }
|
||||
};
|
||||
var returndata = BLL.APIGetHttpService.OutsideHttp(url, "POST", contenttype, newToken, null);
|
||||
if (!string.IsNullOrEmpty(returndata))
|
||||
|
@ -510,12 +507,12 @@ namespace BLL
|
|||
string proShortName = item["proShortName"].ToString();
|
||||
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)
|
||||
{
|
||||
getProject.ProName = proName;
|
||||
getProject.ProShortName = proShortName;
|
||||
db.SubmitChanges();
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -526,8 +523,8 @@ namespace BLL
|
|||
ProName = proName,
|
||||
ProShortName = proShortName
|
||||
};
|
||||
db.RealName_Project.InsertOnSubmit(newProject);
|
||||
db.SubmitChanges();
|
||||
Funs.DB.RealName_Project.InsertOnSubmit(newProject);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -714,15 +711,15 @@ namespace BLL
|
|||
string url = Funs.RealNameApiUrl + "/foreignApi/accept/proCollCompany";
|
||||
var getProjectUnits = (from x in db.Project_ProjectUnit
|
||||
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
|
||||
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 != ""
|
||||
select new
|
||||
{
|
||||
unitId=x.UnitId,
|
||||
proCode = y.ProjectCode,
|
||||
proCode = y.JTProjectCode,
|
||||
collCropCode = u.CollCropCode,
|
||||
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),
|
||||
|
@ -834,16 +831,16 @@ namespace BLL
|
|||
string url = Funs.RealNameApiUrl + "/foreignApi/accept/collTeam";
|
||||
var getCollTeam = (from x in Funs.DB.ProjectData_TeamGroup
|
||||
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 s in Funs.DB.SitePerson_Person on x.GroupLeaderId equals s.PersonId into jonPerson
|
||||
from s in jonPerson.DefaultIfEmpty()
|
||||
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 != ""
|
||||
select new
|
||||
{
|
||||
proCode = y.ProjectCode,
|
||||
proCode = y.JTProjectCode,
|
||||
collCropCode = u.CollCropCode,
|
||||
teamType = x.TeamTypeId,
|
||||
teamName = x.TeamGroupName,
|
||||
|
@ -920,7 +917,7 @@ namespace BLL
|
|||
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 != 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
|
||||
&& ((type == Const.BtnModify && !x.RealNameUpdateTime.HasValue) || (type != Const.BtnModify && !x.RealNameAddTime.HasValue))
|
||||
&& ((x.IdcardType == null || x.IdcardType == "SHENFEN_ZHENGJIAN")
|
||||
|
@ -946,7 +943,7 @@ namespace BLL
|
|||
//positiveIdcardImage = db.AttachFile.First(t => (x.PersonId + "#1") == t.ToKeyId).ImageByte,
|
||||
//negativeIdcardImage = db.AttachFile.First(t => (x.PersonId + "#5") == t.ToKeyId).ImageByte,
|
||||
headImage = x.HeadImage,
|
||||
proCode = y.ProjectCode,
|
||||
proCode = y.JTProjectCode,
|
||||
teamId = v.TeamId,
|
||||
mobile = x.Telephone,
|
||||
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 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.ProjectCode == proCode
|
||||
where x.IdentityCard == identityCard && y.JTProjectCode == proCode
|
||||
&& v.TeamId.HasValue && x.HeadImage != null && x.HeadImage.Length > 0
|
||||
&& ((x.IdcardType == null || x.IdcardType == "SHENFEN_ZHENGJIAN")
|
||||
&& (x.IdentityCard.Length == 15 || x.IdentityCard.Length == 18))
|
||||
|
@ -1066,7 +1063,7 @@ namespace BLL
|
|||
countryCode = x.CountryCode,
|
||||
provinceCode = x.ProvinceCode,
|
||||
headImage = x.HeadImage,
|
||||
proCode = y.ProjectCode,
|
||||
proCode = y.JTProjectCode,
|
||||
teamId = v.TeamId,
|
||||
mobile = x.Telephone,
|
||||
teamLeaderFlag = (v.GroupLeaderId == x.PersonId ? "Y" : "N"),
|
||||
|
@ -1168,6 +1165,7 @@ namespace BLL
|
|||
where x.IdcardNumber != null && x.IdcardType != null && x.ChangeTime.HasValue
|
||||
&& (proCode == null || x.ProCode == proCode) && p.HeadImage != null && p.HeadImage.Length > 0
|
||||
&& v.TeamId.HasValue && p.HeadImage != null && r.TeamId.HasValue
|
||||
&& (p.IdentityCard.Length == 15 || p.IdentityCard.Length == 18)
|
||||
select new
|
||||
{
|
||||
p.PersonId,
|
||||
|
@ -1313,7 +1311,7 @@ namespace BLL
|
|||
where teamGroupIds.Contains(x.TeamGroupId)
|
||||
select new
|
||||
{
|
||||
proCode = y.ProjectCode,
|
||||
proCode = y.JTProjectCode,
|
||||
collCropCode = u.CollCropCode,
|
||||
teamType = x.TeamTypeId,
|
||||
teamName = x.TeamGroupName,
|
||||
|
@ -1371,7 +1369,7 @@ namespace BLL
|
|||
//positiveIdcardImage = db.AttachFile.First(t => (x.PersonId + "#1") == t.ToKeyId).ImageByte,
|
||||
//negativeIdcardImage = db.AttachFile.First(t => (x.PersonId + "#5") == t.ToKeyId).ImageByte,
|
||||
headImage = x.HeadImage,
|
||||
proCode = y.ProjectCode,
|
||||
proCode = y.JTProjectCode,
|
||||
teamId = v.TeamId,
|
||||
mobile = x.Telephone,
|
||||
teamLeaderFlag = (v.GroupLeaderId == x.PersonId ? "Y" : "N"),
|
||||
|
|
|
@ -721,3 +721,28 @@ IP地址:::1
|
|||
|
||||
出错时间: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 ID="btnQR" ToolTip="批量生成二维码" Icon="TableRefresh" runat="server" OnClick="btnQR_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnPhoto" ToolTip="刷新照片转二进制" Icon="ArrowRefresh" runat="server" OnClick="btnPhoto_Click" >
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
|
|
|
@ -722,5 +722,23 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
|||
}
|
||||
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>
|
||||
protected global::FineUIPro.Button btnQR;
|
||||
|
||||
/// <summary>
|
||||
/// btnPhoto 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnPhoto;
|
||||
|
||||
/// <summary>
|
||||
/// lbI 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -92,21 +92,21 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
|||
if (person != null)
|
||||
{
|
||||
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))
|
||||
{
|
||||
this.rblSex.SelectedValue = person.Sex;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(person.UnitId))
|
||||
{
|
||||
{
|
||||
var unit = BLL.UnitService.GetUnitByUnitId(person.UnitId);
|
||||
if (unit != null)
|
||||
{
|
||||
this.txtUnitName.Text = unit.UnitName;
|
||||
this.UnitId = person.UnitId;
|
||||
this.txtUnitName.Text = unit.UnitName;
|
||||
}
|
||||
}
|
||||
if (!string.IsNullOrEmpty(person.WorkAreaId))
|
||||
|
@ -257,15 +257,11 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
|||
/// 初始化下拉框
|
||||
/// </summary>
|
||||
private void InitDropDownList()
|
||||
{
|
||||
gvWorkArea.DataSource = BLL.UnitWorkService.GetUnitWorkLists(this.CurrUser.LoginProjectId);
|
||||
gvWorkArea.DataBind();//单位工程
|
||||
{
|
||||
WorkPostService.InitWorkPostDropDownList(this.drpPost, true);
|
||||
PositionService.InitPositionDropDownList(this.drpPosition, true);
|
||||
PostTitleService.InitPostTitleDropDownList(this.drpTitle, true);
|
||||
TeamGroupService.InitTeamGroupProjectUnitDropDownList(this.drpTeamGroup, this.ProjectId, this.UnitId, true);
|
||||
CertificateService.InitCertificateDropDownList(this.drpCertificate, true);
|
||||
UserService.InitFlowOperateControlUserDropDownList(this.drpAuditor, this.ProjectId, Const.UnitId_CWCEC, true);
|
||||
PostTitleService.InitPostTitleDropDownList(this.drpTitle, true);
|
||||
CertificateService.InitCertificateDropDownList(this.drpCertificate, true);
|
||||
CNProfessionalService.InitCNProfessionalDownList(this.drpMainCNProfessional, true);
|
||||
CNProfessionalService.InitCNProfessionalDownList(this.drpViceCNProfessional, true);
|
||||
BasicDataService.InitBasicDataProjectUnitDropDownList(this.drpEduLevel, "EDU_LEVEL", true);
|
||||
|
@ -277,6 +273,17 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
|||
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 保存
|
||||
/// <summary>
|
||||
/// 保存按钮
|
||||
|
|
|
@ -119,7 +119,7 @@
|
|||
</f:Panel>
|
||||
<f:Window ID="Window1" Title="项目" Hidden="true" EnableIFrame="true" EnableMaximize="true"
|
||||
Target="Parent" EnableResize="false" runat="server" IsModal="true"
|
||||
Width="900px" Height="500px">
|
||||
Width="900px" Height="600px">
|
||||
</f:Window>
|
||||
<f:Menu ID="Menu1" runat="server">
|
||||
<f:MenuButton ID="btnEnter" EnablePostBack="true" runat="server" Icon="Outline" Text="进入项目"
|
||||
|
|
|
@ -77,13 +77,18 @@
|
|||
<Items>
|
||||
<f:DropDownList ID="drpDriveManager" runat="server" Label="开车经理" EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
<f:TextBox ID="txtProjectAddress" runat="server" Label="项目地址" LabelWidth="150px" MaxLength="500" ></f:TextBox>
|
||||
<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>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpUnit" Label="所属单位" runat="server" EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
<f:TextBox ID="txtJTProjectCode" runat="server" Label="集团项目号" MaxLength="50" LabelWidth="150px"></f:TextBox>
|
||||
<f:CheckBox runat="server" ID="ckbIsForeign" Label="海外项目" LabelWidth="150px"></f:CheckBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
|
|
@ -63,6 +63,7 @@ namespace FineUIPro.Web.ProjectData
|
|||
if (project != null)
|
||||
{
|
||||
this.txtProjectCode.Text = project.ProjectCode;
|
||||
this.txtJTProjectCode.Text = project.JTProjectCode;
|
||||
this.txtProjectName.Text = project.ProjectName;
|
||||
this.txtProjectAddress.Text = project.ProjectAddress;
|
||||
this.txtWorkRange.Text = project.WorkRange;
|
||||
|
@ -184,6 +185,7 @@ namespace FineUIPro.Web.ProjectData
|
|||
Base_Project project = new Base_Project
|
||||
{
|
||||
ProjectCode = this.txtProjectCode.Text.Trim(),
|
||||
JTProjectCode = this.txtJTProjectCode.Text.Trim(),
|
||||
ProjectName = Regex.Replace(this.txtProjectName.Text, @"\s", ""),
|
||||
ProjectAddress = this.txtProjectAddress.Text.Trim(),
|
||||
WorkRange = this.txtWorkRange.Text.Trim(),
|
||||
|
@ -200,7 +202,10 @@ namespace FineUIPro.Web.ProjectData
|
|||
EnglishRemark = this.txtEnglishRemark.Text.Trim(),
|
||||
Progress = Funs.GetNewDecimal(this.txtProgress.Text),
|
||||
};
|
||||
|
||||
if (string.IsNullOrEmpty(project.JTProjectCode))
|
||||
{
|
||||
project.JTProjectCode = project.ProjectCode;
|
||||
}
|
||||
//Country = this.txtCountry.Text.Trim(),
|
||||
/// Province = this.drpProvince.SelectedValue,
|
||||
if (this.drpCountry.SelectedValue != Const._Null)
|
||||
|
|
|
@ -174,6 +174,15 @@ namespace FineUIPro.Web.ProjectData {
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpDriveManager;
|
||||
|
||||
/// <summary>
|
||||
/// drpUnit 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnit;
|
||||
|
||||
/// <summary>
|
||||
/// txtProjectAddress 控件。
|
||||
/// </summary>
|
||||
|
@ -184,13 +193,13 @@ namespace FineUIPro.Web.ProjectData {
|
|||
protected global::FineUIPro.TextBox txtProjectAddress;
|
||||
|
||||
/// <summary>
|
||||
/// drpUnit 控件。
|
||||
/// txtJTProjectCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnit;
|
||||
protected global::FineUIPro.TextBox txtJTProjectCode;
|
||||
|
||||
/// <summary>
|
||||
/// ckbIsForeign 控件。
|
||||
|
|
|
@ -20,45 +20,50 @@
|
|||
<f:FormRow>
|
||||
<Items>
|
||||
<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>
|
||||
</f:FormRow>
|
||||
<f:FormRow ColumnWidths="50% 25% 25%">
|
||||
<Items>
|
||||
<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="txtProjectState2" 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="150px"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<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>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox runat="server" ID="txtDuration" Label="项目建设工期(月)" LabelWidth="150px" Readonly="true">
|
||||
</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>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<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>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<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>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtProjectAddress" runat="server" Label="项目地址" Readonly="true" LabelWidth="150px"></f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<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>
|
||||
<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>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
|
@ -74,19 +79,19 @@
|
|||
<f:FormRow>
|
||||
<Items>
|
||||
<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>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<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>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<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>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
|
|
|
@ -43,6 +43,7 @@ namespace FineUIPro.Web.ProjectData
|
|||
if (project != null)
|
||||
{
|
||||
this.txtProjectCode.Text = project.ProjectCode;
|
||||
this.txtJTProjectCode.Text = project.JTProjectCode;
|
||||
this.txtProjectName.Text = project.ProjectName;
|
||||
this.txtProjectAddress.Text = project.ProjectAddress;
|
||||
this.txtRemark.Text = project.Remark;
|
||||
|
|
|
@ -174,6 +174,15 @@ namespace FineUIPro.Web.ProjectData {
|
|||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtProjectAddress;
|
||||
|
||||
/// <summary>
|
||||
/// txtJTProjectCode 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtJTProjectCode;
|
||||
|
||||
/// <summary>
|
||||
/// txtUnitName 控件。
|
||||
/// </summary>
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace FineUIPro.Web.ZHGL.RealName
|
|||
var getproject = ProjectService.GetProjectByProjectId(this.CurrUser.LoginProjectId);
|
||||
if (getproject != null)
|
||||
{
|
||||
this.drpProject.SelectedValue = getproject.ProjectCode;
|
||||
this.drpProject.SelectedValue = getproject.JTProjectCode;
|
||||
this.drpProject.Readonly = true;
|
||||
}
|
||||
}
|
||||
|
@ -190,7 +190,28 @@ namespace FineUIPro.Web.ZHGL.RealName
|
|||
/// <param name="e"></param>
|
||||
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();
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ namespace FineUIPro.Web.ZHGL.RealName
|
|||
List<SqlParameter> listStr = new List<SqlParameter>();
|
||||
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
||||
{
|
||||
string pcode= ProjectService.GetProjectCodeByProjectId(this.CurrUser.LoginProjectId);
|
||||
string pcode= ProjectService.GetJTProjectCodeByProjectId(this.CurrUser.LoginProjectId);
|
||||
strSql += " AND ProjectCode = @ProjectCode";
|
||||
listStr.Add(new SqlParameter("@ProjectCode", pcode));
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
<Items>
|
||||
<f:TextArea ID="txtIdentityCard" runat="server" Label="身份证号码" LabelWidth="120px" >
|
||||
</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>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
using BLL;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Linq;
|
||||
|
||||
|
@ -45,11 +46,7 @@ namespace FineUIPro.Web.ZHGL.RealName
|
|||
Password = this.txtword.Text.Trim(),
|
||||
Intervaltime=Funs.GetNewInt(this.txtintervaltime.Text.Trim()),
|
||||
};
|
||||
var getProject = ProjectService.GetProjectByProjectId(this.drpProject.SelectedValue);
|
||||
if (getProject != null)
|
||||
{
|
||||
newSynchroSet.ProCode = getProject.ProjectCode;
|
||||
}
|
||||
newSynchroSet.ProCode = ProjectService.GetJTProjectCodeByProjectId(this.drpProject.SelectedValue);
|
||||
BLL.SynchroSetService.SaveSynchroSet(newSynchroSet);
|
||||
ShowNotify("保存成功!", MessageBoxIcon.Success);
|
||||
}
|
||||
|
@ -70,12 +67,7 @@ namespace FineUIPro.Web.ZHGL.RealName
|
|||
Password = this.txtword.Text.Trim(),
|
||||
Intervaltime = Funs.GetNewInt(this.txtintervaltime.Text.Trim()),
|
||||
};
|
||||
var getProject = ProjectService.GetProjectByProjectId(this.drpProject.SelectedValue);
|
||||
if (getProject != null)
|
||||
{
|
||||
newSynchroSet.ProCode = getProject.ProjectCode;
|
||||
}
|
||||
|
||||
newSynchroSet.ProCode = ProjectService.GetJTProjectCodeByProjectId(this.drpProject.SelectedValue);
|
||||
if (!string.IsNullOrEmpty(SynchroSetService.SaveToken(newSynchroSet)))
|
||||
{
|
||||
ShowNotify("连接成功!", MessageBoxIcon.Success);
|
||||
|
@ -132,7 +124,7 @@ namespace FineUIPro.Web.ZHGL.RealName
|
|||
protected void btnProCollCompany_Click(object sender, EventArgs e)
|
||||
{
|
||||
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);
|
||||
if (getRProjects != null)
|
||||
{
|
||||
|
@ -153,7 +145,7 @@ namespace FineUIPro.Web.ZHGL.RealName
|
|||
protected void btnCollTeam_Click(object sender, EventArgs e)
|
||||
{
|
||||
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);
|
||||
if (getRProjects != null)
|
||||
{
|
||||
|
@ -177,7 +169,7 @@ namespace FineUIPro.Web.ZHGL.RealName
|
|||
//string update ="更新"+ BLL.SynchroSetService.PushPersons(Const.BtnModify,null) ?? "";
|
||||
//ShowNotify(add+"|"+ update, MessageBoxIcon.Information);
|
||||
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);
|
||||
if (getRProjects != null)
|
||||
{
|
||||
|
@ -199,7 +191,7 @@ namespace FineUIPro.Web.ZHGL.RealName
|
|||
protected void btnAttendance_Click(object sender, EventArgs e)
|
||||
{
|
||||
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);
|
||||
if (getRProjects != null)
|
||||
{
|
||||
|
@ -233,10 +225,10 @@ namespace FineUIPro.Web.ZHGL.RealName
|
|||
this.txtapiUrl.Text = Funs.RealNameApiUrl;
|
||||
this.txtintervaltime.Text = ConfigurationManager.AppSettings["Intervaltime"];
|
||||
|
||||
string proCode = BLL.ProjectService.GetProjectCodeByProjectId(this.drpProject.SelectedValue);
|
||||
if (!string.IsNullOrEmpty(proCode))
|
||||
var getpro = Funs.DB.Base_Project.FirstOrDefault(x=>x.ProjectId == this.drpProject.SelectedValue);
|
||||
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)
|
||||
{
|
||||
this.txtapiUrl.Text = Funs.RealNameApiUrl;
|
||||
|
@ -256,15 +248,40 @@ namespace FineUIPro.Web.ZHGL.RealName
|
|||
protected void btnPushData_Click(object sender, EventArgs e)
|
||||
{
|
||||
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);
|
||||
if (getRProjects != null && !string.IsNullOrEmpty(getRProjects.ProCode))
|
||||
{
|
||||
string idc = this.txtIdentityCard.Text.Trim().Replace(',', ',');
|
||||
var getList = Funs.GetStrListByStr(idc, ',');
|
||||
if (getList.Count > 0)
|
||||
idText = idText.Replace(",",",").Replace("(条)","").Replace(";",";").Replace("(","(").Replace(")",")");
|
||||
List<string> getList = new List<string>();
|
||||
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)
|
||||
{
|
||||
|
|
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))
|
||||
{
|
||||
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 (type == "1")
|
||||
|
@ -885,6 +885,24 @@ namespace WebAPI.Controllers
|
|||
}
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue