Data | Page function Description: Tantousyaid,edaban,torihikisakitantousyamei Three fields from the main page to the Reference child screen. The reference sprite retrieves the qualifying records with these three keywords for the retrieval condition when the cursor is set on a record and then clicked, the value of the selected record is returned to the main screen corresponding item//******************************************* The main picture passes the parameter value Tantousyaid,edaban,torihikisakitantousyamei to the reference page//author:zhenghy// 2005/02/21/ /*************************************************************function doreference () { var doc = window.document.forms[0]; var Forcus_name = doc.focus_name.value; switch (forcus_name) { case " Tantousyaid "://Assuming cursor positioning is valid at Tantousyaid, you may need to set var URL Doc.context_path.value + "/contents/app/common/torihikisakitantosyasansyou/cmn080ol.jsp";//reference page address //Get tantousyaid var STRTANTOUSYACD = doc.tantousyaid.value; //Obtain edaban var Stredaban = doc.edaban.value; ////obtained torihikisakitantousyamei var Strtorihikisakitantousyamei = doc.torihikisakitantousyamei.value; var array = new array;//Save the main page parameters in an array array["Torihikisakiheadcode"] = strtantousyacd; Array ["accountadbanhead"] = stredaban; array["Tantonamehead"] = strtorihikisakitantousyamei; //Reference page property settings var Topis = (screen.height-700)/2; var leftis = (Screen.width- /2; var option = "Dialogleft:" + Leftis + "Px;dialogtop:"+ Topis + "px;dialogheight:600px;dialogwidth:600px;status:no;help:no;scroll:false;"; /from the reference page to get the corresponding value and placed in the main page of the corresponding item var resdataarray = window.showmodaldialog (URL, array,option); Doc.torihikisakiCD.value = resdataarray["Torihikisakilinecode"]; Doc.edaban.value = resdataarray["Accountadbanline"]; Doc.torihikisakiTantousyamei.value = resdataarray["Tantonameline"]; }} //**************************** Reference page//author:zhenghy//2005/02/19//****************************************** function douserload () { //GetData from the main page and set to the corresponding query criteria for the reference page var DataArray = window.dialogarguments; var modalform = window.document.forms[0]; if (modalForm.change_flag.value!= "Load" ) { ModalForm.torihikisakiHeadCode.value = dataarray[" Torihikisakiheadcode "]; ModalForm.accountAdbanHead.value = dataarray["Accountadbanhead"]; modalForm.tantoNameHead.value = dataarray["Tantonamehead"]; modalForm.change_flag.value = "Load"; Modalform.submit (); }} //************************************************************//action After selecting an item in the query result//author:zhenghy//2005/ 02/19//************************************************************ function doSelect () { var doc = window.document.forms[0]; var forcus_name = doc.focus_name.value; switch (forcus_name) { case "Torihikisakilinecode": //Get selected torihikisakilinecode var Strtorihikisakilinecode = "Doc." + "Torihikisakilinecode" + "[" + Doc.list_start_index.value + "]" + ". Value"; var torihikisakilinecode = eval (strtorihikisakilinecode); //Get selected accountadbanline var straccountadbanline = " Doc. "+" Accountadbanline "+" ["+ Doc.list_start_index.value +"] "+". Value "; var accountadbanline = eval (straccountadbanline); //Get selected tantonameline var strtantonameline = " Doc. "+" Tantonameline "+" ["+ Doc.list_start_index.value +"] "+". Value "; VA R tantonameline = eval (strtantonameline); //SelectThe values recorded in are saved in an array return var array = new array; array["Torihikisakilinecode"] = torihikisakilinecode; Array ["accountadbanline"] = accountadbanline; array["TantoNameLine"] = tantonameline; returnvalue = array; window.close (); break; default: Alert ("Please select Torihikisakilinecode.");}
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.