fix:尾项管理下拉多选
This commit is contained in:
@@ -33,6 +33,9 @@ namespace FineUIPro.Web.Transfer
|
||||
GetButtonPower();
|
||||
BLL.PunchlistFromService.InitTurnoverSystemCodeUnitDropDownList(this.drpTurnoverSystemCode, this.CurrUser.LoginProjectId, false);
|
||||
BLL.PunchlistFromService.InitActionByUnitDropDownList(this.ddlAction_By, this.CurrUser.LoginProjectId, false);
|
||||
BLL.PunchlistFromService.InitPICDropDownList(this.ddlPIC, this.CurrUser.LoginProjectId, false);//责任人PIC
|
||||
BLL.PunchlistFromService.InitWUHPICDropDownList(this.ddlPIC_WUH, this.CurrUser.LoginProjectId, false);//责任人-五环/PIC-WUH
|
||||
BLL.PunchlistFromService.InitDiscDropDownList(this.ddlDisc, this.CurrUser.LoginProjectId, false);//Disc
|
||||
BindGrid();
|
||||
|
||||
this.btnNew.OnClientClick = Window1.GetShowReference("PunchlistFromEdit.aspx") + "return false;";
|
||||
@@ -109,11 +112,26 @@ namespace FineUIPro.Web.Transfer
|
||||
// strSql += " AND Actual_Date <= @EndActual_Date";
|
||||
// listStr.Add(new SqlParameter("@EndActual_Date", Funs.GetNewDateTime(txtEndActual_Date.Text.Trim())));
|
||||
//}
|
||||
if (!string.IsNullOrEmpty(txtDisc.Text.Trim()))
|
||||
if (this.ddlDisc.SelectedItemArray.Count() > 1 || (this.ddlDisc.SelectedValue != BLL.Const._Null && this.ddlDisc.SelectedItemArray.Count() == 1))
|
||||
{
|
||||
strSql += " AND Disc = @Disc";
|
||||
listStr.Add(new SqlParameter("@Disc", txtDisc.Text.Trim()));
|
||||
strSql += " AND (1=2 ";
|
||||
int i = 0;
|
||||
foreach (var item in this.ddlDisc.SelectedValueArray)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(item) && item != BLL.Const._Null)
|
||||
{
|
||||
strSql += " OR Disc = @Disc" + i.ToString();
|
||||
listStr.Add(new SqlParameter("@Disc" + i.ToString(), item));
|
||||
}
|
||||
i++;
|
||||
}
|
||||
strSql += ")";
|
||||
}
|
||||
// if (!string.IsNullOrEmpty(txtDisc.Text.Trim()))
|
||||
// {
|
||||
// strSql += " AND Disc = @Disc";
|
||||
// listStr.Add(new SqlParameter("@Disc", txtDisc.Text.Trim()));
|
||||
// }
|
||||
if (!string.IsNullOrEmpty(ddlEng.SelectedValue.Trim()))
|
||||
{
|
||||
strSql += " AND IsEng = @IsEng";
|
||||
@@ -160,22 +178,52 @@ namespace FineUIPro.Web.Transfer
|
||||
}
|
||||
strSql += ")";
|
||||
}
|
||||
if (this.ddlPIC.SelectedItemArray.Count() > 1 || (this.ddlPIC.SelectedValue != BLL.Const._Null && this.ddlPIC.SelectedItemArray.Count() == 1))
|
||||
{
|
||||
strSql += " AND (1=2 ";
|
||||
int i = 0;
|
||||
foreach (var item in this.ddlPIC.SelectedValueArray)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(item) && item != BLL.Const._Null)
|
||||
{
|
||||
strSql += " OR PIC = @PIC" + i.ToString();
|
||||
listStr.Add(new SqlParameter("@PIC" + i.ToString(), item));
|
||||
}
|
||||
i++;
|
||||
}
|
||||
strSql += ")";
|
||||
}
|
||||
if (this.ddlPIC_WUH.SelectedItemArray.Count() > 1 || (this.ddlPIC_WUH.SelectedValue != BLL.Const._Null && this.ddlPIC_WUH.SelectedItemArray.Count() == 1))
|
||||
{
|
||||
strSql += " AND (1=2 ";
|
||||
int i = 0;
|
||||
foreach (var item in this.ddlPIC_WUH.SelectedValueArray)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(item) && item != BLL.Const._Null)
|
||||
{
|
||||
strSql += " OR PIC_WUH = @PIC_WUH" + i.ToString();
|
||||
listStr.Add(new SqlParameter("@PIC_WUH" + i.ToString(), item));
|
||||
}
|
||||
i++;
|
||||
}
|
||||
strSql += ")";
|
||||
}
|
||||
|
||||
//if (ddlAction_By.SelectedValue != null && ddlAction_By.SelectedValue != BLL.Const._Null)
|
||||
//{
|
||||
// strSql += " AND Action_By = @Action_By";
|
||||
// listStr.Add(new SqlParameter("@Action_By", ddlAction_By.SelectedValue.Trim()));
|
||||
//}
|
||||
if (!string.IsNullOrEmpty(txtPIC.Text.Trim()))
|
||||
{
|
||||
strSql += " AND PIC like @PIC";
|
||||
listStr.Add(new SqlParameter("@PIC", "%" + this.txtPIC.Text.Trim() + "%"));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(txtPIC_WUH.Text.Trim()))
|
||||
{
|
||||
strSql += " AND PIC_WUH like @PIC_WUH";
|
||||
listStr.Add(new SqlParameter("@PIC_WUH", "%" + this.txtPIC_WUH.Text.Trim() + "%"));
|
||||
}
|
||||
// if (!string.IsNullOrEmpty(txtPIC.Text.Trim()))
|
||||
// {
|
||||
// strSql += " AND PIC like @PIC";
|
||||
// listStr.Add(new SqlParameter("@PIC", "%" + this.txtPIC.Text.Trim() + "%"));
|
||||
// }
|
||||
// if (!string.IsNullOrEmpty(txtPIC_WUH.Text.Trim()))
|
||||
// {
|
||||
// strSql += " AND PIC_WUH like @PIC_WUH";
|
||||
// listStr.Add(new SqlParameter("@PIC_WUH", "%" + this.txtPIC_WUH.Text.Trim() + "%"));
|
||||
// }
|
||||
if (!string.IsNullOrEmpty(ddlStatus.SelectedValue.Trim()))
|
||||
{
|
||||
strSql += " AND Status = @Status";
|
||||
|
||||
Reference in New Issue
Block a user