var Widget = this.options.form.getWidgetByName("hz"); var value_1 =Widget.getValue(); var Widgeta = this.options.form.getWidgetByName("p_depart"); var value_2 =Widgeta.getValue(); var dn_name = FR.remoteEvaluate("sql(\"ZZMA\",\"SELECT dn_id from tm_tree where c_id = '"+value_2+"' and C_TYPE = '自主经营体'\",1,1)"); //获取自主经营体下拉控件的值得长度 var val_index = dn_name.length; //获取dn_name的下标为var_index的值 dn_name = dn_name.substring(val_index); if(dn_name != undefined && dn_name != null){ dn_name = dn_name.replace(/^\//,''); dn_name = dn_name.replace(/\/$/,''); dn_name = dn_name.split("/"); } switch (value_1) { case 0: window.open("/WebReport/ReportServer?reportlet=report/report_detailed/report_detailed_fb03_detail.cpt&op=view&loginuser="+loginuser+"&p_depart="+value_2+"&hz="+value_1+"&hierarchy="+hierarchy+"&dn_name="+dn_name+"&departs_amb="+departs_amb,"_self"); break; case 1: window.open("/WebReport/ReportServer?reportlet=report/report_detailed/report_detailed_fb03_detail_1.cpt&op=view&loginuser="+loginuser+"&p_depart="+value_2+"&hz="+value_1+"&hierarchy="+hierarchy+"&dn_name="+dn_name+"&departs_amb="+departs_amb,"_self"); break; case 2: window.open("/WebReport/ReportServer?reportlet=report/report_detailed/report_detailed_fb03_detail_2.cpt&op=view&loginuser="+loginuser+"&p_depart="+value_2+"&hz="+value_1+"&hierarchy="+hierarchy+"&dn_name="+dn_name+"&departs_amb="+departs_amb,"_self"); break; _g().parameterCommit(); |