补充公司级树
This commit is contained in:
@@ -38,17 +38,22 @@ namespace FineUIPro.Web.CQMS.Check
|
||||
{
|
||||
this.ProjectId = Request.Params["projectId"];
|
||||
}
|
||||
|
||||
this.InitUnitDownList();
|
||||
this.ucTree.UnitId = this.CurrUser.UnitId;
|
||||
this.ucTree.ProjectId = this.ProjectId;
|
||||
if (!string.IsNullOrEmpty(this.CurrUser.LoginProjectId))
|
||||
{
|
||||
this.panelLeftRegion.Hidden = true;
|
||||
// this.Grid1.Columns[0].Hidden = true;
|
||||
////权限按钮方法
|
||||
this.GetList();
|
||||
}
|
||||
|
||||
QualityQuestionTypeService.InitQualityQuestionTypeDownList(drpQuestionType, true);
|
||||
Funs.FineUIPleaseSelect(drpQuestionType);
|
||||
this.drpCheckType.DataTextField = "Text";
|
||||
this.drpCheckType.DataValueField = "Value";
|
||||
this.drpCheckType.DataSource = BLL.JointCheckService.GetCheckTypeList2();
|
||||
this.drpCheckType.DataBind();
|
||||
Funs.FineUIPleaseSelect(drpState);
|
||||
|
||||
BindGrid();
|
||||
}
|
||||
|
||||
@@ -56,28 +61,24 @@ namespace FineUIPro.Web.CQMS.Check
|
||||
|
||||
protected void changeTree(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
this.ProjectId = this.ucTree.ProjectId;
|
||||
this.GetList();
|
||||
this.InitUnitDownList();
|
||||
this.BindGrid();
|
||||
|
||||
}
|
||||
private void GetList()
|
||||
|
||||
private void InitUnitDownList()
|
||||
{
|
||||
QualityQuestionTypeService.InitQualityQuestionTypeDownList(drpQuestionType, true);
|
||||
UnitService.InitUnitDropDownList(drpSponsorUnit, this.ProjectId, true);//施工单位
|
||||
UnitWorkService.InitUnitWorkDownList(drpUnitWork, this.ProjectId, true);//单位工程
|
||||
CNProfessionalService.InitCNProfessionalDownList(drpCNProfessional, true);//专业
|
||||
this.drpCheckType.DataTextField = "Text";
|
||||
this.drpCheckType.DataValueField = "Value";
|
||||
this.drpCheckType.DataSource = BLL.JointCheckService.GetCheckTypeList2();
|
||||
this.drpCheckType.DataBind();
|
||||
Funs.FineUIPleaseSelect(drpState);
|
||||
Funs.FineUIPleaseSelect(drpQuestionType);
|
||||
}
|
||||
|
||||
public void BindGrid()
|
||||
{
|
||||
if (string.IsNullOrEmpty(this.ProjectId))
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (!string.IsNullOrEmpty(this.ProjectId))
|
||||
{
|
||||
string strSql = @"select * from View_Check_JointCheckDetail where 1=1";
|
||||
|
||||
Reference in New Issue
Block a user