SPAEA02308_투여방법코드관리(핵의학체내).xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPAEA02308" position="absolute 0 0 595 484" titletext="투여방법코드관리" oninit="model1_oninit" onload="SPAEA02308_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="roundrect1" anchor="left top right" taborder="0" applystyletype="apply" style="align:center top;transformation:0,0 ;" scrollbars="none" class="div_SA" position="absolute 0 26 591 68" type="roundrectangle" positiontype="position">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption1" text="등록번호" class="search_name" position="absolute -2 195 72 215" anchor="default" positiontype="position"/>
  11. <Edit id="ipt_pid" taborder="57" class="input_search" position="absolute 71 195 171 215" anchor="default"/>
  12. <Edit id="opt_pathngnm" taborder="58" readonly="true" class="output_fix" position="absolute 197 195 297 215" anchor="default"/>
  13. <Button id="button61" taborder="59" onlbuttonup="&quot;button61_onlbuttonup&quot;" class="icon_search" position="absolute 172 195 192 215" anchor="default"/>
  14. <Button id="btn_sea" taborder="60" text="조회" onlbuttonup="&quot;btn_sea_onlbuttonup&quot;" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" onclick="btn_sea_onclick" positiontype="position"/>
  15. <Static id="caption5" text="적용일자" class="search_name" position="absolute 321 195 395 215" anchor="default"/>
  16. <Calendar id="ipt_startrsrvdd" taborder="61" class="input_default" position="absolute 394 195 494 215" style="align:center middle;" anchor="default"/>
  17. <Calendar id="ipt_endrsrvdd" taborder="62" class="input_default" position="absolute 510 195 610 215" style="align:center middle;" anchor="default"/>
  18. <Static id="caption00" text="~" position="absolute 491 127 507 147" style="align:center;" anchor="default"/>
  19. <Static id="caption2" text="코드" onclick="grp_biz_grp_sea_caption2_onclick" class="search_name" position2="absolute l:8 w:48 t:11 h:20" positiontype="position2"/>
  20. <Edit id="ipt_basecd" taborder="63" class="input_search" position="absolute 56 10 191 30" anchor="default" imemode="hangul" onkeydown="roundrect1_ipt_basecd_onkeydown" positiontype="position"/>
  21. <Static id="caption3" text="코드명" class="search_name" position="absolute 215 11 276 31" anchor="default" positiontype="position"/>
  22. <Edit id="ipt_basecdnm" taborder="64" class="input_search" position="absolute 276 10 411 30" anchor="default" imemode="hangul" onkeydown="roundrect1_ipt_basecdnm_onkeydown" positiontype="position"/>
  23. </Layout>
  24. </Layouts>
  25. </Div>
  26. <Grid id="grd_bodypart" taborder="1" useinputpanel="false" position="absolute 0 99 591 451" anchor="all" binddataset="ds_grid_grd_bodypart" positiontype="position" cellsizingtype="col">
  27. <Formats>
  28. <Format id="default">
  29. <Columns>
  30. <Column size="24"/>
  31. <Column size="35"/>
  32. <Column size="113"/>
  33. <Column size="183"/>
  34. <Column size="230"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. </Columns>
  38. <Rows>
  39. <Row size="22" band="head"/>
  40. <Row size="20"/>
  41. </Rows>
  42. <Band id="head">
  43. <Cell/>
  44. <Cell col="1" text="순번 "/>
  45. <Cell col="2" text="투여방법코드"/>
  46. <Cell col="3" text="투여방법코드명"/>
  47. <Cell col="4" text="비고"/>
  48. <Cell col="5" text="basecdflag"/>
  49. <Cell col="6" text="basesuppdeptcd"/>
  50. </Band>
  51. <Band id="body">
  52. <Cell celltype="head" style="align:center middle;"/>
  53. <Cell col="1" displaytype="text" edittype="text" style="padding:0 5 0 5;" text="bind:sortno" editlimit="4" editlengthunit="utf8"/>
  54. <Cell col="2" displaytype="text" edittype="text" style="padding:0 5 0 5;" text="bind:basecd" editlimit="8" editlengthunit="utf8"/>
  55. <Cell col="3" displaytype="text" edittype="text" style="padding:0 5 0 5;" text="bind:basecdflagdesc" editlimit="100" editlengthunit="utf8"/>
  56. <Cell col="4" displaytype="text" edittype="text" style="padding:0 5 0 5;" text="bind:basecdcnts" editlimit="1000" editlengthunit="utf8"/>
  57. <Cell col="5" text="bind:basecdflag"/>
  58. <Cell col="6" text="bind:basesuppdeptcd"/>
  59. </Band>
  60. </Format>
  61. </Formats>
  62. </Grid>
  63. <Static id="caption1" text="투여방법코드관리" class="tit_2" position="absolute 0 76 125 96" positiontype="position"/>
  64. <Button id="btn_grdadd" taborder="2" text="행추가" onlbuttonup="btn_grdadd_onlbuttonup" class="btn2" position="absolute 397 73 453 93" anchor="top right" positiontype="position" onclick="btn_grdadd_onclick"/>
  65. <Button id="btn_grddel" taborder="3" text="행삭제" onlbuttonup="btn_grddel_onlbuttonup" class="btn2" position="absolute 456 73 512 93" anchor="top right" positiontype="position" onclick="btn_grddel_onclick"/>
  66. <Button id="btn_excsave" taborder="4" text="엑셀저장" onlbuttonup="btn_excsave_onlbuttonup" class="btn7" position="absolute 515 73 591 93" anchor="top right" positiontype="position" onclick="btn_excsave_onclick"/>
  67. <Button id="btn_save" taborder="5" text="저장" onlbuttonup="btn_save_onlbuttonup" class="btn4" position="absolute 463 456 519 476" anchor="right bottom" positiontype="position" onclick="btn_save_onclick"/>
  68. <Button id="btn_clear" taborder="6" text="초기화" onlbuttonup="btn_clear_onlbuttonup" class="btn4" position="absolute 522 456 591 476" anchor="right bottom" positiontype="position" onclick="btn_clear_onclick"/>
  69. <Button id="btn_sea" taborder="8" text="조회" onlbuttonup="&quot;btn_sea_onlbuttonup&quot;" class="btn1" position="absolute 528 37 584 57" anchor="top right" positiontype="position" onclick="btn_sea_onclick"/>
  70. <Static id="caption19" text="투여방법코드관리" class="tit_1" position="absolute 0 0 160 25"/>
  71. </Layout>
  72. </Layouts>
  73. <Objects>
  74. <Dataset id="ds_grid_grd_bodypart" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  75. <ColumnInfo>
  76. <Column id="sortno" type="STRING"/>
  77. <Column id="basecd" type="STRING"/>
  78. <Column id="basecdflagdesc" type="STRING"/>
  79. <Column id="basecdcnts" type="STRING"/>
  80. <Column id="basecdflag" type="STRING"/>
  81. <Column id="basesuppdeptcd" type="STRING"/>
  82. <Column id="seq" type="STRING" size="256"/>
  83. <Column id="basecdold" type="STRING" size="256"/>
  84. </ColumnInfo>
  85. </Dataset>
  86. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  87. <ColumnInfo>
  88. <Column id="basecd" type="STRING" size="256"/>
  89. <Column id="basecdnm" type="STRING" size="256"/>
  90. <Column id="basecdflag" type="STRING" size="256"/>
  91. <Column id="basesuppdeptcd" type="STRING" size="256"/>
  92. </ColumnInfo>
  93. <Rows>
  94. <Row/>
  95. </Rows>
  96. </Dataset>
  97. </Objects>
  98. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  99. * System Name : KU2.0
  100. * Job Name :
  101. * File Name : SPAEA02308_투여방법코드관리(핵의학체내).xfdl
  102. * Creator :
  103. * Make Date : 2016.06.15
  104. *
  105. * Description :
  106. *---------------------------------------------------------------------------------------
  107. * Modify Date Modifier Modify Description
  108. *---------------------------------------------------------------------------------------
  109. *
  110. *---------------------------------------------------------------------------------------
  111. ****************************************************************************************/
  112. //=======================================================================================
  113. // xjs Include
  114. //---------------------------------------------------------------------------------------
  115. include "com_commonxp::comm_main.xjs";
  116. include "ast_commonxp::AST.xjs";
  117. include "ast_examcurexp::AEZ0001.xjs";
  118. //=======================================================================================
  119. // Function
  120. //---------------------------------------------------------------------------------------
  121. //조회
  122. function submit_TRAEA02308(){
  123. ds_send.setColumn(0,"basecd", roundrect1.ipt_basecd.value);
  124. ds_send.setColumn(0,"basecdnm",roundrect1.ipt_basecdnm.value);
  125. ds_send.setColumn(0,"basecdflag","P");
  126. ds_send.setColumn(0,"basesuppdeptcd",suppdeptcd);
  127. var objParam = new Object();
  128. objParam.id = "TRAEA02308";
  129. objParam.service = "examcurebaseapp.NmedCodeMngt";
  130. objParam.method = "reqGetNmedCodeList";
  131. objParam.inds = "req=ds_send";
  132. objParam.outds ="ds_grid_grd_bodypart=list";
  133. objParam.callback = "cbf_TRAEA02308";
  134. tranf_submit(objParam);
  135. }
  136. function cbf_TRAEA02308(){
  137. for(var i = 0 ; i< ds_grid_grd_bodypart.rowcount ;i++){
  138. ds_grid_grd_bodypart.setColumn(i,"basesuppdeptcd",suppdeptcd);
  139. ds_grid_grd_bodypart.setColumn(i,"basecdflag","P");
  140. }
  141. ds_grid_grd_bodypart.applyChange();
  142. }
  143. //저장
  144. function submit_TXAEA02308(){
  145. var objParam = new Object();
  146. objParam.id = "TXAEA02308";
  147. objParam.service = "examcurebaseapp.NmedCodeMngt";
  148. objParam.method = "reqExeNmedCodeList";
  149. objParam.inds = "req=ds_grid_grd_bodypart:U";
  150. objParam.typeStr = "m";
  151. tranf_submit(objParam);
  152. }
  153. //=======================================================================================
  154. // Event
  155. //---------------------------------------------------------------------------------------
  156. /****************************************************************************************
  157. * Components :
  158. * Components ID : SPAEA02308
  159. * Event : onload
  160. * Argument : 01.obj : Object Event has occurred
  161. * : 02.e : Event Object
  162. * Description :
  163. ****************************************************************************************/
  164. function SPAEA02308_onload(obj:Form, e:LoadEventInfo)
  165. {
  166. frmf_initForm(obj); // 화면공통
  167. lf_aezfSetSuppDeptcd();
  168. roundrect1.ipt_basecd.setFocus();
  169. //상태표시
  170. grdf_setRowTypeIcon(grd_bodypart,0);
  171. btn_sea.click();
  172. }
  173. /****************************************************************************************
  174. * Components :
  175. * Components ID : btn_sea
  176. * Event : onclick
  177. * Argument : 01.obj : Object Event has occurred
  178. * : 02.e : Event Object
  179. * Description :
  180. ****************************************************************************************/
  181. function btn_sea_onclick(obj:Button, e:ClickEventInfo)
  182. {
  183. submit_TRAEA02308();
  184. }
  185. /****************************************************************************************
  186. * Components :
  187. * Components ID : btn_excsave
  188. * Event : onclick
  189. * Argument : 01.obj : Object Event has occurred
  190. * : 02.e : Event Object
  191. * Description :
  192. ****************************************************************************************/
  193. //엑셀
  194. function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
  195. {
  196. grdf_exportExcel(grd_bodypart, "투여방법코드관리(핵의학체내)", "sheet1");
  197. }
  198. /****************************************************************************************
  199. * Components :
  200. * Components ID : btn_grddel
  201. * Event : onclick
  202. * Argument : 01.obj : Object Event has occurred
  203. * : 02.e : Event Object
  204. * Description :
  205. ****************************************************************************************/
  206. //행삭제
  207. function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  208. {
  209. dsf_deleteSelectedRows(grd_bodypart, true);
  210. }
  211. /****************************************************************************************
  212. * Components :
  213. * Components ID : btn_grdadd
  214. * Event : onclick
  215. * Argument : 01.obj : Object Event has occurred
  216. * : 02.e : Event Object
  217. * Description :
  218. ****************************************************************************************/
  219. //행추가
  220. function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  221. {
  222. ds_grid_grd_bodypart.addRow();
  223. ds_grid_grd_bodypart.setColumn(ds_grid_grd_bodypart.rowposition,"basesuppdeptcd",suppdeptcd);
  224. ds_grid_grd_bodypart.setColumn(ds_grid_grd_bodypart.rowposition,"basecdflag","P");
  225. }
  226. /****************************************************************************************
  227. * Components :
  228. * Components ID : btn_clear
  229. * Event : onclick
  230. * Argument : 01.obj : Object Event has occurred
  231. * : 02.e : Event Object
  232. * Description :
  233. ****************************************************************************************/
  234. //초기화
  235. function btn_clear_onclick(obj:Button, e:ClickEventInfo)
  236. {
  237. if ( sysf_messageBox("초기화하시겠습니까?", "Q") == 6) {
  238. ds_grid_grd_bodypart.clearData();
  239. }
  240. roundrect1.ipt_basecd.setFocus();
  241. }
  242. /****************************************************************************************
  243. * Components :
  244. * Components ID : btn_save
  245. * Event : onclick
  246. * Argument : 01.obj : Object Event has occurred
  247. * : 02.e : Event Object
  248. * Description :
  249. ****************************************************************************************/
  250. //저장
  251. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  252. {
  253. if ( sysf_messageBox("", "Q002") == 6 ) {
  254. var update = grdf_getGridUpdateData(grd_bodypart,"all");
  255. var tmpbasecd;
  256. for(var i = 0; i < ds_grid_grd_bodypart.rowcount; i++){
  257. if(utlf_isNull(ds_grid_grd_bodypart.getColumn(i, "basecd"))){
  258. sysf_messageBox("투여방법코드 항목은", "I003");
  259. return;
  260. }else{
  261. tmpbasecd = ds_grid_grd_bodypart.getColumn(i, "basecd");
  262. }
  263. for(var j=0; j<ds_grid_grd_bodypart.rowcount; j++){
  264. if(tmpbasecd == ds_grid_grd_bodypart.getColumn(j,"basecd") && i!=j){
  265. sysf_messageBox("중복된 코드값이 존재합니다.","E999");
  266. return;
  267. }
  268. }
  269. }
  270. if (update.rowcount ==0) {
  271. sysf_messageBox("업데이트 정보가 없습니다.", "I");
  272. roundrect1.ipt_basecd.setFocus();
  273. }
  274. else {
  275. submit_TXAEA02308();
  276. }
  277. submit_TRAEA02308();
  278. ds_send.setColumn(0,"basecd","");
  279. ds_send.setColumn(0,"basecdnm","");
  280. }
  281. }
  282. //닫기
  283. function Button00_onclick(obj:Button, e:ClickEventInfo)
  284. {
  285. this.close();
  286. }
  287. //코드 edit에서 엔터 누를시 조회
  288. function roundrect1_ipt_basecd_onkeydown(obj:Edit, e:KeyEventInfo)
  289. {
  290. if(e.keycode == 13){
  291. btn_sea.click();
  292. }
  293. }
  294. //코드명 edit에서 엔터 누를시 조회
  295. function roundrect1_ipt_basecdnm_onkeydown(obj:Edit, e:KeyEventInfo)
  296. {
  297. if(e.keycode == 13){
  298. btn_sea.click();
  299. }
  300. }
  301. ]]></Script>
  302. </Form>
  303. </FDL>