SPMMO08015.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
  3. PreventableTraumaDeathPanel ( SPMMO08015_PreventableTraumaDeathPanel.xrw - JScript )
  4. - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
  5. */
  6. function fInitialize_SPMMO08015() {
  7. model.makeValue("/root/send/pid", opener.javascript.getParameter("idno"));
  8. model.makeValue("/root/send/indd", opener.javascript.getParameter("indd"));
  9. model.makeValue("/root/send/intm", opener.javascript.getParameter("intm"));
  10. model.makeValue("/root/send/cretno", opener.javascript.getParameter("cretno"));
  11. //model.makeValue("/root/send/wrtedd", getCurrentDate());
  12. //model.makeValue("/root/send/wrtetm", getCurrentTime());
  13. fSearch();
  14. //submit("TRMMO08018");
  15. if (model.getValue("/root/main/tdprlist/tdprlist/memo") == "" || model.getValue("/root/main/tdprlist/tdprlist/memo") == "-") {
  16. btn_memo.text = "메모□";
  17. } else {
  18. btn_memo.text = "메모■";
  19. }
  20. model.makeNode("/root/main/tdprlist/attach/file");
  21. model.refresh();
  22. }
  23. function fSearch() {
  24. submit("TRMMO08018");
  25. }
  26. function fSaveData(flag) {
  27. var wrtedd = model.getValue("/root/main/tdprlist/tdprlist/wrtedd");
  28. var wrtetm = model.getValue("/root/main/tdprlist/tdprlist/wrtetm");
  29. if(wrtedd == "" || wrtedd == null){
  30. model.setValue("/root/main/tdprlist/tdprlist/wrtedd", getCurrentDate());
  31. }
  32. if(wrtetm == "" || wrtetm == null){
  33. model.setValue("/root/main/tdprlist/tdprlist/wrtetm", getCurrentTime());
  34. }
  35. if (flag == "temp") {
  36. model.setValue("/root/main/tdprlist/tdprlist/status", "T");
  37. } else {
  38. model.setValue("/root/main/tdprlist/tdprlist/status", "S");
  39. }
  40. //copyNodeType("/root/main/tdprlist/tdprlist/condition", "/root/main/send", "replace");
  41. //var tdprlist = model.instances(0).selectNodes( "/root/main/tdprinfo/tdprlist" );
  42. //model.makeValue("/root/main/send/savedata/tdprlist", getNodeListCSV(tdprlist));
  43. model.makeNode("/root/save/cond/condition");
  44. copyNodeType("/root/save/cond/condition", "/root/main/tdprlist", "replace");
  45. submit("TXMMO08018");
  46. model.removenode("/root/main/send/attach/file");
  47. model.makeNode("/root/main/send/attach/file");
  48. fSearch(); // 파일 경로 조회를 위한
  49. }
  50. //EMR.EMIHPTDP
  51. //emr.emihptdp