//ºÎºÐ¼­½ÄÀÇ ºÎ¸ð¾ÆÀÌÅÛ ¹è¿­ var gItemCds = new Array("0007983001", "0000521001", "0000509001", "0000512001", "0000507001"); var gItemCdsTextArea = new Array("0000512001", "0000507001"); var gItemCdsXRWArea = new Array("0007983001", "0000521001", "0000509001"); //ºÎºÐ¼­½ÄÀÇ °³¼ö¸¸Å­ ÀÏ´Ü '0'À¸·Î ä¿î´Ù. var gPageIdx = new Array(0, 0); var iSurg = ipt_surg.attribute("degnitemlevlcd"); var operation = getGlobalVariable("operation").split("¢Ì")[1]; var instance = document.models(0).instances(0); var pageInfo = new PAGEINFO(); var oprsrvno = ""; //¼ö¼ú¿¹¾à¹øÈ£ var perfdeptcd = ""; //Áýµµ°ú if(operation != null && operation != ""){ oprsrvno = operation.split("¢Ë")[0]; perfdeptcd = operation.split("¢Ë")[10]; } /** * @desc : È®Àå¹öư(À̹ÌÁö,°¡°èµµ,Ãß°¡±â·Ï)À» ±â·Ï¿©ºÎ¿¡ µû¶ó Ç¥½Ã¸¦ À§ÇÑ ¹öư¸ñ·Ï * @id : * @authur : ¾ÈÄ¡¿ø * @history : 2009.09.09 ½Å±Ô ¾ÈÄ¡¿ø ACW_090909A */ var gExtnBtnIds = new Array("btn_imge_0000512001", "btn_etcrec_0000512001", "btn_imge_0000507001", "btn_etcrec_0000507001"); /** * @desc : ¼­½Ä µ¥ÀÌÅÍ Clear, ÀÎÅÍÆäÀ̽º ÀԷ°ª Á¶È¸ ÀÔ·Â * @id : * @event : xforms-ready * @return : void * @authur : ¹ÚÁ¾ÈÆ */ function fClearComnFormData() { if (gMaxSectionID != "") { var MaxObj = document.controls("lbl_" + gMaxSectionID); MaxObj.dispatch("onclick"); } ClearComnFormData(gItemCds); fInitialize(); if (parent.window.javascript.fGetFormRec("status") == "C") { fSetOprInfo(); } //Æ÷Ä¿½º ó¸® SetDefFocusIVW(gItemCdsTextArea); //parent.window.javascript.fSetFormRec("extnflag", "opr"); //parent.window.javascript.fSetFormRec("oprsrvno", oprsrvno); } /** * @desc : ±â·Ïµ¥ÀÌÅÍ Á¶È¸ * @id : * @event : xforms-ready * @return : void * @authur : ¹ÚÁ¾ÈÆ */ function fLoadData() { fInitialize(); //Program ¼­½Ä µ¥ÀÌÅÍ Á¶È¸¹Ý¿µ InitPgmFormData(); this.recRef2 = "/root/hidden/recinfo" //ºÎºÐ¼­½Ä µ¥ÀÌÅÍ Á¶È¸ ¹Ý¿µ InitUnitFormData(gItemCds); //parent.window.javascript.gSubmitID = TX_SUBMIT_EXTN_FORM; //parent.window.javascript.fSetFormRec("extnflag", "opr"); //parent.window.javascript.fSetFormRec("oprsrvno", oprsrvno); } /** * @desc : È­¸é ÃʱâÈ­ * @ * @param : * @return : * @authur : ¹ÚÁ¾ÈÆ */ function fInitialize() { ivw_0007983001.attribute("border-style") = "none"; ivw_0000521001.attribute("border-style") = "none"; ivw_0000509001.attribute("border-style") = "none"; gTermViewTopPos = 29; gTermViewHei = 152; gTermViewItems = gItemCdsXRWArea; //fRadioYN(); model.refresh(); } /** * @desc : ¼ö¼úÀÌ·Â ÆË¾÷ * @ * @param : * @return : * @authur : ¹ÚÁ¾ÈÆ */ function fPatientHist() { modal("SMMMO02500"); } /** * @desc : ±â·Ï ÀνºÅϽº ¿¬°á * @ * @param : * @return : * @authur : ¹ÚÁ¾ÈÆ */ function fSetRecItemValue(reciteminfo) { return SetCommMediFormValue(gItemCds, reciteminfo); } /** * @desc : ¼ö¼úÀü Áø´Ü¸í »çÀÌÁî Á¶Àý * @ * @param : * @return : * @--------------------------------------------------- */ function fSetSizeFormDiag() { ivw_0007983001.window.javascript.fInitPage(false, parseInt(ivw_0007983001.attribute("height")), parseInt(ivw_0007983001.attribute("width")), "ivw_0007983001", "¼ö¼úÀü Áø´Ü¸í(Free text)"); //ivw_0000521001.window.javascript.fInitPage(false, parseInt(ivw_0000521001.attribute("height")), parseInt(ivw_0000521001.attribute("width")), "ivw_0000521001", "¼ö¼úÈÄ Áø´Ü¸í"); } /** * @desc : ¼ö¼úÈÄ Áø´Ü¸í »çÀÌÁî Á¶Àý * @ * @param : * @return : * @--------------------------------------------------- */ function fSetSizeFormDiag1() { //ivw_0007983001.window.javascript.fInitPage(false, parseInt(ivw_0007983001.attribute("height")), parseInt(ivw_0007983001.attribute("width")), "ivw_0007983001", "¼ö¼úÀü Áø´Ü¸í"); ivw_0000521001.window.javascript.fInitPage(false, parseInt(ivw_0000521001.attribute("height")), parseInt(ivw_0000521001.attribute("width")), "ivw_0000521001", "¼ö¼úÈÄ Áø´Ü¸í(Free text)"); } /** * @desc : ¼­½Ä ¼ö¼ú¸í »çÀÌÁî Á¶Àý * @ * @param : * @return : * @--------------------------------------------------- */ function fSetSizeFormOpr() { //fFormReady(); ivw_0000509001.window.javascript.fInitPage(false, parseInt(ivw_0000509001.attribute("height")), parseInt(ivw_0000509001.attribute("width")), "ivw_0000509001"); } /***************************************************************************** Æ©´× ******************************************************************************/ var gLoadFormCnts = 0; /** * @group : * @ver : 2008.06.13 * @by : snoweye * @--------------------------------------------------- * @type : function * @access : private * @desc : È­¸é ·ÎµùÈÄ ÃʱâÈ­ ÀÛ¾÷ ¼öÇà * @param : * @return : * @--------------------------------------------------- */ function fFormReady() { grup_base.attribute("border-style") = "none"; setSectionSize(gItemCds, 335, 350); //20080702 ¹ÚÁ¾ÈÆ Ãß°¡ fInitialize(); InitBtnImge(gItemCdsTextArea); InitBtnEtcRec(gItemCdsTextArea); InitBtnComn(gItemCdsTextArea); dispOnLoadComplete(COMN_FORM); if (parent.window.javascript.fGetFormRec("status") == "C") { //parent.window.javascript.fSetFormRec("extnflag", "opr"); parent.window.javascript.fSetFormRec("oprsrvno", oprsrvno); } } /** * @group : * @ver : 2008.06.13 * @by : snoweye * @--------------------------------------------------- * @type : function * @access : private * @desc : ºÎºÐ¼­½Ä ·Îµù * @param : * @return : * @--------------------------------------------------- */ function fLoadUnitForm() { initSection(gItemCds); } var diagcnt = 0; /** * @group : * @ver : 2008.06.13 * @by : snoweye * @--------------------------------------------------- * @type : function * @access : private * @desc : ºÎºÐ¼­½Ä ·ÎµùÈÄ ÈÄó¸® * @param : * @return : * @--------------------------------------------------- */ function fOnLoadComplete() { var rtn = false; var curLoadFormCd = getParameter("loadformcd"); setParameter("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 == '0007983001') { fSetSizeFormDiag(); } //¼ö¼úÈÄÁø´Ü¸í ºÎºÐ¼­½Ä ·ÎµùÈÄ Ã³¸® if(fstLevlItemCd == '0000521001') { fSetSizeFormDiag1(); if (parent.window.javascript.fGetFormRec("status") == "C") { //rtn = fGetdiagFormOprsrvno(oprsrvno, iMcdnm, iMcdnm, iScdnm, iScdnm); //¼ö¼ú¿¹¾à¹øÈ£·Î Áø´Ü¸í Á¶È¸ } } //¼ö¼ú¸í ºÎºÐ¼­½Ä ·ÎµùÈÄ Ã³¸® if(fstLevlItemCd == '0000509001') { fSetSizeFormOpr(); if (parent.window.javascript.fGetFormRec("status") == "C") { //fSrchOprPerfDrlist(oprsrvno, cOdt1); //ȯÀÚÁ¤º¸·Î ¼ö¼ú¸í, ÁýµµÀÇ Á¶È¸ //fClearComnFormData(); } } gLoadFormCnts++; if(gItemCds.length == gLoadFormCnts) { fSetOprInfo(); dispOnLoadComplete(UNIT_FORM); //¼­½Ä ·Îµù ÈÄ Æ÷Ä¿½º ó¸®(2008-11-18 ¹ÚÁ¾ÈÆ) SetDefFocusIVW(gItemCdsTextArea); } } /** * @group : * @ver : 2009.01.05 * @by : jonghun * @--------------------------------------------------- * @type : function * @access : private * @desc : ¼­½Ä ·Îµù ¿Ï·á ÈÄ ¼ö¼ú ¿¹¾à¹øÈ£ À¯¹«¿¡ µû¶ó ¼­½Ä ³»¿ë ¼ÂÆÃ * @param : * @return : * @--------------------------------------------------- */ function fSetOprInfo() { if (parent.window.javascript.fGetFormRec("status") == "C") { var dschdd = parent.window.javascript.fGetPamInfo("dschdd"); if (dschdd == "" || dschdd == "-") { dschdd = "99991231"; } model.makeValue("/root/send/oprinfo/pid", parent.window.javascript.fGetPamInfo("pid")); model.makeValue("/root/send/oprinfo/indd", parent.window.javascript.fGetPamInfo("indd")); model.makeValue("/root/send/oprinfo/dschdd", dschdd); if (submit("TRMMR01002")) //¼ö¼ú ÀÌ·Â Á¶È¸ { var nodeList = model.instances(0).selectNodes("/root/init/oprlist/oplist"); ipt_surg.disabled = true; if (oprsrvno != "") { parent.window.javascript.fSetFormRec("oprsrvno", oprsrvno); model.makeValue("/root/send/reqinfstrec/pid", parent.window.javascript.fGetPamInfo("pid")); model.makeValue("/root/send/reqinfstrec/orddd", parent.window.javascript.fGetPamInfo("indd")); model.makeValue("/root/send/reqinfstrec/cretno", parent.window.javascript.fGetPamInfo("cretno")); model.makeValue("/root/send/reqinfstrec/oprsrvno", oprsrvno); if (submit("TRMMR01003")) //¼ö¼ú ¿¹¾à¹øÈ£¿¡ µû¸¥ ¼ö¼ú±â·ÏÁö ±â·Ï³»¿ë Á¶È¸ { var nodeList1 = model.instances(0).selectNodes("/root/main/infstrec/recitem"); //ÇØ´ç ¼ö¼ú°Ç¿¡ ´ëÇÑ ¼ö¼ú±â·Ï À¯¹«¿¡ µû¸¥ ºÐ±â if (nodeList1.length > 0) { fSetOprRecIf(); } else { fDefInfo(); //¼ö¼ú±â·ÏÀÌ ¾øÀ»°æ¿ì µðÆúÆ® Á¤º¸ Á¶È¸ } } } else if(nodeList.length == 1) { var opsrvno = model.getValue("/root/init/oprlist/oplist/oprsrvno"); if (opsrvno != "" && opsrvno != "-") { parent.window.javascript.fSetFormRec("oprsrvno", opsrvno); model.makeValue("/root/send/reqinfstrec/pid", parent.window.javascript.fGetPamInfo("pid")); model.makeValue("/root/send/reqinfstrec/orddd", parent.window.javascript.fGetPamInfo("indd")); model.makeValue("/root/send/reqinfstrec/cretno", parent.window.javascript.fGetPamInfo("cretno")); model.makeValue("/root/send/reqinfstrec/oprsrvno", opsrvno); if (submit("TRMMR01003")) //¼ö¼ú ¿¹¾à¹øÈ£¿¡ µû¸¥ ¼ö¼ú±â·ÏÁö ±â·Ï³»¿ë Á¶È¸ { var nodeList2 = model.instances(0).selectNodes("/root/main/infstrec/recitem"); //ÇØ´ç ¼ö¼ú°Ç¿¡ ´ëÇÑ ¼ö¼ú±â·Ï À¯¹«¿¡ µû¸¥ ºÐ±â if (nodeList2.length > 0) { fSetOprRecIf(); } else { fDefInfo(); //¼ö¼ú±â·ÏÀÌ ¾øÀ»°æ¿ì µðÆúÆ® Á¤º¸ Á¶È¸ } } } } //2010-01-04 ¿ÀÀü 10:12:00 °­ÁöÈÆ ¼öÁ¤ : ¿äû¹øÈ£ 4693 else if(nodeList.length == 0 && oprsrvno == "") { ipt_surg.disabled = false; } else{ combo1.select(combo1.length - 1); } addComboItem("combo1", " ", "", "ADD"); combo1.refresh(); } } } /** * @group : * @ver : 2009.01.05 * @by : jonghun * @--------------------------------------------------- * @type : function * @access : private * @desc : ¼ö¼ú±â·Ï ÀÎÅÍÆäÀ̽º ³»¿ë ¼ÂÆÃ * @param : * @return : * @--------------------------------------------------- */ function fSetOprRecIf() { //¼ö¼úÀÏ var opdd = model.getValue("/root/main/infstrec/recitem[degnitemlevlcd='0000515']/reccnts"); if (opdd == "") { opdd = model.getValue("/root/init/oprlist/oplist[oprsrvno='" + model.getValue("/root/send/reqinfstrec/oprsrvno") + "']/opcnfmdd"); //opdd = getCurrentDate(); } //var transopdd = opdd.substr(0, 4) + "-" + opdd.substr(4, 2) + "-" + opdd.substr(6, 2) model.setValue(pageInfo.recItemRef + "[degnitemlevlcd=0000515]/reccnts", opdd); parent.window.javascript.fSetFormRec("formrecdd" , opdd); parent.ipt_formrecdd.refresh(); //¼ö¼úÀüÁø´Ü var nodeList = model.instances(0).selectNodes("/root/main/infstrec/recitem[fstlevlitemcd='0007983001' and formcd = '0000000899']"); if (nodeList.length > 0) { setSrchData("/root/main/infstrec/recitem[fstlevlitemcd='0007983001' and formcd = '0000000899']", ivw_0007983001); ivw_0007983001.window.javascript.fAddrow(); } //¼ö¼úÈÄÁø´Ü var nodeList = model.instances(0).selectNodes("/root/main/infstrec/recitem[fstlevlitemcd='0000521001' and formcd = '0000000899']"); if (nodeList.length > 0) { setSrchData("/root/main/infstrec/recitem[fstlevlitemcd='0000521001' and formcd = '0000000899']", ivw_0000521001); ivw_0000521001.window.javascript.fAddrow(); } //¼ö¼ú¸í var nodeList = model.instances(0).selectNodes("/root/main/infstrec/recitem[fstlevlitemcd='0000509001' and formcd = '0000000900']"); if (nodeList.length > 0) { setSrchData("/root/main/infstrec/recitem[fstlevlitemcd='0000509001' and formcd = '0000000900']", ivw_0000509001); ivw_0000509001.window.javascript.fAddrow(); } //ÁýµµÀÇ var mOpDrList = model.instances(0).selectNodes("/root/main/infstrec/recitem[fstlevlitemcd='0000980001']"); var mOpdegnitemlevlcd = ""; var mOprectermcd = ""; var mOprectermnm = ""; var mOpreccnts = ""; var mOpdegnitemnm = ""; var mOpdegnitemkind = ""; var mOprecrslt = ""; for(var i = 0; i < mOpDrList.length; i++) { mOpdegnitemlevlcd = mOpDrList.item(i).selectSingleNode("degnitemlevlcd").text; mOprectermcd = mOpDrList.item(i).selectSingleNode("rectermcd").text; mOprectermnm = mOpDrList.item(i).selectSingleNode("rectermnm").text; mOpreccnts = mOpDrList.item(i).selectSingleNode("reccnts").text; mOpdegnitemnm = mOpDrList.item(i).selectSingleNode("degnitemnm").text; mOpdegnitemkind = mOpDrList.item(i).selectSingleNode("degnitemkind").text; if (mOprectermnm != "" && mOprecrslt == "") { mOprecrslt += mOprectermnm; } else if(mOprectermnm != "") { mOprecrslt += ", " + mOprectermnm; } else if(mOpreccnts != "") { mOprecrslt += ", " + mOpreccnts; } } //ÁýµµÀÇ model.setValue(pageInfo.recItemRef + "[degnitemlevlcd=0000980]/reccnts", mOprecrslt); //º¸Á¶ÀÇ var sOpDrList = model.instances(0).selectNodes("/root/main/infstrec/recitem[fstlevlitemcd='0000341001']"); var sOpdegnitemlevlcd = ""; var sOprectermcd = ""; var sOprectermnm = ""; var sOpreccnts = ""; var sOpdegnitemnm = ""; var sOpdegnitemkind = ""; var sOprecrslt = ""; for(var i = 0; i < sOpDrList.length; i++) { sOpdegnitemlevlcd = sOpDrList.item(i).selectSingleNode("degnitemlevlcd").text; sOprectermcd = sOpDrList.item(i).selectSingleNode("rectermcd").text; sOprectermnm = sOpDrList.item(i).selectSingleNode("rectermnm").text; sOpreccnts = sOpDrList.item(i).selectSingleNode("reccnts").text; sOpdegnitemnm = sOpDrList.item(i).selectSingleNode("degnitemnm").text; sOpdegnitemkind = sOpDrList.item(i).selectSingleNode("degnitemkind").text; if (sOprectermnm != "" && sOprecrslt == "") { sOprecrslt += sOprectermnm; } else if(sOprectermnm != "") { sOprecrslt += ", " + sOprectermnm; } else if(sOpreccnts != "") { sOprecrslt += ", " + sOpreccnts; } } //º¸Á¶ÀÇ model.setValue(pageInfo.recItemRef + "[degnitemlevlcd=0000341]/reccnts", sOprecrslt); //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //¼ö¼ú¼Ò°ß var OpFindNodeList = model.instances(0).selectNodes("/root/main/infstrec/recitem[fstlevlitemcd='0000512001']"); var opFinddegnitemlevlcd = ""; var opFindrectermcd = ""; var opFindrectermnm = ""; var opFindreccnts = ""; var opFinddegnitemnm = ""; var opFinddegnitemkind = ""; var opFindrecrslt = ""; var opFinddegnitemlevlno = ""; for(var i = 0; i < OpFindNodeList.length; i++) { opFinddegnitemlevlcd = OpFindNodeList.item(i).selectSingleNode("degnitemlevlcd").text; opFindrectermcd = OpFindNodeList.item(i).selectSingleNode("rectermcd").text; opFindrectermnm = OpFindNodeList.item(i).selectSingleNode("rectermnm").text; opFindreccnts = OpFindNodeList.item(i).selectSingleNode("reccnts").text; opFinddegnitemnm = OpFindNodeList.item(i).selectSingleNode("degnitemnm").text; opFinddegnitemkind = OpFindNodeList.item(i).selectSingleNode("degnitemkind").text; if(opFinddegnitemkind == "IMG" || opFinddegnitemkind == "FDG") continue; opFinddegnitemlevlcd = opFinddegnitemlevlcd.split("."); //2010.06.25 ±è´ÞÇö - ¼ö¼ú±â·ÏÀÇ OP Finding, OP Procedure°¡ µðÀÚÀÎµÈ ºÎºÐ¼­½ÄÀÏ ¶§ Brief OP Note ¿¬µ¿½Ã µ¥ÀÌÅÍ ¿À·ù¼öÁ¤ //degnitemlevlcd°¡ 2À϶§¸¸ degnitemnmÀÌ ¼³Á¤µÇ¾î ·¹º§ÀÌ ³Ñ¾î°¡¸é degnitemnmÀÌ Á¶È¸µÇÁö ¾Ê¾Æ º¯°æÇÔ. opFinddegnitemlevlno = OpFindNodeList.item(i).selectSingleNode("degnitemlevlno").text; if(opFinddegnitemlevlno > 1){ var blk = ""; for(var j = 0; j < opFinddegnitemlevlcd.length; j++){ blk += " "; } if(opFindrectermnm == "" && opFindreccnts == ""){ opFindrecrslt += blk + opFinddegnitemnm + "\n"; } if (opFindrectermnm != "" && opFindreccnts != "") { opFindrecrslt += blk + opFinddegnitemnm + " : " + opFindrectermnm + " ¡Ø " + opFindreccnts + "\n"; } else if (opFindrectermnm != "") { opFindrecrslt += blk + opFinddegnitemnm + " : " + opFindrectermnm + "\n"; } else if (opFindreccnts != "") { if (opFinddegnitemnm != "") { opFindrecrslt += blk + opFinddegnitemnm + " " + opFindreccnts + "\n"; } else { opFindrecrslt += blk + opFindreccnts + "\n"; } } }else{ opFindrecrslt = opFindreccnts + "\n"; } /* if (opFinddegnitemlevlcd.length > 1) { if (opFinddegnitemlevlcd.length == 2) { opFindrecrslt += opFinddegnitemnm + "\n"; } if (opFindrectermnm != "" && opFindreccnts != "") { opFindrecrslt += opFinddegnitemnm + " : " + opFindrectermnm + " ¡Ø " + opFindreccnts + "\n"; } else if (opFindrectermnm != "") { opFindrecrslt += opFinddegnitemnm + " : " + opFindrectermnm + "\n"; } else if (opFindreccnts != "") { if (opFinddegnitemnm != "") { opFindrecrslt += opFinddegnitemnm + " " + opFindreccnts + "\n"; } else { opFindrecrslt += opFindreccnts + "\n"; } } } else { opFindrecrslt = opFindreccnts + "\n"; } */ } //¼ö¼ú¼Ò°ß model.setValue(pageInfo.recItemRef + "[degnitemlevlcd=0000512]/reccnts", opFindrecrslt); //¼ö¼ú°úÁ¤ var OpProcNodeList = model.instances(0).selectNodes("/root/main/infstrec/recitem[fstlevlitemcd='0000507001']"); var opProcdegnitemlevlcd = ""; var opProcrectermcd = ""; var opProcrectermnm = ""; var opProcreccnts = ""; var opProcdegnitemnm = ""; var opProcdegnitemkind = ""; var opProcrecrslt = ""; var opProcdegnitemlevlno = ""; for(var i = 0; i < OpProcNodeList.length; i++) { opProcdegnitemlevlcd = OpProcNodeList.item(i).selectSingleNode("degnitemlevlcd").text; opProcrectermcd = OpProcNodeList.item(i).selectSingleNode("rectermcd").text; opProcrectermnm = OpProcNodeList.item(i).selectSingleNode("rectermnm").text; opProcreccnts = OpProcNodeList.item(i).selectSingleNode("reccnts").text; opProcdegnitemnm = OpProcNodeList.item(i).selectSingleNode("degnitemnm").text; opProcdegnitemkind = OpProcNodeList.item(i).selectSingleNode("degnitemkind").text; if(opProcdegnitemkind == "IMG" || opProcdegnitemkind == "FDG") continue; opProcdegnitemlevlcd = opProcdegnitemlevlcd.split("."); //2010.06.25 ±è´ÞÇö - ¼ö¼ú±â·ÏÀÇ OP Finding, OP Procedure°¡ µðÀÚÀÎµÈ ºÎºÐ¼­½ÄÀÏ ¶§ Brief OP Note ¿¬µ¿½Ã µ¥ÀÌÅÍ ¿À·ù¼öÁ¤ //degnitemlevlcd°¡ 2À϶§¸¸ degnitemnmÀÌ ¼³Á¤µÇ¾î ·¹º§ÀÌ ³Ñ¾î°¡¸é degnitemnmÀÌ Á¶È¸µÇÁö ¾Ê¾Æ º¯°æÇÔ. opProcdegnitemlevlno = OpProcNodeList.item(i).selectSingleNode("degnitemlevlno").text; if(opProcdegnitemlevlno > 1){ var blk = ""; for(var j = 0; j < opProcdegnitemlevlcd.length; j++){ blk += " "; } if(opProcrectermnm == "" && opProcreccnts == ""){ opProcrecrslt += blk + opProcdegnitemnm + "\n"; } if (opProcrectermnm != "" && opProcreccnts != "") { opProcrecrslt += blk + opProcdegnitemnm + " : " + opProcrectermnm + " ¡Ø " + opProcreccnts + "\n"; } else if (opProcrectermnm != "") { opProcrecrslt += blk + opProcdegnitemnm + " : " + opProcrectermnm + "\n"; } else if (opProcreccnts != "") { if (opProcdegnitemnm != "") { opProcrecrslt += blk + opProcdegnitemnm + " " + opProcreccnts + "\n"; } else { opProcrecrslt += blk + opProcreccnts + "\n"; } } }else{ opProcrecrslt = opProcreccnts + "\n"; } /* if (opProcdegnitemlevlcd.length > 1) { if (opProcdegnitemlevlcd.length == 2) { opProcrecrslt += opProcdegnitemnm + "\n"; } if (opProcrectermnm != "" && opProcreccnts != "") { opProcrecrslt += opProcdegnitemnm + " : " + opProcrectermnm + " ¡Ø " + opProcreccnts + "\n"; } else if (opProcrectermnm != "") { opProcrecrslt += opProcdegnitemnm + " : " + opProcrectermnm + "\n"; } else if (opProcreccnts != "") { if (opProcdegnitemnm != "") { opProcrecrslt += opProcdegnitemnm + " " + opProcreccnts + "\n"; } else { opProcrecrslt += opProcreccnts + "\n"; } } } else { opProcrecrslt = opProcreccnts + "\n"; } */ } //¼ö¼ú°úÁ¤ model.setValue(pageInfo.recItemRef + "[degnitemlevlcd=0000507]/reccnts", opProcrecrslt); model.refresh(); } /** * @group : * @ver : 2008.11.28 * @by : jonghun * @--------------------------------------------------- * @type : function * @access : private * @desc : µ¿ÀÏ ¼­½ÄÀÌ ¶°ÀÖÀ» °æ¿ì ³»ºÎ ÀνºÅϽº ·Îµù ÈÄ µðÆúÆ® Á¶È¸³»¿ë Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fGetDefData() { fSetSizeFormOpr(); operation = getGlobalVariable("operation").split("¢Ì")[1]; if(operation != null && operation != ""){ oprsrvno = operation.split("¢Ë")[0]; perfdeptcd = operation.split("¢Ë")[10]; } if (parent.window.javascript.fGetFormRec("status") == "C") { /* fSrchOprPerfDrlist(oprsrvno, cOdt1); //ȯÀÚÁ¤º¸·Î ¼ö¼ú¸í, ÁýµµÀÇ Á¶È¸ parent.window.javascript.fSetFormRec("extnflag", "opr"); parent.window.javascript.fSetFormRec("oprsrvno", oprsrvno); //¼­½Ä ·Îµù ÈÄ Æ÷Ä¿½º ó¸®(2008-11-18 ¹ÚÁ¾ÈÆ) SetDefFocusIVW(gItemCdsTextArea); //¼ö¼ú¿¹¾à¹øÈ£ üũ if(oprsrvno == "") { messageBox("¼ö¼ú¿¹¾àÀÌ µÇÁö ¾ÊÀº", "I005"); grup_base.disabled = true; fBtnDisEnable(true); return; } else { fBtnDisEnable(false); } //Áýµµ°ú üũ if (perfdeptcd != getUserInfo("dutplcecd")) { messageBox("ÀÛ¼º ±ÇÇÑÀÌ", "I004"); grup_base.disabled = true; fBtnDisEnable(true); return; } else { fBtnDisEnable(false); } */ } dispOnLoadComplete(UNIT_FORM); } /** * @group : * @ver : 2009.01.05 * @by : jonghun * @--------------------------------------------------- * @type : function * @access : private * @desc : ¼ö¼ú ÀÌ·Â ¸®½ºÆ® ¼±Åýà * @param : * @return : * @--------------------------------------------------- */ function fChngOpList() { if (model.getValue("/root/send/reqinfstrec/oprsrvno") != "" ) { ipt_surg.disabled = true; if (gMaxSectionID != "") { var MaxObj = document.controls("lbl_" + gMaxSectionID); MaxObj.dispatch("onclick"); } ClearComnFormData(gItemCds); fInitialize(); parent.window.javascript.fSetFormRec("oprsrvno", model.getValue("/root/send/reqinfstrec/oprsrvno")); model.makeValue("/root/send/reqinfstrec/pid", parent.window.javascript.fGetPamInfo("pid")); model.makeValue("/root/send/reqinfstrec/orddd", parent.window.javascript.fGetPamInfo("indd")); model.makeValue("/root/send/reqinfstrec/cretno", parent.window.javascript.fGetPamInfo("cretno")); if (submit("TRMMR01003")) //¼ö¼ú ¿¹¾à¹øÈ£¿¡ µû¸¥ ¼ö¼ú±â·ÏÁö ±â·Ï³»¿ë Á¶È¸ { var nodeList = model.instances(0).selectNodes("/root/main/infstrec/recitem"); //ÇØ´ç ¼ö¼ú°Ç¿¡ ´ëÇÑ ¼ö¼ú±â·Ï À¯¹«¿¡ µû¸¥ ºÐ±â if (nodeList.length > 0) { fSetOprRecIf(); } else { fDefInfo(); //¼ö¼ú±â·ÏÀÌ ¾øÀ»°æ¿ì µðÆúÆ® Á¤º¸ Á¶È¸ } } } else if(model.getValue("/root/send/reqinfstrec/oprsrvno") == ""){ //2010-01-06 ¿ÀÀü 9:39:29 °­ÁöÈÆ ¼öÁ¤ if (gMaxSectionID != "") { var MaxObj = document.controls("lbl_" + gMaxSectionID); MaxObj.dispatch("onclick"); } ClearComnFormData(gItemCds); fInitialize(); ipt_surg.value = ""; ipt_surg.disabled = false; fDefInfo(); } } /** * @group : * @ver : 2009.01.05 * @by : jonghun * @--------------------------------------------------- * @type : function * @access : private * @desc : ¼ö¼ú¿¡ ´ëÇÑ ±âº» Á¤º¸ Á¶È¸ * @param : * @return : * @--------------------------------------------------- */ function fDefInfo() { var tmpoprsrvno = model.getValue("/root/send/reqinfstrec/oprsrvno"); if(tmpoprsrvno != "") { //¼ö¼úÀü Áø´Ü Á¶È¸ ½ÃÀÛ model.removeNodeset("/root/main/diaginfo/diagcdlist"); model.makeValue("/root/send/oprsrvno", tmpoprsrvno); submit("TRMRF04001", false); copyNodeset("/root/main/diaginfo/diagcdlist", "/root/main/diaginfo/diagcdlist", "replace", ivw_0007983001.model, model); copyNodeset("/root/main/diaginfo/diagcdlist", "/root/main/diaginfo/diagcdlist", "replace", ivw_0000521001.model, model); model.refresh(); ivw_0007983001.window.javascript.fSetDiagNmInstance(); ivw_0000521001.window.javascript.fSetDiagNmInstance(); //¼ö¼úÀü Áø´Ü Á¶È¸ ³¡ //¼ö¼ú¸í, ÁýµµÀÇ, ¼ö¼ú½Ã°£ Á¶È¸ ½ÃÀÛ model.removeNodeset("/root/tmpop/selectoplist"); model.removeNodeset("/root/main/paminfo/list"); var node = getGlobalVariable("paminfo"); if(node != "" && node != null) { setCSVToNode("/root/main/paminfo", node); model.makeValue("/root/send/pid", model.getValue("/root/main/paminfo/list/pid")); model.makeValue("/root/send/cretno", model.getValue("/root/main/paminfo/list/cretno")); if (model.getValue("/root/main/paminfo/list/ioflag") == "O") { model.makeValue("/root/send/orddd", model.getValue("/root/main/paminfo/list/orddd")); } else { model.makeValue("/root/send/orddd", model.getValue("/root/main/paminfo/list/indd")); } model.makeValue("/root/send/oprsrvno", oprsrvno); model.makeValue("/root/send/srchmode", "dr"); if (submit("TRMRF04301")) { copyNodeset("/root/tmpop/selectoplist", "/root/tmpop/selectoplist", "replace", ivw_0000509001.model, model); ivw_0000509001.window.javascript.fAfterSrch(); } if (submit("TRMRF04302")) { var perfdrnm = model.getValue("/root/tmp/perfdr/perfdrnm"); var opfromdt = model.getValue("/root/tmp/perfdr/opfromdt"); var opstdd = opfromdt.substring(0, 8); var opsttm = opfromdt.substring(8, 12); if (opstdd == "" || opstdd.length < 8) { opstdd = model.getValue("/root/init/oprlist/oplist[oprsrvno='" + model.getValue("/root/send/reqinfstrec/oprsrvno") + "']/opcnfmdd"); } if (opsttm == "" || opsttm.length < 4) { opsttm = getCurrentTime().substr(0, 4); } var transopdd = opstdd.substr(0, 4) + "-" + opstdd.substr(4, 2) + "-" + opstdd.substr(6, 2) parent.window.javascript.fSetFormRec("formrecdd" , opstdd); parent.window.javascript.fSetFormRec("formrechm" , opsttm); parent.ipt_formrecdd.refresh(); parent.ipt_formrectm.refresh(); //model.setValue("/root/main/recinfo/recitem[degnitemlevlcd='" + iSurg + "']/reccnts", transopdd); //¼ö¼úÀÏ model.setValue("/root/main/recinfo/recitem[degnitemlevlcd='" + iSurg + "']/reccnts", opstdd); //¼ö¼úÀÏ model.setValue(pageInfo.recItemRef + "[degnitemlevlcd=0000980]/reccnts", perfdrnm); //ÁýµµÀÇ model.refresh(); } model.removeNodeset("/root/main/paminfo"); } //¼ö¼ú¸í, ÁýµµÀÇ, ¼ö¼ú½Ã°£ Á¶È¸ ³¡ } }