SPAEA03205_코드관리(사이버나이프).xfdl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPAEA03205" position="absolute 0 0 589 464" titletext="대분류코드 상세관리" oninit="SPAEA03205_oninit" onload="SPAEA03205_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 5 587 462" id="grp_biz" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Static text="코드관리" position="absolute 0 44 125 60" id="caption1" class="tit_2" anchor="default"/>
  11. <Shape position="absolute 0 59 587 65" linetype="horizontal" id="line1" class="line_1" anchor="default"/>
  12. <Grid position="absolute 0 65 587 425" id="grd_bodypart" binddataset="ds_main_bodypartlist_list" anchor="default" cellsizingtype="both" autoenter="key">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="25" band="left"/>
  17. <Column size="0"/>
  18. <Column size="118"/>
  19. <Column size="388"/>
  20. <Column size="0"/>
  21. <Column size="0"/>
  22. </Columns>
  23. <Rows>
  24. <Row size="24" band="head"/>
  25. <Row size="24"/>
  26. </Rows>
  27. <Band id="head">
  28. <Cell/>
  29. <Cell col="1" text="순번 "/>
  30. <Cell col="2" text="코드"/>
  31. <Cell col="3" text="코드명"/>
  32. <Cell col="4" text="basecdflag"/>
  33. <Cell col="5" text="basesuppdeptcd"/>
  34. </Band>
  35. <Band id="body">
  36. <Cell celltype="head"/>
  37. <Cell col="1" displaytype="text" edittype="text" text="bind:sortno"/>
  38. <Cell col="2" displaytype="text" edittype="text" text="bind:basecd" editautoselect="true"/>
  39. <Cell col="3" displaytype="text" edittype="text" text="bind:basecdflagdesc" editautoselect="true"/>
  40. <Cell col="4" text="bind:basecdcnts"/>
  41. <Cell col="5" text="bind:basesuppdeptcd"/>
  42. </Band>
  43. </Format>
  44. </Formats>
  45. </Grid>
  46. <Button position="absolute 534 41 587 60" id="btn_grddel" class="btn2" text="행삭제" anchor="default" onclick="grp_biz_btn_grddel_onclick"/>
  47. <Button position="absolute 478 41 531 60" id="btn_grdadd" class="btn2" text="행추가" anchor="default" onclick="grp_biz_btn_grdadd_onclick"/>
  48. <Button position="absolute 460 430 516 452" id="btn_save" class="btn4" text="저장" anchor="default" onclick="grp_biz_btn_save_onclick"/>
  49. <Button position="absolute 519 430 587 452" id="btn_clear" class="btn4" text="초기화" anchor="default" onclick="grp_biz_btn_clear_onclick"/>
  50. <Shape id="line00" class="line_1" position="absolute 0 60 587 66" anchor="default"/>
  51. <Shape id="line02" class="line_1" position="absolute 0 61 587 67" anchor="default"/>
  52. </Layout>
  53. </Layouts>
  54. </Div>
  55. <Div id="grp_sea" taborder="1" position="absolute 0 0 587 40" class="div_SA2">
  56. <Layouts>
  57. <Layout>
  58. <Static id="caption2" text="구분:" class="search_name" position="absolute 15 12 80 29"/>
  59. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 497 8 503 31"/>
  60. <Button id="btn_sea" taborder="1" text="조회" class="btn1" position="absolute 515 9 571 31" onclick="grp_sea_btn_sea_onclick"/>
  61. <Combo id="cmb_codelist" taborder="2" innerdataset="@ds_init_codelist" codecolumn="basecd" datacolumn="basecdflagdesc" position="absolute 85 10 320 29" onitemchanged="grp_sea_cmb_codelist_onitemchanged"/>
  62. </Layout>
  63. </Layouts>
  64. </Div>
  65. </Layout>
  66. </Layouts>
  67. <Objects>
  68. <Dataset id="ds_main_bodypartlist_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  69. <ColumnInfo>
  70. <Column id="sortno" type="STRING" size="256"/>
  71. <Column id="basecd" type="STRING" size="256"/>
  72. <Column id="basecdflagdesc" type="STRING" size="256"/>
  73. <Column id="basecdcnts" type="STRING" size="256"/>
  74. </ColumnInfo>
  75. <Rows>
  76. <Row>
  77. <Col id="sortno"/>
  78. <Col id="basecd"/>
  79. <Col id="basecdflagdesc"/>
  80. <Col id="basecdcnts">C001</Col>
  81. </Row>
  82. </Rows>
  83. </Dataset>
  84. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  85. <ColumnInfo>
  86. <Column id="req" type="STRING" size="256"/>
  87. <Column id="basecd" type="STRING" size="256"/>
  88. <Column id="basecdnm" type="STRING" size="256"/>
  89. <Column id="basecdflag" type="STRING" size="256"/>
  90. <Column id="basecdcnts" type="STRING" size="256"/>
  91. </ColumnInfo>
  92. <Rows>
  93. <Row>
  94. <Col id="req"/>
  95. <Col id="basecd"/>
  96. <Col id="basecdnm"/>
  97. <Col id="basecdflag">G</Col>
  98. <Col id="basecdcnts"/>
  99. </Row>
  100. </Rows>
  101. </Dataset>
  102. <Dataset id="ds_init_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  103. <ColumnInfo>
  104. <Column id="basecd" type="STRING" size="256"/>
  105. <Column id="basecdflagdesc" type="STRING" size="256"/>
  106. <Column id="length" type="STRING" size="256"/>
  107. </ColumnInfo>
  108. <Rows>
  109. <Row>
  110. <Col id="basecd"/>
  111. <Col id="basecdflagdesc"/>
  112. <Col id="length"/>
  113. </Row>
  114. </Rows>
  115. </Dataset>
  116. <Dataset id="ds_hidden_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  117. <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  118. </Objects>
  119. <Bind>
  120. <BindItem id="item0" compid="grp_sea.cmb_codelist" propid="value" datasetid="ds_send" columnid="basecd"/>
  121. </Bind>
  122. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  123. * System Name :
  124. * Job Name :
  125. * Creator :
  126. * Make Date : 2015-11-13
  127. * Description :
  128. *---------------------------------------------------------------------------------------
  129. * Modify Date Modifier Modify Description
  130. *---------------------------------------------------------------------------------------
  131. * 2015-11-13 Live Converter TF->XP
  132. *
  133. *---------------------------------------------------------------------------------------
  134. ****************************************************************************************/
  135. //=======================================================================================
  136. // Lib Include
  137. //---------------------------------------------------------------------------------------
  138. include "com_commonxp::comm_main.xjs"
  139. include "ast_examcurexp::AEZ0001.xjs"
  140. //=======================================================================================
  141. // Global Form Variable
  142. //---------------------------------------------------------------------------------------
  143. var arErrorCode = new HashArray();
  144. var gSuppdeptcd = "";
  145. //=======================================================================================
  146. // Function
  147. //---------------------------------------------------------------------------------------
  148. /****************************************************************************************
  149. * Argument : N/A
  150. * Description :
  151. ****************************************************************************************/
  152. //=======================================================================================
  153. // Event
  154. //---------------------------------------------------------------------------------------
  155. /****************************************************************************************
  156. * Components : Form
  157. * Components ID : SPAEA03205
  158. * Event : oninit
  159. * Argument : 01.obj : Object Event has occurred
  160. * : 02.e : Event Object
  161. * Description : 화면 처음 초기화시 폼초기화
  162. ****************************************************************************************/
  163. function SPAEA03205_oninit(obj:Form, e:InitEventInfo)
  164. {
  165. frmf_initForm(obj); // 폼 초기화
  166. }
  167. /****************************************************************************************
  168. * Components : Form
  169. * Components ID : SPAEA03205
  170. * Event : onload
  171. * Argument : 01.obj : Object Event has occurred
  172. * : 02.e : Event Object
  173. * Description : 화면 처음 초기화시 폼초기화
  174. ****************************************************************************************/
  175. function SPAEA03205_onload(obj:Form, e:LoadEventInfo)
  176. {
  177. lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
  178. gSuppdeptcd = frmf_getParameter("AST_DEPTCD");
  179. grdf_setRowTypeIcon(grp_biz.grd_bodypart, 0); // 그리드 상태 표시
  180. ds_init_codelist.clearData();
  181. ds_main_bodypartlist_list.clearData();
  182. ds_send.setColumn(0,"basecdcnts","000"); //마스터 코드 셋팅
  183. dsf_createDsRow("ds_req", [
  184. {col:"basecd", type:"STRING", size:256, val:ds_send.getColumn(0,"basecd")}
  185. , {col:"basecdcnts", type:"STRING", size:256, val:ds_send.getColumn(0,"basecdcnts")}
  186. , {col:"basecdflag", type:"STRING", size:256, val:"G"}
  187. , {col:"basesuppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
  188. ]);
  189. var oParam = {};
  190. oParam.id = "TXAEA03210";
  191. oParam.service = "examcurebaseapp.GoodCode";
  192. oParam.method = "reqGetCKCodeList";
  193. oParam.inds = "req=ds_req";
  194. oParam.outds = "ds_init_codelist=codelist";
  195. oParam.async = false;
  196. oParam.callback = "cf_TXAEA03210";
  197. tranf_submit(oParam);
  198. }
  199. function cf_TXAEA03210(sSvcId, nErrorCode, sErrorMsg) {
  200. if(nErrorCode < 0) return;
  201. ds_init_codelist.updateColID("basecnt","basecdcnt");
  202. }
  203. /****************************************************************************************
  204. * Components : Combo
  205. * Components ID : grp_sea.cmb_codelist
  206. * Event : onitemchanged
  207. * Argument : 01.obj : Object Event has occurred
  208. * : 02.e : Event Object
  209. * Description : 구분 변경
  210. ****************************************************************************************/
  211. function grp_sea_cmb_codelist_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  212. {
  213. ds_main_bodypartlist_list.clearData();
  214. }
  215. /****************************************************************************************
  216. * Components : Button
  217. * Components ID : grp_sea.btn_sea
  218. * Event : onclick
  219. * Argument : 01.obj : Object Event has occurred
  220. * : 02.e : Event Object
  221. * Description : 조회
  222. ****************************************************************************************/
  223. function grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  224. {
  225. dsf_createDsRow("ds_req", [
  226. {col:"basecdcnts", type:"STRING", size:256, val:ds_send.getColumn(0,"basecd")}
  227. , {col:"basecdflag", type:"STRING", size:256, val:"G"}
  228. , {col:"basesuppdeptcd", type:"STRING", size:256, val:gSuppdeptcd}
  229. ]);
  230. var oParam = {};
  231. oParam.id = "TRAEA03212";
  232. oParam.service = "examcurebaseapp.GoodCode";
  233. oParam.method = "reqGetCKCodeList";
  234. oParam.inds = "req=ds_req";
  235. oParam.outds = "ds_main_bodypartlist_list=codelist";
  236. oParam.async = true;
  237. //oParam.callback = "cf_TRAEA03212";
  238. tranf_submit(oParam);
  239. }
  240. /****************************************************************************************
  241. * Components : Button
  242. * Components ID : grp_biz.btn_grdadd
  243. * Event : onclick
  244. * Argument : 01.obj : Object Event has occurred
  245. * : 02.e : Event Object
  246. * Description : 행추가
  247. ****************************************************************************************/
  248. function grp_biz_btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  249. {
  250. var mastercode = ds_send.getColumn(0,"basecd");
  251. var suppdeptcd = gSuppdeptcd;
  252. var nRow = ds_main_bodypartlist_list.addRow();
  253. ds_main_bodypartlist_list.setColumn(nRow,"basecdcnts" ,mastercode);
  254. ds_main_bodypartlist_list.setColumn(nRow,"basesuppdeptcd",suppdeptcd);
  255. }
  256. /****************************************************************************************
  257. * Components : Button
  258. * Components ID : grp_biz.btn_grddel
  259. * Event : onclick
  260. * Argument : 01.obj : Object Event has occurred
  261. * : 02.e : Event Object
  262. * Description : 삭제
  263. ****************************************************************************************/
  264. function grp_biz_btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  265. {
  266. if(ds_main_bodypartlist_list.getRowType(ds_main_bodypartlist_list.rowposition)==2) {
  267. ds_main_bodypartlist_list.deleteRow(ds_main_bodypartlist_list.rowposition);
  268. } else {
  269. grdf_setStatus(grp_biz.grd_bodypart, "D", [ds_main_bodypartlist_list.rowposition]);
  270. }
  271. }
  272. /****************************************************************************************
  273. * Components : Button
  274. * Components ID : grp_biz.btn_save
  275. * Event : onclick
  276. * Argument : 01.obj : Object Event has occurred
  277. * : 02.e : Event Object
  278. * Description : 저장
  279. ****************************************************************************************/
  280. function grp_biz_btn_save_onclick(obj:Button, e:ClickEventInfo)
  281. {
  282. if ( sysf_messageBox("", "Q002") == 6 ) {
  283. var update = grdf_getGridUpdateData(grp_biz.grd_bodypart, "all");
  284. if(update.rowcount < 1) {
  285. sysf_messageBox("업데이트 정보가 없습니다.", "I");
  286. return 0;
  287. } else {
  288. grdf_setStatusColumn(update, "m");
  289. ds_send_req.copyData(update,true);
  290. dsf_setFixVal(ds_send_req, "basecdflag:G");
  291. var oParam = {};
  292. oParam.id = "TXAEA03211";
  293. oParam.service = "examcurebaseapp.GoodCode";
  294. oParam.method = "reqExeNuclCodeList";
  295. oParam.inds = "req=ds_send_req";
  296. oParam.outds = "ds_hidden_item=count";
  297. oParam.async = false;
  298. //oParam.callback = "cf_TXAEA03211";
  299. tranf_submit(oParam);
  300. }
  301. ds_send.setColumn(0,"basecd", "");
  302. ds_send.setColumn(0,"basecdnm", "");
  303. }
  304. this.reload();
  305. }
  306. /****************************************************************************************
  307. * Components : Button
  308. * Components ID : grp_biz.btn_clear
  309. * Event : onclick
  310. * Argument : 01.obj : Object Event has occurred
  311. * : 02.e : Event Object
  312. * Description : 초기화
  313. ****************************************************************************************/
  314. function grp_biz_btn_clear_onclick(obj:Button, e:ClickEventInfo)
  315. {
  316. if ( sysf_messageBox("초기화하시겠습니까?", "Q") == 6) {
  317. this.reload();
  318. }
  319. }
  320. ]]></Script>
  321. </Form>
  322. </FDL>