20230710
This commit is contained in:
@@ -51,19 +51,15 @@ namespace FineUIPro.Web.OfficeCheck.Check
|
||||
if (!string.IsNullOrEmpty(checkNotice.SubjectProjectId))
|
||||
{
|
||||
this.drpSubjectProject.SelectedValue = checkNotice.SubjectProjectId;
|
||||
SitePerson_PersonService.InitSitePersonDropDownList(this.drpSubjectUnitMan, checkNotice.SubjectProjectId, Const.UnitId_SEDIN, null, null, true);
|
||||
this.drpSubjectUnitMan.SelectedValue = checkNotice.SubjectUnitMan;
|
||||
}
|
||||
SitePerson_PersonService.InitSitePersonDropDownList(this.drpSubjectUnitMan, this.drpSubjectProject.SelectedValue, Const.sedinId, null, null, true);
|
||||
|
||||
// this.txtSubjectUnitMan.Text = checkNotice.SubjectUnitMan;
|
||||
this.drpUnit.SelectedValue = checkNotice.UnitId;
|
||||
this.drpDepart.SelectedValue = checkNotice.DepartId;
|
||||
this.drpCheckTeamLeader.SelectedValue = checkNotice.SubjectUnitMan;
|
||||
this.txtSubjectUnitAdd.Text = checkNotice.SubjectUnitAdd;
|
||||
this.txtSubjectUnitTel.Text = checkNotice.SubjectUnitTel;
|
||||
//this.txtSubjectObject.Text = checkNotice.SubjectObject;
|
||||
// this.txtCheckTeamLeaderName.Text = checkNotice.CheckTeamLeaderName;
|
||||
if (!string.IsNullOrEmpty(checkNotice.UnitId))
|
||||
{
|
||||
this.drpUnit.SelectedValue = checkNotice.UnitId;
|
||||
this.drpUnit.Enabled = false;
|
||||
}
|
||||
|
||||
this.drpSex.SelectedValue = checkNotice.SexName;
|
||||
this.hdUserId.Text = checkNotice.CheckTeamLeader;
|
||||
}
|
||||
@@ -85,19 +81,26 @@ namespace FineUIPro.Web.OfficeCheck.Check
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.drpCheckTeamLeader.SelectedValue != Const._Null)
|
||||
if (this.drpCheckTeamLeader.SelectedValue == Const._Null)
|
||||
{
|
||||
ShowNotify("请先填写检查组长!", MessageBoxIcon.Warning);
|
||||
return;
|
||||
}
|
||||
Model.ProjectSupervision_CheckNotice newCheckNotice = new Model.ProjectSupervision_CheckNotice();
|
||||
newCheckNotice.SubjectUnitAdd = this.txtSubjectUnitAdd.Text.Trim();
|
||||
// newCheckNotice.SubjectUnitMan = this.txtSubjectUnitMan.Text.Trim();
|
||||
if (this.drpSubjectUnitMan.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpSubjectUnitMan.SelectedValue))
|
||||
{
|
||||
newCheckNotice.SubjectUnitMan = this.drpSubjectUnitMan.SelectedValue;
|
||||
}
|
||||
newCheckNotice.SubjectUnitTel = this.txtSubjectUnitTel.Text.Trim();
|
||||
newCheckNotice.CheckStartTime = Funs.GetNewDateTime(this.txtCheckStartTime.Text).Value;
|
||||
newCheckNotice.CheckEndTime = Funs.GetNewDateTime(this.txtCheckEndTime.Text).Value;
|
||||
newCheckNotice.CompileMan = this.CurrUser.PersonId;
|
||||
newCheckNotice.CompileDate = DateTime.Now;
|
||||
if (this.drpCheckTeamLeader.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpCheckTeamLeader.SelectedValue))
|
||||
{
|
||||
newCheckNotice.CheckTeamLeader = this.drpCheckTeamLeader.SelectedValue;
|
||||
}
|
||||
newCheckNotice.CheckTeamLeaderName = this.drpCheckTeamLeader.SelectedText;
|
||||
if (this.drpSubjectProject.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpSubjectProject.SelectedValue))
|
||||
{
|
||||
@@ -111,9 +114,9 @@ namespace FineUIPro.Web.OfficeCheck.Check
|
||||
{
|
||||
newCheckNotice.UnitId = this.drpUnit.SelectedValue;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.hdUserId.Text))
|
||||
if (this.drpDepart.SelectedValue != BLL.Const._Null && !string.IsNullOrEmpty(this.drpDepart.SelectedValue))
|
||||
{
|
||||
newCheckNotice.CheckTeamLeader = this.hdUserId.Text;
|
||||
newCheckNotice.DepartId = this.drpDepart.SelectedValue;
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(this.CheckNoticeId))
|
||||
@@ -172,7 +175,7 @@ namespace FineUIPro.Web.OfficeCheck.Check
|
||||
|
||||
protected void drpUnit_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
BLL.Person_PersonsService.InitUserUnitIdDepartIdDropDownList(this.drpCheckTeamLeader, this.drpUnit.SelectedValue, string.Empty, true);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user