MMR00700.js 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928
  1. var gItemCds = new Array("0000931001", "0001173001", "0000098001", "0000079001", "0000570001", "0000553001", "0001019001", "0000080001");
  2. var gItemCdsTextArea = new Array("0001173001", "0000098001", "0000079001", "0000570001", "0000553001", "0000080001");
  3. /**
  4. * @desc : 확장버튼(이미지,가계도,추가기록)을 기록여부에 따라 표시를 위한 버튼목록
  5. * @id :
  6. * @authur : 안치원
  7. * @history : 2009.09.09 신규 안치원 ACW_090909A
  8. */
  9. var gExtnBtnIds = new Array("btn_imge_0001173001", "btn_etcrec_0001173001",
  10. "btn_imge_0000098001", "btn_fmy_0000098001", "btn_etcrec_0000098001",
  11. "btn_imge_0000079001", "btn_etcrec_0000079001",
  12. "btn_imge_0000570001", "btn_etcrec_0000570001",
  13. "btn_imge_0000553001", "btn_etcrec_0000553001",
  14. "btn_etcrec_0001019001",
  15. "btn_etcrec_0000080001");
  16. /**
  17. * @desc : 초기 화면 설정
  18. * @id :
  19. * @event : xforms-ready
  20. * @return : void
  21. * @authur : 박종훈
  22. */
  23. function fFormReady_old()
  24. {
  25. InitSetMaxSizeSection(gItemCds, 0, 683);
  26. InitBtnImge(gItemCds);
  27. InitBtnComn(gItemCds);
  28. }
  29. /**
  30. * @desc : 서식 불러오기, 부분 그리드서식 사이즈 초기화
  31. * @id :
  32. * @event : xforms-ready
  33. * @return : void
  34. * @authur : 박종훈
  35. */
  36. function fLoadForm_old()
  37. {
  38. var cboObj;
  39. for (var i = 0; i < gItemCds.length; i++)
  40. {
  41. cboObj = document.controls("cbo_" + gItemCds[i]);
  42. if (cboObj != null)
  43. SetUnitFormList(cboObj, gItemCds[i])
  44. }
  45. InitLoadSection(gItemCdsTextArea);
  46. InitSetUnitForm(new Array("0000931001", "0001019001"), false);
  47. }
  48. /**
  49. * @desc : 기록데이터 조회
  50. * @id :
  51. * @event : xforms-ready
  52. * @return : void
  53. * @authur : 박종훈
  54. */
  55. function fLoadData()
  56. {
  57. InitPgmFormData();
  58. InitUnitFormData(gItemCds);
  59. }
  60. /**
  61. * @desc : 서식 데이터 Clear
  62. * @
  63. * @param :
  64. * @return :
  65. * @authur : 박종훈
  66. */
  67. function fClearComnFormData()
  68. {
  69. if (gMaxSectionID != "")
  70. {
  71. var MaxObj = document.controls("lbl_" + gMaxSectionID);
  72. MaxObj.dispatch("onclick");
  73. }
  74. ClearComnFormData(gItemCds);
  75. clearData();
  76. //포커스 처리
  77. SetDefFocusMTX(gItemCds);
  78. }
  79. /**
  80. * @desc : 기록 인스턴스 연결
  81. * @
  82. * @param :
  83. * @return :
  84. * @authur : 박종훈
  85. */
  86. function fSetRecItemValue(reciteminfo)
  87. {
  88. return SetCommMediFormValue(gItemCds, reciteminfo);
  89. }
  90. /**
  91. * @desc : 저장전 체크 로직
  92. * @id :
  93. * @event : xforms-ready
  94. * @return : void
  95. * @authur : 박종훈
  96. */
  97. function fChkPreSave()
  98. {
  99. return ivw_0000931001.window.javascript.fChkGrdPreSave();
  100. }
  101. /**
  102. * @desc : 서식 진단명 사이즈 조절
  103. * @
  104. * @param :
  105. * @return :
  106. * @---------------------------------------------------
  107. */
  108. function fSetSizeFormDiag()
  109. {
  110. ivw_0001019001.window.javascript.fInitPage(false, parseInt(ivw_0001019001.attribute("height")), parseInt(ivw_0001019001.attribute("width")));
  111. }
  112. /**
  113. * @desc : 서식 주호소 사이즈 조절
  114. * @
  115. * @param :
  116. * @return :
  117. * @---------------------------------------------------
  118. */
  119. function fSetSizeFormCC()
  120. {
  121. ivw_0000931001.window.javascript.fInitPage(false, parseInt(ivw_0000931001.attribute("height")), parseInt(ivw_0000931001.attribute("width")));
  122. }
  123. /*****************************************************************************
  124. 튜닝
  125. ******************************************************************************/
  126. var gLoadFormCnts = 0;
  127. /**
  128. * @group :
  129. * @ver : 2008.06.13
  130. * @by : snoweye
  131. * @---------------------------------------------------
  132. * @type : function
  133. * @access : private
  134. * @desc : 화면 로딩후 초기화 작업 수행
  135. * @param :
  136. * @return :
  137. * @---------------------------------------------------
  138. */
  139. function fFormReady()
  140. {
  141. mmbfGetHardCodeInfoNm("/root/send/formhrdcd", "/root/mappingcd/inten", 1009); //의도성
  142. mmbfGetHardCodeInfoNm("/root/send/formhrdcd", "/root/mappingcd/injmech", 1010); //손상기전
  143. mmbfGetHardCodeInfoNm("/root/send/formhrdcd", "/root/mappingcd/proc", 1011); //보호장구
  144. //트리아제 기록 연동데이터 조회(2009-05-21 박종훈)
  145. model.removeNodeset("/root/send/reqdata");
  146. model.makeValue("/root/send/reqdata/pid" , parent.window.javascript.fGetFormRec("pid"));
  147. model.makeValue("/root/send/reqdata/orddd", parent.window.javascript.fGetFormRec("orddd"));
  148. model.makeValue("/root/send/reqdata/cretno", parent.window.javascript.fGetFormRec("cretno"));
  149. model.makeValue("/root/send/reqdata/queryflag", "K");
  150. // submit("TRMNE04403");
  151. grup_base.attribute("border-style") = "none";
  152. setSectionSize(gItemCds, 0, 683);
  153. dispOnLoadComplete(COMN_FORM);
  154. InitBtnImge(gItemCds);
  155. InitBtnFmy(gItemCds);
  156. InitBtnDiag("0001019001");
  157. InitBtnEtcRec(gItemCds);
  158. //2010.01.21
  159. initCmbExtnList(gItemCds);
  160. }
  161. /**
  162. * @group :
  163. * @ver : 2008.06.13
  164. * @by : snoweye
  165. * @---------------------------------------------------
  166. * @type : function
  167. * @access : private
  168. * @desc : 부분서식 로딩
  169. * @param :
  170. * @return :
  171. * @---------------------------------------------------
  172. */
  173. function fLoadUnitForm()
  174. {
  175. initSection(gItemCds);
  176. }
  177. /**
  178. * @group :
  179. * @ver : 2008.06.13
  180. * @by : snoweye
  181. * @---------------------------------------------------
  182. * @type : function
  183. * @access : private
  184. * @desc : 부분서식 로딩후 후처리
  185. * @param :
  186. * @return :
  187. * @---------------------------------------------------
  188. */
  189. function fOnLoadComplete()
  190. {
  191. var curLoadFormCd = getParameter("loadformcd");
  192. var fstLevlItemCd = model.getValue(gPageInfo.forminfoRef + "/unitformmast[formcd='" + curLoadFormCd + "' and loaded != 'true']/orgsupdegnitemcd");
  193. var ivwObj = document.controls("ivw_" + fstLevlItemCd);
  194. var unitformload = model.getValue(gPageInfo.forminfoRef + "/unitformmast[formcd='" + curLoadFormCd + "' and loaded != 'true']/loaded");
  195. if(ivwObj != null && unitformload != "true")
  196. {
  197. //ivwObj.window.javascript.setFstLevlItemCd(fstLevlItemCd);
  198. setFstLevlItemCd(ivwObj, curLoadFormCd);
  199. model.setValue(gPageInfo.forminfoRef + "/unitformmast[formcd='" + curLoadFormCd + "']/loaded", "true");
  200. }
  201. //주호소 부분서식 로딩후 처리
  202. if(fstLevlItemCd == '0000931001')
  203. {
  204. fSetSizeFormCC();
  205. //주호소는 미리 셋팅
  206. // fSetCC();
  207. }
  208. //진단명 부분서식 로딩후 처리
  209. // 2009.12.16 추정진단 서식에는 그리드가 없으므로 일단 보류
  210. // if(fstLevlItemCd == '0001019001')
  211. // fSetSizeFormDiag();
  212. gLoadFormCnts++;
  213. if(gItemCds.length == gLoadFormCnts)
  214. {
  215. if (parent.window.javascript.fGetFormRec("status") == "C")
  216. {
  217. SetDefFocusMTX(gItemCds);
  218. }
  219. dispOnLoadComplete(UNIT_FORM);
  220. }
  221. }
  222. /**
  223. * @group :
  224. * @ver : 2008.11.28
  225. * @by : jonghun
  226. * @---------------------------------------------------
  227. * @type : function
  228. * @access : private
  229. * @desc : 동일 서식이 떠있을 경우 내부 인스턴스 로딩 후 디폴트 조회내용 조회
  230. * @param :
  231. * @return :
  232. * @---------------------------------------------------
  233. */
  234. function fGetDefData()
  235. {
  236. if (parent.window.javascript.fGetFormRec("status") == "C")
  237. {
  238. // //트리아제 기록 연동데이터 조회(2009-05-21 박종훈)
  239. // model.removeNodeset("/root/send/reqdata");
  240. // model.makeValue("/root/send/reqdata/pid" , parent.window.javascript.fGetFormRec("pid"));
  241. // model.makeValue("/root/send/reqdata/orddd", parent.window.javascript.fGetFormRec("orddd"));
  242. // model.makeValue("/root/send/reqdata/cretno", parent.window.javascript.fGetFormRec("cretno"));
  243. // model.makeValue("/root/send/reqdata/queryflag", "K");
  244. //
  245. // if(submit("TRMNE04403"))
  246. // {
  247. // //주호소는 미리 셋팅
  248. // fSetCC();
  249. // var iobj = document.controls("ivw_0001173001");
  250. // var iobj1 = document.controls("ivw_0000570001");
  251. // fSetErTriageRec(iobj, "0001173");
  252. // fSetErTriageRec(iobj1, "0000570");
  253. // }
  254. SetDefFocusMTX(gItemCds);
  255. }
  256. dispOnLoadComplete(UNIT_FORM);
  257. }
  258. /**
  259. * @group :
  260. * @ver : 2008.11.28
  261. * @by : jonghun
  262. * @---------------------------------------------------
  263. * @type : function
  264. * @access : private
  265. * @desc : 주호소 트리아제 연동
  266. * @param :
  267. * @return :
  268. * @---------------------------------------------------
  269. */
  270. function fSetCC()
  271. {
  272. model.removeNodeset("/root/ccrectmp/recitem");
  273. var attackdd = model.getValue("/root/interface/ertriage/ertriage/attackdd"); //발생일
  274. var attacktm = model.getValue("/root/interface/ertriage/ertriage/attacktm"); //발생시간
  275. var mainsympnm = model.getValue("/root/interface/ertriage/ertriage/mainsympnm"); //주증상
  276. var mainsympcd = model.getValue("/root/interface/ertriage/ertriage/mainsympcd"); //주증상코드
  277. var mainsympnm1 = model.getValue("/root/interface/ertriage/ertriage/mainsympnm1"); //주증상1
  278. var mainsympcd1 = model.getValue("/root/interface/ertriage/ertriage/mainsympcd1"); //주증상코드1
  279. var mainsympnm2 = model.getValue("/root/interface/ertriage/ertriage/mainsympnm2"); //주증상2
  280. var mainsympcd2 = model.getValue("/root/interface/ertriage/ertriage/mainsympcd2"); //주증상코드2
  281. var etcsymp = model.getValue("/root/interface/ertriage/ertriage/etcsymp"); //기타증상
  282. var i = 1;
  283. if (mainsympnm != "")
  284. {
  285. model.makeNode("/root/ccrectmp/recitem[" + i + "]");
  286. model.makeValue("/root/ccrectmp/recitem[" + i + "]/instcd", getUserInfo("dutplceinstcd"));
  287. model.makeNode("/root/ccrectmp/recitem[" + i + "]/rechistseq");
  288. model.makeValue("/root/ccrectmp/recitem[" + i + "]/fstlevlitemcd", "0000931001");
  289. model.makeNode("/root/ccrectmp/recitem[" + i + "]/formcd");
  290. model.makeNode("/root/ccrectmp/recitem[" + i + "]/formdegnseq");
  291. model.makeNode("/root/ccrectmp/recitem[" + i + "]/degnitemno");
  292. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemcd", "0000931001");
  293. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlcd", "0000931");
  294. model.makeNode("/root/ccrectmp/recitem[" + i + "]/rectermcd");
  295. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recrefcd");
  296. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recitemnm");
  297. model.makeNode("/root/ccrectmp/recitem[" + i + "]/reccnts");
  298. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recimge");
  299. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemkind", "MTX");
  300. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemnm", "주호소");
  301. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlno", "1");
  302. model.makeNode("/root/ccrectmp/recitem[" + i + "]/rectermnm");
  303. model.makeNode("/root/ccrectmp/recitem[" + i + "]/rowno");
  304. model.makeNode("/root/ccrectmp/recitem[" + i + "]/colno");
  305. i++;
  306. model.makeNode("/root/ccrectmp/recitem[" + i + "]");
  307. model.makeValue("/root/ccrectmp/recitem[" + i + "]/instcd", getUserInfo("dutplceinstcd"));
  308. model.makeNode("/root/ccrectmp/recitem[" + i + "]/rechistseq");
  309. model.makeValue("/root/ccrectmp/recitem[" + i + "]/fstlevlitemcd", "0000931001");
  310. model.makeValue("/root/ccrectmp/recitem[" + i + "]/formcd", "0000000901");
  311. model.makeNode("/root/ccrectmp/recitem[" + i + "]/formdegnseq");
  312. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemno", "1");
  313. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemcd", "0000931001");
  314. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlcd", "0000931.0000931");
  315. model.makeNode("/root/ccrectmp/recitem[" + i + "]/rectermcd");
  316. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recrefcd");
  317. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recitemnm");
  318. model.makeNode("/root/ccrectmp/recitem[" + i + "]/reccnts");
  319. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recimge");
  320. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemkind", "GRD");
  321. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemnm", "주호소");
  322. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlno", "2");
  323. model.makeNode("/root/ccrectmp/recitem[" + i + "]/rectermnm");
  324. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rowno", 0);
  325. model.makeValue("/root/ccrectmp/recitem[" + i + "]/colno", -1);
  326. i++;
  327. model.makeNode("/root/ccrectmp/recitem[" + i + "]");
  328. model.makeValue("/root/ccrectmp/recitem[" + i + "]/instcd", getUserInfo("dutplceinstcd"));
  329. model.makeNode("/root/ccrectmp/recitem[" + i + "]/rechistseq");
  330. model.makeValue("/root/ccrectmp/recitem[" + i + "]/fstlevlitemcd", "0000931001");
  331. model.makeValue("/root/ccrectmp/recitem[" + i + "]/formcd", "0000000901");
  332. model.makeNode("/root/ccrectmp/recitem[" + i + "]/formdegnseq");
  333. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemno", "5");
  334. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemcd", "0000931001");
  335. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlcd", "0000931.0000931.0000931");
  336. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermcd", mainsympcd);
  337. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recrefcd");
  338. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recitemnm");
  339. model.makeNode("/root/ccrectmp/recitem[" + i + "]/reccnts");
  340. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recimge");
  341. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemkind", "GSU");
  342. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemnm", "주호소");
  343. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlno", "3");
  344. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermnm", mainsympnm);
  345. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rowno", 0);
  346. model.makeValue("/root/ccrectmp/recitem[" + i + "]/colno", 0);
  347. i++;
  348. if (attackdd != "")
  349. {
  350. attackdd = attackdd.substr(0, 4) + "-" + attackdd.substr(4, 2) + "-" + attackdd.substr(6, 2);
  351. if (attacktm != "")
  352. {
  353. attacktm = attacktm.substr(0, 2) + ":" + attacktm.substr(2, 2);
  354. }
  355. model.makeNode("/root/ccrectmp/recitem[" + i + "]");
  356. model.makeValue("/root/ccrectmp/recitem[" + i + "]/instcd", getUserInfo("dutplceinstcd"));
  357. model.makeNode("/root/ccrectmp/recitem[" + i + "]/rechistseq");
  358. model.makeValue("/root/ccrectmp/recitem[" + i + "]/fstlevlitemcd", "0000931001");
  359. model.makeValue("/root/ccrectmp/recitem[" + i + "]/formcd", "0000000901");
  360. model.makeNode("/root/ccrectmp/recitem[" + i + "]/formdegnseq");
  361. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemno", "10");
  362. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemcd", "0000299002");
  363. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlcd", "0000931.0000931.0000299");
  364. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermcd", "");
  365. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recrefcd");
  366. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recitemnm");
  367. model.makeValue("/root/ccrectmp/recitem[" + i + "]/reccnts", attackdd + " " + attacktm);
  368. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recimge");
  369. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemkind", "GSU");
  370. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemnm", "발생일");
  371. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlno", "3");
  372. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermnm", "");
  373. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rowno", 0);
  374. model.makeValue("/root/ccrectmp/recitem[" + i + "]/colno", 2);
  375. i++;
  376. }
  377. }
  378. if (mainsympnm1 != "")
  379. {
  380. model.makeNode("/root/ccrectmp/recitem[" + i + "]");
  381. model.makeValue("/root/ccrectmp/recitem[" + i + "]/instcd", getUserInfo("dutplceinstcd"));
  382. model.makeNode("/root/ccrectmp/recitem[" + i + "]/rechistseq");
  383. model.makeValue("/root/ccrectmp/recitem[" + i + "]/fstlevlitemcd", "0000931001");
  384. model.makeValue("/root/ccrectmp/recitem[" + i + "]/formcd", "0000000901");
  385. model.makeNode("/root/ccrectmp/recitem[" + i + "]/formdegnseq");
  386. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemno", "5");
  387. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemcd", "0000931001");
  388. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlcd", "0000931.0000931.0000931");
  389. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermcd", mainsympcd1);
  390. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recrefcd");
  391. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recitemnm");
  392. model.makeNode("/root/ccrectmp/recitem[" + i + "]/reccnts");
  393. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recimge");
  394. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemkind", "GSU");
  395. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemnm", "주호소");
  396. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlno", "3");
  397. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermnm", mainsympnm1);
  398. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rowno", 1);
  399. model.makeValue("/root/ccrectmp/recitem[" + i + "]/colno", 0);
  400. i++;
  401. if (attackdd != "")
  402. {
  403. model.makeNode("/root/ccrectmp/recitem[" + i + "]");
  404. model.makeValue("/root/ccrectmp/recitem[" + i + "]/instcd", getUserInfo("dutplceinstcd"));
  405. model.makeNode("/root/ccrectmp/recitem[" + i + "]/rechistseq");
  406. model.makeValue("/root/ccrectmp/recitem[" + i + "]/fstlevlitemcd", "0000931001");
  407. model.makeValue("/root/ccrectmp/recitem[" + i + "]/formcd", "0000000901");
  408. model.makeNode("/root/ccrectmp/recitem[" + i + "]/formdegnseq");
  409. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemno", "10");
  410. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemcd", "0000299002");
  411. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlcd", "0000931.0000931.0000299");
  412. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermcd", "");
  413. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recrefcd");
  414. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recitemnm");
  415. model.makeValue("/root/ccrectmp/recitem[" + i + "]/reccnts", attackdd + " " + attacktm);
  416. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recimge");
  417. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemkind", "GSU");
  418. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemnm", "발생일");
  419. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlno", "3");
  420. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermnm", "");
  421. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rowno", 1);
  422. model.makeValue("/root/ccrectmp/recitem[" + i + "]/colno", 2);
  423. i++;
  424. }
  425. }
  426. if (mainsympnm2 != "")
  427. {
  428. model.makeNode("/root/ccrectmp/recitem[" + i + "]");
  429. model.makeValue("/root/ccrectmp/recitem[" + i + "]/instcd", getUserInfo("dutplceinstcd"));
  430. model.makeNode("/root/ccrectmp/recitem[" + i + "]/rechistseq");
  431. model.makeValue("/root/ccrectmp/recitem[" + i + "]/fstlevlitemcd", "0000931001");
  432. model.makeValue("/root/ccrectmp/recitem[" + i + "]/formcd", "0000000901");
  433. model.makeNode("/root/ccrectmp/recitem[" + i + "]/formdegnseq");
  434. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemno", "5");
  435. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemcd", "0000931001");
  436. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlcd", "0000931.0000931.0000931");
  437. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermcd", mainsympcd2);
  438. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recrefcd");
  439. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recitemnm");
  440. model.makeNode("/root/ccrectmp/recitem[" + i + "]/reccnts");
  441. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recimge");
  442. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemkind", "GSU");
  443. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemnm", "주호소");
  444. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlno", "3");
  445. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermnm", mainsympnm2);
  446. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rowno", 2);
  447. model.makeValue("/root/ccrectmp/recitem[" + i + "]/colno", 0);
  448. i++;
  449. if (attackdd != "")
  450. {
  451. model.makeNode("/root/ccrectmp/recitem[" + i + "]");
  452. model.makeValue("/root/ccrectmp/recitem[" + i + "]/instcd", getUserInfo("dutplceinstcd"));
  453. model.makeNode("/root/ccrectmp/recitem[" + i + "]/rechistseq");
  454. model.makeValue("/root/ccrectmp/recitem[" + i + "]/fstlevlitemcd", "0000931001");
  455. model.makeValue("/root/ccrectmp/recitem[" + i + "]/formcd", "0000000901");
  456. model.makeNode("/root/ccrectmp/recitem[" + i + "]/formdegnseq");
  457. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemno", "10");
  458. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemcd", "0000299002");
  459. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlcd", "0000931.0000931.0000299");
  460. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermcd", "");
  461. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recrefcd");
  462. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recitemnm");
  463. model.makeValue("/root/ccrectmp/recitem[" + i + "]/reccnts", attackdd + " " + attacktm);
  464. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recimge");
  465. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemkind", "GSU");
  466. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemnm", "발생일");
  467. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlno", "3");
  468. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermnm", "");
  469. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rowno", 2);
  470. model.makeValue("/root/ccrectmp/recitem[" + i + "]/colno", 2);
  471. i++;
  472. }
  473. }
  474. if (etcsymp != "")
  475. {
  476. model.makeNode("/root/ccrectmp/recitem[" + i + "]");
  477. model.makeValue("/root/ccrectmp/recitem[" + i + "]/instcd", getUserInfo("dutplceinstcd"));
  478. model.makeNode("/root/ccrectmp/recitem[" + i + "]/rechistseq");
  479. model.makeValue("/root/ccrectmp/recitem[" + i + "]/fstlevlitemcd", "0000931001");
  480. model.makeValue("/root/ccrectmp/recitem[" + i + "]/formcd", "0000000901");
  481. model.makeNode("/root/ccrectmp/recitem[" + i + "]/formdegnseq");
  482. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemno", "5");
  483. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemcd", "0000931001");
  484. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlcd", "0000931.0000931.0000931");
  485. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermcd", "-");
  486. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recrefcd");
  487. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recitemnm");
  488. model.makeNode("/root/ccrectmp/recitem[" + i + "]/reccnts");
  489. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recimge");
  490. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemkind", "GSU");
  491. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemnm", "주호소");
  492. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlno", "3");
  493. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermnm", etcsymp);
  494. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rowno", 3);
  495. model.makeValue("/root/ccrectmp/recitem[" + i + "]/colno", 0);
  496. i++;
  497. if (attackdd != "")
  498. {
  499. model.makeNode("/root/ccrectmp/recitem[" + i + "]");
  500. model.makeValue("/root/ccrectmp/recitem[" + i + "]/instcd", getUserInfo("dutplceinstcd"));
  501. model.makeNode("/root/ccrectmp/recitem[" + i + "]/rechistseq");
  502. model.makeValue("/root/ccrectmp/recitem[" + i + "]/fstlevlitemcd", "0000931001");
  503. model.makeValue("/root/ccrectmp/recitem[" + i + "]/formcd", "0000000901");
  504. model.makeNode("/root/ccrectmp/recitem[" + i + "]/formdegnseq");
  505. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemno", "10");
  506. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemcd", "0000299002");
  507. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlcd", "0000931.0000931.0000299");
  508. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermcd", "");
  509. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recrefcd");
  510. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recitemnm");
  511. model.makeValue("/root/ccrectmp/recitem[" + i + "]/reccnts", attackdd + " " + attacktm);
  512. model.makeNode("/root/ccrectmp/recitem[" + i + "]/recimge");
  513. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemkind", "GSU");
  514. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemnm", "발생일");
  515. model.makeValue("/root/ccrectmp/recitem[" + i + "]/degnitemlevlno", "3");
  516. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rectermnm", "");
  517. model.makeValue("/root/ccrectmp/recitem[" + i + "]/rowno", 3);
  518. model.makeValue("/root/ccrectmp/recitem[" + i + "]/colno", 2);
  519. i++;
  520. }
  521. }
  522. var nodeList = model.instances(0).selectNodes("/root/ccrectmp/recitem");
  523. ivw_0000931001.window.javascript.clearData();
  524. if (nodeList.length > 0)
  525. {
  526. setSrchData("/root/ccrectmp/recitem", ivw_0000931001);
  527. ivw_0000931001.window.javascript.fAddrow();
  528. }
  529. }
  530. function fSetErTriageRec(ivwObj, levlcd)
  531. {
  532. // if (parent.window.javascript.fGetFormRec("status") != "C")
  533. // {
  534. // return;
  535. // }
  536. //현병력
  537. if (ivwObj.attribute("id") == "ivw_0001173001" && ivwObj.src != "")
  538. {
  539. //의도성
  540. var itemVal = new ITEMVAL();
  541. var intenflag = model.getValue("/root/interface/ertriage/ertriage/intenflag"); //의도성코드
  542. if (intenflag != "" && intenflag != "-")
  543. {
  544. var intntermcd = model.getValue("/root/mappingcd/inten/hardcd[hardcd = '" + intenflag + "']/hardcdnm");
  545. var intntermnm = ivwObj.model.getValue("/root/main/forminfo/vallist[grupcd = '0001775002' and valcd = '" + intntermcd + "']/valitemnm");
  546. itemVal.rectermcd = intntermcd;
  547. itemVal.rectermnm = intntermnm;
  548. if (levlcd != null)
  549. {
  550. ivwObj.window.javascript.setFormItemValue(levlcd + ".0001667", itemVal, true);
  551. }
  552. else
  553. {
  554. ivwObj.window.javascript.setFormItemValue("0001667", itemVal, true);
  555. }
  556. }
  557. //손상기전
  558. var itemVal1 = new ITEMVAL();
  559. var injmechflag = model.getValue("/root/interface/ertriage/ertriage/injmechflag"); //손상기전코드
  560. if (injmechflag != "" && injmechflag != "-")
  561. {
  562. var injmechcd = model.getValue("/root/mappingcd/injmech/hardcd[hardcd = '" + injmechflag + "']/hardcdnm");
  563. var injmechnm = ivwObj.model.getValue("/root/main/forminfo/vallist[grupcd = '0001776002' and valcd = '" + injmechcd + "']/valitemnm");
  564. itemVal1.rectermcd = injmechcd;
  565. itemVal1.rectermnm = injmechnm;
  566. if (levlcd != null)
  567. {
  568. ivwObj.window.javascript.setFormItemValue(levlcd + ".0020479", itemVal1, true);
  569. }
  570. else
  571. {
  572. ivwObj.window.javascript.setFormItemValue("0020479", itemVal1, true);
  573. }
  574. }
  575. //보호장구
  576. var itemVal2 = new ITEMVAL();
  577. var proceqmtflag = model.getValue("/root/interface/ertriage/ertriage/proceqmtflag"); //보호장구
  578. if (proceqmtflag != "" && proceqmtflag != "-")
  579. {
  580. var arrProceqmtflag = proceqmtflag.split("|")
  581. if (arrProceqmtflag.length > 0)
  582. {
  583. var proceqmtcd = "";
  584. var proceqmtnm = "";
  585. var compproceqmtflag = "";
  586. var tmpProceqmtflag = "";
  587. var tmpProceqmtnm = "";
  588. for (var i = 0; i < arrProceqmtflag.length; i++)
  589. {
  590. tmpProceqmtcd = model.getValue("/root/mappingcd/proc/hardcd[hardcd = '" + arrProceqmtflag[i] + "']/hardcdnm");
  591. tmpProceqmtnm = ivwObj.model.getValue("/root/main/forminfo/vallist[grupcd = '0001774002' and valcd = '" + tmpProceqmtcd + "']/valitemnm");
  592. proceqmtcd += tmpProceqmtcd + " ";
  593. proceqmtnm += tmpProceqmtnm + "▦";
  594. }
  595. itemVal2.rectermcd = proceqmtcd.substring(0, proceqmtcd.length - 1);
  596. itemVal2.rectermnm = proceqmtnm.substring(0, proceqmtnm.length - 1);
  597. if (levlcd != null)
  598. {
  599. ivwObj.window.javascript.setFormItemValue(levlcd + ".0020478", itemVal2, true);
  600. }
  601. else
  602. {
  603. ivwObj.window.javascript.setFormItemValue("0020478", itemVal2, true);
  604. }
  605. }
  606. }
  607. //2010.05.10 김달현 추가
  608. //내원사유(M0120)
  609. var itemVal3 = new ITEMVAL();
  610. var chosresnflag = model.getValue("/root/interface/ertriage/ertriage/chosresnflag");
  611. var chosresncd, chosresnnm;
  612. if(chosresnflag == "1"){//질병
  613. chosresncd = "0003034001";
  614. }else if(chosresnflag == "2"){//질병외
  615. chosresncd = "0038976001";
  616. }else if(chosresnflag == "3"){//진료외방문
  617. chosresncd = "0038977001";
  618. }else if(chosresnflag == "9"){//미상
  619. chosresncd = "0017158001";
  620. }
  621. chosresnnm = ivwObj.window.javascript.model.getValue("/root/main/forminfo/vallist[valcd='"+chosresncd+"']/valitemnm");
  622. if(chosresnflag != null && chosresnflag != ""){
  623. itemVal3.rectermcd = chosresncd;
  624. itemVal3.rectermnm = chosresnnm;
  625. if (levlcd != null)
  626. {
  627. ivwObj.window.javascript.setFormItemValue(levlcd + ".0019376", itemVal3, true);
  628. }
  629. else
  630. {
  631. ivwObj.window.javascript.setFormItemValue("0019376", itemVal3, true);
  632. }
  633. }
  634. //2010.05.10 김달현 추가
  635. //내원수단(M0119)
  636. var itemVal4 = new ITEMVAL();
  637. var choswayflag = model.getValue("/root/interface/ertriage/ertriage/choswayflag");
  638. var choswaycd, choswaynm;
  639. if(choswayflag == "1"){//119 구급차
  640. choswaycd = "0035600001";
  641. }else if(choswayflag == "2"){//병원구급차
  642. choswaycd = "0038986001";
  643. }else if(choswayflag == "3"){//기타구급차
  644. choswaycd = "0035601001";
  645. }else if(choswayflag == "4"){//경찰차 등 공공차량
  646. choswaycd = "0038978001";
  647. }else if(choswayflag == "5"){//항공이송
  648. choswaycd = "0038983001";
  649. }else if(choswayflag == "6"){//기타 자동차
  650. choswaycd = "0038984001";
  651. }else if(choswayflag == "7"){//도보
  652. choswaycd = "0002199001";
  653. }else if(choswayflag == "8"){//기타
  654. choswaycd = "0002141001";
  655. }else if(choswayflag == "9"){//미상
  656. choswaycd = "0017158001";
  657. }
  658. choswaynm = ivwObj.window.javascript.model.getValue("/root/main/forminfo/vallist[valcd='"+choswaycd+"']/valitemnm");
  659. if(choswayflag != null && choswayflag != ""){
  660. itemVal4.rectermcd = choswaycd;
  661. itemVal4.rectermnm = choswaynm;
  662. if (levlcd != null)
  663. {
  664. ivwObj.window.javascript.setFormItemValue(levlcd + ".0000169", itemVal4, true);
  665. }
  666. else
  667. {
  668. ivwObj.window.javascript.setFormItemValue("0000169", itemVal4, true);
  669. }
  670. }
  671. //2010.05.10 김달현 추가
  672. //내원경로(M0118)
  673. var itemVal5 = new ITEMVAL();
  674. var chospathflag = model.getValue("/root/interface/ertriage/ertriage/chospathflag");
  675. var chospathcd, chospathnm;
  676. if(chospathflag == "1"){//직접내원
  677. chospathcd = "0000374001";
  678. }else if(chospathflag == "2"){//외부에서 전원
  679. chospathcd = "0038982001";
  680. }else if(chospathflag == "3"){//외래에서 의뢰
  681. chospathcd = "0038987001";
  682. }else if(chospathflag == "8"){//기타
  683. chospathcd = "0002141001";
  684. }else if(chospathflag == "9"){//미상
  685. chospathcd = "0017158001";
  686. }
  687. chospathnm = ivwObj.window.javascript.model.getValue("/root/main/forminfo/vallist[valcd='"+chospathcd+"']/valitemnm");
  688. if(chospathflag != null && chospathflag != ""){
  689. itemVal5.rectermcd = chospathcd;
  690. itemVal5.rectermnm = chospathnm;
  691. if (levlcd != null)
  692. {
  693. ivwObj.window.javascript.setFormItemValue(levlcd + ".0023492", itemVal5, true);
  694. }
  695. else
  696. {
  697. ivwObj.window.javascript.setFormItemValue("0023492", itemVal5, true);
  698. }
  699. }
  700. }
  701. //신체검진
  702. if (ivwObj.attribute("id") == "ivw_0000570001" && ivwObj.src != "")
  703. {
  704. //분당맥박수
  705. var itemVal = new ITEMVAL();
  706. var mntpulsecnt = model.getValue("/root/interface/ertriage/ertriage/mntpulsecnt");
  707. itemVal.reccnts = mntpulsecnt;
  708. if (levlcd != null)
  709. {
  710. ivwObj.window.javascript.setFormItemValue(levlcd + ".0000879.0001221.0000258", itemVal, true);
  711. }
  712. else
  713. {
  714. ivwObj.window.javascript.setFormItemValue("0000879.0001221.0000258", itemVal, true);
  715. }
  716. //분당호흡수
  717. itemVal = new ITEMVAL();
  718. var mntbrethcnt = model.getValue("/root/interface/ertriage/ertriage/mntbrethcnt");
  719. itemVal.reccnts = mntbrethcnt;
  720. if (levlcd != null)
  721. {
  722. ivwObj.window.javascript.setFormItemValue(levlcd + ".0000879.0001221.0000993", itemVal, true);
  723. }
  724. else
  725. {
  726. ivwObj.window.javascript.setFormItemValue("0000879.0001221.0000993", itemVal, true);
  727. }
  728. //내원시체온
  729. itemVal = new ITEMVAL();
  730. var chosbdtp = model.getValue("/root/interface/ertriage/ertriage/chosbdtp");
  731. itemVal.reccnts = chosbdtp;
  732. if (levlcd != null)
  733. {
  734. ivwObj.window.javascript.setFormItemValue(levlcd + ".0000879.0001221.0000992", itemVal, true);
  735. }
  736. else
  737. {
  738. ivwObj.window.javascript.setFormItemValue("0000879.0001221.0000992", itemVal, true);
  739. }
  740. //수축기혈압
  741. itemVal = new ITEMVAL();
  742. var highbp = model.getValue("/root/interface/ertriage/ertriage/highbp");
  743. itemVal.reccnts = highbp;
  744. if (levlcd != null)
  745. {
  746. ivwObj.window.javascript.setFormItemValue(levlcd + ".0000879.0001221.0001180.0000525", itemVal, true);
  747. }
  748. else
  749. {
  750. ivwObj.window.javascript.setFormItemValue("0000879.0001221.0001180.0000525", itemVal, true);
  751. }
  752. //이완기혈압
  753. itemVal = new ITEMVAL();
  754. var lowbp = model.getValue("/root/interface/ertriage/ertriage/lowbp");
  755. itemVal.reccnts = lowbp;
  756. if (levlcd != null)
  757. {
  758. ivwObj.window.javascript.setFormItemValue(levlcd + ".0000879.0001221.0001180.0000791", itemVal, true);
  759. }
  760. else
  761. {
  762. ivwObj.window.javascript.setFormItemValue("0000879.0001221.0001180.0000791", itemVal, true);
  763. }
  764. //산소포화도
  765. itemVal = new ITEMVAL();
  766. var oxyconcen = model.getValue("/root/interface/ertriage/ertriage/oxyconcen");
  767. itemVal.reccnts = oxyconcen;
  768. if (levlcd != null)
  769. {
  770. ivwObj.window.javascript.setFormItemValue(levlcd + ".0000879.0001221.0005957", itemVal, true);
  771. }
  772. else
  773. {
  774. ivwObj.window.javascript.setFormItemValue("0000879.0001221.0005957", itemVal, true);
  775. }
  776. //2010.05.10 김달현 추가
  777. //의식(AVPU Scale)
  778. itemVal = new ITEMVAL();
  779. var cscsflag = model.getValue("/root/interface/ertriage/ertriage/cscsflag");
  780. var cscscd, cscsnm;
  781. if(cscsflag == "A"){//Alert
  782. cscscd = "0000544";
  783. }else if(cscsflag == "V"){//Verbal response
  784. cscscd = "0014272";
  785. }else if(cscsflag == "P"){//Painful response
  786. cscscd = "0015321";
  787. }else if(cscsflag == "U"){//Unresponsive
  788. cscscd = "0038958";
  789. }
  790. cscsnm = ivwObj.window.javascript.model.getValue("/root/main/forminfo/vallist[valcd='" + cscscd + "']/valitemnm");
  791. if(cscscd != null && cscscd != ""){
  792. itemVal.rectermcd = cscscd;
  793. itemVal.rectermnm = cscsnm;
  794. if(levlcd != null){
  795. ivwObj.window.javascript.setFormItemValue(levlcd + ".0000900.0000898.0023476", itemVal, true);
  796. }else{
  797. ivwObj.window.javascript.setFormItemValue("0000900.0000898.0023476", itemVal, true);
  798. }
  799. }
  800. }
  801. }
  802. /**
  803. * MMR01100.js에서 서식load를 완료한 후에 호출한다.
  804. * @return
  805. */
  806. function initFormAtLast_MMR01100I() {
  807. if (parent.window.javascript.fGetFormRec("status") == "C") {
  808. fSetTriageValue_MMR00700("A", true);
  809. fSetTriageValue_MMR00700("B", false);
  810. fSetTriageValue_MMR00700("C", false);
  811. }
  812. }
  813. /**
  814. * Triage 입력내용을 설정한다.
  815. * @param flag
  816. * <li>A : 주호소
  817. * <li>B : 신체검진
  818. * @return
  819. */
  820. function fSetTriageValue_MMR00700(flag, isSubmit) {
  821. if (isSubmit == null) {
  822. isSubmit = true;
  823. }
  824. var isSet = true;
  825. if (isSubmit) {
  826. model.removeNodeset("/root/send/reqdata");
  827. model.makeValue("/root/send/reqdata/pid" , parent.window.javascript.fGetFormRec("pid"));
  828. model.makeValue("/root/send/reqdata/orddd", parent.window.javascript.fGetFormRec("orddd"));
  829. model.makeValue("/root/send/reqdata/cretno", parent.window.javascript.fGetFormRec("cretno"));
  830. model.makeValue("/root/send/reqdata/queryflag", "K");
  831. isSet = submit("TRMNE04403");
  832. }
  833. if (flag == "A") {
  834. //주호소
  835. if(isSet) {
  836. fSetCC();
  837. }
  838. } else if (flag == "B") {
  839. //현병력
  840. if(isSet) {
  841. var iobj = document.controls("ivw_0001173001");
  842. fSetErTriageRec(iobj, "0001173");
  843. }
  844. } else if (flag == "C") {
  845. //신체검진
  846. if(isSet) {
  847. var iobj = document.controls("ivw_0000570001");
  848. fSetErTriageRec(iobj, "0000570");
  849. }
  850. }
  851. }