Exemplo n.º 1
0
 public static string getTreeSql_2018(string where1)
 {
     string strReturn = "";
     if (!string.IsNullOrEmpty(where1))
     {
         strReturn = " and (1=0 ";
         string[] strArray = where1.Split(',');
         for (int i = 0; i < strArray.Length; i++) { 
             strReturn+=" or "+GetLevelInfo.GetLevelField(strArray[i].Substring(0,1))+"='"+strArray[i].Substring(1)+"'";
         }
         strReturn += ")";
     }
     return strReturn;
 }