SPADB62700_KIMS문양검색.xfdl 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPADB62600" position="absolute 0 0 502 409" titletext="문양검색" oninit="SPADB62600_oninit" onload="SPADB62600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 -1 502 379" id="grp_biz" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Grid position="absolute 0 59 501 375" align="align:center middle;" id="grd_shape" scrollbars="autoboth" binddataset="ds_main_shape" anchor="default" oncelldblclick="grp_biz_grd_shape_oncelldblclick">
  11. <Formats>
  12. <Format id="default">
  13. <Columns>
  14. <Column size="60"/>
  15. <Column size="0"/>
  16. <Column size="60"/>
  17. <Column size="0"/>
  18. <Column size="60"/>
  19. <Column size="0"/>
  20. <Column size="60"/>
  21. <Column size="0"/>
  22. <Column size="60"/>
  23. <Column size="0"/>
  24. <Column size="60"/>
  25. <Column size="0"/>
  26. <Column size="60"/>
  27. <Column size="0"/>
  28. <Column size="60"/>
  29. <Column size="0"/>
  30. </Columns>
  31. <Rows>
  32. <Row size="0" band="head"/>
  33. <Row size="60"/>
  34. </Rows>
  35. <Band id="head">
  36. <Cell/>
  37. <Cell col="1"/>
  38. <Cell col="2"/>
  39. <Cell col="3"/>
  40. <Cell col="4"/>
  41. <Cell col="5"/>
  42. <Cell col="6"/>
  43. <Cell col="7"/>
  44. <Cell col="8"/>
  45. <Cell col="9"/>
  46. <Cell col="10"/>
  47. <Cell col="11"/>
  48. <Cell col="12"/>
  49. <Cell col="13"/>
  50. <Cell col="14"/>
  51. <Cell col="15"/>
  52. </Band>
  53. <Band id="body">
  54. <Cell displaytype="normal" style="background:stretch;background2:stretch;selectbackground:stretch;backgroundimage:BIND(shapephot1);"/>
  55. <Cell col="1" displaytype="normal" text="bind:shapecd1"/>
  56. <Cell col="2" displaytype="normal" style="background:stretch;background2:stretch;selectbackground:stretch;backgroundimage:BIND(shapephot2);"/>
  57. <Cell col="3" displaytype="normal" style="background:stretch;background2:stretch;selectbackground:stretch;backgroundimage:BIND(shapephot2);" text="bind:shapecd2"/>
  58. <Cell col="4" displaytype="normal" style="background:stretch;background2:stretch;selectbackground:stretch;backgroundimage:BIND(shapephot3);"/>
  59. <Cell col="5" displaytype="normal" style="selectbackground: ;" text="bind:shapecd3"/>
  60. <Cell col="6" displaytype="normal" style="background:stretch;background2:stretch;selectbackground:stretch;backgroundimage:BIND(shapephot4);"/>
  61. <Cell col="7" displaytype="normal" style="selectbackground: ;" text="bind:shapecd4"/>
  62. <Cell col="8" displaytype="normal" style="background:stretch;background2:stretch;selectbackground:stretch;backgroundimage:BIND(shapephot5);"/>
  63. <Cell col="9" displaytype="normal" style="selectbackground: ;" text="bind:shapecd5"/>
  64. <Cell col="10" displaytype="normal" style="background:stretch;background2:stretch;selectbackground:stretch;backgroundimage:BIND(shapephot6);"/>
  65. <Cell col="11" displaytype="normal" style="selectbackground: ;" text="bind:shapecd6"/>
  66. <Cell col="12" displaytype="normal" style="background:stretch;background2:stretch;selectbackground:stretch;backgroundimage:BIND(shapephot7);"/>
  67. <Cell col="13" displaytype="normal" style="selectbackground: ;" text="bind:shapecd7"/>
  68. <Cell col="14" displaytype="normal" style="background:stretch;background2:stretch;selectbackground:stretch;backgroundimage:BIND(shapephot8);"/>
  69. <Cell col="15" text="bind:shapecd8"/>
  70. </Band>
  71. </Format>
  72. </Formats>
  73. </Grid>
  74. <Static text="문양검색" position="absolute 0 6 140 22" id="caption1" class="tit_2" anchor="default"/>
  75. <Shape position="absolute 0 54 501 60" linetype="horizontal" id="line1" class="line_1" anchor="default"/>
  76. <Shape position="absolute 1 374 481 380" linetype="horizontal" id="line7" class="line_6" anchor="default"/>
  77. <Shape id="line00" class="line_1" position="absolute 0 53 501 59"/>
  78. <Shape id="line02" class="line_1" position="absolute 0 55 501 61"/>
  79. <Radio id="Radio00" taborder="1" columncount="3" rowcount="0" position="absolute 4 32 280 52" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="grp_biz_Radio00_onitemchanged" onitemclick="grp_biz_Radio00_onitemclick">
  80. <Dataset id="innerdataset">
  81. <ColumnInfo>
  82. <Column id="codecolumn" size="256"/>
  83. <Column id="datacolumn" size="256"/>
  84. </ColumnInfo>
  85. <Rows>
  86. <Row>
  87. <Col id="codecolumn">2</Col>
  88. <Col id="datacolumn">A~Z</Col>
  89. </Row>
  90. <Row>
  91. <Col id="codecolumn">1</Col>
  92. <Col id="datacolumn">동식물</Col>
  93. </Row>
  94. <Row>
  95. <Col id="codecolumn">3</Col>
  96. <Col id="datacolumn">기타</Col>
  97. </Row>
  98. </Rows>
  99. </Dataset>
  100. </Radio>
  101. <Edit id="Edit00" taborder="2" position="absolute 251 33 442 53" onkeydown="grp_biz_Edit00_onkeydown"/>
  102. <Button id="btn_sea" taborder="3" text="검색" position="absolute 446 33 496 53" class="btn1" onclick="grp_biz_btn_sea_onclick"/>
  103. </Layout>
  104. </Layouts>
  105. </Div>
  106. <Div position="absolute 0 376 480 403" id="grp_btn" scrollbars="autoboth">
  107. <Layouts>
  108. <Layout>
  109. <Button position="absolute 365 5 421 27" id="btn_cfm" class="btn4" text="확인" anchor="default" onclick="grp_btn_btn_cfm_onclick"/>
  110. <Button position="absolute 424 5 480 27" id="btn_can" class="btn4" text="취소" anchor="default" onclick="grp_btn_btn_can_onclick"/>
  111. </Layout>
  112. </Layouts>
  113. </Div>
  114. </Layout>
  115. </Layouts>
  116. <Objects>
  117. <Dataset id="ds_main_shape" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  118. <ColumnInfo>
  119. <Column id="shapephot1" type="BLOB" size="256"/>
  120. <Column id="shapecd1" type="STRING" size="256"/>
  121. <Column id="shapephot2" type="BLOB" size="256"/>
  122. <Column id="shapecd2" type="STRING" size="256"/>
  123. <Column id="shapephot3" type="BLOB" size="256"/>
  124. <Column id="shapecd3" type="STRING" size="256"/>
  125. <Column id="shapephot4" type="BLOB" size="256"/>
  126. <Column id="shapecd4" type="STRING" size="256"/>
  127. <Column id="shapephot5" type="BLOB" size="256"/>
  128. <Column id="shapecd5" type="STRING" size="256"/>
  129. <Column id="shapephot6" type="BLOB" size="256"/>
  130. <Column id="shapecd6" type="STRING" size="256"/>
  131. <Column id="shapephot7" type="BLOB" size="256"/>
  132. <Column id="shapecd7" type="STRING" size="256"/>
  133. <Column id="shapephot8" type="BLOB" size="256"/>
  134. <Column id="shapecd8" type="STRING" size="256"/>
  135. </ColumnInfo>
  136. <Rows>
  137. <Row>
  138. <Col id="shapephot1"/>
  139. <Col id="shapecd1"/>
  140. <Col id="shapephot2"/>
  141. <Col id="shapecd2"/>
  142. <Col id="shapephot3"/>
  143. <Col id="shapecd3"/>
  144. <Col id="shapephot4"/>
  145. <Col id="shapecd4"/>
  146. <Col id="shapephot5"/>
  147. <Col id="shapecd5"/>
  148. <Col id="shapephot6"/>
  149. <Col id="shapecd6"/>
  150. <Col id="shapephot7"/>
  151. <Col id="shapecd7"/>
  152. <Col id="shapephot8"/>
  153. <Col id="shapecd8"/>
  154. </Row>
  155. </Rows>
  156. </Dataset>
  157. <Dataset id="ds_send_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  158. <ColumnInfo>
  159. <Column id="instcd" type="STRING" size="256"/>
  160. <Column id="fromcount" type="STRING" size="256"/>
  161. <Column id="tocount" type="STRING" size="256"/>
  162. <Column id="reftype" type="STRING" size="256"/>
  163. <Column id="srchname" type="STRING" size="256"/>
  164. </ColumnInfo>
  165. <Rows>
  166. <Row>
  167. <Col id="instcd">031</Col>
  168. <Col id="fromcount"/>
  169. <Col id="tocount"/>
  170. </Row>
  171. </Rows>
  172. </Dataset>
  173. <Dataset id="ds_init_count" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  174. <ColumnInfo>
  175. <Column id="label" type="STRING" size="256"/>
  176. <Column id="value" type="STRING" size="256"/>
  177. </ColumnInfo>
  178. <Rows>
  179. <Row/>
  180. </Rows>
  181. </Dataset>
  182. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  183. <ColumnInfo>
  184. <Column id="index" type="STRING" size="256"/>
  185. </ColumnInfo>
  186. <Rows>
  187. <Row/>
  188. </Rows>
  189. </Dataset>
  190. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  191. <ColumnInfo>
  192. <Column id="shape" type="STRING" size="256"/>
  193. <Column id="shapecd" type="STRING" size="256"/>
  194. </ColumnInfo>
  195. <Rows>
  196. <Row>
  197. <Col id="shape"/>
  198. <Col id="shapecd"/>
  199. </Row>
  200. </Rows>
  201. </Dataset>
  202. <Dataset id="ds_hideen_receiveref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  203. </Objects>
  204. <Bind>
  205. <BindItem id="item0" compid="grp_biz.Radio00" propid="value" datasetid="ds_send_srchinfo" columnid="reftype"/>
  206. <BindItem id="item1" compid="grp_biz.Edit00" propid="value" datasetid="ds_send_srchinfo" columnid="srchname"/>
  207. </Bind>
  208. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  209. * System Name :
  210. * Job Name :
  211. * Creator :
  212. * Make Date : 2015-11-13
  213. * Description :
  214. *---------------------------------------------------------------------------------------
  215. * Modify Date Modifier Modify Description
  216. *---------------------------------------------------------------------------------------
  217. * 2015-11-13 Live Converter TF->XP
  218. *
  219. *---------------------------------------------------------------------------------------
  220. ****************************************************************************************/
  221. //=======================================================================================
  222. // Lib Include
  223. //---------------------------------------------------------------------------------------
  224. include "com_commonxp::comm_main.xjs"
  225. //=======================================================================================
  226. // Global Form Variable
  227. //---------------------------------------------------------------------------------------
  228. //=======================================================================================
  229. // Function
  230. //---------------------------------------------------------------------------------------
  231. /****************************************************************************************
  232. * Argument : N/A
  233. * Description : 문양 데이터 조회
  234. ****************************************************************************************/
  235. function fGetShape() {
  236. var oParam = {};
  237. oParam.id = "TRADB62601";
  238. oParam.service = "comextlib.KimsDrugDur";
  239. oParam.method = "reqGetKimsShapeInfo";
  240. oParam.inds = "req=ds_send_srchinfo";
  241. oParam.outds = "ds_main_shape=shape";
  242. oParam.async = false;
  243. //oParam.callback = "cf_TRADB62601";
  244. tranf_submit(oParam);
  245. }
  246. /****************************************************************************************
  247. * Argument : N/A
  248. * Description : 컬럼 인덱스로 바인드된 컬럼명 조회(text)
  249. ****************************************************************************************/
  250. function lf_getBindCellName1(oTrgtGrid, nColumnIndx){
  251. var sRtnText = "";
  252. var sTrgtText = oTrgtGrid.getCellProperty("body", nColumnIndx, "text");
  253. if(!utlf_isNull( sTrgtText)){
  254. sRtnText = sTrgtText.replace("bind:", "");
  255. }
  256. return sRtnText;
  257. }
  258. /****************************************************************************************
  259. * Argument : N/A
  260. * Description : 컬럼 인덱스로 바인드된 컬럼명 조회(backgroundimage)
  261. ****************************************************************************************/
  262. function lf_getBindCellName2(oTrgtGrid, nColumnIndx){
  263. var sRtnText = "";
  264. var sTrgtText = oTrgtGrid.getCellProperty("body", nColumnIndx, "backgroundimage");
  265. if(!utlf_isNull( sTrgtText)){
  266. sRtnText = sTrgtText.substr(5,sTrgtText.length-6);
  267. }
  268. return sRtnText;
  269. }
  270. //=======================================================================================
  271. // Event
  272. //---------------------------------------------------------------------------------------
  273. /****************************************************************************************
  274. * Components : Form
  275. * Components ID : SPADB62600
  276. * Event : oninit
  277. * Argument : 01.obj : Object Event has occurred
  278. * : 02.e : Event Object
  279. * Description : 화면 처음 초기화시 폼초기화
  280. ****************************************************************************************/
  281. function SPADB62600_oninit(obj:Form, e:InitEventInfo)
  282. {
  283. frmf_initForm(obj); // 폼 초기화
  284. }
  285. /****************************************************************************************
  286. * Components : Form
  287. * Components ID : SPADB62600
  288. * Event : onload
  289. * Argument : 01.obj : Object Event has occurred
  290. * : 02.e : Event Object
  291. * Description : 화면 처음 초기화시 폼초기화
  292. ****************************************************************************************/
  293. function SPADB62600_onload(obj:Form, e:LoadEventInfo)
  294. {
  295. try{
  296. ds_hideen_receiveref.copyData(arg_ds_hidden_receiveref);
  297. }catch(e){}
  298. var dutplceinstcd = sysf_getUserInfo("dutplceinstcd");
  299. ds_send_srchinfo.setColumn(0, "instcd", dutplceinstcd);
  300. ds_send_srchinfo.setColumn(0, "reftype", "2");
  301. /*
  302. var oParam = {};
  303. oParam.id = "TRADB62602";
  304. oParam.service = "pharmacyconsultapp.DrugId";
  305. oParam.method = "reqGetCount";
  306. oParam.inds = "req=ds_send_srchinfo";
  307. oParam.outds = "ds_init_count=count";
  308. oParam.async = false;
  309. //oParam.callback = "cf_TRADB62602";
  310. tranf_submit(oParam);
  311. ds_send_srchinfo.setColumn(0,"fromcount","1");
  312. ds_send_srchinfo.setColumn(0,"tocount" ,"40");
  313. ds_hidden.setColumn(0,"index", 1);
  314. */
  315. fGetShape();
  316. }
  317. /****************************************************************************************
  318. * Components : Button
  319. * Components ID : grp_biz.btn_cfm
  320. * Event : onclick
  321. * Argument : 01.obj : Object Event has occurred
  322. * : 02.e : Event Object
  323. * Description : 확인버튼으로 이미지 약품식별마스터 화면에 전달
  324. ****************************************************************************************/
  325. function grp_btn_btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  326. {
  327. var cRow = ds_main_shape.rowposition;
  328. var cCol = grp_biz.grd_shape.currentcol;
  329. var shapecd = ds_main_shape.getColumn(cRow,lf_getBindCellName1(grp_biz.grd_shape,cCol+1));
  330. var shape = ds_main_shape.getColumn(cRow,lf_getBindCellName2(grp_biz.grd_shape,cCol));
  331. if(ds_hideen_receiveref.rowcount < 1) ds_hideen_receiveref.addRow();
  332. ds_hideen_receiveref.setColumn(0,"shapecd" ,shapecd);
  333. ds_hideen_receiveref.setColumn(0,"shape" ,shape);
  334. if(!utlf_isNull(shapecd)) {
  335. if(frmf_checkOpener()) {
  336. opener.ds_hidden_receiveshape.copyData(ds_hideen_receiveref);
  337. this.close();
  338. }else{
  339. sysf_messageBox("상위화면이 변경되어 데이터를 전달할 수 ","I004");
  340. }
  341. }else{
  342. sysf_messageBox("문양을","C002");
  343. }
  344. }
  345. /****************************************************************************************
  346. * Components : Button
  347. * Components ID : grp_biz.btn_can
  348. * Event : onclick
  349. * Argument : 01.obj : Object Event has occurred
  350. * : 02.e : Event Object
  351. * Description : 취소버튼 클릭
  352. ****************************************************************************************/
  353. function grp_btn_btn_can_onclick(obj:Button, e:ClickEventInfo)
  354. {
  355. this.close();
  356. }
  357. /****************************************************************************************
  358. * Components : Grid
  359. * Components ID : grp_biz.grd_shape
  360. * Event : oncelldblclick
  361. * Argument : 01.obj : Object Event has occurred
  362. * : 02.e : Event Object
  363. * Description : 그리드 더블클릭으로 해당 이미지 모화면 전달
  364. ****************************************************************************************/
  365. function grp_biz_grd_shape_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  366. {
  367. var ev = new ClickEventInfo;
  368. frmf_inputEnterKey("grp_btn.btn_cfm", "onclick", ev );
  369. }
  370. /****************************************************************************************
  371. * Components : Radio
  372. * Components ID : grp_biz.rdo_count
  373. * Event : onitemchanged
  374. * Argument : 01.obj : Object Event has occurred
  375. * : 02.e : Event Object
  376. * Description :
  377. ****************************************************************************************/
  378. function grp_biz_rdo_count_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  379. {
  380. var count = ds_hidden.getColumn(0,"index");
  381. ds_send_srchinfo.setColumn(0,"fromcount",(count*40)-39);
  382. ds_send_srchinfo.setColumn(0,"tocount" ,(count*40));
  383. fGetShape();
  384. }
  385. function grp_biz_Radio00_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  386. {
  387. fGetShape();
  388. }
  389. function grp_biz_Radio00_onitemclick(obj:Radio, e:RadioMouseEventInfo)
  390. {
  391. }
  392. function grp_biz_Edit00_onkeydown(obj:Edit, e:KeyEventInfo)
  393. {
  394. if(e.keycode == 13) {
  395. obj.updateToDataset();
  396. var ev = new ClickEventInfo;
  397. fGetShape();
  398. }
  399. }
  400. function grp_biz_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  401. {
  402. fGetShape();
  403. }
  404. ]]></Script>
  405. </Form>
  406. </FDL>