SMPID21200_코드별일괄수정.xfdl 57 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml" />
  4. <Form id="SMPID21200" position="absolute 0 0 1211 784" titletext="코드별일괄수정" onload="SMPID21200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_tle" position="absolute 0 0 1195 13" style="">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption1" class="tit_1" position="absolute 0 0 106 13" style="" text="코드별일괄수정" />
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div id="grp_biz" position="absolute 0 13 1195 757" style="">
  15. <Layouts>
  16. <Layout>
  17. <Div id="grp_mechsrch" position="absolute 0 10 1194 45" style="">
  18. <Layouts>
  19. <Layout>
  20. <Shape id="roundrect1" anchor="default" type="roundrectangle" position="absolute 0 0 1194 35" style="" />
  21. <Static id="caption2" class="search_name" position="absolute 15 9 102 26" style="" text="수가코드 :" />
  22. <Edit id="ipt_calcscorcd" class="input_search" taborder="1" position="absolute 105 8 215 27" style="" anchor="default" onkeypress="grp_biz_grp_mechsrch_ipt_calcscorcd_onkeypress" onlbuttonup="grp_biz_grp_mechsrch_ipt_calcscorcd_onlbuttonup" />
  23. <Static id="caption3" class="search_name" position="absolute 340 9 423 26" style="" text="EDI코드 :" />
  24. <Edit id="ipt_edicd" class="input_search" taborder="2" position="absolute 429 8 539 27" style="" anchor="default" onkeypress="grp_biz_grp_mechsrch_ipt_edicd_onkeypress" onlbuttonup="grp_biz_grp_mechsrch_ipt_edicd_onlbuttonup" />
  25. <Static id="caption4" class="search_name" position="absolute 599 9 686 26" style="" text="보험유형 :" />
  26. <Combo innerdataset="ds_init_P0008list_P0008[cdid != '51' and cdid != '61']" datacolumn="cdnm" codecolumn="cdid" columncount="-1" rowcount="-1" id="cmb_mechinsukind" class="combo_search" taborder="3" position="absolute 689 8 786 27" style="" onitemchanged="grp_biz_grp_mechsrch_cmb_mechinsukind_onitemchanged" />
  27. <Edit id="opt_mechinsukind" class="output_fix" position="absolute 789 8 806 27" style="" anchor="default" readonly="true" />
  28. <Static id="caption5" class="search_name" position="absolute 826 11 886 28" style="" text="단가 :" />
  29. <MaskEdit id="inp_ediunitcost" class="input_search" taborder="4" mask="#,###" position="absolute 889 10 979 29" style="" anchor="default" />
  30. <Combo datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="cmb_ediunitcostcond" class="combo_search" taborder="5" position="absolute 982 10 1044 29" style="">
  31. <Dataset id="innerdataset">
  32. <ColumnInfo>
  33. <Column id="codecolumn" />
  34. <Column id="datacolumn" />
  35. </ColumnInfo>
  36. <Rows>
  37. <Row>
  38. <Col id="codecolumn">1</Col>
  39. <Col id="datacolumn">원미만</Col>
  40. </Row>
  41. <Row>
  42. <Col id="codecolumn">2</Col>
  43. <Col id="datacolumn">원이상</Col>
  44. </Row>
  45. </Rows>
  46. </Dataset>
  47. </Combo>
  48. <Shape id="line1" class="line_4" linetype="vertical" position="absolute 1108 7 1111 29" style="" anchor="default" />
  49. <Button id="btn_mechsrch" class="btn1_letter2" taborder="6" position="absolute 1118 7 1174 29" style="" text="조회" onclick="grp_biz_grp_mechsrch_btn_mechsrch_onclick" />
  50. </Layout>
  51. </Layouts>
  52. </Div>
  53. <Static id="caption20" class="tit_2" position="absolute 5 55 118 69" style="" text="검색된 코드목록" />
  54. <Shape id="line3" class="line_1" linetype="horizontal" position="absolute 0 70 1194 73" style="" anchor="default" />
  55. <Grid id="grd_mechmast" binddataset="ds_main_list1_mech" class="datagrid2" position="absolute 0 75 1194 224" style="" oncopy="grp_biz_grd_mechmast_oncopy">
  56. <Formats>
  57. <Format id="default">
  58. <Columns>
  59. <Column size="30" />
  60. <Column size="97" />
  61. <Column size="80" />
  62. <Column size="30" />
  63. <Column size="54" />
  64. <Column size="30" />
  65. <Column size="28" />
  66. <Column size="22" />
  67. <Column size="66" />
  68. <Column size="66" />
  69. <Column size="66" />
  70. <Column size="66" />
  71. <Column size="300" />
  72. <Column size="285" />
  73. </Columns>
  74. <Rows>
  75. <Row size="24" band="head" />
  76. <Row size="24" />
  77. </Rows>
  78. <Band id="head">
  79. <Cell text="그룹&#xA;싱글" />
  80. <Cell col="1" text="수가코드" />
  81. <Cell col="2" text="EDI코드" />
  82. <Cell col="3" text="산정&#xA;코드" />
  83. <Cell col="4" text="EDI&#xA;코드구분" />
  84. <Cell col="5" text="재행" />
  85. <Cell col="6" text="항목" />
  86. <Cell col="7" text="항목" />
  87. <Cell col="8" text="시작일자" />
  88. <Cell col="9" text="종료일자" />
  89. <Cell col="10" text="수가단가" />
  90. <Cell col="11" text="EDI단가" />
  91. <Cell col="12" text="한글명" />
  92. <Cell col="13" text="준용명" />
  93. </Band>
  94. <Band id="body">
  95. <Cell text="bind:grupsnglflag" />
  96. <Cell col="1" text="bind:calcscorcd" />
  97. <Cell col="2" text="bind:edicd" />
  98. <Cell col="3" text="bind:estmmncd" />
  99. <Cell col="4" text="bind:edicdflag" />
  100. <Cell col="5" text="bind:matractflag" />
  101. <Cell col="6" text="bind:lrg" />
  102. <Cell col="7" text="bind:mdl" />
  103. <Cell col="8" text="bind:fromdd" />
  104. <Cell col="9" text="bind:todd" />
  105. <Cell col="10" text="bind:ediunitcost" />
  106. <Cell col="11" text="bind:ediuamt" />
  107. <Cell col="12" text="bind:hngnm" />
  108. <Cell col="13" text="bind:inclnm" />
  109. </Band>
  110. </Format>
  111. </Formats>
  112. </Grid>
  113. <Div id="grp_ordsrch" position="absolute 0 234 1194 269" style="">
  114. <Layouts>
  115. <Layout>
  116. <Shape id="roundrect2" anchor="default" type="roundrectangle" position="absolute 0 0 1194 35" style="" />
  117. <Static id="caption6" class="search_name" position="absolute 15 9 101 26" style="" text="청구월 :" />
  118. <Calendar id="ipt_fromdd" class="input_s_essential" taborder="7" mask="yyyy-mm" position="absolute 104 8 196 27" style="" anchor="default" />
  119. <Static id="caption8" class="search_name" position="absolute 340 9 426 26" style="" text="검색구분 :" />
  120. <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="rdo_srchflag" class="radio_search" taborder="9" position="absolute 429 11 559 26" style="" onitemclick="grp_biz_grp_ordsrch_rdo_srchflag_onitemclick">
  121. <Dataset id="innerdataset">
  122. <ColumnInfo>
  123. <Column id="codecolumn" />
  124. <Column id="datacolumn" />
  125. </ColumnInfo>
  126. <Rows>
  127. <Row>
  128. <Col id="codecolumn">-</Col>
  129. <Col id="datacolumn">전체</Col>
  130. </Row>
  131. <Row>
  132. <Col id="codecolumn">I</Col>
  133. <Col id="datacolumn">입원</Col>
  134. </Row>
  135. <Row>
  136. <Col id="codecolumn">O</Col>
  137. <Col id="datacolumn">외래</Col>
  138. </Row>
  139. </Rows>
  140. </Dataset>
  141. </Radio>
  142. <Static id="caption9" class="search_name" position="absolute 599 9 686 26" style="" text="보험유형 :" />
  143. <Combo innerdataset="ds_init_P0008list_P0008[cdid != '51' and cdid != '61']" datacolumn="cdnm" codecolumn="cdid" columncount="-1" rowcount="-1" id="cmb_clodinsukind" class="combo_search" taborder="10" position="absolute 689 8 786 27" style="" onitemclick="grp_biz_grp_ordsrch_cmb_clodinsukind_onitemclick" />
  144. <Edit id="opt_clodnsukind" class="output_fix" position="absolute 789 8 806 27" style="" anchor="default" readonly="true" />
  145. <Static id="caption10" class="search_name" position="absolute 826 9 912 26" style="" text="등록번호 :" />
  146. <MaskEdit id="ipt_pid" class="input_search" taborder="11" mask="####" position="absolute 915 8 1012 27" style="" anchor="default" onlbuttonup="grp_biz_grp_ordsrch_ipt_pid_onlbuttonup" onkillfocus="grp_biz_grp_ordsrch_ipt_pid_onkillfocus" onkeypress="grp_biz_grp_ordsrch_ipt_pid_onkeypress" />
  147. <Shape id="line2" class="line_4" linetype="vertical" position="absolute 1108 7 1111 29" style="" anchor="default" />
  148. <Button id="btn_ordsrch" class="btn1_letter2" taborder="12" position="absolute 1118 7 1174 29" style="" text="조회" onclick="grp_biz_grp_ordsrch_btn_ordsrch_onclick" />
  149. </Layout>
  150. </Layouts>
  151. </Div>
  152. <Static id="caption21" class="tit_2" position="absolute 5 279 79 292" style="" text="처방 목록" />
  153. <Shape id="line5" class="line_1" linetype="horizontal" position="absolute 0 294 1194 297" style="" anchor="default" />
  154. <Grid id="grd_clodhist" binddataset="ds_main_list2_clod" class="datagrid2" position="absolute 0 299 1194 724" style="" oncelldblclick="grp_biz_grd_clodhist_oncelldblclick" onentercell="grp_biz_grd_clodhist_onentercell" oncopy="grp_biz_grd_clodhist_oncopy">
  155. <Formats>
  156. <Format id="default">
  157. <Columns>
  158. <Column size="15" />
  159. <Column size="60" />
  160. <Column size="15" />
  161. <Column size="66" />
  162. <Column size="44" />
  163. <Column size="68" />
  164. <Column size="60" />
  165. <Column size="18" />
  166. <Column size="56" />
  167. <Column size="68" />
  168. <Column size="68" />
  169. <Column size="18" />
  170. <Column size="78" />
  171. <Column size="84" />
  172. <Column size="74" />
  173. <Column size="32" />
  174. <Column size="30" />
  175. <Column size="28" />
  176. <Column size="25" />
  177. <Column size="26" />
  178. <Column size="40" />
  179. <Column size="30" />
  180. <Column size="40" />
  181. <Column size="40" />
  182. <Column size="66" />
  183. <Column size="66" />
  184. <Column size="56" />
  185. <Column size="44" />
  186. <Column size="150" />
  187. <Column size="50" />
  188. <Column size="50" />
  189. <Column size="68" />
  190. <Column size="50" />
  191. <Column size="50" />
  192. <Column size="50" />
  193. <Column size="50" />
  194. <Column size="50" />
  195. <Column size="50" />
  196. <Column size="100" />
  197. <Column size="50" />
  198. </Columns>
  199. <Rows>
  200. <Row size="24" band="head" />
  201. <Row size="24" />
  202. </Rows>
  203. <Band id="head">
  204. <Cell text="심사상태" />
  205. <Cell col="1" text="심사상태" />
  206. <Cell col="2" text="I&#xA;O" />
  207. <Cell col="3" text="등록번호" />
  208. <Cell col="4" text="이름" />
  209. <Cell col="5" text="청구년월" />
  210. <Cell col="6" text="청구차수" />
  211. <Cell col="7" text="보험유형" />
  212. <Cell col="8" text="보험유형" />
  213. <Cell col="9" text="처방&#xA;시작일자" />
  214. <Cell col="10" text="처방&#xA;종료일자" />
  215. <Cell col="11" text="줄" />
  216. <Cell col="12" text="그룹코드" />
  217. <Cell col="13" text="수가코드" />
  218. <Cell col="14" text="EDI코드" />
  219. <Cell col="15" text="산정&#xA;의미" />
  220. <Cell col="16" text="행위&#xA;재료" />
  221. <Cell col="17" text="항" />
  222. <Cell col="18" text="목" />
  223. <Cell col="19" text="급&#xA;비" />
  224. <Cell col="20" text="1회량" />
  225. <Cell col="21" text="횟수" />
  226. <Cell col="22" text="1일량&#xA;(일투)" />
  227. <Cell col="23" text="일수" />
  228. <Cell col="24" text="단가" />
  229. <Cell col="25" text="EDI단가" />
  230. <Cell col="26" text="진료과" />
  231. <Cell col="27" text="진료의" />
  232. <Cell col="28" text="clamym" />
  233. <Cell col="29" text="mode" />
  234. <Cell col="30" text="supp&#xA;kind" />
  235. <Cell col="31" text="orddd" />
  236. <Cell col="32" text="spcl&#xA;judgyn" />
  237. <Cell col="33" text="adjt&#xA;resncd" />
  238. <Cell col="34" text="under&#xA;sixyn" />
  239. <Cell col="35" text="mech&#xA;age" />
  240. <Cell col="36" text="seqno" />
  241. <Cell col="37" text="updtdd" />
  242. <Cell col="38" text="toot" />
  243. <Cell col="39" text="hosin&#xA;resncd" />
  244. </Band>
  245. <Band id="body">
  246. <Cell text="bind:judgendyn" />
  247. <Cell col="1" text="bind:judgendyn" />
  248. <Cell col="2" text="bind:ioflag" />
  249. <Cell col="3" text="bind:pid" />
  250. <Cell col="4" text="bind:patnm" />
  251. <Cell col="5" text="bind:clamym" />
  252. <Cell col="6" text="bind:clamdg" />
  253. <Cell col="7" text="bind:insukind" />
  254. <Cell col="8" text="bind:insukind" />
  255. <Cell col="9" text="bind:ordfromdd" />
  256. <Cell col="10" text="bind:ordtodd" />
  257. <Cell col="11" text="bind:edilnno" />
  258. <Cell col="12" text="bind:grupcalcscorcd" />
  259. <Cell col="13" text="bind:snglcalcscorcd" />
  260. <Cell col="14" text="bind:basecd" />
  261. <Cell col="15" text="bind:estmmncd" />
  262. <Cell col="16" text="bind:matractflag" />
  263. <Cell col="17" text="bind:ediitem1" />
  264. <Cell col="18" text="bind:ediitem2" />
  265. <Cell col="19" text="bind:payflag" />
  266. <Cell col="20" text="bind:drugqty" />
  267. <Cell col="21" text="bind:tims" />
  268. <Cell col="22" text="bind:daydrugqty" />
  269. <Cell col="23" text="bind:dayno" />
  270. <Cell col="24" text="bind:unitcost" />
  271. <Cell col="25" text="bind:ediunitcost" />
  272. <Cell col="26" text="bind:orddeptcd" />
  273. <Cell col="27" text="bind:orddrid" />
  274. <Cell col="28" text="bind:clamkey" />
  275. <Cell col="29" text="bind:mode" />
  276. <Cell col="30" text="bind:suppkind" />
  277. <Cell col="31" text="bind:orddd" />
  278. <Cell col="32" text="bind:spcljudgyn" />
  279. <Cell col="33" text="bind:adjtresncd" />
  280. <Cell col="34" text="bind:undersixageyn" />
  281. <Cell col="35" text="bind:mechage" />
  282. <Cell col="36" text="bind:seqno" />
  283. <Cell col="37" text="bind:updtdd" />
  284. <Cell col="38" text="bind:toot" />
  285. <Cell col="39" text="bind:hosinresncd" />
  286. </Band>
  287. </Format>
  288. </Formats>
  289. </Grid>
  290. <Button id="btn_batupdt" class="btn2_letter4" position="absolute 1063 274 1127 293" style="" text="일괄수정" onclick="grp_biz_btn_batupdt_onclick" />
  291. <Button id="btn_excelsave" class="btn2_letter4" position="absolute 1130 274 1194 293" style="" text="엑셀저장" onclick="grp_biz_btn_excelsave_onclick" />
  292. <cp_checkboxList datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="chk_refresh" class="checkbox_search" position="absolute 930 276 1060 293" style="" titletext="CheckBox List" text="chk_refresh" scrollbars="none" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="100">
  293. <Dataset id="innerdataset">
  294. <ColumnInfo>
  295. <Column id="codecolumn" />
  296. <Column id="datacolumn" />
  297. </ColumnInfo>
  298. <Rows>
  299. <Row>
  300. <Col id="codecolumn">Y</Col>
  301. <Col id="datacolumn">일괄수정후 다시조회</Col>
  302. </Row>
  303. </Rows>
  304. </Dataset>
  305. </cp_checkboxList>
  306. </Layout>
  307. </Layouts>
  308. </Div>
  309. <Div id="grp_btn" position="absolute 0 757 1195 784" style="">
  310. <Layouts>
  311. <Layout>
  312. <Button id="btn_init" class="btn4_letter3" position="absolute 1115 5 1183 27" style="" text="초기화" onclick="grp_btn_btn_init_onclick" />
  313. <Shape id="line9" class="line_6" linetype="horizontal" position="absolute 0 0 1194 3" style="" anchor="default" />
  314. <Button id="btn_nextpage" class="btn4_letter5" visible="false" position="absolute 1015 5 1107 27" style="" text="다음페이지" onclick="grp_btn_btn_nextpage_onclick" />
  315. </Layout>
  316. </Layouts>
  317. </Div>
  318. </Layout>
  319. </Layouts>
  320. <Objects>
  321. <Dataset id="ds_main_list2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  322. <ColumnInfo>
  323. <Column id="clod" type="STRING" size="256" />
  324. </ColumnInfo>
  325. <Rows>
  326. <Row>
  327. <Col id="clod"></Col>
  328. </Row>
  329. </Rows>
  330. </Dataset>
  331. <Dataset id="ds_init_P0131list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  332. <ColumnInfo />
  333. </Dataset>
  334. <Dataset id="ds_hidden_base" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  335. <ColumnInfo>
  336. <Column id="basedd" type="STRING" size="256" />
  337. </ColumnInfo>
  338. <Rows>
  339. <Row>
  340. <Col id="basedd"></Col>
  341. </Row>
  342. </Rows>
  343. </Dataset>
  344. <Dataset id="ds_hidden_sppmc02500_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  345. <ColumnInfo>
  346. <Column id="srchcond" type="STRING" size="256" />
  347. <Column id="pid" type="STRING" size="256" />
  348. <Column id="hngnm" type="STRING" size="256" />
  349. <Column id="rrgstno1" type="STRING" size="256" />
  350. <Column id="rrgstno2" type="STRING" size="256" />
  351. </ColumnInfo>
  352. <Rows>
  353. <Row>
  354. <Col id="srchcond"></Col>
  355. <Col id="pid"></Col>
  356. <Col id="hngnm"></Col>
  357. <Col id="rrgstno1"></Col>
  358. <Col id="rrgstno2"></Col>
  359. </Row>
  360. </Rows>
  361. </Dataset>
  362. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  363. <ColumnInfo>
  364. <Column id="updt" type="STRING" size="256" />
  365. </ColumnInfo>
  366. </Dataset>
  367. <Dataset id="ds_hidden_sppmc02500" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  368. <ColumnInfo />
  369. </Dataset>
  370. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  371. <ColumnInfo />
  372. </Dataset>
  373. <Dataset id="ds_init_P0008list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  374. <ColumnInfo />
  375. </Dataset>
  376. <Dataset id="ds_init_P0151list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  377. <ColumnInfo />
  378. </Dataset>
  379. <Dataset id="ds_send_mech" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  380. <ColumnInfo>
  381. <Column id="calcscorcd" type="STRING" size="256" />
  382. <Column id="edicd" type="STRING" size="256" />
  383. <Column id="insukind" type="STRING" size="256" />
  384. <Column id="ediunitcost" type="STRING" size="256" />
  385. <Column id="ediunitcostcond" type="STRING" size="256" />
  386. </ColumnInfo>
  387. <Rows>
  388. <Row>
  389. <Col id="calcscorcd"></Col>
  390. <Col id="edicd"></Col>
  391. <Col id="insukind"></Col>
  392. <Col id="ediunitcost"></Col>
  393. <Col id="ediunitcostcond"></Col>
  394. </Row>
  395. </Rows>
  396. </Dataset>
  397. <Dataset id="ds_init_P0131list_P0131" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  398. <ColumnInfo>
  399. <Column id="cdnm" type="STRING" size="256" />
  400. <Column id="cdid" type="STRING" size="256" />
  401. </ColumnInfo>
  402. <Rows>
  403. <Row>
  404. <Col id="cdnm"></Col>
  405. <Col id="cdid"></Col>
  406. </Row>
  407. </Rows>
  408. </Dataset>
  409. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  410. <ColumnInfo>
  411. <Column id="clod" type="STRING" size="256" />
  412. </ColumnInfo>
  413. </Dataset>
  414. <Dataset id="ds_hidden_smpic00200_judgsrch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  415. <ColumnInfo>
  416. <Column id="con1_dd" type="STRING" size="256" />
  417. <Column id="con2_gsflag" type="STRING" size="256" />
  418. <Column id="con3_search1" type="STRING" size="256" />
  419. <Column id="con4_search2" type="STRING" size="256" />
  420. <Column id="con5_insu" type="STRING" size="256" />
  421. <Column id="con6_calcscorcd" type="STRING" size="256" />
  422. <Column id="con7_todd" type="STRING" size="256" />
  423. <Column id="con8_instcd" type="STRING" size="256" />
  424. </ColumnInfo>
  425. </Dataset>
  426. <Dataset id="ds_hidden_base_list2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  427. <ColumnInfo />
  428. </Dataset>
  429. <Dataset id="ds_hidden_smpic00200" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  430. <ColumnInfo />
  431. </Dataset>
  432. <Dataset id="ds_init_P0008list_P0008" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  433. <ColumnInfo>
  434. <Column id="cdnm" type="STRING" size="256" />
  435. <Column id="cdid" type="STRING" size="256" />
  436. </ColumnInfo>
  437. <Rows>
  438. <Row>
  439. <Col id="cdnm"></Col>
  440. <Col id="cdid"></Col>
  441. </Row>
  442. </Rows>
  443. </Dataset>
  444. <Dataset id="ds_send_clod" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  445. <ColumnInfo>
  446. <Column id="clamym" type="STRING" size="256" />
  447. <Column id="srchflag" type="STRING" size="256" />
  448. <Column id="insukind" type="STRING" size="256" />
  449. <Column id="pid" type="STRING" size="256" />
  450. <Column id="calcscorcd" type="STRING" size="256" />
  451. <Column id="edicd" type="STRING" size="256" />
  452. <Column id="offset" type="STRING" size="256" />
  453. <Column id="pagesize" type="STRING" size="256" />
  454. </ColumnInfo>
  455. <Rows>
  456. <Row>
  457. <Col id="clamym"></Col>
  458. <Col id="srchflag"></Col>
  459. <Col id="insukind"></Col>
  460. <Col id="pid"></Col>
  461. <Col id="calcscorcd"></Col>
  462. <Col id="edicd"></Col>
  463. <Col id="offset"></Col>
  464. <Col id="pagesize">50</Col>
  465. </Row>
  466. </Rows>
  467. </Dataset>
  468. <Dataset id="ds_init_P0151list_P0151" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  469. <ColumnInfo>
  470. <Column id="cdnm" type="STRING" size="256" />
  471. <Column id="cdid" type="STRING" size="256" />
  472. </ColumnInfo>
  473. <Rows>
  474. <Row>
  475. <Col id="cdnm"></Col>
  476. <Col id="cdid"></Col>
  477. </Row>
  478. </Rows>
  479. </Dataset>
  480. <Dataset id="ds_main_patinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  481. <ColumnInfo>
  482. <Column id="patinfolist" type="STRING" size="256" />
  483. </ColumnInfo>
  484. <Rows>
  485. <Row>
  486. <Col id="patinfolist"></Col>
  487. </Row>
  488. </Rows>
  489. </Dataset>
  490. <Dataset id="ds_hidden_base_list2_clod" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  491. <ColumnInfo>
  492. <Column id="orddd" type="STRING" size="256" />
  493. <Column id="ioflag" type="STRING" size="256" />
  494. <Column id="insukind" type="STRING" size="256" />
  495. <Column id="pid" type="STRING" size="256" />
  496. <Column id="refresh" type="STRING" size="256" />
  497. </ColumnInfo>
  498. <Rows>
  499. <Row>
  500. <Col id="orddd"></Col>
  501. <Col id="ioflag"></Col>
  502. <Col id="insukind"></Col>
  503. <Col id="pid"></Col>
  504. <Col id="refresh"></Col>
  505. </Row>
  506. </Rows>
  507. </Dataset>
  508. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  509. <ColumnInfo />
  510. </Dataset>
  511. <Dataset id="ds_main_list1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  512. <ColumnInfo>
  513. <Column id="mech" type="STRING" size="256" />
  514. </ColumnInfo>
  515. <Rows>
  516. <Row>
  517. <Col id="mech"></Col>
  518. </Row>
  519. </Rows>
  520. </Dataset>
  521. </Objects>
  522. <Bind>
  523. <BindItem id="item0" compid="grp_biz.grp_mechsrch.ipt_calcscorcd" propid="value" datasetid="ds_send_mech" columnid="calcscorcd" />
  524. <BindItem id="item1" compid="grp_biz.grp_mechsrch.ipt_edicd" propid="value" datasetid="ds_send_mech" columnid="edicd" />
  525. <BindItem id="item2" compid="grp_biz.grp_mechsrch.cmb_mechinsukind" propid="value" datasetid="ds_send_mech" columnid="insukind" />
  526. <BindItem id="item3" compid="grp_biz.grp_mechsrch.opt_mechinsukind" propid="value" datasetid="ds_send_mech" columnid="insukind" />
  527. <BindItem id="item4" compid="grp_biz.grp_mechsrch.inp_ediunitcost" propid="value" datasetid="ds_send_mech" columnid="ediunitcost" />
  528. <BindItem id="item5" compid="grp_biz.grp_mechsrch.cmb_ediunitcostcond" propid="value" datasetid="ds_send_mech" columnid="ediunitcostcond" />
  529. <BindItem id="item6" compid="grp_biz.grp_ordsrch.ipt_fromdd" propid="value" datasetid="ds_send_clod" columnid="clamym" />
  530. <BindItem id="item7" compid="grp_biz.grp_ordsrch.rdo_srchflag" propid="value" datasetid="ds_send_clod" columnid="srchflag" />
  531. <BindItem id="item8" compid="grp_biz.grp_ordsrch.cmb_clodinsukind" propid="value" datasetid="ds_send_clod" columnid="insukind" />
  532. <BindItem id="item9" compid="grp_biz.grp_ordsrch.opt_clodnsukind" propid="value" datasetid="ds_send_clod" columnid="insukind" />
  533. <BindItem id="item10" compid="grp_biz.grp_ordsrch.ipt_pid" propid="value" datasetid="ds_send_clod" columnid="pid" />
  534. <BindItem id="item11" compid="grp_biz.chk_refresh" propid="value" datasetid="ds_hidden_base_list2_clod" columnid="refresh" />
  535. </Bind>
  536. <Script type="xscript4.0"><![CDATA[function SMPID21200_onload(obj:Form, e:LoadEventInfo) {
  537. frmf_initForm(obj);
  538. //grdf_initGrid(grd_XXX);
  539. //grdf_setGridSort(grd_XXX);
  540. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  541. var today = new Date();
  542. var baseyear = today.getDateFormat("YYYY"); // (dateHelper.js)에서 제공하는 함수를 사용하여 해당 년를 구한다.
  543. var basemonth = today.getDateFormat("MM");
  544. var currentym = baseyear + basemonth;
  545. ds_hidden_base.setColumn( 0, "basedd", currentym);
  546. ds_send_clod.setColumn( 0, "clamym", currentym);
  547. grp_biz.grp_mechsrch.ipt_calcscorcd.attribute("_chartype") = "upper"; // (tfHelper.js) 대문자로 입력을 제한한다.
  548. grp_biz.grp_mechsrch.ipt_edicd.attribute("_chartype") = "upper"; // (tfHelper.js) 대문자로 입력을 제한한다.
  549. // 공통코드를 조회한다.
  550. // (ZBC001.js) com.ZBCMCODE에서 기초코드 값을 가져와서 Combo 컨트롤 item으로 설정하기 위해 사용한다.
  551. var arrParam = [ {dsNm: "ds_init_P0008list", "ds_init_P0131list", "ds_init_P0151list",
  552. cdGrpId: "P0008", "P0131", "P0151" } ];
  553. appf_getCodeList(arrParam, );
  554. // (PAM.js) submission id="TRPAM00101" 를 사용하여 진료과 / 의사명 Combo item을 가져온다.
  555. pamGetDeptCDDrIDList();
  556. fInitializeAll(); // 화면을 초기화한다.
  557. fCheckAuth(); // 화면 권한을 설정한다.
  558. }
  559. include '../../.._com_commonweb_js_common.js'
  560. include '../../.._com_commonweb_js_dateHelper.js'
  561. include '../../.._com_commonweb_js_stringHelper.js'
  562. include '../../.._com_commonweb_js_tfHelper.js'
  563. include '../../.._com_basiccodeweb_js_ZBC001.js'
  564. include '../../.._pam_pamcomnweb_js_PAM.js'
  565. // 화면 권한을 설정한다.
  566. function fCheckAuth() {
  567. var xAuth = !frmf_checkAuth("X"); // 처리권한(입력, 수정, 삭제 등)
  568. grp_biz.btn_batupdt.disabled = xAuth;
  569. grp_biz.grd_mechmast.disabled = xAuth;
  570. grp_biz.grd_clodhist.disabled = xAuth;
  571. var pAuth = !frmf_checkAuth("P"); // 출력권한(보고서 출력, 엑셀 내려받기 등)
  572. grp_biz.btn_excelsave.disabled = pAuth;
  573. }
  574. // 처방용 조회 조건과 조회Btn disabled 상태 설정
  575. function fSetAuthGrpOrdsrch(isDisabled) {
  576. grp_biz.grp_ordsrch.ipt_fromdd.disabled = isDisabled;
  577. grp_biz.grp_ordsrch.rdo_srchflag.disabled = isDisabled;
  578. grp_biz.grp_ordsrch.cmb_clodinsukind.disabled = isDisabled;
  579. grp_biz.grp_ordsrch.ipt_pid.disabled = isDisabled;
  580. grp_biz.grp_ordsrch.btn_ordsrch.disabled = isDisabled;
  581. grp_btn.btn_nextpage.disabled = isDisabled;
  582. }
  583. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  584. function fInitializeAll() {
  585. // 수가코드 부분을 초기화한다.
  586. ds_send_mech.clearData(); ds_send_mech.addRow();
  587. ds_main_list1_mech.clearData();
  588. ds_send_mech.setColumn( 0, "ediunitcostcond", "2"); // 단가 조회 기준 (2: 원이상)
  589. fInitOrdSrch(true); // 처방목록, 조건 초기화
  590. //model.refresh();
  591. }
  592. // 처방목록 부분을 초기화한다.
  593. function fInitOrdSrch(isCond) {
  594. ds_main_list2_clod.clearData();
  595. if (isCond) { // 처방목록 조건 초기화
  596. ds_send_clod.clearData(); ds_send_clod.addRow();
  597. ds_send_clod.setColumn( 0, "srchflag", "-"); // 검색구분 Radio의 초기값을 설정한다.
  598. // 검색 청구월표시
  599. var clamym = ds_hidden_base.getColumn(0, "basedd");
  600. ds_send_clod.setColumn( 0, "clamym", clamym);
  601. }
  602. // 처방용 조회 조건과 조회Btn disabled 상태 설정
  603. fSetAuthGrpOrdsrch(true);
  604. }
  605. // 코드목록 "조회" 버튼을 누르면 수가마스터에서 코드목록을 조회한다.
  606. function fGetMechMastList() {
  607. var calcscorcd = ds_send_mech.getColumn(0, "calcscorcd");
  608. var edicd = ds_send_mech.getColumn(0, "edicd");
  609. ds_send_clod.setColumn( 0, "calcscorcd", calcscorcd);
  610. ds_send_clod.setColumn( 0, "edicd", edicd);
  611. if (calcscorcd || edicd) {
  612. fSetAuthGrpOrdsrch(true); // 처방용 조회 조건과 조회Btn disabled 상태 설정
  613. fInitOrdSrch(false); // 처방목록 초기화
  614. ds_main_list1_mech.clearData();
  615. // submit("TRPID21201");
  616. var oParam = {};
  617. oParam.id = "TRPID21201";
  618. oParam.service = "aftjudgapp.CdBatUpdt";
  619. oParam.method = "reqGetMechMastList";
  620. oParam.inds = "req=ds_";
  621. oParam.outds = "ds_=mech";
  622. oParam.async = false;
  623. oParam.callback = "cf_TRPID21201";
  624. tranf_submit(oParam);
  625. /*
  626. function cf_TRPID21201(sSvcId, nErrorCode, sErrorMsg) {
  627. if(nErrorCode < 0) return;
  628. }
  629. function cf_TRPID21201(sSvcId, nErrorCode, sErrorMsg) {
  630. arErrorCode.push(sSvcId, nErrorCode);
  631. }
  632. arErrorCode.pop("TRPID21201") > -1
  633. arErrorCode.pop("TRPID21201") < 0
  634. */
  635. if (ds_main_list1_mech.getColumn(0, "calcscorcd")) {
  636. if (ds_main_list1_mech.getColumn(0, "grupsnglflag") == "S") {
  637. fSetAuthGrpOrdsrch(false); // 처방용 조회 조건과 조회Btn disabled 상태 설정
  638. if (ds_send_mech.getColumn(0, "insukind")) { // 보험유형 조건이 입력된 경우
  639. grp_biz.grp_ordsrch.cmb_clodinsukind.enable = false;
  640. }
  641. } else {
  642. sysf_messageBox("그룹코드는 코드일괄수정을 할 수", "I004"); ///그룹코드는 코드일괄수정을 할 수 없습니다.
  643. }
  644. }
  645. grp_biz.grd_mechmast.row = 0;
  646. } else {
  647. sysf_messageBox("수가코드 또는 EDI코드는", "I003"); ///수가코드 또는 EDI코드는 필수입력입니다.
  648. return;
  649. }
  650. }
  651. // 처방목록 "조회" 버튼을 누르면 처방 테이블에서 해당 수가코드를 가진 처방을 조회한다.
  652. function fGetOrdHistList(nextyn) {
  653. if (fCheckOrdSrchCond()) { // 처방목록 조회조건 체크
  654. ds_main_list2_clod.clearData(); // 처방목록 Grid 초기화
  655. if (nextyn == "Y") {
  656. // 조회버튼으로 조회 시 offset은 "0"으로 설정하고 submit() 을 수행한다.
  657. ds_send_clod.setColumn( 0, "offset", "0");
  658. } else {
  659. // 다음페이지버튼으로 조회 시 offset은 마지막clamkey"으로 설정하고 submit() 을 수행한다.
  660. ds_send_clod.setColumn( 0, "offset", "0");
  661. }
  662. ds_send_clod.setColumn( 0, "calcscorcd", ds_send_mech.getColumn(0, "calcscorcd"));
  663. ds_send_clod.setColumn( 0, "edicd", ds_send_mech.getColumn(0, "edicd"));
  664. // 페이지 단위 조회시 기존 조회조건이 변경되었는지 체크한다.
  665. ds_hidden_clod.copyData(ds_send_clod);
  666. //setAlertOn();
  667. // submit("TRPID21202");
  668. var oParam = {};
  669. oParam.id = "TRPID21202";
  670. oParam.service = "aftjudgapp.CdBatUpdt";
  671. oParam.method = "reqGetClodHistList";
  672. oParam.inds = "req=ds_";
  673. oParam.outds = "ds_=clod";
  674. oParam.async = false;
  675. oParam.callback = "cf_TRPID21202";
  676. tranf_submit(oParam);
  677. /*
  678. function cf_TRPID21202(sSvcId, nErrorCode, sErrorMsg) {
  679. if(nErrorCode < 0) return;
  680. }
  681. function cf_TRPID21202(sSvcId, nErrorCode, sErrorMsg) {
  682. arErrorCode.push(sSvcId, nErrorCode);
  683. }
  684. arErrorCode.pop("TRPID21202") > -1
  685. arErrorCode.pop("TRPID21202") < 0
  686. */
  687. if (instance1.selectSingleNode("ds_main_list2_clod") == null) {
  688. sysf_messageBox("조회된 결과가", "I004"); ///조회된 결과가 없습니다.
  689. return;
  690. } else {
  691. for (var i = 1; i < grp_biz.grd_mechmast.rows; i++) {
  692. var calcscorcd = ds_main_list1_mech.getColumn(i, "calcscorcd");
  693. var fromdd = ds_main_list1_mech.getColumn(i, "fromdd");
  694. var todd = ds_main_list1_mech.getColumn(i, "todd");
  695. for (var j = 1; j < grp_biz.grd_clodhist.rows; j++) {
  696. var snglcalcscorcd = ds_main_list2_clod.getColumn(j, "snglcalcscorcd");
  697. if (snglcalcscorcd == calcscorcd) {
  698. var orddd = ds_main_list2_clod.getColumn(j, "orddd");
  699. var ordfromdd = ds_main_list2_clod.getColumn(j, "ordfromdd");
  700. var ordtodd = ds_main_list2_clod.getColumn(j, "ordtodd");
  701. // if (fromdd <= ordfromdd && ordfromdd <= todd) {
  702. // if (fromdd >= ordfromdd && fromdd <= ordtodd) {
  703. if (todd >= ordfromdd && todd <= ordtodd) { // 수가종료일자가 처방from~to 사이라면 중간에 수가코드가 종결되고 바뀐 것이므로
  704. ds_main_list2.setColumn( j , "mode", "u");
  705. grp_biz.grd_clodhist.rowStatus(j) = 2;
  706. }
  707. }
  708. var estmmncd = ds_main_list2_clod.getColumn(j, "estmmncd");
  709. if (estmmncd == "-") { // 초기값 '0000' 셋팅 전에 입력된 data 오류로 인해
  710. ds_main_list2.setColumn( j , "estmmncd", "");
  711. }
  712. }
  713. }
  714. }
  715. grp_biz.grd_clodhist.row = 0;
  716. }
  717. }
  718. // 처방목록 조회조건 체크
  719. function fCheckOrdSrchCond() {
  720. // 검색기간(fromdd ~ todd)을 확인한다.
  721. var clamym = ds_send_clod.getColumn(0, "clamym");
  722. if (clamym == "") {
  723. sysf_messageBox("청구월은", "I003"); ///청구월은 필수입력입니다.
  724. return false;
  725. }
  726. return true;
  727. }
  728. // 검색구분(입원_외래), 보험유형, 등록번호 필터링 적용
  729. function fGetSelectedOrderData() {
  730. //var orddd = ds_hidden_base_list2_clod.getColumn(0, "orddd");
  731. var ioflag = ds_hidden_base_list2_clod.getColumn(0, "ioflag");
  732. var insukind = ds_hidden_base_list2_clod.getColumn(0, "insukind");
  733. var pid = ds_hidden_base_list2_clod.getColumn(0, "pid");
  734. var selCon = "";
  735. /*
  736. if (orddd) {
  737. selCon += orddd;
  738. }
  739. if (ioflag) {
  740. if (selCon) {
  741. selCon += " and " + ioflag;
  742. } else {
  743. selCon += ioflag;
  744. }
  745. }
  746. */
  747. if (ioflag) {
  748. selCon = ioflag;
  749. }
  750. if (insukind) {
  751. if (selCon) {
  752. selCon += " and " + insukind;
  753. } else {
  754. selCon = insukind;
  755. }
  756. }
  757. if (pid) {
  758. if (selCon) {
  759. selCon += " and " + pid;
  760. } else {
  761. selCon = pid;
  762. }
  763. }
  764. if (selCon) {
  765. grp_biz.grd_clodhist.attribute("nodeset") = "ds_main_list2_clod[" + selCon + "]";
  766. } else {
  767. grp_biz.grd_clodhist.attribute("nodeset") = "ds_main_list2_clod";
  768. }
  769. grp_biz.grd_clodhist.rebuild();
  770. //grp_biz.grd_clodhist.resizeCells();
  771. grp_biz.grd_clodhist.row = 0; // 그리드의 첫줄부터 표시되도록 포커스를 0으로 설정한다.
  772. }
  773. function grp_biz_grp_mechsrch_ipt_calcscorcd_onkeydown(obj:Edit, e:KeyEventInfo) {
  774. if (event.keyCode == "13") { // Enter 입력 시에
  775. if (grp_biz.grp_mechsrch.ipt_calcscorcd.text.length > 1) { // 2글자 이상이면
  776. obj.updateToDataset(); // (tfHelper.js) 현재 인풋값 노드 반영
  777. fGetMechMastList(); // 코드목록 "조회" 버튼을 누르면 수가마스터에서 코드목록을 조회한다.
  778. }
  779. }
  780. }
  781. function grp_biz_grp_mechsrch_ipt_calcscorcd_onlbuttonup(obj:Edit, e:MouseEventInfo) {
  782. // // 검색기간 시작일 또는 종료일이 입력된 경우 해당 날짜를 수가조회 기준일자로 설정
  783. // var fromdd = ds_send_clod.getColumn(0, "fromdd");
  784. // var todd = ds_send_clod.getColumn(0, "todd");
  785. // if (fromdd) {
  786. // ds_hidden_smpic00200_judgsrch.setColumn( 0, "con1_dd", fromdd);
  787. // }
  788. // if (todd) {
  789. // ds_hidden_smpic00200_judgsrch.setColumn( 0, "con1_dd", todd);
  790. // }
  791. // if (fromdd == "" && todd == "") {
  792. // ds_hidden_smpic00200_judgsrch.setColumn( 0, "con1_dd", utlf_getCurrentDate()); // (dateHelper.js) 현재날짜 반환
  793. // }
  794. // 보험유형을 설정한다.
  795. var insukindcd = ds_send_mech.getColumn(0, "insukind");
  796. if (insukindcd == "11") {
  797. ds_hidden_smpic00200_judgsrch.setColumn( 0, "con5_insu", "insu");
  798. }
  799. else if (insukindcd == "21" || insukindcd == "22") {
  800. ds_hidden_smpic00200_judgsrch.setColumn( 0, "con5_insu", "proc");
  801. }
  802. else if (insukindcd == "31" || insukindcd == "32") {
  803. ds_hidden_smpic00200_judgsrch.setColumn( 0, "con5_insu", "indus");
  804. }
  805. else if (insukindcd == "41") {
  806. ds_hidden_smpic00200_judgsrch.setColumn( 0, "con5_insu", "autm");
  807. }
  808. // 코드 종류와 현재 input 컨트롤에 입력된 코드 값을 전달한다.
  809. ds_hidden_smpic00200_judgsrch.setColumn( 0, "con3_search1", "calcscorcd");
  810. ds_hidden_smpic00200_judgsrch.setColumn( 0, "con4_search2", ds_send_mech.getColumn(0, "calcscorcd"));
  811. // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로를 초기화한다.
  812. ds_hidden_smpic00200_rslt_mech.clearData();
  813. ds_hidden_smpic00200_rslt_picmmech.clearData();
  814. frmf_modal("SMPIC00200", "SMPIC00200", "root_hidden_smpic00200""-"ds_temp"", "", "1", "150", "150", "", "", "", "", "", "M");
  815. var mechSelect = instance1.selectSingleNode("ds_temp_mech");
  816. if (mechSelect == null) { // 선택한 코드가 없는 경우
  817. sysf_messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
  818. return;
  819. }
  820. // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
  821. dsf_makeValue( ds_hidden_smpic00200_rslt, "picmmech", "string", "" );
  822. ds_hidden_smpic00200_rslt_picmmech.copyData(ds_temp_picmmech);
  823. ds_temp.clearData(); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
  824. ds_send_mech.setColumn( 0, "calcscorcd", ds_hidden_smpic00200_rslt_picmmech.getColumn(0, "picmmech_calcscorcd"));
  825. //model.refresh();
  826. }
  827. function grp_biz_grp_mechsrch_ipt_edicd_onkeydown(obj:Edit, e:KeyEventInfo) {
  828. if (event.keyCode == "13") { // Enter 입력 시에
  829. if (grp_biz.grp_mechsrch.ipt_edicd.text.length > 1) { // 2글자 이상이면
  830. obj.updateToDataset(); // (tfHelper.js) 현재 인풋값 노드 반영
  831. fGetMechMastList(); // 코드목록 "조회" 버튼을 누르면 수가마스터에서 코드목록을 조회한다.
  832. }
  833. }
  834. }
  835. function grp_biz_grp_mechsrch_ipt_edicd_onlbuttonup(obj:Edit, e:MouseEventInfo) {
  836. // 검색기간 시작일 또는 종료일이 입력된 경우 해당 날짜를 수가조회 기준일자로 설정
  837. // var fromdd = ds_send_clod.getColumn(0, "fromdd");
  838. // var todd = ds_send_clod.getColumn(0, "todd");
  839. // if (fromdd) {
  840. // ds_hidden_smpic00200_judgsrch.setColumn( 0, "con1_dd", fromdd);
  841. // }
  842. // if (todd) {
  843. // ds_hidden_smpic00200_judgsrch.setColumn( 0, "con1_dd", todd);
  844. // }
  845. // if (fromdd == "" && todd == "") {
  846. // modaael.setValue("ds_hidden_smpic00200_judgsrch_con1_dd", utlf_getCurrentDate()); // (dateHelper.js) 현재날짜 반환
  847. // }
  848. // 보험유형을 설정한다.
  849. var insukindcd = ds_send_mech.getColumn(0, "insukind");
  850. if (insukindcd == "11") {
  851. ds_hidden_smpic00200_judgsrch.setColumn( 0, "con5_insu", "insu");
  852. }
  853. else if (insukindcd == "21" || insukindcd == "22") {
  854. ds_hidden_smpic00200_judgsrch.setColumn( 0, "con5_insu", "proc");
  855. }
  856. else if (insukindcd == "31" || insukindcd == "32") {
  857. ds_hidden_smpic00200_judgsrch.setColumn( 0, "con5_insu", "indus");
  858. }
  859. else if (insukindcd == "41") {
  860. ds_hidden_smpic00200_judgsrch.setColumn( 0, "con5_insu", "autm");
  861. }
  862. // 코드 종류와 현재 input 컨트롤에 입력된 코드 값을 전달한다.
  863. ds_hidden_smpic00200_judgsrch.setColumn( 0, "con3_search1", "edicd");
  864. ds_hidden_smpic00200_judgsrch.setColumn( 0, "con4_search2", ds_send_mech.getColumn(0, "edicd"));
  865. // SMPIC00200_수가조회 에서 선택된 결과가 copyNode되는 경로를 초기화한다.
  866. ds_hidden_smpic00200_rslt_mech.clearData();
  867. ds_hidden_smpic00200_rslt_picmmech.clearData();
  868. frmf_modal("SMPIC00200", "SMPIC00200", "root_hidden_smpic00200""-"ds_temp"", "", "1", "150", "150", "", "", "", "", "", "M");
  869. var mechSelect = instance1.selectSingleNode("ds_temp_mech");
  870. if (mechSelect == null) { // 선택한 코드가 없는 경우
  871. sysf_messageBox("수가조회 화면에서 선택한 결과가", "I004"); ///수가조회 화면에서 선택한 결과가 없습니다.
  872. return;
  873. }
  874. // SMPIC00200_수가조회 화면에서 보낸 결과 값에 대한 처리
  875. dsf_makeValue( ds_hidden_smpic00200_rslt, "mech", "string", "" );
  876. ds_hidden_smpic00200_rslt_mech.copyData(ds_temp_mech);
  877. ds_temp.clearData(); // SMPIC00200_수가조회 에서 선택된 결과가 직접 전달되는 경로임
  878. if (insukindcd == "11") {
  879. ds_send_mech.setColumn( 0, "edicd", ds_hidden_smpic00200_rslt_mech.getColumn(0, "insuedicd"));
  880. }
  881. else if (insukindcd == "21" || insukindcd == "22") {
  882. ds_send_mech.setColumn( 0, "edicd", ds_hidden_smpic00200_rslt_mech.getColumn(0, "procedicd"));
  883. }
  884. else if (insukindcd == "31" || insukindcd == "32") {
  885. ds_send_mech.setColumn( 0, "edicd", ds_hidden_smpic00200_rslt_mech.getColumn(0, "inducsedicd"));
  886. }
  887. else if (insukindcd == "41") {
  888. ds_send_mech.setColumn( 0, "edicd", ds_hidden_smpic00200_rslt_mech.getColumn(0, "autmbedicd"));
  889. } else {
  890. ds_send_mech.setColumn( 0, "edicd", ds_hidden_smpic00200_rslt_mech.getColumn(0, "insuedicd"));
  891. }
  892. //model.refresh();
  893. }
  894. function grp_biz_grp_mechsrch_cmb_mechinsukind_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  895. var clodList = instance1.selectSingleNode("ds_main_list2_clod");
  896. if (clodList == null) { // 조회된 처방이 없다면
  897. grp_biz.grp_ordsrch.cmb_clodinsukind.select(grp_biz.grp_mechsrch.cmb_mechinsukind.focusIndex);
  898. }
  899. }
  900. function grp_biz_grp_mechsrch_btn_mechsrch_onclick(obj:Button, e:ClickEventInfo) {
  901. fGetMechMastList(); // 코드목록 "조회" 버튼을 누르면 수가마스터에서 코드목록을 조회한다.
  902. }
  903. function grp_biz_grd_mechmast_oncopy {
  904. grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
  905. }
  906. function grp_biz_grp_ordsrch_rdo_srchflag_onitemclick(obj:Radio, e:RadioMouseEventInfo) {
  907. if (instance1.selectSingleNode("ds_main_list2_clod") != null) { // 처방목록이 조회된 상태임.
  908. var selectedRdoItem = ds_send_clod.getColumn(0, "srchflag");
  909. if (selectedRdoItem == "" || selectedRdoItem == "-") { // 전체
  910. ds_hidden_base_list2_clod.setColumn( 0, "ioflag","");
  911. } else {
  912. ds_hidden_base_list2_clod.setColumn( 0, "ioflag","ioflag = '"+selectedRdoItem+"'");
  913. }
  914. fGetSelectedOrderData(); // 검색구분(입원_외래), 보험유형, 등록번호 필터링 적용
  915. }
  916. }
  917. function grp_biz_grp_ordsrch_cmb_clodinsukind_onitemclick(obj:Combo, e:ListBoxClickEventInfo) {
  918. if (instance1.selectSingleNode("ds_main_list2_clod") != null) { // 처방목록이 조회된 상태임.
  919. var selectedCmbItem = ds_send_clod.getColumn(0, "insukind");
  920. if (selectedCmbItem == "" || selectedCmbItem == "-") { // 전체
  921. ds_hidden_base_list2_clod.setColumn( 0, "insukind","");
  922. } else {
  923. ds_hidden_base_list2_clod.setColumn( 0, "insukind","insukind = '"+selectedCmbItem+"'");
  924. }
  925. fGetSelectedOrderData(); // 검색구분(입원_외래), 보험유형, 등록번호 필터링 적용
  926. }
  927. }
  928. function grp_biz_grp_ordsrch_ipt_pid_onlbuttonup(obj:MaskEdit, e:MouseEventInfo) {
  929. var ipt_pid = ds_send_clod.getColumn(0, "pid");
  930. if (grp_biz.grp_ordsrch.ipt_pid) {
  931. ds_hidden_sppmc02500_cond.setColumn( 0, "srchcond", "1"); // 검색조건 : 등록번호로 설정
  932. ds_hidden_sppmc02500_cond.setColumn( 0, "pid", grp_biz.grp_ordsrch.ipt_pid);
  933. } else {
  934. ds_hidden_sppmc02500_cond.clearData(); ds_hidden_sppmc02500_cond.addRow();
  935. }
  936. frmf_modal("SPPMC02500", "SPPMC02500", "ds_hidden_sppmc02500_cond""-"ds_send"", "", "1", "150", "150", "", "", "", "", "", "M");
  937. var srch_pid = ds_main_patinfo_patinfolist.getColumn(0, "pid");
  938. if (srch_pid) { // SPPMC02500_환자조회 화면에서 조회한 경우임
  939. ds_main_patinfo_patinfolist.clearData(); // patinfolist가 제거됨 (resetInstanceNode의 경우 값은 지우고 노드는 남아있음)
  940. dsf_makeValue( ds_main_patinfo, "patinfolist", "string", "" ); // SPPMC02500_환자조회 팝업을 다시 조회할 경우를 위해 다시 노드를 추가함
  941. ds_send_clod.setColumn( 0, "pid", srch_pid);
  942. }
  943. //model.refresh();
  944. }
  945. function grp_biz_grp_ordsrch_ipt_pid_onkillfocus(obj:MaskEdit, e:KillFocusEventInfo) {
  946. var pid = ds_send_clod.getColumn(0, "pid");
  947. // if (pid != "" && pid.length < 8) {
  948. // ds_send_clod.setColumn( 0, "pid", pid.getLeftPad(8, "0")); // (stringHelper.js) 저장된 숫자 값에 원하는 길이만큼 '0'을 붙여 표현
  949. //
  950. //model.refresh();
  951. // }
  952. if (instance1.selectSingleNode("ds_main_list2_clod") != null) { // 처방목록이 조회된 상태임.
  953. var inputPid = ds_send_clod.getColumn(0, "pid");
  954. if (inputPid == "" || inputPid == "-") { // 전체
  955. ds_hidden_base_list2_clod.setColumn( 0, "pid","");
  956. } else {
  957. ds_hidden_base_list2_clod.setColumn( 0, "pid","pid = '" + pid + "'");
  958. }
  959. fGetSelectedOrderData(); // 검색구분(입원_외래), 보험유형, 등록번호 필터링 적용
  960. }
  961. }
  962. function grp_biz_grp_ordsrch_ipt_pid_onkeydown(obj:MaskEdit, e:KeyEventInfo) {
  963. if (event.keyCode == "13") { // Enter 입력 시에
  964. obj.updateToDataset(); // (tfHelper.js) 현재 인풋값 노드 반영
  965. if (instance1.selectSingleNode("ds_main_list2_clod") != null) { // 처방목록이 조회된 상태임.
  966. var pid = ds_send_clod.getColumn(0, "pid");
  967. if (pid == "") {
  968. ds_hidden_base_list2_clod.setColumn( 0, "pid","");
  969. } else {
  970. // if (pid.length < 8) {
  971. // ds_send_clod.setColumn( 0, "pid", pid.getLeftPad(8, "0")); // (stringHelper.js) 저장된 숫자 값에 원하는 길이만큼 '0'을 붙여 표현
  972. //
  973. //model.refresh();
  974. // }
  975. ds_hidden_base_list2_clod.setColumn( 0, "pid","pid = '" + ds_send_clod.getColumn(0, "pid") + "'");
  976. }
  977. fGetSelectedOrderData(); // 검색구분(입원_외래), 보험유형, 등록번호 필터링 적용
  978. }
  979. }
  980. }
  981. function grp_biz_grp_ordsrch_btn_ordsrch_onclick(obj:Button, e:ClickEventInfo) {
  982. fGetOrdHistList("N"); // 처방목록 "조회" 버튼을 누르면 처방 테이블에서 해당 수가코드를 가진 처방을 조회한다.
  983. }
  984. function grp_biz_grd_clodhist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  985. var row = grp_biz.grd_clodhist.row;
  986. var ioflag = ds_main_list2_clod.getColumn(row, "ioflag"));
  987. if (ioflag == "I") {
  988. frmf_setParameter("smpid20300_auth", "11100000");
  989. frmf_modal("SMPID20300", "SMPID20300", "ds_main_list2_clod["+ row +"]_clamym""-"ds_send_item1_clbs_clamym"", "", "1", "10", "10", "", "", "", "", "", "M"); // SMPID20300_입원사후심사관리.xrw
  990. }
  991. else if (ioflag == "O") {
  992. frmf_setParameter("smpid20500_auth", "11100000");
  993. frmf_modal("SMPID20500", "SMPID20500", "ds_main_list2_clod["+ row +"]_clamym""-"ds_send_item1_clbs_clamym"", "", "1", "10", "10", "", "", "", "", "", "M"); // SMPID20500_외래사후심사관리.xrw
  994. }
  995. }
  996. function grp_biz_grd_clodhist_onentercell {
  997. if (grp_biz.grd_clodhist.colType(grp_biz.grd_clodhist.col) == "input") {
  998. grp_biz.grd_clodhist.editCell();
  999. }
  1000. }
  1001. function grp_biz_grd_clodhist_oncopy {
  1002. grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
  1003. }
  1004. function grp_biz_btn_batupdt_onclick(obj:Button, e:ClickEventInfo) {
  1005. alert("업무프로세스 협의후 진행예정");
  1006. /*
  1007. var send = getGridUpdateData(grp_biz.grd_clodhist);
  1008. if (send) {
  1009. ds_send.setColumn( 0, "updt", send);
  1010. // submit("TXPID21201");
  1011. var oParam = {};
  1012. oParam.id = "TXPID21201";
  1013. oParam.service = "aftjudgapp.CdBatUpdt";
  1014. oParam.method = "reqSetOrderCalcScorCd";
  1015. oParam.inds = "updt=ds_";
  1016. oParam.outds = "ds_=clod";
  1017. oParam.async = false;
  1018. oParam.callback = "cf_TXPID21201";
  1019. tranf_submit(oParam);
  1020. /*
  1021. function cf_TXPID21201(sSvcId, nErrorCode, sErrorMsg) {
  1022. if(nErrorCode < 0) return;
  1023. }
  1024. function cf_TXPID21201(sSvcId, nErrorCode, sErrorMsg) {
  1025. arErrorCode.push(sSvcId, nErrorCode);
  1026. }
  1027. arErrorCode.pop("TXPID21201") > -1
  1028. arErrorCode.pop("TXPID21201") < 0
  1029. */
  1030. if (ds_hidden_base_list2_clod.getColumn(0, "refresh") == "Y") {
  1031. grp_biz.grd_clodhist.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  1032. ds_send.setColumn( 0, "updt", "");
  1033. grp_biz.grp_ordsrch.btn_ordsrch.dispatch("DOMActivate"); // ds_send_clod.setColumn( 0, "offset", "0"); 으로 다시 조회함
  1034. }
  1035. } else {
  1036. sysf_messageBox("일괄수정할 처방 목록이", "I004"); ///일괄수정할 처방 목록이 없습니다
  1037. }
  1038. */
  1039. }
  1040. function grp_biz_btn_excelsave_onclick(obj:Button, e:ClickEventInfo) {
  1041. if (grp_biz.grd_clodhist.rows > 1) {
  1042. // var isSave = false;
  1043. // for (var i = grp_biz.grd_clodhist.fixedRows; i < grp_biz.grd_clodhist.rows; i ++ ) {
  1044. // if (grp_biz.grd_clodhist.rowHidden(i) == false) {
  1045. // isSave = true;
  1046. // i = grp_biz.grd_clodhist.rows;
  1047. // }
  1048. // }
  1049. // if (isSave == false) {
  1050. // sysf_messageBox("처방 필터를 변경하세요. 엑셀저장할 처방이", "I004"); ///처방 필터를 변경하세요. 엑셀저장할 처방이 없습니다.
  1051. // return;
  1052. // }
  1053. var fileName = window.fileDialog("save", "", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  1054. if (fileName != "") {
  1055. //datagrid.saveExcel의 7번째 인자 값(boolean) : 그리드의 col type=combo일 경우 엑셀저장내용이 lable 또는 value로 설정 함
  1056. grdf_exportExcel(grp_biz.grd_clodhist, "Sheet1", fileName, false, "" , 'user' , true);
  1057. }
  1058. } else {
  1059. sysf_messageBox("엑셀저장할 처방이", "I004"); ///엑셀저장할 처방이 없습니다.
  1060. }
  1061. }
  1062. function grp_btn_btn_init_onclick(obj:Button, e:ClickEventInfo) {
  1063. fInitializeAll();
  1064. }
  1065. function grp_btn_btn_nextpage_onclick(obj:Button, e:ClickEventInfo) {
  1066. if (grp_biz.grd_clodhist.rows > 1) {
  1067. fGetOrdHistList("Y"); // 처방목록 "조회" 버튼을 누르면 처방 테이블에서 해당 수가코드를 가진 처방을 조회한다.
  1068. }
  1069. }
  1070. ]]></Script>
  1071. </Form>
  1072. </FDL>