积分优化

This commit is contained in:
2026-10-17 10:34:45 +08:00
parent 29b15d4b54
commit bbd0e6d392
27 changed files with 1054 additions and 335 deletions
@@ -54,11 +54,32 @@ namespace FineUIPro.Web.Check.QMS
var model = CheckProblemQualityService.GetCheckProblemById(this.CheckId);
if (model != null)
{
this.drpUnit.SelectedValue = model.UnitId;
BLL.ProjectService.InitProjectDropDownList(this.drpProject, model.UnitId, true);
if (!string.IsNullOrWhiteSpace(model.UnitId))
{
this.drpUnit.SelectedValue = model.UnitId;
this.drpRectificationUser.Items.Clear();
BLL.UserService.InitUserUnitIdDropDownList(this.drpRectificationUser, model.UnitId, true);
this.drpPMUser.Items.Clear();
BLL.UserService.InitUserUnitIdDropDownList(this.drpPMUser, model.UnitId, true);
this.drpQCUser.Items.Clear();
BLL.UserService.InitUserUnitIdDropDownList(this.drpQCUser, model.UnitId, true);
BLL.ProjectService.InitProjectDropDownList(this.drpProject, model.UnitId, true);
}
//this.drpUnit.SelectedValue = model.UnitId;
//BLL.ProjectService.InitProjectDropDownList(this.drpProject, model.UnitId, true);
if (!string.IsNullOrWhiteSpace(model.ProjectId))
{
this.drpProject.SelectedValue = model.ProjectId;
var pro = BLL.ProjectService.GetProjectByProjectId(model.ProjectId);
this.txtAddress.Text = pro.ProjectAddress;
this.drpRectificationUser.Items.Clear();
BLL.UserService.InitUserDropDownList(this.drpRectificationUser, model.ProjectId, true);
this.drpPMUser.Items.Clear();
BLL.UserService.InitUserDropDownList(this.drpPMUser, model.ProjectId, true);
this.drpQCUser.Items.Clear();
BLL.UserService.InitUserUnitIdDropDownList(this.drpQCUser, model.ProjectId, true);
}
else if (!string.IsNullOrWhiteSpace(model.ProjectName))
{
@@ -133,8 +154,8 @@ namespace FineUIPro.Web.Check.QMS
{
//受检单位
UnitService.InitBranchUnitDropDownList(this.drpUnit, false);
//受检项目
ProjectService.InitProjectDropDownList(this.drpProject, true);
////受检项目
//ProjectService.InitProjectDropDownList(this.drpProject, true);
//问题分类
QualityProblemClassifyService.InitClassifyDropDownList(this.drpClassify, false);
//问题性质
@@ -148,9 +169,9 @@ namespace FineUIPro.Web.Check.QMS
/// <param name="e"></param>
protected void drpUnit_SelectedIndexChanged(object sender, EventArgs e)
{
//this.drpProject.Items.Clear();
////受检项目
//BLL.ProjectService.InitProjectDropDownList(this.drpProject, this.drpUnit.SelectedValue, true);
this.drpProject.Items.Clear();
//受检项目
BLL.ProjectService.InitProjectDropDownList(this.drpProject, this.drpUnit.SelectedValue, true);
this.drpRectificationUser.Items.Clear();
BLL.UserService.InitUserUnitIdDropDownList(this.drpRectificationUser, this.drpUnit.SelectedValue, true);
@@ -174,6 +195,8 @@ namespace FineUIPro.Web.Check.QMS
if (pro != null)
{
this.txtAddress.Text = pro.ProjectAddress;
this.drpRectificationUser.Items.Clear();
BLL.UserService.InitUserDropDownList(this.drpRectificationUser, proId, true);
this.drpPMUser.Items.Clear();
BLL.UserService.InitUserDropDownList(this.drpPMUser, proId, true);
this.drpQCUser.Items.Clear();