合并最新
This commit is contained in:
@@ -117,6 +117,18 @@ namespace FineUIPro.Web.HSSE.InformationProject
|
||||
{
|
||||
laws = laws.Where(x => x.LawRegulationName.Contains(this.txtLawRegulationName.Text.Trim()));
|
||||
}
|
||||
if (!string.IsNullOrEmpty(drpIsBuild.SelectedValue))
|
||||
{
|
||||
if (drpIsBuild.SelectedValue == "1")
|
||||
{
|
||||
laws = laws.Where(x => x.IsBuild==true);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
laws = laws.Where(x => x.IsBuild == false);
|
||||
}
|
||||
}
|
||||
var q = from x in laws
|
||||
orderby x.LawRegulationCode
|
||||
select new
|
||||
@@ -128,6 +140,7 @@ namespace FineUIPro.Web.HSSE.InformationProject
|
||||
x.EffectiveDate,
|
||||
x.Description,
|
||||
x.AttachUrl,
|
||||
x.IsBuildName,
|
||||
ShortDescription = Funs.GetSubStr(x.Description, 45),
|
||||
x.LawsRegulationsTypeId,
|
||||
x.LawsRegulationsTypeName,
|
||||
@@ -147,5 +160,18 @@ namespace FineUIPro.Web.HSSE.InformationProject
|
||||
{
|
||||
this.BindGrid();
|
||||
}
|
||||
public static string ConvertIsBuild(object isBuild)
|
||||
{
|
||||
if (isBuild != null)
|
||||
{
|
||||
if (isBuild.ToString() =="1")
|
||||
{
|
||||
return isBuild.ToString();
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user