str=" (v_op_bill.OP in (select showname from vw_user where COMPANYID='" + companyid + "') OR v_op_bill.SALE in (select showname from vw_user where COMPANYID='" + companyid + "') OR v_op_bill.CUSTSERVICE in (select showname from vw_user where COMPANYID='" + companyid + "') "
//str = " (v_op_bill.OP in (select showname from vw_user where COMPANYID='" + companyid + "') OR v_op_bill.SALE in (select showname from vw_user where COMPANYID='" + companyid + "') OR v_op_bill.CUSTSERVICE in (select showname from vw_user where COMPANYID='" + companyid + "') "
+" OR v_op_bill.DOC in (select showname from vw_user where COMPANYID='" + companyid + "') OR v_op_bill.FRCUSTSERVICE in (select showname from vw_user where COMPANYID='" + companyid + "') OR v_op_bill.INPUTBY in (select showname from vw_user where COMPANYID='" + companyid + "'))";
//+ " OR v_op_bill.DOC in (select showname from vw_user where COMPANYID='" + companyid + "') OR v_op_bill.FRCUSTSERVICE in (select showname from vw_user where COMPANYID='" + companyid + "') OR v_op_bill.INPUTBY in (select showname from vw_user where COMPANYID='" + companyid + "'))";
str=" exists (select 1 from vw_user where COMPANYID='"+companyid+"' and showname in(v_op_bill.OP,v_op_bill.SALE,v_op_bill.CUSTSERVICE,OR v_op_bill.DOC,v_op_bill.FRCUSTSERVICE,v_op_bill.INPUTBY)) ";
str=" (OP in (select showname from vw_user where COMPANYID='"+companyid+"') OR SALE in (select showname from vw_user where COMPANYID='"+companyid+"') OR CUSTSERVICE in (select showname from vw_user where COMPANYID='"+companyid+"') "
//str = " (OP in (select showname from vw_user where COMPANYID='" + companyid + "') OR SALE in (select showname from vw_user where COMPANYID='" + companyid + "') OR CUSTSERVICE in (select showname from vw_user where COMPANYID='" + companyid + "') "
+" OR FRCUSTSERVICE in (select showname from vw_user where COMPANYID='"+companyid+"') OR INPUTBY in (select showname from vw_user where COMPANYID='"+companyid+"'))";
//+ " OR FRCUSTSERVICE in (select showname from vw_user where COMPANYID='" + companyid + "') OR INPUTBY in (select showname from vw_user where COMPANYID='" + companyid + "'))";
str=" exists (select 1 from vw_user where COMPANYID='"+companyid+"' and showname in(OP,SALE,CUSTSERVICE,FRCUSTSERVICE,INPUTBY)) ";
str=" (OP in (select showname from vw_user where companyid='"+companyid+"') OR SALE in (select showname from vw_user where companyid='"+companyid+"') OR CUSTSERVICE in (select showname from vw_user where companyid='"+companyid+"') "
//str = " (OP in (select showname from vw_user where companyid='" + companyid + "') OR SALE in (select showname from vw_user where companyid='" + companyid + "') OR CUSTSERVICE in (select showname from vw_user where companyid='" + companyid + "') "
+" OR FRCUSTSERVICE in (select showname from vw_user where companyid='"+companyid+"') OR INPUTBY in (select showname from vw_user where companyid='"+companyid+"'))";
//+ " OR FRCUSTSERVICE in (select showname from vw_user where companyid='" + companyid + "') OR INPUTBY in (select showname from vw_user where companyid='" + companyid + "'))";
str=" exists (select 1 from vw_user where COMPANYID='"+companyid+"' and showname in(OP,SALE,CUSTSERVICE,FRCUSTSERVICE,INPUTBY)) ";
str=" (OP in (select showname from vw_user where companyid='" + companyid + "') OR SALE in (select showname from vw_user where companyid='" + companyid + "') OR CUSTSERVICE in (select showname from vw_user where companyid='" + companyid + "') "
//str = " (OP in (select showname from vw_user where companyid='" + companyid + "') OR SALE in (select showname from vw_user where companyid='" + companyid + "') OR CUSTSERVICE in (select showname from vw_user where companyid='" + companyid + "') "
+ " OR FRCUSTSERVICE in (select showname from vw_user where companyid='" + companyid + "') OR INPUTBY in (select showname from vw_user where companyid='" + companyid + "'))";
// + " OR FRCUSTSERVICE in (select showname from vw_user where companyid='" + companyid + "') OR INPUTBY in (select showname from vw_user where companyid='" + companyid + "'))";
str=" exists (select 1 from vw_user where COMPANYID='"+companyid+"' and showname in(OP,SALE,CUSTSERVICE,FRCUSTSERVICE,INPUTBY)) ";
str=" (OP in (select showname from vw_user where COMPANYID='" + companyid + "') OR SALE in (select showname from vw_user where COMPANYID='" + companyid + "') OR CUSTSERVICE in (select showname from vw_user where COMPANYID='" + companyid + "') "
//str = " (OP in (select showname from vw_user where COMPANYID='" + companyid + "') OR SALE in (select showname from vw_user where COMPANYID='" + companyid + "') OR CUSTSERVICE in (select showname from vw_user where COMPANYID='" + companyid + "') "
+" OR FRCUSTSERVICE in (select showname from vw_user where COMPANYID='" + companyid + "') OR INPUTBY in (select showname from vw_user where COMPANYID='" + companyid + "') OR DOC in (select showname from vw_user where COMPANYID='" + companyid + "'))";
//+ " OR FRCUSTSERVICE in (select showname from vw_user where COMPANYID='" + companyid + "') OR INPUTBY in (select showname from vw_user where COMPANYID='" + companyid + "') OR DOC in (select showname from vw_user where COMPANYID='" + companyid + "'))";
str=" exists (select 1 from vw_user where COMPANYID='"+companyid+"' and showname in(OP,SALE,CUSTSERVICE,FRCUSTSERVICE,INPUTBY,DOC)) ";
str=" (OP in (select showname from vw_user where COMPANYID='"+companyid+"') OR SALE in (select showname from vw_user where COMPANYID='"+companyid+"') OR CUSTSERVICE in (select showname from vw_user where COMPANYID='"+companyid+"') "
//str = " (OP in (select showname from vw_user where COMPANYID='" + companyid + "') OR SALE in (select showname from vw_user where COMPANYID='" + companyid + "') OR CUSTSERVICE in (select showname from vw_user where COMPANYID='" + companyid + "') "
+" OR FRCUSTSERVICE in (select showname from vw_user where COMPANYID='"+companyid+"') OR INPUTBY in (select showname from vw_user where COMPANYID='"+companyid+"'))";
// + " OR FRCUSTSERVICE in (select showname from vw_user where COMPANYID='" + companyid + "') OR INPUTBY in (select showname from vw_user where COMPANYID='" + companyid + "'))";
str=" exists (select 1 from vw_user where COMPANYID='"+companyid+"' and showname in(OP,SALE,CUSTSERVICE,FRCUSTSERVICE,INPUTBY)) ";