SPRPZ00200_부서코드HELP.xfdl 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPRPZ00200_부서코드HELP" classname="SPRPZ00200_부서코드HELP" inheritanceid="" position="absolute 0 0 600 550" titletext="부서코드 HELP" oninit="SPRPZ00200_oninit" onload="SPRPZ00200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="Div00" taborder="0" position="absolute 0 0 600 38" class="div_SA2">
  8. <Layouts>
  9. <Layout>
  10. <Radio id="rdo_refcond" taborder="0" columncount="-1" rowcount="-1" position="absolute 15 9 149 29" codecolumn="codecolumn" datacolumn="datacolumn" index="1" value="deptnm" anchor="default" onitemchanged="Div00_rdo_refcond_onitemchanged" style="itempadding:0 3 0 0;border:1 solid black ;">
  11. <Dataset id="innerdataset">
  12. <ColumnInfo>
  13. <Column id="codecolumn" size="256"/>
  14. <Column id="datacolumn" size="256"/>
  15. </ColumnInfo>
  16. <Rows>
  17. <Row>
  18. <Col id="codecolumn">deptcd</Col>
  19. <Col id="datacolumn">부서코드</Col>
  20. </Row>
  21. <Row>
  22. <Col id="codecolumn">deptnm</Col>
  23. <Col id="datacolumn">부서명</Col>
  24. </Row>
  25. </Rows>
  26. </Dataset>
  27. </Radio>
  28. <Static id="Static00" text="조회조건" position="absolute 181 9 249 29" class="search_name" anchor="default"/>
  29. <Edit id="ipt_refcond" taborder="1" position="absolute 256 9 436 29" onkeydown="Div00_ipt_refcond_onkeydown" imemode="hangul" class="input_essential" autoselect="true" autoskip="true"/>
  30. <Button id="btn_search" taborder="2" text="조회" position="absolute 522 9 582 29" class="btn1" anchor="default" onclick="Div00_btn_search_onclick"/>
  31. </Layout>
  32. </Layouts>
  33. </Div>
  34. <Static id="Static00" text="부서리스트" position="absolute 0 42 100 62" class="tit_2"/>
  35. <Grid id="grd_deptcode" taborder="1" useinputpanel="false" position="absolute 0 63 600 523" autofittype="col" binddataset="ds_deptcodelist" oncelldblclick="grd_deptcode_oncelldblclick">
  36. <Formats>
  37. <Format id="default">
  38. <Columns>
  39. <Column size="30"/>
  40. <Column size="130"/>
  41. <Column size="440"/>
  42. </Columns>
  43. <Rows>
  44. <Row size="24" band="head"/>
  45. <Row size="24"/>
  46. </Rows>
  47. <Band id="head">
  48. <Cell/>
  49. <Cell col="1"/>
  50. <Cell col="2"/>
  51. </Band>
  52. <Band id="body">
  53. <Cell celltype="head" text="expr:currow+1"/>
  54. <Cell col="1" displaytype="text" text="bind:deptcd"/>
  55. <Cell col="2" displaytype="text" text="bind:depthngnm"/>
  56. </Band>
  57. </Format>
  58. </Formats>
  59. </Grid>
  60. <Button id="btn_confirm" taborder="2" text="확인" position="absolute 488 530 540 550" class="btn4" onclick="btn_confirm_onclick"/>
  61. <Button id="btn_cancel" taborder="3" text="취소" class="btn3" position="absolute 548 530 600 550" onclick="btn_cancel_onclick"/>
  62. </Layout>
  63. </Layouts>
  64. <Objects>
  65. <Dataset id="ds_send_deptref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  66. <ColumnInfo>
  67. <Column id="refcond" type="STRING" size="256" sumtext="조회조건"/>
  68. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  69. <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
  70. <Column id="instcd" type="STRING" size="256" sumtext="기관"/>
  71. <Column id="all" type="STRING" size="256" sumtext="전체"/>
  72. <Column id="orddeptflag" type="STRING" size="256" sumtext="입원 진료과"/>
  73. <Column id="basedd" type="STRING" size="256" sumtext="기준일"/>
  74. <!-- 2011.05.25 구매사용여부 추가 -->
  75. <Column id="purcuseyn" type="STRING" size="256" sumtext="구매사용여부"/>
  76. </ColumnInfo>
  77. <Rows>
  78. <Row/>
  79. </Rows>
  80. </Dataset>
  81. <Dataset id="ds_deptcodelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  82. <ColumnInfo>
  83. <Column id="chkyn" type="STRING" size="256" sumtext="체크여부"/>
  84. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  85. <Column id="depthngnm" type="STRING" size="256" sumtext="부서명"/>
  86. <Column id="instnm" type="STRING" size="256" sumtext="기관명"/>
  87. <Column id="instsnm" type="STRING" size="256" sumtext="기관약어명"/>
  88. <Column id="instcd" type="STRING" size="256" sumtext="기관명"/>
  89. </ColumnInfo>
  90. </Dataset>
  91. <Dataset id="ds_target_validation" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  92. <Dataset id="ds_target" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  93. </Objects>
  94. <Bind>
  95. <BindItem id="item0" compid="Div00.rdo_refcond" propid="value" datasetid="ds_send_deptref" columnid="refcond"/>
  96. <BindItem id="item1" compid="Div00.ipt_refcond" propid="value" datasetid="ds_send_deptref" columnid="deptnm"/>
  97. </Bind>
  98. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs";
  99. include "mis_miscommonxp::MIS.xjs";
  100. function SPRPZ00200_oninit(obj:Form, e:InitEventInfo)
  101. {
  102. frmf_initForm(obj);
  103. }
  104. function SPRPZ00200_onload(obj:Form, e:LoadEventInfo)
  105. {
  106. // misfGridInit(grd_deptlist);
  107. // model.copyNode("root/main","/root/target/validation");
  108. dsf_createDs("ds_target_recvitem");
  109. try {
  110. ds_send_deptref.setColumn(0, "instcd", arg_ds_target_defaultvalue.getColumn(0, "instcd"));
  111. } catch (e) {}
  112. try {
  113. ds_target_validation.copyData(arg_ds_target_validation);
  114. } catch (e) {}
  115. try {
  116. ds_target.copyData(arg_ds_target);
  117. } catch (e) {}
  118. try {
  119. ds_target_recvitem.copyData(arg_ds_target_recvitem);
  120. } catch (e) {}
  121. // ds_send_deptref.setColumn(0, "instcd", model.getValue("/root/target/defaultvalue/instcd"));
  122. // ds_send_deptref.setColumn(0, "basedd",model.getValue("/root/target/defaultvalue/basedd"));
  123. ds_send_deptref.setColumn(0, "refcond", "deptnm");
  124. Div00.ipt_refcond.imemode = "hangul";
  125. //Div00.ipt_refcond.setFocus();
  126. if(ds_target_validation.rowcount == 0)
  127. {
  128. Div00.btn_search.click();
  129. }
  130. else
  131. {
  132. ds_deptcodelist.copyData(ds_target_validation);
  133. }
  134. Div00.ipt_refcond.setFocus();
  135. }
  136. function Div00_rdo_refcond_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  137. {
  138. if(obj.value == "deptnm") {
  139. Div00.ipt_refcond.imemode = "hangul";//attribute("imemode") = "hangul";
  140. }
  141. // else if (obj.value == "deptcd") {
  142. // Div00.ipt_refcond.imemode = "alpha";
  143. // }
  144. else {
  145. Div00.ipt_refcond.imemode = "alpha";
  146. }
  147. Div00.ipt_refcond.setFocus();
  148. }
  149. function Div00_ipt_refcond_onkeydown(obj:Edit, e:KeyEventInfo)
  150. {
  151. if(e.keycode == 13)
  152. Div00.btn_search.click();
  153. }
  154. function Div00_btn_search_onclick(obj:Button, e:ClickEventInfo)
  155. {
  156. ds_send_deptref.setColumn(0, Div00.rdo_refcond.value, Div00.ipt_refcond.text);
  157. var oParam = {};
  158. oParam.id = "TRRPZ00201";
  159. oParam.service = "miscommoncdrefapp.CommonCdRef";
  160. oParam.method = "reqGetDeptList";
  161. oParam.inds = "req=ds_send_deptref";
  162. oParam.outds = "ds_deptcodelist=deptcodelist";
  163. oParam.async = true;
  164. // oParam.callback = "cf_TRRPZ00201";
  165. tranf_submit(oParam);
  166. }
  167. function grd_deptcode_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  168. {
  169. if(e.row < 0 || e.col < 0) return;
  170. btn_confirm.click();
  171. }
  172. function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  173. {
  174. misfPopUpListReturn(grd_deptcode);
  175. }
  176. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  177. {
  178. misfPopUpListCancel();
  179. }
  180. ]]></Script>
  181. </Form>
  182. </FDL>