SPPID26000_임신주수별신생아체중기준관리.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPID26000" position="absolute 0 0 960 639" titletext="임신주수별 신생아 체중 기준관리" oninit="SPPID26000_oninit" onload="SPPID26000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 1 18 943 610" id="grp_biz" scrollbars="autoboth" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Grid position="absolute 0 78 940 592" id="grd_clbsmast" class="datagrid2" binddataset="ds_main_babyweightlist_babyweight" anchor="all" autofittype="col" selecttype="multirow" onrbuttondown="grp_biz_grd_clbsmast_onrbuttondown" cellsizingtype="col">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="25"/>
  15. <Column size="53"/>
  16. <Column size="47"/>
  17. <Column size="75"/>
  18. <Column size="75"/>
  19. <Column size="92"/>
  20. <Column size="91"/>
  21. <Column size="80"/>
  22. <Column size="133"/>
  23. <Column size="81"/>
  24. <Column size="125"/>
  25. </Columns>
  26. <Rows>
  27. <Row size="29" band="head"/>
  28. <Row size="24"/>
  29. </Rows>
  30. <Band id="head">
  31. <Cell/>
  32. <Cell col="1" text="기준년"/>
  33. <Cell col="2" text="임신&#10;주수"/>
  34. <Cell col="3" text="신생아체중&#10;10분위"/>
  35. <Cell col="4" text="신생아체중&#10;90분위"/>
  36. <Cell col="5" text="시작일자"/>
  37. <Cell col="6" text="종료일자"/>
  38. <Cell col="7" text="등록자"/>
  39. <Cell col="8" text="등록일자"/>
  40. <Cell col="9" text="수정자"/>
  41. <Cell col="10" text="수정일자"/>
  42. </Band>
  43. <Band id="body">
  44. <Cell celltype="head"/>
  45. <Cell col="1" edittype="normal" style="align:center middle;" text="bind:baseyear"/>
  46. <Cell col="2" displaytype="number" edittype="normal" style="align:center middle;" text="bind:prgntweek" enable="false"/>
  47. <Cell col="3" displaytype="number" edittype="normal" style="align:center middle;" text="bind:minweight"/>
  48. <Cell col="4" displaytype="number" edittype="normal" style="align:center middle;" text="bind:maxweight"/>
  49. <Cell col="5" displaytype="date" edittype="text" style="align:center middle;" text="bind:fromdd" mask="yyyy-MM-dd"/>
  50. <Cell col="6" displaytype="date" edittype="text" style="align:center middle;" text="bind:todd" mask="yyyy-MM-dd"/>
  51. <Cell col="7" displaytype="normal" edittype="none" text="bind:fstrgstrid"/>
  52. <Cell col="8" displaytype="date" edittype="none" style="align:left middle;" text="bind:fstrgstdt" mask="yyyy-MM-dd hh:mm"/>
  53. <Cell col="9" displaytype="normal" style="align:center middle;" text="bind:lastupdtrid"/>
  54. <Cell col="10" displaytype="date" style="align:left middle;" text="bind:lastupdtdt" mask="yyyy-MM-dd hh:mm"/>
  55. </Band>
  56. </Format>
  57. </Formats>
  58. </Grid>
  59. <Static text="임신주수별 신생아 체중 기준조회" position="absolute 0 57 234 80" id="cap_judgtrgtman" class="tit_2" anchor="default"/>
  60. <Shape position="absolute 0 73 940 79" linetype="horizontal" id="line1" class="line_1" anchor="left top right" style="strokepen:3 solid #33bbbbff;"/>
  61. <Div position="absolute 0 6 940 46" align="align:center top;" id="group1" class="div_SA" anchor="left top right">
  62. <Layouts>
  63. <Layout>
  64. <Static text="기준일자 :" position="absolute 8 11 95 28" id="caption30" class="search_name" anchor="default"/>
  65. <Calendar position="absolute 95 10 185 29" align="align:center middle;" id="ipt_orddd" class="input_search" taborder="1" mask="yyyy-mm-dd" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
  66. <Button position="absolute 875 10 931 32" id="btn_select" class="btn1" taborder="32" text="조회" anchor="top right" onclick="grp_biz_group1_btn_select_onclick"/>
  67. <Shape position="absolute 857 5 863 38" linetype="vertical" id="line3" class="line_4" anchor="top right"/>
  68. </Layout>
  69. </Layouts>
  70. </Div>
  71. <Button position="absolute 709 54 789 73" id="btn_excelsave" class="btn7" text="엑셀저장" anchor="top right" onclick="grp_biz_btn_excelsave_onclick"/>
  72. <Button position="absolute 898 54 940 73" id="button1" class="btn5" text="저장" anchor="top right" onclick="grp_biz_button1_onclick"/>
  73. <Button position="absolute 790 54 843 73" id="button2" class="btn2" text="행삭제" anchor="top right" onclick="grp_biz_button2_onclick"/>
  74. <Button position="absolute 844 54 897 73" id="button3" class="btn2" text="행추가" anchor="top right" onclick="grp_biz_button3_onclick"/>
  75. <Button position="absolute 617 54 708 73" id="button4" class="btn7" text="엑셀업로드" anchor="top right" onclick="grp_biz_button4_onclick"/>
  76. </Layout>
  77. </Layouts>
  78. </Div>
  79. <Button position="absolute 885 611 941 633" id="btn_cancel" class="btn4" text="종료" onclick="btn_cancel_onclick" anchor="right bottom"/>
  80. <Static id="cap_title" text="임신주수별 신생아 체중 기준관리" class="tit_1" position="absolute 1 0 249 23"/>
  81. <PopupMenu id="pmn_menu1" position="absolute 980 112 1033 162" innerdataset="@ds_menu" levelcolumn="level" idcolumn="func" captioncolumn="label" onmenuclick="pmn_menu1_onmenuclick" onmouseleave="pmn_menu1_onmouseleave"/>
  82. </Layout>
  83. </Layouts>
  84. <Objects>
  85. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  86. <ColumnInfo>
  87. <Column id="orddd" type="STRING" size="256"/>
  88. <Column id="babyweightlist" type="STRING" size="256"/>
  89. </ColumnInfo>
  90. <Rows>
  91. <Row/>
  92. </Rows>
  93. </Dataset>
  94. <Dataset id="ds_menu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  95. <ColumnInfo>
  96. <Column id="label" type="STRING" size="256"/>
  97. <Column id="func" type="STRING" size="256"/>
  98. <Column id="level" type="STRING" size="256"/>
  99. </ColumnInfo>
  100. <Rows>
  101. <Row>
  102. <Col id="label">행추가</Col>
  103. <Col id="func">fSpclGridInsertRow</Col>
  104. </Row>
  105. <Row>
  106. <Col id="label">-</Col>
  107. <Col id="func">-</Col>
  108. </Row>
  109. <Row>
  110. <Col id="label">행삭제</Col>
  111. <Col id="func">fSpclGridDeleteRow</Col>
  112. </Row>
  113. </Rows>
  114. </Dataset>
  115. <Dataset id="ds_main_babyweightlist_babyweight" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  116. <ColumnInfo>
  117. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  118. <Column id="baseyear" type="STRING" size="256" sumtext="기준년"/>
  119. <Column id="prgntweek" type="STRING" size="256" sumtext="임신주수"/>
  120. <Column id="minweight" type="STRING" size="256" sumtext="10분위"/>
  121. <Column id="maxweight" type="STRING" size="256" sumtext="90분위"/>
  122. <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
  123. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  124. <Column id="fstrgstrid" type="STRING" size="256" sumtext="등록자"/>
  125. <Column id="fstrgstdt" type="STRING" size="256" sumtext="등록일"/>
  126. <Column id="lastupdtrid" type="STRING" size="256" sumtext="수정자"/>
  127. <Column id="lastupdtdt" type="STRING" size="256" sumtext="수정일"/>
  128. </ColumnInfo>
  129. </Dataset>
  130. </Objects>
  131. <Bind>
  132. <BindItem id="item0" compid="grp_biz.group1.ipt_orddd" propid="value" datasetid="ds_send" columnid="orddd"/>
  133. </Bind>
  134. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  135. * System Name :
  136. * Job Name :
  137. * Creator :
  138. * Make Date : 2016-05-24
  139. * Description :
  140. *---------------------------------------------------------------------------------------
  141. * Modify Date Modifier Modify Description
  142. *---------------------------------------------------------------------------------------
  143. * 2016-05-24 Live Converter TF->XP
  144. *
  145. *---------------------------------------------------------------------------------------
  146. ****************************************************************************************/
  147. include "com_commonxp::comm_main.xjs";
  148. include "pam_pamcomnxp::PAM001.xjs";
  149. include "pam_pamcomnxp::PAM.xjs";
  150. var gToday = new Date();
  151. var gBaseyear = gToday.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  152. var gBasemonth = gToday.getDateFormat("MM");
  153. var gBaseday = gToday.getDateFormat("DD");
  154. var gCurrentdd = gBaseyear + gBasemonth + gBaseday;
  155. var gCurrentym = gBaseyear + gBasemonth;
  156. function SPPID26000_oninit(obj:Form, e:InitEventInfo)
  157. {
  158. frmf_initForm(obj);
  159. }
  160. function SPPID26000_onload(obj:Form, e:LoadEventInfo)
  161. {
  162. grdf_initGrid(grp_biz.grd_clbsmast);
  163. grdf_setRowTypeIcon(grp_biz.grd_clbsmast, 0);
  164. fInitialize();
  165. }
  166. function fInitialize()
  167. {
  168. ds_send.setColumn(0, "orddd", utlf_getCurrentDate());
  169. grp_biz_group1_btn_select_onclick();
  170. }
  171. function grp_biz_group1_btn_select_onclick(obj:Button, e:ClickEventInfo)
  172. {
  173. fGetDocuList();
  174. }
  175. function fGetDocuList()
  176. {
  177. var chk = true;
  178. if(utlf_isNull(ds_send.getColumn(0, "orddd")))
  179. {
  180. chk = false;
  181. sysf_messageBox("기준년월은", "I003");
  182. grp_biz.group1.ipt_orddd.setFocus();
  183. }
  184. if (chk == true)
  185. {
  186. var oParam = {};
  187. oParam.id = "TRPID26001";
  188. oParam.service = "aftjudgapp.InAftJudg";
  189. oParam.method = "reqGetNewBornBabyWeightList";
  190. oParam.inds = "req=ds_send";
  191. oParam.outds = "ds_main_babyweightlist_babyweight=babyweight";
  192. oParam.async = false;
  193. //oParam.callback = "cf_TRPID26001";
  194. tranf_submit(oParam);
  195. }
  196. }
  197. function grp_biz_btn_excelsave_onclick(obj:Button, e:ClickEventInfo)
  198. {
  199. if(ds_main_babyweightlist_babyweight.rowcount == 0)
  200. {
  201. sysf_messageBox("엑셀저장할 내역이", "I004");
  202. }
  203. else
  204. {
  205. grdf_exportExcel(grp_biz.grd_clbsmast, "", "see");
  206. }
  207. }
  208. function grp_biz_button2_onclick(obj:Button, e:ClickEventInfo)
  209. {
  210. fSpclGridDeleteRow();
  211. }
  212. function grp_biz_button3_onclick(obj:Button, e:ClickEventInfo)
  213. {
  214. fSpclGridInsertRow();
  215. }
  216. function grp_biz_button1_onclick(obj:Button, e:ClickEventInfo)
  217. {
  218. var updtdata = grdf_getGridUpdateData(grp_biz.grd_clbsmast);
  219. if (updtdata == 0)
  220. {
  221. sysf_messageBox("변경된 데이터가","I004");
  222. return;
  223. }
  224. for (var i = 0; i < ds_main_babyweightlist_babyweight.rowcount; i++)
  225. {
  226. if(ds_main_babyweightlist_babyweight.getRowType(i) == 2 || ds_main_babyweightlist_babyweight.getRowType(i) == 8)
  227. {
  228. if(utlf_isNull(ds_main_babyweightlist_babyweight.getColumn(i, "baseyear")))
  229. {
  230. sysf_messageBox("기준년","I003");
  231. return;
  232. }
  233. if(utlf_isNull(ds_main_babyweightlist_babyweight.getColumn(i, "prgntweek")))
  234. {
  235. sysf_messageBox("임신주수","I003");
  236. return;
  237. }
  238. if(utlf_isNull(ds_main_babyweightlist_babyweight.getColumn(i, "fromdd")))
  239. {
  240. sysf_messageBox("시작일자","I003");
  241. return;
  242. }
  243. if(utlf_isNull(ds_main_babyweightlist_babyweight.getColumn(i, "todd")))
  244. {
  245. sysf_messageBox("종료일자는","I003");
  246. return;
  247. }
  248. }
  249. }
  250. if (sysf_messageBox("저장", "S001") == 6)
  251. {
  252. var oParam = {};
  253. oParam.id = "TXPID26001";
  254. oParam.service = "aftjudgapp.InAftJudg";
  255. oParam.method = "reqExeNewBornBabyWeightList";
  256. oParam.inds = "req=ds_main_babyweightlist_babyweight:U";
  257. oParam.outds = "ds_main_babyweightlist_babyweight=babyweight";
  258. oParam.async = false;
  259. oParam.callback = "cf_TXPID26001";
  260. tranf_submit(oParam);
  261. }
  262. }
  263. function cf_TXPID26001(sSvcId, nErrorCode, sErrorMsg)
  264. {
  265. if(nErrorCode < 0)
  266. {
  267. return;
  268. }
  269. else
  270. {
  271. sysf_messageBox("저장이","I002");
  272. grp_biz_group1_btn_select_onclick();
  273. }
  274. }
  275. function fSpclGridDeleteRow()
  276. {
  277. var rows = grdf_getSelectedRows(grp_biz.grd_clbsmast);
  278. for (var i = 0; i < rows.length; i++)
  279. {
  280. var sel = rows[i];
  281. var arrRow = new Array();
  282. arrRow[0] = sel;
  283. grdf_setStatus(grp_biz.grd_clbsmast, "D", arrRow);
  284. }
  285. }
  286. function fSpclGridInsertRow()
  287. {
  288. var row = ds_main_babyweightlist_babyweight.addRow();
  289. }
  290. function pmn_menu1_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  291. {
  292. eval(e.id +"();");
  293. }
  294. function pmn_menu1_onmouseleave(obj:PopupMenu, e:MenuMouseEventInfo)
  295. {
  296. obj.closePopup();
  297. }
  298. function grp_biz_grd_clbsmast_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  299. {
  300. pmn_menu1.trackPopup(e.screenX,e.screenY);
  301. }
  302. function grp_biz_button4_onclick(obj:Button, e:ClickEventInfo)
  303. {
  304. ds_main_babyweightlist_babyweight.clearData();
  305. grdf_ImportExcel("ds_main_babyweightlist_babyweight", 1, grp_biz.grd_clbsmast);
  306. var rows = ds_main_babyweightlist_babyweight.rowcount;
  307. for (var i = 0; i < rows; i++)
  308. {
  309. var arrRow = new Array();
  310. arrRow[0] = i;
  311. grdf_setStatus(grp_biz.grd_clbsmast, "I", arrRow);
  312. }
  313. }
  314. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  315. {
  316. this.close();
  317. }
  318. ]]></Script>
  319. </Form>
  320. </FDL>