SPLLF91000_대체코드관리.xfdl 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLLF91000" position="absolute 0 0 1241 744" titletext="대체코드관리" oninit="SPLLF91000_oninit" onload="SPLLF91000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="Div00" taborder="12" position="absolute 0 25 1237 62" class="div_SA"/>
  8. <Static id="caption3" text="대체코드 조회" class="tit_2" position="absolute 5 76 115 93" anchor="left top"/>
  9. <Button id="button2" taborder="2" text="행추가" class="btn2" visible="false" position="absolute 1027 71 1080 90" enable="true" onclick="button2_onclick" anchor="top right"/>
  10. <Button id="button1" taborder="3" text="행삭제" class="btn2" visible="false" position="absolute 1083 71 1136 90" enable="true" onclick="button1_onclick" anchor="top right"/>
  11. <Grid id="grd_replcecdlist" taborder="4" binddataset="ds_grd_replcecdlist" useinputpanel="false" position="absolute 1 96 1239 742" anchor="all" cellsizingtype="col">
  12. <Formats>
  13. <Format id="default">
  14. <Columns>
  15. <Column size="29"/>
  16. <Column size="67"/>
  17. <Column size="183"/>
  18. <Column size="55"/>
  19. <Column size="87"/>
  20. <Column size="81"/>
  21. <Column size="34"/>
  22. <Column size="76"/>
  23. <Column size="79"/>
  24. <Column size="50"/>
  25. <Column size="51"/>
  26. <Column size="39"/>
  27. <Column size="50"/>
  28. <Column size="50"/>
  29. <Column size="44"/>
  30. <Column size="135"/>
  31. <Column size="65"/>
  32. <Column size="110"/>
  33. <Column size="51"/>
  34. </Columns>
  35. <Rows>
  36. <Row size="26" band="head"/>
  37. <Row size="24"/>
  38. </Rows>
  39. <Band id="head">
  40. <Cell/>
  41. <Cell col="1" text="처방코드"/>
  42. <Cell col="2" text="처방명"/>
  43. <Cell col="3" text="수가그룹&#10;구분"/>
  44. <Cell col="4" text="처방가능&#10;여부(수가)"/>
  45. <Cell col="5" text="보험코드"/>
  46. <Cell col="6" text="처방&#10;분류"/>
  47. <Cell col="7" style="align:left middle;" text="Class번호(OLD)"/>
  48. <Cell col="8" style="align:left middle;" text="처방코드(OLD)"/>
  49. <Cell col="9" style="align:left middle;" text="처방사전&#10;번호(OLD)"/>
  50. <Cell col="10" style="align:left middle;" text="행위코드(OLD)"/>
  51. <Cell col="11" style="align:left middle;" text="임상구분(1:건진)"/>
  52. <Cell col="12" style="align:left middle;" text="시행부서(검사)"/>
  53. <Cell col="13" style="align:left middle;" text="검사분류(검사)"/>
  54. <Cell col="14" style="align:left middle;" text="처방가능여부(검사)"/>
  55. <Cell col="15" text="검사명"/>
  56. <Cell col="16" text="대체코드"/>
  57. <Cell col="17" text="비고"/>
  58. <Cell col="18" text="오류유형"/>
  59. </Band>
  60. <Band id="body">
  61. <Cell celltype="head"/>
  62. <Cell col="1" style="align:left middle;" text="bind:calcscorcd"/>
  63. <Cell col="2" style="align:left middle;" text="bind:ordnm"/>
  64. <Cell col="3" displaytype="normal" edittype="none" text="bind:grupsnglflag"/>
  65. <Cell col="4" displaytype="normal" text="bind:ordinptflag"/>
  66. <Cell col="5" style="align:left middle;" text="bind:insuedicd"/>
  67. <Cell col="6" text="bind:prcpclscd"/>
  68. <Cell col="7" text="bind:etcflag2"/>
  69. <Cell col="8" text="bind:oldordcd"/>
  70. <Cell col="9" text="bind:oldseqno"/>
  71. <Cell col="10" text="bind:oldsnglcd"/>
  72. <Cell col="11" text="bind:clincresyn"/>
  73. <Cell col="12" text="bind:tsectcd"/>
  74. <Cell col="13" displaytype="text" edittype="text" style="background:#99ccffff;" text="bind:testmdlcd"/>
  75. <Cell col="14" text="bind:prcppossyn"/>
  76. <Cell col="15" style="align:left middle;" text="bind:tclsscrnnm"/>
  77. <Cell col="16" displaytype="text" edittype="text" style="background:#99ccffff;" text="bind:tocalcscorcd"/>
  78. <Cell col="17" displaytype="text" edittype="text" style="background:#99ccffff;" text="bind:remark"/>
  79. <Cell col="18" text="bind:errflag"/>
  80. </Band>
  81. </Format>
  82. </Formats>
  83. </Grid>
  84. <Button id="btn_excel" taborder="5" text="엑셀저장" class="btn7" position="absolute 1165 70 1238 90" onclick="btn_excel_onclick" anchor="top right"/>
  85. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 582 32 588 54" anchor="left top"/>
  86. <Button id="btn_Ref" taborder="6" text="조회" class="btn1" position="absolute 600 32 656 54" onclick="btn_Ref_onclick" anchor="left top"/>
  87. <Static id="caption1" text="조회구분 :" class="search_name" position="absolute 15 34 105 51" anchor="left top"/>
  88. <Combo id="cmbflag" taborder="7" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 108 33 258 52" anchor="left top">
  89. <Dataset id="innerdataset">
  90. <ColumnInfo>
  91. <Column id="codecolumn"/>
  92. <Column id="datacolumn"/>
  93. </ColumnInfo>
  94. <Rows>
  95. <Row>
  96. <Col id="codecolumn">1</Col>
  97. <Col id="datacolumn">전체</Col>
  98. </Row>
  99. <Row>
  100. <Col id="codecolumn">2</Col>
  101. <Col id="datacolumn">처방코드</Col>
  102. </Row>
  103. <Row>
  104. <Col id="codecolumn">3</Col>
  105. <Col id="datacolumn">처방명</Col>
  106. </Row>
  107. <Row>
  108. <Col id="codecolumn">4</Col>
  109. <Col id="datacolumn">검사코드</Col>
  110. </Row>
  111. <Row>
  112. <Col id="codecolumn">5</Col>
  113. <Col id="datacolumn">검사명</Col>
  114. </Row>
  115. <Row>
  116. <Col id="codecolumn">6</Col>
  117. <Col id="datacolumn">대체코드</Col>
  118. </Row>
  119. </Rows>
  120. </Dataset>
  121. </Combo>
  122. <Edit id="input1" taborder="8" position="absolute 264 33 415 52" onkeydown="input1_onkeydown" anchor="left top"/>
  123. <Combo id="combo3" taborder="9" innerdataset="@ds_init_LB0106" codecolumn="cd" datacolumn="nm" position="absolute 420 33 570 52" anchor="left top"/>
  124. <Button id="btn_reset" taborder="10" text="초기화" class="btn4" position="absolute 1170 3 1238 25" onclick="btn_reset_onclick" anchor="top right"/>
  125. <Button id="btn_cnfm" taborder="11" text="저장" class="btn4" enable="false" position="absolute 1111 3 1167 25" onclick="btn_cnfm_onclick" anchor="top right"/>
  126. <Static id="caption6" text="대체코드관리" class="tit_1" position="absolute 0 0 176 25" anchor="left top"/>
  127. </Layout>
  128. </Layouts>
  129. <Objects>
  130. <Dataset id="ds_init_combo3" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  131. <ColumnInfo>
  132. <Column id="nm" type="STRING"/>
  133. <Column id="cd" type="STRING"/>
  134. </ColumnInfo>
  135. </Dataset>
  136. <Dataset id="ds_grd_replcecdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  137. <ColumnInfo>
  138. <Column id="calcscorcd" type="STRING"/>
  139. <Column id="ordnm" type="STRING"/>
  140. <Column id="grupsnglflag" type="STRING"/>
  141. <Column id="ordinptflag" type="STRING"/>
  142. <Column id="insuedicd" type="STRING"/>
  143. <Column id="prcpclscd" type="STRING"/>
  144. <Column id="etcflag2" type="STRING"/>
  145. <Column id="oldordcd" type="STRING"/>
  146. <Column id="oldseqno" type="STRING"/>
  147. <Column id="oldsnglcd" type="STRING"/>
  148. <Column id="clincresyn" type="STRING"/>
  149. <Column id="tsectcd" type="STRING"/>
  150. <Column id="testmdlcd" type="STRING"/>
  151. <Column id="prcppossyn" type="STRING"/>
  152. <Column id="tclsscrnnm" type="STRING"/>
  153. <Column id="tocalcscorcd" type="STRING"/>
  154. <Column id="remark" type="STRING"/>
  155. <Column id="errflag" type="STRING"/>
  156. </ColumnInfo>
  157. <Rows>
  158. <Row/>
  159. </Rows>
  160. </Dataset>
  161. <Dataset id="ds_cmbflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  162. <ColumnInfo>
  163. <Column id="label" type="STRING" size="256"/>
  164. <Column id="value" type="STRING" size="256"/>
  165. </ColumnInfo>
  166. <Rows>
  167. <Row>
  168. <Col id="label">전체</Col>
  169. <Col id="value">1</Col>
  170. </Row>
  171. <Row>
  172. <Col id="label">처방코드</Col>
  173. <Col id="value">2</Col>
  174. </Row>
  175. <Row>
  176. <Col id="label">처방명</Col>
  177. <Col id="value">3</Col>
  178. </Row>
  179. <Row>
  180. <Col id="label">검사코드</Col>
  181. <Col id="value">4</Col>
  182. </Row>
  183. <Row>
  184. <Col id="label">검사명</Col>
  185. <Col id="value">5</Col>
  186. </Row>
  187. <Row>
  188. <Col id="label">대체코드</Col>
  189. <Col id="value">6</Col>
  190. </Row>
  191. </Rows>
  192. </Dataset>
  193. <Dataset id="ds_text" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  194. <Dataset id="ds_init_LB0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  195. <ColumnInfo>
  196. <Column id="nm" type="STRING" size="256"/>
  197. <Column id="cd" type="STRING" size="256"/>
  198. </ColumnInfo>
  199. </Dataset>
  200. <Dataset id="ds_init_LB0111" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  201. <ColumnInfo>
  202. <Column id="nm" type="STRING" size="256"/>
  203. <Column id="cd" type="STRING" size="256"/>
  204. </ColumnInfo>
  205. </Dataset>
  206. <Dataset id="ds_init_LB9987" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  207. <ColumnInfo>
  208. <Column id="nm" type="STRING" size="256"/>
  209. <Column id="cd" type="STRING" size="256"/>
  210. </ColumnInfo>
  211. </Dataset>
  212. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  213. <ColumnInfo>
  214. <Column id="cmbflag" type="STRING" size="256"/>
  215. <Column id="text1" type="STRING" size="256"/>
  216. <Column id="select02" type="STRING" size="256"/>
  217. </ColumnInfo>
  218. <Rows>
  219. <Row/>
  220. </Rows>
  221. </Dataset>
  222. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  223. <ColumnInfo>
  224. <Column id="refgbn" type="STRING" size="256"/>
  225. <Column id="searchtext" type="STRING" size="256"/>
  226. <Column id="grddata" type="STRING" size="256"/>
  227. <Column id="codeflag" type="STRING" size="256"/>
  228. <Column id="tsect" type="STRING" size="256"/>
  229. </ColumnInfo>
  230. <Rows>
  231. <Row/>
  232. </Rows>
  233. </Dataset>
  234. <Dataset id="ds_init_LB0106" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  235. <Dataset id="ds_grddata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  236. <ColumnInfo>
  237. <Column id="status" type="STRING" size="256"/>
  238. <Column id="calcscorcd" type="STRING" size="256"/>
  239. <Column id="insuedicd" type="STRING" size="256"/>
  240. <Column id="tsectcd" type="STRING" size="256"/>
  241. <Column id="testmdlcd" type="STRING" size="256"/>
  242. <Column id="tocalcscorcd" type="STRING" size="256"/>
  243. <Column id="remark" type="STRING" size="256"/>
  244. </ColumnInfo>
  245. <Rows>
  246. <Row/>
  247. </Rows>
  248. </Dataset>
  249. <Dataset id="ds_refgbn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  250. <ColumnInfo>
  251. <Column id="refgbn" type="STRING" size="256"/>
  252. <Column id="searchtext" type="STRING" size="256"/>
  253. <Column id="tsect" type="STRING" size="256"/>
  254. </ColumnInfo>
  255. <Rows>
  256. <Row/>
  257. </Rows>
  258. </Dataset>
  259. </Objects>
  260. <Bind>
  261. <BindItem id="item0" compid="input1" propid="value" datasetid="ds_text" columnid=""/>
  262. <BindItem id="item1" compid="cmbflag" propid="value" datasetid="ds_hidden" columnid="cmbflag"/>
  263. <BindItem id="item2" compid="combo3" propid="value" datasetid="ds_hidden" columnid="select02"/>
  264. </Bind>
  265. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  266. * System Name :
  267. * Job Name :
  268. * Creator :
  269. * Make Date : 2015-11-09
  270. * Description :
  271. *---------------------------------------------------------------------------------------
  272. * Modify Date Modifier Modify Description
  273. *---------------------------------------------------------------------------------------
  274. * 2015-11-09 Live Converter TF->XP
  275. *
  276. *---------------------------------------------------------------------------------------
  277. ****************************************************************************************/
  278. include "com_commonxp::comm_main.xjs";
  279. include "lis_commonxp::LLZ001.xjs";
  280. include "lis_commonxp::LZZ001.xjs";
  281. function cf_TRLZZ00101(strSvcID, nErrorCode, strErrorMag)
  282. {
  283. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  284. }
  285. function cf_TRLLF91001(strSvcID, nErrorCode, strErrorMag){
  286. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  287. }
  288. function SPLLF91000_oninit(obj:Form, e:InitEventInfo)
  289. {
  290. //폼 초기화 함수
  291. frmf_initForm(obj);
  292. }
  293. function SPLLF91000_onload(obj:Form, e:LoadEventInfo)
  294. {
  295. grdf_setRowTypeIcon(grd_replcecdlist, 0);
  296. grdf_initGrid(grd_replcecdlist);
  297. //조회구분
  298. cmbflag.value = '1';
  299. ds_hidden.setColumn(0, 'select02', '00');
  300. var sInDsName = dsf_createDsRow("ds_temp_search", [{col: "codeflag", val : "0000|0111|0106|9987|"}]);
  301. var oParam = {};
  302. oParam.id = "TRLZZ00101";
  303. oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
  304. oParam.method = "reqGetInitCodeInfo";
  305. oParam.inds = "cond=" + sInDsName;
  306. oParam.outds = "ds_init_LB0000=0000 ds_init_LB0111=0111 ds_init_LB0106=0106 ds_init_LB9987=9987"
  307. oParam.async = false;
  308. oParam.callback = "cf_TRLZZ00101";
  309. tranf_submit(oParam);
  310. fChkPatU();
  311. fGetReplceCode();
  312. }
  313. //권한여부
  314. function fChkPatU()
  315. {
  316. //var Chkuserid = model.getValue("/root/init/LB0000/cd");
  317. var chkuserid = ds_init_LB0000.getColumn(0, "cd");
  318. //var n = getNodesetCount("/root/init/LB9987[cd='" + chkuserid + "']");
  319. ds_init_LB9987.filterstr ="cd==" + chkuserid;
  320. var n = ds_init_LB9987.rowcount;
  321. if(n < 0)
  322. {
  323. btn_cnfm.disabled = false;
  324. }
  325. else
  326. {
  327. btn_cnfm.disabled = true;
  328. }
  329. }
  330. //조회
  331. function fGetReplceCode()
  332. {
  333. // model.setValue("/root/send/refgbn", model.getValue("/root/hidden/ref/cmbflag")); // 조회구분
  334. // model.setValue("/root/send/searchtext", model.getValue("/root/hidden/ref/text1"));
  335. // model.setValue("/root/send/tsect", model.getValue("/root/hidden/ref/select02"));
  336. ds_send.setColumn(0, "refgbn", ds_hidden.getColumn(0, "cmbflag"));
  337. ds_send.setColumn(0, "searchtext", ds_hidden.getColumn(0, "text1"));
  338. ds_send.setColumn(0, "tsect", ds_hidden.getColumn(0, "select02"));
  339. var oParam = {};
  340. oParam.id = "TRLLF91001";
  341. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  342. oParam.method = "reqGetReplceCode";
  343. oParam.inds = "cond=ds_send";
  344. oParam.outds = "ds_grd_replcecdlist=getReplcecode";
  345. oParam.async = false;
  346. oParam.callback = "cf_TRLLF91001";
  347. tranf_submit(oParam);
  348. }
  349. //행추가
  350. function fInsRowAdd()
  351. {
  352. var addRw = ds_grd_replcecdlist.addRow();
  353. var arrPostion = new Array();
  354. arrPostion[0] = addRw;
  355. grdf_setStatus(grd_replcecdlist, "I", arrPostion);
  356. }
  357. //행삭제
  358. function fInsRowdel()
  359. {
  360. var row = ds_grd_replcecdlist.rowposition;
  361. var selectyn = ds_grd_replcecdlist.getColumn(row, "selectyn");
  362. if(selectyn == "Y")
  363. {
  364. messageBox("이미 등록된 성분제제는 삭제할 수 없습니다.","I");
  365. return;
  366. }
  367. var arrPostion = new Array();
  368. arrPostion[0] = ds_grd_replcecdlist.rowposition;
  369. grdf_setStatus(grd_replcecdlist, "D", arrPostion);
  370. }
  371. //저장 수정
  372. function fExeReplceCd()
  373. {
  374. var grddata = grdf_getGridUpdateData(grd_replcecdlist, "all");
  375. if(grddata == "")
  376. {
  377. alert("수정된 데이터가 없습니다. ");
  378. }else
  379. {
  380. //model.setValue("/root/send/grddata", grddata);
  381. ds_send.setColumn(grddata, "grddata");
  382. var oParam = {};
  383. oParam.id = "TXLLF91001";
  384. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  385. oParam.method = "reqExeReplceCode";
  386. oParam.inds = "cond=ds_grddata";
  387. oParam.async = false;
  388. oParam.callback = "cf_TXLLF91001";
  389. tranf_submit(oParam);
  390. fGetReplceCode(); // 수정된후 재조회
  391. }
  392. }
  393. function btn_Ref_onclick(obj:Button, e:ClickEventInfo)
  394. {
  395. fGetReplceCode();
  396. }
  397. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  398. {
  399. grdf_exportExcel(grd_replcecdlist, lf_lisGetTitle(this), "see");
  400. }
  401. function btn_reset_onclick(obj:Button, e:ClickEventInfo)
  402. {
  403. this.reload();
  404. }
  405. function input1_onkeydown(obj:Edit, e:KeyEventInfo)
  406. {
  407. //if (event.keycode == "13")
  408. if(e.keycode == 13)
  409. {
  410. ds_send.setColumn(0, "searchtext", input1.text);
  411. ds_send.setColumn(0, "refgbn", ds_hidden.getColumn(0, "cmbflag"));
  412. ds_send.setColumn(0, "tsect", ds_hidden.getColumn(0, "select02"));
  413. var oParam = {};
  414. oParam.id = "TRLLF91001";
  415. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  416. oParam.method = "reqGetReplceCode";
  417. oParam.inds = "cond=ds_send";
  418. oParam.outds = "ds_grd_replcecdlist=getReplcecode";
  419. oParam.async = false;
  420. oParam.callback = "cf_TRLLF91001";
  421. tranf_submit(oParam);
  422. //model.setValue("/root/hidden/ref/text1" , "" );
  423. ds_hidden.setColumn(text, "");
  424. }
  425. }
  426. function button2_onclick(obj:Button, e:ClickEventInfo)
  427. {
  428. fInsRowAdd();
  429. }
  430. function button1_onclick(obj:Button, e:ClickEventInfo)
  431. {
  432. fInsRowdel();
  433. }
  434. function btn_cnfm_onclick(obj:Button, e:ClickEventInfo)
  435. {
  436. fExeReplceCd();
  437. }
  438. ]]></Script>
  439. </Form>
  440. </FDL>