Stringpsql="select provinceID=sRegionNO,province=sRegionDesc from tRegion where sRegionNO=(select sUpRegionNO from tRegion where sRegionNO=(select sRegionNO from tOrg where sOrgNO='"+orgNO+"' and nTag&1=0) and nTag&1=0 ) and nTag&1=0 ";
Stringcsql="select cityID=sRegionNO,city=sRegionDesc from tRegion r where sRegionNO=(select sRegionNO from tOrg where sOrgNO='"+orgNO+"' and nTag&1=0) and r.nTag&1=0 ";
Stringdsql="select districtID=sRegionNO,district=sRegionDesc from tRegion where sUpRegionNO=(select sRegionNO from tOrg where sOrgNO='"+orgNO+"' and nTag&1=0) AND nTag&1=0";
Stringssql="select streetID=sRegionNO,street=sRegionDesc, upRegionNO=sUpRegionNO from tRegion where sUpRegionNO in (select districtID=sRegionNO from tRegion where sUpRegionNO = (select sRegionNO from tOrg where sOrgNO='"+orgNO+"' and nTag&1=0) and nTag&1=0) AND nTag&1=0";
Stringpsql="select ProvinceID=sRegionNO,Province=sRegionDesc from tRegion where sRegionNO=(select sUpRegionNO from tRegion where sRegionNO=(select sRegionNO from tOrg where sOrgNO='"+orgNO+"' and nTag&1=0) and nTag&1=0 ) and nTag&1=0 ";
Stringcsql="select CityID=sRegionNO,City=sRegionDesc from tRegion r where sRegionNO=(select sRegionNO from tOrg where sOrgNO='"+orgNO+"' and nTag&1=0) and r.nTag&1=0 ";
Stringdsql="select DistrictID=sRegionNO,District=sRegionDesc from tRegion where sUpRegionNO=(select sRegionNO from tOrg where sOrgNO='"+orgNO+"' and nTag&1=0) AND nTag&1=0";
Stringssql="select StreetID=sRegionNO,Street=sRegionDesc, UpRegionNO=sUpRegionNO from tRegion where sUpRegionNO in (select districtID=sRegionNO from tRegion where sUpRegionNO = (select sRegionNO from tOrg where sOrgNO='"+orgNO+"' and nTag&1=0) and nTag&1=0) AND nTag&1=0";
Stringpsql="select provinceID=sRegionNO,province=sRegionDesc from tRegion where sRegionNO IN (SELECT DISTINCT sUpRegionNO from tRegion where sRegionNO IN (select DISTINCT sRegionNO from tOrg where nTag&1=0) and nTag&1=0 ) and nTag&1=0 ";
Stringcsql="select cityID=sRegionNO,city=sRegionDesc from tRegion r where sRegionNO IN (SELECT DISTINCT sRegionNO from tOrg where nTag&1=0) and r.nTag&1=0 ";
returnnull;
publicStringgetOpenCity(StringlangID){
try{
Stringpsql="SELECT OrgDesc = sOrgDesc,RegionNO = sRegionNO FROM tOrg WHERE nOrgLevel = 3 AND nTag&1=0 ";
Stringcsql="SELECT OrgNO = sOrgNO,OrgDesc = sOrgDesc, RegionDesc = r.sRegionDesc, RegionNO = o.sRegionNO, UpRegionNO = r.sUpRegionNO FROM tOrg o LEFT JOIN tRegion r ON o.sRegionNO = r.sRegionNO AND o.nTag&1=0 AND r.nTag&1=0 WHERE nOrgLevel = 4 ";