var a_oCurrProdRow = null; var curr_prodtype_code="",curr_prodtype_name="",old_prodtype_code="",new_prodtype_code=""; var product_id=-1,produce_id=-1,produce_no = -1,produce_idold=-1,produce_noold=-1; var accept_id="",order_id = "",sys_id="",curr_servcode="",action_name="",accept_state="00"; var menu_id=-1,flag="0",modify_flag="0"; var atype="0",sys_flag="0",srv_type="0"; var servcode_old="",accepted_srv_str="",accepting_proid=""; var curr_menufirst="0",curr_menusecond="0"; var apply_sale="false"; var toaction; var produce_id_bak=-1,produce_no_bak=-1,accept_id_bak="",sys_id_bak="",product_id_bak=-1; var product_no_bak="",curr_servname_bak="",curr_servcode_bak="",accept_state_bak="00"; var pwd_becheck="false"; var lan_id=""; var trId =""; var init_flag="0",curr_servname = "",product_no=""; var a_findby="byprodno"; var a_becheck="false"; var paymentMode="F"; var a_modifymode="menu"; var a_bedeleted="true"; var a_custinfo=null; var a_credit=""; var curract_flag="act"; var openFlag="0"; //modify by hzg 2006-05-26 var isHasAcceptCustServSession=""; function DispAcctInfo() { var ls_custid=null; if (a_custinfo==null) {return;} ls_custid=a_custinfo[0]; if ((ls_custid==null)||(ls_custid=="")) {return;} var li_width = screen.availWidth; var li_height = screen.availHeight; var li_top=0; var li_left=0; var ls_windowinfo = "dialogWidth: "+li_width+"px; dialogHeight: "+li_height+"px; help: no; status: no"+";dialogTop:"+li_top+"px;dialogLeft:"+li_left+"px;scrollbars=no"; var ls_param="custid="+ls_custid+"&pageindex=1"; window.open("/CcsWeb/cs/oa/csQueryAcctInfoAll.do?"+ls_param, '', ls_windowinfo); } function DisProdDetail(ocurr) { var ls_param1="",ls_param2=""; var ls_searchtype="2",ls_prodstatus="2"; if (ocurr==null){return;} ls_param1=ocurr.parentNode.cells(1).innerText; var li_width = screen.availWidth; var li_height = screen.availHeight; var li_top=0; var li_left=0; var ls_windowinfo = "dialogWidth: "+li_width+"px; dialogHeight: "+li_height+"px; help: no; status: no"+";dialogTop:"+li_top+"px;dialogLeft:"+li_left+"px;scrollbars=no"; var ls_param="searchType="+ls_searchtype+"&prodStatus="+ls_prodstatus+"¶m1="+ls_param1+"¶m2="+ls_param2; showModalDialog("/CcsWeb/cc/search/index.jsp?"+ls_param, this, ls_windowinfo); } function DisplayDetail(adisptype) { var ls_param1="",ls_param2=""; var ls_searchtype="",ls_prodstatus=""; if (adisptype==1) { if (a_custinfo==null) {return;} ls_searchtype="1"; ls_prodstatus="0"; ls_param1=a_custinfo[0]; } else if (adisptype==2) { if (a_oCurrProdRow==null) {alert(getErrorMessage(577));return;} ls_searchtype="2"; ls_prodstatus="2"; ls_param1=a_oCurrProdRow.cells(1).innerText; } else if (adisptype==3) { if (a_oCurrActingRow==null) {alert(getErrorMessage(578));return;} ls_searchtype="4"; ls_prodstatus="1"; ls_param1=a_oCurrActingRow.cells(9).innerText; ls_param2=a_oCurrActingRow.cells(10).innerText; } else {return ;} var li_width = screen.availWidth; var li_height = screen.availHeight; var li_top=0; var li_left=0; var ls_windowinfo = "dialogWidth: "+li_width+"px; dialogHeight: "+li_height+"px; help: no; status: no"+";dialogTop:"+li_top+"px;dialogLeft:"+li_left+"px;scrollbars=no"; var ls_param="searchType="+ls_searchtype+"&prodStatus="+ls_prodstatus+"¶m1="+ls_param1+"¶m2="+ls_param2; showModalDialog("/CcsWeb/cc/search/index.jsp?"+ls_param, this, ls_windowinfo); } function DispAcceptInfo() { var ltable=null; var currrow = null; var lproduce_id="-1",lproduce_no="-1",lmenuid="-1",lproduce_idold="-1",lproduce_noold="-1",lproduct_id="-1"; var ls_servcode=null; ltable = document.all("acustact"); if (init_flag != "0") { var li_step = 0,li_rowid; if ((a_modifymode=="serv")||(a_bedeleted=="false")) { if ((a_bedeleted=="false")&&(a_oCurrActRow)) { aCancelSelect(a_oCurrActRow); a_oCurrActRow=null; } for (li_step=0;li_step<(ltable.rows.length);li_step++) { lproduce_id=ltable.rows(li_step).cells(7).innerText; lproduce_no=ltable.rows(li_step).cells(8).innerText; lproduct_id=ltable.rows(li_step).cells(2).innerText; lmenuid=ltable.rows(li_step).cells(9).innerText; lproduce_idold=ltable.rows(li_step).cells(10).innerText; lproduce_noold=ltable.rows(li_step).cells(11).innerText; ls_servcode=ltable.rows(li_step).cells(15).innerText; if (a_modifymode=="serv") { if ((lproduce_id==produce_id)&&(lproduce_no==produce_no)) { currrow = ltable.rows(li_step); break; } } if (a_bedeleted=="false") { if (((product_id==lproduct_id)&&(menu_id==lmenuid)&&(produce_idold==lproduce_idold)&&(produce_noold==lproduce_noold)&&(apply_sale=="false"))||((apply_sale=="true")&&(ls_servcode=="H4"))) { li_rowid = ltable.rows(li_step).rowIndex; ltable.deleteRow(li_rowid); if (li_step>=(ltable.rows.length)) { break; } li_step--; } } } } if (currrow==null) { currrow = AddActRow(); } } else { currrow = ltable.rows(1); } a_bedeleted = "true"; currrow.cells(1).innerHTML = accept_id; currrow.cells(2).innerHTML = product_id; currrow.cells(3).innerHTML = product_no; currrow.cells(4).innerHTML = curr_prodtype_name; currrow.cells(5).innerHTML = curr_servname; if (accept_state == "00") { currrow.cells(6).innerHTML = getErrorMessage(579); } else { currrow.cells(6).innerHTML = getErrorMessage(580); } currrow.cells(7).innerHTML = produce_id; currrow.cells(8).innerHTML = produce_no; currrow.cells(9).innerHTML = menu_id; currrow.cells(10).innerHTML = produce_idold; currrow.cells(11).innerHTML = produce_noold; currrow.cells(12).innerHTML = product_id; currrow.cells(13).innerHTML = sys_id; currrow.cells(14).innerHTML = curr_prodtype_code; currrow.cells(15).innerHTML = curr_servcode; currrow.cells(16).innerHTML = old_prodtype_code; currrow.cells(17).innerHTML = servcode_old; currrow.cells(18).innerHTML = new_prodtype_code; init_flag="1"; a_becheck="false"; paymentMode="F"; } function SetTotalMoney(atotalmoney) { document.all("totalmoney").value=atotalmoney; } function setToaction(Atoaction) { toaction = Atoaction; } function getCustInfo() { return a_custinfo; } function setCustInfo(aCustInfo) { if (aCustInfo==null) { return; } a_custinfo=aCustInfo; document.all("cust_name_i").value=a_custinfo[2]; document.all("cust_code_i").value=a_custinfo[1]; document.all("cert_type_i").value=getselectName(dc_cert_type,a_custinfo[12]); document.all("cert_no_i").value=a_custinfo[13]; document.all("cust_identify_i").value=getselectName(dc_user_type,a_custinfo[6]); document.all("cont_man_i").value=a_custinfo[25]; document.all("cont_tel_i").value=a_custinfo[29]; document.all("dwell_addr_i").value=a_custinfo[18]; } function UBinfo(aflag) { if (aflag=="B") { produce_id_bak=produce_id; produce_no_bak=produce_no; accept_id_bak=accept_id; sys_id_bak=sys_id; product_id_bak=product_id; product_no_bak=product_no; curr_servname_bak=curr_servname; curr_servcode_bak=curr_servcode; accept_state_bak=accept_state; } else { produce_id=produce_id_bak; produce_no=produce_no_bak; accept_id=accept_id_bak; sys_id=sys_id_bak; product_id=product_id_bak; product_no=product_no_bak; curr_servname=curr_servname_bak; curr_servcode=curr_servcode_bak; accept_state=accept_state_bak; } } function getaccepted_srv() { var li_step=0; var lcustacting=null; var lsrv_str=""; var lproduct_id=""; if ((product_id==null)||(product_id=="")) { return lsrv_str; } lcustacting = document.all("acustacting"); if (lcustacting!=null) { for (li_step=0;li_step2) { ltable_act.deleteRow(a_oCurrActRow.rowIndex); a_oCurrActRow=null; } else { for (li_step=1;li_step<19;li_step++) { ltable_act.rows(1).cells(li_step).innerText=""; } init_flag="0"; } } a_becheck="false"; paymentMode="F"; } } function ConfirmCustServ() { var li_retvalue = 0; var ls_param = "order_id="+order_id; var ls_windowinfo = "dialogWidth: 500px; dialogHeight: 360px; help: no; status: no"; var ls_windowinfo1 = "dialogWidth: 800px; dialogHeight: 600px; help: no; status: no"; var ls_param1="GfOrderId="+order_id; var ls_paraml2="&gatherFeeFlag=0"; if ((init_flag=="0")) { alert(getErrorMessage(588)); return; } if (a_becheck=="false") { alert(getErrorMessage(589)); return; } li_retvalue = showModalDialog("csConfirmCustServAction.do?"+ls_param, this, ls_windowinfo); if (li_retvalue == 0){ if(paymentMode=="T"){ if ((a_curr_post!=null)&&(a_charge_post!=null)&&((a_curr_post.indexOf(a_charge_post))>-1)){ showModalDialog("/CcsWeb/cs/cf/cfGatherFeeAction.do?"+ls_param1+ls_paraml2,this,ls_windowinfo1); } } init_flag="0"; init(); } } function AcceptCustServ() { var ls_param=""; var li_retvalue=0; var li_step=0; var custacting=null; var lmenuid="",lproduct_id="",lproduce_idold="",lproduce_noold="",lproduce_id="",lproduce_no=""; accepted_srv_str=""; accepting_proid=""; if ((flag!="0")&&(curr_menufirst=="0")&&((curr_menusecond=="1")||(curr_menusecond=="2"))&&(a_modifymode=="menu")) { accepted_srv_str=getaccepted_srv(); custacting=document.all("acustact"); if (custacting!=null) { for (li_step=0;li_step=0){ alert("Sorry,you have appled 'Shift node B',so can't do this!"); return; } if((all_accept_srv_str.indexOf("0C"))>=0){ alert("Sorry,you have appled mending information,so can't do this!"); return; } } if(menu_id=="9"){ var accepting_srv_str=""; var all_accept_srv_str=""; accepting_srv_str=getaccepting_srv(); all_accept_srv_str=accepting_srv_str+accepted_srv_str; if((all_accept_srv_str.indexOf("02"))>=0){ alert("Sorry,you have appled 'Close' service,so can't do this!"); return; } } if(menu_id=="104"){ flag = "1"; } ls_param = "curr_prodtype_code="+curr_prodtype_code+"&old_prodtype_code="+old_prodtype_code; ls_param = ls_param+"&new_prodtype_code="+new_prodtype_code+"&product_id="+product_id+"&accepting_proid="+accepting_proid; ls_param = ls_param+"&produce_id="+produce_id+"&produce_no="+produce_no+"&accepted_srv_str="+accepted_srv_str; ls_param = ls_param + "&produce_idold="+produce_idold+"&produce_noold="+produce_noold+"&curr_servname="+curr_servname; ls_param = ls_param + "&accept_id="+accept_id+"&order_id="+order_id+"&sys_id="+sys_id+"&lan_id="+lan_id+"&selectedTrid="+trId; ls_param = ls_param + "&menu_id="+menu_id+"&flag="+flag+"&action_name="+action_name+"&curr_servcode="+curr_servcode; ls_param = ls_param + "&modify_flag="+modify_flag+"&atype="+atype+"&sys_flag="+sys_flag+"&srv_type="+srv_type+"&servcode_old="+servcode_old; var li_width=0,li_height=0,ls_windowinfo="",li_top=0,li_left=0; li_width = screen.availWidth; li_height = screen.availHeight; li_top=0 li_left=0; ls_windowinfo = "dialogWidth: "+li_width+"px; dialogHeight: "+li_height+"px; help: no; status: no"+";dialogTop:"+li_top+"px;dialogLeft:"+li_left+"px;scrollbars=no"; //alert("/CcsWeb/cs/oa/CsAcceptCustServAction.do"+sessionId+"?"+ls_param); li_retvalue = showModalDialog("/CcsWeb/cs/oa/CsAcceptCustServAction.do"+sessionId+"?"+ls_param, this, ls_windowinfo); //modify by hzg delete 2006-05-24 /*if (li_retvalue == 1001) { showModalDialog(toaction, this, ls_windowinfo); } a_bedeleted="true"; */ } function SetSelectProdType(AProdType,AProdTypeName){ curr_prodtype_code = AProdType; curr_prodtype_name = AProdTypeName; } function init() { if (init_flag!="0") { alert(getErrorMessage(590)); return; } var ls_lan_id=""; if ((a_findby=="byprodno")||(a_findby=="bycustname")) { ls_lan_id=document.all("lan_id_by").value; } document.all("RePrintAudit").style.display = "none"; window.location.href = "/CcsWeb/cs/oa/csCustServInit.do?flag="+a_findby+"¶m=&lan_id"+ls_lan_id; } function openBtFlag(){ openFlag = "1"; } function OpenProdTypeList() { if(owe_flag == "true"){ alert("Currently the number is disconnected please restore the number for other services!"); return; } document.all("RePrintAudit").style.display = "none"; if (JudgeAcceptByCredit()=="-1") {return;} var ReturnValue = showModalDialog("CsDispProdType.jsp?actionFlag=QueryInfo", this, "dialogWidth: 300px; dialogHeight: 400px; help: no; status: no"); if (ReturnValue==0){ if ((curr_prodtype_code=="")||(curr_prodtype_code==null)) { alert(getErrorMessage(591)); return; } new_prodtype_code = curr_prodtype_code; product_id=-1; produce_id=-1; produce_no = -1; produce_idold=-1; produce_noold=-1; accept_id = ""; sys_id = ""; curr_servcode = ""; action_name = ""; accept_state="00"; flag = "0"; modify_flag="0"; atype="0"; sys_flag="0"; srv_type="0"; accepted_srv_str=""; accepting_proid=""; servcode_old=""; curr_menufirst="0"; curr_menusecond="0"; a_modifymode="menu"; if(openFlag == "1"){ menu_id="-1"; openFlag = "0"; } if(menu_id=="104"){ curr_servname="Mend Information of"+" "+curr_prodtype_name; }else{ curr_servname=getErrorMessage(592)+" "+curr_prodtype_name; } AcceptCustServ(); } } function ExitCurrWindow() { if ((init_flag!="0")) { if (window.confirm(getErrorMessage(593))) { window.close(); } } else if (window.confirm(getErrorMessage(594))) { window.close(); } } function findby() { var ls_param = document.all("param").value; var ls_pwd = "",ls_lan_id=""; if ((init_flag!="0")) { alert(getErrorMessage(595)); return; } if (ls_param == "") { alert(getErrorMessage(596)); return; } if ((a_findby=="byprodno")||(a_findby=="bycustname")) { ls_lan_id=document.all("lan_id_by").value; if (ls_lan_id=="") { alert(getErrorMessage(597)); return; } } if(a_findby=="bycustid"){ if(!isNumeric(ls_param)){ alert(getErrorMessage(900)); document.all("param").value=""; return; } } showLoadingPage("true"); var li_width=0,li_height=0,ls_windowinfo="",li_top=0,li_left=0; li_width = screen.availWidth; li_height = screen.availHeight; li_top=0 li_left=0; var ls_windowinfo = "dialogWidth: "+li_width+"px; dialogHeight: "+li_height+"px; help: no; status: no"+";dialogTop:"+li_top+"px;dialogLeft:"+li_left+"px;scrollbars=no"; var ls_param = "param="+ls_param+"&flag="+a_findby+"&pwd="+ls_pwd+"&lan_id="+ls_lan_id+"&pageindex=1"+"&oldparam="+ls_param+"&oldflag="+a_findby; //alert("/CcsWeb/cs/oa/csCustServQuery.do?"+ls_param); var url_csCustServQuery="/CcsWeb/cs/oa/csCustServQuery.do?"+ls_param; url_csCustServQuery="/CcsWeb/cs/oa/csCustServQuery.do"+sessionId+"?"+ls_param; if(parent.queryInfo) { parent.queryInfo(url_csCustServQuery); } // showModalDialog("/CcsWeb/cs/oa/csCustServQuery.do?"+ls_param, this, ls_windowinfo); // window.close(); //alert("csCustServQuery.do?param="+ls_param+"&flag="+a_findby+"&pwd="+ls_pwd+"&lan_id="+ls_lan_id+"&pageindex=1"+"&oldparam="+ls_param+"&oldflag="+a_findby); // window.location.href = "csCustServQuery.do?param="+ls_param+"&flag="+a_findby+"&pwd="+ls_pwd+"&lan_id="+ls_lan_id+"&pageindex=1"+"&oldparam="+ls_param+"&oldflag="+a_findby; } function SelCustProd() { if (a_oCurrProdRow == null) { alert(getErrorMessage(598)); return; } curr_prodtype_code = a_oCurrProdRow.cells(5).innerText; new_prodtype_code = curr_prodtype_code; old_prodtype_code = ""; product_id = a_oCurrProdRow.cells(1).innerText; curr_prodtype_name = a_oCurrProdRow.all("prodname").innerText; produce_id = ""; produce_no = ""; produce_idold = ""; produce_noold = ""; accept_id = ""; sys_id = ""; curr_servcode = ""; action_name = ""; accept_state="00"; flag = "1"; modify_flag="0"; atype="0"; sys_flag="0"; srv_type="0"; servcode_old=""; if(errorArray[0]=="1") return; DispModifyMenu(curr_prodtype_code); UBinfo("B"); } function CloseCurrMenu(){ aClosePopMenu("ProdMenu"); aClosePopMenu("ActMenu"); aClosePopMenu("ActedMenu"); aClosePopMenu("ActingMenu"); aClosePopMenu("FindParamMenu"); } function CloseFindParamMenu(currrow){ if (currrow){ a_findby = currrow.id; document.all("findcaption").innerHTML = "Search by ("+currrow.cells(1).innerHTML+" )"; if ((a_findby=="byprodno")||(a_findby=="bycustname")){ document.all("lan_id_by").style.display=""; } else{ document.all("lan_id_by").style.display="none"; } } aClosePopMenu("FindParamMenu"); } function OpenFindParamMenu(){ aOpenPopMenu("FindParamMenu"); event.cancelBubble = true; event.returnValue = false; } function SelectProdRow(oRow) { if(a_oCurrProdRow) { aCancelSelect(a_oCurrProdRow); } aSelectRow_gif(oRow); a_oCurrProdRow = oRow; SelCustProd(); document.all("RePrintAudit").style.display = "none"; } function OpenProdMenu(oRow) { SelectProdRow(oRow); aOpenPopMenu("ProdMenu"); event.cancelBubble = true; event.returnValue = false; } function CloseProdMenu() { aClosePopMenu("ProdMenu"); DisplayDetail(2); } function updPasswd(){ window.showModalDialog('/CcsWeb/cw/gw/passwdUpdDetail.jsp', '', "dialogWidth:400px; dialogHeight:390px; help: no; status: no"); } var a_oCurrActRow = null; var a_firstRHtml=null; function SelectActRow(oRow) { if(a_oCurrActRow) { aCancelSelect(a_oCurrActRow); } aSelectRow_gif(oRow); a_oCurrActRow = oRow; } function AddActRow() { var ltable=document.all("acustact"); var ltr=null; var li_end = ltable.rows.length; if (ltable!=null) { if (a_firstRHtml!=null) { if(a_oCurrActRow) { aCancelSelect(a_oCurrActRow); a_oCurrActRow=null; } AddMultRecordWithOldBody("acustact","actrow_1","actrow_",a_firstRHtml,1,li_end); } } ltable=document.all("acustact"); li_end = ltable.rows.length; ltr = ltable.rows(li_end-1); return ltr; } function openactmenu(oRow) { SelectActRow(oRow); aOpenPopMenu("ActMenu"); event.cancelBubble = true; event.returnValue = false; } function CloseActMenu(){ aClosePopMenu("ActMenu"); } function ModifyCurrSrv(oCurrRow) { if (init_flag=="0") { return; } lan_id=""; product_id=oCurrRow.cells(2).innerText; produce_id=oCurrRow.cells(7).innerText; produce_no=oCurrRow.cells(8).innerText; produce_idold=oCurrRow.cells(10).innerText; produce_noold=oCurrRow.cells(11).innerText; curr_prodtype_code=oCurrRow.cells(14).innerText; curr_prodtype_name=oCurrRow.cells(4).innerText; old_prodtype_code=oCurrRow.cells(16).innerText; new_prodtype_code=oCurrRow.cells(18).innerText; servcode_old=oCurrRow.cells(17).innerText; accept_id = oCurrRow.cells(1).innerText; sys_id = oCurrRow.cells(13).innerText; menu_id = oCurrRow.cells(9).innerText; curr_servname=oCurrRow.cells(5).innerText; curr_servcode = oCurrRow.cells(15).innerText; action_name = ""; accept_state="00"; flag = "1"; modify_flag="2"; srv_type="1"; if ((produce_idold=="")||(produce_idold=="-1")||(produce_noold=="")||(produce_noold=="-1")) { modify_flag="0"; srv_type="0"; } atype="0"; sys_flag="0"; a_modifymode="serv"; AcceptCustServ(); } function QueryCsAcceptCustServSerlet(){ flag = "0"; modify_flag="0"; atype="0"; sys_flag="0"; srv_type="0"; curr_menufirst="0"; curr_menusecond="0"; a_modifymode="menu"; if(openFlag == "1"){ menu_id="-1"; openFlag = "0"; } var ls_param = "curr_prodtype_code="+curr_prodtype_code+"&old_prodtype_code="+old_prodtype_code; ls_param = ls_param+"&new_prodtype_code="+new_prodtype_code+"&product_id="+product_id+"&accepting_proid="+accepting_proid; ls_param = ls_param+"&produce_id="+produce_id+"&produce_no="+produce_no+"&accepted_srv_str="+accepted_srv_str; ls_param = ls_param + "&produce_idold="+produce_idold+"&produce_noold="+produce_noold+"&curr_servname="+curr_servname; ls_param = ls_param + "&accept_id="+accept_id+"&order_id="+order_id+"&sys_id="+sys_id+"&lan_id="+lan_id; ls_param = ls_param + "&menu_id="+menu_id+"&flag="+flag+"&action_name="+action_name+"&curr_servcode="+curr_servcode; ls_param = ls_param + "&modify_flag="+modify_flag+"&atype="+atype+"&sys_flag="+sys_flag+"&srv_type="+srv_type+"&servcode_old="+servcode_old; var url="/CcsWeb/QueryCsAcceptCustServSerlet"+sessionId+"?"+ls_param; if (isHasAcceptCustServSession=="0"){ // alert(url); window.CsAcceptCustServSerletForm.location.href=url; //CsAcceptCustServSerletForm.submit(); } } // add by hzg 2006-05-24 for cust_procact ondbclick function ModifyProcactSrv(oCurrRow) { init_flag="1"; if (init_flag=="0") { return; } lan_id=""; product_id=oCurrRow.cells(2).innerText; produce_id=oCurrRow.cells(9).innerText; produce_no=oCurrRow.cells(10).innerText; curr_prodtype_code=oCurrRow.cells(7).innerText; curr_prodtype_name=oCurrRow.cells(4).innerText; produce_idold=""; produce_noold=""; old_prodtype_code=""; new_prodtype_code=oCurrRow.cells(7).innerText; servcode_old=""; accept_id = oCurrRow.cells(1).innerText; sys_id = ""; // menu_id =""; QueryCsAcceptCustServSerlet(); curr_servname=oCurrRow.cells(5).innerText; curr_servcode = oCurrRow.cells(8).innerText; action_name = ""; accept_state="00"; flag = "1"; modify_flag="2"; srv_type="1"; if ((produce_idold=="")||(produce_idold=="-1")||(produce_noold=="")||(produce_noold=="-1")) { modify_flag="0"; srv_type="0"; } atype="0"; sys_flag="0"; a_modifymode="serv"; AcceptCustServ(); return; } function openactmenu(oRow) { SelectActRow(oRow); aOpenPopMenu("ActMenu"); event.cancelBubble = true; event.returnValue = false; } function CloseActMenu(){ aClosePopMenu("ActMenu"); } var a_oCurrActingRow = null; var rePrintOrderId = ""; function RePrintAuditingOrder(){ if(rePrintOrderId!=""){ li_left = (screen.availWidth - 750)/2; li_top = (screen.availHeight - 600)/2; window.open("/CcsWeb/cs/oa/AuditingPrint.jsp?produce_id=&produce_no=&flag=0&order_id="+rePrintOrderId,"newwindow","height=430, width=750, toolbar =yes, menubar=no, resizable=no, location=no, status=no,left="+li_left+",top="+li_top); } } function SelectActingRow(oRow) { if(a_oCurrActingRow) { aCancelSelect(a_oCurrActingRow); } aSelectRow_gif(oRow); a_oCurrActingRow = oRow; product_id=oRow.cells(2).innerText; produce_id=-1; produce_no = -1; produce_idold=oRow.cells(9).innerText; produce_noold=oRow.cells(10).innerText; curr_prodtype_code=oRow.cells(7).innerText; curr_prodtype_name=oRow.all("prod_name").innerText; old_prodtype_code=curr_prodtype_code; new_prodtype_code=curr_prodtype_code; servcode_old=oRow.cells(8).innerText; accept_id = ""; sys_id = ""; curr_servcode = ""; action_name = ""; accept_state="00"; flag = "1"; modify_flag="1"; atype="0"; sys_flag="0"; srv_type="1"; DispXzMenu(servcode_old); document.all("RePrintAudit").style.display = ""; rePrintOrderId=oRow.cells(11).innerText; UBinfo("B"); } function OpenActingMenu(oRow) { SelectActingRow(oRow); aOpenPopMenu("ActingMenu"); event.cancelBubble = true; event.returnValue = false; } function CloseActingMenu() { aClosePopMenu("ActingMenu"); DisplayDetail(3); } function menuitem(super_menu,menu_id,menu_name,menu_first,menu_second,cmd,prod_bunch,srv_bunch,window_name) { this.super_menu =super_menu ; this.menu_id =menu_id ; this.menu_name =menu_name ; this.menu_first =menu_first ; this.menu_second=menu_second ; this.cmd =cmd ; this.prod_bunch =prod_bunch ; this.srv_bunch =srv_bunch ; this.window_name=window_name ; this.id = ""; } function openwindow(windowname) { var li_width=0,li_height=0,li_top=0,li_left=0; var ls_windowinfo=""; li_width = window.document.body.clientWidth; li_height = window.document.body.clientHeight; li_top = window.screenTop; li_left = window.screenLeft; ls_windowinfo = "dialogWidth: "+li_width+"px; dialogHeight: "+li_height+"px; help: no; status: no"+";dialogTop:"+li_top+"px;dialogLeft:"+li_left+"px"; showModalDialog(windowname, this, ls_windowinfo); } var array_menuitem = new Array(); function MenuDbClick(Menutoggle){ var li_step=0,li_flag=0,ls_menuid_pre; var ls_window_name=""; UBinfo("U"); a_modifymode="menu"; flag="1"; lan_id=""; for (li_step=0;li_step < array_menuitem.length;li_step++){ if (array_menuitem[li_step].id==Menutoggle.id){ li_flag=1; ls_menuid_pre = array_menuitem[li_step].menu_id; if (li_step==(array_menuitem.length - 1)){ if ((array_menuitem[li_step].menu_first=="0")&&(array_menuitem[li_step].menu_second=="0")){ menu_id = ls_menuid_pre; OpenProdTypeList(); break; } if ((ls_menuid_pre=="104")&&(array_menuitem[li_step].menu_first=="2")&&(array_menuitem[li_step].menu_second=="2")){ menu_id = ls_menuid_pre; OpenProdTypeList(); break; } menu_id = ls_menuid_pre; curr_menufirst=array_menuitem[li_step].menu_first; curr_menusecond=array_menuitem[li_step].menu_second; curr_servname=array_menuitem[li_step].menu_name; ls_window_name = array_menuitem[li_step].window_name; if ((array_menuitem[li_step].menu_first=="2")&&(array_menuitem[li_step].menu_second=="2")){ if ((ls_window_name!=null)&&(ls_window_name!="")){ if (oper_id != null){ ls_window_name = "appealUrl/AppealUrlAction.do?LoginName="+oper_id+"&LoginPass="+LoginPass+"&Depart_id="+Depart_id; } openwindow(ls_window_name); } break; } if (array_menuitem[li_step].menu_first=="0"){ if (JudgeAcceptByCredit()=="-1") {return;} } AcceptCustServ(); break ; } continue; } if (li_flag==1){ if ((array_menuitem[li_step].super_menu==0)||(array_menuitem[li_step].super_menu!=ls_menuid_pre)){ if ((array_menuitem[li_step-1].menu_first=="0")&&(array_menuitem[li_step-1].menu_second=="0")){ menu_id = ls_menuid_pre; OpenProdTypeList(); break; } if ((ls_menuid_pre=="104")&&(array_menuitem[li_step].menu_first=="2")&&(array_menuitem[li_step].menu_second=="2")){ menu_id = ls_menuid_pre; OpenProdTypeList(); break; } menu_id = ls_menuid_pre; curr_menufirst=array_menuitem[li_step-1].menu_first; curr_menusecond=array_menuitem[li_step-1].menu_second; curr_servname=array_menuitem[li_step-1].menu_name; ls_window_name = array_menuitem[li_step-1].window_name; if ((array_menuitem[li_step-1].menu_first=="2")&&(array_menuitem[li_step-1].menu_second=="2")){ //if ((ls_window_name!=null)&&(ls_window_name!="")){ if (oper_id != null){ ls_window_name = "appealUrl/AppealUrlAction.do?LoginName="+oper_id+"&LoginPass="+LoginPass+"&Depart_id="+Depart_id; alert(ls_window_name); } openwindow(ls_window_name); //} break; } if (array_menuitem[li_step-1].menu_first=="0"){ if (JudgeAcceptByCredit()=="-1") {return;} } AcceptCustServ(); break; } break; } } this.all[Menutoggle.id.replace('-plus','')].toggle(); } function DispOpenMenu() { var menuStr = ""; var li_step=0,li_super_menu="0",li_menu_id="0",ls_menu_name="",li_menu_first="0",li_menu_second="0"; var li_menu_id_pre = "0",lrootmenu=null,lsubmenu=null; for (li_step=0;li_step<(array_menuitem.length);li_step++) { li_super_menu = array_menuitem[li_step].super_menu; li_menu_id = array_menuitem[li_step].menu_id; ls_menu_name = array_menuitem[li_step].menu_name; li_menu_first = array_menuitem[li_step].menu_first; li_menu_second = array_menuitem[li_step].menu_second; if (li_menu_first!="0") { continue; } array_menuitem[li_step].id=""; if ((li_menu_first=="0")&&((li_menu_second=="0")||(li_menu_second=="")||(li_menu_second==null))) { if (li_super_menu=="0") { if (lrootmenu!=null) { menuStr += lrootmenu + "\n"; } lrootmenu = CreateRootItem(ls_menu_name,li_menu_id); array_menuitem[li_step].id = lrootmenu.id; li_menu_id_pre = li_menu_id; } else if (li_super_menu == li_menu_id_pre) { lsubmenu = CreateTreeSubItem(ls_menu_name,li_menu_id); array_menuitem[li_step].id = lsubmenu.id; AddTreeSubItem(lrootmenu,lsubmenu); } else { if (lrootmenu!=null) { menuStr += lrootmenu + "\n"; } lrootmenu = CreateRootItem(ls_menu_name,li_menu_id); array_menuitem[li_step].id = lrootmenu.id; li_menu_id_pre = li_menu_id; } } } if (lrootmenu != null) { menuStr += lrootmenu + "\n"; } DelSelected(); document.all("acceptmenu").innerHTML = menuStr; } function DispModifyMenu(AProdType) { var menuStr = ""; var li_step=0,ls_super_menu="",ls_menu_id="",ls_menu_first="",ls_menu_second="",ls_menu_id_pre="0"; var ls_menu_name = "",ls_prod_str = ""; var lrootmenu=null,lsubmenu=null; for (li_step=0;li_step < array_menuitem.length;li_step++) { ls_menu_first = array_menuitem[li_step].menu_first; ls_menu_second = array_menuitem[li_step].menu_second; ls_super_menu = array_menuitem[li_step].super_menu; ls_menu_id = array_menuitem[li_step].menu_id; ls_menu_name = array_menuitem[li_step].menu_name; ls_prod_str = array_menuitem[li_step].prod_bunch; if (ls_menu_first!="0") { continue; } array_menuitem[li_step].id=""; if ((ls_menu_first=="0")&&(ls_menu_second=="1")&&((ls_prod_str=="//")||((ls_prod_str.indexOf(AProdType))>=0))) { if (ls_super_menu=="0") { if (lrootmenu!=null) { menuStr += lrootmenu + "\n"; } lrootmenu = CreateRootItem(ls_menu_name,ls_menu_id); array_menuitem[li_step].id = lrootmenu.id; ls_menu_id_pre = ls_menu_id; } else if (ls_super_menu == ls_menu_id_pre) { lsubmenu = CreateTreeSubItem(ls_menu_name,ls_menu_id); array_menuitem[li_step].id = lsubmenu.id; AddTreeSubItem(lrootmenu,lsubmenu); } else { if (lrootmenu!=null) { menuStr += lrootmenu + "\n"; } lrootmenu = CreateRootItem(ls_menu_name,ls_menu_id); array_menuitem[li_step].id = lrootmenu.id; ls_menu_id_pre = ls_menu_id; } } } if (lrootmenu!=null) { menuStr += lrootmenu + "\n"; } document.all("acceptmenu").innerHTML = menuStr; } function DispXzMenu(Aservcode) { var menuStr = ""; var li_step=0,ls_super_menu="",ls_menu_id="",ls_menu_first="",ls_menu_second="",ls_menu_id_pre="0"; var ls_menu_name = "",ls_serv_str=""; var lrootmenu=null,lsubmenu=null; for (li_step=0;li_step < array_menuitem.length;li_step++) { ls_menu_first = array_menuitem[li_step].menu_first; ls_menu_second = array_menuitem[li_step].menu_second; ls_super_menu = array_menuitem[li_step].super_menu; ls_menu_id = array_menuitem[li_step].menu_id; ls_menu_name = array_menuitem[li_step].menu_name; ls_serv_str = array_menuitem[li_step].srv_bunch; if (ls_menu_first!="0") { continue; } array_menuitem[li_step].id=""; if ((ls_menu_first=="0")&&(ls_menu_second=="2")&&(((ls_serv_str.indexOf("//"))>=0)||((ls_serv_str.indexOf(Aservcode))>=0))) { if (ls_super_menu=="0") { if (lrootmenu!=null) { menuStr += lrootmenu + "\n"; } lrootmenu = CreateRootItem(ls_menu_name,ls_menu_id); array_menuitem[li_step].id = lrootmenu.id; ls_menu_id_pre = ls_menu_id; } else if (ls_super_menu == ls_menu_id_pre) { lsubmenu = CreateTreeSubItem(ls_menu_name,ls_menu_id); array_menuitem[li_step].id = lsubmenu.id; AddTreeSubItem(lrootmenu,lsubmenu); } else { if (lrootmenu!=null) { menuStr += lrootmenu + "\n"; } lrootmenu = CreateRootItem(ls_menu_name,ls_menu_id); array_menuitem[li_step].id = lrootmenu.id; ls_menu_id_pre = ls_menu_id; } } } if (lrootmenu!=null) { menuStr += lrootmenu + "\n"; } DelSelected(); document.all("acceptmenu").innerHTML = menuStr; } function DispServMenu(amenutype,amenuname) { var menuStr = ""; var li_step=0,ls_super_menu="",ls_menu_id="",ls_menu_first="",ls_menu_second="",ls_menu_id_pre="0"; var ls_menu_name = "",ls_serv_str=""; var lrootmenu=null,lsubmenu=null; for (li_step=0;li_step < array_menuitem.length;li_step++) { ls_menu_first = array_menuitem[li_step].menu_first; ls_menu_second = array_menuitem[li_step].menu_second; ls_super_menu = array_menuitem[li_step].super_menu; ls_menu_id = array_menuitem[li_step].menu_id; ls_menu_name = array_menuitem[li_step].menu_name; ls_serv_str = array_menuitem[li_step].srv_bunch; if (ls_menu_first!=amenutype) { continue; } array_menuitem[li_step].id=""; if (ls_super_menu=="0") { if (lrootmenu!=null) { menuStr += lrootmenu + "\n"; } lrootmenu = CreateRootItem(ls_menu_name,ls_menu_id); array_menuitem[li_step].id = lrootmenu.id; ls_menu_id_pre = ls_menu_id; } else if (ls_super_menu == ls_menu_id_pre) { lsubmenu = CreateTreeSubItem(ls_menu_name,ls_menu_id); array_menuitem[li_step].id = lsubmenu.id; AddTreeSubItem(lrootmenu,lsubmenu); } else { if (lrootmenu!=null) { menuStr += lrootmenu + "\n"; } lrootmenu = CreateRootItem(ls_menu_name,ls_menu_id); array_menuitem[li_step].id = lrootmenu.id; ls_menu_id_pre = ls_menu_id; } } if (lrootmenu!=null) { menuStr += lrootmenu + "\n"; } document.all(amenuname).innerHTML = menuStr; } function SwitchSubMenu(oSubMenu) { var i for(i=1; i<10; i++) { var subid = "menu_" + i + "_sub"; if(document.all(subid)) { if(subid == oSubMenu.id + "_sub") document.all(subid).style.display = ""; else document.all(subid).style.display = "none"; } } } function ChangeColor(clickedTr) { var tdIDs = document.all("menu_td"); var i; for (i=0;i