关键事项新增时补充即时通知责任人功能
This commit is contained in:
@@ -25,22 +25,18 @@
|
||||
<f:Form ID="Form_edit" ShowBorder="false" ShowHeader="false" AutoScroll="true"
|
||||
BodyPadding="10px" runat="server" RedStarPosition="BeforeText" LabelAlign="Right">
|
||||
<Rows>
|
||||
<f:FormRow>
|
||||
<f:FormRow Hidden="true">
|
||||
<Items>
|
||||
<f:TextBox ID="txtGJSXID" runat="server" Label="编号" Hidden="true" MaxLength="20" LabelWidth="110px">
|
||||
</f:TextBox>
|
||||
<f:DropDownList ID="DropUnitId" runat="server" Label="责任单位" AutoPostBack="true" OnSelectedIndexChanged="DropUnitId_SelectedIndexChanged" MaxLength="50" LabelWidth="110px">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="DropCNProfessional_ID" runat="server" Label="专业" MaxLength="50" LabelWidth="110px" EnableCheckBoxSelect="true" EnableMultiSelect="true">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtUserID" runat="server" Label="提出人" MaxLength="20" Readonly="true" AutoPostBack="true" OnTextChanged="TextBox_TextChanged" LabelWidth="110px">
|
||||
</f:TextBox>
|
||||
<f:DatePicker ID="Date_CreateDate" runat="server" Label="提出日期" Readonly="true" LabelWidth="110px">
|
||||
</f:DatePicker>
|
||||
<f:DropDownList ID="DropUnitId" runat="server" Label="责任单位" AutoPostBack="true" OnSelectedIndexChanged="DropUnitId_SelectedIndexChanged" MaxLength="50" LabelWidth="110px" Required="true" ShowRedStar="true">
|
||||
</f:DropDownList>
|
||||
<f:DropDownList ID="DropCNProfessional_ID" runat="server" Label="专业" MaxLength="50" LabelWidth="110px" EnableCheckBoxSelect="true" EnableMultiSelect="true">
|
||||
</f:DropDownList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
@@ -56,12 +52,28 @@
|
||||
<f:DropDownList ID="DropUser_Acceptance" runat="server" Label="责任人" EmptyText="支持模糊匹配" AutoSelectFirstItem="false" Required="true" ShowRedStar="true" MaxLength="50" LabelWidth="110px"
|
||||
EnableCheckBoxSelect="true" EnableEdit="true">
|
||||
</f:DropDownList>
|
||||
<f:DatePicker ID="Date_CompleteDate" runat="server" Label="要求完成日期" MinDate="<%# DateTime.Now.AddDays(1) %>" ShowRedStar="true" LabelWidth="110px">
|
||||
</f:DatePicker>
|
||||
<f:RadioButtonList ID="rblNotice" runat="server" Label="即时邮件通知" LabelWidth="110px" Width="320px" AutoColumnWidth="true">
|
||||
<f:RadioItem Value="1" Text="是" Selected="true" />
|
||||
<f:RadioItem Value="0" Text="否" />
|
||||
</f:RadioButtonList>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:DropDownList ID="DropUser_ReceiveID" runat="server" Label="跟踪人" EmptyText="支持模糊匹配" AutoSelectFirstItem="false" MaxLength="50" LabelWidth="110px"
|
||||
EnableCheckBoxSelect="true" EnableEdit="true"
|
||||
OnSelectedIndexChanged="DropUser_ReceiveID_TextChanged" AutoPostBack="true">
|
||||
</f:DropDownList>
|
||||
<f:DatePicker ID="Date_CompleteDate" runat="server" Label="要求完成日期" MinDate="<%# DateTime.Now.AddDays(1) %>" ShowRedStar="true" LabelWidth="110px">
|
||||
</f:DatePicker>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
<Items>
|
||||
<f:TextBox ID="txtUserID" runat="server" Label="提出人" MaxLength="20" Readonly="true" AutoPostBack="true" OnTextChanged="TextBox_TextChanged" LabelWidth="110px">
|
||||
</f:TextBox>
|
||||
<f:DatePicker ID="Date_CreateDate" runat="server" Label="提出日期" Readonly="true" LabelWidth="110px">
|
||||
</f:DatePicker>
|
||||
</Items>
|
||||
</f:FormRow>
|
||||
<f:FormRow>
|
||||
|
||||
@@ -705,6 +705,8 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
/// <param name="e"></param>
|
||||
protected void btnsubmit_Click(object sender, EventArgs e)
|
||||
{
|
||||
#region 数据验证
|
||||
|
||||
if (this.DropUnitId.SelectedValue == Const._Null)
|
||||
{
|
||||
Alert.ShowInParent("请选择单位!", MessageBoxIcon.Warning);
|
||||
@@ -725,7 +727,8 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
Alert.ShowInParent("事项类别!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
if (this.DropUser_Acceptance.SelectedValue == null || this.DropUser_Acceptance.SelectedValue == Const._Null)
|
||||
var DropUser_AcceptanceId = this.DropUser_Acceptance.SelectedValue;
|
||||
if (DropUser_AcceptanceId == null || DropUser_AcceptanceId == Const._Null)
|
||||
{
|
||||
Alert.ShowInParent("请选择责任人!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
@@ -741,12 +744,18 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
return;
|
||||
}
|
||||
|
||||
////勾选邮件即时通知责任人,先判断责任人是否已维护邮箱
|
||||
//if (this.Date_CompleteDate.Text == "")
|
||||
//{
|
||||
// Alert.ShowInParent("请选择要求完成日期!", MessageBoxIcon.Warning);
|
||||
// return;
|
||||
//}
|
||||
string rNotice = this.rblNotice.SelectedValue;
|
||||
//勾选邮件即时通知责任人,先判断责任人是否已维护邮箱
|
||||
if (rNotice == "1")
|
||||
{
|
||||
if (!BLL.UserService.IsUserHaveEmail(DropUser_AcceptanceId))
|
||||
{
|
||||
Alert.ShowInParent("请先给责任人维护邮箱!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
string EditType = Request.Params["EditType"];
|
||||
|
||||
@@ -754,6 +763,14 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
if (string.IsNullOrEmpty(ID))
|
||||
{
|
||||
save("2");
|
||||
//勾选邮件即时通知责任人,邮箱通知提醒关键事项
|
||||
if (rNotice == "1")
|
||||
{
|
||||
if (BLL.UserService.IsUserHaveEmail(DropUser_AcceptanceId))
|
||||
{
|
||||
GJSXMonitorService.GJSXNoticeSendEmail(DropUser_AcceptanceId, this.txtGJSXID.Text.Trim());
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
+29
-20
@@ -86,24 +86,6 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList DropCNProfessional_ID;
|
||||
|
||||
/// <summary>
|
||||
/// txtUserID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUserID;
|
||||
|
||||
/// <summary>
|
||||
/// Date_CreateDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker Date_CreateDate;
|
||||
|
||||
/// <summary>
|
||||
/// DropQuestionTypeID 控件。
|
||||
/// </summary>
|
||||
@@ -132,13 +114,13 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
protected global::FineUIPro.DropDownList DropUser_Acceptance;
|
||||
|
||||
/// <summary>
|
||||
/// Date_CompleteDate 控件。
|
||||
/// rblNotice 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker Date_CompleteDate;
|
||||
protected global::FineUIPro.RadioButtonList rblNotice;
|
||||
|
||||
/// <summary>
|
||||
/// DropUser_ReceiveID 控件。
|
||||
@@ -149,6 +131,33 @@ namespace FineUIPro.Web.PZHGL.GJSX
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList DropUser_ReceiveID;
|
||||
|
||||
/// <summary>
|
||||
/// Date_CompleteDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker Date_CompleteDate;
|
||||
|
||||
/// <summary>
|
||||
/// txtUserID 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.TextBox txtUserID;
|
||||
|
||||
/// <summary>
|
||||
/// Date_CreateDate 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DatePicker Date_CreateDate;
|
||||
|
||||
/// <summary>
|
||||
/// drpCsUsers 控件。
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user