protected bool _kzajnpp_When() { var cmd = new List <SqlCmdText>(); if (_org.Value != 0) { cmd.Add(new SqlCmdText("ZAE.ORG=@org or ZAE.ORG is null", new SqlParam("org", _org.Value))); } if (_ceh.Value != 0) { //cmd.Add(new SqlCmdText("ZAE.CEH_K=@ceh", new SqlParam("ceh", _ceh.Value))); } _filter.Filter = SqlCmdText.ConcatCommands(cmd.ToArray()); return(true); }