20230229
This commit is contained in:
@@ -20,13 +20,26 @@ namespace FineUIPro.Web.ProjectData
|
||||
ViewState["ProjectUserId"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
/// <summary>
|
||||
/// 签名附件路径
|
||||
/// </summary>
|
||||
public string SignatureUrl
|
||||
{
|
||||
get
|
||||
{
|
||||
return (string)ViewState["SignatureUrl"];
|
||||
}
|
||||
set
|
||||
{
|
||||
ViewState["SignatureUrl"] = value;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 加载页面
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
@@ -61,7 +74,12 @@ namespace FineUIPro.Web.ProjectData
|
||||
this.lbUserCode.Text = User.Account;
|
||||
this.lbUserName.Text = User.UserName;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(projectUser.WorkAreaId))
|
||||
if (!string.IsNullOrEmpty(User.SignatureUrl))
|
||||
{
|
||||
this.SignatureUrl = User.SignatureUrl;
|
||||
this.Image2.ImageUrl = "~/" + this.SignatureUrl;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(projectUser.WorkAreaId))
|
||||
{
|
||||
txtUnitWork.Values = projectUser.WorkAreaId.Split(',');
|
||||
}
|
||||
@@ -180,8 +198,11 @@ namespace FineUIPro.Web.ProjectData
|
||||
if (this.drpWorkPost.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
user.ProjectWorkPostId = this.drpWorkPost.SelectedValue;
|
||||
}
|
||||
BLL.UserService.UpdateUser(user);
|
||||
}
|
||||
|
||||
user.SignatureUrl = this.SignatureUrl;
|
||||
|
||||
BLL.UserService.UpdateUser(user);
|
||||
}
|
||||
BLL.LogService.AddSys_Log(this.CurrUser, this.lbUserCode.Text, newProjectUser.UserId, BLL.Const.ProjectUserMenuId, BLL.Const.BtnModify);
|
||||
ShowNotify("保存数据成功!", MessageBoxIcon.Success);
|
||||
@@ -189,12 +210,32 @@ namespace FineUIPro.Web.ProjectData
|
||||
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 更新用户的项目岗位
|
||||
/// </summary>
|
||||
/// <param name="projectUser"></param>
|
||||
private void SetWorkPost(Model.Project_ProjectUser projectUser)
|
||||
#region 上传签名
|
||||
/// <summary>
|
||||
/// 上传签名
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnSignature_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (fileSignature.HasFile)
|
||||
{
|
||||
string fileName = fileSignature.ShortFileName;
|
||||
if (!ValidateFileType(fileName))
|
||||
{
|
||||
ShowNotify("无效的文件类型!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
this.SignatureUrl = UploadFileService.UploadAttachment(Funs.RootPath, this.fileSignature, this.SignatureUrl, UploadFileService.UserFilePath);
|
||||
this.Image2.ImageUrl = "~/" + this.SignatureUrl;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
/// <summary>
|
||||
/// 更新用户的项目岗位
|
||||
/// </summary>
|
||||
/// <param name="projectUser"></param>
|
||||
private void SetWorkPost(Model.Project_ProjectUser projectUser)
|
||||
{
|
||||
var user = BLL.UserService.GetUserByUserId(projectUser.UserId);
|
||||
if (user != null && !string.IsNullOrEmpty(user.IdentityCard))
|
||||
|
||||
Reference in New Issue
Block a user