SPMRD02000_희귀난치등록SAM파일관리.xfdl 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMRD02000" position="absolute 0 0 801 670" titletext="희귀난치등록 SAM파일관리" onload="SPMRD02000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="희귀난치등록 SAM파일관리" position="absolute 0 0 244 16" align="align:center middle;" id="caption14" class="tit_2"/>
  8. <Tab position="absolute 0 74 800 663" id="switch1" style="buttonpadding:4 20 4 20;" onchanged="switch1_onchanged" taborder="0">
  9. <Tabpages>
  10. <Tabpage text="송신" position="absolute 0 0 798 523" id="case1" style="anchor:default;margin:0 0 0 0;">
  11. <Layouts>
  12. <Layout>
  13. <Grid position="absolute 0 0 800 565" id="grd_send" binddataset="ds_main_rareobstlist" cellsizingtype="col" oncelldblclick="switch1_case1_grd_send_oncelldblclick">
  14. <Formats>
  15. <Format id="default">
  16. <Columns>
  17. <Column size="30" band="left"/>
  18. <Column size="34"/>
  19. <Column size="82"/>
  20. <Column size="83"/>
  21. <Column size="74"/>
  22. <Column size="71"/>
  23. <Column size="67"/>
  24. <Column size="100"/>
  25. <Column size="60"/>
  26. <Column size="60"/>
  27. <Column size="0"/>
  28. <Column size="90"/>
  29. <Column size="100"/>
  30. <Column size="40"/>
  31. <Column size="40"/>
  32. <Column size="130"/>
  33. <Column size="130"/>
  34. <Column size="60"/>
  35. <Column size="115"/>
  36. <Column size="200"/>
  37. <Column size="84"/>
  38. <Column size="60"/>
  39. <Column size="60"/>
  40. <Column size="60"/>
  41. <Column size="80"/>
  42. <Column size="80"/>
  43. <Column size="80"/>
  44. </Columns>
  45. <Rows>
  46. <Row size="24" band="head"/>
  47. <Row size="24"/>
  48. </Rows>
  49. <Band id="head">
  50. <Cell/>
  51. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  52. <Cell col="2" text="재등록여부"/>
  53. <Cell col="3" text="등록번호"/>
  54. <Cell col="4" text="진료과목"/>
  55. <Cell col="5" text="상병"/>
  56. <Cell col="6" text="특정기호"/>
  57. <Cell col="7" text="보험증번호"/>
  58. <Cell col="8" text="세대주"/>
  59. <Cell col="9" text="성명"/>
  60. <Cell col="10" text="특정코드"/>
  61. <Cell col="11" text="주민번호"/>
  62. <Cell col="12" text="전화번호"/>
  63. <Cell col="13" colspan="2" text="우편번호"/>
  64. <Cell col="15" text="수령주소(기본)"/>
  65. <Cell col="16" text="수령주소(상세)"/>
  66. <Cell col="17" text="입원/외래"/>
  67. <Cell col="18" text="희귀난치진단확인일"/>
  68. <Cell col="19" text="최종진단방법"/>
  69. <Cell col="20" text="의사면허번호"/>
  70. <Cell col="21" text="의사성명"/>
  71. <Cell col="22" text="신청자"/>
  72. <Cell col="23" text="관계"/>
  73. <Cell col="24" text="확인일자"/>
  74. <Cell col="25" text="신청일자"/>
  75. <Cell col="26" text="핸드폰번호"/>
  76. </Band>
  77. <Band id="body">
  78. <Cell style="background:URL('theme://images/bg_gridHead.png') stretch 3,3;background2:URL('theme://images/bg_gridHead.png') stretch 3,3;" text="expr:currow+1"/>
  79. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkflag" expr="expr:(chkflag==&quot;Y&quot;||chkflag==1)?1:0"/>
  80. <Cell col="2" text="bind:reregyn"/>
  81. <Cell col="3" displaytype="text" text="bind:pid"/>
  82. <Cell col="4" displaytype="text" text="bind:orddeptnm"/>
  83. <Cell col="5" displaytype="text" text="bind:healcarecd"/>
  84. <Cell col="6" text="bind:spclcd"/>
  85. <Cell col="7" text="bind:insuno"/>
  86. <Cell col="8" text="bind:insdnm"/>
  87. <Cell col="9" text="bind:hngnm"/>
  88. <Cell col="10" text="bind:spclcd"/>
  89. <Cell col="11" text="bind:rrgstno"/>
  90. <Cell col="12" text="bind:acptplcetel"/>
  91. <Cell col="13" text="bind:zipcdhead"/>
  92. <Cell col="14" text="bind:zipcdfoot"/>
  93. <Cell col="15" style="align:left;padding:0 3 0 3;" text="bind:acptplcebaseaddr"/>
  94. <Cell col="16" style="align:left;padding:0 3 0 3;" text="bind:acptplceaddr"/>
  95. <Cell col="17" displaytype="combo" edittype="combo" text="bind:genrflagcd" combodataset="ds_cmb_genrflagcd" combocodecol="value" combodatacol="label"/>
  96. <Cell col="18" displaytype="date" style="align:center;padding:0 3 0 3;" text="bind:rareobstcnfmdd"/>
  97. <Cell col="19" style="align:left;padding:0 3 0 3;" text="bind:sam"/>
  98. <Cell col="20" text="bind:licnsno"/>
  99. <Cell col="21" text="bind:orddrnm"/>
  100. <Cell col="22" text="bind:appmannm"/>
  101. <Cell col="23" displaytype="combo" edittype="combo" text="bind:relaflag" combodataset="ds_M0263" combocodecol="cdid" combodatacol="cdnm"/>
  102. <Cell col="24" displaytype="date" style="align:center;" text="bind:rgstdd"/>
  103. <Cell col="25" displaytype="date" style="align:center;" text="bind:prntdt"/>
  104. <Cell col="26" text="bind:acptplcempphon"/>
  105. </Band>
  106. </Format>
  107. </Formats>
  108. </Grid>
  109. </Layout>
  110. </Layouts>
  111. </Tabpage>
  112. <Tabpage text="수신" id="case2" style="anchor:default;margin:0 0 0 0;">
  113. <Layouts>
  114. <Layout>
  115. <Grid position="absolute 0 0 800 565" id="grd_recv" binddataset="ds_main_loaddata" cellsizingtype="col">
  116. <Formats>
  117. <Format id="default">
  118. <Columns>
  119. <Column size="30" band="left"/>
  120. <Column size="34"/>
  121. <Column size="70"/>
  122. <Column size="80"/>
  123. <Column size="149"/>
  124. <Column size="90"/>
  125. <Column size="110"/>
  126. <Column size="90"/>
  127. <Column size="110"/>
  128. <Column size="100"/>
  129. <Column size="80"/>
  130. <Column size="80"/>
  131. <Column size="86"/>
  132. <Column size="100"/>
  133. </Columns>
  134. <Rows>
  135. <Row size="24" band="head"/>
  136. <Row size="24"/>
  137. </Rows>
  138. <Band id="head">
  139. <Cell/>
  140. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  141. <Cell col="2" text="요양기관"/>
  142. <Cell col="3" text="작성일"/>
  143. <Cell col="4" text="서식명"/>
  144. <Cell col="5" text="가입자"/>
  145. <Cell col="6" text="건강보험증번호"/>
  146. <Cell col="7" text="성명(수진자)"/>
  147. <Cell col="8" text="주민번호(수진자)"/>
  148. <Cell col="9" text="등록번호(공단)"/>
  149. <Cell col="10" text="적용시작일"/>
  150. <Cell col="11" text="적용종료일"/>
  151. <Cell col="12" text="신청일자"/>
  152. <Cell col="13" text="신청구분"/>
  153. </Band>
  154. <Band id="body">
  155. <Cell style="background:URL('theme://images/bg_gridHead.png') stretch 3,3;background2:URL('theme://images/bg_gridHead.png') stretch 3,3;" text="expr:currow+1"/>
  156. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:status" expr="expr:(status==&quot;Y&quot;||status==1)?1:0"/>
  157. <Cell col="2" text="bind:proccorpcd"/>
  158. <Cell col="3" displaytype="date" text="bind:rgstdd"/>
  159. <Cell col="4" text="bind:formnm"/>
  160. <Cell col="5" text="bind:appmannm"/>
  161. <Cell col="6" text="bind:insuno"/>
  162. <Cell col="7" text="bind:pathngnm"/>
  163. <Cell col="8" text="bind:rrgstno"/>
  164. <Cell col="9" text="bind:insuranceid"/>
  165. <Cell col="10" displaytype="date" text="bind:startdate"/>
  166. <Cell col="11" displaytype="date" text="bind:enddate"/>
  167. <Cell col="12" displaytype="date" text="bind:genrdd"/>
  168. <Cell col="13" text="bind:remark"/>
  169. </Band>
  170. </Format>
  171. <Format id="load">
  172. <Columns>
  173. <Column size="34"/>
  174. <Column size="70"/>
  175. <Column size="80"/>
  176. <Column size="149"/>
  177. <Column size="90"/>
  178. <Column size="110"/>
  179. <Column size="90"/>
  180. <Column size="110"/>
  181. <Column size="100"/>
  182. <Column size="80"/>
  183. <Column size="80"/>
  184. <Column size="86"/>
  185. <Column size="100"/>
  186. </Columns>
  187. <Rows>
  188. <Row size="24" band="head"/>
  189. <Row size="24"/>
  190. </Rows>
  191. <Band id="head">
  192. <Cell displaytype="checkbox" edittype="checkbox"/>
  193. <Cell col="1" text="요양기관"/>
  194. <Cell col="2" text="작성일"/>
  195. <Cell col="3" text="서식명"/>
  196. <Cell col="4" text="가입자"/>
  197. <Cell col="5" text="건강보험증번호"/>
  198. <Cell col="6" text="성명(수진자)"/>
  199. <Cell col="7" text="주민번호(수진자)"/>
  200. <Cell col="8" text="등록번호(공단)"/>
  201. <Cell col="9" text="적용시작일"/>
  202. <Cell col="10" text="적용종료일"/>
  203. <Cell col="11" text="신청일자"/>
  204. <Cell col="12" text="신청구분"/>
  205. </Band>
  206. <Band id="body">
  207. <Cell displaytype="checkbox" edittype="checkbox" text="bind:status" expr="expr:(status==&quot;Y&quot;||status==1)?1:0"/>
  208. <Cell col="1" text="bind:proccorpcd"/>
  209. <Cell col="2" displaytype="date" text="bind:rgstdd"/>
  210. <Cell col="3" text="bind:formnm"/>
  211. <Cell col="4" text="bind:appmannm"/>
  212. <Cell col="5" text="bind:insuno"/>
  213. <Cell col="6" text="bind:pathngnm"/>
  214. <Cell col="7" text="bind:rrgstno"/>
  215. <Cell col="8" text="bind:insuranceid"/>
  216. <Cell col="9" displaytype="date" text="bind:startdate"/>
  217. <Cell col="10" displaytype="date" text="bind:enddate"/>
  218. <Cell col="11" displaytype="date" text="bind:genrdd"/>
  219. <Cell col="12" text="bind:remark"/>
  220. </Band>
  221. </Format>
  222. </Formats>
  223. </Grid>
  224. </Layout>
  225. </Layouts>
  226. </Tabpage>
  227. <Tabpage text="EDI내역" id="case3" style="anchor:default;margin:0 0 0 0;">
  228. <Layouts>
  229. <Layout>
  230. <Grid position="absolute 0 0 800 565" id="grd_edilist" binddataset="ds_main_upsamlist" cellsizingtype="col">
  231. <Formats>
  232. <Format id="default">
  233. <Columns>
  234. <Column size="25" band="left"/>
  235. <Column size="82"/>
  236. <Column size="76"/>
  237. <Column size="118"/>
  238. <Column size="110"/>
  239. <Column size="106"/>
  240. <Column size="84"/>
  241. <Column size="80"/>
  242. <Column size="100"/>
  243. </Columns>
  244. <Rows>
  245. <Row size="24" band="head"/>
  246. <Row size="24"/>
  247. </Rows>
  248. <Band id="head">
  249. <Cell/>
  250. <Cell col="1" text="등록번호"/>
  251. <Cell col="2" text="성명"/>
  252. <Cell col="3" text="주민번호"/>
  253. <Cell col="4" text="건강보험증번호"/>
  254. <Cell col="5" text="희귀난치등록번호"/>
  255. <Cell col="6" text="적용시작일"/>
  256. <Cell col="7" text="적용종료일"/>
  257. <Cell col="8" text="비고"/>
  258. </Band>
  259. <Band id="body">
  260. <Cell celltype="head" text="expr:currow + 1"/>
  261. <Cell col="1" text="bind:pid"/>
  262. <Cell col="2" text="bind:hngnm"/>
  263. <Cell col="3" text="bind:rrgstno"/>
  264. <Cell col="4" text="bind:insuno"/>
  265. <Cell col="5" text="bind:rareobstno"/>
  266. <Cell col="6" displaytype="date" text="bind:rareobstfromdd"/>
  267. <Cell col="7" displaytype="date" text="bind:rareobsttodd"/>
  268. <Cell col="8" text="bind:ediremfact"/>
  269. </Band>
  270. </Format>
  271. </Formats>
  272. </Grid>
  273. </Layout>
  274. </Layouts>
  275. </Tabpage>
  276. </Tabpages>
  277. </Tab>
  278. <Grid position="absolute 200 615 465 670" id="grd_filedata" visible="false" binddataset="ds_main_savedata" taborder="1">
  279. <Formats>
  280. <Format id="default">
  281. <Columns>
  282. <Column size="252"/>
  283. </Columns>
  284. <Rows>
  285. <Row size="24" band="head"/>
  286. <Row size="24"/>
  287. </Rows>
  288. <Band id="head">
  289. <Cell text="samstr"/>
  290. </Band>
  291. <Band id="body">
  292. <Cell text="bind:samstr"/>
  293. </Band>
  294. </Format>
  295. </Formats>
  296. </Grid>
  297. <Button position="absolute 605 70 669 89" id="btn_save" class="btn2" text="파일저장" onclick="btn_save_onclick" taborder="2"/>
  298. <Button position="absolute 670 70 734 89" id="btn_load" class="btn2" enable="false" text="파일열기" onclick="btn_load_onclick" taborder="3"/>
  299. <Button position="absolute 735 70 799 89" id="btn_update" class="btn2" enable="false" text="내용저장" onclick="btn_update_onclick" taborder="4"/>
  300. <Shape id="line1" class="line_1" position="absolute 0 17 800 21" style="strokepen:3 solid #9ebed4ff;"/>
  301. <Div id="group1" taborder="5" class="div_SA2" position="absolute 0 21 800 66">
  302. <Layouts>
  303. <Layout>
  304. <Static id="caption12" text="조회기간 :" class="search_name" position="absolute 10 13 105 30" anchor="default"/>
  305. <Static id="caption5" text="~" class="search_no_b" position="absolute 290 14 302 31" anchor="default"/>
  306. <Static id="caption1" text="구분 :" class="search_name" visible="false" position="absolute 37 27 102 44" anchor="default"/>
  307. <Radio id="rdo_sendyn" taborder="1" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" visible="false" position="absolute 102 26 232 46" anchor="default">
  308. <Dataset id="innerdataset">
  309. <ColumnInfo>
  310. <Column id="codecolumn"/>
  311. <Column id="datacolumn"/>
  312. </ColumnInfo>
  313. <Rows>
  314. <Row>
  315. <Col id="codecolumn">0</Col>
  316. <Col id="datacolumn">전송전</Col>
  317. </Row>
  318. <Row>
  319. <Col id="codecolumn">1</Col>
  320. <Col id="datacolumn">전송후</Col>
  321. </Row>
  322. </Rows>
  323. </Dataset>
  324. </Radio>
  325. <Calendar id="ipt_todd" taborder="2" class="input_search" position="absolute 305 12 405 31" anchor="default" autoselect="true"/>
  326. <Calendar id="ipt_fromdd" taborder="3" class="input_search" position="absolute 185 12 285 31" anchor="default" autoselect="true"/>
  327. <Button id="btn_srch" taborder="4" text="조회" class="btn1" position="absolute 720 11 776 33" anchor="default" onclick="group1_btn_srch_onclick"/>
  328. <Static id="caption2" text="등록자 주민등록번호:" class="search_name" visible="false" position="absolute 206 25 357 42" anchor="default"/>
  329. <Edit id="ipt_rrgstno" taborder="5" visible="false" position="absolute 361 24 496 43" anchor="default" autoselect="true"/>
  330. <Combo id="combo1" taborder="6" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 95 12 180 31" anchor="default">
  331. <Dataset id="innerdataset">
  332. <ColumnInfo>
  333. <Column id="codecolumn" size="256"/>
  334. <Column id="datacolumn" size="256"/>
  335. </ColumnInfo>
  336. <Rows>
  337. <Row>
  338. <Col id="codecolumn">1</Col>
  339. <Col id="datacolumn">요청일</Col>
  340. </Row>
  341. <Row>
  342. <Col id="codecolumn">2</Col>
  343. <Col id="datacolumn">서명일</Col>
  344. </Row>
  345. </Rows>
  346. </Dataset>
  347. </Combo>
  348. <Static id="caption3" text="등록번호 :" class="search_name" position="absolute 413 13 484 30"/>
  349. <Edit id="input1" taborder="7" autoselect="true" position="absolute 484 12 558 31"/>
  350. <CheckBox id="chk_rareobstnoyn" taborder="8" text="특례번호有 자료만" position="absolute 581 11 703 31" truevalue="Y" falsevalue="N" tooltiptext="특례번호가 있는 사람이지만 테스트용으로 샘파일을 만들어 볼 수 있습니다" tooltiptype="default,mouseleave"/>
  351. </Layout>
  352. </Layouts>
  353. </Div>
  354. </Layout>
  355. </Layouts>
  356. <Objects>
  357. <Dataset id="ds_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  358. <ColumnInfo>
  359. <Column id="fromdd" type="STRING" size="256"/>
  360. <Column id="todd" type="STRING" size="256"/>
  361. <Column id="sendyn" type="STRING" size="256"/>
  362. <Column id="sendrrgstno" type="STRING" size="256"/>
  363. <Column id="srchkind" type="STRING" size="256"/>
  364. <Column id="pid" type="STRING" size="256"/>
  365. <Column id="rareobstnoyn" type="STRING" size="256"/>
  366. </ColumnInfo>
  367. <Rows>
  368. <Row>
  369. <Col id="sendyn">0</Col>
  370. </Row>
  371. </Rows>
  372. </Dataset>
  373. <Dataset id="ds_main_rareobstlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_rareobstlist_oncolumnchanged">
  374. <ColumnInfo>
  375. <Column id="genrdd" type="STRING" size="256"/>
  376. <Column id="genrno" type="STRING" size="256"/>
  377. <Column id="histno" type="STRING" size="256"/>
  378. <Column id="instcd" type="STRING" size="256"/>
  379. <Column id="histcd" type="STRING" size="256"/>
  380. <Column id="anohosprgstflag" type="STRING" size="256"/>
  381. <Column id="genrflagcd" type="STRING" size="256"/>
  382. <Column id="pid" type="STRING" size="256"/>
  383. <Column id="insukind" type="STRING" size="256"/>
  384. <Column id="cncrdiagcnfmdd" type="STRING" size="256"/>
  385. <Column id="orddeptcd" type="STRING" size="256"/>
  386. <Column id="orddrid" type="STRING" size="256"/>
  387. <Column id="rareobstno" type="STRING" size="256"/>
  388. <Column id="rareobstfromdd" type="STRING" size="256"/>
  389. <Column id="rareobsttodd" type="STRING" size="256"/>
  390. <Column id="genrorddd" type="STRING" size="256"/>
  391. <Column id="genrcretno" type="STRING" size="256"/>
  392. <Column id="signyn" type="STRING" size="256"/>
  393. <Column id="signdt" type="STRING" size="256"/>
  394. <Column id="prntyn" type="STRING" size="256"/>
  395. <Column id="prntdt" type="STRING" size="256"/>
  396. <Column id="prntpsnid" type="STRING" size="256"/>
  397. <Column id="ediflag" type="STRING" size="256"/>
  398. <Column id="editretdd" type="STRING" size="256"/>
  399. <Column id="editrettm" type="STRING" size="256"/>
  400. <Column id="prstagtyn" type="STRING" size="256"/>
  401. <Column id="zipcdhead" type="STRING" size="256"/>
  402. <Column id="zipcdfoot" type="STRING" size="256"/>
  403. <Column id="seqno" type="STRING" size="256"/>
  404. <Column id="rgstdeptcd" type="STRING" size="256"/>
  405. <Column id="rgstdd" type="STRING" size="256"/>
  406. <Column id="rgsttm" type="STRING" size="256"/>
  407. <Column id="rgstrid" type="STRING" size="256"/>
  408. <Column id="updtdeptcd" type="STRING" size="256"/>
  409. <Column id="updtdd" type="STRING" size="256"/>
  410. <Column id="updttm" type="STRING" size="256"/>
  411. <Column id="updtrid" type="STRING" size="256"/>
  412. <Column id="fstrgstrid" type="STRING" size="256"/>
  413. <Column id="fstrgstdt" type="STRING" size="256"/>
  414. <Column id="lastupdtrid" type="STRING" size="256"/>
  415. <Column id="lastupdtdt" type="STRING" size="256"/>
  416. <Column id="maindiagcd" type="STRING" size="256"/>
  417. <Column id="healcarediagcd" type="STRING" size="256"/>
  418. <Column id="acptplcetel" type="STRING" size="256"/>
  419. <Column id="mpphontel" type="STRING" size="256"/>
  420. <Column id="acptplceaddr" type="STRING" size="256"/>
  421. <Column id="remfact" type="STRING" size="256"/>
  422. <Column id="hngnm" type="STRING" size="256"/>
  423. <Column id="orddeptnm" type="STRING" size="256"/>
  424. <Column id="orddrnm" type="STRING" size="256"/>
  425. <Column id="lastupdttrnm" type="STRING" size="256"/>
  426. <Column id="rrgstno" type="STRING" size="256"/>
  427. <Column id="insuno" type="STRING" size="256"/>
  428. <Column id="insunm" type="STRING" size="256"/>
  429. <Column id="insdrela" type="STRING" size="256"/>
  430. <Column id="relaflag" type="STRING" size="256"/>
  431. <Column id="appmannm" type="STRING" size="256"/>
  432. <Column id="infromdd" type="STRING" size="256"/>
  433. <Column id="intodd" type="STRING" size="256"/>
  434. <Column id="strcnfmmthd" type="STRING" size="256"/>
  435. <Column id="healcarediagnm" type="STRING" size="256"/>
  436. <Column id="acptplcebaseaddr" type="STRING" size="256"/>
  437. <Column id="maindiagnm" type="STRING" size="256"/>
  438. <Column id="licnsno" type="STRING" size="256"/>
  439. <Column id="samstr" type="STRING" size="256"/>
  440. <Column id="chkflag" type="STRING" size="256"/>
  441. <Column id="sam" type="STRING" size="256"/>
  442. <Column id="sendrrgstno" type="STRING" size="256"/>
  443. <Column id="maincd" type="STRING" size="256"/>
  444. <Column id="healcarecd" type="STRING" size="256"/>
  445. <Column id="report" type="STRING" size="256"/>
  446. <Column id="email" type="STRING" size="256"/>
  447. <Column id="spclcd" type="STRING" size="256"/>
  448. </ColumnInfo>
  449. </Dataset>
  450. <Dataset id="ds_main_loaddata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_loaddata_oncolumnchanged">
  451. <ColumnInfo>
  452. <Column id="status" type="STRING" size="256"/>
  453. <Column id="proccorpcd" type="STRING" size="256"/>
  454. <Column id="rgstdd" type="STRING" size="256"/>
  455. <Column id="formnm" type="STRING" size="256"/>
  456. <Column id="appmannm" type="STRING" size="256"/>
  457. <Column id="insuno" type="STRING" size="256"/>
  458. <Column id="pathngnm" type="STRING" size="256"/>
  459. <Column id="rrgstno" type="STRING" size="256"/>
  460. <Column id="insuranceid" type="STRING" size="256"/>
  461. <Column id="startdate" type="STRING" size="256"/>
  462. <Column id="enddate" type="STRING" size="256"/>
  463. <Column id="genrdd" type="STRING" size="256"/>
  464. <Column id="remark" type="STRING" size="256"/>
  465. </ColumnInfo>
  466. </Dataset>
  467. <Dataset id="ds_main_upsamlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  468. <ColumnInfo>
  469. <Column id="pid" type="STRING" size="256"/>
  470. <Column id="hngnm" type="STRING" size="256"/>
  471. <Column id="rrgstno" type="STRING" size="256"/>
  472. <Column id="insuno" type="STRING" size="256"/>
  473. <Column id="rareobstno" type="STRING" size="256"/>
  474. <Column id="rareobstfromdd" type="STRING" size="256"/>
  475. <Column id="rareobsttodd" type="STRING" size="256"/>
  476. <Column id="ediremfact" type="STRING" size="256"/>
  477. </ColumnInfo>
  478. </Dataset>
  479. <Dataset id="ds_M0263" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  480. <ColumnInfo>
  481. <Column id="cdid" type="STRING" size="256"/>
  482. <Column id="cdnm" type="STRING" size="256"/>
  483. </ColumnInfo>
  484. </Dataset>
  485. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  486. <ColumnInfo>
  487. <Column id="remanalyflag" type="STRING" size="256"/>
  488. </ColumnInfo>
  489. <Rows>
  490. <Row>
  491. <Col id="remanalyflag">send</Col>
  492. </Row>
  493. </Rows>
  494. </Dataset>
  495. <Dataset id="ds_main_rareobstdetllist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  496. <ColumnInfo>
  497. <Column id="genrdd" type="STRING" size="256"/>
  498. <Column id="genrno" type="STRING" size="256"/>
  499. <Column id="histno" type="STRING" size="256"/>
  500. <Column id="diagmthdcd" type="STRING" size="256"/>
  501. <Column id="instcd" type="STRING" size="256"/>
  502. <Column id="diagetccnts" type="STRING" size="256"/>
  503. </ColumnInfo>
  504. </Dataset>
  505. <Dataset id="ds_cmb_genrflagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  506. <ColumnInfo>
  507. <Column id="label" type="STRING" size="256"/>
  508. <Column id="value" type="STRING" size="256"/>
  509. </ColumnInfo>
  510. <Rows>
  511. <Row>
  512. <Col id="label">입원</Col>
  513. <Col id="value">I</Col>
  514. </Row>
  515. <Row>
  516. <Col id="label">외래</Col>
  517. <Col id="value">O</Col>
  518. </Row>
  519. </Rows>
  520. </Dataset>
  521. <Dataset id="ds_main_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  522. <Dataset id="ds_init_updatedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  523. <ColumnInfo>
  524. <Column id="pid" type="STRING" size="256"/>
  525. <Column id="genrdd" type="STRING" size="256"/>
  526. <Column id="genrno" type="STRING" size="256"/>
  527. <Column id="histno" type="STRING" size="256"/>
  528. <Column id="genrflagcd" type="STRING" size="256"/>
  529. <Column id="insukind" type="STRING" size="256"/>
  530. </ColumnInfo>
  531. </Dataset>
  532. <Dataset id="ds_init_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  533. <ColumnInfo>
  534. <Column id="samstr" type="STRING" size="256"/>
  535. </ColumnInfo>
  536. <Rows>
  537. <Row/>
  538. </Rows>
  539. </Dataset>
  540. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  541. <ColumnInfo>
  542. <Column id="status" type="STRING" size="256" sumtext="체크"/>
  543. <Column id="insuno" type="STRING" size="256" sumtext="건강보험증번호"/>
  544. <Column id="pathngnm" type="STRING" size="256" sumtext="수진자성명"/>
  545. <Column id="rrgstno" type="STRING" size="256" sumtext="수진자주민번호"/>
  546. <Column id="insuranceid" type="STRING" size="256" sumtext="중증번호"/>
  547. <Column id="startdate" type="STRING" size="256" sumtext="중증시작일자"/>
  548. <Column id="enddate" type="STRING" size="256" sumtext="중증종료일자"/>
  549. <Column id="remno" type="STRING" size="256" sumtext="코드"/>
  550. <Column id="remark" type="STRING" size="256" sumtext="비고"/>
  551. </ColumnInfo>
  552. <Rows>
  553. <Row/>
  554. </Rows>
  555. </Dataset>
  556. </Objects>
  557. <Bind>
  558. <BindItem id="item0" compid="group1.combo1" propid="value" datasetid="ds_srchinfo" columnid="srchkind"/>
  559. <BindItem id="item1" compid="group1.ipt_fromdd" propid="value" datasetid="ds_srchinfo" columnid="fromdd"/>
  560. <BindItem id="item2" compid="group1.ipt_todd" propid="value" datasetid="ds_srchinfo" columnid="todd"/>
  561. <BindItem id="item3" compid="group1.ipt_rrgstno" propid="value" datasetid="ds_srchinfo" columnid="sendrrgstno"/>
  562. <BindItem id="item4" compid="group1.rdo_sendyn" propid="value" datasetid="ds_srchinfo" columnid="sendyn"/>
  563. <BindItem id="item5" compid="group1.input1" propid="value" datasetid="ds_srchinfo" columnid="pid"/>
  564. <BindItem id="item6" compid="group1.chk_rareobstnoyn" propid="value" datasetid="ds_srchinfo" columnid="rareobstnoyn"/>
  565. </Bind>
  566. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  567. * System Name :
  568. * Job Name :
  569. * Creator :
  570. * Make Date : 2014-12-16
  571. * Description :
  572. *---------------------------------------------------------------------------------------
  573. * Modify Date Modifier Modify Description
  574. *---------------------------------------------------------------------------------------
  575. * 2014-12-16 Live Converter TF->XP
  576. *
  577. *---------------------------------------------------------------------------------------
  578. ****************************************************************************************/
  579. include "com_commonxp::comm_main.xjs";
  580. //=======================================================================================
  581. // Event
  582. //---------------------------------------------------------------------------------------
  583. /****************************************************************************************
  584. * Components : Form
  585. * Components ID : SMMRD02000
  586. * Event : onload
  587. * Argument : 01.obj : Object Event has occurred
  588. * : 02.e : Event Object
  589. * Description : 화면오픈시 폼load이후 실행
  590. ****************************************************************************************/
  591. function SPMRD02000_onload(obj:Form, e:LoadEventInfo)
  592. {
  593. frmf_initForm(obj); // 폼 초기화
  594. var dd = utlf_getCurrentDate();
  595. ds_srchinfo.setColumn(0,"fromdd", dd);
  596. ds_srchinfo.setColumn(0,"todd", dd);
  597. // zbcfGetCodeList(new Array( "M0263"), new Array( "/root/init/codelist"), true);
  598. var arrParam = [{dsNm: "ds_M0263", cdGrpId: "M0263"}
  599. ]
  600. appf_getCodeList(arrParam);
  601. grdf_initGrid(switch1.case1.grd_send);
  602. grdf_initGrid(switch1.case2.grd_recv);
  603. switch1.tabindex = 0;
  604. //2013/01/09 Start
  605. ds_srchinfo.setColumn(0,"srchkind", "1");
  606. //2013/01/09 End
  607. }
  608. /****************************************************************************************
  609. * Components : Button
  610. * Components ID : group1.btn_srch
  611. * Event : onclick
  612. * Argument : 01.obj : Object Event has occurred
  613. * : 02.e : Event Object
  614. * Description : 조회버튼 실행
  615. ****************************************************************************************/
  616. function group1_btn_srch_onclick(obj:Button, e:ClickEventInfo)
  617. {
  618. var sRemFlag = ds_cond.getColumn(0,"remanalyflag");
  619. var rareobstnoyn = ds_srchinfo.getColumn(0,"rareobstnoyn");
  620. var pid = ds_srchinfo.getColumn(0,"pid");
  621. if (rareobstnoyn == "Y" ) {
  622. if (utlf_isNull(pid)) {
  623. sysf_messageBox("등록번호를 반드시 입력하셔야 합니다","I");
  624. return;
  625. }
  626. }
  627. if (sRemFlag == "send"){
  628. // submit("TRMRD02003");
  629. var oParam = {};
  630. oParam.id = "TRMRD02003";
  631. oParam.service = "dschanalyapp.DschAnaly";
  632. oParam.method = "reqGetRareObstSAMList";
  633. oParam.inds = "req=ds_srchinfo";
  634. oParam.outds = "ds_main_rareobstlist=rareobstlist ds_main_rareobstdetllist=rareobstdetllist";
  635. oParam.async = false;
  636. oParam.callback = "";
  637. tranf_submit(oParam);
  638. } else if (sRemFlag == "edi"){
  639. // submit("TRMRD02006");
  640. var oParam = {};
  641. oParam.id = "TRMRD02006";
  642. oParam.service = "dschanalyapp.DschAnaly";
  643. oParam.method = "reqGetRareUpdateSAMList";
  644. oParam.inds = "req=ds_srchinfo";
  645. oParam.outds = "ds_main_upsamlist=upsamlist";
  646. oParam.async = false;
  647. oParam.callback = "";
  648. tranf_submit(oParam);
  649. }
  650. for(var i = 0 ; i < ds_main_rareobstlist.rowcount ; i++) {
  651. dsf_makeValue(ds_main_rareobstlist, "chkflag", "string", "Y", i);
  652. }
  653. }
  654. /****************************************************************************************
  655. * Components : Tab
  656. * Components ID : switch1
  657. * Event : onchanged
  658. * Argument : 01.obj : Object Event has occurred
  659. * : 02.e : Event Object
  660. * Description : 탭 페이지 변경
  661. ****************************************************************************************/
  662. function switch1_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  663. {
  664. if(e.postindex == 0) {
  665. fDisabled("send");
  666. dsf_makeValue(ds_cond,"remanalyflag","string","send");
  667. group1.btn_srch.visible = true;
  668. } else if(e.postindex == 1) {
  669. fDisabled("recv");
  670. dsf_makeValue(ds_cond,"remanalyflag","string","recv");
  671. group1.btn_srch.visible = false;
  672. } else {
  673. fDisabled("edi");
  674. dsf_makeValue(ds_cond,"remanalyflag","string","edi");
  675. group1.btn_srch.visible = true;
  676. }
  677. }
  678. /****************************************************************************************
  679. * Components : Button
  680. * Components ID : btn_save
  681. * Event : onclick
  682. * Argument : 01.obj : Object Event has occurred
  683. * : 02.e : Event Object
  684. * Description : 파일저장 버튼 실행
  685. ****************************************************************************************/
  686. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  687. {
  688. ds_main_savedata.clear();
  689. for(var i = 0; i < ds_main_rareobstlist.rowcount; i++) {
  690. var tmpChk = ds_main_rareobstlist.getColumn(i,"chkflag");
  691. if(tmpChk =="Y"){
  692. ds_init_updatedata.setColumn(0,"pid", ds_main_rareobstlist.getColumn(i,"pid"));
  693. ds_init_updatedata.setColumn(0,"genrdd", ds_main_rareobstlist.getColumn(i,"genrdd"));
  694. ds_init_updatedata.setColumn(0,"genrno", ds_main_rareobstlist.getColumn(i,"genrno"));
  695. ds_init_updatedata.setColumn(0,"histno", ds_main_rareobstlist.getColumn(i,"histno"));
  696. ds_init_updatedata.setColumn(0,"genrflagcd",ds_main_rareobstlist.getColumn(i,"genrflagcd"));
  697. ds_init_updatedata.setColumn(0,"insukind", ds_main_rareobstlist.getColumn(i,"insukind"));
  698. ds_init_savedata.setColumn(0,"samstr",ds_main_rareobstlist.getColumn(i,"samstr"));
  699. //ds_main_savedata.copyData(ds_init_savedata);
  700. dsf_copyDs(ds_main_savedata, ds_init_savedata, "after");
  701. // submit("TXMRD02005");
  702. /*
  703. var oParam = {};
  704. oParam.id = "TXMRD02005";
  705. oParam.service = "dschanalyapp.DschAnaly";
  706. oParam.method = "reqExeRareObstUpdate";
  707. oParam.inds = "updatedata=ds_init_updatedata";
  708. //oParam.outds = "ds_main_rareobstlist=rareobstlist";
  709. oParam.async = false;
  710. oParam.callback = "";
  711. tranf_submit(oParam);
  712. */
  713. }
  714. }
  715. //grdf_exportTxt(grd_filedata, "text", "", "");
  716. if( lf_grdf_exportCsv(grd_filedata, "text", "", "") != false ){
  717. alert("저장이 완료되었습니다.");
  718. }
  719. ds_main_savedata.clear();
  720. }
  721. function lf_grdf_exportCsv(objGrid, sFileName, sFilePath, sfileOpen)
  722. {
  723. var strValue = "";
  724. var objDs = eval(objGrid.binddataset);
  725. if(utlf_isNull(sFileName)){
  726. sFileName = objGrid.name + "_temp";
  727. }
  728. //fileopen 여부
  729. if(utlf_isNull(sfileOpen)){
  730. sfileOpen = "none";
  731. }else{
  732. sfileOpen = String(sfileOpen).toUpperCase();
  733. }
  734. var strFileName = sFileName+".txt";
  735. var newFilePath;
  736. var preFilePath;
  737. var objExtCommon = new ExtCommon();
  738. // 저장이면 파일 다이얼로그를 통하여 저장 경로를 선택한다.
  739. if (utlf_isNull(sFilePath))
  740. {
  741. var fd = new FileDialog();
  742. var vFile_down = fd.open("Excel Export", FileDialog.SAVE ,"%MYDOCUMENT%", strFileName);
  743. if (utlf_isNull(vFile_down))
  744. {
  745. return false;
  746. }
  747. strFileName = vFile_down.fullpath;
  748. }else{
  749. // export 시 내문서로 저장이 되기 때문에 파일 이동을 한다.
  750. var userHomeDir = system.convertRealPath("%MYDOCUMENT%");
  751. strFileName = userHomeDir + strFileName.replace(".txt","") + ".txt";
  752. preFilePath = strFileName;
  753. }
  754. //쉼표로 구분자를 준 CSV 형식의 그리드 데이터
  755. strValue = objGrid.getCsvData();
  756. var vfile = new VirtualFile();
  757. var to_day = new Date();
  758. var sTxt;
  759. sTxt = strValue.replace(String.fromCharCode(10),"\r\n");
  760. sTxt = sTxt.replace('"','');
  761. sTxt = sTxt + "\r\n";
  762. vfile.open(strFileName, VirtualFile.openWrite | VirtualFile.openText);
  763. var bSuccess2 = vfile.write(sTxt, "euc-kr");
  764. var bSuccess3 = vfile.close();
  765. vfile = null;
  766. var exeFileNM;
  767. if(!utlf_isNull(sFilePath)) //파일경로가 입력 되었을 경우
  768. {
  769. newFilePath = sFilePath + sFileName.replace(".txt","") + ".txt";
  770. if(objExtCommon.IsFileExist(newFilePath)) objExtCommon.DeleteFile(newFilePath);
  771. var rtn = objExtCommon.MoveFile(path, newFilePath, false);
  772. exeFileNM = newFilePath;
  773. } else{
  774. exeFileNM = strFileName;
  775. }
  776. if(sfileOpen == "OPEN"){
  777. objExtCommon.executeProcess(exeFileNM, "","");
  778. }else if(sfileOpen == "USER"){
  779. var bOK;
  780. bOK = confirm( "확인", "TXT파일을 열어보시겠습니까?", "question");
  781. if(bOK){
  782. objExtCommon.executeProcess(exeFileNM, "","");
  783. }
  784. }
  785. }
  786. /****************************************************************************************
  787. * Components : Button
  788. * Components ID : btn_load
  789. * Event : onclick
  790. * Argument : 01.obj : Object Event has occurred
  791. * : 02.e : Event Object
  792. * Description : 파일열기 버튼 실행(Excel업로드)
  793. ****************************************************************************************/
  794. function btn_load_onclick(obj:Button, e:ClickEventInfo)
  795. {
  796. ds_main_loaddata.clearData();
  797. switch1.case2.grd_recv.setFormat("load");
  798. // knuh_20110119 엑셀로 변경
  799. grdf_ImportExcel("ds_main_loaddata", 2, switch1.case2.grd_recv, 1);
  800. if(ds_main_loaddata.rowcount > 0) {
  801. for(var i = 0 ; i < ds_main_loaddata.rowcount ; i++) {
  802. ds_main_loaddata.setColumn(i,"status","Y");
  803. }
  804. }
  805. switch1.case2.grd_recv.setFormat("default");
  806. btn_update.enable = true;
  807. }
  808. /****************************************************************************************
  809. * Components : Button
  810. * Components ID : btn_update
  811. * Event : onclick
  812. * Argument : 01.obj : Object Event has occurred
  813. * : 02.e : Event Object
  814. * Description : Excel 업로드한 내용 저장
  815. ****************************************************************************************/
  816. function btn_update_onclick(obj:Button, e:ClickEventInfo)
  817. {
  818. var rows = ds_main_loaddata.rowcount;
  819. ds_send_savedata.clearData();
  820. for(var i = 0 ; i < rows ; i++) {
  821. var chk = ds_main_loaddata.getColumn(i,"status");
  822. if (chk == "Y") {
  823. var nAddRow = ds_send_savedata.addRow();
  824. ds_send_savedata.copyRow(nAddRow, ds_main_loaddata, i);
  825. var startdate = utlf_transNullToEmpty(ds_send_savedata.getColumn(nAddRow, "startdate"));
  826. startdate = startdate.setReplaceWord("/", "");
  827. var enddate = utlf_transNullToEmpty(ds_send_savedata.getColumn(nAddRow, "enddate"));
  828. enddate = enddate.setReplaceWord("/", "");
  829. ds_send_savedata.setColumn(nAddRow, "startdate", startdate);
  830. ds_send_savedata.setColumn(nAddRow, "enddate", enddate);
  831. }
  832. }
  833. // submit("TXMRD02004");
  834. var oParam = {};
  835. oParam.id = "TXMRD02004";
  836. oParam.service = "dschanalyapp.DschAnaly";
  837. oParam.method = "reqExeSaveRareObstUpdate";
  838. oParam.inds = "savedata=ds_send_savedata";
  839. oParam.outds = "ds_main_rareobstlist=rareobstlist";
  840. oParam.async = false;
  841. oParam.callback = "cf_TXMRD02004";
  842. tranf_submit(oParam);
  843. ds_main_loaddata.clearData();
  844. }
  845. /****************************************************************************************
  846. * Components : Dataset
  847. * Components ID : ds_main_loaddata
  848. * Event : oncolumnchanged
  849. * Argument : 01.obj : Object Event has occurred
  850. * : 02.e : Event Object
  851. * Description : Grid 내 checkbox 값 변경을 위함
  852. ****************************************************************************************/
  853. function ds_main_loaddata_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  854. {
  855. if(e.columnid=="status") {
  856. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  857. }
  858. }
  859. function ds_main_rareobstlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  860. {
  861. if(e.columnid=="chkflag") {
  862. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  863. }
  864. }
  865. //=======================================================================================
  866. // Function
  867. //---------------------------------------------------------------------------------------
  868. /****************************************************************************************
  869. * Function : fDisabled
  870. * Description : tab page별 버튼활성화 설정
  871. * Argument :
  872. * :
  873. * return type :
  874. * Creator :
  875. ****************************************************************************************/
  876. function fDisabled(flag){
  877. if(flag=="send"){
  878. var dd = utlf_getCurrentDate();
  879. // var sendValue = ds_srchinfo.getColumn(0,"sendyn");
  880. ds_srchinfo.setColumn(0,"fromdd",dd);
  881. ds_srchinfo.setColumn(0,"todd",dd);
  882. btn_save.enable = true;
  883. btn_load.enable = false;
  884. btn_update.enable = false;
  885. }else if(flag=="recv"){
  886. group1.caption2.visible = false;
  887. group1.ipt_rrgstno.visible = false;
  888. btn_save.enable = false;
  889. btn_load.enable = true;
  890. }else if(flag=="edi"){
  891. var dd = utlf_getCurrentDate();
  892. // var sendValue = ds_srchinfo.getColumn(0,"sendyn");
  893. ds_srchinfo.setColumn(0,"fromdd",dd);
  894. ds_srchinfo.setColumn(0,"todd",dd);
  895. group1.caption2.visible = false;
  896. group1.ipt_rrgstno.visible = false;
  897. btn_save.enable = false;
  898. btn_load.enable = false;
  899. btn_update.enable = false;
  900. }
  901. }
  902. /****************************************************************************************
  903. * Function : cf_TXMRD02004
  904. * Description : TXMRD02004 콜백함수
  905. * Argument :
  906. * :
  907. * return type :
  908. * Creator :
  909. ****************************************************************************************/
  910. function cf_TXMRD02004(sSvcId, nErrorCode, sErrorMsg) {
  911. if(nErrorCode < 0) {
  912. sysf_messageBox("저장에", "E009");
  913. return;
  914. } else {
  915. sysf_messageBox("저장이","I002");
  916. }
  917. }
  918. function switch1_case1_grd_send_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  919. {
  920. if ( e.row < 0 || e.col < 0) {
  921. return;
  922. }
  923. var row = e.row;
  924. var oDs = this.objects[obj.binddataset];
  925. var sGenrDd = oDs.getColumn(row, "genrdd");
  926. var sGenrNo = oDs.getColumn(row, "genrno");
  927. var sHistNo = oDs.getColumn(row, "histno");
  928. var sRgstKindCd = oDs.getColumn(row, "rgstkindcd");
  929. frmf_setParameter("SPMMO20000_genrdd", sGenrDd);
  930. frmf_setParameter("SPMMO20000_genrno", sGenrNo);
  931. frmf_setParameter("SPMMO20000_histno", sHistNo);
  932. frmf_setParameter("SPMMO20000_rgstkindcd", sRgstKindCd);
  933. frmf_setParameter("SPMMO20000_viewmode", "Y");
  934. if(sGenrDd < "20190101" ) { // 20190101 이전
  935. frmf_modal("SPMMO20002", "SPMMO20002", null, null, null, null, null, null, null, null, null, null, "M");
  936. } else {
  937. if(sRgstKindCd == "02" || sRgstKindCd == "09") { // 02 중증화상, 09 결핵
  938. if(sGenrDd < "20190301" ) { // 20190301 이전
  939. frmf_modal("SPMMO20002", "SPMMO20002", null, null, null, null, null, null, null, null, null, null, "M");
  940. } else {
  941. frmf_modal("SPMMO20004", "SPMMO20004", null, null, null, null, null, null, null, null, null, null, "M");
  942. }
  943. } else { // 07 극희귀, 08 상세불명, 10 중증치매V800, 11 중증치매V810, 12 희귀질환, 13 중증난치, 14 기타염색체
  944. frmf_modal("SPMMO20003", "SPMMO20003", null, null, null, null, null, null, null, null, null, null, "M");
  945. }
  946. }
  947. frmf_clearParameter("SPMMO20000_genrdd");
  948. frmf_clearParameter("SPMMO20000_genrno");
  949. frmf_clearParameter("SPMMO20000_histno");
  950. frmf_clearParameter("SPMMO20000_rgstkindcd");
  951. frmf_clearParameter("SPMMO20000_viewmode");
  952. }
  953. ]]></Script>
  954. </Form>
  955. </FDL>