123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232 |
- /**
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- - 사망환자리스트 ( 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();
- }
|