SPAEA02312_주사부위코드관리(핵의학체내).xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPAEA02312" position="absolute 0 0 606 526" titletext="주사부위코드관리" oninit="model1_oninit" onload="SPAEA02312_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="Div00" taborder="1" class="div_SA" anchor="default" position="absolute 0 27 604 70">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption2" text="코드" class="search_name" position="absolute 8 10 73 30" anchor="default" positiontype="position"/>
  11. <Edit id="ipt_basecd" taborder="4" class="input_search" position="absolute 57 10 192 30" anchor="default" imemode="hangul" positiontype="position"/>
  12. <Static id="caption3" text="코드명" class="search_name" position="absolute 217 10 297 30" anchor="default" positiontype="position"/>
  13. <Edit id="ipt_basecdnm" taborder="5" class="input_search" position="absolute 277 10 412 30" anchor="default" imemode="hangul" positiontype="position"/>
  14. <Button id="btn_sea" taborder="6" text="조회" onlbuttonup="btn_sea_onlbuttonup" class="btn1" position="absolute 536 11 592 31" anchor="default" positiontype="position" onclick="btn_sea_onclick"/>
  15. </Layout>
  16. </Layouts>
  17. </Div>
  18. <Grid id="grd_bodypart" taborder="2" useinputpanel="false" position="absolute 0 100 601 500" autofittype="col" binddataset="ds_grid_grd_bodypart" positiontype="position" cellsizingtype="col">
  19. <Formats>
  20. <Format id="default">
  21. <Columns>
  22. <Column size="26"/>
  23. <Column size="35"/>
  24. <Column size="113"/>
  25. <Column size="183"/>
  26. <Column size="233"/>
  27. <Column size="0"/>
  28. <Column size="0"/>
  29. </Columns>
  30. <Rows>
  31. <Row size="24" band="head"/>
  32. <Row size="24"/>
  33. </Rows>
  34. <Band id="head">
  35. <Cell/>
  36. <Cell col="1" text="순번 "/>
  37. <Cell col="2" text="주사부위코드"/>
  38. <Cell col="3" text="주사부위코드명"/>
  39. <Cell col="4" text="비고"/>
  40. <Cell col="5" text="basecdflag"/>
  41. <Cell col="6" text="basesuppdeptcd"/>
  42. </Band>
  43. <Band id="body">
  44. <Cell celltype="head"/>
  45. <Cell col="1" displaytype="number" edittype="text" editfilter="number" style="align:left middle;" text="bind:sortno" editlimit="4" editlimitbymask="decimal" editlengthunit="utf8"/>
  46. <Cell col="2" displaytype="text" edittype="text" text="bind:basecd" editlimit="8" editlengthunit="utf8"/>
  47. <Cell col="3" displaytype="text" edittype="text" text="bind:basecdflagdesc" editlimit="100" editlengthunit="utf8"/>
  48. <Cell col="4" displaytype="text" edittype="text" text="bind:basecdcnts" editlimit="1000" editlengthunit="utf8"/>
  49. <Cell col="5" text="bind:basecdflag"/>
  50. <Cell col="6" text="bind:basesuppdeptcd"/>
  51. </Band>
  52. </Format>
  53. </Formats>
  54. </Grid>
  55. <Static id="caption1" text="주사부위코드관리" class="tit_2" position="absolute 0 80 125 100" positiontype="position"/>
  56. <Button id="btn_grdadd" taborder="3" text="행추가" onlbuttonup="btn_grdadd_onlbuttonup" class="btn2" position="absolute 409 77 465 97" positiontype="position" onclick="btn_grdadd_onclick"/>
  57. <Button id="btn_grddel" taborder="4" text="행삭제" onlbuttonup="btn_grddel_onlbuttonup" class="btn2" position="absolute 467 77 523 97" positiontype="position" onclick="btn_grddel_onclick"/>
  58. <Button id="btn_excsave" taborder="5" text="엑셀저장" onlbuttonup="btn_excsave_onlbuttonup" class="btn7" position="absolute 525 77 601 97" positiontype="position" onclick="btn_excsave_onclick"/>
  59. <Button id="btn_save" taborder="6" text="저장" onlbuttonup="btn_save_onlbuttonup" class="btn4" position="absolute 475 503 531 523" positiontype="position" onclick="btn_save_onclick"/>
  60. <Button id="btn_clear" taborder="7" text="초기화" onlbuttonup="btn_clear_onlbuttonup" class="btn4" position="absolute 532 503 601 523" positiontype="position" onclick="btn_clear_onclick"/>
  61. <Static id="caption19" text="주사부위코드관리" class="tit_1" position="absolute 0 0 207 25"/>
  62. </Layout>
  63. </Layouts>
  64. <Objects>
  65. <Dataset id="ds_grid_grd_bodypart" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  66. <ColumnInfo>
  67. <Column id="sortno" type="STRING"/>
  68. <Column id="basecd" type="STRING"/>
  69. <Column id="basecdflagdesc" type="STRING"/>
  70. <Column id="basecdcnts" type="STRING"/>
  71. <Column id="basecdflag" type="STRING"/>
  72. <Column id="basesuppdeptcd" type="STRING"/>
  73. <Column id="basecdold" type="STRING" size="256"/>
  74. <Column id="seq" type="STRING" size="256"/>
  75. </ColumnInfo>
  76. </Dataset>
  77. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  78. <ColumnInfo>
  79. <Column id="basesuppdeptcd" type="STRING" size="256"/>
  80. <Column id="basecdflag" type="STRING" size="256"/>
  81. <Column id="basecd" type="STRING" size="256"/>
  82. <Column id="basecdnm" type="STRING" size="256"/>
  83. </ColumnInfo>
  84. <Rows>
  85. <Row/>
  86. </Rows>
  87. </Dataset>
  88. </Objects>
  89. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  90. * System Name : KU2.0
  91. * Job Name :
  92. * File Name : SPAEA02312_주사부위코드관리(핵의학체내).xfdl
  93. * Creator :
  94. * Make Date : 2016.06.15
  95. *
  96. * Description :
  97. *---------------------------------------------------------------------------------------
  98. * Modify Date Modifier Modify Description
  99. *---------------------------------------------------------------------------------------
  100. *
  101. *---------------------------------------------------------------------------------------
  102. ****************************************************************************************/
  103. //=======================================================================================
  104. // xjs Include
  105. //---------------------------------------------------------------------------------------
  106. include "com_commonxp::comm_main.xjs";
  107. include "ast_commonxp::AST.xjs";
  108. include "ast_examcurexp::AEZ0001.xjs";
  109. //=======================================================================================
  110. // Function
  111. //---------------------------------------------------------------------------------------
  112. function submit_TRAEA02312(){
  113. ds_send.setColumn(0,"basesuppdeptcd",suppdeptcd);
  114. ds_send.setColumn(0,"basecdflag","L");
  115. ds_send.setColumn(0,"basecd",Div00.ipt_basecd.value);
  116. ds_send.setColumn(0,"basecdnm",Div00.ipt_basecdnm.value);
  117. var objParam = new Object();
  118. objParam.id = "TRAEA02312";
  119. objParam.service = "examcurebaseapp.NmedCodeMngt";
  120. objParam.method = "reqGetNmedCodeList";
  121. objParam.inds = "req=ds_send";
  122. objParam.outds ="ds_grid_grd_bodypart=list";
  123. tranf_submit(objParam);
  124. }
  125. function submit_TXAEA02312(){
  126. for(var i=0; i<ds_grid_grd_bodypart.rowcount; i++){
  127. ds_grid_grd_bodypart.setColumn(i,"basecdflag","L");
  128. ds_grid_grd_bodypart.setColumn(i,"basesuppdeptcd",suppdeptcd);
  129. if(ds_grid_grd_bodypart.getColumn(i,"basecd")==null || ds_grid_grd_bodypart.getColumn(i,"basecd")==""){
  130. ds_grid_grd_bodypart.applyChange();
  131. sysf_messageBox("주사부위 코드는 필수 입력값 입니다.", "I999");
  132. return;
  133. }
  134. }
  135. var objParam = new Object();
  136. objParam.id = "TXAEA02312";
  137. objParam.service = "examcurebaseapp.NmedCodeMngt";
  138. objParam.method = "reqExeNmedCodeList";
  139. objParam.inds = "req=ds_grid_grd_bodypart:U";
  140. objParam.typeStr = "m";
  141. objParam.callback = "cbf_TXAEA02312";
  142. tranf_submit(objParam);
  143. }
  144. function cbf_TXAEA02312(strSvcID, nErrorCode, strErrorMsg){
  145. //에러 처리
  146. if(nErrorCode == 0){
  147. submit_TRAEA02312();
  148. }else{
  149. astErrorMsg(strErrorMsg);
  150. }
  151. }
  152. //=======================================================================================
  153. // Event
  154. //---------------------------------------------------------------------------------------
  155. /****************************************************************************************
  156. * Components :
  157. * Components ID : SPAEA02312
  158. * Event : onload
  159. * Argument : 01.obj : Object Event has occurred
  160. * : 02.e : Event Object
  161. * Description :
  162. ****************************************************************************************/
  163. function SPAEA02312_onload(obj:Form, e:LoadEventInfo)
  164. {
  165. frmf_initForm(obj); // 화면공통
  166. lf_aezfSetSuppDeptcd();
  167. grdf_setRowTypeIcon(grd_bodypart,0);
  168. Div00.ipt_basecd.setFocus();
  169. submit_TRAEA02312();
  170. }
  171. /****************************************************************************************
  172. * Components :
  173. * Components ID : btn_sea
  174. * Event : onclick
  175. * Argument : 01.obj : Object Event has occurred
  176. * : 02.e : Event Object
  177. * Description :
  178. ****************************************************************************************/
  179. function btn_sea_onclick(obj:Button, e:ClickEventInfo)
  180. {
  181. submit_TRAEA02312();
  182. }
  183. /****************************************************************************************
  184. * Components :
  185. * Components ID : btn_excsave
  186. * Event : onclick
  187. * Argument : 01.obj : Object Event has occurred
  188. * : 02.e : Event Object
  189. * Description :
  190. ****************************************************************************************/
  191. function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
  192. {
  193. grdf_exportExcel(grd_bodypart, "주사부위코드관리", "주사부위코드관리"); //파일 다이얼로그로 저장위치 저장
  194. }
  195. /****************************************************************************************
  196. * Components :
  197. * Components ID : btn_grddel
  198. * Event : onclick
  199. * Argument : 01.obj : Object Event has occurred
  200. * : 02.e : Event Object
  201. * Description :
  202. ****************************************************************************************/
  203. function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  204. {
  205. //ds_grid_grd_bodypart.setColumn(grd_bodypart.currentrow,"basecdflag","L");
  206. //ds_grid_grd_bodypart.setColumn(grd_bodypart.currentrow,"basesuppdeptcd",suppdeptcd);
  207. dsf_deleteSelectedRows(grd_bodypart, true); //현재row 데이터 삭제설정(true:실제데이터 삭제, false:상태만변경)
  208. }
  209. /****************************************************************************************
  210. * Components :
  211. * Components ID : btn_grdadd
  212. * Event : onclick
  213. * Argument : 01.obj : Object Event has occurred
  214. * : 02.e : Event Object
  215. * Description :
  216. ****************************************************************************************/
  217. function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  218. {
  219. ds_grid_grd_bodypart.addRow();
  220. ds_grid_grd_bodypart.setColumn(grd_bodypart.currentrow,"suppdeptcd",suppdeptcd);
  221. ds_grid_grd_bodypart.setColumn(grd_bodypart.currentrow,"basecdflag","L");
  222. ds_grid_grd_bodypart.setColumn(grd_bodypart.currentrow,"sortno",ds_grid_grd_bodypart.rowcount+1);
  223. ds_grid_grd_bodypart.setColumn(grd_bodypart.currentrow,"basecdcnts","-");
  224. }
  225. /****************************************************************************************
  226. * Components :
  227. * Components ID : btn_clear
  228. * Event : onclick
  229. * Argument : 01.obj : Object Event has occurred
  230. * : 02.e : Event Object
  231. * Description :
  232. ****************************************************************************************/
  233. function btn_clear_onclick(obj:Button, e:ClickEventInfo)
  234. {
  235. if ( sysf_messageBox("초기화하시겠습니까?", "Q") == 6) {
  236. this.reload();
  237. }
  238. ipt_basecd.setFocus();
  239. }
  240. /****************************************************************************************
  241. * Components :
  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. submit_TXAEA02312();
  251. }
  252. ]]></Script>
  253. </Form>
  254. </FDL>