diff --git a/.gitignore b/.gitignore
index 6271f906..41652113 100644
--- a/.gitignore
+++ b/.gitignore
@@ -30,3 +30,4 @@ SGGL/.svn
/FineUIPro.Mobile/bin
/FineUIPro.Mobile/obj
/SGGL/FineUIPro.Web/FileUpload/CQMS/Meeting/2022-09
+/SGGL/FineUIPro.Web/FileUpload/
diff --git a/DataBase/版本日志/SGGLDB_V2022-09-14.sql b/DataBase/版本日志/SGGLDB_V2022-09-14.sql
index 8cac6454..908509c9 100644
--- a/DataBase/版本日志/SGGLDB_V2022-09-14.sql
+++ b/DataBase/版本日志/SGGLDB_V2022-09-14.sql
@@ -4,4 +4,17 @@ GO
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('9F7C7E64-2743-4CF0-B09E-DDB43444A69A','ר','CQMS/Meeting/SpecialMeetingFile.aspx',32,'390A78F0-43B2-4AF1-81B9-7C216FA7E0A4','Menu_CQMS',0,1,1)
-GO
\ No newline at end of file
+GO
+
+INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+VALUES('565E9B43-47CF-4C49-906F-539E7DB42A00','ְ','BaseInfo/Position.aspx',60,'5196A6FD-4BF1-46B3-8D24-9A3CE5BB4760','Menu_SysSet',1,1,1)
+GO
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('D1B2228D-8D5F-4685-A310-6A3A733A377C','565E9B43-47CF-4C49-906F-539E7DB42A00','',1)
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('1A7CBC46-119C-454D-B0FF-B919C4EF4A9D','565E9B43-47CF-4C49-906F-539E7DB42A00','',2)
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('F1720632-9148-4F53-BCBD-732A05236BDF','565E9B43-47CF-4C49-906F-539E7DB42A00','ɾ',3)
+INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+VALUES('C96232F6-8D40-42A9-95A0-799BE4AB8754','565E9B43-47CF-4C49-906F-539E7DB42A00','',4)
+GO
diff --git a/DataBase/版本日志/SGGLDB_V2022-09-14修改明细.txt b/DataBase/版本日志/SGGLDB_V2022-09-14修改明细.txt
index 906b910c..e08a1300 100644
--- a/DataBase/版本日志/SGGLDB_V2022-09-14修改明细.txt
+++ b/DataBase/版本日志/SGGLDB_V2022-09-14修改明细.txt
@@ -1,3 +1,8 @@
--ADD BY gaofei 2022-09-14
1,质量会议增加导出PDF功能
--END
+
+--ADD BY YangHongwei 2022-09-14
+1、修改个人信息编辑页面,可编辑个人基本信息。
+2、添加职务菜单。
+--END
\ No newline at end of file
diff --git a/DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-000删除现场身份证号码为空人员.sql b/DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-000删除现场身份证号码为空人员.sql
similarity index 100%
rename from DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-000删除现场身份证号码为空人员.sql
rename to DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-000删除现场身份证号码为空人员.sql
diff --git a/DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-001(公司人员菜单调整).sql b/DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-001(公司人员菜单调整).sql
similarity index 100%
rename from DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-001(公司人员菜单调整).sql
rename to DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-001(公司人员菜单调整).sql
diff --git a/DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-002(项目人员菜单调整).sql b/DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-002(项目人员菜单调整).sql
similarity index 100%
rename from DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-002(项目人员菜单调整).sql
rename to DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-002(项目人员菜单调整).sql
diff --git a/DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-003人员库表(新增).sql b/DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-003人员库表(新增).sql
similarity index 100%
rename from DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-003人员库表(新增).sql
rename to DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-003人员库表(新增).sql
diff --git a/DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-004项目人员表(删除项目用户表).sql b/DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-004项目人员表(删除项目用户表).sql
similarity index 100%
rename from DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-004项目人员表(删除项目用户表).sql
rename to DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-004项目人员表(删除项目用户表).sql
diff --git a/DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-005用户表处理(删除).sql b/DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-005用户表处理(删除).sql
similarity index 100%
rename from DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-005用户表处理(删除).sql
rename to DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-005用户表处理(删除).sql
diff --git a/DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-006人员表相关视图.sql b/DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-006人员表相关视图.sql
similarity index 100%
rename from DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-006人员表相关视图.sql
rename to DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2021-10-29-006人员表相关视图.sql
diff --git a/DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2022-06-29-001索引.sql b/DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2022-06-29-001索引.sql
similarity index 100%
rename from DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2022-06-29-001索引.sql
rename to DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2022-06-29-001索引.sql
diff --git a/DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2022-06-30-001(协同办公菜单).sql b/DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2022-06-30-001(协同办公菜单).sql
similarity index 100%
rename from DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2022-06-30-001(协同办公菜单).sql
rename to DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2022-06-30-001(协同办公菜单).sql
diff --git a/DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2022-06-30-001(大数据中心菜单).sql b/DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2022-06-30-001(大数据中心菜单).sql
similarity index 100%
rename from DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2022-06-30-001(大数据中心菜单).sql
rename to DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2022-06-30-001(大数据中心菜单).sql
diff --git a/DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2022-06-30-001(智慧工地菜单).sql b/DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2022-06-30-001(智慧工地菜单).sql
similarity index 100%
rename from DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2022-06-30-001(智慧工地菜单).sql
rename to DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2022-06-30-001(智慧工地菜单).sql
diff --git a/DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2022-06-30-001(综合管理菜单).sql b/DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2022-06-30-001(综合管理菜单).sql
similarity index 100%
rename from DataBase/SGGL_SeDin_人员脚本/SGGLDB_V2022-06-30-001(综合管理菜单).sql
rename to DataBase/版本日志/已更新脚本/SGGL_SeDin_人员脚本/SGGLDB_V2022-06-30-001(综合管理菜单).sql
diff --git a/DataBase/菜单初始化脚本/0-0系统设置(Menu_SysSet).sql b/DataBase/菜单初始化脚本/0-0系统设置(Menu_SysSet).sql
index 0a128b9b..8ac6d489 100644
--- a/DataBase/菜单初始化脚本/0-0系统设置(Menu_SysSet).sql
+++ b/DataBase/菜单初始化脚本/0-0系统设置(Menu_SysSet).sql
@@ -113,6 +113,19 @@ GO
--INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
--VALUES('145523FE-B49A-4420-9DFB-565A79F4AF36','Աɫ','',60,'5196A6FD-4BF1-46B3-8D24-9A3CE5BB4760','Menu_SysSet',1,1,1)
--GO
+ INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
+ VALUES('565E9B43-47CF-4C49-906F-539E7DB42A00','ְ','BaseInfo/Position.aspx',60,'5196A6FD-4BF1-46B3-8D24-9A3CE5BB4760','Menu_SysSet',1,1,1)
+ GO
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('D1B2228D-8D5F-4685-A310-6A3A733A377C','565E9B43-47CF-4C49-906F-539E7DB42A00','',1)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('1A7CBC46-119C-454D-B0FF-B919C4EF4A9D','565E9B43-47CF-4C49-906F-539E7DB42A00','',2)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('F1720632-9148-4F53-BCBD-732A05236BDF','565E9B43-47CF-4C49-906F-539E7DB42A00','ɾ',3)
+ INSERT INTO dbo.Sys_ButtonToMenu(ButtonToMenuId,MenuId,ButtonName,SortIndex)
+ VALUES('C96232F6-8D40-42A9-95A0-799BE4AB8754','565E9B43-47CF-4C49-906F-539E7DB42A00','',4)
+ GO
+
INSERT INTO dbo.Sys_Menu(MenuId,MenuName,Url,SortIndex,SuperMenu,MenuType,IsOffice,IsEnd,IsUsed)
VALUES('2E424093-81B8-421A-963F-D85D17B1E82A','ְƶ','BaseInfo/PostTitle.aspx',70,'5196A6FD-4BF1-46B3-8D24-9A3CE5BB4760','Menu_SysSet',1,1,1)
GO
diff --git a/SGGL/BLL/PHTGL/BiddingManagement/BidApproveUserReview_Sch1Service.cs b/SGGL/BLL/PHTGL/BiddingManagement/BidApproveUserReview_Sch1Service.cs
index f25b1028..6882091f 100644
--- a/SGGL/BLL/PHTGL/BiddingManagement/BidApproveUserReview_Sch1Service.cs
+++ b/SGGL/BLL/PHTGL/BiddingManagement/BidApproveUserReview_Sch1Service.cs
@@ -24,7 +24,17 @@ namespace BLL
Model.PHTGL_BidApproveUserReview_Sch1 table = new Model.PHTGL_BidApproveUserReview_Sch1();
table.ID = newtable.ID;
table.ApproveUserReviewID = newtable.ApproveUserReviewID;
- table.ApproveUserName = newtable.ApproveUserName;
+ var name= BLL.Person_PersonsService.GetPersonsNameById(newtable.ApproveUserName);
+ if (!string.IsNullOrEmpty(name))
+ {
+ table.ApproveUserName = name;
+ }
+ else
+ {
+ table.ApproveUserName = newtable.ApproveUserName;
+
+
+ }
table.ApproveUserSpecial = newtable.ApproveUserSpecial;
table.ApproveUserUnit = newtable.ApproveUserUnit;
table.Remarks = newtable.Remarks;
diff --git a/SGGL/FineUIPro.Web/PHTGL/BiddingManagement/ApproveUserReviewEdit.aspx.cs b/SGGL/FineUIPro.Web/PHTGL/BiddingManagement/ApproveUserReviewEdit.aspx.cs
index 95093167..e490f30c 100644
--- a/SGGL/FineUIPro.Web/PHTGL/BiddingManagement/ApproveUserReviewEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/PHTGL/BiddingManagement/ApproveUserReviewEdit.aspx.cs
@@ -4,6 +4,7 @@ using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
+using System.Web.DynamicData;
namespace FineUIPro.Web.PHTGL.BiddingManagement
{
@@ -211,6 +212,7 @@ namespace FineUIPro.Web.PHTGL.BiddingManagement
BLL.PHTGL_BidApproveUserReview_Sch1Service.DeletePHTGL_BidApproveUserReview_Sch1ByReviewID(newtable.ApproveUserReviewID);
+
JArray EditorArr = Grid1.GetMergedData();
if (EditorArr.Count > 0)
{
diff --git a/SGGL/FineUIPro.Web/Person/PersonEdit.aspx.cs b/SGGL/FineUIPro.Web/Person/PersonEdit.aspx.cs
index 750f2234..9bdd1563 100644
--- a/SGGL/FineUIPro.Web/Person/PersonEdit.aspx.cs
+++ b/SGGL/FineUIPro.Web/Person/PersonEdit.aspx.cs
@@ -230,7 +230,7 @@ namespace FineUIPro.Web.Person
SynchroSetService.InitCountryDropDownList(this.drpCountryCode, false);
this.drpCountryCode.SelectedValue = "101";
CityService.InitCityDropDownList(this.drpProvinceCode, this.drpCountryCode.SelectedValue, true);
- PositionService.InitPositionDropDownList(this.drpPosition, true);
+
DropListService.InitConstRadioButtonList(this.rbPersonType, DropListService.Group_PersonType, "1");
}
@@ -483,7 +483,7 @@ namespace FineUIPro.Web.Person
IdcardStartDate = Funs.GetNewDateTime(this.txtIdcardStartDate.Text.Trim()),
IdcardEndDate = Funs.GetNewDateTime(this.txtIdcardEndDate.Text.Trim()),
Telephone = this.txtTelephone.Text.Trim(),
- Sex = this.rblSex.SelectedValue ?? "1",
+ Sex = this.rblSex.SelectedValue,
Birthday = Funs.GetNewDateTime(this.txtBirthday.Text.Trim()),
IntoDate = Funs.GetNewDateTime(this.txtIntoDate.Text),
WorkDate = Funs.GetNewDateTime(this.txtWorkDate.Text),
diff --git a/SGGL/FineUIPro.Web/Personal/PersonalInfo.aspx b/SGGL/FineUIPro.Web/Personal/PersonalInfo.aspx
index 3c17cfa6..834b6b27 100644
--- a/SGGL/FineUIPro.Web/Personal/PersonalInfo.aspx
+++ b/SGGL/FineUIPro.Web/Personal/PersonalInfo.aspx
@@ -34,9 +34,9 @@
- <%--
- --%>
+
+
+
@@ -55,13 +55,19 @@
Width="200px" ShowHeader="false">
-
-
-
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
-
+
-
+
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ CssClass="blockpanel">
-
+
+
+
+
+
+
+
-
+
diff --git a/SGGL/FineUIPro.Web/Personal/PersonalInfo.aspx.cs b/SGGL/FineUIPro.Web/Personal/PersonalInfo.aspx.cs
index 71fe4eed..4f607518 100644
--- a/SGGL/FineUIPro.Web/Personal/PersonalInfo.aspx.cs
+++ b/SGGL/FineUIPro.Web/Personal/PersonalInfo.aspx.cs
@@ -1,7 +1,10 @@
namespace FineUIPro.Web.Personal
{
using BLL;
+ using FastReport.Utils;
+ using Model;
using System;
+ using System.IO;
using System.Linq;
public partial class PersonalInfo : PageBase
@@ -32,6 +35,12 @@
{
if (!IsPostBack)
{
+ BasicDataService.InitBasicDataProjectUnitDropDownList(this.drpMaritalStatus, "MARITAL_STATUS", true);
+ BasicDataService.InitBasicDataProjectUnitDropDownList(this.drpNation, "MINZU_TYPE", true);
+ BasicDataService.InitBasicDataProjectUnitDropDownList(this.drpEduLevel, "EDU_LEVEL", true);
+ PositionService.InitPositionDropDownList(this.drpPosition, true);
+ PostTitleService.InitPostTitleDropDownList(this.drpPostTitle, true);
+
/// Tab1加载页面方法
this.Tab1LoadData();
if (this.CurrUser.PersonId == Const.hfnbdId)
@@ -49,62 +58,180 @@
///
private void Tab1LoadData()
{
- var user = Person_PersonsService.GetPerson_PersonsById(this.CurrUser.PersonId);
- if (user != null)
+ var getData = Person_PersonsService.GetPerson_PersonsById(this.CurrUser.PersonId);
+ if (getData != null)
{
- this.txtUserName.Text = user.PersonName;
- this.txtUserCode.Text = user.JobNum;
- var sexVules = BLL.ConstValue.drpConstItemList(ConstValue.Group_0002).FirstOrDefault(x => x.ConstValue == user.Sex);
- if (sexVules != null)
+ this.txtUserName.Text = getData.PersonName;
+ this.txtJobNum.Text = getData.JobNum;
+ if (!string.IsNullOrEmpty(getData.Sex))
{
- this.drpSex.Text = sexVules.ConstText;
+ this.rblSex.SelectedValue = getData.Sex;
}
- this.dpBirthDay.Text = string.Format("{0:yyyy-MM-dd}", user.Birthday);
- var MarriageVules = BLL.ConstValue.drpConstItemList(ConstValue.Group_0003).FirstOrDefault(x => x.ConstValue == user.MaritalStatus);
- if (MarriageVules != null)
- {
- this.drpMarriage.Text = MarriageVules.ConstText;
- }
+ this.txtBirthday.Text = string.Format("{0:yyyy-MM-dd}", getData.Birthday);
+ this.drpMaritalStatus.SelectedValue = getData.MaritalStatus ?? Const._Null;
+ this.drpNation.SelectedValue = getData.Nation;
+ this.txtUnit.Text = UnitService.GetUnitNameByUnitId(getData.UnitId);
+ this.txtAccount.Text = getData.Account;
+ this.txtIdentityCard.Text = getData.IdentityCard;
+ this.txtTelephone.Text = getData.Telephone;
+ this.txtGraduate.Text = getData.Graduate;
+ this.drpEduLevel.SelectedValue = getData.EduLevel ?? Const._Null;
+ this.drpPosition.SelectedValue = getData.PositionId ?? Const._Null;
+ this.drpPostTitle.SelectedValue = getData.PostTitleId ?? Const._Null;
- var NationVules = BLL.ConstValue.drpConstItemList(ConstValue.Group_0005).FirstOrDefault(x => x.ConstValue == user.Nation);
- if (NationVules != null)
+ if (!string.IsNullOrEmpty(getData.PhotoUrl))
{
- this.drpNation.Text = NationVules.ConstText;
- }
- var units = Funs.DB.Base_Unit.FirstOrDefault(x => x.UnitId == user.UnitId);
- if (units != null)
- {
- this.drpUnit.Text = units.UnitName;
- }
- this.txtAccount.Text = user.Account;
- this.txtIdentityCard.Text = user.IdentityCard;
- this.txtEmail.Text = user.Email;
- this.txtTelephone.Text = user.Telephone;
- var EducationVules = BLL.ConstValue.drpConstItemList(ConstValue.Group_0004).FirstOrDefault(x => x.ConstValue == user.EduLevel);
- if (EducationVules != null)
- {
- this.drpEducation.Text = EducationVules.ConstText;
- }
- this.txtHometown.Text = user.Address;
- //var position = BLL.PositionService.GetPositionById(user.PositionId);
- //if (position != null)
- //{
- // this.drpPosition.Text = position.PositionName;
- //}
- //this.txtPerformance.Text = user.Performance;
- if (!string.IsNullOrEmpty(user.PhotoUrl))
- {
- this.PhotoAttachUrl = user.PhotoUrl;
- this.Image1.ImageUrl = "~/" + this.PhotoAttachUrl;
+ this.PhotoAttachUrl = getData.PhotoUrl;
+ imgPhoto.ImageUrl = ("~/" + getData.PhotoUrl);
}
}
- }
+ }
#endregion
protected void btnCustomQuery_Click(object sender, EventArgs e)
{
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("../SysManage/CustomQuery.aspx"), "查询"));
}
+
+ ///
+ /// -照片上传
+ ///
+ ///
+ ///
+ protected void filePhoto_FileSelected(object sender, EventArgs e)
+ {
+ if (filePhoto.HasFile)
+ {
+ string fileName = filePhoto.ShortFileName;
+ if (!ValidateFileType(fileName))
+ {
+ ShowNotify("无效的文件类型!");
+ return;
+ }
+
+ fileName = fileName.Replace(":", "_").Replace(" ", "_").Replace("\\", "_").Replace("/", "_");
+ fileName = DateTime.Now.Ticks.ToString() + "_" + fileName;
+ string url = "~/" + UploadFileService.PersonBaseInfoFilePath + DateTime.Now.Year + "-" + DateTime.Now.Month + "/";
+ string fileMapPath = Server.MapPath(url + fileName);
+ filePhoto.SaveAs(fileMapPath);
+ if (File.Exists(fileMapPath))
+ {
+ FileInfo fileInfo = new FileInfo(fileMapPath);
+ double size = Math.Ceiling(fileInfo.Length * 1.0 / 1024.0);
+ if (size > 300)
+ {
+ Alert.ShowInTop("照片大小超过300KB,请重新上传!", MessageBoxIcon.Warning);
+ return;
+ }
+ }
+ imgPhoto.ImageUrl = url + fileName;
+ // 清空文件上传组件
+ filePhoto.Reset();
+ }
+ }
+
+ ///
+ /// 身份证变化
+ ///
+ ///
+ ///
+ protected void txtIdentityCard_Blur(object sender, EventArgs e)
+ {
+ bool isok = true;
+ if (!string.IsNullOrEmpty(this.txtIdentityCard.Text))
+ {
+ string idCard = this.txtIdentityCard.Text.Trim();
+ var q2 = Funs.DB.Person_Persons.FirstOrDefault(x => x.IdentityCard == idCard && x.PersonId != this.CurrUser.PersonId);
+ if (q2 != null)
+ {
+ ShowNotify("输入的身份证号码已存在!", MessageBoxIcon.Warning);
+ return;
+ }
+ if (!IDCardValid.CheckIDCard(idCard))
+ {
+ isok = false;
+ ShowNotify("输入的身份证号码有误!", MessageBoxIcon.Warning);
+ }
+ if (isok)
+ {
+ ///生成二维码
+ this.hdUrl.Text = BLL.CreateQRCodeService.CreateCode_Simple("person$" + idCard);
+ DateTime? birth = IDCardValid.getBirthByIDCard(idCard);
+ if (birth.HasValue)
+ {
+ this.txtBirthday.Text = string.Format("{0:yyyy-MM-dd}", birth.Value);
+ }
+ }
+ }
+ }
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ protected void btnSave_Click(object sender, EventArgs e)
+ {
+ var getData = Person_PersonsService.GetPerson_PersonsById(this.CurrUser.PersonId);
+ if (getData != null)
+ {
+ getData.JobNum = this.txtJobNum.Text.Trim();
+ getData.Sex = this.rblSex.SelectedValue;
+ getData.IdentityCard = this.txtIdentityCard.Text.Trim();
+ getData.Birthday = IDCardValid.getBirthByIDCard(getData.IdentityCard);
+ getData.Telephone = this.txtTelephone.Text.Trim();
+ getData.Graduate = this.txtGraduate.Text.Trim();
+ if (!string.IsNullOrEmpty(this.hdUrl.Text))
+ {
+ getData.QRCodeAttachUrl = this.hdUrl.Text;
+ }
+ if (this.drpMaritalStatus.SelectedValue != Const._Null && !string.IsNullOrEmpty(this.drpMaritalStatus.SelectedValue))
+ {
+ getData.MaritalStatus = this.drpMaritalStatus.SelectedValue;
+ }
+ if (this.drpNation.SelectedValue != Const._Null && !string.IsNullOrEmpty(this.drpNation.SelectedValue))
+ {
+ getData.Nation = this.drpNation.SelectedValue;
+ }
+ if (this.drpNation.SelectedValue != Const._Null && !string.IsNullOrEmpty(this.drpNation.SelectedValue))
+ {
+ getData.Nation = this.drpNation.SelectedValue;
+ }
+ if (this.drpEduLevel.SelectedValue != Const._Null && !string.IsNullOrEmpty(this.drpEduLevel.SelectedValue))
+ {
+ getData.EduLevel = this.drpEduLevel.SelectedValue;
+ }
+ if (this.drpPosition.SelectedValue != Const._Null && !string.IsNullOrEmpty(this.drpPosition.SelectedValue))
+ {
+ getData.PositionId = this.drpPosition.SelectedValue;
+ }
+ if (this.drpPostTitle.SelectedValue != Const._Null && !string.IsNullOrEmpty(this.drpPostTitle.SelectedValue))
+ {
+ getData.PostTitleId = this.drpPostTitle.SelectedValue;
+ }
+ if (!string.IsNullOrEmpty(imgPhoto.ImageUrl) && imgPhoto.ImageUrl != "~/res/images/blank.png")
+ {
+ getData.PhotoUrl = imgPhoto.ImageUrl.Replace("~/", "");
+ getData.HeadImage = AttachFileService.SetImageToByteArray(Funs.RootPath + getData.PhotoUrl);
+ }
+ else
+ {
+ getData.PhotoUrl = null;
+ getData.HeadImage = null;
+ }
+ string info = Person_PersonsService.ValidPersonInfo(getData);
+ if (string.IsNullOrEmpty(info))
+ {
+ Person_PersonsService.UpdatePerson(getData);
+ LogService.AddSys_Log(this.CurrUser, getData.PersonName, getData.PersonId, BLL.Const.PersonalInfoMenuId, BLL.Const.BtnModify);
+ Alert.ShowInParent("保存成功!", MessageBoxIcon.Success);
+ }
+ else
+ {
+ Alert.ShowInParent(info, MessageBoxIcon.Warning);
+ }
+ }
+ }
}
}
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/Personal/PersonalInfo.aspx.designer.cs b/SGGL/FineUIPro.Web/Personal/PersonalInfo.aspx.designer.cs
index 432c55bd..c5d91891 100644
--- a/SGGL/FineUIPro.Web/Personal/PersonalInfo.aspx.designer.cs
+++ b/SGGL/FineUIPro.Web/Personal/PersonalInfo.aspx.designer.cs
@@ -7,11 +7,13 @@
// 自动生成>
//------------------------------------------------------------------------------
-namespace FineUIPro.Web.Personal {
-
-
- public partial class PersonalInfo {
-
+namespace FineUIPro.Web.Personal
+{
+
+
+ public partial class PersonalInfo
+ {
+
///
/// form1 控件。
///
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.Personal {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
+
///
/// PageManager1 控件。
///
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.Personal {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.PageManager PageManager1;
-
+
///
/// Panel2 控件。
///
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.Personal {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel Panel2;
-
+
///
/// TabStrip1 控件。
///
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.Personal {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TabStrip TabStrip1;
-
+
///
/// Tab1 控件。
///
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.Personal {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Tab Tab1;
-
+
///
/// Toolbar1 控件。
///
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.Personal {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Toolbar Toolbar1;
-
+
///
/// lbSystemVersion 控件。
///
@@ -74,7 +76,25 @@ namespace FineUIPro.Web.Personal {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Label lbSystemVersion;
-
+
+ ///
+ /// hdUrl 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.HiddenField hdUrl;
+
+ ///
+ /// btnSave 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.Button btnSave;
+
///
/// btnCustomQuery 控件。
///
@@ -83,7 +103,7 @@ namespace FineUIPro.Web.Personal {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Button btnCustomQuery;
-
+
///
/// SimpleForm1 控件。
///
@@ -92,7 +112,7 @@ namespace FineUIPro.Web.Personal {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Form SimpleForm1;
-
+
///
/// Panel3 控件。
///
@@ -101,7 +121,7 @@ namespace FineUIPro.Web.Personal {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel Panel3;
-
+
///
/// Panel1 控件。
///
@@ -110,7 +130,7 @@ namespace FineUIPro.Web.Personal {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel Panel1;
-
+
///
/// txtUserName 控件。
///
@@ -119,43 +139,52 @@ namespace FineUIPro.Web.Personal {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtUserName;
-
+
///
- /// txtUserCode 控件。
+ /// txtJobNum 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.TextBox txtUserCode;
-
+ protected global::FineUIPro.TextBox txtJobNum;
+
///
- /// drpSex 控件。
+ /// txtUnit 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.TextBox drpSex;
-
+ protected global::FineUIPro.TextBox txtUnit;
+
///
- /// dpBirthDay 控件。
+ /// rblSex 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.TextBox dpBirthDay;
-
+ protected global::FineUIPro.RadioButtonList rblSex;
+
///
- /// drpMarriage 控件。
+ /// txtBirthday 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.TextBox drpMarriage;
-
+ protected global::FineUIPro.DatePicker txtBirthday;
+
+ ///
+ /// drpMaritalStatus 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpMaritalStatus;
+
///
/// drpNation 控件。
///
@@ -163,17 +192,8 @@ namespace FineUIPro.Web.Personal {
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.TextBox drpNation;
-
- ///
- /// drpUnit 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.TextBox drpUnit;
-
+ protected global::FineUIPro.DropDownList drpNation;
+
///
/// Panel4 控件。
///
@@ -182,7 +202,7 @@ namespace FineUIPro.Web.Personal {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel Panel4;
-
+
///
/// txtAccount 控件。
///
@@ -191,7 +211,7 @@ namespace FineUIPro.Web.Personal {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtAccount;
-
+
///
/// txtIdentityCard 控件。
///
@@ -200,16 +220,7 @@ namespace FineUIPro.Web.Personal {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtIdentityCard;
-
- ///
- /// txtEmail 控件。
- ///
- ///
- /// 自动生成的字段。
- /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
- ///
- protected global::FineUIPro.TextBox txtEmail;
-
+
///
/// txtTelephone 控件。
///
@@ -218,25 +229,25 @@ namespace FineUIPro.Web.Personal {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextBox txtTelephone;
-
+
///
- /// drpEducation 控件。
+ /// txtGraduate 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.TextBox drpEducation;
-
+ protected global::FineUIPro.TextBox txtGraduate;
+
///
- /// txtHometown 控件。
+ /// drpEduLevel 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.TextBox txtHometown;
-
+ protected global::FineUIPro.DropDownList drpEduLevel;
+
///
/// drpPosition 控件。
///
@@ -244,8 +255,17 @@ namespace FineUIPro.Web.Personal {
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.TextBox drpPosition;
-
+ protected global::FineUIPro.DropDownList drpPosition;
+
+ ///
+ /// drpPostTitle 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.DropDownList drpPostTitle;
+
///
/// Panel5 控件。
///
@@ -254,16 +274,25 @@ namespace FineUIPro.Web.Personal {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Panel Panel5;
-
+
///
- /// Image1 控件。
+ /// imgPhoto 控件。
///
///
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
- protected global::FineUIPro.Image Image1;
-
+ protected global::FineUIPro.Image imgPhoto;
+
+ ///
+ /// filePhoto 控件。
+ ///
+ ///
+ /// 自动生成的字段。
+ /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
+ ///
+ protected global::FineUIPro.FileUpload filePhoto;
+
///
/// Form7 控件。
///
@@ -272,7 +301,7 @@ namespace FineUIPro.Web.Personal {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Form Form7;
-
+
///
/// txtPerformance 控件。
///
@@ -281,7 +310,7 @@ namespace FineUIPro.Web.Personal {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.TextArea txtPerformance;
-
+
///
/// Tab2 控件。
///
@@ -290,7 +319,7 @@ namespace FineUIPro.Web.Personal {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Tab Tab2;
-
+
///
/// SimpleForm2 控件。
///
@@ -299,7 +328,7 @@ namespace FineUIPro.Web.Personal {
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
///
protected global::FineUIPro.Form SimpleForm2;
-
+
///
/// Window1 控件。
///
diff --git a/SGGL/FineUIPro.Web/common/Menu_CQMS.xml b/SGGL/FineUIPro.Web/common/Menu_CQMS.xml
index ca181616..72f956cd 100644
--- a/SGGL/FineUIPro.Web/common/Menu_CQMS.xml
+++ b/SGGL/FineUIPro.Web/common/Menu_CQMS.xml
@@ -1,22 +1,15 @@
-
-
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
@@ -25,35 +18,50 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/SGGL/FineUIPro.Web/common/Menu_PZHGL.xml b/SGGL/FineUIPro.Web/common/Menu_PZHGL.xml
index e67fa0a1..15117ad8 100644
--- a/SGGL/FineUIPro.Web/common/Menu_PZHGL.xml
+++ b/SGGL/FineUIPro.Web/common/Menu_PZHGL.xml
@@ -1,18 +1,15 @@
-
+
-
-
-
+
+
+
-
-
-
\ No newline at end of file
diff --git a/SGGL/FineUIPro.Web/common/Menu_SysSet.xml b/SGGL/FineUIPro.Web/common/Menu_SysSet.xml
index 0d28934f..3aea3562 100644
--- a/SGGL/FineUIPro.Web/common/Menu_SysSet.xml
+++ b/SGGL/FineUIPro.Web/common/Menu_SysSet.xml
@@ -11,6 +11,7 @@
+
@@ -29,6 +30,7 @@
+