var gItemCds = new Array("0000931001", "0001173001", "0000098001", "0000079001", "0000570001", "0000553001", "0001019001", "0000080001"); var gItemCdsTextArea = new Array("0001173001", "0000098001", "0000079001", "0000570001", "0000553001", "0000080001"); /** * @desc : È®Àå¹öư(À̹ÌÁö,°¡°èµµ,Ãß°¡±â·Ï)À» ±â·Ï¿©ºÎ¿¡ µû¶ó Ç¥½Ã¸¦ À§ÇÑ ¹öư¸ñ·Ï * @id : * @authur : ¾ÈÄ¡¿ø * @history : 2009.09.09 ½Å±Ô ¾ÈÄ¡¿ø ACW_090909A */ var gExtnBtnIds = new Array("btn_imge_0001173001", "btn_etcrec_0001173001", "btn_imge_0000098001", "btn_fmy_0000098001", "btn_etcrec_0000098001", "btn_imge_0000079001", "btn_etcrec_0000079001", "btn_imge_0000570001", "btn_etcrec_0000570001", "btn_imge_0000553001", "btn_etcrec_0000553001", "btn_etcrec_0001019001", "btn_etcrec_0000080001"); /** * @desc : Ãʱâ È¸é ¼³Á¤ * @id : * @event : xforms-ready * @return : void * @authur : ¹ÚÁ¾ÈÆ */ function fFormReady_old() { InitSetMaxSizeSection(gItemCds, 0, 683); InitBtnImge(gItemCds); InitBtnComn(gItemCds); } /** * @desc : ¼½Ä ºÒ·¯¿À±â, ºÎºÐ ±×¸®µå¼½Ä »çÀÌÁî ÃʱâÈ * @id : * @event : xforms-ready * @return : void * @authur : ¹ÚÁ¾ÈÆ */ function fLoadForm_old() { var cboObj; for (var i = 0; i < gItemCds.length; i++) { cboObj = document.controls("cbo_" + gItemCds[i]); if (cboObj != null) SetUnitFormList(cboObj, gItemCds[i]) } InitLoadSection(gItemCdsTextArea); InitSetUnitForm(new Array("0000931001", "0001019001"), false); } /** * @desc : ±â·Ïµ¥ÀÌÅÍ Á¶È¸ * @id : * @event : xforms-ready * @return : void * @authur : ¹ÚÁ¾ÈÆ */ function fLoadData() { InitPgmFormData(); InitUnitFormData(gItemCds); } /** * @desc : ¼½Ä µ¥ÀÌÅÍ Clear * @ * @param : * @return : * @authur : ¹ÚÁ¾ÈÆ */ function fClearComnFormData() { if (gMaxSectionID != "") { var MaxObj = document.controls("lbl_" + gMaxSectionID); MaxObj.dispatch("onclick"); } ClearComnFormData(gItemCds); clearData(); //Æ÷Ä¿½º ó¸® SetDefFocusMTX(gItemCds); } /** * @desc : ±â·Ï ÀνºÅϽº ¿¬°á * @ * @param : * @return : * @authur : ¹ÚÁ¾ÈÆ */ function fSetRecItemValue(reciteminfo) { return SetCommMediFormValue(gItemCds, reciteminfo); } /** * @desc : ÀúÀåÀü üũ ·ÎÁ÷ * @id : * @event : xforms-ready * @return : void * @authur : ¹ÚÁ¾ÈÆ */ function fChkPreSave() { return ivw_0000931001.window.javascript.fChkGrdPreSave(); } /** * @desc : ¼½Ä Áø´Ü¸í »çÀÌÁî Á¶Àý * @ * @param : * @return : * @--------------------------------------------------- */ function fSetSizeFormDiag() { ivw_0001019001.window.javascript.fInitPage(false, parseInt(ivw_0001019001.attribute("height")), parseInt(ivw_0001019001.attribute("width"))); } /** * @desc : ¼½Ä ÁÖÈ£¼Ò »çÀÌÁî Á¶Àý * @ * @param : * @return : * @--------------------------------------------------- */ function fSetSizeFormCC() { ivw_0000931001.window.javascript.fInitPage(false, parseInt(ivw_0000931001.attribute("height")), parseInt(ivw_0000931001.attribute("width"))); } /***************************************************************************** Æ©´× ******************************************************************************/ var gLoadFormCnts = 0; /** * @group : * @ver : 2008.06.13 * @by : snoweye * @--------------------------------------------------- * @type : function * @access : private * @desc : È¸é ·ÎµùÈÄ ÃʱâÈ ÀÛ¾÷ ¼öÇà * @param : * @return : * @--------------------------------------------------- */ function fFormReady() { mmbfGetHardCodeInfoNm("/root/send/formhrdcd", "/root/mappingcd/inten", 1009); //Àǵµ¼º mmbfGetHardCodeInfoNm("/root/send/formhrdcd", "/root/mappingcd/injmech", 1010); //¼Õ»ó±âÀü mmbfGetHardCodeInfoNm("/root/send/formhrdcd", "/root/mappingcd/proc", 1011); //º¸È£À屸 //Æ®¸®¾ÆÁ¦ ±â·Ï ¿¬µ¿µ¥ÀÌÅÍ Á¶È¸(2009-05-21 ¹ÚÁ¾ÈÆ) model.removeNodeset("/root/send/reqdata"); model.makeValue("/root/send/reqdata/pid" , parent.window.javascript.fGetFormRec("pid")); model.makeValue("/root/send/reqdata/orddd", parent.window.javascript.fGetFormRec("orddd")); model.makeValue("/root/send/reqdata/cretno", parent.window.javascript.fGetFormRec("cretno")); model.makeValue("/root/send/reqdata/queryflag", "K"); // submit("TRMNE04403"); grup_base.attribute("border-style") = "none"; setSectionSize(gItemCds, 0, 683); dispOnLoadComplete(COMN_FORM); InitBtnImge(gItemCds); InitBtnFmy(gItemCds); InitBtnDiag("0001019001"); InitBtnEtcRec(gItemCds); //2010.01.21 initCmbExtnList(gItemCds); } /** * @group : * @ver : 2008.06.13 * @by : snoweye * @--------------------------------------------------- * @type : function * @access : private * @desc : ºÎºÐ¼½Ä ·Îµù * @param : * @return : * @--------------------------------------------------- */ function fLoadUnitForm() { initSection(gItemCds); } /** * @group : * @ver : 2008.06.13 * @by : snoweye * @--------------------------------------------------- * @type : function * @access : private * @desc : ºÎºÐ¼½Ä ·ÎµùÈÄ ÈÄó¸® * @param : * @return : * @--------------------------------------------------- */ function fOnLoadComplete() { var curLoadFormCd = getParameter("loadformcd"); var fstLevlItemCd = model.getValue(gPageInfo.forminfoRef + "/unitformmast[formcd='" + curLoadFormCd + "' and loaded != 'true']/orgsupdegnitemcd"); var ivwObj = document.controls("ivw_" + fstLevlItemCd); var unitformload = model.getValue(gPageInfo.forminfoRef + "/unitformmast[formcd='" + curLoadFormCd + "' and loaded != 'true']/loaded"); if(ivwObj != null && unitformload != "true") { //ivwObj.window.javascript.setFstLevlItemCd(fstLevlItemCd); setFstLevlItemCd(ivwObj, curLoadFormCd); model.setValue(gPageInfo.forminfoRef + "/unitformmast[formcd='" + curLoadFormCd + "']/loaded", "true"); } //ÁÖÈ£¼Ò ºÎºÐ¼½Ä ·ÎµùÈÄ Ã³¸® if(fstLevlItemCd == '0000931001') { fSetSizeFormCC(); //ÁÖÈ£¼Ò´Â ¹Ì¸® ¼ÂÆÃ // fSetCC(); } //Áø´Ü¸í ºÎºÐ¼½Ä ·ÎµùÈÄ Ã³¸® // 2009.12.16 ÃßÁ¤Áø´Ü ¼½Ä¿¡´Â ±×¸®µå°¡ ¾øÀ¸¹Ç·Î ÀÏ´Ü º¸·ù // if(fstLevlItemCd == '0001019001') // fSetSizeFormDiag(); gLoadFormCnts++; if(gItemCds.length == gLoadFormCnts) { if (parent.window.javascript.fGetFormRec("status") == "C") { SetDefFocusMTX(gItemCds); } dispOnLoadComplete(UNIT_FORM); } } /** * @group : * @ver : 2008.11.28 * @by : jonghun * @--------------------------------------------------- * @type : function * @access : private * @desc : µ¿ÀÏ ¼½ÄÀÌ ¶°ÀÖÀ» °æ¿ì ³»ºÎ ÀνºÅϽº ·Îµù ÈÄ µðÆúÆ® Á¶È¸³»¿ë Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fGetDefData() { if (parent.window.javascript.fGetFormRec("status") == "C") { // //Æ®¸®¾ÆÁ¦ ±â·Ï ¿¬µ¿µ¥ÀÌÅÍ Á¶È¸(2009-05-21 ¹ÚÁ¾ÈÆ) // model.removeNodeset("/root/send/reqdata"); // model.makeValue("/root/send/reqdata/pid" , parent.window.javascript.fGetFormRec("pid")); // model.makeValue("/root/send/reqdata/orddd", parent.window.javascript.fGetFormRec("orddd")); // model.makeValue("/root/send/reqdata/cretno", parent.window.javascript.fGetFormRec("cretno")); // model.makeValue("/root/send/reqdata/queryflag", "K"); // // if(submit("TRMNE04403")) // { // //ÁÖÈ£¼Ò´Â ¹Ì¸® ¼ÂÆÃ // fSetCC(); // var iobj = document.controls("ivw_0001173001"); // var iobj1 = document.controls("ivw_0000570001"); // fSetErTriageRec(iobj, "0001173"); // fSetErTriageRec(iobj1, "0000570"); // } SetDefFocusMTX(gItemCds); } dispOnLoadComplete(UNIT_FORM); } /** * @group : * @ver : 2008.11.28 * @by : jonghun * @--------------------------------------------------- * @type : function * @access : private * @desc : ÁÖÈ£¼Ò Æ®¸®¾ÆÁ¦ ¿¬µ¿ * @param : * @return : * @--------------------------------------------------- */ function fSetCC() { model.removeNodeset("/root/ccrectmp/recitem"); var attackdd = model.getValue("/root/interface/ertriage/ertriage/attackdd"); //¹ß»ýÀÏ var attacktm = model.getValue("/root/interface/ertriage/ertriage/attacktm"); //¹ß»ý½Ã°£ var mainsympnm = model.getValue("/root/interface/ertriage/ertriage/mainsympnm"); //ÁÖÁõ»ó var mainsympcd = model.getValue("/root/interface/ertriage/ertriage/mainsympcd"); //ÁÖÁõ»óÄÚµå var mainsympnm1 = model.getValue("/root/interface/ertriage/ertriage/mainsympnm1"); //ÁÖÁõ»ó1 var mainsympcd1 = model.getValue("/root/interface/ertriage/ertriage/mainsympcd1"); //ÁÖÁõ»óÄÚµå1 var mainsympnm2 = model.getValue("/root/interface/ertriage/ertriage/mainsympnm2"); //ÁÖÁõ»ó2 var mainsympcd2 = model.getValue("/root/interface/ertriage/ertriage/mainsympcd2"); //ÁÖÁõ»óÄÚµå2 var etcsymp = model.getValue("/root/interface/ertriage/ertriage/etcsymp"); //±âŸÁõ»ó var i = 1; if (mainsympnm != "") { model.makeNode("/root/ccrectmp/recitem[" + i + "]"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/instcd", getUserInfo("dutplceinstcd")); model.makeNode("/root/ccrectmp/recitem[" + i + "]/rechistseq"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/fstlevlitemcd", "0000931001"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/formcd"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/formdegnseq"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/degnitemno"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemcd", "0000931001"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlcd", "0000931"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/rectermcd"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recrefcd"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recitemnm"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/reccnts"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recimge"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemkind", "MTX"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemnm", "ÁÖÈ£¼Ò"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlno", "1"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/rectermnm"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/rowno"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/colno"); i++; model.makeNode("/root/ccrectmp/recitem[" + i + "]"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/instcd", getUserInfo("dutplceinstcd")); model.makeNode("/root/ccrectmp/recitem[" + i + "]/rechistseq"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/fstlevlitemcd", "0000931001"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/formcd", "0000000901"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/formdegnseq"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemno", "1"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemcd", "0000931001"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlcd", "0000931.0000931"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/rectermcd"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recrefcd"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recitemnm"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/reccnts"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recimge"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemkind", "GRD"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemnm", "ÁÖÈ£¼Ò"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlno", "2"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/rectermnm"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rowno", 0); model.makeValue("/root/ccrectmp/recitem[" + i + "]/colno", -1); i++; model.makeNode("/root/ccrectmp/recitem[" + i + "]"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/instcd", getUserInfo("dutplceinstcd")); model.makeNode("/root/ccrectmp/recitem[" + i + "]/rechistseq"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/fstlevlitemcd", "0000931001"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/formcd", "0000000901"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/formdegnseq"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemno", "5"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemcd", "0000931001"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlcd", "0000931.0000931.0000931"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermcd", mainsympcd); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recrefcd"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recitemnm"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/reccnts"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recimge"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemkind", "GSU"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemnm", "ÁÖÈ£¼Ò"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlno", "3"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermnm", mainsympnm); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rowno", 0); model.makeValue("/root/ccrectmp/recitem[" + i + "]/colno", 0); i++; if (attackdd != "") { attackdd = attackdd.substr(0, 4) + "-" + attackdd.substr(4, 2) + "-" + attackdd.substr(6, 2); if (attacktm != "") { attacktm = attacktm.substr(0, 2) + ":" + attacktm.substr(2, 2); } model.makeNode("/root/ccrectmp/recitem[" + i + "]"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/instcd", getUserInfo("dutplceinstcd")); model.makeNode("/root/ccrectmp/recitem[" + i + "]/rechistseq"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/fstlevlitemcd", "0000931001"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/formcd", "0000000901"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/formdegnseq"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemno", "10"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemcd", "0000299002"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlcd", "0000931.0000931.0000299"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermcd", ""); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recrefcd"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recitemnm"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/reccnts", attackdd + " " + attacktm); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recimge"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemkind", "GSU"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemnm", "¹ß»ýÀÏ"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlno", "3"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermnm", ""); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rowno", 0); model.makeValue("/root/ccrectmp/recitem[" + i + "]/colno", 2); i++; } } if (mainsympnm1 != "") { model.makeNode("/root/ccrectmp/recitem[" + i + "]"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/instcd", getUserInfo("dutplceinstcd")); model.makeNode("/root/ccrectmp/recitem[" + i + "]/rechistseq"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/fstlevlitemcd", "0000931001"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/formcd", "0000000901"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/formdegnseq"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemno", "5"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemcd", "0000931001"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlcd", "0000931.0000931.0000931"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermcd", mainsympcd1); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recrefcd"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recitemnm"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/reccnts"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recimge"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemkind", "GSU"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemnm", "ÁÖÈ£¼Ò"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlno", "3"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermnm", mainsympnm1); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rowno", 1); model.makeValue("/root/ccrectmp/recitem[" + i + "]/colno", 0); i++; if (attackdd != "") { model.makeNode("/root/ccrectmp/recitem[" + i + "]"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/instcd", getUserInfo("dutplceinstcd")); model.makeNode("/root/ccrectmp/recitem[" + i + "]/rechistseq"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/fstlevlitemcd", "0000931001"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/formcd", "0000000901"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/formdegnseq"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemno", "10"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemcd", "0000299002"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlcd", "0000931.0000931.0000299"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermcd", ""); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recrefcd"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recitemnm"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/reccnts", attackdd + " " + attacktm); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recimge"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemkind", "GSU"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemnm", "¹ß»ýÀÏ"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlno", "3"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermnm", ""); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rowno", 1); model.makeValue("/root/ccrectmp/recitem[" + i + "]/colno", 2); i++; } } if (mainsympnm2 != "") { model.makeNode("/root/ccrectmp/recitem[" + i + "]"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/instcd", getUserInfo("dutplceinstcd")); model.makeNode("/root/ccrectmp/recitem[" + i + "]/rechistseq"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/fstlevlitemcd", "0000931001"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/formcd", "0000000901"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/formdegnseq"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemno", "5"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemcd", "0000931001"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlcd", "0000931.0000931.0000931"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermcd", mainsympcd2); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recrefcd"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recitemnm"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/reccnts"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recimge"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemkind", "GSU"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemnm", "ÁÖÈ£¼Ò"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlno", "3"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermnm", mainsympnm2); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rowno", 2); model.makeValue("/root/ccrectmp/recitem[" + i + "]/colno", 0); i++; if (attackdd != "") { model.makeNode("/root/ccrectmp/recitem[" + i + "]"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/instcd", getUserInfo("dutplceinstcd")); model.makeNode("/root/ccrectmp/recitem[" + i + "]/rechistseq"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/fstlevlitemcd", "0000931001"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/formcd", "0000000901"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/formdegnseq"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemno", "10"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemcd", "0000299002"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlcd", "0000931.0000931.0000299"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermcd", ""); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recrefcd"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recitemnm"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/reccnts", attackdd + " " + attacktm); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recimge"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemkind", "GSU"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemnm", "¹ß»ýÀÏ"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlno", "3"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermnm", ""); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rowno", 2); model.makeValue("/root/ccrectmp/recitem[" + i + "]/colno", 2); i++; } } if (etcsymp != "") { model.makeNode("/root/ccrectmp/recitem[" + i + "]"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/instcd", getUserInfo("dutplceinstcd")); model.makeNode("/root/ccrectmp/recitem[" + i + "]/rechistseq"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/fstlevlitemcd", "0000931001"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/formcd", "0000000901"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/formdegnseq"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemno", "5"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemcd", "0000931001"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlcd", "0000931.0000931.0000931"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermcd", "-"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recrefcd"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recitemnm"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/reccnts"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recimge"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemkind", "GSU"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemnm", "ÁÖÈ£¼Ò"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlno", "3"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermnm", etcsymp); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rowno", 3); model.makeValue("/root/ccrectmp/recitem[" + i + "]/colno", 0); i++; if (attackdd != "") { model.makeNode("/root/ccrectmp/recitem[" + i + "]"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/instcd", getUserInfo("dutplceinstcd")); model.makeNode("/root/ccrectmp/recitem[" + i + "]/rechistseq"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/fstlevlitemcd", "0000931001"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/formcd", "0000000901"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/formdegnseq"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemno", "10"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemcd", "0000299002"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlcd", "0000931.0000931.0000299"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermcd", ""); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recrefcd"); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recitemnm"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/reccnts", attackdd + " " + attacktm); model.makeNode("/root/ccrectmp/recitem[" + i + "]/recimge"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemkind", "GSU"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemnm", "¹ß»ýÀÏ"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlno", "3"); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermnm", ""); model.makeValue("/root/ccrectmp/recitem[" + i + "]/rowno", 3); model.makeValue("/root/ccrectmp/recitem[" + i + "]/colno", 2); i++; } } var nodeList = model.instances(0).selectNodes("/root/ccrectmp/recitem"); ivw_0000931001.window.javascript.clearData(); if (nodeList.length > 0) { setSrchData("/root/ccrectmp/recitem", ivw_0000931001); ivw_0000931001.window.javascript.fAddrow(); } } function fSetErTriageRec(ivwObj, levlcd) { // if (parent.window.javascript.fGetFormRec("status") != "C") // { // return; // } //Çöº´·Â if (ivwObj.attribute("id") == "ivw_0001173001" && ivwObj.src != "") { //Àǵµ¼º var itemVal = new ITEMVAL(); var intenflag = model.getValue("/root/interface/ertriage/ertriage/intenflag"); //Àǵµ¼ºÄÚµå if (intenflag != "" && intenflag != "-") { var intntermcd = model.getValue("/root/mappingcd/inten/hardcd[hardcd = '" + intenflag + "']/hardcdnm"); var intntermnm = ivwObj.model.getValue("/root/main/forminfo/vallist[grupcd = '0001775002' and valcd = '" + intntermcd + "']/valitemnm"); itemVal.rectermcd = intntermcd; itemVal.rectermnm = intntermnm; if (levlcd != null) { ivwObj.window.javascript.setFormItemValue(levlcd + ".0001667", itemVal, true); } else { ivwObj.window.javascript.setFormItemValue("0001667", itemVal, true); } } //¼Õ»ó±âÀü var itemVal1 = new ITEMVAL(); var injmechflag = model.getValue("/root/interface/ertriage/ertriage/injmechflag"); //¼Õ»ó±âÀüÄÚµå if (injmechflag != "" && injmechflag != "-") { var injmechcd = model.getValue("/root/mappingcd/injmech/hardcd[hardcd = '" + injmechflag + "']/hardcdnm"); var injmechnm = ivwObj.model.getValue("/root/main/forminfo/vallist[grupcd = '0001776002' and valcd = '" + injmechcd + "']/valitemnm"); itemVal1.rectermcd = injmechcd; itemVal1.rectermnm = injmechnm; if (levlcd != null) { ivwObj.window.javascript.setFormItemValue(levlcd + ".0020479", itemVal1, true); } else { ivwObj.window.javascript.setFormItemValue("0020479", itemVal1, true); } } //º¸È£À屸 var itemVal2 = new ITEMVAL(); var proceqmtflag = model.getValue("/root/interface/ertriage/ertriage/proceqmtflag"); //º¸È£À屸 if (proceqmtflag != "" && proceqmtflag != "-") { var arrProceqmtflag = proceqmtflag.split("|") if (arrProceqmtflag.length > 0) { var proceqmtcd = ""; var proceqmtnm = ""; var compproceqmtflag = ""; var tmpProceqmtflag = ""; var tmpProceqmtnm = ""; for (var i = 0; i < arrProceqmtflag.length; i++) { tmpProceqmtcd = model.getValue("/root/mappingcd/proc/hardcd[hardcd = '" + arrProceqmtflag[i] + "']/hardcdnm"); tmpProceqmtnm = ivwObj.model.getValue("/root/main/forminfo/vallist[grupcd = '0001774002' and valcd = '" + tmpProceqmtcd + "']/valitemnm"); proceqmtcd += tmpProceqmtcd + " "; proceqmtnm += tmpProceqmtnm + "¢Ë"; } itemVal2.rectermcd = proceqmtcd.substring(0, proceqmtcd.length - 1); itemVal2.rectermnm = proceqmtnm.substring(0, proceqmtnm.length - 1); if (levlcd != null) { ivwObj.window.javascript.setFormItemValue(levlcd + ".0020478", itemVal2, true); } else { ivwObj.window.javascript.setFormItemValue("0020478", itemVal2, true); } } } //2010.05.10 ±è´ÞÇö Ãß°¡ //³»¿ø»çÀ¯(M0120) var itemVal3 = new ITEMVAL(); var chosresnflag = model.getValue("/root/interface/ertriage/ertriage/chosresnflag"); var chosresncd, chosresnnm; if(chosresnflag == "1"){//Áúº´ chosresncd = "0003034001"; }else if(chosresnflag == "2"){//Áúº´¿Ü chosresncd = "0038976001"; }else if(chosresnflag == "3"){//Áø·á¿Ü¹æ¹® chosresncd = "0038977001"; }else if(chosresnflag == "9"){//¹Ì»ó chosresncd = "0017158001"; } chosresnnm = ivwObj.window.javascript.model.getValue("/root/main/forminfo/vallist[valcd='"+chosresncd+"']/valitemnm"); if(chosresnflag != null && chosresnflag != ""){ itemVal3.rectermcd = chosresncd; itemVal3.rectermnm = chosresnnm; if (levlcd != null) { ivwObj.window.javascript.setFormItemValue(levlcd + ".0019376", itemVal3, true); } else { ivwObj.window.javascript.setFormItemValue("0019376", itemVal3, true); } } //2010.05.10 ±è´ÞÇö Ãß°¡ //³»¿ø¼ö´Ü(M0119) var itemVal4 = new ITEMVAL(); var choswayflag = model.getValue("/root/interface/ertriage/ertriage/choswayflag"); var choswaycd, choswaynm; if(choswayflag == "1"){//119 ±¸±ÞÂ÷ choswaycd = "0035600001"; }else if(choswayflag == "2"){//º´¿ø±¸±ÞÂ÷ choswaycd = "0038986001"; }else if(choswayflag == "3"){//±âŸ±¸±ÞÂ÷ choswaycd = "0035601001"; }else if(choswayflag == "4"){//°æÂûÂ÷ µî °ø°øÂ÷·® choswaycd = "0038978001"; }else if(choswayflag == "5"){//Ç×°øÀÌ¼Û choswaycd = "0038983001"; }else if(choswayflag == "6"){//±âŸ ÀÚµ¿Â÷ choswaycd = "0038984001"; }else if(choswayflag == "7"){//µµº¸ choswaycd = "0002199001"; }else if(choswayflag == "8"){//±âŸ choswaycd = "0002141001"; }else if(choswayflag == "9"){//¹Ì»ó choswaycd = "0017158001"; } choswaynm = ivwObj.window.javascript.model.getValue("/root/main/forminfo/vallist[valcd='"+choswaycd+"']/valitemnm"); if(choswayflag != null && choswayflag != ""){ itemVal4.rectermcd = choswaycd; itemVal4.rectermnm = choswaynm; if (levlcd != null) { ivwObj.window.javascript.setFormItemValue(levlcd + ".0000169", itemVal4, true); } else { ivwObj.window.javascript.setFormItemValue("0000169", itemVal4, true); } } //2010.05.10 ±è´ÞÇö Ãß°¡ //³»¿ø°æ·Î(M0118) var itemVal5 = new ITEMVAL(); var chospathflag = model.getValue("/root/interface/ertriage/ertriage/chospathflag"); var chospathcd, chospathnm; if(chospathflag == "1"){//Á÷Á¢³»¿ø chospathcd = "0000374001"; }else if(chospathflag == "2"){//¿ÜºÎ¿¡¼ Àü¿ø chospathcd = "0038982001"; }else if(chospathflag == "3"){//¿Ü·¡¿¡¼ ÀÇ·Ú chospathcd = "0038987001"; }else if(chospathflag == "8"){//±âŸ chospathcd = "0002141001"; }else if(chospathflag == "9"){//¹Ì»ó chospathcd = "0017158001"; } chospathnm = ivwObj.window.javascript.model.getValue("/root/main/forminfo/vallist[valcd='"+chospathcd+"']/valitemnm"); if(chospathflag != null && chospathflag != ""){ itemVal5.rectermcd = chospathcd; itemVal5.rectermnm = chospathnm; if (levlcd != null) { ivwObj.window.javascript.setFormItemValue(levlcd + ".0023492", itemVal5, true); } else { ivwObj.window.javascript.setFormItemValue("0023492", itemVal5, true); } } } //½Åü°ËÁø if (ivwObj.attribute("id") == "ivw_0000570001" && ivwObj.src != "") { //ºÐ´ç¸Æ¹Ú¼ö var itemVal = new ITEMVAL(); var mntpulsecnt = model.getValue("/root/interface/ertriage/ertriage/mntpulsecnt"); itemVal.reccnts = mntpulsecnt; if (levlcd != null) { ivwObj.window.javascript.setFormItemValue(levlcd + ".0000879.0001221.0000258", itemVal, true); } else { ivwObj.window.javascript.setFormItemValue("0000879.0001221.0000258", itemVal, true); } //ºÐ´çÈ£Èí¼ö itemVal = new ITEMVAL(); var mntbrethcnt = model.getValue("/root/interface/ertriage/ertriage/mntbrethcnt"); itemVal.reccnts = mntbrethcnt; if (levlcd != null) { ivwObj.window.javascript.setFormItemValue(levlcd + ".0000879.0001221.0000993", itemVal, true); } else { ivwObj.window.javascript.setFormItemValue("0000879.0001221.0000993", itemVal, true); } //³»¿ø½Ãü¿Â itemVal = new ITEMVAL(); var chosbdtp = model.getValue("/root/interface/ertriage/ertriage/chosbdtp"); itemVal.reccnts = chosbdtp; if (levlcd != null) { ivwObj.window.javascript.setFormItemValue(levlcd + ".0000879.0001221.0000992", itemVal, true); } else { ivwObj.window.javascript.setFormItemValue("0000879.0001221.0000992", itemVal, true); } //¼öÃà±âÇ÷¾Ð itemVal = new ITEMVAL(); var highbp = model.getValue("/root/interface/ertriage/ertriage/highbp"); itemVal.reccnts = highbp; if (levlcd != null) { ivwObj.window.javascript.setFormItemValue(levlcd + ".0000879.0001221.0001180.0000525", itemVal, true); } else { ivwObj.window.javascript.setFormItemValue("0000879.0001221.0001180.0000525", itemVal, true); } //À̿ϱâÇ÷¾Ð itemVal = new ITEMVAL(); var lowbp = model.getValue("/root/interface/ertriage/ertriage/lowbp"); itemVal.reccnts = lowbp; if (levlcd != null) { ivwObj.window.javascript.setFormItemValue(levlcd + ".0000879.0001221.0001180.0000791", itemVal, true); } else { ivwObj.window.javascript.setFormItemValue("0000879.0001221.0001180.0000791", itemVal, true); } //»ê¼ÒÆ÷ȵµ itemVal = new ITEMVAL(); var oxyconcen = model.getValue("/root/interface/ertriage/ertriage/oxyconcen"); itemVal.reccnts = oxyconcen; if (levlcd != null) { ivwObj.window.javascript.setFormItemValue(levlcd + ".0000879.0001221.0005957", itemVal, true); } else { ivwObj.window.javascript.setFormItemValue("0000879.0001221.0005957", itemVal, true); } //2010.05.10 ±è´ÞÇö Ãß°¡ //ÀǽÄ(AVPU Scale) itemVal = new ITEMVAL(); var cscsflag = model.getValue("/root/interface/ertriage/ertriage/cscsflag"); var cscscd, cscsnm; if(cscsflag == "A"){//Alert cscscd = "0000544"; }else if(cscsflag == "V"){//Verbal response cscscd = "0014272"; }else if(cscsflag == "P"){//Painful response cscscd = "0015321"; }else if(cscsflag == "U"){//Unresponsive cscscd = "0038958"; } cscsnm = ivwObj.window.javascript.model.getValue("/root/main/forminfo/vallist[valcd='" + cscscd + "']/valitemnm"); if(cscscd != null && cscscd != ""){ itemVal.rectermcd = cscscd; itemVal.rectermnm = cscsnm; if(levlcd != null){ ivwObj.window.javascript.setFormItemValue(levlcd + ".0000900.0000898.0023476", itemVal, true); }else{ ivwObj.window.javascript.setFormItemValue("0000900.0000898.0023476", itemVal, true); } } } } /** * MMR01100.js¿¡¼ ¼½Äload¸¦ ¿Ï·áÇÑ ÈÄ¿¡ È£ÃâÇÑ´Ù. * @return */ function initFormAtLast_MMR01100I() { if (parent.window.javascript.fGetFormRec("status") == "C") { fSetTriageValue_MMR00700("A", true); fSetTriageValue_MMR00700("B", false); fSetTriageValue_MMR00700("C", false); } } /** * Triage ÀԷ³»¿ëÀ» ¼³Á¤ÇÑ´Ù. * @param flag *