/* º¹¸·Åõ¼® À¯ÁöȯÀÚ µî·Ï(SMMND02900.xrw - JScript ) - Version : 1) : Ver.1.00.01 */ /** * @group : * @ver : 2007.05.16 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : µî·Ï¹øÈ£·Î ȯÀÚ¸¦ °Ë»öÇÑ´Ù.(¿¹¾à»ý¼º½Ã) * @param : * @return : ȯÀÚ¸í, ȯÀÚÁֹεî·Ï¹øÈ£, ÀÔ¿ø¿Ü·¡±¸ºÐ * @--------------------------------------------------- */ function fSrchPat() { model.removenode("/root/send"); model.makeNode("/root/send"); model.makeValue("/root/send/reqdata/pid",model.getValue("/root/main/cretlist/cretinfo/pid")); model.makeValue("/root/send/reqdata/dialflag", "P"); model.removeNodeset("/root/main/cretlist/getcreinfo"); submit("TRMND02901"); //ȯÀڱ⺻Á¤º¸ ¹× ÀÔ¿ø³»¿ªÅ×À̺íÀ» Á¶È¸ÇÑ´Ù. if(model.getValue("/root/main/cretlist/getcreinfo/hngnm") == ""){ messageBox("ȯÀÚÁ¤º¸¸¦ ãÀ» ¼ö", "I004", ""); fInit(); // ÃʱâÈ­ return; }else { if(model.getValue("/root/main/cretlist/getcreinfo/matndialflag") == "H"){ messageBox("Ç÷¾×Åõ¼® À¯ÁöȯÀÚ·Î µî·ÏµÇ¾î Àִ ȯÀÚ", "E008", ""); fInit(); // ÃʱâÈ­ return; } /* if(model.getValue("/root/main/cretlist/getcreinfo/prcpfalg") != "Y") { // Áö½Ãó¹æÀÌ ¾ø´Â °æ¿ì messageBox("Áö½Ãó¹æÀÌ Á¸Àç ÇÏÁö ¾Ê½À´Ï´Ù.", "E", "º¹¸·Åõ¼® À¯ÁöȯÀÚ µî·ÏÀ» ÇÒ ¼ö ¾ø½À´Ï´Ù."); fInit(); // ÃʱâÈ­ return; } */ } } /** * @group : * @ver : 2007.05.16 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : º¹¸·Åõ¼® ȯÀÚ À¯ÁöȯÀÚ¿¡ ÀúÀå * @param : * @return : * @--------------------------------------------------- */ function fSaveMatn() { if(model.getValue("/root/main/cretlist/getcreinfo/matndialflag") == "H"){ messageBox("Ç÷¾×Åõ¼® À¯ÁöȯÀÚ·Î µî·ÏµÇ¾î Àִ ȯÀÚ", "E008", ""); fInit(); } else { if(model.getValue("/root/main/cretlist/cretinfo/pid") == "") { messageBox("µî·Ï¹øÈ£´Â", "I003", ""); return; } if(model.getValue("/root/main/cretlist/getcreinfo/hngnm")=="") { messageBox("ȯÀڱ⺻ Á¤º¸ Á¶È¸ ¼öÇàÀ» ÇÏÁö", "E007", "(µî·Ï¹øÈ£ ÀÔ·Â ÈÄ ¿£ÅÍ۸¦ ´©¸£½Ê½Ã¿À.)"); return; } if(model.getValue("/root/main/cretlist/getcreinfo/matnflag") != "1"){ //À¯Áö±¸ºÐ(1:À¯Áö) model.removenode("/root/send"); model.makeNode("/root/send"); model.makeValue("/root/send/savedata/pid",model.getValue("/root/main/cretlist/cretinfo/pid")); model.makeValue("/root/send/savedata/status", "i"); //»óŰª ÁöÁ¤(insert) model.makeValue("/root/send/savedata/dialflag", "P"); model.makeValue("/root/send/savedata/rsrvcnts", ""); if(submit("TXMND02901") == true){ //º¹¸·Åõ¼® À¯ÁöȯÀÚ µî·Ï messageBox("À¯ÁöȯÀÚ°ü¸® µî·ÏÀÌ ", "I001", "°£È£Á¤º¸Á¶»çÁö¸¦ ÀÛ¼ºÇϽʽÿÀ."); model.close(); } }else if(model.getValue("/root/main/cretlist/getcreinfo/matnflag") == "1"){ messageBox("ÀÌ¹Ì À¯ÁöȯÀÚ¿¡ µî·Ï µÇ¾îÀִ ȯÀÚ", "E008", ""); fInit(); } } } /** * @group : * @ver : 2007.06.30 * @by : ±èÁø¾Æ * @--------------------------------------------------- * @type : function * @access : public * @desc : ÄÁÆ®·Ñ ÃʱâÈ­ * @param : * @return : * @--------------------------------------------------- */ function fInit(){ if(getNodesetCount("/root/main/cretlist/cretinfo")>0){ fClearChildNode("/root/main/cretlist/cretinfo"); } if(getNodesetCount("/root/main/cretlist/getcreinfo")>0){ fClearChildNode("/root/main/cretlist/getcreinfo"); } model.refresh(); } function fUseridPopup(pPath, pNodeID, pNodeNM, pNodeRrgsNo1, pNodeRrgsNo2, pDOC) { model.removeNodeset("/root/properties/parameters/SendData/SendDatavalue"); modal("SMMNE03700", 1, event.screenX-100, event.screenY-100, "SMMNE03700", "/root/main/cretlist/cretinfo/pid", "/root/init/searchitem"); var pParam = model.getValue("/root/properties/parameters/SendData/SendDatavalue"); var pParamValue = pParam.split("|"); model.setValue("/root/main/cretlist/cretinfo/pid", pParamValue[0]); ipt_pid.refresh(); }