SPPMI02300_신생아선택.xfdl 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPMI02300" position="absolute 0 0 519 349" titletext="신생아선택" onload="SPPMI02300_onload" ontimer="SPPMI02300_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" scrollbars="autoboth" position="absolute 0 0 518 316" style="">
  8. <Layouts>
  9. <Layout>
  10. <Div id="group2" position="absolute 0 0 518 40" style="" class="div_SA2">
  11. <Layouts>
  12. <Layout>
  13. <Static id="caption2" class="search_name" position="absolute 15 12 101 29" style="" text="검색조건 :" anchor="default"/>
  14. <Button id="btn_search" class="btn1" taborder="6" position="absolute 445 9 501 31" style="" text="조회" onclick="group3_group2_btn_search_onclick" anchor="default"/>
  15. <Shape id="line13" class="line_4" linetype="vertical" position="absolute 429 9 432 31" style="border: solid #ffe4bb #ffe4bb;" anchor="default"/>
  16. <Edit id="ipt_hngnm" class="input_search" taborder="1" visible="false" position="absolute 240 10 320 29" style="" anchor="default" onkeypress="group3_group2_ipt_hngnm_onkeypress" onkeydown="group3_group2_ipt_hngnm_onkeydown"/>
  17. <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="cmb_cond" class="combo_search" taborder="10" position="absolute 106 10 216 29" style="" onitemchanged="group3_group2_cmb_cond_onitemchanged" anchor="default">
  18. <Dataset id="innerdataset">
  19. <ColumnInfo>
  20. <Column id="codecolumn"/>
  21. <Column id="datacolumn"/>
  22. </ColumnInfo>
  23. <Rows>
  24. <Row>
  25. <Col id="codecolumn">1</Col>
  26. <Col id="datacolumn">산모등록번호</Col>
  27. </Row>
  28. <Row>
  29. <Col id="codecolumn">2</Col>
  30. <Col id="datacolumn">산모성명</Col>
  31. </Row>
  32. <Row>
  33. <Col id="codecolumn">3</Col>
  34. <Col id="datacolumn">신생아등록번호</Col>
  35. </Row>
  36. <Row>
  37. <Col id="codecolumn">4</Col>
  38. <Col id="datacolumn">신생아성명</Col>
  39. </Row>
  40. </Rows>
  41. </Dataset>
  42. </Combo>
  43. <Edit id="ipt_pid" class="input_search" taborder="4" visible="false" position="absolute 222 10 302 29" style="" anchor="default" onkeypress="group3_group2_ipt_pid_onkeypress" onkeydown="group3_group2_ipt_pid_onkeydown"/>
  44. </Layout>
  45. </Layouts>
  46. </Div>
  47. <Static id="caption1" class="tit_2" position="absolute 0 48 137 65" style="" text="신생아 출생정보"/>
  48. <Shape id="line1" class="line_10" linetype="horizontal" position="absolute 0 64 517 70" style="" anchor="default"/>
  49. <Grid id="grd_patinfo" binddataset="ds_main_patinfo_patinfolist" taborder="7" position="absolute 0 69 517 315" style="" oncelldblclick="group3_grd_patinfo_oncelldblclick" onkeypress="group3_grd_patinfo_onkeypress" cellsizingtype="col" onkeydown="group3_grd_patinfo_onkeydown">
  50. <Formats>
  51. <Format id="default">
  52. <Columns>
  53. <Column size="83"/>
  54. <Column size="0"/>
  55. <Column size="65"/>
  56. <Column size="50"/>
  57. <Column size="60"/>
  58. <Column size="100"/>
  59. <Column size="100"/>
  60. <Column size="85"/>
  61. <Column size="120"/>
  62. <Column size="50"/>
  63. <Column size="50"/>
  64. <Column size="55"/>
  65. <Column size="100"/>
  66. <Column size="70"/>
  67. <Column size="100"/>
  68. <Column size="100"/>
  69. <Column size="110"/>
  70. <Column size="100"/>
  71. <Column size="110"/>
  72. <Column size="0"/>
  73. <Column size="0"/>
  74. <Column size="0"/>
  75. <Column size="0"/>
  76. <Column size="0"/>
  77. <Column size="0"/>
  78. <Column size="0"/>
  79. <Column size="0"/>
  80. </Columns>
  81. <Rows>
  82. <Row size="23" band="head"/>
  83. <Row size="23"/>
  84. </Rows>
  85. <Band id="head">
  86. <Cell text="산모등록번호"/>
  87. <Cell col="1" text="기관코드"/>
  88. <Cell col="2" text="산모성명"/>
  89. <Cell col="3" colspan="2" text="산모주민등록번호" taborder="undefined"/>
  90. <Cell col="5" text="산모입원일자"/>
  91. <Cell col="6" text="신생아등록번호"/>
  92. <Cell col="7" text="신생아성명"/>
  93. <Cell col="8" text="출생일자"/>
  94. <Cell col="9" text="성별"/>
  95. <Cell col="10" text="체중값"/>
  96. <Cell col="11" text="체중단위"/>
  97. <Cell col="12" text="분만형태"/>
  98. <Cell col="13" text="신생아구분"/>
  99. <Cell col="14" text="특이사항"/>
  100. <Cell col="15" text="최초등록자ID"/>
  101. <Cell col="16" text="최초등록일시"/>
  102. <Cell col="17" text="최종수정자ID"/>
  103. <Cell col="18" text="최종수정일시"/>
  104. <Cell col="19" text="생성번호"/>
  105. <Cell col="20" text="집전화"/>
  106. <Cell col="21" text="핸드폰"/>
  107. <Cell col="22" text="우편번호1"/>
  108. <Cell col="23" text="우편번호2"/>
  109. <Cell col="24" text="우편번호seq"/>
  110. <Cell col="25" text="우편번호명"/>
  111. <Cell col="26" text="세부주소"/>
  112. </Band>
  113. <Band id="body">
  114. <Cell text="bind:pid"/>
  115. <Cell col="1" text="bind:instcd"/>
  116. <Cell col="2" text="bind:hngnm"/>
  117. <Cell col="3" text="bind:rrgstno1"/>
  118. <Cell col="4" text="bind:rrgstno2"/>
  119. <Cell col="5" displaytype="date" text="bind:indd"/>
  120. <Cell col="6" text="bind:babyno"/>
  121. <Cell col="7" text="bind:babynm"/>
  122. <Cell col="8" text="bind:bthdt"/>
  123. <Cell col="9" text="bind:gndr"/>
  124. <Cell col="10" text="bind:weig"/>
  125. <Cell col="11" displaytype="combo" style="align:center middle;" text="bind:weigunit" combodataset="ds_init_M0189" combocodecol="cdid" combodatacol="cdnm"/>
  126. <Cell col="12" displaytype="combo" style="align:center middle;" text="bind:dlivkindcd" combodataset="ds_init_M0188" combocodecol="cdid" combodatacol="cdnm"/>
  127. <Cell col="13" text="bind:nbabyflag"/>
  128. <Cell col="14" displaytype="text" style="align:left top;padding:5 2 1 2;" text="bind:remk" wordwrap="char" autosizerow="limitmin"/>
  129. <Cell col="15" text="bind:fstrgstrid"/>
  130. <Cell col="16" text="bind:fstrgstdt"/>
  131. <Cell col="17" text="bind:lastupdtrid"/>
  132. <Cell col="18" text="bind:lastupdtdt"/>
  133. <Cell col="19" text="bind:cretno"/>
  134. <Cell col="20" text="bind:hometel"/>
  135. <Cell col="21" text="bind:mpphontel"/>
  136. <Cell col="22" text="bind:zipcd1"/>
  137. <Cell col="23" text="bind:zipcd2"/>
  138. <Cell col="24" text="bind:zipcdseq"/>
  139. <Cell col="25" text="bind:zipnm"/>
  140. <Cell col="26" text="bind:detladdr"/>
  141. </Band>
  142. </Format>
  143. </Formats>
  144. </Grid>
  145. </Layout>
  146. </Layouts>
  147. </Div>
  148. <Div id="group1" scrollbars="autoboth" position="absolute 0 316 518 343" style="">
  149. <Layouts>
  150. <Layout>
  151. <Button id="btn_confirm" class="btn4" taborder="8" position="absolute 402 5 458 27" style="" text="확인" onclick="group1_btn_confirm_onclick" anchor="default"/>
  152. <Button id="btn_cancel" class="btn4" taborder="9" position="absolute 461 5 517 27" style="" text="취소" onclick="group1_btn_cancel_onclick" anchor="default"/>
  153. <Shape id="line32" class="line_6" linetype="horizontal" position="absolute 0 0 518 3" style="" anchor="default"/>
  154. </Layout>
  155. </Layouts>
  156. </Div>
  157. </Layout>
  158. </Layouts>
  159. <Objects>
  160. <Dataset id="ds_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  161. <ColumnInfo/>
  162. </Dataset>
  163. <Dataset id="ds_init_P0350" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  164. <ColumnInfo>
  165. <Column id="cdnm" type="STRING" size="256"/>
  166. <Column id="cdid" type="STRING" size="256"/>
  167. </ColumnInfo>
  168. <Rows>
  169. <Row>
  170. <Col id="cdnm"/>
  171. <Col id="cdid"/>
  172. </Row>
  173. </Rows>
  174. </Dataset>
  175. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  176. <ColumnInfo>
  177. <Column id="srchcond" type="STRING" size="256"/>
  178. <Column id="pid" type="STRING" size="256"/>
  179. <Column id="hngnm" type="STRING" size="256"/>
  180. </ColumnInfo>
  181. <Rows>
  182. <Row>
  183. <Col id="srchcond"/>
  184. <Col id="pid"/>
  185. <Col id="hngnm"/>
  186. </Row>
  187. </Rows>
  188. </Dataset>
  189. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  190. <ColumnInfo/>
  191. </Dataset>
  192. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  193. <ColumnInfo>
  194. <Column id="tmp" type="STRING" size="256"/>
  195. </ColumnInfo>
  196. </Dataset>
  197. <Dataset id="ds_init_orddeptcd_orddeptcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  198. <ColumnInfo>
  199. <Column id="cd" type="STRING" size="256"/>
  200. <Column id="nm" type="STRING" size="256"/>
  201. </ColumnInfo>
  202. <Rows>
  203. <Row>
  204. <Col id="cd"/>
  205. <Col id="nm"/>
  206. </Row>
  207. </Rows>
  208. </Dataset>
  209. <Dataset id="ds_init_orddrid_orddridlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  210. <ColumnInfo>
  211. <Column id="cd" type="STRING" size="256"/>
  212. <Column id="nm" type="STRING" size="256"/>
  213. <Column id="dp" type="STRING" size="256"/>
  214. <Column id="sp" type="STRING" size="256"/>
  215. </ColumnInfo>
  216. <Rows>
  217. <Row>
  218. <Col id="cd"/>
  219. <Col id="nm"/>
  220. <Col id="dp"/>
  221. <Col id="sp"/>
  222. </Row>
  223. </Rows>
  224. </Dataset>
  225. <Dataset id="ds_init_M0189" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  226. <ColumnInfo>
  227. <Column id="cdnm" type="STRING" size="256"/>
  228. <Column id="cdid" type="STRING" size="256"/>
  229. </ColumnInfo>
  230. <Rows>
  231. <Row>
  232. <Col id="cdnm"/>
  233. <Col id="cdid"/>
  234. </Row>
  235. </Rows>
  236. </Dataset>
  237. <Dataset id="ds_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  238. <ColumnInfo/>
  239. </Dataset>
  240. <Dataset id="ds_init_M0188" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  241. <ColumnInfo>
  242. <Column id="cdnm" type="STRING" size="256"/>
  243. <Column id="cdid" type="STRING" size="256"/>
  244. </ColumnInfo>
  245. <Rows>
  246. <Row>
  247. <Col id="cdnm"/>
  248. <Col id="cdid"/>
  249. </Row>
  250. </Rows>
  251. </Dataset>
  252. <Dataset id="ds_main_patinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  253. <ColumnInfo>
  254. <Column id="patinfolist" type="STRING" size="256"/>
  255. </ColumnInfo>
  256. <Rows>
  257. <Row>
  258. <Col id="patinfolist"/>
  259. </Row>
  260. </Rows>
  261. </Dataset>
  262. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  263. <ColumnInfo/>
  264. </Dataset>
  265. <Dataset id="ds_hidden_uid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  266. <ColumnInfo>
  267. <Column id="myself" type="STRING" size="256"/>
  268. <Column id="opener" type="STRING" size="256"/>
  269. </ColumnInfo>
  270. </Dataset>
  271. <Dataset id="ds_main_patinfo_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  272. </Objects>
  273. <Bind>
  274. <BindItem id="item1" compid="group3.group2.cmb_cond" propid="value" datasetid="ds_send" columnid="srchcond"/>
  275. <BindItem id="item0" compid="group3.group2.ipt_pid" propid="value" datasetid="ds_send" columnid="pid"/>
  276. <BindItem id="item2" compid="group3.group2.ipt_hngnm" propid="value" datasetid="ds_send" columnid="hngnm"/>
  277. </Bind>
  278. <Script type="xscript4.0"><![CDATA[//=======================================================================================
  279. // Lib Include
  280. //---------------------------------------------------------------------------------------
  281. include "com_commonxp::comm_main.xjs";
  282. include "pam_pamcomnxp::PAM.xjs";
  283. //=======================================================================================
  284. // Global Form Variable
  285. //---------------------------------------------------------------------------------------
  286. var arErrorCode = new HashArray();
  287. //=======================================================================================
  288. // Function
  289. //---------------------------------------------------------------------------------------
  290. /****************************************************************************************
  291. * Argument : N/A
  292. * Description : 창 생성시 부모창으로 부터 받은 입력값의 유효범위 체크
  293. ****************************************************************************************/
  294. function fInputValueCheckXformsReady(){
  295. var cond = ds_send.getColumn(0, "srchcond");
  296. switch(cond){
  297. case '1':
  298. //환자등록번호 체크
  299. if(group3.group2.ipt_pid.text.length >= 1 ){
  300. ds_send.setColumn( 0, "pid", group3.group2.ipt_pid.text);
  301. return (true);
  302. }else{
  303. sysf_messageBox("환자등록번호를 정확히", "C001");
  304. return (false);
  305. }
  306. break;
  307. case '2':
  308. //환자이름 체크
  309. //if( group3.group2.ipt_hngnm.text.length >= 2 ) return (true);
  310. if(group3.group2.ipt_hngnm.text.length >= 2 ){
  311. ds_send.setColumn( 0, "hngnm", group3.group2.ipt_hngnm.text);
  312. return (true);
  313. }else{
  314. sysf_messageBox("환자이름을 2자리 이상", "C001");
  315. return (false);
  316. }
  317. break;
  318. case '3':
  319. //환자등록번호 체크
  320. if(group3.group2.ipt_pid.text.length >= 1 ){
  321. ds_send.setColumn( 0, "pid", group3.group2.ipt_pid.text);
  322. return (true);
  323. }else{
  324. sysf_messageBox("환자등록번호를 정확히", "C001");
  325. return (false);
  326. }
  327. break;
  328. case '4':
  329. //환자이름 체크
  330. //if( group3.group2.ipt_hngnm.text.length >= 2 ) return (true);
  331. if(group3.group2.ipt_hngnm.text.length >= 2 ){
  332. ds_send.setColumn( 0, "hngnm", group3.group2.ipt_hngnm.text);
  333. return (true);
  334. }else{
  335. sysf_messageBox("환자이름을 2자리 이상", "C001");
  336. return (false);
  337. }
  338. break;
  339. default :
  340. group3.group2.cmb_cond.setFocus();
  341. return( false );
  342. break;
  343. }
  344. }
  345. /****************************************************************************************
  346. * Argument : N/A
  347. * Description : 입력값의 유효범위 체크
  348. ****************************************************************************************/
  349. function fInputValueCheck(){
  350. var cond = ds_send.getColumn(0, "srchcond");
  351. switch(cond){
  352. case '1':
  353. //환자등록번호 체크
  354. if(group3.group2.ipt_pid.text.length >= 1 ){
  355. ds_send.setColumn( 0, "pid", group3.group2.ipt_pid.text);
  356. return (true);
  357. }else{
  358. sysf_messageBox("환자등록번호를 정확히", "C001");
  359. return (false);
  360. }
  361. break;
  362. case '2':
  363. //환자이름 체크
  364. //if( group3.group2.ipt_hngnm.text.length >= 2 ) return (true);
  365. if(group3.group2.ipt_hngnm.text.length >= 2 ){
  366. ds_send.setColumn( 0, "hngnm", group3.group2.ipt_hngnm.text);
  367. return (true);
  368. }else{
  369. sysf_messageBox("환자이름을 2자리 이상", "C001");
  370. return (false);
  371. }
  372. break;
  373. case '3':
  374. //환자등록번호 체크
  375. if(group3.group2.ipt_pid.text.length >= 1 ){
  376. ds_send.setColumn( 0, "pid", group3.group2.ipt_pid.text);
  377. return (true);
  378. }else{
  379. sysf_messageBox("환자등록번호를 정확히", "C001");
  380. return (false);
  381. }
  382. break;
  383. case '4':
  384. //환자이름 체크
  385. //if( group3.group2.ipt_hngnm.text.length >= 2 ) return (true);
  386. if(group3.group2.ipt_hngnm.text.length >= 2 ){
  387. ds_send.setColumn( 0, "hngnm", group3.group2.ipt_hngnm.text);
  388. return (true);
  389. }else{
  390. sysf_messageBox("환자이름을 2자리 이상", "C001");
  391. return (false);
  392. }
  393. break;
  394. default :
  395. sysf_messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
  396. group3.group2.cmb_cond.setFocus();
  397. return( false );
  398. break;
  399. }
  400. }
  401. /****************************************************************************************
  402. * Argument : N/A
  403. * Description : 조회 조건에 맞는 input 컨트롤을 세팅해 준다.
  404. ****************************************************************************************/
  405. function fChangeSearchCondition(cond){
  406. switch(cond){
  407. case '1':
  408. // dsf_makeValue( ds_send, "pid", "string", "" );
  409. group3.group2.ipt_pid.visible = true;
  410. group3.group2.ipt_pid.position.left = 219;
  411. group3.group2.ipt_pid.position.top = 8;
  412. group3.group2.ipt_hngnm.visible = false;
  413. group3.group2.ipt_pid.setFocus();
  414. break;
  415. case '2':
  416. // dsf_makeValue( ds_send, "hngnm", "string", "" );
  417. group3.group2.ipt_hngnm.visible = true;
  418. group3.group2.ipt_hngnm.position.left = 219;
  419. group3.group2.ipt_hngnm.position.top = 8;
  420. group3.group2.ipt_pid.visible = false;
  421. group3.group2.ipt_hngnm.setFocus();
  422. break;
  423. case '3':
  424. // dsf_makeValue( ds_send, "pid", "string", "" );
  425. group3.group2.ipt_pid.visible = true;
  426. group3.group2.ipt_pid.position.left = 219;
  427. group3.group2.ipt_pid.position.top = 8;
  428. group3.group2.ipt_hngnm.visible = false;
  429. group3.group2.ipt_pid.setFocus();
  430. break;
  431. case '4':
  432. // dsf_makeValue( ds_send, "hngnm", "string", "" );
  433. group3.group2.ipt_hngnm.visible = true;
  434. group3.group2.ipt_hngnm.position.left = 219;
  435. group3.group2.ipt_hngnm.position.top = 8;
  436. group3.group2.ipt_pid.visible = false;
  437. group3.group2.ipt_hngnm.setFocus();
  438. break;
  439. default :
  440. //sysf_messageBox("검색조건이 정확히 선택되지 않았습니다. 확인 후 다시 시도해 주십시요.", "E999", "");
  441. break;
  442. }
  443. }
  444. //=======================================================================================
  445. // Event
  446. //---------------------------------------------------------------------------------------
  447. /****************************************************************************************
  448. * Components : Form
  449. * Description : 화면 처음 초기화시 폼초기화
  450. ****************************************************************************************/
  451. function SPPMI02300_onload(obj:Form, e:LoadEventInfo) {
  452. frmf_initForm(obj);
  453. this.setTimer(0, 100);
  454. }
  455. /****************************************************************************************
  456. * Components : Button
  457. * Description : 조회
  458. ****************************************************************************************/
  459. function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  460. if(fInputValueCheck()) {
  461. call_TRPMI02301();
  462. if(arErrorCode.pop("TRPMI02301") > -1) {
  463. if( ds_main_patinfo_patinfolist.rowcount > 0 ){
  464. group3.grd_patinfo.setFocus();
  465. }else{
  466. fChangeSearchCondition( group3.group2.cmb_cond.value );
  467. }
  468. }
  469. }
  470. }
  471. /****************************************************************************************
  472. * Components : Edit
  473. * Description : 환자명 입력후 엔터
  474. ****************************************************************************************/
  475. function group3_group2_ipt_hngnm_onkeydown(obj:Edit, e:KeyEventInfo) {
  476. if(e.keycode == 13) {
  477. obj.updateToDataset();
  478. // ds_send.setColumn(0,"hngnm",obj.text);
  479. group3_group2_btn_search_onclick();
  480. }
  481. }
  482. /****************************************************************************************
  483. * Components : Combo
  484. * Description : 검색조건 변경
  485. ****************************************************************************************/
  486. function group3_group2_cmb_cond_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  487. var cond = ds_send.getColumn(0, "srchcond");
  488. fChangeSearchCondition( cond );
  489. }
  490. /****************************************************************************************
  491. * Components : Edit
  492. * Description : 등록번호 입력후 엔터
  493. ****************************************************************************************/
  494. function group3_group2_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo) {
  495. if(e.keycode == 13) {
  496. obj.updateToDataset();
  497. // ds_send.setColumn(0,"pid",obj.text);
  498. group3_group2_btn_search_onclick();
  499. }
  500. }
  501. /****************************************************************************************
  502. * Components : Grid
  503. * Description : 신생아 출생정보 선택
  504. ****************************************************************************************/
  505. function group3_grd_patinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  506. if ( frmf_checkOpener() ) {
  507. var row = e.row;
  508. if( row > -1 ){
  509. if( ds_main_patinfo_patinfolist.rowcount > 0 ){
  510. opener.ds_main_patinfo_patinfolist.copyRow(0,ds_main_patinfo_patinfolist,row);
  511. dsf_makeValue( opener.ds_main, "popupendflag", "string", "ok" );
  512. this.close();
  513. }
  514. }
  515. } else {
  516. sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  517. }
  518. }
  519. /****************************************************************************************
  520. * Components : Grid
  521. * Description : 신생아 출생정보 선택
  522. ****************************************************************************************/
  523. function group3_grd_patinfo_onkeydown(obj:Grid, e:KeyEventInfo) {
  524. if( e.keycode == 13 ){
  525. group1_btn_confirm_onclick();
  526. }
  527. }
  528. /****************************************************************************************
  529. * Components : Button
  530. * Description : 확인
  531. ****************************************************************************************/
  532. function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo) {
  533. if ( frmf_checkOpener() ) {
  534. var row = ds_main_patinfo_patinfolist.rowposition;
  535. dsf_makeValue( opener.ds_main, "popupendflag", "string", "cancel" );
  536. if( row > -1 ){
  537. if( ds_main_patinfo_patinfolist.rowcount > 0 ){
  538. opener.ds_main_patinfo_patinfolist.copyRow(0,ds_main_patinfo_patinfolist,row);
  539. dsf_makeValue( opener.ds_main, "popupendflag", "string", "ok" );
  540. }
  541. }else {
  542. sysf_messageBox("행이 정확히 선택되지", "E007");
  543. }
  544. } else {
  545. sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  546. }
  547. this.close();
  548. }
  549. /****************************************************************************************
  550. * Components : Button
  551. * Description : 닫기
  552. ****************************************************************************************/
  553. function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
  554. dsf_makeValue( opener.ds_main, "popupendflag", "string", "cancel" );
  555. this.close();
  556. }
  557. /****************************************************************************************
  558. * Components : Form
  559. * Description : 폼 초기화
  560. ****************************************************************************************/
  561. function SPPMI02300_ontimer(obj:Form, e:TimerEventInfo)
  562. {
  563. if (e.timerid == 0) {
  564. this.killTimer(0);
  565. try{
  566. ds_send.copyData(arg_ds_send);
  567. ds_send.addColumn("hngnm","string");
  568. // group3.group2.ipt_pid.text = utlf_transNullToEmpty(ds_send.getColumn(0,"pid"));
  569. // group3.group2.ipt_hngnm.text = utlf_transNullToEmpty(ds_send.getColumn(0,"hngnm"));
  570. }catch(e){}
  571. grdf_setGridSort(group3.grd_patinfo);
  572. var arrParam = [{dsNm: "ds_init_M0189", cdGrpId: "M0189"}
  573. ,{dsNm: "ds_init_M0188", cdGrpId: "M0188"}
  574. ];
  575. appf_getCodeList(arrParam);
  576. if( !utlf_isNull(ds_send.getColumn(0,"srchcond")) ){
  577. fChangeSearchCondition( ds_send.getColumn(0, "srchcond") );
  578. //값이 부모창에서 입력되었을 경우 조회한다.
  579. if(fInputValueCheckXformsReady() ){
  580. call_TRPMI02301();
  581. if(arErrorCode.pop("TRPMI02301") > -1) {
  582. //2007.12.25 외부신생아 조회..
  583. if (ds_send.getColumn(0, "srchcond") == "3") {
  584. var inpt_node = ds_main_patinfo_patinfolist.rowcount;
  585. if (inpt_node == 0) {
  586. var oParam = {};
  587. oParam.id = "TRPMI02302";
  588. oParam.service = "ipatmngtapp.IPatRef";
  589. oParam.method = "reqGetBabyInfo1";
  590. oParam.inds = "req=ds_send";
  591. oParam.outds = "ds_main_patinfo_patinfolist=patinfolist";
  592. oParam.async = false;
  593. //oParam.callback = "cf_TRPMI02302";
  594. tranf_submit(oParam);
  595. if( ds_main_patinfo_patinfolist.rowcount == 1 ){
  596. if( ds_send.getColumn(0, "autoflag").toUpperCase() == "Y" ){
  597. group3.grd_patinfo.setFocus();
  598. group1_btn_confirm_onclick();
  599. this.close();
  600. }
  601. }
  602. }
  603. }
  604. if( ds_main_patinfo_patinfolist.rowcount == 1 ){
  605. if( ds_send.getColumn(0, "autoflag").toUpperCase() == "Y" ){
  606. group3.grd_patinfo.setFocus();
  607. group1_btn_confirm_onclick();
  608. this.close();
  609. }
  610. }
  611. if( ds_main_patinfo_patinfolist.rowcount > 1 ){
  612. group3.grd_patinfo.setFocus();
  613. }else{
  614. fChangeSearchCondition( group3.group2.cmb_cond.value );
  615. }
  616. }
  617. }
  618. }else{
  619. dsf_makeValue( ds_send, "srchcond" , "string", "" );
  620. dsf_makeValue( ds_send, "pid" , "string", "" );
  621. dsf_makeValue( ds_send, "hngnm" , "string", "" );
  622. }
  623. }
  624. }
  625. function call_TRPMI02301() {
  626. var oParam = {};
  627. oParam.id = "TRPMI02301";
  628. oParam.service = "ipatmngtapp.IPatRef";
  629. oParam.method = "reqGetBabyInfo";
  630. oParam.inds = "req=ds_send";
  631. oParam.outds = "ds_main_patinfo_patinfolist=patinfolist";
  632. oParam.async = false;
  633. oParam.callback = "cf_TRPMI02301";
  634. tranf_submit(oParam);
  635. }
  636. function cf_TRPMI02301(sSvcId, nErrorCode, sErrorMsg) {
  637. arErrorCode.push(sSvcId, nErrorCode);
  638. }
  639. ]]></Script>
  640. </Form>
  641. </FDL>