SPADB62600_문양검색.xfdl 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379
  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 482 409" titletext="문양검색" oninit="SPADB62600_oninit" onload="SPADB62600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 -1 481 379" id="grp_biz" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Grid position="absolute 0 27 481 329" 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 22 481 28" 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. <Radio position="absolute 0 329 481 373" align="align:center middle;" id="rdo_count" columncount="10" rowcount="2" innerdataset="@ds_init_count" datacolumn="label" codecolumn="value" anchor="default" onitemchanged="grp_biz_rdo_count_onitemchanged"/>
  78. <Shape id="line00" class="line_1" position="absolute 0 21 481 27"/>
  79. <Shape id="line02" class="line_1" position="absolute 0 23 481 29"/>
  80. </Layout>
  81. </Layouts>
  82. </Div>
  83. <Div position="absolute 0 376 480 403" id="grp_btn" scrollbars="autoboth">
  84. <Layouts>
  85. <Layout>
  86. <Button position="absolute 365 5 421 27" id="btn_cfm" class="btn4" text="확인" anchor="default" onclick="grp_btn_btn_cfm_onclick"/>
  87. <Button position="absolute 424 5 480 27" id="btn_can" class="btn4" text="취소" anchor="default" onclick="grp_btn_btn_can_onclick"/>
  88. </Layout>
  89. </Layouts>
  90. </Div>
  91. </Layout>
  92. </Layouts>
  93. <Objects>
  94. <Dataset id="ds_main_shape" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  95. <ColumnInfo>
  96. <Column id="shapephot1" type="BLOB" size="256"/>
  97. <Column id="shapecd1" type="STRING" size="256"/>
  98. <Column id="shapephot2" type="BLOB" size="256"/>
  99. <Column id="shapecd2" type="STRING" size="256"/>
  100. <Column id="shapephot3" type="BLOB" size="256"/>
  101. <Column id="shapecd3" type="STRING" size="256"/>
  102. <Column id="shapephot4" type="BLOB" size="256"/>
  103. <Column id="shapecd4" type="STRING" size="256"/>
  104. <Column id="shapephot5" type="BLOB" size="256"/>
  105. <Column id="shapecd5" type="STRING" size="256"/>
  106. <Column id="shapephot6" type="BLOB" size="256"/>
  107. <Column id="shapecd6" type="STRING" size="256"/>
  108. <Column id="shapephot7" type="BLOB" size="256"/>
  109. <Column id="shapecd7" type="STRING" size="256"/>
  110. <Column id="shapephot8" type="BLOB" size="256"/>
  111. <Column id="shapecd8" type="STRING" size="256"/>
  112. </ColumnInfo>
  113. <Rows>
  114. <Row>
  115. <Col id="shapephot1"/>
  116. <Col id="shapecd1"/>
  117. <Col id="shapephot2"/>
  118. <Col id="shapecd2"/>
  119. <Col id="shapephot3"/>
  120. <Col id="shapecd3"/>
  121. <Col id="shapephot4"/>
  122. <Col id="shapecd4"/>
  123. <Col id="shapephot5"/>
  124. <Col id="shapecd5"/>
  125. <Col id="shapephot6"/>
  126. <Col id="shapecd6"/>
  127. <Col id="shapephot7"/>
  128. <Col id="shapecd7"/>
  129. <Col id="shapephot8"/>
  130. <Col id="shapecd8"/>
  131. </Row>
  132. </Rows>
  133. </Dataset>
  134. <Dataset id="ds_send_srchinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  135. <ColumnInfo>
  136. <Column id="instcd" type="STRING" size="256"/>
  137. <Column id="fromcount" type="STRING" size="256"/>
  138. <Column id="tocount" type="STRING" size="256"/>
  139. </ColumnInfo>
  140. <Rows>
  141. <Row>
  142. <Col id="instcd">031</Col>
  143. <Col id="fromcount"/>
  144. <Col id="tocount"/>
  145. </Row>
  146. </Rows>
  147. </Dataset>
  148. <Dataset id="ds_init_count" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  149. <ColumnInfo>
  150. <Column id="label" type="STRING" size="256"/>
  151. <Column id="value" type="STRING" size="256"/>
  152. </ColumnInfo>
  153. <Rows>
  154. <Row/>
  155. </Rows>
  156. </Dataset>
  157. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  158. <ColumnInfo>
  159. <Column id="index" type="STRING" size="256"/>
  160. </ColumnInfo>
  161. <Rows>
  162. <Row/>
  163. </Rows>
  164. </Dataset>
  165. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  166. <ColumnInfo>
  167. <Column id="shape" type="STRING" size="256"/>
  168. <Column id="shapecd" type="STRING" size="256"/>
  169. </ColumnInfo>
  170. <Rows>
  171. <Row>
  172. <Col id="shape"/>
  173. <Col id="shapecd"/>
  174. </Row>
  175. </Rows>
  176. </Dataset>
  177. <Dataset id="ds_hideen_receiveref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  178. </Objects>
  179. <Bind>
  180. <BindItem id="item0" compid="grp_biz.rdo_count" propid="value" datasetid="ds_hidden" columnid="index"/>
  181. </Bind>
  182. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  183. * System Name :
  184. * Job Name :
  185. * Creator :
  186. * Make Date : 2015-11-13
  187. * Description :
  188. *---------------------------------------------------------------------------------------
  189. * Modify Date Modifier Modify Description
  190. *---------------------------------------------------------------------------------------
  191. * 2015-11-13 Live Converter TF->XP
  192. *
  193. *---------------------------------------------------------------------------------------
  194. ****************************************************************************************/
  195. //=======================================================================================
  196. // Lib Include
  197. //---------------------------------------------------------------------------------------
  198. include "com_commonxp::comm_main.xjs"
  199. //=======================================================================================
  200. // Global Form Variable
  201. //---------------------------------------------------------------------------------------
  202. //=======================================================================================
  203. // Function
  204. //---------------------------------------------------------------------------------------
  205. /****************************************************************************************
  206. * Argument : N/A
  207. * Description : 문양 데이터 조회
  208. ****************************************************************************************/
  209. function fGetShape() {
  210. var oParam = {};
  211. oParam.id = "TRADB62601";
  212. oParam.service = "pharmacyconsultapp.DrugId";
  213. oParam.method = "reqGetShape";
  214. oParam.inds = "req=ds_send_srchinfo";
  215. oParam.outds = "ds_main_shape=shape";
  216. oParam.async = false;
  217. //oParam.callback = "cf_TRADB62601";
  218. tranf_submit(oParam);
  219. }
  220. /****************************************************************************************
  221. * Argument : N/A
  222. * Description : 컬럼 인덱스로 바인드된 컬럼명 조회(text)
  223. ****************************************************************************************/
  224. function lf_getBindCellName1(oTrgtGrid, nColumnIndx){
  225. var sRtnText = "";
  226. var sTrgtText = oTrgtGrid.getCellProperty("body", nColumnIndx, "text");
  227. if(!utlf_isNull( sTrgtText)){
  228. sRtnText = sTrgtText.replace("bind:", "");
  229. }
  230. return sRtnText;
  231. }
  232. /****************************************************************************************
  233. * Argument : N/A
  234. * Description : 컬럼 인덱스로 바인드된 컬럼명 조회(backgroundimage)
  235. ****************************************************************************************/
  236. function lf_getBindCellName2(oTrgtGrid, nColumnIndx){
  237. var sRtnText = "";
  238. var sTrgtText = oTrgtGrid.getCellProperty("body", nColumnIndx, "backgroundimage");
  239. if(!utlf_isNull( sTrgtText)){
  240. sRtnText = sTrgtText.substr(5,sTrgtText.length-6);
  241. }
  242. return sRtnText;
  243. }
  244. //=======================================================================================
  245. // Event
  246. //---------------------------------------------------------------------------------------
  247. /****************************************************************************************
  248. * Components : Form
  249. * Components ID : SPADB62600
  250. * Event : oninit
  251. * Argument : 01.obj : Object Event has occurred
  252. * : 02.e : Event Object
  253. * Description : 화면 처음 초기화시 폼초기화
  254. ****************************************************************************************/
  255. function SPADB62600_oninit(obj:Form, e:InitEventInfo)
  256. {
  257. frmf_initForm(obj); // 폼 초기화
  258. }
  259. /****************************************************************************************
  260. * Components : Form
  261. * Components ID : SPADB62600
  262. * Event : onload
  263. * Argument : 01.obj : Object Event has occurred
  264. * : 02.e : Event Object
  265. * Description : 화면 처음 초기화시 폼초기화
  266. ****************************************************************************************/
  267. function SPADB62600_onload(obj:Form, e:LoadEventInfo)
  268. {
  269. try{
  270. ds_hideen_receiveref.copyData(arg_ds_hidden_receiveref);
  271. }catch(e){}
  272. var oParam = {};
  273. oParam.id = "TRADB62602";
  274. oParam.service = "pharmacyconsultapp.DrugId";
  275. oParam.method = "reqGetCount";
  276. oParam.inds = "req=ds_send_srchinfo";
  277. oParam.outds = "ds_init_count=count";
  278. oParam.async = false;
  279. //oParam.callback = "cf_TRADB62602";
  280. tranf_submit(oParam);
  281. ds_send_srchinfo.setColumn(0,"fromcount","1");
  282. ds_send_srchinfo.setColumn(0,"tocount" ,"40");
  283. ds_hidden.setColumn(0,"index", 1);
  284. fGetShape();
  285. }
  286. /****************************************************************************************
  287. * Components : Button
  288. * Components ID : grp_biz.btn_cfm
  289. * Event : onclick
  290. * Argument : 01.obj : Object Event has occurred
  291. * : 02.e : Event Object
  292. * Description : 확인버튼으로 이미지 약품식별마스터 화면에 전달
  293. ****************************************************************************************/
  294. function grp_btn_btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  295. {
  296. var cRow = ds_main_shape.rowposition;
  297. var cCol = grp_biz.grd_shape.currentcol;
  298. var shapecd = ds_main_shape.getColumn(cRow,lf_getBindCellName1(grp_biz.grd_shape,cCol+1));
  299. var shape = ds_main_shape.getColumn(cRow,lf_getBindCellName2(grp_biz.grd_shape,cCol));
  300. if(ds_hideen_receiveref.rowcount < 1) ds_hideen_receiveref.addRow();
  301. ds_hideen_receiveref.setColumn(0,"shapecd" ,shapecd);
  302. ds_hideen_receiveref.setColumn(0,"shape" ,shape);
  303. if(!utlf_isNull(shapecd)) {
  304. if(frmf_checkOpener()) {
  305. opener.ds_hidden_receiveshape.copyData(ds_hideen_receiveref);
  306. this.close();
  307. }else{
  308. sysf_messageBox("상위화면이 변경되어 데이터를 전달할 수 ","I004");
  309. }
  310. }else{
  311. sysf_messageBox("문양을","C002");
  312. }
  313. }
  314. /****************************************************************************************
  315. * Components : Button
  316. * Components ID : grp_biz.btn_can
  317. * Event : onclick
  318. * Argument : 01.obj : Object Event has occurred
  319. * : 02.e : Event Object
  320. * Description : 취소버튼 클릭
  321. ****************************************************************************************/
  322. function grp_btn_btn_can_onclick(obj:Button, e:ClickEventInfo)
  323. {
  324. this.close();
  325. }
  326. /****************************************************************************************
  327. * Components : Grid
  328. * Components ID : grp_biz.grd_shape
  329. * Event : oncelldblclick
  330. * Argument : 01.obj : Object Event has occurred
  331. * : 02.e : Event Object
  332. * Description : 그리드 더블클릭으로 해당 이미지 모화면 전달
  333. ****************************************************************************************/
  334. function grp_biz_grd_shape_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  335. {
  336. var ev = new ClickEventInfo;
  337. frmf_inputEnterKey("grp_btn.btn_cfm", "onclick", ev );
  338. }
  339. /****************************************************************************************
  340. * Components : Radio
  341. * Components ID : grp_biz.rdo_count
  342. * Event : onitemchanged
  343. * Argument : 01.obj : Object Event has occurred
  344. * : 02.e : Event Object
  345. * Description :
  346. ****************************************************************************************/
  347. function grp_biz_rdo_count_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  348. {
  349. var count = ds_hidden.getColumn(0,"index");
  350. ds_send_srchinfo.setColumn(0,"fromcount",(count*40)-39);
  351. ds_send_srchinfo.setColumn(0,"tocount" ,(count*40));
  352. fGetShape();
  353. }
  354. ]]></Script>
  355. </Form>
  356. </FDL>