迁移7项目签名邮件等等功能
This commit is contained in:
@@ -8,85 +8,95 @@
|
||||
</head>
|
||||
<body>
|
||||
<form id="form1" runat="server">
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtUserName" runat="server" Label="姓名" Required="true" ShowRedStar="true" FocusOnPageLoad="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
<Items>
|
||||
<f:TextBox ID="txtAccount" runat="server" Label="账号" Required="true" ShowRedStar="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:PageManager ID="PageManager1" AutoSizePanelID="SimpleForm1" runat="server" />
|
||||
<f:Form ID="SimpleForm1" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtUserName" runat="server" Label="姓名" Required="true" ShowRedStar="true" FocusOnPageLoad="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
<Items>
|
||||
<f:TextBox ID="txtAccount" runat="server" Label="账号" Required="true" ShowRedStar="true">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownBox runat="server" Label="角色" ID="ddbRole" DataControlID="ckbRole" EnableMultiSelect="true" >
|
||||
<PopPanel>
|
||||
<f:SimpleForm ID="SimpleForm3" BodyPadding="10px" runat="server" AutoScroll="true"
|
||||
ShowBorder="True" ShowHeader="false" Hidden="true">
|
||||
<Items>
|
||||
<f:Label ID="Label2" runat="server" Text="请选择用户角色(可有多个角色):"></f:Label>
|
||||
<f:CheckBoxList ID="ckbRole" ColumnNumber="3" runat="server">
|
||||
</f:CheckBoxList>
|
||||
</Items>
|
||||
</f:SimpleForm>
|
||||
</PopPanel>
|
||||
</f:DropDownBox>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownBox runat="server" Label="角色" ID="ddbRole" DataControlID="ckbRole" EnableMultiSelect="true">
|
||||
<PopPanel>
|
||||
<f:SimpleForm ID="SimpleForm3" BodyPadding="10px" runat="server" AutoScroll="true"
|
||||
ShowBorder="True" ShowHeader="false" Hidden="true">
|
||||
<Items>
|
||||
<f:Label ID="Label2" runat="server" Text="请选择用户角色(可有多个角色):"></f:Label>
|
||||
<f:CheckBoxList ID="ckbRole" ColumnNumber="3" runat="server">
|
||||
</f:CheckBoxList>
|
||||
</Items>
|
||||
</f:SimpleForm>
|
||||
</PopPanel>
|
||||
</f:DropDownBox>
|
||||
|
||||
</Items>
|
||||
<Items>
|
||||
<f:TextBox ID="txtUserCode" runat="server" Label="编号" >
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Items>
|
||||
<Items>
|
||||
<f:TextBox ID="txtUserCode" runat="server" Label="编号">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpUnit" runat="server" Label="单位" EnableEdit="true" EnableGroup="true"
|
||||
ForceSelection="true" Required="true" ShowRedStar="true">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
<Items>
|
||||
<f:TextBox ID="txtDepart" runat="server" Label="部门" >
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtEmail" runat="server" Label="电子邮箱" RegexPattern="EMAIL" >
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
<Items>
|
||||
<f:TextBox ID="txtEmailPassword" runat="server" Label="邮箱密码" TextMode="Password">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="drpUnit" runat="server" Label="单位" EnableEdit="true" EnableGroup="true"
|
||||
ForceSelection="true" Required="true" ShowRedStar="true">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
<Items>
|
||||
<f:TextBox ID="txtDepart" runat="server" Label="部门">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:CheckBox ID="cbIsPost" Checked="true" Label="是否在岗" runat="server" />
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存数据" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" Text="关闭" runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtEmail" runat="server" Label="电子邮箱" RegexPattern="EMAIL">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
<Items>
|
||||
<f:TextBox ID="txtEmailPassword" runat="server" Label="邮箱密码" TextMode="Password">
|
||||
</f:TextBox>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:CheckBox ID="cbIsPost" Checked="true" Label="是否在岗" runat="server" />
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:FileUpload ID="FileExcel" runat="server" Label="签名上传" EmptyText="请上传JGP或者PNG格式图片"
|
||||
Width="400px" LabelWidth="90px" LabelAlign="Right">
|
||||
</f:FileUpload>
|
||||
<f:Button ID="imgbtnImport" runat="server" Text="上传" ToolTip="文件上传!" OnClick="imgbtnImport_Click">
|
||||
</f:Button>
|
||||
<f:HiddenField ID="hidUrl" runat="server"></f:HiddenField>
|
||||
<f:Image ID="ViewImage" ImageUrl="" ImageWidth="100" runat="server" Width="100"></f:Image>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
</Rows>
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Bottom" ToolbarAlign="Right" runat="server">
|
||||
<Items>
|
||||
<f:Button ID="btnSave" Icon="SystemSave" runat="server" Text="保存数据" ValidateForms="SimpleForm1"
|
||||
OnClick="btnSave_Click">
|
||||
</f:Button>
|
||||
<f:Button ID="btnClose" EnablePostBack="false" Text="关闭" runat="server" Icon="SystemClose">
|
||||
</f:Button>
|
||||
</Items>
|
||||
</f:Toolbar>
|
||||
</Toolbars>
|
||||
</f:Form>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -7,6 +7,7 @@ using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using BLL;
|
||||
using System.IO;
|
||||
|
||||
namespace FineUIPro.Web.common.SysManage
|
||||
{
|
||||
@@ -69,7 +70,10 @@ namespace FineUIPro.Web.common.SysManage
|
||||
this.txtUserName.Text = user.UserName;
|
||||
this.txtAccount.Text = user.Account;
|
||||
this.txtDepart.Text = user.Depart;
|
||||
|
||||
this.ViewImage.ImageUrl = user.SigntrueImage;
|
||||
this.hidUrl.Text = user.SigntrueImage;
|
||||
this.txtEmail.Text = user.Email;
|
||||
this.txtEmailPassword.Text = user.EmailPassword;
|
||||
if (user.IsPost.HasValue)
|
||||
{
|
||||
this.cbIsPost.Checked = user.IsPost.Value;
|
||||
@@ -93,6 +97,35 @@ namespace FineUIPro.Web.common.SysManage
|
||||
btnClose.OnClientClick = ActiveWindow.GetHideReference();
|
||||
}
|
||||
|
||||
protected void imgbtnImport_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.FileExcel.HasFile == false)
|
||||
{
|
||||
ShowNotify("请上传附件图片!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string IsXls = Path.GetExtension(this.FileExcel.FileName).ToString().Trim().ToLower();
|
||||
if (IsXls != ".jpg" && IsXls != ".png")
|
||||
{
|
||||
ShowNotify("只能上传JGP或者PNG格式图片!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
string rootPath = Server.MapPath("~/");
|
||||
string initFullPath = $"{rootPath}File\\Image\\";
|
||||
if (!Directory.Exists(initFullPath))
|
||||
{
|
||||
Directory.CreateDirectory(initFullPath);
|
||||
}
|
||||
string fileName = $"{Guid.NewGuid().ToString()}{Path.GetExtension(this.FileExcel.FileName).ToString()}";
|
||||
string filePath = $"{initFullPath}{fileName}";
|
||||
//文件上传服务器
|
||||
this.FileExcel.PostedFile.SaveAs(filePath);
|
||||
this.hidUrl.Text = $"/File/Image/{fileName}";
|
||||
this.ViewImage.ImageUrl = this.hidUrl.Text;
|
||||
this.ViewImage.Hidden = false;
|
||||
ShowNotify("上传成功", MessageBoxIcon.Success);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 保存按钮
|
||||
/// </summary>
|
||||
@@ -126,6 +159,8 @@ namespace FineUIPro.Web.common.SysManage
|
||||
newUser.IsPost = cbIsPost.Checked;
|
||||
newUser.RoleIds = String.Join("|", ddbRole.Values);
|
||||
|
||||
newUser.SigntrueImage = this.hidUrl.Text == null ? "" : this.hidUrl.Text;
|
||||
|
||||
newUser.Email = this.txtEmail.Text.Trim();
|
||||
if (!String.IsNullOrEmpty(this.txtEmailPassword.Text.Trim()))
|
||||
{
|
||||
|
||||
+60
-22
@@ -7,11 +7,13 @@
|
||||
// </自动生成>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace FineUIPro.Web.common.SysManage {
|
||||
|
||||
|
||||
public partial class UserListEdit {
|
||||
|
||||
namespace FineUIPro.Web.common.SysManage
|
||||
{
|
||||
|
||||
|
||||
public partial class UserListEdit
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// form1 控件。
|
||||
/// </summary>
|
||||
@@ -20,7 +22,7 @@ namespace FineUIPro.Web.common.SysManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// PageManager1 控件。
|
||||
/// </summary>
|
||||
@@ -29,7 +31,7 @@ namespace FineUIPro.Web.common.SysManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.PageManager PageManager1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm1 控件。
|
||||
/// </summary>
|
||||
@@ -38,7 +40,7 @@ namespace FineUIPro.Web.common.SysManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Form SimpleForm1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtUserName 控件。
|
||||
/// </summary>
|
||||
@@ -47,7 +49,7 @@ namespace FineUIPro.Web.common.SysManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUserName;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtAccount 控件。
|
||||
/// </summary>
|
||||
@@ -56,7 +58,7 @@ namespace FineUIPro.Web.common.SysManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtAccount;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ddbRole 控件。
|
||||
/// </summary>
|
||||
@@ -65,7 +67,7 @@ namespace FineUIPro.Web.common.SysManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownBox ddbRole;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SimpleForm3 控件。
|
||||
/// </summary>
|
||||
@@ -74,7 +76,7 @@ namespace FineUIPro.Web.common.SysManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.SimpleForm SimpleForm3;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Label2 控件。
|
||||
/// </summary>
|
||||
@@ -83,7 +85,7 @@ namespace FineUIPro.Web.common.SysManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Label Label2;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// ckbRole 控件。
|
||||
/// </summary>
|
||||
@@ -92,7 +94,7 @@ namespace FineUIPro.Web.common.SysManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.CheckBoxList ckbRole;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtUserCode 控件。
|
||||
/// </summary>
|
||||
@@ -101,7 +103,7 @@ namespace FineUIPro.Web.common.SysManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUserCode;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// drpUnit 控件。
|
||||
/// </summary>
|
||||
@@ -110,7 +112,7 @@ namespace FineUIPro.Web.common.SysManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpUnit;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtDepart 控件。
|
||||
/// </summary>
|
||||
@@ -119,7 +121,7 @@ namespace FineUIPro.Web.common.SysManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtDepart;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtEmail 控件。
|
||||
/// </summary>
|
||||
@@ -128,7 +130,7 @@ namespace FineUIPro.Web.common.SysManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtEmail;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// txtEmailPassword 控件。
|
||||
/// </summary>
|
||||
@@ -137,7 +139,7 @@ namespace FineUIPro.Web.common.SysManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtEmailPassword;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// cbIsPost 控件。
|
||||
/// </summary>
|
||||
@@ -146,7 +148,43 @@ namespace FineUIPro.Web.common.SysManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.CheckBox cbIsPost;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// FileExcel 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.FileUpload FileExcel;
|
||||
|
||||
/// <summary>
|
||||
/// imgbtnImport 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button imgbtnImport;
|
||||
|
||||
/// <summary>
|
||||
/// hidUrl 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.HiddenField hidUrl;
|
||||
|
||||
/// <summary>
|
||||
/// ViewImage 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Image ViewImage;
|
||||
|
||||
/// <summary>
|
||||
/// Toolbar1 控件。
|
||||
/// </summary>
|
||||
@@ -155,7 +193,7 @@ namespace FineUIPro.Web.common.SysManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnSave 控件。
|
||||
/// </summary>
|
||||
@@ -164,7 +202,7 @@ namespace FineUIPro.Web.common.SysManage {
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Button btnSave;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// btnClose 控件。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user