SPRSD00160_제조회사HELP.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPRSD00160" position="absolute 0 0 702 555" titletext="제조회사 검색화면" oninit="SPRSD00160_oninit" onload="SPRSD00160_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 700 550" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 0 700 40" id="group2" class="div_SA2" anchor="default">
  11. <Layouts>
  12. <Layout>
  13. <Edit position="absolute 286 11 421 30" id="ipt_refcond" class="input_s_essential" onkeyup="group3_group2_ipt_refcond_onkeyup" anchor="default"/>
  14. <Button position="absolute 629 9 685 31" id="btn_search" class="btn1" text="조회" onclick="group3_group2_btn_search_onclick" anchor="default"/>
  15. <Shape position="absolute 611 8 617 32" linetype="vertical" id="line13" class="line_4" anchor="default"/>
  16. <Static text="조회조건 :" position="absolute 211 12 287 29" id="caption2" class="search_name" anchor="default"/>
  17. <Radio position="absolute 15 10 170 30" id="rdo_refcond" class="radio_search" columncount="2" innerdataset="@ds_init_refcond" datacolumn="label" codecolumn="value" onitemchanged="group3_group2_rdo_refcond_onitemchanged" anchor="default"/>
  18. </Layout>
  19. </Layouts>
  20. </Div>
  21. <Static text="제조회사리스트" position="absolute 0 49 145 65" id="caption1" class="tit_2" anchor="default"/>
  22. <Shape position="absolute 0 65 700 71" linetype="horizontal" id="line1" class="line_10" anchor="default"/>
  23. <Grid position="absolute 0 70 700 520" id="grd_prodcmpylist" class="grd_prodcmpylist" binddataset="ds_main_prodcmpylist" autofittype="col" oncelldblclick="group3_grd_prodcmpylist_oncelldblclick" anchor="default">
  24. <Formats>
  25. <Format id="default">
  26. <Columns>
  27. <Column size="20"/>
  28. <Column size="120"/>
  29. <Column size="120"/>
  30. <Column size="120"/>
  31. <Column size="120"/>
  32. </Columns>
  33. <Rows>
  34. <Row size="24" band="head"/>
  35. <Row size="24"/>
  36. </Rows>
  37. <Band id="head">
  38. <Cell/>
  39. <Cell col="1" text="제조회사코드"/>
  40. <Cell col="2" text="제조회사명"/>
  41. <Cell col="3" text="제조회사 전화번호"/>
  42. <Cell col="4" text="제조회사 주소"/>
  43. </Band>
  44. <Band id="body">
  45. <Cell celltype="head" expr="expr:currow + 1"/>
  46. <Cell col="1" style="align:left;" text="bind:prodcmpycd"/>
  47. <Cell col="2" style="align:left;" text="bind:prodcmpynm"/>
  48. <Cell col="3" style="align:left;" text="bind:prodcmpytel"/>
  49. <Cell col="4" style="align:left;" text="bind:prodcmpyaddr"/>
  50. </Band>
  51. </Format>
  52. </Formats>
  53. </Grid>
  54. <Div position="absolute 0 521 700 548" id="group1" scrollbars="autoboth" anchor="default">
  55. <Layouts>
  56. <Layout>
  57. <Button position="absolute 587 5 643 27" id="btn_confirm" class="btn4" text="확인" onclick="group3_group1_btn_confirm_onclick" anchor="default"/>
  58. <Button position="absolute 644 5 700 27" id="btn_cancel" class="btn4" text="취소" onclick="group3_group1_btn_cancel_onclick" anchor="default"/>
  59. <Shape position="absolute 0 -2 700 4" linetype="horizontal" id="line32" class="line_6" anchor="default"/>
  60. </Layout>
  61. </Layouts>
  62. </Div>
  63. </Layout>
  64. </Layouts>
  65. </Div>
  66. </Layout>
  67. </Layouts>
  68. <Objects>
  69. <Dataset id="ds_init_refcond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  70. <ColumnInfo>
  71. <Column id="label" type="STRING"/>
  72. <Column id="value" type="STRING"/>
  73. </ColumnInfo>
  74. <Rows>
  75. <Row>
  76. <Col id="label">제조회사</Col>
  77. <Col id="value">prodcmpycd</Col>
  78. </Row>
  79. <Row>
  80. <Col id="label">제조회사명</Col>
  81. <Col id="value">prodcmpynm</Col>
  82. </Row>
  83. </Rows>
  84. </Dataset>
  85. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  86. <ColumnInfo>
  87. <Column id="refcond" type="STRING" size="256" sumtext="조회조건"/>
  88. <Column id="prodcmpycd" type="STRING" size="256" sumtext="제조회사코드"/>
  89. <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조회사명"/>
  90. </ColumnInfo>
  91. <Rows>
  92. <Row/>
  93. </Rows>
  94. </Dataset>
  95. <Dataset id="ds_main_prodcmpylist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  96. <ColumnInfo>
  97. <Column id="prodcmpycd" type="STRING" size="256" sumtext="제조회사코드"/>
  98. <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조회사명"/>
  99. <Column id="prodcmpytel" type="STRING" size="256" sumtext="제조회사 전화번호"/>
  100. <Column id="prodcmpyaddr" type="STRING" size="256" sumtext="제조회사 주소"/>
  101. </ColumnInfo>
  102. </Dataset>
  103. </Objects>
  104. <Bind>
  105. <BindItem id="item0" compid="group3.group2.rdo_refcond" propid="value" datasetid="ds_send" columnid="refcond"/>
  106. <BindItem id="item1" compid="group3.group2.ipt_refcond" propid="value" datasetid="ds_send" columnid="prodcmpynm"/>
  107. </Bind>
  108. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  109. * System Name : 경대 의료정보시스템
  110. * Job Name : mis_purccommonxp -> SPRSD00160
  111. * Creator : yjh
  112. * Make Date : 2017-07-04
  113. * Description :
  114. *---------------------------------------------------------------------------------------
  115. * Modify Date Modifier Modify Description
  116. *---------------------------------------------------------------------------------------
  117. * 2017-07-04 yjh TF->XP
  118. *
  119. *---------------------------------------------------------------------------------------
  120. ****************************************************************************************/
  121. //=======================================================================================
  122. // Lib Include
  123. //---------------------------------------------------------------------------------------
  124. include "com_commonxp::comm_main.xjs";
  125. include "mis_miscommonxp::MIS.xjs";
  126. //=======================================================================================
  127. // Global Form Variable
  128. //---------------------------------------------------------------------------------------
  129. //=======================================================================================
  130. // Function
  131. //---------------------------------------------------------------------------------------
  132. //=======================================================================================
  133. // Event
  134. //---------------------------------------------------------------------------------------
  135. /****************************************************************************************
  136. * Components : Form
  137. * Components ID : SPRSD00160
  138. * Event : oninit
  139. * Argument : 01.obj : Object Event has occurred
  140. * : 02.e : Event Object
  141. * Description : 화면 처음 초기화시
  142. ****************************************************************************************/
  143. function SPRSD00160_oninit(obj:Form, e:InitEventInfo)
  144. {
  145. frmf_initForm(obj); //폼 초기화
  146. }
  147. /****************************************************************************************
  148. * Components : Form
  149. * Components ID : SPRSD00160
  150. * Event : onload
  151. * Argument : 01.obj : Object Event has occurred
  152. * : 02.e : Event Object
  153. * Description : 화면 로딩 완료시
  154. ****************************************************************************************/
  155. function SPRSD00160_onload(obj:Form, e:LoadEventInfo)
  156. {
  157. grdf_setGridSort(group3.grd_prodcmpylist);
  158. // arg_ds_target.setColumn(0, "recvref", "ds_send");
  159. // arg_ds_target_recvitem.setColumn(0, "recvitem", "prodcmpycd");
  160. // arg_ds_target_recvitem.setColumn(1, "recvitem", "prodcmpynm");
  161. dsf_createDs("ds_target");
  162. dsf_createDs("ds_target_recvitem");
  163. dsf_createDs("ds_target_defaultvalue");
  164. try{
  165. ds_target.copyData(arg_ds_target);
  166. ds_target_recvitem.copyData(arg_ds_target_recvitem);
  167. ds_target_defaultvalue.copyData(arg_ds_target_defaultvalue);
  168. }catch(e){}
  169. group3.group2.rdo_refcond.index = 1;
  170. group3.group2.btn_search.click();
  171. group3.group2.ipt_refcond.setFocus();
  172. }
  173. /****************************************************************************************
  174. * Components : Edit
  175. * Components ID : ipt_refcond
  176. * Event : onkeyup
  177. * Argument : 01.obj : Object Event has occurred
  178. * : 02.e : Event Object
  179. * Description : 에디터 키 입력시
  180. ****************************************************************************************/
  181. function group3_group2_ipt_refcond_onkeyup(obj:Edit, e:KeyEventInfo)
  182. {
  183. if( e.keycode == 13 ){
  184. group3.group2.btn_search.click();
  185. }
  186. }
  187. /****************************************************************************************
  188. * Components : Button
  189. * Components ID : btn_search
  190. * Event : onclick
  191. * Argument : 01.obj : Object Event has occurred
  192. * : 02.e : Event Object
  193. * Description : 조회버튼 클릭시
  194. ****************************************************************************************/
  195. function group3_group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  196. {
  197. if( group3.group2.rdo_refcond.value == "prodcmpynm" ){
  198. ds_send.setColumn(0, "prodcmpynm", group3.group2.ipt_refcond.text);
  199. }
  200. else {
  201. ds_send.setColumn(0, "prodcmpycd", group3.group2.ipt_refcond.text);
  202. }
  203. var oParam = {};
  204. oParam.id = "TRRSD00161";
  205. oParam.service = "purccommonapp.PurcCommon";
  206. oParam.method = "reqGetProdCmpyByCond";
  207. oParam.inds = "req=ds_send";
  208. oParam.outds = "ds_main_prodcmpylist=prodcmpylist";
  209. oParam.async = false;
  210. //oParam.callback = "cf_TRRSD00161";
  211. tranf_submit(oParam);
  212. }
  213. /****************************************************************************************
  214. * Components : Radio
  215. * Components ID : rdo_refcond
  216. * Event : onitemchanged
  217. * Argument : 01.obj : Object Event has occurred
  218. * : 02.e : Event Object
  219. * Description : 라디오 값 변경시
  220. ****************************************************************************************/
  221. function group3_group2_rdo_refcond_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  222. {
  223. if( group3.group2.rdo_refcond.value == "prodcmpynm" ){
  224. group3.group2.ipt_refcond.imemode = "alpha";
  225. }
  226. else if( group3.group2.rdo_refcond.value == "prodcmpycd" ){
  227. group3.group2.ipt_refcond.imemode = "none";
  228. }
  229. else {
  230. group3.group2.ipt_refcond.imemode = "none";
  231. }
  232. group3.group2.ipt_refcond.setFocus();
  233. }
  234. /****************************************************************************************
  235. * Components : Grid
  236. * Components ID : grd_prodcmpylist
  237. * Event : oncelldblclick
  238. * Argument : 01.obj : Object Event has occurred
  239. * : 02.e : Event Object
  240. * Description : 그리드 셀 더블클릭시
  241. ****************************************************************************************/
  242. function group3_grd_prodcmpylist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  243. {
  244. group3.group1.btn_confirm.click();
  245. }
  246. /****************************************************************************************
  247. * Components : Button
  248. * Components ID : btn_confirm
  249. * Event : onclick
  250. * Argument : 01.obj : Object Event has occurred
  251. * : 02.e : Event Object
  252. * Description : 확인버튼 클릭시
  253. ****************************************************************************************/
  254. function group3_group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  255. {
  256. misfPopUpListReturn(group3.grd_prodcmpylist, ds_target_defaultvalue.getColumn(0,"nodebigo"));
  257. }
  258. /****************************************************************************************
  259. * Components : Button
  260. * Components ID : btn_cancel
  261. * Event : onclick
  262. * Argument : 01.obj : Object Event has occurred
  263. * : 02.e : Event Object
  264. * Description : 취소버튼 클릭시
  265. ****************************************************************************************/
  266. function group3_group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  267. {
  268. this.close();
  269. }
  270. ]]></Script>
  271. </Form>
  272. </FDL>