/** - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì - »ç¸ÁȯÀÚ¸®½ºÆ® ( SMMRD01300_»ç¸ÁȯÀÚ¸®½ºÆ®.xrw - JScript ) - Version : 1) : Ver.1.00.01 - ¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì¢Ì **/ /** * @ver : 2007-12-01 * @desc : È­¸éÃʱâÈ­ * @ * @by : ÀÌâ·Ï * @param : * @return : * @--------------------------------------------------- */ function finitialize() { mmbfGetDeptCodeComboList("/root/send/reqdata", "/root/init/orddept","D"); var vNowDD = getCurrentDate(); model.setValue("/root/main/condition/dethfromdd", vNowDD.substr(0,6)+ "01"); model.setValue("/root/main/condition/dethtodd" , vNowDD); model.removeNodeset("/root/main/deathptnlist"); model.refresh(); model.makeValue("/root/send/reqdata/deptcd", model.getValue("/root/main/condition/atdoctid")); submit("TRMRD00598"); addComboItem("cmb_dethflagcd", "Àüü", "00", "above"); cmb_dethflagcd.Value="00"; addComboItem("cmb_dethresncd", "Àüü", "00", "above"); cmb_dethresncd.Value="00"; addComboItem("cmb_dethplcecd", "Àüü", "00", "above"); cmb_dethplcecd.Value="00"; addComboItem("cmb_orddept" , "Àüü", "00", "above"); cmb_orddept.Value="00"; addComboItem("cbo_doc" , "Àüü", "00", "above"); cbo_doc.Value="00"; } /** * @ver : 2007-12-01 * @desc : »ç¸ÁºÐ¼®ÇÑ È¯ÀÚ¸¦ Á¶È¸ * @ * @by : ÀÌâ·Ï * @param : * @return : * @--------------------------------------------------- */ function fdethinfoseach() { if(submit("TRMRD01300")){ } } function fSendDeathptnlist() { var datagrid1_PATH= "/root/main/deathptnlist"; var pid=""; var pname =""; var addr=""; var jumin=""; var sex=""; var age=""; var phone =""; var insukind=""; var dept=""; var doct=""; var indt =""; var dethkind =""; var dethflag =""; var dethresncd =""; var dethplce=""; var dethdd =""; var basedethcascd =""; var mdldethcascd =""; var direcdethcascd =""; var deinfo=""; var iToRow = datagrid1.rows; for(var iRow = 1 ; iRow < iToRow ; iRow++){ if(datagrid1.isSelected(iRow)){ pid = model.getValue(datagrid1_PATH + "[" + iRow + "]/pid"); pname = model.getValue(datagrid1_PATH + "[" + iRow + "]/pname"); addr = model.getValue(datagrid1_PATH + "[" + iRow + "]/addr"); jumin = model.getValue(datagrid1_PATH + "[" + iRow + "]/jumin"); sex = model.getValue(datagrid1_PATH + "[" + iRow + "]/sex"); age = model.getValue(datagrid1_PATH + "[" + iRow + "]/age"); phone= model.getValue(datagrid1_PATH + "[" + iRow + "]/phone"); insukind= model.getValue(datagrid1_PATH + "[" + iRow + "]/insukind"); dept= model.getValue(datagrid1_PATH + "[" + iRow + "]/dept"); doct= model.getValue(datagrid1_PATH + "[" + iRow + "]/doct"); indt= model.getValue(datagrid1_PATH + "[" + iRow + "]/indt"); dethkind = model.getValue(datagrid1_PATH + "[" + iRow + "]/dethkind"); dethflag= model.getValue(datagrid1_PATH + "[" + iRow + "]/dethflag"); dethresncd= model.getValue(datagrid1_PATH + "[" + iRow + "]/dethresncd"); dethplce= model.getValue(datagrid1_PATH + "[" + iRow + "]/dethplce"); dethdd= model.getValue(datagrid1_PATH + "[" + iRow + "]/dethdd"); basedethcascd= model.getValue(datagrid1_PATH + "[" + iRow + "]/basedethcascd"); mdldethcascd= model.getValue(datagrid1_PATH + "[" + iRow + "]/mdldethcascd"); direcdethcascd = model.getValue(datagrid1_PATH + "[" + iRow + "]/direcdethcascd"); } } setParameter("pid",pid); modal("SMMRD00500"); model.refresh(); } /** * @ver : 2007-12-01 * @desc : ¼±Çà»çÀÎ(Áø´ÜÆË¾÷) * @ * @by : ÀÌâ·Ï * @param : * @return : * @--------------------------------------------------- */ function fFirstwhy() { model.removeNodeset("/root/temp"); setParameter("SPMMO03200_DIAGONESELECT", "Y"); var search = model.getValue("/root/main/condition/basedethcascd"); setParameter("SPMMO03200_SEARCHDATA", search); modal("SPMMO03200"); var dispdiagcd = model.getValue("/root/temp/selectdiaglist[1]/dispdiagcd"); var diagcd = model.getValue("/root/temp/selectdiaglist[1]/diagcd"); if (diagcd.length > 0) { model.setValue("/root/main/condition/basedethcascd", dispdiagcd); model.setValue("/root/main/condition/basedethdiagcd", diagcd); } model.refresh(); } /** * @ver : 2007-12-01 * @desc : Áß°£»çÀÎ(Áø´ÜÆË¾÷) * @ * @by : ÀÌâ·Ï * @param : * @return : * @--------------------------------------------------- */ function fSecondwhy() { model.removeNodeset("/root/temp"); setParameter("SPMMO03200_DIAGONESELECT", "Y"); var search = model.getValue("/root/main/condition/mdldethcascd"); setParameter("SPMMO03200_SEARCHDATA", search); modal("SPMMO03200"); var dispdiagcd = model.getValue("/root/temp/selectdiaglist[1]/dispdiagcd"); var diagcd = model.getValue("/root/temp/selectdiaglist[1]/diagcd"); if (diagcd.length > 0) { model.setValue("/root/main/condition/mdldethcascd", dispdiagcd); model.setValue("/root/main/condition/mdldethdiagcd", diagcd); } model.refresh(); } /** * @ver : 2007-12-01 * @desc : Á÷Á¢»çÀÎ(Áø´ÜÆË¾÷) * @ * @by : ÀÌâ·Ï * @param : * @return : * @--------------------------------------------------- */ function fThirdwhy() { model.removeNodeset("/root/temp"); setParameter("SPMMO03200_DIAGONESELECT", "Y"); var search = model.getValue("/root/main/condition/direcdethcascd"); setParameter("SPMMO03200_SEARCHDATA", search); modal("SPMMO03200"); var dispdiagcd = model.getValue("/root/temp/selectdiaglist[1]/dispdiagcd"); var diagcd = model.getValue("/root/temp/selectdiaglist[1]/diagcd"); if (diagcd.length > 0) { model.setValue("/root/main/condition/direcdethcascd" , dispdiagcd); model.setValue("/root/main/condition/direcdethdiagcd" , diagcd); } model.refresh(); } /** * @ver : 2007-12-01 * @desc : »ç¸ÁÁ¾·ù¿¡¼­ Àüü üũ½Ã ¸ðµÎ ¼±Åà * @ * @by : ÀÌâ·Ï * @param : * @return : * @--------------------------------------------------- */ function fSlectdethkindcd() { var check = model.getValue("/root/hidden/tmp"); if(check=="00") model.setValue("/root/main/condition/dethkindcd", " 01 02 03 04 09"); else model.setValue("/root/main/condition/dethkindcd", ""); model.refresh(); } /** * @ver : 2007-12-01 * @desc : Áø·á°ú ¼±Åýà ÁÖÄ¡ÀÇ ¸í´Ü °¡Á®¿À±â * @ * @by : ÀÌâ·Ï * @param : * @return : * @--------------------------------------------------- */ function fGetAdotid() { model.removeNodeset("/root/init/userlist"); model.makeNode("/root/init/userlist/usercombo"); mmbfGetUserComboList("/root/send/reqdata", "/root/init/userlist", cmb_orddept.value, "0330"); //addComboInstance("/root/init/userlist", "userid^usernm", "-^Àüü", "usercombo"); //ÀÇ»çÄÞº¸ ÀüüÇ׸ñ Ãß°¡ //model.setValue("/root/main/dethpat/atdocnm", "-"); cbo_doc.select(0); model.refresh(); }