SMMNN02500_출생 100일 대상자 조회.xfdl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNN02500" position="absolute 0 0 1206 760" titletext="출생 100일 대상자 조회" onload="SMMNN02500_onload" ontimer="SMMNN02500_ontimer" scrollbars="none">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_tle" position="absolute 0 2 1195 31" style="">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption6" class="tit_1" position="absolute 0 0 191 22" style="" text="출생 100일 대상자 조회" anchor="default"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div id="grp_biz" scrollbars="autoboth" position="absolute 0 28 1195 763" style="">
  15. <Layouts>
  16. <Layout>
  17. <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 0 66 1194 69" style="strokepen:4 solid #33bbbbff;" anchor="default"/>
  18. <Div id="grp_sea" position="absolute 0 5 1194 40" style="align: top;">
  19. <Layouts>
  20. <Layout>
  21. <Shape id="roundrect1" anchor="default" type="roundrectangle" position="absolute 0 0 1194 35" style="border: solid #ffd799 #ffd799;background:#fffbf2 ;"/>
  22. <Static id="caption2" class="search_name" position="absolute 15 8 105 25" style="" text="조회일자 :"/>
  23. <Shape id="line13" class="line_4" linetype="vertical" position="absolute 970 5 973 27" style="" anchor="default"/>
  24. <Static id="caption4" position="absolute 212 10 227 24" style="align: middle;" text="~"/>
  25. <Calendar id="ipt_bthddtodd" class="input_s_essential" position="absolute 226 9 326 28" style="" anchor="default" onkillfocus="grp_biz_grp_sea_ipt_bthddtodd_onkillfocus" autoselect="true"/>
  26. <Calendar id="ipt_bthddfromdd" class="input_s_essential" position="absolute 109 9 209 28" style="" anchor="default" onkillfocus="grp_biz_grp_sea_ipt_bthddfromdd_onkillfocus" autoselect="true" autoskip="true"/>
  27. <Button id="btn_save" class="btn1" position="absolute 980 7 1036 29" style="" text="조회" onclick="grp_biz_grp_sea_btn_save_onclick"/>
  28. <Button id="btn_print" class="btn6" position="absolute 1127 7 1183 29" style="" text="출력" onclick="grp_biz_grp_sea_btn_print_onclick"/>
  29. <Static id="caption3" class="search_name" position="absolute 355 8 445 25" style="" text="사망구분 :"/>
  30. <Button id="btn_saveexcel" class="btn7" position="absolute 1042 7 1122 29" style="" text="엑셀저장" onclick="grp_biz_grp_sea_btn_saveexcel_onclick"/>
  31. <CheckBox id="CheckBox00" taborder="1" text="사망제외" position="absolute 435 5 535 25" truevalue="Y" value="true"/>
  32. </Layout>
  33. </Layouts>
  34. </Div>
  35. <Static id="caption1" class="tit_2" position="absolute 1 48 214 66" style="align:left;" text="출생 100일 대상자 리스트"/>
  36. <Grid id="grd_nbabyhoundlist" binddataset="ds_main_nbabyinfo_nbabyinfolist" class="datagrid2" position="absolute 0 70 1194 724" style="" cellsizingtype="col" selecttype="multirow">
  37. <Formats>
  38. <Format id="default">
  39. <Columns>
  40. <Column size="27"/>
  41. <Column size="125"/>
  42. <Column size="85"/>
  43. <Column size="72"/>
  44. <Column size="120"/>
  45. <Column size="60"/>
  46. <Column size="70"/>
  47. <Column size="362"/>
  48. <Column size="137"/>
  49. <Column size="64"/>
  50. <Column size="60"/>
  51. </Columns>
  52. <Rows>
  53. <Row size="24" band="head"/>
  54. <Row size="22"/>
  55. </Rows>
  56. <Band id="head">
  57. <Cell/>
  58. <Cell col="1" text="출생일자"/>
  59. <Cell col="2" text="100일자"/>
  60. <Cell col="3" text="산모성명"/>
  61. <Cell col="4" text="아기이름"/>
  62. <Cell col="5" text="성별"/>
  63. <Cell col="6" text="몸무게"/>
  64. <Cell col="7" text="주소"/>
  65. <Cell col="8" text="전화번호"/>
  66. <Cell col="9" text="출생시사망"/>
  67. <Cell col="10" text="사망여부"/>
  68. <Cell col="11" text="seqno"/>
  69. </Band>
  70. <Band id="body">
  71. <Cell celltype="head" expr="currow+1"/>
  72. <Cell col="1" displaytype="date" text="bind:bthdt" mask="yyyy-MM-dd HH:MM" calendardisplaynulltype="none"/>
  73. <Cell col="2" text="bind:hundbthdt"/>
  74. <Cell col="3" style="align:left;" text="bind:patnm"/>
  75. <Cell col="4" style="align:left;" text="bind:babynm"/>
  76. <Cell col="5" text="bind:gndr"/>
  77. <Cell col="6" text="bind:weig"/>
  78. <Cell col="7" style="align:left;" text="bind:addr"/>
  79. <Cell col="8" style="align:left;" text="bind:hometel"/>
  80. <Cell col="9" text="bind:drdethyn"/>
  81. <Cell col="10" text="bind:inptdethyn"/>
  82. </Band>
  83. </Format>
  84. </Formats>
  85. </Grid>
  86. </Layout>
  87. </Layouts>
  88. </Div>
  89. <Div id="grp_btn" position="absolute 0 767 1195 794" style=""/>
  90. </Layout>
  91. </Layouts>
  92. <Objects>
  93. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  94. <ColumnInfo>
  95. <Column id="fromdd" type="STRING" size="256"/>
  96. <Column id="todd" type="STRING" size="256"/>
  97. <Column id="dethyn" type="STRING" size="256"/>
  98. </ColumnInfo>
  99. <Rows>
  100. <Row>
  101. <Col id="fromdd"/>
  102. <Col id="todd"/>
  103. <Col id="dethyn">Y</Col>
  104. </Row>
  105. </Rows>
  106. </Dataset>
  107. <Dataset id="ds_main_nbabyinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  108. <ColumnInfo/>
  109. </Dataset>
  110. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  111. <ColumnInfo>
  112. <Column id="reqdata" type="STRING" size="256"/>
  113. <Column id="printdata" type="STRING" size="256"/>
  114. </ColumnInfo>
  115. <Rows>
  116. <Row>
  117. <Col id="reqdata"/>
  118. <Col id="printdata"/>
  119. </Row>
  120. </Rows>
  121. </Dataset>
  122. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  123. <ColumnInfo>
  124. <Column id="temp" type="STRING" size="256"/>
  125. </ColumnInfo>
  126. </Dataset>
  127. <Dataset id="ds_main_nbabyinfo_nbabyinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  128. <ColumnInfo>
  129. <Column id="bthdt" type="STRING" size="256"/>
  130. <Column id="hundbthdt" type="STRING" size="256"/>
  131. <Column id="patnm" type="STRING" size="256"/>
  132. <Column id="babynm" type="STRING" size="256"/>
  133. <Column id="gndr" type="STRING" size="256"/>
  134. <Column id="weig" type="STRING" size="256"/>
  135. <Column id="addr" type="STRING" size="256"/>
  136. <Column id="hometel" type="STRING" size="256"/>
  137. <Column id="drdethyn" type="STRING" size="256"/>
  138. <Column id="inptdethyn" type="STRING" size="256"/>
  139. </ColumnInfo>
  140. <Rows>
  141. <Row>
  142. <Col id="bthdt"/>
  143. <Col id="hundbthdt"/>
  144. <Col id="patnm"/>
  145. <Col id="babynm"/>
  146. <Col id="gndr"/>
  147. <Col id="weig"/>
  148. <Col id="addr"/>
  149. <Col id="hometel"/>
  150. <Col id="drdethyn"/>
  151. <Col id="inptdethyn"/>
  152. </Row>
  153. </Rows>
  154. </Dataset>
  155. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  156. <ColumnInfo>
  157. <Column id="hidden" type="STRING" size="256"/>
  158. </ColumnInfo>
  159. <Rows>
  160. <Row>
  161. <Col id="hidden"/>
  162. </Row>
  163. </Rows>
  164. </Dataset>
  165. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  166. <ColumnInfo/>
  167. </Dataset>
  168. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  169. <ColumnInfo>
  170. <Column id="init" type="STRING" size="256"/>
  171. </ColumnInfo>
  172. <Rows>
  173. <Row>
  174. <Col id="init"/>
  175. </Row>
  176. </Rows>
  177. </Dataset>
  178. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  179. <ColumnInfo>
  180. <Column id="reqdata" type="STRING" size="256"/>
  181. <Column id="printdata" type="STRING" size="256"/>
  182. </ColumnInfo>
  183. <Rows>
  184. <Row>
  185. <Col id="reqdata"/>
  186. <Col id="printdata"/>
  187. </Row>
  188. </Rows>
  189. </Dataset>
  190. <Dataset id="ds_send_printdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  191. </Objects>
  192. <Bind>
  193. <BindItem id="item0" compid="grp_biz.grp_sea.ipt_bthddtodd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  194. <BindItem id="item1" compid="grp_biz.grp_sea.ipt_bthddfromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  195. <BindItem id="item2" compid="grp_biz.grp_sea.CheckBox00" propid="value" datasetid="ds_main_cond" columnid="dethyn"/>
  196. </Bind>
  197. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  198. * System Name :
  199. * Job Name :
  200. * Creator :
  201. * Make Date : 2015-11-09
  202. * Description :
  203. *---------------------------------------------------------------------------------------
  204. * Modify Date Modifier Modify Description
  205. *---------------------------------------------------------------------------------------
  206. * 2015-11-09 Live Converter TF->XP
  207. *
  208. *---------------------------------------------------------------------------------------
  209. ****************************************************************************************/
  210. include "com_commonxp::comm_main.xjs";
  211. //include "emr_partrtnnbabyxp::SMMNN02500.xjs";
  212. include "com_basiccodexp::ZBC001.xjs";
  213. var xnbabyhoundListPath = "ds_main_nbabyinfo_nbabyinfolist";
  214. var xPrintListPath = "ds_send_printdata_nbabyinfo_nbabyinfolist";
  215. function SMMNN02500_onload(obj:Form, e:LoadEventInfo) {
  216. frmf_initForm(obj);
  217. grdf_initGrid(grp_biz.grd_nbabyhoundlist)
  218. this.setTimer(0, 1);
  219. //fInitialize();
  220. }
  221. /**
  222. * _group :
  223. * _ver : 2008.11.20
  224. * _by : 정경화
  225. * _---------------------------------------------------
  226. * _type : function
  227. * _access : public
  228. * _desc : 초기화 작업을 합니다.
  229. * _param :
  230. * _param :
  231. * _return :
  232. * _---------------------------------------------------
  233. */
  234. function fInitialize(){
  235. ds_main_cond.setColumn( 0, "fromdd", utlf_getCurrentDate());
  236. ds_main_cond.setColumn( 0, "todd", utlf_getCurrentDate());
  237. fGetnbabyhoundInfo();
  238. }
  239. /**
  240. * _group :
  241. * _ver : 2008.11.20
  242. * _by : 정경화
  243. * _---------------------------------------------------
  244. * _type : function
  245. * _access : public
  246. * _desc : 분만실 처치장부 조회.
  247. * _param :
  248. * _param :
  249. * _return :
  250. * _---------------------------------------------------
  251. */
  252. function fGetnbabyhoundInfo(){
  253. ds_send_reqdata.copyData(ds_main_cond);
  254. var oParam = {};
  255. oParam.id = "TRMNN02501";
  256. oParam.service = "partrtnnbabyapp.NbabyCarePatMngt";
  257. oParam.method = "reqGetBabyHoundList";
  258. oParam.inds = "req=ds_send_reqdata";
  259. oParam.outds = "ds_main_nbabyinfo_nbabyinfolist=nbabyinfolist";
  260. oParam.async = false;
  261. // oParam.callback = "cf_TRMNN02501";
  262. tranf_submit(oParam);
  263. }
  264. /**
  265. * _group :
  266. * _ver : 2008.11.20
  267. * _by : 정경화
  268. * _---------------------------------------------------
  269. * _type : function
  270. * _access : public
  271. * _desc : 그리드 데이터 엑셀 전환
  272. * _param :
  273. * _param :
  274. * _return :
  275. * _---------------------------------------------------
  276. */
  277. function fSaveExcel(){
  278. //grp_biz.grd_nbabyhoundlist.gridToInstance();
  279. //file = window.fileDialog("save","","true","","xls","All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  280. //if(file != "") {
  281. grdf_exportExcel(grp_biz.grd_nbabyhoundlist, "출생100일대상자" + utlf_getCurrentDate(), "출생100일대상자", false, "", "user", false);
  282. //}
  283. }
  284. /**
  285. * _group :
  286. * _ver : 2008.11.20
  287. * _by : 정경화
  288. * _---------------------------------------------------
  289. * _type : function
  290. * _access : public
  291. * _desc : 출생 100일대상자 출력
  292. * _param : grid 명
  293. * _param :
  294. * _return :
  295. * _---------------------------------------------------
  296. */
  297. function fClickPrint(){
  298. ds_send_printdata.clearData();
  299. //dsf_makeValue( ds_send, "printdata", "string", "");
  300. ds_send_printdata.copyData(ds_main_nbabyinfo_nbabyinfolist);
  301. var nodecnt = ds_main_nbabyinfo_nbabyinfolist.rowcount;
  302. if(nodecnt > 0){
  303. var objDOM = rptf_createDOM();
  304. var objParam = new Object();
  305. rptf_setNodeListToDOM(objDOM, "root/send/printdata/nbabyinfo/nbabyinfolist" , ds_send_printdata);
  306. rptf_setNodeListToDOM(objDOM, "root/send/printdata/cond" , ds_main_cond); // 데이터셋 2
  307. objParam.xml_data_XML1 = objDOM.documentElement.source;
  308. var option = "open=1;save=1;directprint=0;printdialog=1;print=1;zoom=0";
  309. rptf_exeReportPreview30(["RPMNN02501"],[objParam], option);
  310. }else{
  311. sysf_messageBox("출력할 내용이","I004");
  312. }
  313. }// header파일 중 SMMNN02500.js 파일 끝
  314. function grp_biz_grp_sea_ipt_bthddtodd_onkillfocus(obj:Calendar, e:KillFocusEventInfo) {
  315. fGetnbabyhoundInfo();
  316. }
  317. function grp_biz_grp_sea_ipt_bthddfromdd_onkillfocus(obj:Calendar, e:KillFocusEventInfo) {
  318. fGetnbabyhoundInfo();
  319. }
  320. function grp_biz_grp_sea_btn_save_onclick(obj:Button, e:ClickEventInfo) {
  321. fGetnbabyhoundInfo();
  322. }
  323. function grp_biz_grp_sea_btn_print_onclick(obj:Button, e:ClickEventInfo) {
  324. fClickPrint();
  325. }
  326. function grp_biz_grp_sea_btn_saveexcel_onclick(obj:Button, e:ClickEventInfo) {
  327. fSaveExcel();
  328. }
  329. function grp_biz_checkbox2_onkillfocus(obj:cp_checkboxList, e:KillFocusEventInfo) {
  330. fGetnbabyhoundInfo();
  331. }
  332. function SMMNN02500_ontimer(obj:Form, e:TimerEventInfo)
  333. {
  334. if (e.timerid == 0) {
  335. this.killTimer(0);
  336. fInitialize();
  337. }
  338. }
  339. ]]></Script>
  340. </Form>
  341. </FDL>