SMAEB00600_부위코드관리.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAEB00600" position="absolute 0 0 1202 805" titletext="Untitle" onload="SMAEB00600_onload" oninit="SMAEB00600_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Static text="부위코드관리" position="absolute 1 0 107 29" id="caption19" class="tit_1" anchor="default"/>
  8. <Div position="absolute 0 29 1195 773" id="grp_biz" scrollbars="autoboth">
  9. <Layouts>
  10. <Layout>
  11. <Shape position="absolute 1 66 1194 72" linetype="vertical" id="line1" class="line_1" anchor="default"/>
  12. <Shape position="absolute 0 0 1194 35" id="roundrect1" type="roundrectangle" anchor="default"/>
  13. <Button position="absolute 1124 8 1180 30" id="btn_sea" class="btn1" text="조회" anchor="default" onclick="grp_biz_btn_sea_onclick"/>
  14. <Button position="absolute 1086 40 1139 59" id="btn_grdadd" class="btn2" text="행추가" anchor="default" onclick="grp_biz_btn_grdadd_onclick"/>
  15. <Button position="absolute 1142 40 1195 59" id="btn_grddel" class="btn2" text="행삭제" anchor="default" onclick="grp_biz_btn_grddel_onclick"/>
  16. <Static text="부위코드관리" position="absolute 5 47 125 61" id="caption1" class="tit_2" anchor="default"/>
  17. <Grid position="absolute 1 66 1194 731" id="grd_bodypart" binddataset="ds_main_bodypart" anchor="default">
  18. <Formats>
  19. <Format id="default">
  20. <Columns>
  21. <Column size="26"/>
  22. <Column size="50"/>
  23. <Column size="113"/>
  24. <Column size="770"/>
  25. <Column size="209"/>
  26. <Column size="0"/>
  27. <Column size="0"/>
  28. </Columns>
  29. <Rows>
  30. <Row size="24" band="head"/>
  31. <Row size="24"/>
  32. </Rows>
  33. <Band id="head">
  34. <Cell/>
  35. <Cell col="1" text="순번 "/>
  36. <Cell col="2" text="부위(품목)코드"/>
  37. <Cell col="3" text="부위(품목)명"/>
  38. <Cell col="4" text="부위(품목)그룹"/>
  39. <Cell col="5" text="basecdflag"/>
  40. <Cell col="6" text="basesuppdeptcd"/>
  41. </Band>
  42. <Band id="body">
  43. <Cell celltype="head" text="bind:update"/>
  44. <Cell col="1" displaytype="text" edittype="text" text="bind:sortno" suppressalign="middle"/>
  45. <Cell col="2" displaytype="text" edittype="text" text="bind:basecd"/>
  46. <Cell col="3" displaytype="text" edittype="text" text="bind:basecdflagdesc"/>
  47. <Cell col="4" displaytype="text" edittype="text" text="bind:basecdcnts"/>
  48. <Cell col="5" text="bind:basecdflag"/>
  49. <Cell col="6" displaytype="text" edittype="text" text="bind:basesuppdeptcd"/>
  50. </Band>
  51. </Format>
  52. </Formats>
  53. </Grid>
  54. </Layout>
  55. </Layouts>
  56. </Div>
  57. <Div position="absolute 0 757 1195 784" id="grp_btn">
  58. <Layouts>
  59. <Layout>
  60. <Shape position="absolute 0 0 1194 6" linetype="vertical" id="line32" class="line_6"/>
  61. <Button position="absolute 1139 4 1195 26" id="btn_save" class="btn4" text="저장" onclick="grp_btn_btn_save_onclick"/>
  62. </Layout>
  63. </Layouts>
  64. </Div>
  65. <Static text="부위코드 :" position="absolute 15 39 111 56" id="caption2" class="search_name"/>
  66. <Button position="absolute 245 40 261 56" id="button61" class="icon_search" text=""/>
  67. <Edit position="absolute 105 39 240 58" id="ipt_basecd" class="input_search" onkeydown="ipt_basecd_onkeydown"/>
  68. </Layout>
  69. </Layouts>
  70. <Objects>
  71. <Dataset id="ds_main_bodypart" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  72. <ColumnInfo>
  73. <Column id="sortno" type="STRING"/>
  74. <Column id="basecd" type="STRING"/>
  75. <Column id="basecdflagdesc" type="STRING"/>
  76. <Column id="basecdcnts" type="STRING"/>
  77. <Column id="basecdflag" type="STRING"/>
  78. <Column id="basesuppdeptcd" type="STRING"/>
  79. </ColumnInfo>
  80. </Dataset>
  81. <Dataset id="ds_send_globalinstance" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  82. <ColumnInfo>
  83. <Column id="instance1" type="STRING" size="256"/>
  84. </ColumnInfo>
  85. <Rows>
  86. <Row/>
  87. </Rows>
  88. </Dataset>
  89. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  90. <ColumnInfo>
  91. <Column id="checkseq" type="STRING" size="256"/>
  92. <Column id="grupcdid" type="STRING" size="256"/>
  93. </ColumnInfo>
  94. <Rows>
  95. <Row/>
  96. </Rows>
  97. </Dataset>
  98. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_oncolumnchanged">
  99. <ColumnInfo>
  100. <Column id="basecd" type="STRING" size="256"/>
  101. <Column id="basesuppdeptcd" type="STRING" size="256"/>
  102. <Column id="bbasecdflag" type="STRING" size="256"/>
  103. </ColumnInfo>
  104. <Rows>
  105. <Row/>
  106. </Rows>
  107. </Dataset>
  108. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  109. <Dataset id="ds_main_bodypartgrp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  110. <Column id="basecdcnts" type="STRING" size="256" sumtext="부위그룹코드"/>
  111. <Column id="basecdcnts" type="STRING" size="256" sumtext="부위그룹코드"/>
  112. <ColumnInfo>
  113. <Column id="basecd" type="STRING" size="256" sumtext="부위그룹코드"/>
  114. <Column id="basecdcnts" type="STRING" size="256" sumtext="부위그룹코드"/>
  115. </ColumnInfo>
  116. </Dataset>
  117. </Objects>
  118. <Bind>
  119. <BindItem id="item0" compid="ipt_basecd" propid="value" datasetid="ds_send" columnid="basecd"/>
  120. </Bind>
  121. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  122. * System Name :
  123. * Job Name :
  124. * Creator :
  125. * Make Date : 2015-11-13
  126. * Description :
  127. *---------------------------------------------------------------------------------------
  128. * Modify Date Modifier Modify Description
  129. *---------------------------------------------------------------------------------------
  130. * 2015-11-13 Live Converter TF->XP
  131. *
  132. *---------------------------------------------------------------------------------------
  133. ****************************************************************************************/
  134. include "com_commonxp::comm_main.xjs";
  135. include "ast_examcurexp::AEZ0001.xjs";
  136. include "com_departmentcodexp::ZSD001.xjs";
  137. function fn_TRAEB00601(){
  138. if (ds_send.rowcount < 1 ) {
  139. ds_send.addRow();
  140. }
  141. ds_send.setColumn(0,'basesuppdeptcd', utlf_transNullToEmpty(frmf_getParameter("AST_DEPTCD"))); //부서코드
  142. ds_send.setColumn(0,'bbasecdflag', 'B'); //검사실기본코드구분
  143. var oParam = {};
  144. oParam.id = "TRAEB00601";
  145. oParam.service = "examcurebaseapp.BodyPart";
  146. oParam.method = "reqGetBodyPartList";
  147. oParam.inds = "req=ds_send";
  148. oParam.outds = "ds_main_bodypart=bodypart ds_main_bodypartgrp=bodypartgrp";
  149. oParam.async = false;
  150. oParam.callback = "cf_TRAEB00601";
  151. tranf_submit(oParam);
  152. }
  153. function cf_TRAEB00601(sSvcId, nErrorCode, sErrorMsg) {
  154. if(nErrorCode < 0) return;
  155. }
  156. function fn_TXAEB00601(){
  157. if (ds_send_reqdata.rowcount < 1 ) {
  158. ds_send_reqdata.addRow();
  159. }
  160. ds_send_reqdata.addColumn( 'bbasecdflag', 'string');
  161. ds_send_reqdata.setColumn(0,'bbasecdflag', 'B'); //검사실기본코드구분
  162. var oParam = {};
  163. oParam.id = "TXAEB00601";
  164. oParam.service = "examcurebaseapp.BodyPart";
  165. oParam.method = "reqExeBodyPartList";
  166. oParam.inds = "req=ds_send_reqdata";
  167. oParam.outds = "ds_hidden=item";
  168. oParam.async = false;
  169. oParam.callback = "cf_TXAEB00601";
  170. tranf_submit(oParam);
  171. }
  172. function cf_TXAEB00601(sSvcId, nErrorCode, sErrorMsg) {
  173. if(nErrorCode < 0) return;
  174. }
  175. function SMAEB00600_oninit(obj:Form, e:InitEventInfo)
  176. {
  177. frmf_initForm(obj);
  178. }
  179. function SMAEB00600_onload(obj:Form, e:LoadEventInfo)
  180. {
  181. lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
  182. ds_send_globalinstance.setColumn(0,"instance1",frmf_getParameter("AST_DEPTCD"));
  183. sysf_trace("suppdeptcd = " + frmf_getParameter("AST_DEPTCD"));
  184. ds_main_bodypart.clearData();
  185. grdf_setRowTypeIcon(grp_biz.grd_bodypart, 0); //status 표시 : 입력, 삭제, 갱신
  186. ipt_basecd.setFocus();
  187. }
  188. function grp_biz_btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  189. {
  190. var nRow = ds_main_bodypart.addRow();
  191. // 행추가 시 bottomRow 사용하지 마세요!! 꼭
  192. grp_biz.grd_bodypart.setCellPos(nRow);
  193. ds_main_bodypart.setColumn(nRow,"basesuppdeptcd",ds_send_globalinstance.getColumn(0,"instance1"));
  194. ds_main_bodypart.setColumn(nRow,"sortno",nRow + 1);
  195. }
  196. function grp_biz_btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  197. {
  198. var arrRow = new Array();
  199. arrRow[0] = ds_main_bodypart.rowposition;
  200. grdf_setStatus(grp_biz.grd_bodypart, "D", arrRow);
  201. }
  202. function grp_btn_btn_save_onclick(obj:Button, e:ClickEventInfo)
  203. {
  204. if ( sysf_messageBox("","Q002")==6 ) {
  205. var dsUpdate = grdf_getGridUpdateData(grp_biz.grd_bodypart, "all");
  206. grdf_setStatusColumn(dsUpdate, "m");
  207. if(dsUpdate.rowcount == 0){
  208. sysf_messageBox("업데이트 정보가 없습니다.", "I");
  209. return 0;
  210. } else {
  211. ds_send_reqdata.clear();
  212. ds_send_reqdata.copyData(dsUpdate, true);
  213. dsf_setDefaultVal(ds_send_reqdata, "ubasecdflag:U");
  214. fn_TXAEB00601();
  215. }
  216. }
  217. fn_TRAEB00601();
  218. }
  219. function ipt_basecd_onkeydown(obj:Edit, e:KeyEventInfo)
  220. {
  221. if(e.keycode == 13) {
  222. grp_biz_grp_sea_btn_sea_onclick();
  223. }
  224. }
  225. function grp_biz_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  226. {
  227. fn_TRAEB00601();
  228. }
  229. ]]></Script>
  230. </Form>
  231. </FDL>