SPAVB00200_묶음선택.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml" />
  4. <Form id="SPAVB00200" position="absolute 0 0 590 780" titletext="처리_물품 선택" onload="SPAVB00200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group4" scrollbars="autoboth" position="absolute 0 741 555 769" style="">
  8. <Layouts>
  9. <Layout>
  10. <Button id="button9" class="btn4_letter2" position="absolute 492 3 548 25" style="" text="취소" onclick="group4_button9_onclick" />
  11. <Button id="btn_cfm" class="btn4_letter2" position="absolute 433 3 489 25" style="" text="확인" onclick="group4_btn_cfm_onclick" />
  12. </Layout>
  13. </Layouts>
  14. </Div>
  15. <Div id="grp_tle" position="absolute 0 0 555 13" style="">
  16. <Layouts>
  17. <Layout>
  18. <Static id="caption6" class="tit_1" position="absolute 0 0 155 14" style="" text="묶음 관리" />
  19. </Layout>
  20. </Layouts>
  21. </Div>
  22. <Div id="group1" scrollbars="autoboth" position="absolute 0 13 555 740" style="">
  23. <Layouts>
  24. <Layout>
  25. <Div id="group5" position="absolute 0 10 555 48" style="align: top;">
  26. <Layouts>
  27. <Layout>
  28. <Shape id="roundrect2" anchor="default" type="roundrectangle" position="absolute 0 3 554 38" style="border:1 solid #ffd799 #ffd799;background:#fffbf2 ;" />
  29. <Button id="btn_sel" class="btn1_letter2" position="absolute 490 7 546 29" style="" text="조회" onclick="group1_group5_btn_sel_onclick" />
  30. <Static id="caption4" class="search_name" position="absolute 8 9 95 26" style="" text="조회코드 :" />
  31. <Static id="caption7" class="search_name" position="absolute 209 9 296 26" style="" text="조회내용 :" />
  32. <Edit id="ipt_partcd" class="input_search" position="absolute 95 8 202 27" style="" anchor="default" />
  33. <Edit id="ipt_partnm" class="input_search" position="absolute 300 8 461 27" style="" anchor="default" />
  34. </Layout>
  35. </Layouts>
  36. </Div>
  37. <Shape id="line2" class="line_1" linetype="horizontal" position="absolute 0 70 555 73" style="" anchor="default" />
  38. <Static id="caption1" class="tit_2" position="absolute 5 54 105 67" style="" text="묶음코드 List" />
  39. <Grid id="grd_bdllst" binddataset="ds_main_bdcdlstmst_item" position="absolute 0 74 555 290" style="" oncellclick="group1_grd_bdllst_oncellclick">
  40. <Formats>
  41. <Format id="default">
  42. <Columns>
  43. <Column size="100" />
  44. <Column size="404" />
  45. </Columns>
  46. <Rows>
  47. <Row size="25" band="head" />
  48. <Row size="25" />
  49. </Rows>
  50. <Band id="head">
  51. <Cell text="묶음코드" />
  52. <Cell col="1" text="묶음명" />
  53. </Band>
  54. <Band id="body">
  55. <Cell text="bind:bdlcd" />
  56. <Cell col="1" text="bind:bdlnm" />
  57. </Band>
  58. </Format>
  59. </Formats>
  60. </Grid>
  61. <Grid id="grd_choices" binddataset="ds_main_bdcdlstdtl_item" position="absolute 0 314 555 727" style="">
  62. <Formats>
  63. <Format id="default">
  64. <Columns>
  65. <Column size="55" />
  66. <Column size="70" />
  67. <Column size="60" />
  68. <Column size="190" />
  69. <Column size="90" />
  70. <Column size="50" />
  71. </Columns>
  72. <Rows>
  73. <Row size="24" band="head" />
  74. <Row size="24" />
  75. </Rows>
  76. <Band id="head">
  77. <Cell text="선택" />
  78. <Cell col="1" text="밴드" />
  79. <Cell col="2" text="상세코드" />
  80. <Cell col="3" text="상세코드명" />
  81. <Cell col="4" text="구분" />
  82. <Cell col="5" text="수량" />
  83. </Band>
  84. <Band id="body">
  85. <Cell text="bind:sel" />
  86. <Cell col="1" text="bind:bandmcd" />
  87. <Cell col="2" text="bind:banddcd" />
  88. <Cell col="3" text="bind:banddnm" />
  89. <Cell col="4" text="bind:gbdcd" />
  90. <Cell col="5" text="bind:qty" />
  91. </Band>
  92. </Format>
  93. </Formats>
  94. </Grid>
  95. <Static id="caption2" class="tit_2" position="absolute 5 294 105 307" style="" text="상세코드 List" />
  96. <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 0 310 555 313" style="" anchor="default" />
  97. </Layout>
  98. </Layouts>
  99. </Div>
  100. </Layout>
  101. </Layouts>
  102. <Objects>
  103. <Dataset id="ds_main_bdcdlstmst" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  104. <ColumnInfo />
  105. </Dataset>
  106. <Dataset id="ds_main_bdcdlstmst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  107. <ColumnInfo>
  108. <Column id="bdlcd" type="STRING" size="256" />
  109. <Column id="bdlnm" type="STRING" size="256" />
  110. <Column id="useyn" type="STRING" size="256" />
  111. </ColumnInfo>
  112. <Rows>
  113. <Row>
  114. <Col id="bdlcd"></Col>
  115. <Col id="bdlnm"></Col>
  116. <Col id="useyn"></Col>
  117. </Row>
  118. </Rows>
  119. </Dataset>
  120. <Dataset id="ds_main_bdcdlstdtl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  121. <ColumnInfo />
  122. </Dataset>
  123. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  124. <ColumnInfo />
  125. </Dataset>
  126. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  127. <ColumnInfo>
  128. <Column id="combobscdlst" type="STRING" size="256" />
  129. </ColumnInfo>
  130. <Rows>
  131. <Row>
  132. <Col id="combobscdlst"></Col>
  133. </Row>
  134. </Rows>
  135. </Dataset>
  136. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  137. <ColumnInfo>
  138. <Column id="list" type="STRING" size="256" />
  139. </ColumnInfo>
  140. </Dataset>
  141. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  142. <ColumnInfo>
  143. <Column id="srchbdlcd" type="STRING" size="256" />
  144. <Column id="srchbdlnm" type="STRING" size="256" />
  145. <Column id="bdlcd" type="STRING" size="256" />
  146. <Column id="bandcd" type="STRING" size="256" />
  147. <Column id="useyn" type="STRING" size="256" />
  148. </ColumnInfo>
  149. <Rows>
  150. <Row>
  151. <Col id="srchbdlcd"></Col>
  152. <Col id="srchbdlnm"></Col>
  153. <Col id="bdlcd"></Col>
  154. <Col id="bandcd"></Col>
  155. <Col id="useyn"></Col>
  156. </Row>
  157. </Rows>
  158. </Dataset>
  159. <Dataset id="ds_main_bdcdlstdtl_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  160. <ColumnInfo>
  161. <Column id="sel" type="STRING" size="256" />
  162. <Column id="bandmcd" type="STRING" size="256" />
  163. <Column id="banddcd" type="STRING" size="256" />
  164. <Column id="banddnm" type="STRING" size="256" />
  165. <Column id="gbdcd" type="STRING" size="256" />
  166. <Column id="qty" type="STRING" size="256" />
  167. <Column id="useyn" type="STRING" size="256" />
  168. </ColumnInfo>
  169. <Rows>
  170. <Row>
  171. <Col id="sel"></Col>
  172. <Col id="bandmcd"></Col>
  173. <Col id="banddcd"></Col>
  174. <Col id="banddnm"></Col>
  175. <Col id="gbdcd"></Col>
  176. <Col id="qty"></Col>
  177. <Col id="useyn"></Col>
  178. </Row>
  179. </Rows>
  180. </Dataset>
  181. </Objects>
  182. <Bind>
  183. <BindItem id="item0" compid="group1.group5.ipt_partcd" propid="value" datasetid="ds_send" columnid="srchbdlcd" />
  184. <BindItem id="item1" compid="group1.group5.ipt_partnm" propid="value" datasetid="ds_send" columnid="srchbdlnm" />
  185. </Bind>
  186. <Script type="xscript4.0"><![CDATA[
  187. //스크립트 시작 ***
  188. //전체에서 event와 src를 제외한 script 를 모두포함.
  189. /**
  190. * 콤보 초기화
  191. */
  192. function fGetComboInit(){
  193. // 콤보내용 불러오기
  194. tbGetBscdList( new Array("C04","C06"), new Array("ds_init_combobscdlst", "ds_init_combobscdlst") );
  195. // 코드없는값 첫번째 내용 삭제
  196. model.removeNodeset("ds_init_combobscdlst_C04[" + 1 + "]");
  197. //model.refresh();
  198. }
  199. /**
  200. * 묶음코드 리스트 조회
  201. */
  202. function fGetBdCdListMst(){
  203. // 조회 Node Clear
  204. ds_main_bdcdlstmst_item.clearData();
  205. ds_main_bdcdlstdtl_item.clearData();
  206. //model.refresh();
  207. // 조회값 setting
  208. ds_send.setColumn( 0, "bandcd", "-");
  209. ds_send.setColumn( 0, "useyn", "Y");
  210. // 조회 Call
  211. // submit("TRAVB00401");
  212. var oParam = {};
  213. oParam.id = "TRAVB00401";
  214. oParam.service = "tissuebankbaseapp.TissueBankBndl";
  215. oParam.method = "reqGetBdCdList";
  216. oParam.inds = "req=ds_";
  217. oParam.outds = "ds_=item";
  218. oParam.async = false;
  219. oParam.callback = "cf_TRAVB00401";
  220. tranf_submit(oParam);
  221. /*
  222. function cf_TRAVB00401(sSvcId, nErrorCode, sErrorMsg) {
  223. if(nErrorCode < 0) return;
  224. }
  225. function cf_TRAVB00401(sSvcId, nErrorCode, sErrorMsg) {
  226. arErrorCode.push(sSvcId, nErrorCode);
  227. }
  228. arErrorCode.pop("TRAVB00401") > -1
  229. arErrorCode.pop("TRAVB00401") < 0
  230. */
  231. }
  232. /**
  233. * 상세코드 리스트 조회
  234. */
  235. function fGetBdCdListDtl(){
  236. var idx = group1.grd_bdllst.row;
  237. if( idx < 1) return ;
  238. // 조회 Node Clear
  239. ds_main_bdcdlstdtl_item.clearData();
  240. //model.refresh();
  241. // 조회값 setting
  242. ds_send.setColumn( 0, "bdlcd", model.getValue(group1.grd_bdllst.nodeset + "[" + idx + "]_bdlcd" ) );
  243. ds_send.setColumn( 0, "bandcd", "" );
  244. ds_send.setColumn( 0, "useyn", "Y");
  245. // 조회 Call
  246. // submit("TRAVB00402");
  247. var oParam = {};
  248. oParam.id = "TRAHB00103";
  249. oParam.service = "tissuebankbaseapp.TissueBankBndl";
  250. oParam.method = "reqGetBdCdList";
  251. oParam.inds = "req=ds_";
  252. oParam.outds = "ds_=item";
  253. oParam.async = false;
  254. oParam.callback = "cf_TRAHB00103";
  255. tranf_submit(oParam);
  256. /*
  257. function cf_TRAHB00103(sSvcId, nErrorCode, sErrorMsg) {
  258. if(nErrorCode < 0) return;
  259. }
  260. function cf_TRAHB00103(sSvcId, nErrorCode, sErrorMsg) {
  261. arErrorCode.push(sSvcId, nErrorCode);
  262. }
  263. arErrorCode.pop("TRAHB00103") > -1
  264. arErrorCode.pop("TRAHB00103") < 0
  265. */
  266. }
  267. /**
  268. * Open 화면에 값 넘기기
  269. */
  270. function fSetData(){
  271. if( frmf_checkOpener() ){
  272. opener.dsf_makeValue( ds_temp, "okflag", "string", "" );
  273. opener.ds_temp.setColumn( 0, "okflag", "");
  274. var vRet = 0;
  275. model.removeNodeset("ds_temp_list" );
  276. vRet = fSetTestCd();
  277. // Open 화면에 Check 값설정
  278. if( vRet == 1) {
  279. opener.ds_temp.setColumn( 0, "okflag", "ok");
  280. } else {
  281. opener.ds_temp.setColumn( 0, "okflag", "");
  282. }
  283. }
  284. }
  285. /**
  286. * 추가검사 및 검사코드선택 시 데이터 setting
  287. */
  288. function fSetTestCd(){
  289. var nodeList = instance1.selectNodes(group1.grd_choices.nodeset + "[sel='Y']");
  290. if( nodeList.length > 0) {
  291. var rCSV = getNodeListCSV(nodeList);
  292. dsf_setCSVToDs("ds_temp", rCSV);
  293. // Opener Node에 복사
  294. copyNodeListType("ds_temp_templst", "ds_temp_list", "replace", opener.model, model );
  295. }
  296. else return 0;
  297. return 1;
  298. }
  299. //스크립트 끝
  300. include '../../.._com_commonweb_js_common.js'
  301. include '../../.._com_commonweb_js_tfHelper.js'
  302. include '../../.._ast_tissuebankbaseweb_js_tissuebankcombolist.js'
  303. function SPAVB00200_onload(obj:Form, e:LoadEventInfo) {
  304. frmf_initForm(obj);
  305. //grdf_initGrid(grd_XXX);
  306. //grdf_setGridSort(grd_XXX);
  307. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  308. fGetComboInit();
  309. fGetBdCdListMst();
  310. // 그리드 체크박스
  311. group1.grd_choices.fixedcellcheckbox(0 , 1) = true;
  312. //model.refresh();
  313. }
  314. function group4_button9_onclick(obj:Button, e:ClickEventInfo) {
  315. if( frmf_checkOpener() ) {
  316. opener.dsf_makeValue( ds_temp, "okflag", "string", "" );
  317. opener.ds_temp.setColumn( 0, "okflag", "");
  318. }
  319. window.close();
  320. }
  321. function group4_btn_cfm_onclick(obj:Button, e:ClickEventInfo) {
  322. fSetData();
  323. window.close();
  324. }
  325. function group1_group5_btn_sel_onclick(obj:Button, e:ClickEventInfo) {
  326. fGetBdCdListMst();
  327. }
  328. function group1_grd_bdllst_oncellclick(obj:Grid, e:GridClickEventInfo) {
  329. fGetBdCdListDtl();
  330. }
  331. ]]></Script>
  332. </Form>
  333. </FDL>