SMPIC90400_부서별의사ID조회.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml" />
  4. <Form id="SMPIC90400" position="absolute 0 0 450 700" titletext="부서 및 의사조회" onload="SMPIC90400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Shape id="roundrect1" anchor="default" type="roundrectangle" position="absolute 12 30 437 85" style="" />
  8. <Static id="caption6" class="tit_1" position="absolute 0 5 143 20" style="" text="부서코드 및 의사ID 조회" />
  9. <Static id="caption1" class="search_name" position="absolute 25 60 130 77" style="" text="조회조건 :" />
  10. <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="rdo_usndept" class="radio_search" position="absolute 25 35 330 60" style="" onitemclick="rdo_usndept_onitemclick">
  11. <Dataset id="innerdataset">
  12. <ColumnInfo>
  13. <Column id="codecolumn" />
  14. <Column id="datacolumn" />
  15. </ColumnInfo>
  16. <Rows>
  17. <Row>
  18. <Col id="codecolumn">actdeptcd</Col>
  19. <Col id="datacolumn">부서코드</Col>
  20. </Row>
  21. <Row>
  22. <Col id="codecolumn">actdeptnm</Col>
  23. <Col id="datacolumn">부서명</Col>
  24. </Row>
  25. <Row>
  26. <Col id="codecolumn">actprcpdrid</Col>
  27. <Col id="datacolumn">의사ID</Col>
  28. </Row>
  29. <Row>
  30. <Col id="codecolumn">actprcpdrnm</Col>
  31. <Col id="datacolumn">의사명</Col>
  32. </Row>
  33. </Rows>
  34. </Dataset>
  35. </Radio>
  36. <Edit id="ipt_usndept" position="absolute 118 60 265 79" style="" anchor="default" onkeyup="ipt_usndept_onkeyup" />
  37. <Shape id="line1" class="line_4" linetype="vertical" position="absolute 362 37 365 77" style="" anchor="default" />
  38. <Button id="btn_usndeptsch" class="btn1_letter2" position="absolute 372 44 428 66" style="background:_gradation URL(../../.._com_commonweb_images_btn1_letter2.gif) ;" text="조회" onclick="btn_usndeptsch_onclick" />
  39. <Static id="caption2" class="tit_2" position="absolute 5 95 152 108" style="" text="행위재료 검색" />
  40. <Shape id="line2" class="line_1" linetype="horizontal" position="absolute 7 110 442 113" style="" anchor="default" />
  41. <Grid id="grd_usndept" binddataset="ds_main_usndept_usndeptlist" position="absolute 11 118 439 630" style="" oncelldblclick="grd_usndept_oncelldblclick" onaftersort="grd_usndept_onaftersort">
  42. <Formats>
  43. <Format id="default">
  44. <Columns>
  45. <Column size="93" />
  46. <Column size="110" />
  47. <Column size="101" />
  48. <Column size="81" />
  49. <Column size="100" />
  50. </Columns>
  51. <Rows>
  52. <Row size="24" band="head" />
  53. <Row size="24" />
  54. </Rows>
  55. <Band id="head">
  56. <Cell text="부서코드" />
  57. <Cell col="1" text="부서명" />
  58. <Cell col="2" text="의사코드" />
  59. <Cell col="3" text="의사명" />
  60. <Cell col="4" text="기관코드" />
  61. </Band>
  62. <Band id="body">
  63. <Cell text="bind:actdeptcd" />
  64. <Cell col="1" text="bind:actdeptnm" />
  65. <Cell col="2" text="bind:actprcpdrid" />
  66. <Cell col="3" text="bind:actprcpdrnm" />
  67. <Cell col="4" text="bind:instcd" />
  68. </Band>
  69. </Format>
  70. </Formats>
  71. </Grid>
  72. <Button id="btn_access" class="btn4_letter2" position="absolute 320 640 376 662" style="background:_gradation URL(../../.._com_commonweb_images_btn4_letter2.gif) ;" text="확인" onclick="btn_access_onclick" />
  73. <Button id="btn_cancel" class="btn4_letter2" position="absolute 385 640 441 662" style="background:_gradation URL(../../.._com_commonweb_images_btn4_letter2.gif) ;" text="취소" onclick="btn_cancel_onclick" />
  74. </Layout>
  75. </Layouts>
  76. <Objects>
  77. <Dataset id="ds_send_deptref" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  78. <ColumnInfo>
  79. <Column id="instcd" type="STRING" size="256" />
  80. <Column id="actdeptcd" type="STRING" size="256" />
  81. <Column id="actdeptnm" type="STRING" size="256" />
  82. <Column id="actprcpdrid" type="STRING" size="256" />
  83. <Column id="actprcpdrnm" type="STRING" size="256" />
  84. <Column id="usndeptch" type="STRING" size="256" />
  85. <Column id="usndeptip" type="STRING" size="256" />
  86. </ColumnInfo>
  87. <Rows>
  88. <Row>
  89. <Col id="instcd"></Col>
  90. <Col id="actdeptcd"></Col>
  91. <Col id="actdeptnm"></Col>
  92. <Col id="actprcpdrid"></Col>
  93. <Col id="actprcpdrnm"></Col>
  94. <Col id="usndeptch"></Col>
  95. <Col id="usndeptip"></Col>
  96. </Row>
  97. </Rows>
  98. </Dataset>
  99. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  100. <ColumnInfo />
  101. </Dataset>
  102. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  103. <ColumnInfo />
  104. </Dataset>
  105. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  106. <ColumnInfo>
  107. <Column id="temp" type="STRING" size="256" />
  108. </ColumnInfo>
  109. </Dataset>
  110. <Dataset id="ds_init_usndept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  111. <ColumnInfo>
  112. <Column id="label" type="STRING" size="256" />
  113. <Column id="value" type="STRING" size="256" />
  114. <Column id="label" type="STRING" size="256" />
  115. <Column id="value" type="STRING" size="256" />
  116. <Column id="label" type="STRING" size="256" />
  117. <Column id="value" type="STRING" size="256" />
  118. <Column id="label" type="STRING" size="256" />
  119. <Column id="value" type="STRING" size="256" />
  120. </ColumnInfo>
  121. <Rows>
  122. <Row>
  123. <Col id="label">부서코드</Col>
  124. <Col id="value">actdeptcd</Col>
  125. <Col id="label">부서명</Col>
  126. <Col id="value">actdeptnm</Col>
  127. <Col id="label">의사코드</Col>
  128. <Col id="value">actprcpdrid</Col>
  129. <Col id="label">의사명</Col>
  130. <Col id="value">actprcpdrnm</Col>
  131. </Row>
  132. </Rows>
  133. </Dataset>
  134. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  135. <ColumnInfo />
  136. </Dataset>
  137. <Dataset id="ds_main_usndept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  138. <ColumnInfo>
  139. <Column id="usndeptlist" type="STRING" size="256" />
  140. </ColumnInfo>
  141. <Rows>
  142. <Row>
  143. <Col id="usndeptlist"></Col>
  144. </Row>
  145. </Rows>
  146. </Dataset>
  147. </Objects>
  148. <Bind>
  149. <BindItem id="item0" compid="rdo_usndept" propid="value" datasetid="ds_send_deptref" columnid="usndeptch" />
  150. <BindItem id="item1" compid="ipt_usndept" propid="value" datasetid="ds_send_deptref" columnid="usndeptip" />
  151. </Bind>
  152. <Script type="xscript4.0"><![CDATA[function SMPIC90400_onload(obj:Form, e:LoadEventInfo) {
  153. frmf_initForm(obj);
  154. //grdf_initGrid(grd_XXX);
  155. //grdf_setGridSort(grd_XXX);
  156. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  157. model.setValue(rdo_usndept.attribute("ref"), "actdeptcd");
  158. ds_main_usndept_usndeptlist.clearData();
  159. ds_main.copyData(ds_temp_validation);
  160. // ds_send_deptref.setColumn( 0, "instcd",ds_temp_defalut.getColumn(0, "instcd"));
  161. //model.refresh();
  162. }
  163. include '../../.._com_commonweb_js_tfHelper.js'
  164. include '../../.._com_commonweb_js_common.js'
  165. var vflag = null;
  166. function rdo_usndept_onitemclick(obj:Radio, e:RadioMouseEventInfo) {
  167. if(rdo_usndept.value == "actdeptcd") {
  168. ipt_usndept.attribute("imemode") = "disabled";
  169. }
  170. else if (rdo_usndept.value == "actdeptnm") {
  171. ipt_usndept.attribute("imemode") = "hangul";
  172. }
  173. else if (rdo_usndept.value == "actprcpdrnm"){
  174. ipt_usndept.attribute("imemode") = "hangul";
  175. }else{
  176. ipt_usndept.attribute("imemode") = "disabled";
  177. }
  178. ds_send_deptref.setColumn( 0, "usndeptip" ,"");
  179. ipt_usndept.setFocus();
  180. //model.refresh();
  181. }
  182. function ipt_usndept_onkeyup(obj:Edit, e:KeyEventInfo) {
  183. inputEnterKey("btn_usndeptsch", "DOMActivate");
  184. }
  185. function btn_usndeptsch_onclick(obj:Button, e:ClickEventInfo) {
  186. if(rdo_usndept.value == "actdeptcd") {
  187. ds_send_deptref.setColumn( 0, "actdeptcd" ,ipt_usndept.value);
  188. ds_send_deptref.setColumn( 0, "actdeptnm" , "");
  189. ds_send_deptref.setColumn( 0, "actprcpdrid" , "");
  190. ds_send_deptref.setColumn( 0, "actprcpdrnm" , "");
  191. }else if(rdo_usndept.value == "actdeptnm"){
  192. ds_send_deptref.setColumn( 0, "actdeptnm",ipt_usndept.value);
  193. ds_send_deptref.setColumn( 0, "actdeptcd" , "");
  194. ds_send_deptref.setColumn( 0, "actprcpdrid" , "");
  195. ds_send_deptref.setColumn( 0, "actprcpdrnm" , "");
  196. }else if(rdo_usndept.value == "actprcpdrid"){
  197. ds_send_deptref.setColumn( 0, "actprcpdrid" ,ipt_usndept.value);
  198. ds_send_deptref.setColumn( 0, "actdeptcd" , "");
  199. ds_send_deptref.setColumn( 0, "actdeptnm" , "");
  200. ds_send_deptref.setColumn( 0, "actprcpdrnm" , "");
  201. }else{
  202. ds_send_deptref.setColumn( 0, "actprcpdrnm",ipt_usndept.value);
  203. ds_send_deptref.setColumn( 0, "actdeptcd" , "");
  204. ds_send_deptref.setColumn( 0, "actdeptnm" , "");
  205. ds_send_deptref.setColumn( 0, "actprcpdrid" , "");
  206. }
  207. ds_send_deptref.setColumn( 0, "usndeptch", rdo_usndept.value);
  208. ds_send_deptref.setColumn( 0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  209. //
  210. //model.refresh();
  211. // submit("TRPIC90401");
  212. var oParam = {};
  213. oParam.id = "TRPIC90401";
  214. oParam.service = "actmatrapp.ActMatrMngt";
  215. oParam.method = "reqGetUsnDeptList";
  216. oParam.inds = "req=ds_";
  217. oParam.outds = "ds_=usndeptlist";
  218. oParam.async = false;
  219. oParam.callback = "cf_TRPIC90401";
  220. tranf_submit(oParam);
  221. /*
  222. function cf_TRPIC90401(sSvcId, nErrorCode, sErrorMsg) {
  223. if(nErrorCode < 0) return;
  224. }
  225. function cf_TRPIC90401(sSvcId, nErrorCode, sErrorMsg) {
  226. arErrorCode.push(sSvcId, nErrorCode);
  227. }
  228. arErrorCode.pop("TRPIC90401") > -1
  229. arErrorCode.pop("TRPIC90401") < 0
  230. */
  231. }
  232. function grd_usndept_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  233. //if( grd_usndept.isCell(event.target) && grd_usndept.row > grd_usndept.fixedRows )
  234. //{
  235. btn_access.dispatch("DOMActivate");
  236. //}
  237. }
  238. function grd_usndept_onaftersort {
  239. grd_usndept.gridToInstance();
  240. }
  241. function btn_access_onclick(obj:Button, e:ClickEventInfo) {
  242. opener.javascript.frmf_setParameter("actdeptcd",ds_main_usndept_usndeptlist.getColumn(grd_usndept.row, "actdeptcd")));//common.js popup설정(["+grd_usndept.row+"] => 선택한 그리드 행
  243. opener.javascript.frmf_setParameter("actdeptnm",ds_main_usndept_usndeptlist.getColumn(grd_usndept.row, "actdeptnm")));
  244. opener.javascript.frmf_setParameter("actprcpdrid",ds_main_usndept_usndeptlist.getColumn(grd_usndept.row, "actprcpdrid")));
  245. opener.javascript.frmf_setParameter("actprcpdrnm",ds_main_usndept_usndeptlist.getColumn(grd_usndept.row, "actprcpdrnm")));
  246. model.close();
  247. }
  248. function btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
  249. window.close();
  250. }
  251. ]]></Script>
  252. </Form>
  253. </FDL>