SMASI01400_법정전염병전귀보고조회.xfdl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMASI01400" position="absolute 0 0 1196 790" titletext="법정전염병전귀보고조회" oninit="SMASI01400_oninit" onload="SMASI01400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1195 784" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 0 1195 784" align="align:center top;" id="group2">
  11. <Layouts>
  12. <Layout>
  13. <Shape position="absolute 0 756 1194 762" id="line4" class="line_3" anchor="left right bottom"/>
  14. </Layout>
  15. </Layouts>
  16. </Div>
  17. </Layout>
  18. </Layouts>
  19. </Div>
  20. <Div position="absolute 0 759 1195 786" id="grp_btn" anchor="left right bottom">
  21. <Layouts>
  22. <Layout>
  23. <Button position="absolute 1127 4 1195 26" id="btn_init" class="btn4" text="초기화" onclick="grp_btn_btn_init_onclick" anchor="top right"/>
  24. <Button position="absolute 0 3 56 25" id="btn_print" class="btn6" text="출력" anchor="default" visible="false"/>
  25. </Layout>
  26. </Layouts>
  27. </Div>
  28. <Div position="absolute 0 13 1195 757" id="grp_biz" scrollbars="autoboth" anchor="all">
  29. <Layouts>
  30. <Layout>
  31. <Div position="absolute 0 12 1194 52" align="align:center top;" id="group1" class="div_SA" anchor="left top right">
  32. <Layouts>
  33. <Layout>
  34. <Shape position="absolute 1107 12 1113 30" linetype="vertical" id="line8" class="line_4" anchor="top right"/>
  35. <Button position="absolute 1125 10 1181 32" id="btn_search" class="btn1" text="조회" onclick="grp_biz_group1_btn_search_onclick" anchor="top right"/>
  36. <Static text="구분 :" position="absolute 760 12 816 29" id="caption1" class="search_name" anchor="default"/>
  37. <Static text="~" position="absolute 205 11 225 31" id="caption4" anchor="default"/>
  38. <Calendar position="absolute 220 11 335 30" id="ipt_todd" class="input_default" autoselect="true" anchor="default"/>
  39. <Static text="진단일 :" position="absolute 15 13 83 30" id="caption14" class="search_name" anchor="default"/>
  40. <Static text="법정전염병 종류 :" position="absolute 405 13 530 30" id="caption15" class="search_name" anchor="default"/>
  41. <Calendar position="absolute 83 11 198 30" id="ipt_fromdd" class="input_default" autoselect="true" anchor="default"/>
  42. <cp_checkboxList id="chk_lglydiskind" titletext="CheckBox List" taborder="1" scrollbars="none" position="absolute 530 10 685 30" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible" anchor="default"/>
  43. <cp_checkboxList id="chk_flag" titletext="CheckBox List" taborder="2" scrollbars="none" position="absolute 815 10 1025 30" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible" anchor="default"/>
  44. </Layout>
  45. </Layouts>
  46. </Div>
  47. <Button position="absolute 1136 54 1194 76" id="btn_excel" class="btn7" text="엑셀" onclick="grp_biz_btn_excel_onclick" anchor="top right"/>
  48. <Shape position="absolute 0 76 1193 82" linetype="horizontal" id="line1" class="line_10" anchor="left top right"/>
  49. <Grid position="absolute 0 81 1195 744" id="grd_lglydisrept" binddataset="ds_main_lglydisreptinfo_lglydisreptlist" anchor="all">
  50. <Formats>
  51. <Format id="default">
  52. <Columns>
  53. <Column size="20" band="left"/>
  54. <Column size="150"/>
  55. <Column size="150"/>
  56. <Column size="150"/>
  57. <Column size="150"/>
  58. <Column size="150"/>
  59. <Column size="130"/>
  60. <Column size="80"/>
  61. <Column size="130"/>
  62. <Column size="80"/>
  63. </Columns>
  64. <Rows>
  65. <Row size="24" band="head"/>
  66. <Row size="24"/>
  67. </Rows>
  68. <Band id="head">
  69. <Cell/>
  70. <Cell col="1" text="등록번호"/>
  71. <Cell col="2" text="환자명"/>
  72. <Cell col="3" text="진료과"/>
  73. <Cell col="4" text="종류"/>
  74. <Cell col="5" text="신고"/>
  75. <Cell col="6" text="신고일자"/>
  76. <Cell col="7" text="전귀보고"/>
  77. <Cell col="8" text="전귀보고일"/>
  78. <Cell col="9" text="구분"/>
  79. </Band>
  80. <Band id="body">
  81. <Cell celltype="head" expr="expr:currow + 1"/>
  82. <Cell col="1" text="bind:pid"/>
  83. <Cell col="2" text="bind:patnm"/>
  84. <Cell col="3" text="bind:orddept"/>
  85. <Cell col="4" text="bind:kind"/>
  86. <Cell col="5" text="bind:rept"/>
  87. <Cell col="6" displaytype="date" text="bind:reptdd" calendardisplaynulltype="none"/>
  88. <Cell col="7" text="bind:lglydisrept"/>
  89. <Cell col="8" displaytype="date" text="bind:lglydisreptdd" calendardisplaynulltype="none"/>
  90. <Cell col="9" text="bind:flag"/>
  91. </Band>
  92. </Format>
  93. </Formats>
  94. </Grid>
  95. </Layout>
  96. </Layouts>
  97. </Div>
  98. <Static id="caption6" text="법정전염병 전귀보고조회" class="tit_1" position="absolute 0 0 183 25"/>
  99. </Layout>
  100. </Layouts>
  101. <Objects>
  102. <Dataset id="ds_send_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  103. <ColumnInfo>
  104. <Column id="fromdd" type="STRING" size="256" sumtext="진단시작일자"/>
  105. <Column id="todd" type="STRING" size="256" sumtext="진단종료일자"/>
  106. <Column id="lglydiskind" type="STRING" size="256" sumtext="법정전염병종류"/>
  107. <Column id="flag" type="STRING" size="256" sumtext="구분"/>
  108. </ColumnInfo>
  109. <Rows>
  110. <Row/>
  111. </Rows>
  112. </Dataset>
  113. <Dataset id="ds_main_lglydisreptinfo_lglydisreptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  114. <ColumnInfo>
  115. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  116. <Column id="patnm" type="STRING" size="256" sumtext="환자명"/>
  117. <Column id="orddept" type="STRING" size="256" sumtext="진료과"/>
  118. <Column id="kind" type="STRING" size="256" sumtext="종류"/>
  119. <Column id="rept" type="STRING" size="256" sumtext="신고"/>
  120. <Column id="reptdd" type="STRING" size="256" sumtext="신고일자"/>
  121. <Column id="lglydisrept" type="STRING" size="256" sumtext="전귀보고"/>
  122. <Column id="lglydisreptdd" type="STRING" size="256" sumtext="전귀일자"/>
  123. <Column id="flag" type="STRING" size="256" sumtext="구분"/>
  124. </ColumnInfo>
  125. </Dataset>
  126. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  127. <ColumnInfo>
  128. <Column id="fromdd" type="STRING" size="256"/>
  129. <Column id="todd" type="STRING" size="256"/>
  130. <Column id="lglydiskind" type="STRING" size="256"/>
  131. <Column id="flag" type="STRING" size="256"/>
  132. </ColumnInfo>
  133. <Rows>
  134. <Row/>
  135. </Rows>
  136. </Dataset>
  137. <Dataset id="ds_lglydiskind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  138. <ColumnInfo>
  139. <Column id="label" type="STRING" size="256"/>
  140. <Column id="value" type="STRING" size="256"/>
  141. </ColumnInfo>
  142. <Rows>
  143. <Row>
  144. <Col id="label">1군</Col>
  145. <Col id="value">1</Col>
  146. </Row>
  147. <Row>
  148. <Col id="value">2</Col>
  149. <Col id="label">2군(일본뇌염)</Col>
  150. </Row>
  151. </Rows>
  152. </Dataset>
  153. <Dataset id="ds_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  154. <ColumnInfo>
  155. <Column id="label" type="STRING" size="256"/>
  156. <Column id="value" type="STRING" size="256"/>
  157. </ColumnInfo>
  158. <Rows>
  159. <Row>
  160. <Col id="label">전체</Col>
  161. <Col id="value">A</Col>
  162. </Row>
  163. <Row>
  164. <Col id="label">입원</Col>
  165. <Col id="value">I</Col>
  166. </Row>
  167. <Row>
  168. <Col id="label">외래</Col>
  169. <Col id="value">O</Col>
  170. </Row>
  171. <Row>
  172. <Col id="label">응급</Col>
  173. <Col id="value">E</Col>
  174. </Row>
  175. </Rows>
  176. </Dataset>
  177. <Dataset id="ds_init_curdt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  178. <ColumnInfo>
  179. <Column id="curdt" type="STRING" size="256"/>
  180. </ColumnInfo>
  181. <Rows>
  182. <Row/>
  183. </Rows>
  184. </Dataset>
  185. </Objects>
  186. <Bind>
  187. <BindItem id="item0" compid="grp_biz.group1.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  188. <BindItem id="item1" compid="grp_biz.group1.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  189. </Bind>
  190. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  191. * System Name : 경대 의료정보시스템
  192. * Job Name : ast_infcmngtxp -> SMASI01400
  193. * Creator : yjh
  194. * Make Date : 2017-09-25
  195. * Description :
  196. *---------------------------------------------------------------------------------------
  197. * Modify Date Modifier Modify Description
  198. *---------------------------------------------------------------------------------------
  199. * 2017-09-25 yjh TF->XP
  200. *
  201. *---------------------------------------------------------------------------------------
  202. ****************************************************************************************/
  203. //=======================================================================================
  204. // Lib Include
  205. //---------------------------------------------------------------------------------------
  206. include "com_commonxp::comm_main.xjs";
  207. //=======================================================================================
  208. // Global Form Variable
  209. //---------------------------------------------------------------------------------------
  210. //=======================================================================================
  211. // Function
  212. //---------------------------------------------------------------------------------------
  213. function fInitialize() {
  214. ds_main_lglydisreptinfo_lglydisreptlist.clearData();
  215. //zbcfGetCodeList(new Array("P0149", "P0160"), new Array("/root/init/initdata/P0149list", "/root/init/initdata/P0160list"));
  216. ds_init_curdt.setColumn(0, "curdt", utlf_getCurrentDate());
  217. var idate=new Date();
  218. var frDate=idate.getAddDate(-1, "M");
  219. ds_main_cond.setColumn(0, "fromdd", frDate.getDateFormat());
  220. ds_main_cond.setColumn(0, "todd", ds_init_curdt.getColumn(0, "curdt"));
  221. //submit("TRASI01401");
  222. }
  223. //=======================================================================================
  224. // Event
  225. //---------------------------------------------------------------------------------------
  226. /****************************************************************************************
  227. * Components : Form
  228. * Components ID : SMASI01400
  229. * Event : oninit
  230. * Argument : 01.obj : Object Event has occurred
  231. * : 02.e : Event Object
  232. * Description : 화면 처음 초기화시
  233. ****************************************************************************************/
  234. function SMASI01400_oninit(obj:Form, e:InitEventInfo)
  235. {
  236. frmf_initForm(obj); //폼 초기화
  237. }
  238. /****************************************************************************************
  239. * Components : Form
  240. * Components ID : SMASI01400
  241. * Event : onload
  242. * Argument : 01.obj : Object Event has occurred
  243. * : 02.e : Event Object
  244. * Description : 화면 로딩 완료시
  245. ****************************************************************************************/
  246. function SMASI01400_onload(obj:Form, e:LoadEventInfo)
  247. {
  248. ds_main_cond.setColumn(0, "flag", "A");
  249. grdf_setGridSort(grp_biz.grd_lglydisrept);
  250. var sProp="col="+ds_lglydiskind.rowcount+",row=1,cellspacing=15,vcellspacing=2,itemWidth=-1,itemHeight=20,overflow='visible'";
  251. grp_biz.group1.chk_lglydiskind.setInitComp(sProp, ds_lglydiskind,"value","label","fn_mChklglydiskind");
  252. var sProp="col="+ds_flag.rowcount+",row=1,cellspacing=15,vcellspacing=2,itemWidth=-1,itemHeight=20,overflow='visible'";
  253. grp_biz.group1.chk_flag.setInitComp(sProp, ds_flag,"value","label","fn_mChkflag");
  254. grp_biz.group1.chk_flag.setData(utlf_transNullToEmpty(ds_main_cond.getColumn(0,"flag")).split(" "), null,false);
  255. fInitialize();
  256. }
  257. /**
  258. * @group :
  259. * @ver : 2016.02.29
  260. * @by : 윤주호
  261. * @---------------------------------------------------
  262. * @type : function
  263. * @access : public
  264. * @desc : MultiCheckBox 값 셋팅
  265. * @param :
  266. * @param :
  267. * @return :
  268. * @---------------------------------------------------
  269. */
  270. function fn_mChklglydiskind(){
  271. var rtn = "";
  272. var tmp = "";
  273. rtn = grp_biz.group1.chk_lglydiskind.getData();
  274. for( var i=0 ; i<rtn.length ; i++ ){
  275. if( i == 0 ) tmp = rtn[i];
  276. else tmp = tmp + " " +rtn[i];
  277. }
  278. ds_main_cond.setColumn(0, "lglydiskind", tmp);
  279. }
  280. function fn_mChkflag(){
  281. var rtn = "";
  282. var tmp = "";
  283. rtn = grp_biz.group1.chk_flag.getData();
  284. for( var i=0 ; i<rtn.length ; i++ ){
  285. if( i == 0 ) tmp = rtn[i];
  286. else tmp = tmp + " " +rtn[i];
  287. }
  288. ds_main_cond.setColumn(0, "flag", tmp);
  289. }
  290. /****************************************************************************************
  291. * Components : Button
  292. * Components ID : btn_init
  293. * Event : onclick
  294. * Argument : 01.obj : Object Event has occurred
  295. * : 02.e : Event Object
  296. * Description : 초기화버튼 클릭시
  297. ****************************************************************************************/
  298. function grp_btn_btn_init_onclick(obj:Button, e:ClickEventInfo)
  299. {
  300. ds_main_lglydisreptinfo_lglydisreptlist.clearData();
  301. }
  302. /****************************************************************************************
  303. * Components : Button
  304. * Components ID : btn_search
  305. * Event : onclick
  306. * Argument : 01.obj : Object Event has occurred
  307. * : 02.e : Event Object
  308. * Description : 조회버튼 클릭시
  309. ****************************************************************************************/
  310. function grp_biz_group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
  311. {
  312. if( utlf_isNull(ds_main_cond.getColumn(0, "fromdd")) || utlf_isNull(ds_main_cond.getColumn(0, "todd")) ) {
  313. sysf_messageBox("일자는", "I003");
  314. return;
  315. }
  316. ds_send_cond.copyRow(0, ds_main_cond, 0);
  317. var oParam = {};
  318. oParam.id = "TRASI01401";
  319. oParam.service = "infcmngtapp.LglyDisMngt";
  320. oParam.method = "reqGetLglyDisReptList";
  321. oParam.inds = "req=ds_send_cond";
  322. oParam.outds = "ds_main_lglydisreptinfo_lglydisreptlist=lglydisreptlist";
  323. oParam.async = false;
  324. //oParam.callback = "cf_TRASI01401";
  325. tranf_submit(oParam);
  326. }
  327. /****************************************************************************************
  328. * Components : Button
  329. * Components ID : btn_excel
  330. * Event : onclick
  331. * Argument : 01.obj : Object Event has occurred
  332. * : 02.e : Event Object
  333. * Description : 엑셀버튼 클릭시
  334. ****************************************************************************************/
  335. function grp_biz_btn_excel_onclick(obj:Button, e:ClickEventInfo)
  336. {
  337. //if( group3.group2.grd_brstraytestrsltlist.rowcount > 0 ){
  338. grdf_exportExcel(grp_biz.grd_lglydisrept, "법정전염병전귀보고", "법정전염병전귀보고", false, "", "user", false);
  339. // } else {
  340. // sysf_messageBox("조회된 데이터가 ", "I004");
  341. // return;
  342. // }
  343. }
  344. ]]></Script>
  345. </Form>
  346. </FDL>