Stringsql="select id ,subcompanyname ,canceled from hrmsubcompany where "+getCancelSqlStr()+" and (supsubcomid is null or supsubcomid = 0) and companyid = ? order by showorder desc";
Stringsql="select id ,subcompanyname ,canceled from hrmsubcompany where "+getCancelSqlStr()+" and (supsubcomid is null or supsubcomid = 0) and companyid = ? order by showorder";
sql="select id,departmentname ,canceled from hrmdepartment where "+getCancelSqlStr()+" and (supdepid is null or supdepid =0) and subcompanyid1 = ? order by showorder desc";
sql="select id,departmentname ,canceled from hrmdepartment where "+getCancelSqlStr()+" and (supdepid is null or supdepid =0) and subcompanyid1 = ? order by showorder";
rs.executeQuery("select id,subcompanyname,canceled from hrmsubcompany where (canceled is null or canceled != 1) and (supsubcomid is null or supsubcomid = 0)");
rs.executeQuery("select id,subcompanyname,canceled from hrmsubcompany where (canceled is null or canceled != 1) and (supsubcomid is null or supsubcomid = 0) order by showorder");