SPMRI01400_XSLT 관리.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMRI01400" position="absolute 0 0 735 770" titletext="XSLT 관리" oninit="SPMRI01400_oninit" onload="SPMRI01400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 20 735 55" align="align:center top;" id="grp_sea" class="div_SA" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Static text="서식코드 :" position="absolute 16 9 107 26" id="caption2" class="search_name"/>
  11. <Shape position="absolute 661 7 667 29" linetype="vertical" id="line13" class="line_4" anchor="top right"/>
  12. <Button position="absolute 675 7 731 29" id="btn_search" class="btn1" text="조회" onclick="grp_sea_btn_search_onclick" anchor="top right"/>
  13. <Edit position="absolute 100 8 485 27" id="ipt_srchnm" class="input_essential" autoselect="true" onkeyup="grp_sea_ipt_srchnm_onkeyup"/>
  14. <Combo position="absolute 495 7 585 26" id="cmb_reqstatus" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="grp_sea_cmb_reqstatus_onitemchanged">
  15. <Dataset id="innerdataset">
  16. <ColumnInfo>
  17. <Column id="codecolumn"/>
  18. <Column id="datacolumn"/>
  19. </ColumnInfo>
  20. <Rows>
  21. <Row>
  22. <Col id="codecolumn">Y</Col>
  23. <Col id="datacolumn">유효</Col>
  24. </Row>
  25. <Row>
  26. <Col id="codecolumn">ALL</Col>
  27. <Col id="datacolumn">전체</Col>
  28. </Row>
  29. </Rows>
  30. </Dataset>
  31. </Combo>
  32. </Layout>
  33. </Layouts>
  34. </Div>
  35. <Div position="absolute 0 0 716 22" id="grp_titl">
  36. <Layouts>
  37. <Layout>
  38. <Static text="XSLT 관리" position="absolute 0 0 100 22" id="cap_titl" class="tit_1" anchor="default"/>
  39. </Layout>
  40. </Layouts>
  41. </Div>
  42. <Button position="absolute 693 60 735 79" id="btn_save" class="btn5" text="저장" onclick="btn_save_onclick" anchor="top right"/>
  43. <ImageViewer position="absolute 735 615 750 635" id="img_hidden" visible="false"/>
  44. <Grid position="absolute 0 80 735 770" id="grd_xsltlist" binddataset="ds_main_xsltinfo_xsltlist" cellsizingtype="col" extendsizetype="col" autoenter="key" anchor="all">
  45. <Formats>
  46. <Format id="default">
  47. <Columns>
  48. <Column size="20" band="left"/>
  49. <Column size="263"/>
  50. <Column size="118"/>
  51. <Column size="94"/>
  52. <Column size="118"/>
  53. <Column size="94"/>
  54. <Column size="0"/>
  55. <Column size="0"/>
  56. </Columns>
  57. <Rows>
  58. <Row size="24" band="head"/>
  59. <Row size="24"/>
  60. </Rows>
  61. <Band id="head">
  62. <Cell/>
  63. <Cell col="1" text="서식코드"/>
  64. <Cell col="2" text="적용시작일자"/>
  65. <Cell col="3" text="적용시작시간"/>
  66. <Cell col="4" text="적용종료일자"/>
  67. <Cell col="5" text="적용종료시간"/>
  68. <Cell col="6" text="XS;TData"/>
  69. <Cell col="7" text="xsltfromdt_bk"/>
  70. </Band>
  71. <Band id="body">
  72. <Cell celltype="head"/>
  73. <Cell col="1" displaytype="text" edittype="expr:getRowType(currow) == 2 ? 'text' : 'none'" text="bind:formcd"/>
  74. <Cell col="2" displaytype="date" edittype="date" style="padding:0 0 0 0;" text="bind:xsltfromdd" editautoselect="true" calendardisplay="display" calendardisplaynulltype="none"/>
  75. <Cell col="3" displaytype="text" edittype="mask" style="align:center;" text="bind:xsltfromtm" mask="##:##" maskchar=" " edittrimtype="both" editautoselect="true"/>
  76. <Cell col="4" displaytype="date" edittype="date" style="padding:0 0 0 0;" text="bind:xslttodd" editautoselect="true" calendardisplay="display" calendardisplaynulltype="none"/>
  77. <Cell col="5" displaytype="text" edittype="mask" style="align:center;" text="bind:xslttotm" mask="##:##" maskchar=" " edittrimtype="both" editautoselect="true"/>
  78. <Cell col="6" text="bind:xsltdata"/>
  79. <Cell col="7" text="bind:xsltfromdt_bk"/>
  80. </Band>
  81. </Format>
  82. </Formats>
  83. </Grid>
  84. <Button position="absolute 520 60 584 79" id="btn_addfile" class="btn2" text="파일추가" onclick="btn_addfile_onclick" anchor="top right"/>
  85. <Button position="absolute 585 60 638 79" id="btn_addrow" class="btn2" text="행추가" onclick="btn_addrow_onclick" anchor="top right"/>
  86. <Button position="absolute 639 60 692 79" id="btn_delrow" class="btn2" text="행삭제" onclick="btn_delrow_onclick" anchor="top right"/>
  87. </Layout>
  88. </Layouts>
  89. <Objects>
  90. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  91. <ColumnInfo>
  92. <Column id="formcd" type="STRING" size="256" sumtext="서식코드"/>
  93. <Column id="reqstatus" type="STRING" size="256" sumtext="조회구분"/>
  94. </ColumnInfo>
  95. <Rows>
  96. <Row/>
  97. </Rows>
  98. </Dataset>
  99. <Dataset id="ds_main_xsltinfo_xsltlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_xsltinfo_xsltlist_oncolumnchanged">
  100. <ColumnInfo>
  101. <Column id="formcd" type="STRING" size="256" sumtext="서식코드"/>
  102. <Column id="xsltfromdd" type="STRING" size="256" sumtext="적용시작일자"/>
  103. <Column id="xsltfromtm" type="STRING" size="256" sumtext="적용시작시간"/>
  104. <Column id="xslttodd" type="STRING" size="256" sumtext="적용종료일자"/>
  105. <Column id="xslttotm" type="STRING" size="256" sumtext="적용종료시간"/>
  106. <Column id="xsltdata" type="STRING" size="256" sumtext="xslt 데이터"/>
  107. <Column id="xsltfromdt_bk" type="STRING" size="256" sumtext="적용시작일시"/>
  108. </ColumnInfo>
  109. </Dataset>
  110. <Dataset id="ds_send_xsltlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  111. <ColumnInfo>
  112. <Column id="status" type="STRING" size="256" sumtext="상태"/>
  113. <Column id="formcd" type="STRING" size="256" sumtext="서식코드"/>
  114. <Column id="xsltfromdd" type="STRING" size="256" sumtext="적용시작일자"/>
  115. <Column id="xsltfromtm" type="STRING" size="256" sumtext="적용시작시간"/>
  116. <Column id="xslttodd" type="STRING" size="256" sumtext="적용종료일자"/>
  117. <Column id="xslttotm" type="STRING" size="256" sumtext="적용종료시간"/>
  118. <Column id="xsltdata" type="STRING" size="256" sumtext="XSLT 데이터"/>
  119. <Column id="xsltfromdt_bk" type="STRING" size="256" sumtext="적용시작일시"/>
  120. </ColumnInfo>
  121. </Dataset>
  122. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  123. <ColumnInfo>
  124. <Column id="formcd" type="STRING" size="256"/>
  125. <Column id="reqstatus" type="STRING" size="256"/>
  126. </ColumnInfo>
  127. <Rows>
  128. <Row/>
  129. </Rows>
  130. </Dataset>
  131. <Dataset id="ds_temp_xsltinfo_xsltlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  132. <ColumnInfo>
  133. <Column id="formcd" type="STRING" size="256" sumtext="서식코드"/>
  134. <Column id="xsltfromdd" type="STRING" size="256" sumtext="적용시작일자"/>
  135. <Column id="xsltfromtm" type="STRING" size="256" sumtext="적용시작시간"/>
  136. <Column id="xslttodd" type="STRING" size="256" sumtext="적용종료일자"/>
  137. <Column id="xslttotm" type="STRING" size="256" sumtext="적용종료시간"/>
  138. <Column id="xsltdata" type="STRING" size="256" sumtext="xslt 데이터"/>
  139. <Column id="xsltfromdt_bk" type="STRING" size="256" sumtext="적용시작일시"/>
  140. </ColumnInfo>
  141. </Dataset>
  142. </Objects>
  143. <Bind>
  144. <BindItem id="item0" compid="grp_sea.ipt_srchnm" propid="value" datasetid="ds_main_cond" columnid="formcd"/>
  145. <BindItem id="item1" compid="grp_sea.cmb_reqstatus" propid="value" datasetid="ds_main_cond" columnid="reqstatus"/>
  146. </Bind>
  147. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  148. * System Name : 경대 의료정보시스템
  149. * Job Name : emr_recmngtxp -> SPMRI01400
  150. * Creator : yjh
  151. * Make Date : 2018-04-17
  152. * Description :
  153. *---------------------------------------------------------------------------------------
  154. * Modify Date Modifier Modify Description
  155. *---------------------------------------------------------------------------------------
  156. * 2018-04-17 yjh TF->XP
  157. *
  158. *---------------------------------------------------------------------------------------
  159. ****************************************************************************************/
  160. //=======================================================================================
  161. // Lib Include
  162. //---------------------------------------------------------------------------------------
  163. include "com_commonxp::comm_main.xjs";
  164. include "emr_recmngtxp::SMMRI01400.xjs";
  165. //=======================================================================================
  166. // Global Form Variable
  167. //---------------------------------------------------------------------------------------
  168. var arErrorCode = new HashArray();
  169. //=======================================================================================
  170. // Function
  171. //---------------------------------------------------------------------------------------
  172. //=======================================================================================
  173. // Event
  174. //---------------------------------------------------------------------------------------
  175. /****************************************************************************************
  176. * Components : Form
  177. * Components ID : SPMRI01400
  178. * Event : oninit
  179. * Argument : 01.obj : Object Event has occurred
  180. * : 02.e : Event Object
  181. * Description : 화면 처음 초기화시
  182. ****************************************************************************************/
  183. function SPMRI01400_oninit(obj:Form, e:InitEventInfo)
  184. {
  185. frmf_initForm(obj); //폼 초기화
  186. }
  187. /****************************************************************************************
  188. * Components : Form
  189. * Components ID : SPMRI01400
  190. * Event : onload
  191. * Argument : 01.obj : Object Event has occurred
  192. * : 02.e : Event Object
  193. * Description : 화면 로딩 완료시
  194. ****************************************************************************************/
  195. function SPMRI01400_onload(obj:Form, e:LoadEventInfo)
  196. {
  197. ds_main_cond.setColumn(0, "reqstatus", "Y");
  198. grdf_setRowTypeIcon(grd_xsltlist, 0);
  199. grdf_setGridSort(grd_xsltlist);
  200. fInitialize();
  201. }
  202. /****************************************************************************************
  203. * Components : Button
  204. * Components ID : btn_search
  205. * Event : onclick
  206. * Argument : 01.obj : Object Event has occurred
  207. * : 02.e : Event Object
  208. * Description : 조회버튼 클릭시
  209. ****************************************************************************************/
  210. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  211. {
  212. fSearch();
  213. }
  214. /****************************************************************************************
  215. * Components : Edit
  216. * Components ID : ipt_srchnm
  217. * Event : onkeyup
  218. * Argument : 01.obj : Object Event has occurred
  219. * : 02.e : Event Object
  220. * Description : 에디터 키 입력시
  221. ****************************************************************************************/
  222. function grp_sea_ipt_srchnm_onkeyup(obj:Edit, e:KeyEventInfo)
  223. {
  224. if( e.keycode == 13 ){
  225. grp_sea.btn_search.click();
  226. }
  227. }
  228. /****************************************************************************************
  229. * Components : Combo
  230. * Components ID : cmb_reqstatus
  231. * Event : onitemchanged
  232. * Argument : 01.obj : Object Event has occurred
  233. * : 02.e : Event Object
  234. * Description : 콤보 값 변경시
  235. ****************************************************************************************/
  236. function grp_sea_cmb_reqstatus_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  237. {
  238. fSearch();
  239. }
  240. /****************************************************************************************
  241. * Components : Button
  242. * Components ID : btn_save
  243. * Event : onclick
  244. * Argument : 01.obj : Object Event has occurred
  245. * : 02.e : Event Object
  246. * Description : 저장버튼 클릭시
  247. ****************************************************************************************/
  248. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  249. {
  250. fSave();
  251. }
  252. /****************************************************************************************
  253. * Components : Dataset
  254. * Components ID : ds_main_xsltinfo_xsltlist
  255. * Event : oncolumnchanged
  256. * Argument : 01.obj : Object Event has occurred
  257. * : 02.e : Event Object
  258. * Description : 데이터셋 값 변경시
  259. ****************************************************************************************/
  260. function ds_main_xsltinfo_xsltlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  261. {
  262. fChangedGridRow();
  263. }
  264. /****************************************************************************************
  265. * Components : Button
  266. * Components ID : btn_addfile
  267. * Event : onclick
  268. * Argument : 01.obj : Object Event has occurred
  269. * : 02.e : Event Object
  270. * Description : 파일추가버튼 클릭시
  271. ****************************************************************************************/
  272. function btn_addfile_onclick(obj:Button, e:ClickEventInfo)
  273. {
  274. fUploadXSLTFile();
  275. }
  276. /****************************************************************************************
  277. * Components : Button
  278. * Components ID : btn_addrow
  279. * Event : onclick
  280. * Argument : 01.obj : Object Event has occurred
  281. * : 02.e : Event Object
  282. * Description : 행추가버튼 클릭시
  283. ****************************************************************************************/
  284. function btn_addrow_onclick(obj:Button, e:ClickEventInfo)
  285. {
  286. fAddXSLTList();
  287. }
  288. /****************************************************************************************
  289. * Components : Button
  290. * Components ID : btn_delrow
  291. * Event : onclick
  292. * Argument : 01.obj : Object Event has occurred
  293. * : 02.e : Event Object
  294. * Description : 행삭제버튼 클릭시
  295. ****************************************************************************************/
  296. function btn_delrow_onclick(obj:Button, e:ClickEventInfo)
  297. {
  298. fDelXSLTList();
  299. }
  300. ]]></Script>
  301. </Form>
  302. </FDL>