SMPIS00800_유알스코프.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml" />
  4. <Form id="SMPIS00800" position="absolute 0 0 1211 784" titletext="유알스코프" onload="SMPIS00800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" position="absolute 0 0 1190 13" style="">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption1" class="tit_1" position="absolute 0 0 173 14" style="" text="유알스코프" />
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div id="group2" scrollbars="" position="absolute 0 13 1190 745" style="">
  15. <Layouts>
  16. <Layout>
  17. <Div id="group4" position="absolute 0 645 1190 680" style="align: top;">
  18. <Layouts>
  19. <Layout>
  20. <Shape id="roundrect2" anchor="default" type="roundrectangle" position="absolute 0 0 1190 35" style="" />
  21. <Static id="caption5" class="search_name" position="absolute 10 10 86 27" style="" text="진료년월" />
  22. <Calendar id="ipt_ordym" class="input_search" taborder="1" mask="yyyy-mm" position="absolute 100 10 180 29" style="" anchor="default" />
  23. <Shape id="line2" class="line_4" linetype="vertical" position="absolute 954 5 957 24" style="" anchor="default" />
  24. <Button id="button1" class="btn1_letter2" taborder="2" position="absolute 980 5 1036 27" style="" text="생성" onclick="group2_group4_button1_onclick" />
  25. <Button id="button6" class="btn1_letter6" taborder="2" position="absolute 1070 5 1174 27" style="" text="배치결과확인" onclick="group2_group4_button6_onclick" />
  26. <Static id="caption4" class="search_name" position="absolute 210 10 286 27" style="" text="내원유형" />
  27. <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="rdo_ioflag" class="radio_search" position="absolute 295 10 475 29" style="">
  28. <Dataset id="innerdataset">
  29. <ColumnInfo>
  30. <Column id="codecolumn" />
  31. <Column id="datacolumn" />
  32. </ColumnInfo>
  33. <Rows>
  34. <Row>
  35. <Col id="codecolumn">I</Col>
  36. <Col id="datacolumn">입원</Col>
  37. </Row>
  38. <Row>
  39. <Col id="codecolumn">O</Col>
  40. <Col id="datacolumn">외래</Col>
  41. </Row>
  42. </Rows>
  43. </Dataset>
  44. </Radio>
  45. </Layout>
  46. </Layouts>
  47. </Div>
  48. <Static id="caption12" class="tit_2" position="absolute 0 15 100 28" style="" text="진료과 마스터" />
  49. <Button id="button2" class="btn2_letter4" position="absolute 1120 12 1184 31" style="" text="엑셀저장" onclick="group2_button2_onclick" />
  50. <Grid id="grd_orddept" binddataset="ds_main_grdlist_orddeptlist" class="datagrid2" position="absolute 0 35 1190 275" style="">
  51. <Formats>
  52. <Format id="default">
  53. <Columns>
  54. <Column size="105" />
  55. <Column size="161" />
  56. <Column size="88" />
  57. <Column size="105" />
  58. <Column size="107" />
  59. </Columns>
  60. <Rows>
  61. <Row size="24" band="head" />
  62. <Row size="24" />
  63. </Rows>
  64. <Band id="head">
  65. <Cell text="세부진료과 코드" />
  66. <Cell col="1" text="세부진료과명" />
  67. <Cell col="2" text="심평원 공통&#xA;진료과목 코드" />
  68. <Cell col="3" text="코드의 종료 년월" />
  69. <Cell col="4" text="새로운 대체 코드" />
  70. </Band>
  71. <Band id="body">
  72. <Cell text="bind:deptcd" />
  73. <Cell col="1" text="bind:depthngnm" />
  74. <Cell col="2" text="bind:reqdeptno" />
  75. <Cell col="3" text="bind:valitodd" />
  76. <Cell col="4" text="bind:newcode" />
  77. </Band>
  78. </Format>
  79. </Formats>
  80. </Grid>
  81. <Button id="button3" class="btn1_letter2" taborder="2" position="absolute 1055 10 1111 32" style="" text="조회" onclick="group2_button3_onclick" />
  82. <Button id="button4" class="btn2_letter4" position="absolute 1120 300 1184 319" style="" text="엑셀저장" onclick="group2_button4_onclick" />
  83. <Button id="button5" class="btn1_letter2" taborder="2" position="absolute 1055 298 1111 320" style="" text="조회" onclick="group2_button5_onclick" />
  84. <Static id="caption2" class="tit_2" position="absolute 0 303 100 316" style="" text="의사 마스터" />
  85. <Grid id="grd_drmst" binddataset="ds_main_grdlist_drlist" class="datagrid2" position="absolute 0 323 1190 585" style="">
  86. <Formats>
  87. <Format id="default">
  88. <Columns>
  89. <Column size="87" />
  90. <Column size="65" />
  91. <Column size="111" />
  92. <Column size="67" />
  93. <Column size="103" />
  94. </Columns>
  95. <Rows>
  96. <Row size="24" band="head" />
  97. <Row size="24" />
  98. </Rows>
  99. <Band id="head">
  100. <Cell text="의사코드" />
  101. <Cell col="1" text="의사이름" />
  102. <Cell col="2" text="세부진료과 코드" />
  103. <Cell col="3" text="직위" />
  104. <Cell col="4" text="코드의 종료 년월" />
  105. </Band>
  106. <Band id="body">
  107. <Cell text="bind:userid" />
  108. <Cell col="1" text="bind:usernm" />
  109. <Cell col="2" text="bind:dutplcecd" />
  110. <Cell col="3" text="bind:position" />
  111. <Cell col="4" text="bind:todd" />
  112. </Band>
  113. </Format>
  114. </Formats>
  115. </Grid>
  116. <Static id="caption3" class="tit_2" position="absolute 0 620 113 633" style="" text="세부진료과 파일" />
  117. </Layout>
  118. </Layouts>
  119. </Div>
  120. </Layout>
  121. </Layouts>
  122. <Objects>
  123. <Dataset id="ds_main_grdlist_orddeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  124. <ColumnInfo>
  125. <Column id="deptcd" type="STRING" size="256" />
  126. <Column id="depthngnm" type="STRING" size="256" />
  127. <Column id="reqdeptno" type="STRING" size="256" />
  128. <Column id="valitodd" type="STRING" size="256" />
  129. <Column id="newcode" type="STRING" size="256" />
  130. </ColumnInfo>
  131. <Rows>
  132. <Row>
  133. <Col id="deptcd"></Col>
  134. <Col id="depthngnm"></Col>
  135. <Col id="reqdeptno"></Col>
  136. <Col id="valitodd"></Col>
  137. <Col id="newcode"></Col>
  138. </Row>
  139. </Rows>
  140. </Dataset>
  141. <Dataset id="ds_main_grdlist_drlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  142. <ColumnInfo>
  143. <Column id="userid" type="STRING" size="256" />
  144. <Column id="usernm" type="STRING" size="256" />
  145. <Column id="dutplcecd" type="STRING" size="256" />
  146. <Column id="position" type="STRING" size="256" />
  147. <Column id="todd" type="STRING" size="256" />
  148. </ColumnInfo>
  149. <Rows>
  150. <Row>
  151. <Col id="userid"></Col>
  152. <Col id="usernm"></Col>
  153. <Col id="dutplcecd"></Col>
  154. <Col id="position"></Col>
  155. <Col id="todd"></Col>
  156. </Row>
  157. </Rows>
  158. </Dataset>
  159. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  160. <ColumnInfo>
  161. <Column id="ordym" type="STRING" size="256" />
  162. <Column id="srchkind" type="STRING" size="256" />
  163. <Column id="ioflag" type="STRING" size="256" />
  164. </ColumnInfo>
  165. </Dataset>
  166. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  167. <ColumnInfo />
  168. </Dataset>
  169. <Dataset id="ds_main_grdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  170. <ColumnInfo />
  171. </Dataset>
  172. </Objects>
  173. <Bind>
  174. <BindItem id="item0" compid="group2.group4.ipt_ordym" propid="value" datasetid="ds_send" columnid="ordym" />
  175. <BindItem id="item1" compid="group2.group4.rdo_ioflag" propid="value" datasetid="ds_send" columnid="ioflag" />
  176. </Bind>
  177. <Script type="xscript4.0"><![CDATA[function SMPIS00800_onload(obj:Form, e:LoadEventInfo) {
  178. frmf_initForm(obj);
  179. //grdf_initGrid(grd_XXX);
  180. //grdf_setGridSort(grd_XXX);
  181. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  182. // 화면 초기화
  183. fInitialize();
  184. }
  185. include '../../.._com_commonweb_js_common.js'
  186. include '../../.._com_commonweb_js_utilHelper.js'
  187. include '../../.._com_commonweb_js_numericHelper.js'
  188. include '../../.._com_commonweb_js_stringHelper.js'
  189. include '../../.._com_commonweb_js_dateHelper.js'
  190. include '../../.._com_basiccodeweb_js_ZBC001.js'
  191. include '../../.._com_commonweb_js_tfHelper.js'
  192. include '../../.._com_batchinfoweb_js_ZSB001.js'
  193. // 화면 초기화
  194. function fInitialize()
  195. {
  196. ds_main_grdlist_orddeptlist.clearData(); // 그리드 초기화
  197. ds_main_grdlist_drlist.clearData(); // 그리드 초기화
  198. group2.group4.rdo_ioflag.select(0);
  199. //model.refresh();
  200. }
  201. function fSearch()
  202. {
  203. dsf_makeValue( ds_tmp, "tmpdept", "string", "" );
  204. dsf_makeValue( ds_tmp, "tmpdr", "string", "" );
  205. model.copyNode("ds_tmp_tmpdept","ds_main_grdlist[1]"); // submit이 하나로 날아가서 기존의 노드를 다 날려 먹는다
  206. model.copyNode("ds_tmp_tmpdr","ds_main_grdlist[2]"); // 그래서 조회 후 기존의 데이터를 다시 뿌려준다.
  207. // submit("TRPIS00800");
  208. var oParam = {};
  209. oParam.id = "TRPIS00800";
  210. oParam.service = "aftjudgstatapp.UrScope";
  211. oParam.method = "reqGetUrScope";
  212. oParam.inds = "req=ds_";
  213. oParam.outds = "ds_=orddeptlist ds_=drlist";
  214. oParam.async = false;
  215. oParam.callback = "cf_TRPIS00800";
  216. tranf_submit(oParam);
  217. /*
  218. function cf_TRPIS00800(sSvcId, nErrorCode, sErrorMsg) {
  219. if(nErrorCode < 0) return;
  220. }
  221. function cf_TRPIS00800(sSvcId, nErrorCode, sErrorMsg) {
  222. arErrorCode.push(sSvcId, nErrorCode);
  223. }
  224. arErrorCode.pop("TRPIS00800") > -1
  225. arErrorCode.pop("TRPIS00800") < 0
  226. */
  227. if ( ds_send.getColumn(0, "srchkind") == "dr") {
  228. ds_main_grdlist.copyRow( 1, ds_tmp_tmpdept, 0);
  229. } else if ( ds_send.getColumn(0, "srchkind") == "orddept") {
  230. ds_main_grdlist.copyRow( 2, ds_tmp_tmpdr, 0);
  231. } else {
  232. ds_main_grdlist.copyRow( 1, ds_tmp_tmpdept, 0);
  233. ds_main_grdlist.copyRow( 2, ds_tmp_tmpdr, 0);
  234. }
  235. //model.refresh();
  236. }
  237. function group2_group4_button1_onclick(obj:Button, e:ClickEventInfo) {
  238. if (group2.group4.ipt_ordym.value != "") {
  239. ds_send.setColumn( 0, "srchkind","orddetail");
  240. fSearch();
  241. } else {
  242. sysf_messageBox("진료년월 조건은 ", "I003");
  243. }
  244. }
  245. function group2_group4_button6_onclick(obj:Button, e:ClickEventInfo) {
  246. var todd = utlf_getCurrentDate();
  247. todd = todd.toDate().getAddDate(+1, 'D');
  248. zsbfOpenBatchLogPopup("aftjudgstatmgr.UrScopeBatch",utlf_getCurrentDate(),todd.getDateFormat());
  249. }
  250. function group2_button2_onclick(obj:Button, e:ClickEventInfo) {
  251. if (group2.grd_orddept.rows > 1) {
  252. var fileName = window.fileDialog("save", "", false, "진료과마스터_" + utlf_getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  253. if (fileName != "") {
  254. //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
  255. grdf_exportExcel(// grd_clbsmast, "Sheet1", fileName, false, "" , 'user' , true);
  256. group2.grd_orddept.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
  257. }
  258. } else {
  259. sysf_messageBox("엑셀저장할 대상이 ", "I004"); ///엑셀저장할 대상자가 없습니다.
  260. }
  261. }
  262. function group2_button3_onclick(obj:Button, e:ClickEventInfo) {
  263. ds_send.setColumn( 0, "srchkind","orddept");
  264. fSearch();
  265. }
  266. function group2_button4_onclick(obj:Button, e:ClickEventInfo) {
  267. if (group2.grd_drmst.rows > 1) {
  268. var fileName = window.fileDialog("save", "", false, "의사마스터_" + utlf_getCurrentDate(), "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  269. if (fileName != "") {
  270. //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
  271. grdf_exportExcel(// grd_clbsmast, "Sheet1", fileName, false, "" , 'user' , true);
  272. group2.grd_drmst.saveExcel(fileName, "sheetname:;colhiddenextend:false;rowhiddenextend:false;", true, true, "", "", true);
  273. }
  274. } else {
  275. sysf_messageBox("엑셀저장할 대상이 ", "I004"); ///엑셀저장할 대상자가 없습니다.
  276. }
  277. }
  278. function group2_button5_onclick(obj:Button, e:ClickEventInfo) {
  279. ds_send.setColumn( 0, "srchkind","dr");
  280. fSearch();
  281. }
  282. ]]></Script>
  283. </Form>
  284. </FDL>