SMAVT00400_조직보관장소.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml" />
  4. <Form id="SMAVT00400" position="absolute 0 0 1280 1024" titletext="보관장소 관리" onload="SMAVT00400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_biz" scrollbars="autoboth" position="absolute 0 13 1195 757" style="">
  8. <Layouts>
  9. <Layout>
  10. <Div id="grp_sea" position="absolute 0 10 1194 45" style="align: top;">
  11. <Layouts>
  12. <Layout>
  13. <Shape id="roundrect1" anchor="default" type="roundrectangle" position="absolute 0 0 1194 35" style="border:1 solid #ffd799 #ffd799;background:#fffbf2 ;" />
  14. <Shape id="line13" class="line_4" linetype="vertical" position="absolute 1107 7 1110 29" style="" anchor="default" />
  15. <Button id="btn_sea" class="btn1_letter2" position="absolute 1125 7 1181 29" style="" text="조회" onclick="grp_biz_grp_sea_btn_sea_onclick" />
  16. <Static id="caption2" class="search_name" position="absolute 15 9 105 26" style="" text="부위코드 :" />
  17. <Edit id="ipt_partcd" class="input_search" position="absolute 103 8 173 27" style="" anchor="default" />
  18. <Static id="caption3" class="search_name" position="absolute 195 9 285 26" style="" text="부 위 명 :" />
  19. <Edit id="ipt_partnm" class="input_search" position="absolute 280 8 480 27" style="" anchor="default" />
  20. </Layout>
  21. </Layouts>
  22. </Div>
  23. <Static id="caption1" class="tit_2" position="absolute 5 55 125 69" style="" text="보관장소 관리" />
  24. <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 3 73 1194 76" style="" anchor="default" />
  25. <Grid id="grd_ptcdlst" binddataset="ds_main_roomlist_item" position="absolute 0 90 1191 740" style="">
  26. <Formats>
  27. <Format id="default">
  28. <Columns>
  29. <Column size="40" />
  30. <Column size="138" />
  31. <Column size="138" />
  32. <Column size="138" />
  33. <Column size="138" />
  34. <Column size="138" />
  35. <Column size="138" />
  36. <Column size="138" />
  37. <Column size="138" />
  38. </Columns>
  39. <Rows>
  40. <Row size="24" band="head" />
  41. <Row size="24" />
  42. </Rows>
  43. <Band id="head">
  44. <Cell text="No." />
  45. <Cell col="1" text="A" />
  46. <Cell col="2" text="B" />
  47. <Cell col="3" text="C" />
  48. <Cell col="4" text="D" />
  49. <Cell col="5" text="E" />
  50. <Cell col="6" text="F" />
  51. <Cell col="7" text="G" />
  52. <Cell col="8" text="H" />
  53. </Band>
  54. <Band id="body">
  55. <Cell text="bind:no" />
  56. <Cell col="1" text="bind:a" />
  57. <Cell col="2" text="bind:b" />
  58. <Cell col="3" text="bind:c" />
  59. <Cell col="4" text="bind:d" />
  60. <Cell col="5" text="bind:e" />
  61. <Cell col="6" text="bind:f" />
  62. <Cell col="7" text="bind:g" />
  63. <Cell col="8" text="bind:h" />
  64. </Band>
  65. </Format>
  66. </Formats>
  67. </Grid>
  68. </Layout>
  69. </Layouts>
  70. </Div>
  71. <Div id="grp_btn" position="absolute 0 757 1195 784" style="">
  72. <Layouts>
  73. <Layout>
  74. <Button id="btn_save" class="btn4_letter2" position="absolute 1138 5 1194 27" style="" text="저장" onclick="grp_btn_btn_save_onclick" />
  75. </Layout>
  76. </Layouts>
  77. </Div>
  78. <Div id="grp_tle" position="absolute 0 0 1195 13" style="">
  79. <Layouts>
  80. <Layout>
  81. <Static id="caption6" class="tit_1" position="absolute 0 0 200 13" style="" text="조직은행 보관장소관리" />
  82. </Layout>
  83. </Layouts>
  84. </Div>
  85. </Layout>
  86. </Layouts>
  87. <Objects>
  88. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  89. <ColumnInfo>
  90. <Column id="item" type="STRING" size="256" />
  91. </ColumnInfo>
  92. </Dataset>
  93. <Dataset id="ds_main_roomlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  94. <ColumnInfo>
  95. <Column id="no" type="STRING" size="256" />
  96. <Column id="a" type="STRING" size="256" />
  97. <Column id="b" type="STRING" size="256" />
  98. <Column id="c" type="STRING" size="256" />
  99. <Column id="d" type="STRING" size="256" />
  100. <Column id="e" type="STRING" size="256" />
  101. <Column id="f" type="STRING" size="256" />
  102. <Column id="g" type="STRING" size="256" />
  103. <Column id="h" type="STRING" size="256" />
  104. </ColumnInfo>
  105. <Rows>
  106. <Row>
  107. <Col id="no"></Col>
  108. <Col id="a"></Col>
  109. <Col id="b"></Col>
  110. <Col id="c"></Col>
  111. <Col id="d"></Col>
  112. <Col id="e"></Col>
  113. <Col id="f"></Col>
  114. <Col id="g"></Col>
  115. <Col id="h"></Col>
  116. </Row>
  117. </Rows>
  118. </Dataset>
  119. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  120. <ColumnInfo />
  121. </Dataset>
  122. <Dataset id="ds_send_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  123. <ColumnInfo>
  124. <Column id="savedata" type="STRING" size="256" />
  125. </ColumnInfo>
  126. <Rows>
  127. <Row>
  128. <Col id="savedata"></Col>
  129. </Row>
  130. </Rows>
  131. </Dataset>
  132. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  133. <ColumnInfo>
  134. <Column id="combobscdlst" type="STRING" size="256" />
  135. </ColumnInfo>
  136. <Rows>
  137. <Row>
  138. <Col id="combobscdlst"></Col>
  139. </Row>
  140. </Rows>
  141. </Dataset>
  142. <Dataset id="ds_main_roomlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  143. <ColumnInfo />
  144. </Dataset>
  145. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  146. <ColumnInfo>
  147. <Column id="srchpartcode" type="STRING" size="256" />
  148. <Column id="srchpartname" type="STRING" size="256" />
  149. </ColumnInfo>
  150. <Rows>
  151. <Row>
  152. <Col id="srchpartcode"></Col>
  153. <Col id="srchpartname"></Col>
  154. </Row>
  155. </Rows>
  156. </Dataset>
  157. </Objects>
  158. <Bind>
  159. <BindItem id="item0" compid="grp_biz.grp_sea.ipt_partcd" propid="value" datasetid="ds_send" columnid="srchpartcode" />
  160. <BindItem id="item1" compid="grp_biz.grp_sea.ipt_partnm" propid="value" datasetid="ds_send" columnid="srchpartname" />
  161. </Bind>
  162. <Script type="xscript4.0"><![CDATA[
  163. //스크립트 시작 ***
  164. //전체에서 event와 src를 제외한 script 를 모두포함.
  165. /**
  166. * 보관장소 리스트 조회
  167. */
  168. function fGetRoomList(){
  169. ds_main_ptcdlst_item.clearData();
  170. //model.refresh();
  171. // var ret = submit("TRAVT00401");
  172. var oParam = {};
  173. oParam.id = "TRAVT00401";
  174. oParam.service = "tissuebankapp.TissueBankProcess";
  175. oParam.method = "reqGetTissueBankRoomList";
  176. oParam.inds = "req=ds_";
  177. oParam.outds = "ds_=item";
  178. oParam.async = false;
  179. oParam.callback = "cf_TRAVT00401";
  180. tranf_submit(oParam);
  181. /*
  182. function cf_TRAVT00401(sSvcId, nErrorCode, sErrorMsg) {
  183. if(nErrorCode < 0) return;
  184. }
  185. function cf_TRAVT00401(sSvcId, nErrorCode, sErrorMsg) {
  186. arErrorCode.push(sSvcId, nErrorCode);
  187. }
  188. arErrorCode.pop("TRAVT00401") > -1
  189. arErrorCode.pop("TRAVT00401") < 0
  190. */
  191. return ret;
  192. }
  193. /**
  194. * 부위코드 저장
  195. */
  196. function fSaveExer() {
  197. if( ! getGridUpdateData(grp_biz.grd_ptcdlst) )
  198. {
  199. sysf_messageBox( "저장할 내역이", "I004" );
  200. return ;
  201. }
  202. var rsv_cnt = grp_biz.grd_ptcdlst.rows ;
  203. var sNode = grp_biz.grd_ptcdlst.nodeset+ "[";
  204. for( var i = 1; i < rsv_cnt ; i++){
  205. if( model.getValue(sNode + i + "]_partcode" ) == "") {
  206. sysf_messageBox( "부위코드의 코드값", "E014" );
  207. return ;
  208. }
  209. }
  210. var ret = false;
  211. if ( sysf_messageBox("부위코드정보를","Q002")==6 ) {
  212. ds_send_req.setColumn( 0, "savedata", grp_biz.grd_ptcdlst.getUpdateData());
  213. // ret = submit("TXAVB00201");
  214. var oParam = {};
  215. oParam.id = "TXAVB00201";
  216. oParam.service = "tissuebankbaseapp.TissueBankPart";
  217. oParam.method = "reqExePartCode";
  218. oParam.inds = "req=ds_";
  219. oParam.outds = "ds_=item";
  220. oParam.async = false;
  221. oParam.callback = "cf_TXAVB00201";
  222. tranf_submit(oParam);
  223. /*
  224. function cf_TXAVB00201(sSvcId, nErrorCode, sErrorMsg) {
  225. if(nErrorCode < 0) return;
  226. }
  227. function cf_TXAVB00201(sSvcId, nErrorCode, sErrorMsg) {
  228. arErrorCode.push(sSvcId, nErrorCode);
  229. }
  230. arErrorCode.pop("TXAVB00201") > -1
  231. arErrorCode.pop("TXAVB00201") < 0
  232. */
  233. }
  234. return ret;
  235. }
  236. //스크립트 끝
  237. function SMAVT00400_onload(obj:Form, e:LoadEventInfo) {
  238. frmf_initForm(obj);
  239. //grdf_initGrid(grd_XXX);
  240. //grdf_setGridSort(grd_XXX);
  241. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  242. fGetRoomList();
  243. }
  244. include '../../.._com_commonweb_js_common.js'
  245. include '../../.._com_commonweb_js_tfHelper.js'
  246. include '../../.._ast_tissuebankbaseweb_js_tissuebankcombolist.js'
  247. function grp_biz_grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo) {
  248. fGetRoomList();
  249. }
  250. function grp_btn_btn_save_onclick(obj:Button, e:ClickEventInfo) {
  251. if( fSaveExer() == true ){
  252. // submit("TRAVB00201");
  253. var oParam = {};
  254. oParam.id = "TRAVB00201";
  255. oParam.service = "tissuebankbaseapp.TissueBankPart";
  256. oParam.method = "reqGetPtCdList";
  257. oParam.inds = "req=ds_";
  258. oParam.outds = "ds_=item";
  259. oParam.async = false;
  260. oParam.callback = "cf_TRAVB00201";
  261. tranf_submit(oParam);
  262. /*
  263. function cf_TRAVB00201(sSvcId, nErrorCode, sErrorMsg) {
  264. if(nErrorCode < 0) return;
  265. }
  266. function cf_TRAVB00201(sSvcId, nErrorCode, sErrorMsg) {
  267. arErrorCode.push(sSvcId, nErrorCode);
  268. }
  269. arErrorCode.pop("TRAVB00201") > -1
  270. arErrorCode.pop("TRAVB00201") < 0
  271. */
  272. }
  273. }
  274. ]]></Script>
  275. </Form>
  276. </FDL>