20220908 人员列表修改

This commit is contained in:
2022-09-08 17:43:46 +08:00
parent f38675c06a
commit e0f256688a
7 changed files with 139 additions and 6 deletions
+2 -1
View File
@@ -127,12 +127,13 @@
</f:DatePicker>
</Items>
</f:FormRow>
<f:FormRow>
<f:FormRow ColumnWidths="25% 25% 50%">
<Items>
<f:RadioButtonList ID="rblSex" runat="server" Label="性别">
<f:RadioItem Value="1" Text="男" Selected="true" />
<f:RadioItem Value="2" Text="女" />
</f:RadioButtonList>
<f:CheckBox runat="server" ID="ckIsPost" Label="在职" Checked="true" AutoPostBack="true" OnCheckedChanged="ckIsPost_CheckedChanged"></f:CheckBox>
<f:DatePicker ID="txtBirthday" runat="server" Label="出生日期">
</f:DatePicker>
</Items>
+16 -1
View File
@@ -76,6 +76,7 @@ namespace FineUIPro.Web.Person
this.txtPersonName.Text = person.PersonName;
this.txtJobNum.Text = person.JobNum;
this.drpUnit.SelectedValue = person.UnitId;
this.ckIsPost.Checked = person.IsPost.Value;
if (!string.IsNullOrEmpty(person.DepartId))
{
this.drpDepart.SelectedValue = person.DepartId;
@@ -504,7 +505,7 @@ namespace FineUIPro.Web.Person
RelativeTel = this.txtRelativeTel.Text.Trim(),
Address = this.txtAddress.Text.Trim(),
SignatureUrl = this.SignatureUrl,
IsPost = true,
IsPost = this.ckIsPost.Checked,
};
newPerson.RoleIds = Funs.GetStringByArray(this.drpRole.SelectedValueArray);
@@ -1049,6 +1050,20 @@ namespace FineUIPro.Web.Person
}
}
#endregion
#endregion
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void ckIsPost_CheckedChanged(object sender, CheckedEventArgs e)
{
if (!this.ckIsPost.Checked)
{
Alert.ShowInParent("人员不在职,则当前人所在的所有项目都将离场!", MessageBoxIcon.Warning);
}
}
}
}
+9
View File
@@ -239,6 +239,15 @@ namespace FineUIPro.Web.Person
/// </remarks>
protected global::FineUIPro.RadioButtonList rblSex;
/// <summary>
/// ckIsPost 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.CheckBox ckIsPost;
/// <summary>
/// txtBirthday 控件。
/// </summary>