20230721 标准规范辨识修改
This commit is contained in:
+48
-5
@@ -143,13 +143,56 @@ namespace FineUIPro.Web.HSSE.InformationProject
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
var q = from x in Funs.DB.View_InformationProject_ConstructionStandardSelectedItem
|
||||
where x.StandardName != null
|
||||
select x;
|
||||
if (!this.ckbAll.Checked)
|
||||
IQueryable<Model.View_InformationProject_ConstructionStandardSelectedItem> q;
|
||||
if (this.ckbAll.Checked)
|
||||
{
|
||||
q = q.Where(e => e.ConstructionStandardIdentifyId == this.ConstructionStandardIdentifyId);
|
||||
q = from x in Funs.DB.Law_HSSEStandardsList
|
||||
join y in Funs.DB.InformationProject_ConstructionStandardSelectedItem on x.StandardId equals y.StandardId
|
||||
join z in Funs.DB.InformationProject_ConstructionStandardIdentify on y.ConstructionStandardIdentifyId equals z.ConstructionStandardIdentifyId
|
||||
where x.StandardName != null && z.ProjectId == this.CurrUser.LoginProjectId
|
||||
select new Model.View_InformationProject_ConstructionStandardSelectedItem
|
||||
{
|
||||
ConstructionStandardSelectedItemId =y.ConstructionStandardSelectedItemId,
|
||||
ConstructionStandardIdentifyId = y.ConstructionStandardIdentifyId,
|
||||
ProjectId = this.CurrUser.LoginProjectId,
|
||||
StandardId = x.StandardId,
|
||||
StandardGrade = x.StandardGrade,
|
||||
StandardNo = x.StandardNo,
|
||||
StandardName = x.StandardName,
|
||||
AttachUrl = x.AttachUrl,
|
||||
IsSelected1 = x.IsSelected1,
|
||||
IsSelected2 = x.IsSelected2,
|
||||
IsSelected3 = x.IsSelected3,
|
||||
IsSelected4 = x.IsSelected4,
|
||||
IsSelected5 = x.IsSelected5,
|
||||
IsSelected6 = x.IsSelected6,
|
||||
IsSelected7 = x.IsSelected7,
|
||||
IsSelected8 = x.IsSelected8,
|
||||
IsSelected9 = x.IsSelected9,
|
||||
IsSelected10 = x.IsSelected10,
|
||||
IsSelected11 = x.IsSelected11,
|
||||
IsSelected12 = x.IsSelected12,
|
||||
IsSelected13 = x.IsSelected13,
|
||||
IsSelected14 = x.IsSelected14,
|
||||
IsSelected15 = x.IsSelected15,
|
||||
IsSelected16 = x.IsSelected16,
|
||||
IsSelected17 = x.IsSelected17,
|
||||
IsSelected18 = x.IsSelected18,
|
||||
IsSelected19 = x.IsSelected19,
|
||||
IsSelected20 = x.IsSelected20,
|
||||
IsSelected21 = x.IsSelected21,
|
||||
IsSelected22 = x.IsSelected22,
|
||||
IsSelected23 = x.IsSelected23,
|
||||
IsSelected90 = x.IsSelected90
|
||||
};
|
||||
}
|
||||
else
|
||||
{
|
||||
q = from x in Funs.DB.View_InformationProject_ConstructionStandardSelectedItem
|
||||
where x.ConstructionStandardIdentifyId == this.ConstructionStandardIdentifyId
|
||||
select x;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(this.txtStandardGrade.Text.Trim()))
|
||||
{
|
||||
q = q.Where(e => e.StandardGrade.Contains(this.txtStandardGrade.Text.Trim()));
|
||||
|
||||
Reference in New Issue
Block a user