添加条件
This commit is contained in:
@@ -83,6 +83,26 @@ namespace FineUIPro.Web.Transfer
|
||||
strSql += " AND Actual_Date <= @Actual_Date";
|
||||
listStr.Add(new SqlParameter("@Actual_Date", Funs.GetNewDateTime(txtEndActual_Date.Text.Trim())));
|
||||
}
|
||||
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";
|
||||
listStr.Add(new SqlParameter("@IsEng", ddlEng.SelectedValue.Trim() == "Y" ? 1 : 0));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(ddlMatI.SelectedValue.Trim()))
|
||||
{
|
||||
strSql += " AND IsMatI = @IsMatI";
|
||||
listStr.Add(new SqlParameter("@IsMatI", ddlMatI.SelectedValue.Trim() == "Y" ? 1 : 0));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(ddlPunchType.SelectedValue.Trim()))
|
||||
{
|
||||
strSql += " AND Punch_Type = @Punch_Type";
|
||||
listStr.Add(new SqlParameter("@Punch_Type", ddlPunchType.SelectedValue.Trim()));
|
||||
}
|
||||
strSql += " order by Num_No ";
|
||||
SqlParameter[] parameter = listStr.ToArray();
|
||||
DataTable tb = SQLHelper.GetDataTableRunText(strSql, parameter);
|
||||
@@ -258,7 +278,7 @@ namespace FineUIPro.Web.Transfer
|
||||
if (buttonList.Contains(BLL.Const.BtnAdd))
|
||||
{
|
||||
//this.btnNew.Hidden = false;
|
||||
btnMenuAttachA.Hidden=false;
|
||||
btnMenuAttachA.Hidden = false;
|
||||
btnMenuAttachB.Hidden = false;
|
||||
}
|
||||
if (buttonList.Contains(BLL.Const.BtnModify))
|
||||
@@ -295,7 +315,7 @@ namespace FineUIPro.Web.Transfer
|
||||
var buttonList = BLL.CommonService.GetAllButtonList(this.CurrUser.LoginProjectId, this.CurrUser.UserId, BLL.Const.PunchlistFromMenuId);
|
||||
if (buttonList.Contains(BLL.Const.BtnAdd))
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/Transfer/PunchlistFrom&menuId={1}", this.CurrUser.LoginProjectId+ "PunchlistFrom", BLL.Const.PunchlistFromMenuId)));
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("../AttachFile/webuploader.aspx?type=0&toKeyId={0}&path=FileUpload/Transfer/PunchlistFrom&menuId={1}", this.CurrUser.LoginProjectId + "PunchlistFrom", BLL.Const.PunchlistFromMenuId)));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user