SPPIE03700_구입기관코드.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml" />
  4. <Form id="SPPIE03700" position="absolute 0 0 530 460" titletext="구입기관코드">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" scrollbars="autoboth" position="absolute 0 405 518 432" style="">
  8. <Layouts>
  9. <Layout>
  10. <Button id="btn_cancel" class="btn4_letter2" position="absolute 461 3 517 25" style="" text="닫기" onclick="group1_btn_cancel_onclick" />
  11. <Shape id="line88" class="line_6" linetype="horizontal" position="absolute 0 0 518 3" style="" anchor="default" />
  12. <Button id="button2" class="btn4_letter2" position="absolute 404 3 460 25" style="" text="저장" onclick="group1_button2_onclick" />
  13. </Layout>
  14. </Layouts>
  15. </Div>
  16. <Div id="group3" scrollbars="autoboth" position="absolute 0 0 518 402" style="">
  17. <Layouts>
  18. <Layout>
  19. <Grid id="grd_p2002" binddataset="ds_main_list01_gridp2002" position="absolute 0 50 515 400" style="">
  20. <Formats>
  21. <Format id="default">
  22. <Columns>
  23. <Column size="141" />
  24. <Column size="265" />
  25. <Column size="74" />
  26. <Column size="91" />
  27. <Column size="63" />
  28. <Column size="93" />
  29. <Column size="100" />
  30. <Column size="100" />
  31. <Column size="100" />
  32. <Column size="100" />
  33. </Columns>
  34. <Rows>
  35. <Row size="24" band="head" />
  36. <Row size="24" />
  37. </Rows>
  38. <Band id="head">
  39. <Cell text="구입기관코드" />
  40. <Cell col="1" text="구입기관명칭" />
  41. <Cell col="2" text="입력자" />
  42. <Cell col="3" text="적용시작일자" />
  43. <Cell col="4" text="기관코드" />
  44. <Cell col="5" text="적용종료일자" />
  45. <Cell col="6" text="최초등록일시" />
  46. <Cell col="7" text="최종수정자ID" />
  47. <Cell col="8" text="최종수정일시" />
  48. </Band>
  49. <Band id="body">
  50. <Cell text="bind:cdid" />
  51. <Cell col="1" text="bind:cdnm" />
  52. <Cell col="2" text="bind:fstrgstrid" />
  53. <Cell col="3" text="bind:fromdd" />
  54. <Cell col="4" text="bind:instcd" />
  55. <Cell col="5" text="bind:todd" />
  56. <Cell col="6" text="bind:fstrgstdt" />
  57. <Cell col="7" text="bind:lastupdtrid" />
  58. <Cell col="8" text="bind:lastupdtdt" />
  59. </Band>
  60. </Format>
  61. </Formats>
  62. </Grid>
  63. <Div id="group4" position="absolute 0 0 518 13" style="">
  64. <Layouts>
  65. <Layout>
  66. <Static id="caption6" class="tit_1" position="absolute 0 0 158 14" style="" text="구입기관코드" />
  67. </Layout>
  68. </Layouts>
  69. </Div>
  70. <Static id="caption8" class="tit_2" position="absolute 5 28 116 41" style="" text="구입기관코드" />
  71. <Shape id="line5" class="line_1" linetype="horizontal" position="absolute 0 45 518 48" style="" anchor="default" />
  72. <Button id="btn_addRow" class="btn2_letter3" position="absolute 340 23 393 42" style="" text="행추가" onclick="group3_btn_addRow_onclick" />
  73. <Button id="btn_delRow" class="btn2_letter3" position="absolute 396 23 449 42" style="" text="행삭제" onclick="group3_btn_delRow_onclick" />
  74. <Button id="btn_search" class="btn1_letter2" position="absolute 455 20 511 42" style="" text="조회" onclick="group3_btn_search_onclick" />
  75. </Layout>
  76. </Layouts>
  77. </Div>
  78. </Layout>
  79. </Layouts>
  80. <Objects>
  81. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  82. <ColumnInfo />
  83. </Dataset>
  84. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  85. <ColumnInfo />
  86. </Dataset>
  87. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  88. <ColumnInfo>
  89. <Column id="hidden" type="STRING" size="256" />
  90. </ColumnInfo>
  91. </Dataset>
  92. <Dataset id="ds_send_insdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  93. <ColumnInfo>
  94. <Column id="insdatalist" type="STRING" size="256" />
  95. </ColumnInfo>
  96. <Rows>
  97. <Row>
  98. <Col id="insdatalist"></Col>
  99. </Row>
  100. </Rows>
  101. </Dataset>
  102. <Dataset id="ds_main_list01" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  103. <ColumnInfo>
  104. <Column id="gridp2002" type="STRING" size="256" />
  105. </ColumnInfo>
  106. <Rows>
  107. <Row>
  108. <Col id="gridp2002"></Col>
  109. </Row>
  110. </Rows>
  111. </Dataset>
  112. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  113. <ColumnInfo>
  114. <Column id="init" type="STRING" size="256" />
  115. </ColumnInfo>
  116. <Rows>
  117. <Row>
  118. <Col id="init"></Col>
  119. </Row>
  120. </Rows>
  121. </Dataset>
  122. </Objects>
  123. <Bind />
  124. <Script type="xscript4.0"><![CDATA[include '../../.._com_commonweb_js_common.js'
  125. include '../../.._com_commonweb_js_tfHelper.js'
  126. // 부제기 사유코드 테이블에 한 Row을 추가하고 HIdden Column을 셋팅한다.
  127. function fAddRow() {
  128. // 행추가시 부제기구분만 check된 구분을 셋팅한다.
  129. // 나머지 컬럼은 Application Business 구현 Class에서 처리한다.
  130. var abdflag = ds_send.getColumn(0, "abdflag");
  131. grd_pirmabdm.addRow();
  132. var curr_row = grd_pirmabdm.row;
  133. ds_main_list01.setColumn( curr_row , "abdflag" , abdflag);
  134. //model.refresh();
  135. grd_pirmabdm.topRow = curr_row;
  136. return true;
  137. }
  138. function fDelRow() {
  139. var cur_row = grd_pirmabdm.row;
  140. if (ds_main_list01_gridpirmabdm.getColumn(cur_row, "useyn")) == "Y") {
  141. model.alert("이미 사용된 부제기 코드는 삭제할 수 없습니다");
  142. return;
  143. }
  144. // 행삭제시 DB에 저장되어 있는 자료에 대한 Delete, Update
  145. // 행추가로 인한 Row 생성후 저장하지 않는 자료는 그냥 삭제한다.
  146. if (sysf_messageBox("선택된 부제기사유 자료를", "Q001") != 6) return;
  147. if (cur_row > 0) {
  148. // DB에 저장되지 않은 데이타는 그냥 삭제한다.
  149. // if (grd_pirmabdm.rowStatus(cur_row) == "1" || grd_pirmabdm.rowStatus(cur_row) == "3" ) {
  150. // grd_pirmabdm.deleteItem(cur_row);
  151. //
  152. //model.refresh();
  153. // return;
  154. grd_pirmabdm.deleteRow(cur_row);
  155. // grd_pirmabdm.addStatus( cur_row, "delete");
  156. // ds_send_insdata.setColumn( 0, "insdatalist", grd_pirmabdm.getUpdateData("delete"));
  157. // if (submit("TXPIR30220")) {
  158. // }
  159. // else
  160. // grd_pirmabdm.removeStatus( cur_row, "delete");
  161. //
  162. //model.refresh();
  163. }
  164. }
  165. function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
  166. model.close();
  167. }
  168. function group1_button2_onclick(obj:Button, e:ClickEventInfo) {
  169. ds_send_insdata.setColumn( 0, "insdatalist",grd_pirmabdm.getUpdateData());
  170. // submit("TXPIR30220");
  171. var oParam = {};
  172. oParam.id = "TXPIR30220";
  173. oParam.service = "cutmngtapp.CutMngt";
  174. oParam.method = "reqExePirmAbdm";
  175. oParam.inds = "req=ds_";
  176. oParam.outds = "ds_=gridpirmabdm";
  177. oParam.async = false;
  178. oParam.callback = "cf_TXPIR30220";
  179. tranf_submit(oParam);
  180. /*
  181. function cf_TXPIR30220(sSvcId, nErrorCode, sErrorMsg) {
  182. if(nErrorCode < 0) return;
  183. }
  184. function cf_TXPIR30220(sSvcId, nErrorCode, sErrorMsg) {
  185. arErrorCode.push(sSvcId, nErrorCode);
  186. }
  187. arErrorCode.pop("TXPIR30220") > -1
  188. arErrorCode.pop("TXPIR30220") < 0
  189. */
  190. // 자료 입력, 수정, 삭제 후 저장했을 때 저장한 자료를 재조회한다.
  191. // submit("TRPIR30220");
  192. var oParam = {};
  193. oParam.id = "TRPIR30220";
  194. oParam.service = "cutmngtapp.CutMngt";
  195. oParam.method = "reqGetPirmAbdm";
  196. oParam.inds = "req=ds_";
  197. oParam.outds = "ds_=gridpirmabdm";
  198. oParam.async = false;
  199. oParam.callback = "cf_TRPIR30220";
  200. tranf_submit(oParam);
  201. /*
  202. function cf_TRPIR30220(sSvcId, nErrorCode, sErrorMsg) {
  203. if(nErrorCode < 0) return;
  204. }
  205. function cf_TRPIR30220(sSvcId, nErrorCode, sErrorMsg) {
  206. arErrorCode.push(sSvcId, nErrorCode);
  207. }
  208. arErrorCode.pop("TRPIR30220") > -1
  209. arErrorCode.pop("TRPIR30220") < 0
  210. */
  211. }
  212. function group3_btn_addRow_onclick(obj:Button, e:ClickEventInfo) {
  213. fAddRow();
  214. }
  215. function group3_btn_delRow_onclick(obj:Button, e:ClickEventInfo) {
  216. fDelRow();
  217. }
  218. function group3_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  219. // submit("TRPIR30220");
  220. var oParam = {};
  221. oParam.id = "TRPIR30220";
  222. oParam.service = "cutmngtapp.CutMngt";
  223. oParam.method = "reqGetPirmAbdm";
  224. oParam.inds = "req=ds_";
  225. oParam.outds = "ds_=gridpirmabdm";
  226. oParam.async = false;
  227. oParam.callback = "cf_TRPIR30220";
  228. tranf_submit(oParam);
  229. /*
  230. function cf_TRPIR30220(sSvcId, nErrorCode, sErrorMsg) {
  231. if(nErrorCode < 0) return;
  232. }
  233. function cf_TRPIR30220(sSvcId, nErrorCode, sErrorMsg) {
  234. arErrorCode.push(sSvcId, nErrorCode);
  235. }
  236. arErrorCode.pop("TRPIR30220") > -1
  237. arErrorCode.pop("TRPIR30220") < 0
  238. */
  239. // ds_main_list01.clearData(); ds_main_list01.addRow();
  240. //
  241. //model.refresh();
  242. }
  243. ]]></Script>
  244. </Form>
  245. </FDL>