12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- /**
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- 의료정보 - 입퇴원요약지 ( SMMMR08100_입퇴원요약지.xrw - JScript )
- - Version :
- 1) : Ver.1.00.00
- - Author : 이환석
-
- - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
- **/
- function fInitialize(){
-
- var rgstfromdd = ((getCurrentDate()).toDate()).getAddDate(-7, "D");
- model.setValue("/root/main/search/fromdd", rgstfromdd.getDateFormat());
- model.setValue("/root/main/search/todd", getCurrentDate());
-
- fGetDeptList();
-
- model.refresh();
- }
- function fPatPopUp()
- {
-
- if(ipt_pid.currentText.length > 0) {
- model.setValue("/root/temp/autoflag", "Y");
- model.setValue("root/temp/srchcond", 1);
- }
-
- model.setValue("/root/temp/pid", model.getValue("/root/main/search/pid"));
- modal("SPPMC02500", 1,10, 10, "SPPMC02500", "/root/temp", "/root/send");
- model.setValue("/root/main/search/pid" , model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.setValue("/root/main/search/hngnm" , model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.refresh();
- }
- function fGetDeptList() {
-
- var instcd = getUserInfo("dutplceinstcd");
- var standard_yn = "rcptuseyn";
- var ord_deptflag = 'D';
- var rslt_ref = "/root/init/dept";
- var sort_method = "depthngnm";
- sort_field = "depthngnm"
- var base_dd = model.getValue("/root/main/search/todd");
- zsdfGetInOutOrdDeptList(instcd, rslt_ref, sort_field, sort_method, base_dd);
- // 진료과
- addComboItem("cmb_orddeptcd", "", "", "above");
-
- }
-
- function fGetiohsHist() {
-
- model.removeNodeset("root/main/iohslist");
- model.removeNodeset("/root/send/reqdata");
-
- if(model.getValue("/root/main/search/pid") != "") {
-
- model.makeValue("/root/send/reqdata/fromdd" , "");
- model.makeValue("/root/send/reqdata/todd" , "");
- model.makeValue("/root/send/reqdata/pid" , model.getValue("/root/main/search/pid"));
- model.makeValue("/root/send/reqdata/offset", "0");
- model.makeValue("/root/send/reqdata/pagesize", model.getValue("/root/main/search/pagesize"));
- } else {
-
- model.makeValue("/root/send/reqdata/fromdd" , model.getValue("/root/main/search/fromdd"));
- model.makeValue("/root/send/reqdata/todd" , model.getValue("/root/main/search/todd"));
- model.makeValue("/root/send/reqdata/pid" , model.getValue("/root/main/search/pid"));
- model.makeValue("/root/send/reqdata/orddeptcd", model.getValue("/root/main/search/orddeptcd"));
- model.makeValue("/root/send/reqdata/offset", "0");
- model.makeValue("/root/send/reqdata/pagesize", model.getValue("/root/main/search/pagesize"));
- }
-
- submit("TRMMR08101");
-
- model.refresh();
-
- }
|