SMPMC05400_미숙아사산사태신고조회.xfdl 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMC05400" position="absolute 0 0 1196 788" titletext="미숙아 사산/사태신고 조회" oninit="SMPMC05400_oninit" onload="SMPMC05400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Tab id="switch1" taborder="4" tabindex="0" position="absolute 0 81 1195 754" class="tab_Normal" anchor="all">
  8. <Tabpages>
  9. <Tabpage id="case1">
  10. <Layouts>
  11. <Layout>
  12. <Grid id="grd_immature" class="datagrid2" taborder="5" binddataset="ds_main_immaturelist_list" useinputpanel="false" position="absolute 0 0 1195 660" anchor="all" autoenter="select" cellsizingtype="col">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="25"/>
  17. <Column size="18"/>
  18. <Column size="80"/>
  19. <Column size="80"/>
  20. <Column size="80"/>
  21. <Column size="100"/>
  22. <Column size="70"/>
  23. <Column size="300"/>
  24. <Column size="90"/>
  25. <Column size="100"/>
  26. <Column size="80"/>
  27. <Column size="50"/>
  28. <Column size="15"/>
  29. <Column size="40"/>
  30. <Column size="20"/>
  31. <Column size="20"/>
  32. </Columns>
  33. <Rows>
  34. <Row size="24" band="head"/>
  35. <Row size="24"/>
  36. </Rows>
  37. <Band id="head">
  38. <Cell/>
  39. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  40. <Cell col="2" text="환자번호"/>
  41. <Cell col="3" text="산모성명"/>
  42. <Cell col="4" text="아기성명"/>
  43. <Cell col="5" text="산모주민번호"/>
  44. <Cell col="6" text="배우자성명"/>
  45. <Cell col="7" text="주소"/>
  46. <Cell col="8" text="전화번호"/>
  47. <Cell col="9" text="분만기관명"/>
  48. <Cell col="10" text="분만일자"/>
  49. <Cell col="11" colspan="2" text="체중" taborder="undefined"/>
  50. <Cell col="13" colspan="3" text="임신기간" taborder="undefined"/>
  51. </Band>
  52. <Band id="body">
  53. <Cell celltype="head" expr="currow+1"/>
  54. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkflag" expr="expr:chkflag == 'Y' ? 1 : 0"/>
  55. <Cell col="2" text="bind:pid"/>
  56. <Cell col="3" text="bind:patnm"/>
  57. <Cell col="4" text="bind:babynm"/>
  58. <Cell col="5" text="bind:rrgstno" mask="######-#######" maskchar=" "/>
  59. <Cell col="6" text="bind:partnernm"/>
  60. <Cell col="7" style="align:left top;padding:5 2 3 2;" text="bind:addr" wordwrap="word"/>
  61. <Cell col="8" text="bind:tel"/>
  62. <Cell col="9" text="bind:bthplcenm"/>
  63. <Cell col="10" text="bind:bthdt"/>
  64. <Cell col="11" displaytype="text" style="align:right middle;" text="bind:weig"/>
  65. <Cell col="12" text="bind:weigunit"/>
  66. <Cell col="13" displaytype="text" style="align:right middle;" text="bind:prgweekcnt"/>
  67. <Cell col="14" text="bind:termunit"/>
  68. <Cell col="15" displaytype="text" style="align:right middle;" text="bind:prgadddaycnt"/>
  69. </Band>
  70. </Format>
  71. </Formats>
  72. </Grid>
  73. </Layout>
  74. </Layouts>
  75. </Tabpage>
  76. <Tabpage id="case2">
  77. <Layouts>
  78. <Layout>
  79. <Grid id="grd_stillborn" class="datagrid2" taborder="5" binddataset="ds_main_stillbornlist_list" useinputpanel="false" position="absolute 0 0 1195 660" anchor="all" autoenter="select" cellsizingtype="col">
  80. <Formats>
  81. <Format id="default">
  82. <Columns>
  83. <Column size="28"/>
  84. <Column size="18"/>
  85. <Column size="80"/>
  86. <Column size="80"/>
  87. <Column size="100"/>
  88. <Column size="300"/>
  89. <Column size="80"/>
  90. <Column size="40"/>
  91. <Column size="20"/>
  92. <Column size="20"/>
  93. <Column size="100"/>
  94. <Column size="200"/>
  95. </Columns>
  96. <Rows>
  97. <Row size="24" band="head"/>
  98. <Row size="24"/>
  99. </Rows>
  100. <Band id="head">
  101. <Cell/>
  102. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  103. <Cell col="2" text="환자번호"/>
  104. <Cell col="3" text="성명"/>
  105. <Cell col="4" text="주민번호"/>
  106. <Cell col="5" text="주소"/>
  107. <Cell col="6" text="사망일자"/>
  108. <Cell col="7" colspan="3" text="임신기간" taborder="undefined"/>
  109. <Cell col="10" text="발생장소"/>
  110. <Cell col="11" text="원인"/>
  111. </Band>
  112. <Band id="body">
  113. <Cell celltype="head" expr="currow+1"/>
  114. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkflag" expr="expr:chkflag == 'Y' ? 1 : 0 "/>
  115. <Cell col="2" text="bind:pid"/>
  116. <Cell col="3" text="bind:hngnm"/>
  117. <Cell col="4" text="bind:rrgstno" mask="######-#######" maskchar=" "/>
  118. <Cell col="5" text="bind:addr"/>
  119. <Cell col="6" displaytype="date" text="bind:deathdd" calendardisplaynulltype="nulltext"/>
  120. <Cell col="7" text="bind:prgweekcnt"/>
  121. <Cell col="8" text="bind:termunit"/>
  122. <Cell col="9" text="bind:prgadddaycnt"/>
  123. <Cell col="10" displaytype="combo" text="bind:occurplce" combodataset="ds_cmb_occurplce" combocodecol="value" combodatacol="label" enable="false"/>
  124. <Cell col="11" text="bind:reason"/>
  125. </Band>
  126. </Format>
  127. </Formats>
  128. </Grid>
  129. </Layout>
  130. </Layouts>
  131. </Tabpage>
  132. </Tabpages>
  133. </Tab>
  134. <Static id="caption6" text="미숙아/사산/사태신고조회" class="tit_1" position="absolute 0 0 200 25"/>
  135. <Shape id="line32" class="line_6" position="absolute 0 753 1195 759" anchor="left right bottom"/>
  136. <Button id="button2" taborder="2" text="초기화" class="btn4" position="absolute 1127 760 1195 782" anchor="right bottom" onclick="button2_onclick"/>
  137. <Div id="group2" anchor="left top right" taborder="3" class="div_SA" position="absolute 0 25 1195 65">
  138. <Layouts>
  139. <Layout>
  140. <Shape id="line2" linetype="vertical" class="line_4" position="absolute 1105 9 1111 31" anchor="top right"/>
  141. <Static id="caption17" text="조회조건 :" class="search_name" position="absolute 13 12 99 29" anchor="default"/>
  142. <Button id="btn_ref" taborder="12" text="조회" class="btn1" position="absolute 1123 10 1179 32" anchor="top right" onclick="group2_btn_ref_onclick"/>
  143. <Combo id="cmb_cond" taborder="13" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 95 11 205 30" onitemchanged="group2_cmb_cond_onitemchanged" anchor="default">
  144. <Dataset id="innerdataset">
  145. <ColumnInfo>
  146. <Column id="codecolumn"/>
  147. <Column id="datacolumn"/>
  148. </ColumnInfo>
  149. <Rows>
  150. <Row>
  151. <Col id="codecolumn">0</Col>
  152. <Col id="datacolumn">미숙아신고</Col>
  153. </Row>
  154. <Row>
  155. <Col id="codecolumn">1</Col>
  156. <Col id="datacolumn">사산/사태신고</Col>
  157. </Row>
  158. </Rows>
  159. </Dataset>
  160. </Combo>
  161. <Calendar id="ipt_fromdd" taborder="14" autoselect="true" autoskip="true" position="absolute 311 11 411 30" anchor="default"/>
  162. <Static id="caption1" text="조회기간 :" class="search_name" position="absolute 228 12 314 29" anchor="default"/>
  163. <Calendar id="ipt_todd" taborder="15" autoselect="true" position="absolute 436 11 536 30" anchor="default"/>
  164. <Static id="caption3" text="~" position="absolute 418 11 433 31" anchor="default"/>
  165. </Layout>
  166. </Layouts>
  167. </Div>
  168. <Static id="caption2" text="조회 목록" class="tit_2" position="absolute 0 73 300 95"/>
  169. <Shape id="line1" class="line_10" position="absolute 0 89 1195 95" anchor="left top right"/>
  170. <Button id="btn_print" taborder="5" text="출력" class="btn6" position="absolute 1064 67 1114 89" anchor="top right" onclick="btn_print_onclick"/>
  171. <Button id="btn_excel" taborder="6" text="엑셀저장" class="btn7" position="absolute 1115 67 1195 89" anchor="top right" onclick="btn_excel_onclick"/>
  172. </Layout>
  173. </Layouts>
  174. <Objects>
  175. <Dataset id="ds_send_data1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  176. <ColumnInfo>
  177. <Column id="refcond" type="STRING" size="256"/>
  178. <Column id="cond_fromdd" type="STRING" size="256"/>
  179. <Column id="cond_todd" type="STRING" size="256"/>
  180. </ColumnInfo>
  181. <Rows>
  182. <Row>
  183. <Col id="refcond">0</Col>
  184. <Col id="cond_fromdd"/>
  185. <Col id="cond_todd"/>
  186. </Row>
  187. </Rows>
  188. </Dataset>
  189. <Dataset id="ds_main_immaturelist_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_immaturelist_list_oncolumnchanged">
  190. <ColumnInfo>
  191. <Column id="chkflag" type="STRING" size="256" sumtext="선택여부"/>
  192. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  193. <Column id="patnm" type="STRING" size="256" sumtext="임산부성명"/>
  194. <Column id="babynm" type="STRING" size="256" sumtext="아기성명"/>
  195. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호1"/>
  196. <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호2"/>
  197. <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
  198. <Column id="partnernm" type="STRING" size="256" sumtext="배우자성명"/>
  199. <Column id="addr" type="STRING" size="256" sumtext="주소"/>
  200. <Column id="tel" type="STRING" size="256" sumtext="전화번호"/>
  201. <Column id="bthplcenm" type="STRING" size="256" sumtext="분만기관명"/>
  202. <Column id="bthdt" type="STRING" size="256" sumtext="분만일자"/>
  203. <Column id="weig" type="STRING" size="256" sumtext="출생시아기체중"/>
  204. <Column id="prgweekcnt" type="STRING" size="256" sumtext="임신기간(주)"/>
  205. <Column id="prgadddaycnt" type="STRING" size="256" sumtext="임신기간(잔여일)"/>
  206. <Column id="weigunit" type="STRING" size="256" sumtext="체중단위"/>
  207. <Column id="termunit" type="STRING" size="256" sumtext="임신기간 단위"/>
  208. <Column id="hospnm" type="STRING" size="256" sumtext="병원명"/>
  209. <Column id="hospaddr" type="STRING" size="256" sumtext="병원주소"/>
  210. <Column id="hosptel" type="STRING" size="256" sumtext="병원전화"/>
  211. <Column id="healcntrnm" type="STRING" size="256" sumtext="보건소명"/>
  212. <Column id="prsdnm" type="STRING" size="256" sumtext="의료기관장"/>
  213. <Column id="proccorpcd" type="STRING" size="256" sumtext="요양기관기호"/>
  214. <Column id="diagnm" type="STRING" size="256" sumtext="진단"/>
  215. <Column id="diagcd" type="STRING" size="256" sumtext="질병코드"/>
  216. <Column id="diagnm2" type="STRING" size="256" sumtext="진단"/>
  217. <Column id="diagcd2" type="STRING" size="256" sumtext="질병코드"/>
  218. </ColumnInfo>
  219. </Dataset>
  220. <Dataset id="ds_main_stillbornlist_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_stillbornlist_list_oncolumnchanged">
  221. <ColumnInfo>
  222. <Column id="chkflag" type="STRING" size="256" sumtext="선택여부"/>
  223. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  224. <Column id="hngnm" type="STRING" size="256" sumtext="임산부성명"/>
  225. <Column id="brthdd" type="STRING" size="256" sumtext="생년월일"/>
  226. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호1"/>
  227. <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호2"/>
  228. <Column id="rrgstno" type="STRING" size="256" sumtext="주민번호"/>
  229. <Column id="addr" type="STRING" size="256" sumtext="주소"/>
  230. <Column id="prgweekcnt" type="STRING" size="256" sumtext="임신기간(주)"/>
  231. <Column id="prgadddaycnt" type="STRING" size="256" sumtext="임신기간(잔여일)"/>
  232. <Column id="termunit" type="STRING" size="256" sumtext="임신기간 단위"/>
  233. <Column id="deathdd" type="STRING" size="256" sumtext="사망일자"/>
  234. <Column id="occurplce" type="STRING" size="256" sumtext="발생장소"/>
  235. <Column id="reason" type="STRING" size="256" sumtext="사망사유"/>
  236. <Column id="hospnm" type="STRING" size="256" sumtext="병원명"/>
  237. <Column id="hospaddr" type="STRING" size="256" sumtext="병원주소"/>
  238. <Column id="hosptel" type="STRING" size="256" sumtext="병원전화"/>
  239. <Column id="healcntrnm" type="STRING" size="256" sumtext="보건소명"/>
  240. <Column id="roominginyn" type="STRING" size="256" sumtext="모자동실실시여부"/>
  241. <Column id="roomingincnt" type="STRING" size="256" sumtext="모자동실병상수"/>
  242. </ColumnInfo>
  243. </Dataset>
  244. <Dataset id="ds_cmb_occurplce" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  245. <ColumnInfo>
  246. <Column id="label" type="STRING" size="256"/>
  247. <Column id="value" type="STRING" size="256"/>
  248. </ColumnInfo>
  249. <Rows>
  250. <Row>
  251. <Col id="label">의료기관</Col>
  252. <Col id="value">Y</Col>
  253. </Row>
  254. <Row>
  255. <Col id="label">기타</Col>
  256. <Col id="value">N</Col>
  257. </Row>
  258. </Rows>
  259. </Dataset>
  260. <Dataset id="ds_hidden_print_immature" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  261. <Dataset id="ds_hidden_print_stillborn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  262. </Objects>
  263. <Bind>
  264. <BindItem id="item0" compid="group2.cmb_cond" propid="value" datasetid="ds_send_data1" columnid="refcond"/>
  265. <BindItem id="item1" compid="group2.ipt_fromdd" propid="value" datasetid="ds_send_data1" columnid="cond_fromdd"/>
  266. <BindItem id="item2" compid="group2.ipt_todd" propid="value" datasetid="ds_send_data1" columnid="cond_todd"/>
  267. </Bind>
  268. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  269. * System Name :
  270. * Job Name :
  271. * Creator :
  272. * Make Date : 2016-05-24
  273. * Description :
  274. *---------------------------------------------------------------------------------------
  275. * Modify Date Modifier Modify Description
  276. *---------------------------------------------------------------------------------------
  277. * 2016-05-24 Live Converter TF->XP
  278. *
  279. *---------------------------------------------------------------------------------------
  280. ****************************************************************************************/
  281. include "com_commonxp::comm_main.xjs"
  282. include "com_basiccodexp::ZBC001.xjs"
  283. var arErrorCode = new HashArray();
  284. function SMPMC05400_oninit(obj:Form, e:InitEventInfo)
  285. {
  286. frmf_initForm(obj);
  287. }
  288. function SMPMC05400_onload(obj:Form, e:LoadEventInfo)
  289. {
  290. grdf_initGrid(switch1.case1.grd_immature);
  291. grdf_initGrid(switch1.case2.grd_stillborn);
  292. fInitialize();
  293. }
  294. function fInitialize()
  295. {
  296. ds_main_immaturelist_list.clearData();
  297. ds_main_stillbornlist_list.clearData();
  298. ds_send_data1.clearData();
  299. ds_send_data1.addRow();
  300. ds_send_data1.setColumn(0, "refcond","0");
  301. ds_send_data1.setColumn(0, "cond_fromdd",utlf_getCurrentDate());
  302. ds_send_data1.setColumn(0, "cond_todd",utlf_getCurrentDate());
  303. fSelectRefItem();
  304. }
  305. function fSelectRefItem()
  306. {
  307. // 0. 미숙아신고 1. 사산, 사태신고
  308. var sRefCond = ds_send_data1.getColumn(0, "refcond");
  309. // 항목 선택에 따른 그리드 스위칭...
  310. // 미숙아
  311. if (sRefCond == "0")
  312. {
  313. switch1.tabindex = 0;
  314. }
  315. // 사산, 사태
  316. if (sRefCond == "1")
  317. {
  318. switch1.tabindex = 1;
  319. }
  320. }
  321. function group2_cmb_cond_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  322. {
  323. fSelectRefItem();
  324. }
  325. function fCheckRefCondition()
  326. {
  327. // 1. 전체 2.환자번호 4.진료과 5.병동
  328. var sRefCond = ds_send_data1.getColumn(0, "refcond");
  329. var sCondFromdd = ds_send_data1.getColumn(0, "cond_fromdd");
  330. var sCondTodd = ds_send_data1.getColumn(0, "cond_todd");
  331. var bResult = false;
  332. // 조회날짜 체크
  333. if (utlf_isNull(sCondFromdd) || utlf_isNull(sCondTodd))
  334. {
  335. bResult = false;
  336. sysf_messageBox("조회 시작일자 또는 종료일자를 확인하십시오!!", "I");
  337. }
  338. else
  339. {
  340. bResult = true;
  341. }
  342. return bResult;
  343. }
  344. function group2_btn_ref_onclick(obj:Button, e:ClickEventInfo)
  345. {
  346. // 조회 구분별로 체크 로직 추가....
  347. var bOK = fCheckRefCondition();
  348. var sRefCond = ds_send_data1.getColumn(0, "refcond");
  349. if (bOK == true)
  350. {
  351. // 미숙아
  352. if (sRefCond == "0")
  353. {
  354. ds_main_immaturelist_list.clearData();
  355. var oParam = {};
  356. oParam.id = "TRPMC05401";
  357. oParam.service = "patinfomngtapp.HealCntrRept";
  358. oParam.method = "reqGetImmatureList";
  359. oParam.inds = "req=ds_send_data1";
  360. oParam.outds = "ds_main_immaturelist_list=list";
  361. oParam.async = false;
  362. //oParam.callback = "cf_TRPMC05401";
  363. tranf_submit(oParam);
  364. ds_main_immaturelist_list.updatecontrol = false;
  365. dsf_setFixVal(ds_main_immaturelist_list, "chkflag:N");
  366. ds_main_immaturelist_list.updatecontrol = true;
  367. var iCount = ds_main_immaturelist_list.rowcount;
  368. if (iCount == 0)
  369. {
  370. sysf_messageBox("조회 결과가 없습니다.", "I");
  371. }
  372. }
  373. // 사산, 사태
  374. if (sRefCond == "1")
  375. {
  376. ds_main_stillbornlist_list.clearData();
  377. var oParam = {};
  378. oParam.id = "TRPMC05402";
  379. oParam.service = "patinfomngtapp.HealCntrRept";
  380. oParam.method = "reqGetStillBornList";
  381. oParam.inds = "req=ds_send_data1";
  382. oParam.outds = "ds_main_stillbornlist_list=list";
  383. oParam.async = false;
  384. //oParam.callback = "cf_TRPMC05402";
  385. tranf_submit(oParam);
  386. ds_main_stillbornlist_list.updatecontrol = false;
  387. dsf_setFixVal(ds_main_stillbornlist_list, "chkflag:N");
  388. ds_main_stillbornlist_list.updatecontrol = true;
  389. var iCount = ds_main_stillbornlist_list.rowcount;
  390. if (iCount == 0)
  391. {
  392. sysf_messageBox("조회 결과가 없습니다.", "I");
  393. }
  394. }
  395. }
  396. }
  397. function ds_main_immaturelist_list_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  398. {
  399. if(e.columnid == "chkflag")
  400. {
  401. obj.setColumn(e.row, "chkflag", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  402. }
  403. }
  404. function ds_main_stillbornlist_list_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  405. {
  406. if(e.columnid == "chkflag")
  407. {
  408. obj.setColumn(e.row, "chkflag", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  409. }
  410. }
  411. function fPrint()
  412. {
  413. var sRefCond = ds_send_data1.getColumn(0, "refcond");
  414. // 미숙아신고서
  415. if (sRefCond == "0")
  416. {
  417. var iRows = ds_main_immaturelist_list.rowcount;
  418. if (iRows >= 0)
  419. {
  420. ds_hidden_print_immature.copyData(ds_main_immaturelist_list);
  421. ds_hidden_print_immature.clearData();
  422. for (var idx = 0; idx < iRows ; idx++)
  423. {
  424. var bIsChecked = ds_main_immaturelist_list.getColumn(idx, "chkflag");
  425. if (bIsChecked == "Y")
  426. {
  427. ds_hidden_print_immature.copyRow(ds_hidden_print_immature.addRow(), ds_main_immaturelist_list, idx);
  428. dsf_makeValue(ds_hidden_print_immature, "year", "String", String(utlf_getCurrentDate()).substr(0, 4));
  429. dsf_makeValue(ds_hidden_print_immature, "month", "String", String(utlf_getCurrentDate()).substr(4, 2));
  430. dsf_makeValue(ds_hidden_print_immature, "day", "String", String(utlf_getCurrentDate()).substr(6, 2));
  431. var objDOM = rptf_createDOM();
  432. rptf_setNodeListToDOM(objDOM, "/root/hidden/print/immature", ds_hidden_print_immature);
  433. var objParam = new Object();
  434. objParam.xml_data_XML1 = objDOM.documentElement.source;
  435. var option = null;
  436. rptf_exeReportPreview30(["RPPMC05403"],[objParam], option);
  437. ds_hidden_print_immature.clearData();
  438. }
  439. }
  440. }
  441. else
  442. {
  443. sysf_messageBox("출력할 내용이 없습니다!!", "I");
  444. }
  445. }
  446. // 사산보고서
  447. if (sRefCond == "1")
  448. {
  449. var iRows = ds_main_stillbornlist_list.rowcount;
  450. if (iRows > 0)
  451. {
  452. ds_hidden_print_stillborn.copyData(ds_main_stillbornlist_list);
  453. ds_hidden_print_stillborn.clearData();
  454. for (var idx = 0; idx < iRows ; idx++)
  455. {
  456. var bIsChecked = ds_main_stillbornlist_list.getColumn(idx, "chkflag");
  457. if (bIsChecked == "Y")
  458. {
  459. ds_hidden_print_stillborn.copyRow(ds_hidden_print_stillborn.addRow(), ds_main_stillbornlist_list, idx);
  460. dsf_makeValue(ds_hidden_print_stillborn, "year", "string", String(utlf_getCurrentDate()).substr(0, 4));
  461. dsf_makeValue(ds_hidden_print_stillborn, "month", "string", String(utlf_getCurrentDate()).substr(4, 2));
  462. dsf_makeValue(ds_hidden_print_stillborn, "day", "string", String(utlf_getCurrentDate()).substr(6, 2));
  463. var objDOM = rptf_createDOM();
  464. rptf_setNodeListToDOM(objDOM, "/root/hidden/print/stillborn", ds_hidden_print_stillborn);
  465. var objParam = new Object();
  466. objParam.xml_data_XML1 = objDOM.documentElement.source;
  467. var option = null;
  468. rptf_exeReportPreview30(["RPPMC05402"],[objParam], option);
  469. ds_hidden_print_stillborn.clearData();
  470. }
  471. }
  472. }
  473. else
  474. {
  475. sysf_messageBox("출력할 내용이 없습니다!!", "I");
  476. }
  477. }
  478. }
  479. function btn_print_onclick(obj:Button, e:ClickEventInfo)
  480. {
  481. fPrint();
  482. }
  483. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  484. {
  485. var sRefCond = ds_send_data1.getColumn(0, "refcond");
  486. if (sRefCond == "0")
  487. {
  488. grdf_exportExcel(switch1.case1.grd_immature, utlf_getCurrentDate(), "SheetName", "true", "", "");
  489. }
  490. if (sRefCond == "1")
  491. {
  492. grdf_exportExcel(switch1.case2.grd_stillborn, utlf_getCurrentDate(), "SheetName", "true", "", "");
  493. }
  494. }
  495. function button2_onclick(obj:Button, e:ClickEventInfo)
  496. {
  497. fInitialize();
  498. }
  499. ]]></Script>
  500. </Form>
  501. </FDL>