SMPIJ02300_중간청구일괄등록관리.xfdl 66 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPIJ02300" position="absolute 0 0 1263 790" titletext="중간청구일괄등록관리" oninit="model1_oninit" onload="SMPIJ02300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_btn" position="absolute 0 753 1256 779" positiontype="position" scrollbars="autoboth" anchor="left right bottom">
  8. <Layouts>
  9. <Layout>
  10. <Static id="Static00" position="absolute 0 -16 275 10" class="sta_DA_box" anchor="default"/>
  11. <Button id="btn_save" class="btn4" position="absolute 986 4 1042 24" anchor="right" text="등록" onlbuttonup="btn_save_onlbuttonup" onclick="btn_save_onclick" positiontype="position"/>
  12. <Button id="btn_init" class="btn4" position="absolute 1185 4 1254 24" anchor="right" text="초기화" onlbuttonup="btn_init_onlbuttonup" onclick="btn_init_onclick" positiontype="position"/>
  13. <Static id="caption17" class="cell_1" position="absolute 3 0 52 24" anchor="default" text="총건수" positiontype="position"/>
  14. <Edit readonly="true" id="output1" position="absolute 53 2 138 22" anchor="default" style="align:right middle;" positiontype="position"/>
  15. <Static id="caption19" class="cell_1" position="absolute 139 0 188 24" anchor="default" text="환자수" positiontype="position"/>
  16. <Edit readonly="true" id="output2" position="absolute 189 2 274 22" anchor="default" style="align:right middle;" positiontype="position"/>
  17. <Button id="btn_cancelsave" taborder="1" text="등록취소" onlbuttonup="btn_cancelsave_onlbuttonup" class="btn4" position="absolute 1044 4 1126 24" anchor="right" enable="false" onclick="btn_cancelsave_onclick" positiontype="position"/>
  18. </Layout>
  19. </Layouts>
  20. </Div>
  21. <Static id="caption6" text="중간청구일괄등록관리" class="tit_1" position="absolute 1 0 201 23" positiontype="position"/>
  22. <Tab id="swt_spclmemo" anchor="all" taborder="1" onchanged="swt_spclmemo_onchanged" tabindex="0" position="absolute 1 25 1257 756">
  23. <Tabpages>
  24. <Tabpage id="case_makemiddleclam" text="중간청구등록" scrollbars="none">
  25. <Layouts>
  26. <Layout width="1256" height="704">
  27. <Div id="group2" taborder="16" style="align:center top;" class="div_SA" position="absolute 0 0 1254 67" anchor="left top right">
  28. <Layouts>
  29. <Layout>
  30. <Static id="caption5" text="보험유형" class="search_name" position="absolute 668 10 742 30"/>
  31. <Static id="caption2" text="등록기준일" class="search_name" position="absolute 8 10 95 30"/>
  32. <Calendar id="ipt_indd" taborder="47" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" onchanged="swt_spclmemo_case_makemiddleclam_group2_ipt_indd_onchanged" class="input_search" position="absolute 95 10 185 30" onkeydown="swt_spclmemo_case_makemiddleclam_group2_ipt_indd_onkeydown"/>
  33. <Combo id="cmb_insukind" taborder="48" onitemchanged="swt_spclmemo_case_makemiddleclam_group2_cmb_insukind_onitemchanged" class="combo_search" position="absolute 742 10 842 30" index="-1" innerdataset="@ds_P0008list" datacolumn="cdnm"/>
  34. <Static id="caption1" text="심사자" class="search_name" position="absolute 8 35 69 55"/>
  35. <Combo id="cmb_judgmdlid" taborder="49" innerdataset="@ds_init_judglist" codecolumn="userid" datacolumn="usernm" onitemchanged="swt_spclmemo_case_makemiddleclam_group2_cmb_judgmdlid_onitemchanged" class="combo_search" position="absolute 95 35 185 55"/>
  36. <Static id="caption3" text="진료과" class="search_name" position="absolute 209 35 270 55"/>
  37. <Combo id="cmb_orddeptcd" taborder="50" innerdataset="@ds_init_dept" codecolumn="deptcd" datacolumn="depthngnm" onitemchanged="swt_spclmemo_case_makemiddleclam_group2_cmb_orddeptcd_onitemchanged" class="combo_search" position="absolute 283 35 388 55"/>
  38. <Edit id="ipt_pid" taborder="51" class="input_search" position="absolute 486 35 561 55" onkeydown="swt_spclmemo_case_makemiddleclam_group2_ipt_pid_onkeydown"/>
  39. <Button id="btn_srch" taborder="52" text="조회" onclick="btn_srch_onclick" onlbuttonup="btn_srch_onlbuttonup" class="btn1" position="absolute 1075 34 1131 54"/>
  40. <Static id="caption10" text="기준일수" class="search_name" position="absolute 209 10 283 30"/>
  41. <Static id="caption11" text="진료비" class="search_name" position="absolute 415 10 476 30"/>
  42. <MaskEdit id="opt_insukindcd" taborder="53" mask="#,###" class="input_search" position="absolute 283 10 333 30" style="align:right middle;" imemode="hangul"/>
  43. <MaskEdit id="opt_suppkindcd" taborder="54" mask="#,###" class="input_search" position="absolute 486 10 596 30" style="align:right middle;" imemode="hangul"/>
  44. <Static id="caption4" text="이상" position="absolute 599 10 627 30" style="align:center middle;"/>
  45. <Static id="caption21" text="이상" position="absolute 336 10 364 30" style="align:center middle;"/>
  46. <Edit id="opt_patnm" taborder="55" readonly="true" position="absolute 580 35 650 55"/>
  47. <CheckBox id="checkbox1" taborder="56" text="일괄분할청구" truevalue="Y" class="checkbox_search" position="absolute 853 10 953 30" onchanged="swt_spclmemo_case_makemiddleclam_group2_checkbox1_onchanged" falsevalue="N" value="N"/>
  48. <CheckBox id="chk_tempdsch" taborder="57" text="가퇴원포함" truevalue="Y" onclick="chk_tempdsch_onclick" class="checkbox_search" position="absolute 964 10 1051 30" falsevalue="N" value="N"/>
  49. <CheckBox id="chk_dschperson" taborder="58" text="퇴원자포함" truevalue="Y" class="checkbox_search" position="absolute 1062 10 1149 30" falsevalue="N" onchanged="swt_spclmemo_case_makemiddleclam_group2_chk_dschperson_onchanged" value="N"/>
  50. <Static id="caption7" text="설정된 등록기준일까지 분리되어 중간청구 등록됩니다." class="tit_2" position="absolute 659 36 1004 56" style="align:middle;"/>
  51. <Static id="caption08" text="환자번호" class="search_name" position="absolute 414 34 475 54"/>
  52. <Button id="btn_srchpid" taborder="59" onclick="group2_btn_srchpid_onclick" class="icon_search" position="absolute 562 37 578 53"/>
  53. </Layout>
  54. </Layouts>
  55. </Div>
  56. <Static id="caption9" text="중간청구(분리청구) 리스트" class="tit_2" position="absolute 0 77 222 97"/>
  57. <Button id="btn_exlsave" taborder="17" text="엑셀저장" onclick="btn_exlsave_onclick" onlbuttonup="btn_exlsave_onlbuttonup" class="btn7" position="absolute 1037 74 1113 94" anchor="top right"/>
  58. <Button id="btn_selectall" taborder="18" text="전체선택" onclick="btn_selectall_onclick" onlbuttonup="btn_selectall_onlbuttonup" class="btn2" position="absolute 1115 74 1183 94" anchor="top right"/>
  59. <Button id="btn_deselectall" taborder="19" text="전체해제" onclick="btn_deselectall_onclick" onlbuttonup="btn_deselectall_onlbuttonup" class="btn2" position="absolute 1186 74 1254 94" anchor="top right"/>
  60. <Grid id="grd_mdiclam" taborder="20" binddataset="ds_grd_mdiclam" useinputpanel="false" cellsizingtype="col" autofittype="col" oncellclick="swt_spclmemo_case_makemiddleclam_grd_mdiclam_oncellclick" position="absolute 0 96 1254 699" onclick="grd_mdiclam_onclick" anchor="all">
  61. <Formats>
  62. <Format id="default">
  63. <Columns>
  64. <Column size="15"/>
  65. <Column size="30"/>
  66. <Column size="71"/>
  67. <Column size="58"/>
  68. <Column size="62"/>
  69. <Column size="62"/>
  70. <Column size="58"/>
  71. <Column size="75"/>
  72. <Column size="80"/>
  73. <Column size="80"/>
  74. <Column size="80"/>
  75. <Column size="130"/>
  76. </Columns>
  77. <Rows>
  78. <Row size="22" band="head"/>
  79. <Row size="20"/>
  80. </Rows>
  81. <Band id="head">
  82. <Cell/>
  83. <Cell col="1" text="선택"/>
  84. <Cell col="2" text="등록번호"/>
  85. <Cell col="3" text="이름"/>
  86. <Cell col="4" text="심사자"/>
  87. <Cell col="5" text="보험유형"/>
  88. <Cell col="6" text="보조유형"/>
  89. <Cell col="7" text="입원일"/>
  90. <Cell col="8" text="유형시작일"/>
  91. <Cell col="9" text="유형종료일"/>
  92. <Cell col="10" text="진료과"/>
  93. <Cell col="11" text="진료의"/>
  94. </Band>
  95. <Band id="body">
  96. <Cell celltype="head" displaytype="image" expr="expr:expr:expr:getRowType(currow) == 2 ?'theme://images/ico_i.png' : (getRowType(currow) == 4 ? 'theme://images/ico_u.png' : (getRowType(currow) == 8 ? 'theme://images/ico_d.png' : 'theme://images/ico_e.png'))"/>
  97. <Cell col="1" displaytype="checkbox" edittype="checkbox" style="background:EXPR(fn_setCellBColor(currow));background2:EXPR(fn_setCellBColor(currow));" text="bind:choi" expr="expr:choi == 'true' || choi== '1' ? 1 : 0"/>
  98. <Cell col="2" style="align:center middle;background:EXPR(fn_setCellBColor(currow));background2:EXPR(fn_setCellBColor(currow));" text="bind:pid"/>
  99. <Cell col="3" style="align:center middle;background:EXPR(fn_setCellBColor(currow));background2:EXPR(fn_setCellBColor(currow));" text="bind:hngnm"/>
  100. <Cell col="4" displaytype="combo" edittype="combo" style="align:center middle;background:EXPR(fn_setCellBColor(currow));background2:EXPR(fn_setCellBColor(currow));" text="bind:mainjudgid" combodataset="ds_init_judglist" combocodecol="userid" combodatacol="usernm"/>
  101. <Cell col="5" displaytype="number" edittype="none" style="align:center middle;background:EXPR(fn_setCellBColor(currow));background2:EXPR(fn_setCellBColor(currow));" text="bind:insukind"/>
  102. <Cell col="6" displaytype="number" edittype="none" style="align:center middle;background:EXPR(fn_setCellBColor(currow));background2:EXPR(fn_setCellBColor(currow));" text="bind:suppkind"/>
  103. <Cell col="7" displaytype="date" edittype="none" style="align:center middle;background:EXPR(fn_setCellBColor(currow));background2:EXPR(fn_setCellBColor(currow));" text="bind:indd"/>
  104. <Cell col="8" displaytype="date" edittype="date" style="align:center middle;background:EXPR(fn_setCellBColor(currow));background2:EXPR(fn_setCellBColor(currow));" text="bind:fromdd" calendardisplaynulltype="none"/>
  105. <Cell col="9" displaytype="date" edittype="none" style="align:center middle;background:EXPR(fn_setCellBColor(currow));background2:EXPR(fn_setCellBColor(currow));" text="bind:todd" calendardisplaynulltype="none"/>
  106. <Cell col="10" displaytype="date" style="align:center middle;background:EXPR(fn_setCellBColor(currow));background2:EXPR(fn_setCellBColor(currow));" text="bind:orddeptnm" combodataset="ds_init_dept" combocodecol="deptcd" combodatacol="depthngnm" calendardisplaynulltype="none"/>
  107. <Cell col="11" displaytype="normal" style="align:center middle;background:EXPR(fn_setCellBColor(currow));background2:EXPR(fn_setCellBColor(currow));" text="bind:atdoctid"/>
  108. <Cell col="12"/>
  109. <Cell col="13"/>
  110. </Band>
  111. </Format>
  112. </Formats>
  113. </Grid>
  114. </Layout>
  115. </Layouts>
  116. </Tabpage>
  117. <Tabpage id="case_srchmiddleclam" text="중간청구등록 현황 조회" scrollbars="none">
  118. <Layouts>
  119. <Layout width="1256" height="704">
  120. <Div id="group5" anchor="left top right" taborder="28" style="align:center top;" class="div_SA" position="absolute 0 0 1253 67">
  121. <Layouts>
  122. <Layout width="1254" height="67">
  123. <Static id="caption12" text="보험유형" class="search_name" position="absolute 335 10 409 30" anchor="default"/>
  124. <Static id="caption13" text="등록기준일" class="search_name" position="absolute 8 10 95 30" anchor="default"/>
  125. <Combo id="cmb_rgstinsukind" taborder="31" innerdataset="@ds_P0008list" codecolumn="cdid" datacolumn="cdnm" onitemchanged="swt_spclmemo_case_srchmiddleclam_group5_cmb_rgstinsukind_onitemchanged" class="combo_search" position="absolute 409 10 544 30" anchor="default"/>
  126. <Static id="caption14" text="심사자" class="search_name" position="absolute 8 35 69 55" anchor="default"/>
  127. <Combo id="cmb_rgstjudgmdlid" taborder="32" innerdataset="@ds_init_judglist" codecolumn="userid" datacolumn="usernm" onitemchanged="swt_spclmemo_case_srchmiddleclam_group5_cmb_rgstjudgmdlid_onitemchanged" class="combo_search" position="absolute 95 35 185 55" anchor="default"/>
  128. <Static id="caption15" text="진료과" class="search_name" position="absolute 213 36 274 56" anchor="default"/>
  129. <Combo id="combo5" taborder="33" innerdataset="@ds_init_dept" codecolumn="deptcd" datacolumn="depthngnm" onitemchanged="swt_spclmemo_case_srchmiddleclam_group5_combo5_onitemchanged" class="combo_search" position="absolute 279 36 470 56" style="font:dotum,9;" anchor="default"/>
  130. <Edit id="ipt_rgstpid" taborder="34" class="input_default" position="absolute 600 36 687 56" anchor="default" onkeydown="swt_spclmemo_case_srchmiddleclam_group5_ipt_rgstpid_onkeydown" oneditclick="swt_spclmemo_case_srchmiddleclam_group5_ipt_rgstpid_oneditclick"/>
  131. <Button id="btn_rgstsrch" taborder="35" text="조회" onclick="btn_rgstsrch_onclick" onlbuttonup="btn_rgstsrch_onlbuttonup" class="btn1" position="absolute 1188 10 1244 30" anchor="top right">
  132. <Layouts>
  133. <Layout width="56" height="20"/>
  134. </Layouts>
  135. </Button>
  136. <Edit id="opt_rgstpatnm" taborder="36" readonly="true" position="absolute 706 36 793 56" anchor="default"/>
  137. <Static id="caption00" text="환자번호" class="search_name" position="absolute 511 34 585 54" anchor="default"/>
  138. <Calendar id="input1" taborder="37" position="absolute 96 9 199 30" dateformat="yyyy-MM-dd" value="null"/>
  139. <Calendar id="input2" taborder="38" position="absolute 218 9 320 30" dateformat="yyyy-MM-dd" value="null"/>
  140. <Static id="caption18" text="~" position="absolute 200 11 219 30" style="align:center middle;"/>
  141. <Button id="btn_srchpid" taborder="39" onclick="group5_btn_srchpid_onclick" class="icon_search2" position="absolute 687 38 703 54" usebitmapcache="true"/>
  142. </Layout>
  143. </Layouts>
  144. </Div>
  145. <Static id="caption20" text="중간청구(분리청구) 리스트" class="tit_2" position="absolute 0 77 200 97"/>
  146. <Grid id="grd_mdiclamrgst" taborder="29" binddataset="ds_grd_mdiclamlist" useinputpanel="false" cellsizingtype="col" autofittype="col" oncellclick="swt_spclmemo_case_srchmiddleclam_grd_mdiclamrgst_oncellclick" oncelldblclick="swt_spclmemo_case_srchmiddleclam_grd_mdiclamrgst_oncelldblclick" position="absolute 0 96 1254 700" anchor="all" onclick="grd_mdiclamrgst_onclick">
  147. <Formats>
  148. <Format id="default">
  149. <Columns>
  150. <Column size="23" band="left"/>
  151. <Column size="30"/>
  152. <Column size="108"/>
  153. <Column size="64"/>
  154. <Column size="60"/>
  155. <Column size="60"/>
  156. <Column size="0"/>
  157. <Column size="67"/>
  158. <Column size="69"/>
  159. <Column size="80"/>
  160. <Column size="80"/>
  161. <Column size="80"/>
  162. <Column size="110"/>
  163. <Column size="70"/>
  164. <Column size="100"/>
  165. <Column size="0"/>
  166. <Column size="0"/>
  167. <Column size="0"/>
  168. <Column size="0"/>
  169. <Column size="0"/>
  170. <Column size="0"/>
  171. <Column size="0"/>
  172. <Column size="0"/>
  173. <Column size="0"/>
  174. </Columns>
  175. <Rows>
  176. <Row size="22" band="head"/>
  177. <Row size="20"/>
  178. </Rows>
  179. <Band id="head">
  180. <Cell/>
  181. <Cell col="1" text="선택"/>
  182. <Cell col="2" text="청구생성완료여부"/>
  183. <Cell col="3" text="등록번호"/>
  184. <Cell col="4" text="이름"/>
  185. <Cell col="5" text="심사자"/>
  186. <Cell col="6" text="심사자combo"/>
  187. <Cell col="7" text="보험유형"/>
  188. <Cell col="8" text="보조유형"/>
  189. <Cell col="9" text="입원일"/>
  190. <Cell col="10" text="유형시작일"/>
  191. <Cell col="11" text="유형종료일"/>
  192. <Cell col="12" text="진료과"/>
  193. <Cell col="13" text="진료의"/>
  194. <Cell col="14" text="중간청구등록일"/>
  195. <Cell col="15" text="주부유형"/>
  196. <Cell col="16" text="생성번호"/>
  197. <Cell col="17" text="일련번호"/>
  198. <Cell col="18" text="기관코드"/>
  199. <Cell col="19" text="등록자"/>
  200. <Cell col="20" text="ownlimmitdd"/>
  201. <Cell col="21" text="inptseqno"/>
  202. <Cell col="22" text="caption1"/>
  203. <Cell col="23"/>
  204. </Band>
  205. <Band id="body">
  206. <Cell celltype="head" displaytype="image" expr="expr:expr:expr:getRowType(currow) == 2 ?'theme://images/ico_i.png' : (getRowType(currow) == 4 ? 'theme://images/ico_u.png' : (getRowType(currow) == 8 ? 'theme://images/ico_d.png' : 'theme://images/ico_e.png'))"/>
  207. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:choi" expr="expr:choi == 'true' || choi == '1' ? 1 : 0"/>
  208. <Cell col="2" style="align:center middle;" text="bind:cretyn"/>
  209. <Cell col="3" style="align:center middle;" text="bind:pid"/>
  210. <Cell col="4" style="align:center middle;" text="bind:hngnm"/>
  211. <Cell col="5" displaytype="combo" style="align:center middle;" text="bind:mainjudgid" combodataset="ds_init_judglist" combocodecol="userid" combodatacol="usernm"/>
  212. <Cell col="6" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:mainjudgid"/>
  213. <Cell col="7" displaytype="normal" edittype="none" style="align:center middle;" text="bind:insukind"/>
  214. <Cell col="8" displaytype="normal" edittype="none" style="align:center middle;" text="bind:suppkind"/>
  215. <Cell col="9" displaytype="date" style="align:center middle;" text="bind:indd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  216. <Cell col="10" displaytype="date" style="align:center middle;" text="bind:fromdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  217. <Cell col="11" displaytype="date" style="align:center middle;" text="bind:todd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  218. <Cell col="12" displaytype="normal" style="align:center middle;" text="bind:orddeptnm"/>
  219. <Cell col="13" style="align:center middle;" text="bind:atdoctid"/>
  220. <Cell col="14" displaytype="date" style="align:center middle;" text="bind:cnfmdt" calendardisplaynulltype="none"/>
  221. <Cell col="15" text="bind:mskind"/>
  222. <Cell col="16" text="bind:cretno"/>
  223. <Cell col="17" text="bind:seqno"/>
  224. <Cell col="18" text="bind:instcd"/>
  225. <Cell col="19" text="bind:fstrgstrid"/>
  226. <Cell col="20" text="bind:ownlimmitdd"/>
  227. <Cell col="21" text="bind:inptseqno"/>
  228. <Cell col="22" text="bind:iphsseqno"/>
  229. <Cell col="23" text="bind:icdrseqno"/>
  230. <Cell col="24"/>
  231. </Band>
  232. </Format>
  233. </Formats>
  234. </Grid>
  235. <Button id="btn_selectall1" taborder="30" text="전체선택" onclick="btn_selectall1_onclick" onlbuttonup="btn_selectall1_onlbuttonup" class="btn2" position="absolute 1115 74 1183 94" anchor="top right"/>
  236. <Button id="btn_deselectall1" taborder="31" text="전체해제" onclick="btn_deselectall1_onclick" onlbuttonup="btn_deselectall1_onlbuttonup" class="btn2" position="absolute 1186 74 1254 94" anchor="top right"/>
  237. </Layout>
  238. </Layouts>
  239. </Tabpage>
  240. </Tabpages>
  241. </Tab>
  242. <Button id="btn_cancel" taborder="2" text="취소" position="absolute 1128 757 1183 777" class="btn4" onclick="btn_cancel_onclick" anchor="right"/>
  243. </Layout>
  244. </Layouts>
  245. <Objects>
  246. <Dataset id="ds_grd_mdiclam" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_grd_mdiclam_oncolumnchanged">
  247. <ColumnInfo>
  248. <Column id="choi" type="STRING" size="256" sumtext="선택여부"/>
  249. <Column id="pid" type="STRING" size="256" sumtext="환자번호 "/>
  250. <Column id="indd" type="STRING" size="256" sumtext="입원일 "/>
  251. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  252. <Column id="seqno" type="STRING" size="256" sumtext="일련번호"/>
  253. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  254. <Column id="hngnm" type="STRING" size="256" sumtext="환자명 "/>
  255. <Column id="mainjudgid" type="STRING" size="256" sumtext="심사자ID "/>
  256. <Column id="atdoctid" type="STRING" size="256" sumtext="주치의ID "/>
  257. <Column id="insukind" type="STRING" size="256" sumtext="유형 "/>
  258. <Column id="suppkind" type="STRING" size="256" sumtext="유형보조 "/>
  259. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명칭 "/>
  260. <Column id="indaycnt" type="STRING" size="256" sumtext="재원일수 "/>
  261. <Column id="totordamt" type="STRING" size="256" sumtext="총진료비 "/>
  262. <Column id="mskind" type="STRING" size="256" sumtext="주부유형"/>
  263. <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
  264. <Column id="todd" type="STRING" size="256" sumtext="유형시작일자"/>
  265. <Column id="fstrgstrid" type="STRING" size="256" sumtext="유형종료일자"/>
  266. <Column id="ownlimmitdd" type="STRING" size="256" sumtext="상한제 계산기준일"/>
  267. <Column id="limmittodd" type="STRING" size="256" sumtext="유형최소종료일"/>
  268. <Column id="maxtodd" type="STRING" size="256" sumtext="중간청구최종일자"/>
  269. <Column id="cnclyn" type="STRING" size="256"/>
  270. </ColumnInfo>
  271. </Dataset>
  272. <Dataset id="ds_grd_mdiclamlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_grd_mdiclamlist_oncolumnchanged">
  273. <ColumnInfo>
  274. <Column id="choi" type="STRING"/>
  275. <Column id="cretyn" type="STRING"/>
  276. <Column id="pid" type="STRING"/>
  277. <Column id="hngnm" type="STRING"/>
  278. <Column id="mainjudgid" type="STRING"/>
  279. <Column id="mskind" type="STRING"/>
  280. <Column id="insukind" type="STRING"/>
  281. <Column id="suppkind" type="STRING"/>
  282. <Column id="indd" type="STRING"/>
  283. <Column id="fromdd" type="STRING"/>
  284. <Column id="todd" type="STRING"/>
  285. <Column id="dschdd" type="STRING" size="256"/>
  286. <Column id="orddeptnm" type="STRING"/>
  287. <Column id="atdoctid" type="STRING"/>
  288. <Column id="cnfmdt" type="STRING"/>
  289. <Column id="mskind" type="STRING"/>
  290. <Column id="cretno" type="STRING"/>
  291. <Column id="seqno" type="STRING"/>
  292. <Column id="instcd" type="STRING"/>
  293. <Column id="fstrgstrid" type="STRING"/>
  294. <Column id="ownlimmitdd" type="STRING"/>
  295. <Column id="inptseqno" type="STRING"/>
  296. <Column id="iphsseqno" type="STRING"/>
  297. <Column id="icdrseqno" type="STRING"/>
  298. <Column id="wardcd" type="STRING"/>
  299. <Column id="clamym" type="STRING" size="256"/>
  300. <Column id="clamdg" type="STRING" size="256"/>
  301. <Column id="enryn" type="STRING" size="256"/>
  302. <Column id="batchyn" type="STRING" size="256"/>
  303. <Column id="drgappyn" type="STRING" size="256"/>
  304. <Column id="lastupdtrid" type="STRING" size="256"/>
  305. <Column id="cnclyn" type="STRING" size="256"/>
  306. </ColumnInfo>
  307. </Dataset>
  308. <Dataset id="ds_init_cmb_insukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  309. <ColumnInfo>
  310. <Column id="cdid" type="STRING" size="256"/>
  311. <Column id="cdnm" type="STRING" size="256"/>
  312. </ColumnInfo>
  313. </Dataset>
  314. <Dataset id="ds_init_cmb_mskind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  315. <ColumnInfo>
  316. <Column id="cdid" type="STRING" size="256"/>
  317. <Column id="cdnm" type="STRING" size="256"/>
  318. </ColumnInfo>
  319. </Dataset>
  320. <Dataset id="ds_init_cmb_suppkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  321. <ColumnInfo>
  322. <Column id="cdid" type="STRING" size="256"/>
  323. <Column id="cdnm" type="STRING" size="256"/>
  324. </ColumnInfo>
  325. </Dataset>
  326. <Dataset id="ds_init_cmb_rgstinsukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  327. <ColumnInfo>
  328. <Column id="cdid" type="STRING" size="256"/>
  329. <Column id="cdnm" type="STRING" size="256"/>
  330. </ColumnInfo>
  331. </Dataset>
  332. <Dataset id="ds_init_judglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  333. <ColumnInfo>
  334. <Column id="userid" type="STRING" size="256"/>
  335. <Column id="usernm" type="STRING" size="256"/>
  336. </ColumnInfo>
  337. </Dataset>
  338. <Dataset id="ds_init_wardlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  339. <ColumnInfo>
  340. <Column id="wardcd" type="STRING" size="256"/>
  341. <Column id="wardnm" type="STRING" size="256"/>
  342. </ColumnInfo>
  343. </Dataset>
  344. <Dataset id="ds_init_suppkindlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  345. <ColumnInfo>
  346. <Column id="insukind" type="STRING" size="256"/>
  347. <Column id="suppkind" type="STRING" size="256"/>
  348. <Column id="suppkindnm" type="STRING" size="256"/>
  349. <Column id="ownbrate" type="STRING" size="256"/>
  350. </ColumnInfo>
  351. </Dataset>
  352. <Dataset id="ds_init_setgrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  353. <ColumnInfo>
  354. <Column id="compscd" type="STRING" size="256"/>
  355. <Column id="compscnts" type="STRING" size="256"/>
  356. <Column id="conpsrefcnts" type="STRING" size="256"/>
  357. <Column id="compssizecnts" type="STRING" size="256"/>
  358. <Column id="scrnid" type="STRING" size="256"/>
  359. </ColumnInfo>
  360. </Dataset>
  361. <Dataset id="_ds_init_uuee" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  362. <ColumnInfo>
  363. <Column id="scrnid" type="STRING" size="256"/>
  364. <Column id="compsnm" type="STRING" size="256"/>
  365. <Column id="compscnts" type="STRING" size="256"/>
  366. <Column id="compsrefcnts" type="STRING" size="256"/>
  367. <Column id="compsizecnts" type="STRING" size="256"/>
  368. </ColumnInfo>
  369. </Dataset>
  370. <Dataset id="ds_init_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  371. <ColumnInfo>
  372. <Column id="deptcd" type="STRING" size="256"/>
  373. <Column id="depthngnm" type="STRING" size="256"/>
  374. <Column id="deptengabbr" type="STRING" size="256"/>
  375. <Column id="depthardcd" type="STRING" size="256"/>
  376. </ColumnInfo>
  377. </Dataset>
  378. <Dataset id="ds_init_judg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  379. <ColumnInfo>
  380. <Column id="judgid" type="STRING" size="256"/>
  381. <Column id="judgnm" type="STRING" size="256"/>
  382. </ColumnInfo>
  383. </Dataset>
  384. <Dataset id="ds_temp_patInfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  385. <Dataset id="ds_init_predata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  386. <ColumnInfo>
  387. <Column id="label" type="STRING" size="256"/>
  388. <Column id="value" type="STRING" size="256"/>
  389. </ColumnInfo>
  390. <Rows>
  391. <Row>
  392. <Col id="value">1</Col>
  393. <Col id="label">1.생성(삭제후)</Col>
  394. </Row>
  395. <Row>
  396. <Col id="value">2</Col>
  397. <Col id="label">2.생성(중복Skip)</Col>
  398. </Row>
  399. <Row>
  400. <Col id="value">3</Col>
  401. <Col id="label">3.생성(별도)</Col>
  402. </Row>
  403. <Row>
  404. <Col id="value">4</Col>
  405. <Col id="label">4.삭제만</Col>
  406. </Row>
  407. <Row>
  408. <Col id="value">5</Col>
  409. <Col id="label">5.재생성(별도)</Col>
  410. </Row>
  411. </Rows>
  412. </Dataset>
  413. <Dataset id="ds_init_clamdg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  414. <ColumnInfo>
  415. <Column id="clamdgid" type="STRING" size="256"/>
  416. <Column id="clamdgnm" type="STRING" size="256"/>
  417. </ColumnInfo>
  418. </Dataset>
  419. <Dataset id="ds_temp_grd_mdiclamrgst" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  420. <ColumnInfo>
  421. <Column id="status" type="STRING" size="256" sumtext="처리구분"/>
  422. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  423. <Column id="indd" type="STRING" size="256" sumtext="입원일자"/>
  424. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  425. <Column id="inptseqno" type="INT" size="256" sumtext="일련번호"/>
  426. <Column id="mskind" type="STRING" size="256" sumtext="주부유형"/>
  427. <Column id="seqno" type="INT" size="256" sumtext="순번"/>
  428. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  429. <Column id="lastupdtrid" type="STRING" size="256" sumtext="수정자 "/>
  430. </ColumnInfo>
  431. </Dataset>
  432. <Dataset id="ds_temp_SMPIJ00300" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  433. <Dataset id="ds_temp_pijhcamt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  434. <ColumnInfo>
  435. <Column id="instcd" type="STRING" size="256"/>
  436. <Column id="pid" type="STRING" size="256"/>
  437. <Column id="indd" type="STRING" size="256"/>
  438. <Column id="cretno" type="STRING" size="256"/>
  439. <Column id="mskind" type="STRING" size="256"/>
  440. <Column id="fromdd" type="STRING" size="256"/>
  441. <Column id="todd" type="STRING" size="256"/>
  442. <Column id="dschdd" type="STRING" size="256"/>
  443. <Column id="drgappyn" type="STRING" size="256"/>
  444. <Column id="payamt" type="STRING" size="256"/>
  445. <Column id="ownbpayamt" type="STRING" size="256"/>
  446. <Column id="nopyamt" type="STRING" size="256"/>
  447. <Column id="ownbnopyamt" type="STRING" size="256"/>
  448. <Column id="specamt" type="STRING" size="256"/>
  449. <Column id="ownbspecamt" type="STRING" size="256"/>
  450. <Column id="totordamt" type="STRING" size="256"/>
  451. <Column id="ownbtotordamt" type="STRING" size="256"/>
  452. <Column id="prcptotordamt" type="STRING" size="256"/>
  453. <Column id="prcpownbamt" type="STRING" size="256"/>
  454. <Column id="totsumamt" type="STRING" size="256"/>
  455. <Column id="totsumownbamt" type="STRING" size="256"/>
  456. </ColumnInfo>
  457. </Dataset>
  458. <Dataset id="ds_init_clamyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  459. <ColumnInfo>
  460. <Column id="lockyn" type="STRING" size="256"/>
  461. </ColumnInfo>
  462. </Dataset>
  463. <Dataset id="ds_temp_grd_mdiclam" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  464. <Dataset id="ds_P0149list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  465. <Dataset id="ds_P0008list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  466. <ColumnInfo>
  467. <Column id="cdnm" type="STRING" size="256"/>
  468. <Column id="cdid" type="STRING" size="256"/>
  469. </ColumnInfo>
  470. <Rows>
  471. <Row/>
  472. </Rows>
  473. </Dataset>
  474. <Dataset id="ds_main_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  475. <ColumnInfo>
  476. <Column id="pid" type="STRING" size="256"/>
  477. <Column id="rgstbadd" type="STRING" size="256"/>
  478. <Column id="fromdd" type="STRING" size="256"/>
  479. <Column id="todd" type="STRING" size="256"/>
  480. <Column id="indaycnt" type="STRING" size="256"/>
  481. <Column id="totordamt" type="STRING" size="256"/>
  482. <Column id="insukind" type="STRING" size="256"/>
  483. <Column id="judgmdlid" type="STRING" size="256"/>
  484. <Column id="orddeptcd" type="STRING" size="256"/>
  485. <Column id="patnm" type="STRING" size="256"/>
  486. <Column id="cretno" type="STRING" size="256"/>
  487. <Column id="batchdiv" type="STRING" size="256"/>
  488. <Column id="tempdsch" type="STRING" size="256"/>
  489. <Column id="rgststartdd" type="STRING" size="256"/>
  490. <Column id="allcnt" type="STRING" size="256"/>
  491. <Column id="patcnt" type="STRING" size="256"/>
  492. <Column id="dschperson" type="STRING" size="256"/>
  493. </ColumnInfo>
  494. <Rows>
  495. <Row/>
  496. </Rows>
  497. </Dataset>
  498. <Dataset id="ds_init_session" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  499. <ColumnInfo>
  500. <Column id="sess_userid" type="STRING" size="256"/>
  501. </ColumnInfo>
  502. </Dataset>
  503. <Dataset id="ds_sppmc02500_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  504. <ColumnInfo>
  505. <Column id="srchcond" type="STRING" size="256"/>
  506. <Column id="pid" type="STRING" size="256"/>
  507. <Column id="autoflag" type="STRING" size="256"/>
  508. </ColumnInfo>
  509. <Rows>
  510. <Row/>
  511. </Rows>
  512. </Dataset>
  513. </Objects>
  514. <Bind>
  515. <BindItem id="item0" compid="swt_spclmemo.case_makemiddleclam.group2.cmb_insukind" propid="value" datasetid="ds_main_send" columnid="insukind"/>
  516. <BindItem id="item1" compid="swt_spclmemo.case_makemiddleclam.group2.cmb_judgmdlid" propid="value" datasetid="ds_main_send" columnid="judgmdlid"/>
  517. <BindItem id="item2" compid="swt_spclmemo.case_makemiddleclam.group2.cmb_orddeptcd" propid="value" datasetid="ds_main_send" columnid="orddeptcd"/>
  518. <BindItem id="item3" compid="swt_spclmemo.case_makemiddleclam.group2.ipt_pid" propid="value" datasetid="ds_main_send" columnid="pid"/>
  519. <BindItem id="item4" compid="swt_spclmemo.case_makemiddleclam.group2.opt_suppkindcd" propid="value" datasetid="ds_main_send" columnid="totordamt"/>
  520. <BindItem id="item5" compid="swt_spclmemo.case_makemiddleclam.group2.opt_insukindcd" propid="value" datasetid="ds_main_send" columnid="indaycnt"/>
  521. <BindItem id="item6" compid="swt_spclmemo.case_makemiddleclam.group2.ipt_indd" propid="value" datasetid="ds_main_send" columnid="rgstbadd"/>
  522. <BindItem id="item7" compid="swt_spclmemo.case_makemiddleclam.group2.checkbox1" propid="value" datasetid="ds_main_send" columnid="batchdiv"/>
  523. <BindItem id="item8" compid="swt_spclmemo.case_makemiddleclam.group2.chk_tempdsch" propid="value" datasetid="ds_main_send" columnid="tempdsch"/>
  524. <BindItem id="item9" compid="swt_spclmemo.case_makemiddleclam.group2.chk_dschperson" propid="value" datasetid="ds_main_send" columnid="dschperson"/>
  525. <BindItem id="item10" compid="swt_spclmemo.case_srchmiddleclam.group5.input1" propid="value" datasetid="ds_main_send" columnid="fromdd"/>
  526. <BindItem id="item11" compid="swt_spclmemo.case_srchmiddleclam.group5.input2" propid="value" datasetid="ds_main_send" columnid="todd"/>
  527. <BindItem id="item12" compid="swt_spclmemo.case_srchmiddleclam.group5.cmb_rgstinsukind" propid="value" datasetid="ds_main_send" columnid="insukind"/>
  528. <BindItem id="item13" compid="swt_spclmemo.case_srchmiddleclam.group5.cmb_rgstjudgmdlid" propid="value" datasetid="ds_main_send" columnid="judgmdlid"/>
  529. <BindItem id="item14" compid="swt_spclmemo.case_srchmiddleclam.group5.combo5" propid="value" datasetid="ds_main_send" columnid="orddeptcd"/>
  530. <BindItem id="item15" compid="swt_spclmemo.case_srchmiddleclam.group5.ipt_rgstpid" propid="value" datasetid="ds_main_send" columnid="pid"/>
  531. <BindItem id="item16" compid="swt_spclmemo.case_srchmiddleclam.group5.opt_rgstpatnm" propid="value" datasetid="ds_main_send" columnid="patnm"/>
  532. <BindItem id="item17" compid="grp_btn.output1" propid="value" datasetid="ds_main_send" columnid="allcnt"/>
  533. <BindItem id="item18" compid="grp_btn.output2" propid="value" datasetid="ds_main_send" columnid="patcnt"/>
  534. </Bind>
  535. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  536. * System Name : Himed
  537. * Job Name :
  538. * File Name : SMPIJ02300_중간청구일괄등록관리.xfdl
  539. * Creator :
  540. * Make Date : 2014-05-13
  541. *
  542. * Description :
  543. *---------------------------------------------------------------------------------------
  544. * Modify Date Modifier Modify Description
  545. *---------------------------------------------------------------------------------------
  546. * 2014-05-13 HIT Converting Program(TF->XP)
  547. *
  548. *---------------------------------------------------------------------------------------
  549. ****************************************************************************************/
  550. include "com_commonxp::comm_main.xjs";
  551. var allcnt = 0;
  552. var patcnt = 0;
  553. var midcflag = "";
  554. var cnclyn = "";
  555. function model1_oninit(obj:Form, e:InitEventInfo)
  556. {
  557. frmf_initForm(obj);
  558. }
  559. function SMPIJ02300_onload(obj:Form, e:LoadEventInfo)
  560. {
  561. grdf_initGrid(swt_spclmemo.case_makemiddleclam.grd_mdiclam);
  562. grdf_setRowTypeIcon(swt_spclmemo.case_makemiddleclam.grd_mdiclam, 0);
  563. var param = opener.frmf_getParameter("iParam_mother_view");
  564. if(param)
  565. {
  566. ds_temp_grd_mdiclam.copyData(args_ds_temp_grd_mdiclam);
  567. }
  568. fInitialize();
  569. var curdd = utlf_getCurrentDate();
  570. curdd = curdd.toDate("YYYYMMDD").getAddDate(-1).getDateFormat();
  571. dsf_createDsRow("ds_temp", [{col:"currentdate", type:"STRING", size:256, val: curdd}]);
  572. ds_main_send.setColumn(0, "pid", ds_temp_grd_mdiclam.getColumn(0, "pid"));
  573. ds_main_send.setColumn(0, "rgstbadd", curdd);
  574. ds_main_send.setColumn(0, "fromdd", ds_temp_grd_mdiclam.getColumn(0, "indd"));
  575. ds_main_send.setColumn(0, "todd", curdd);
  576. var arrParam = [{dsNm: "ds_P0008list", cdGrpId: "P0008"}
  577. ,{dsNm: "ds_P0149list", cdGrpId: "P0149"}]
  578. appf_getCodeList(arrParam);
  579. dsf_createDsRow("ds_send", [{col:"scrnid", type:"STRING", size:256, val: frmf_getScreenID()}
  580. , {col:"instcd", type:"STRING", size:256, val: sysf_getUserInfo("dutplceinstcd")}]);
  581. var oParam = {};
  582. oParam.id = "TRPIJ00202";
  583. oParam.service = "bfjudgapp.InHospJudgTrgtMan";
  584. oParam.method = "reqGetJudgList";
  585. oParam.inds = "req=ds_send";
  586. oParam.outds = "ds_init_judglist=judglist ds_init_wardlist=wardlist ds_init_suppkindlist=suppkindlist ds_init_setgrid=setgrid";
  587. oParam.async = false;
  588. //oParam.callback = "cf_TRPIJ00202";
  589. tranf_submit(oParam);
  590. dsf_createDsRow("ds_search", [{col: "insucd" , val: ""}
  591. , {col: "ordfromdd", val: ""}
  592. , {col: "basedd" , val: swt_spclmemo.case_makemiddleclam.group2.ipt_indd.value }
  593. , {col: "scrnid" , val: frmf_getScreenID()}]);
  594. var oParam = {};
  595. oParam.id = "TRPIJ00305";
  596. oParam.service = "bfjudgapp.InHospJudg";
  597. oParam.method = "reqGetDeptList";
  598. oParam.inds = "req=ds_search";
  599. oParam.outds = "ds_init_dept=dept";
  600. oParam.async = false;
  601. //oParam.callback = "cf_TRPIJ00305";
  602. tranf_submit(oParam);
  603. var sUserInfosS = sysf_getUserInfo();
  604. sUserInfosS = sUserInfosS + "|";
  605. var UserInfosS_Array = sUserInfosS.split("|");
  606. var userid = UserInfosS_Array[0];
  607. ds_init_session.setColumn(0, "sess_userid", userid);
  608. var pid = ds_main_send.getColumn(0, "pid");
  609. if(!utlf_isNull(pid))
  610. {
  611. fGetMidClamList();
  612. }
  613. }
  614. function fInitialize(){
  615. ds_main_send.clearData();
  616. ds_main_send.addRow();
  617. ds_main_send.setColumn(0, "allcnt", "0");
  618. ds_main_send.setColumn(0, "patcnt", "0");
  619. ds_grd_mdiclam.clearData();
  620. ds_grd_mdiclamlist.clearData();
  621. }
  622. function fGetMidClamList(){
  623. var lastMonth = utlf_addMonth(utlf_getCurrentDate(), -1 );
  624. dsf_createDsRow("ds_temp_list1" , [{col: "rgstbadd" , val: swt_spclmemo.case_makemiddleclam.group2.ipt_indd.value}
  625. , {col: "pid" , val: swt_spclmemo.case_makemiddleclam.group2.ipt_pid.value}
  626. , {col: "indaycnt" , val: swt_spclmemo.case_makemiddleclam.group2.opt_insukindcd.value}
  627. , {col: "totordamt" , val: swt_spclmemo.case_makemiddleclam.group2.opt_suppkindcd.value}
  628. , {col: "insukind" , val: swt_spclmemo.case_makemiddleclam.group2.cmb_insukind.value}
  629. , {col: "judgmdlid" , val: swt_spclmemo.case_makemiddleclam.group2.cmb_judgmdlid.value}
  630. , {col: "orddeptcd" , val: swt_spclmemo.case_makemiddleclam.group2.cmb_orddeptcd.value}
  631. , {col: "batchdiv" , val: swt_spclmemo.case_makemiddleclam.group2.checkbox1.value}
  632. , {col: "tempdsch" , val: swt_spclmemo.case_makemiddleclam.group2.chk_tempdsch.value}
  633. , {col: "rgststartdd" , val: utlf_getFirstDate(lastMonth)}
  634. , {col: "dschperson" , val: swt_spclmemo.case_makemiddleclam.group2.chk_dschperson.value}]);
  635. var oParam = {};
  636. oParam.id = "TRPIJ02301";
  637. oParam.service = "bfjudgapp.MdlClamBatRgst";
  638. oParam.method = "reqGetMdlClamBatRgstTrgtManList";
  639. oParam.inds = "req=ds_temp_list1";
  640. oParam.outds = "ds_grd_mdiclam=grdmdiclam";
  641. oParam.async = false;
  642. oParam.callback = "cf_TRPIJ02301";
  643. tranf_submit(oParam);
  644. dsf_createDsRow("ds_temp_list2", [{col: "pid" , val: swt_spclmemo.case_makemiddleclam.group2.ipt_pid.value}
  645. , {col: "fromdd" , val: swt_spclmemo.case_makemiddleclam.group2.ipt_indd.value}
  646. , {col: "todd" , val: swt_spclmemo.case_makemiddleclam.group2.opt_insukindcd.value}
  647. , {col: "judgmdlid" , val: swt_spclmemo.case_makemiddleclam.group2.cmb_judgmdlid.value}
  648. , {col: "insukind" , val: swt_spclmemo.case_makemiddleclam.group2.cmb_insukind.value}
  649. , {col: "orddeptcd" , val: swt_spclmemo.case_makemiddleclam.group2.cmb_orddeptcd.value}]);
  650. var oParam = {};
  651. oParam.id = "TRPIJ02302";
  652. oParam.service = "bfjudgapp.MdlClamBatRgst";
  653. oParam.method = "reqGetMdlClamBatRgstList";
  654. oParam.inds = "req=ds_temp_list2";
  655. oParam.outds = "ds_grd_mdiclamlist=grdmdiclamlist";
  656. oParam.async = false;
  657. oParam.callback = "cf_TRPIJ02302";
  658. tranf_submit(oParam);
  659. for(var i = 0; i < ds_grd_mdiclam.rowcount; i++)
  660. {
  661. ds_grd_mdiclam.setColumn(i, "choi", "true");
  662. var arrPostion = new Array();
  663. arrPostion[0] = i;
  664. grdf_setStatus(swt_spclmemo.case_makemiddleclam.grd_mdiclam, "U", arrPostion);
  665. }
  666. for(var i = 0; i < ds_grd_mdiclamlist.rowcount; i++)
  667. {
  668. if(utlf_isNull(ds_grd_mdiclamlist.getColumn(i, "cnfmdt")))
  669. {
  670. ds_grd_mdiclamlist.setColumn(i, "choi", "true");
  671. var arrPostion = new Array();
  672. arrPostion[0] = i;
  673. grdf_setStatus(swt_spclmemo.case_srchmiddleclam.grd_mdiclamrgst, "U", arrPostion);
  674. }
  675. }
  676. }
  677. function cf_TRPIJ02301()
  678. {
  679. //copyNodeType("/root/main/list1","/root/hidden/rcv/list1","replace");/
  680. }
  681. function cf_TRPIJ02302()
  682. {
  683. //copyNodeType("/root/main/list2","/root/hidden/rcv/list2","replace");
  684. }
  685. function swt_spclmemo_case_makemiddleclam_group2_ipt_indd_onchanged(obj:Calendar, e:ChangeEventInfo)
  686. {
  687. var curDate = utlf_getCurrentDate();
  688. if(obj.value > curDate ) {
  689. sysf_messageBox("현재일자 이후는 등록기준일로 등록할 수", "I004"); //없습니다.
  690. obj.value = curDate;
  691. }
  692. var todd = ds_main_send.getColumn(0, "rgstbadd");
  693. for(var i=0; i < ds_grd_mdiclam.rowcount; i++){
  694. ds_grd_mdiclam.setColumn(i, "todd", todd);
  695. }
  696. }
  697. function swt_spclmemo_case_makemiddleclam_group2_ipt_pid_onkeydown(obj:Edit, e:KeyEventInfo)
  698. {
  699. if(e.keycode == 13){
  700. swt_spclmemo.case_makemiddleclam.group2.opt_patnm.setFocus();
  701. var pid = obj.value;
  702. if(!utlf_isNull(pid)){
  703. ds_sppmc02500_cond.setColumn(0, "srchcond", "1");
  704. ds_sppmc02500_cond.setColumn(0, "pid", pid);
  705. ds_sppmc02500_cond.setColumn(0, "autoflag", "1");
  706. }else{
  707. }
  708. var objArgs = new Object();
  709. objArgs.arg_ds_send = ds_sppmc02500_cond;
  710. frmf_modal("SPPMC02500", "SPPMC02500", objArgs, "", "", "", "", "", "", "", "", "", "M");
  711. var srch_pid = ds_patinfolist.getColumn(0, "pid");
  712. swt_spclmemo.case_makemiddleclam.group2.ipt_pid.value = ds_patinfolist.getColumn(0, "pid");
  713. swt_spclmemo.case_makemiddleclam.group2.opt_patnm.value = ds_patinfolist.getColumn(0, "hngnm");
  714. swt_spclmemo.case_makemiddleclam.group2.ipt_pid.setFocus();
  715. }
  716. }
  717. function group2_btn_srchpid_onclick(obj:Button, e:ClickEventInfo)
  718. {
  719. var pid = swt_spclmemo.case_makemiddleclam.group2.ipt_pid.value;
  720. if(!utlf_isNull(pid)){
  721. ds_sppmc02500_cond.setColumn(0, "srchcond", "1");
  722. ds_sppmc02500_cond.setColumn(0, "pid", pid);
  723. ds_sppmc02500_cond.setColumn(0, "autoflag", "0");
  724. }else{
  725. }
  726. var objArgs = new Object();
  727. objArgs.arg_ds_send = ds_sppmc02500_cond;
  728. frmf_modal("SPPMC02500", "SPPMC02500", objArgs, "", "", "", "", "", "", "", "", "", "M");
  729. var srch_pid = ds_patinfolist.getColumn(0, "pid");
  730. swt_spclmemo.case_makemiddleclam.group2.ipt_pid.value = ds_patinfolist.getColumn(0, "pid");
  731. swt_spclmemo.case_makemiddleclam.group2.opt_patnm.value = ds_patinfolist.getColumn(0, "hngnm");
  732. }
  733. function btn_init_onclick(obj:Button, e:ClickEventInfo)
  734. {
  735. fInitialize();
  736. }
  737. function btn_srch_onclick(obj:Button, e:ClickEventInfo)
  738. {
  739. var prevmonthday = ds_main_send.getColumn(0, "rgstbadd");
  740. if(prevmonthday == "31"){
  741. prevmonthday = "02";
  742. }else{
  743. prevmonthday = "01";
  744. }
  745. var dschperson = ds_main_send.getColumn(0, "dschperson");
  746. var dschpid = ds_main_send.getColumn(0, "pid");
  747. if(dschperson == "Y" && utlf_isNull(dschpid)){
  748. sysf_messageBox("퇴원자포함 선택시 환자번호는","I003");
  749. return;
  750. }
  751. var prevmonthdate = utlf_getCurrentDate();
  752. prevmonthdate = prevmonthdate.toDate("YYYYMMDD").getAddDate(-1,"M").getDateFormat();
  753. ds_main_send.setColumn(0, "rgststartdd", prevmonthdate.substr(0,6) + prevmonthday);
  754. var oParam = {};
  755. oParam.id = "TRPIJ02301";
  756. oParam.service = "bfjudgapp.MdlClamBatRgst";
  757. oParam.method = "reqGetMdlClamBatRgstTrgtManList";
  758. oParam.inds = "req=ds_main_send";
  759. oParam.outds = "ds_grd_mdiclam=grdmdiclam";
  760. oParam.async = false;
  761. oParam.callback = "cf_TRPIJ02301";
  762. tranf_submit(oParam);
  763. ds_grd_mdiclam.updatecontrol = false;
  764. dsf_setDefaultVal(ds_grd_mdiclam, "choi:false");
  765. ds_grd_mdiclam.updatecontrol = true;
  766. var allcnt = ds_grd_mdiclam.rowcount;
  767. var patcnt = 0;
  768. ds_main_send.setColumn(0, "allcnt", allcnt);
  769. var pid ="";
  770. var allcnt = ds_grd_mdiclam.rowcount;
  771. ds_main_send.setColumn(0, "allcnt", allcnt);
  772. for(var i=0; i<ds_grd_mdiclam.rowcount; i++){
  773. var chkpid = ds_grd_mdiclam.getColumn(i, "pid");
  774. if(pid != chkpid){
  775. patcnt = patcnt + 1;
  776. }
  777. pid = chkpid;
  778. }
  779. ds_main_send.setColumn(0, "patcnt", patcnt);
  780. pid = ds_main_send.getColumn(0, "pid");
  781. if(!utlf_isNull(pid))
  782. {
  783. for(var i=0; i < ds_grd_mdiclam.rowcount; i++){
  784. ds_grd_mdiclam.setColumn(i, "choi", "true");
  785. var arrPostion = new Array();
  786. arrPostion[0] = i;
  787. grdf_setStatus(swt_spclmemo.case_makemiddleclam.grd_mdiclam, "U", arrPostion);
  788. }
  789. }
  790. }
  791. function cf_TRPIJ02301(){
  792. //copyNodeType("/root/main/list1","/root/hidden/rcv/list1","replace");
  793. }
  794. function swt_spclmemo_case_makemiddleclam_group2_checkbox1_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  795. {
  796. var prevmonthday = utlf_getCurrentDate();
  797. prevmonthday = prevmonthday.toDate("YYYYMMDD").getAddDate(-1,"M").getMonthDay();
  798. var prevmonthdate = utlf_getCurrentDate();
  799. prevmonthdate = prevmonthdate.toDate("YYYYMMDD").getAddDate(-1,"M").getDateFormat();
  800. ds_main_send.setColumn(0, "rgstbadd", prevmonthdate.substr(0,6) + prevmonthday);
  801. }
  802. function swt_spclmemo_onchanged(obj:Tab, e:TabIndexChangeEventInfo)
  803. {
  804. switch(obj.tabindex)
  805. {
  806. case 0:
  807. grp_btn.btn_save.enable = true;
  808. grp_btn.btn_cancelsave.enable = false;
  809. break;
  810. case 1:
  811. grp_btn.btn_save.enable = false;
  812. grp_btn.btn_cancelsave.enable = true;
  813. var chk = ds_grd_mdiclam.getColumn(ds_grd_mdiclam.rowposition, "choi");
  814. if(chk == "true"){
  815. var arrPostion = new Array();
  816. arrPostion[0] = ds_grd_mdiclam.rowposition;
  817. grdf_setStatus(swt_spclmemo.case_makemiddleclam.grd_mdiclam, "U", arrPostion);
  818. }else if(chk == "false"){
  819. var arrPostion = new Array();
  820. arrPostion[0] = ds_grd_mdiclam.rowposition;
  821. grdf_setStatus(swt_spclmemo.case_makemiddleclam.grd_mdiclam, "U", arrPostion);
  822. }
  823. break;
  824. }
  825. }
  826. function btn_selectall1_onclick(obj:Button, e:ClickEventInfo)
  827. {
  828. for(i = 0; i < ds_grd_mdiclamlist.rowcount; i++){
  829. ds_grd_mdiclamlist.setColumn(i, "choi", "true");
  830. var arrPostion = new Array();
  831. arrPostion[0] = i;
  832. grdf_setStatus(swt_spclmemo.case_srchmiddleclam.grd_mdiclamrgst, "U", arrPostion);
  833. }
  834. }
  835. function btn_deselectall1_onclick(obj:Button, e:ClickEventInfo)
  836. {
  837. for(i = 0; i < ds_grd_mdiclamlist.rowcount; i++){
  838. ds_grd_mdiclamlist.setColumn(i, "choi", "false");
  839. var arrPostion = new Array();
  840. arrPostion[0] = i;
  841. grdf_setStatus(swt_spclmemo.case_srchmiddleclam.grd_mdiclamrgst, "", arrPostion);
  842. }
  843. }
  844. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  845. {
  846. var curdd = utlf_getCurrentDate();
  847. for(var i=0; i<= ds_grd_mdiclam.rowcount; i++)
  848. {
  849. var limmittodd = ds_grd_mdiclam.getColumn(i, "limmittodd");
  850. var todd = ds_grd_mdiclam.getColumn(i, "todd");
  851. var choi = ds_grd_mdiclam.getColumn(i, "choi");
  852. if(todd > limmittodd && choi =="true" && todd != "99991231")
  853. {
  854. sysf_messageBox("유형기간을 벗어난 데이터가 포함되어 등록할 수 없습니다. 확인 후 ","C003");
  855. for(var j=0; j<ds_grd_mdiclam.rowcount; j++)
  856. {
  857. ds_grd_mdiclam.setColumn(j, "choi", "false");
  858. var arrPostion = new Array();
  859. arrPostion[0] = i;
  860. grdf_setStatus(swt_spclmemo.case_makemiddleclam.grd_mdiclam, "", arrPostion);
  861. }
  862. return;
  863. }
  864. else if(todd > curdd && choi == "true")
  865. {
  866. sysf_messageBox("유형종료일이 오늘날짜를 초과하는 데이터가 포함되어 등록할 수 없습니다. 확인 후 ","C003");
  867. for(var j=0; j < ds_grd_mdiclam.rowcount; j++)
  868. {
  869. ds_grd_mdiclam.setColumn(j, "choi", "false");
  870. var arrPostion = new Array();
  871. arrPostion[0] = i;
  872. grdf_setStatus(swt_spclmemo.case_makemiddleclam.grd_mdiclam, "", arrPostion);
  873. }
  874. return;
  875. }
  876. }
  877. var rgstbadd = ds_main_send.getColumn(0, "rgstbadd");
  878. if(utlf_isNull(rgstbadd))
  879. {
  880. sysf_messageBox("등록기준일은","I003");
  881. return;
  882. }
  883. var updtdata = grdf_getGridUpdateData(swt_spclmemo.case_makemiddleclam.grd_mdiclam);
  884. if(updtdata.rowcount == 0)
  885. {
  886. sysf_messageBox("변경된 데이터가","I004");
  887. return;
  888. }
  889. var rows = ds_grd_mdiclam.rowcount;
  890. var check = "";
  891. var stat = 0;
  892. var fromdd = "";
  893. var lastmdlclamdd = "";
  894. var interval = 0;
  895. var pid = "";
  896. var openerpid = "";
  897. midcflag = "";
  898. if(frmf_checkOpener())
  899. {
  900. openerpid = opener.gv_pid;
  901. }
  902. for(var i=0; i < rows; i++)
  903. {
  904. stat = ds_grd_mdiclam.getRowType(i);
  905. if(stat == 4)
  906. {
  907. check = ds_grd_mdiclam.getColumn(i, "choi");
  908. if(check == "true")
  909. {
  910. pid = ds_grd_mdiclam.getColumn(i, "pid");
  911. if(frmf_checkOpener())
  912. {
  913. if(openerpid == pid)
  914. {
  915. midcflag = "Y";
  916. }
  917. }
  918. ds_grd_mdiclam.setColumn(i, "fstrgstrid", ds_init_session.getColumn(0, "sess_userid"));
  919. interval = utlf_getDateInterval(ds_grd_mdiclam.getColumn(i, "fromdd"), ds_grd_mdiclam.getColumn(i, "todd"));
  920. if(interval < 0)
  921. {
  922. sysf_messageBox("등록기준일이 시작일자 보다 이전일자로 등록","E001");
  923. return;
  924. }
  925. }
  926. else
  927. {
  928. var arrPostion = new Array();
  929. arrPostion[0] = i;
  930. grdf_setStatus(swt_spclmemo.case_makemiddleclam.grd_mdiclam, "", arrPostion);
  931. }
  932. }
  933. }
  934. var clamrows = ds_grd_mdiclam.rowcount;
  935. for(var i=0; i<clamrows; i++){
  936. if(ds_grd_mdiclam.getColumn(i, "choi") == "true"){
  937. var fromdd = ds_grd_mdiclam.getColumn(i, "fromdd");
  938. var maxtodd = ds_grd_mdiclam.getColumn(i, "maxtodd");
  939. fromdd = fromdd.toDate("YYYYMMDD").getAddDate(-1).getDateFormat();
  940. if(fromdd != maxtodd){
  941. var rtn = sysf_messageBox(i+1+"번째 줄의 이전 입원 진료분이 중간청구 등록되지 않은 날짜가 있습니다. 계속 진행 하시겠습니까?. ","Q999");
  942. if(rtn != "6"){
  943. ds_grd_mdiclam.setColumn(i, "choi", "false");
  944. var arrPostion = new Array();
  945. arrPostion[0] = i;
  946. grdf_setStatus(swt_spclmemo.case_makemiddleclam.grd_mdiclam, "", arrPostion);
  947. }
  948. }
  949. }
  950. }
  951. var clamcheckrows = ds_grd_mdiclam.rowcount;
  952. var cnt = 0;
  953. for(var i=0; i<clamrows; i++){
  954. if(ds_grd_mdiclam.getColumn(i, "choi") == "true"){
  955. cnt = cnt + 1;
  956. }
  957. }
  958. if(cnt > 0){
  959. var updtdata = grdf_getGridUpdateData(swt_spclmemo.case_makemiddleclam.grd_mdiclam);
  960. grdf_setStatusColumn(updtdata,"status");
  961. var oParam = {};
  962. oParam.id = "TXPIJ02301";
  963. oParam.service = "bfjudgapp.MdlClamBatRgst";
  964. oParam.method = "reqInsMdlClamBatRgst";
  965. oParam.inds = "req="+updtdata.name;
  966. oParam.outds = "";
  967. oParam.async = false;
  968. oParam.callback = "cf_TXPIJ02301";
  969. tranf_submit(oParam);
  970. }
  971. }
  972. function cf_TXPIJ02301(){
  973. var updtdata = grdf_getGridUpdateData(swt_spclmemo.case_makemiddleclam.grd_mdiclam);
  974. dsf_setDefaultVal(updtdata, "cnclyn:N");
  975. var oParam = {};
  976. oParam.id = "TXPIJ02303";
  977. oParam.service = "inordamtmngtapp.InRcpt";
  978. oParam.method = "reqSetInClamSpecCret";
  979. oParam.inds = "inputdata="+updtdata.name;
  980. oParam.outds = "";
  981. oParam.async = false;
  982. //oParam.callback = "cf_TXPIJ02303";
  983. tranf_submit(oParam);
  984. btn_srch_onclick();
  985. if(midcflag == "Y"){
  986. opener.fSetMidregist("Y");
  987. }
  988. sysf_messageBox("등록이","I002");
  989. }
  990. function btn_cancelsave_onclick(obj:Button, e:ClickEventInfo)
  991. {
  992. var frow = ds_grd_mdiclamlist.findRowExpr("cretyn=='Y' && choi=='true'");
  993. if ( frow > -1) {
  994. for(var i = 0; i <= ds_grd_mdiclamlist.rowcount; i++){
  995. var arrPostion = new Array();
  996. arrPostion[0] = i;
  997. grdf_setStatus(swt_spclmemo.case_srchmiddleclam.grd_mdiclamrgst, "", arrPostion);
  998. }
  999. }
  1000. var updtdata = grdf_getGridUpdateData(swt_spclmemo.case_srchmiddleclam.grd_mdiclamrgst);
  1001. if(updtdata.rowcount == 0){
  1002. sysf_messageBox("변경된 데이터가","I004");
  1003. return;
  1004. }
  1005. var rows = ds_grd_mdiclamlist.rowcount;
  1006. var check = "";
  1007. var stat = 0;
  1008. var pid = "";
  1009. var openerpid = "";
  1010. if(frmf_checkOpener()){
  1011. openerpid = opener.gv_pid;
  1012. }
  1013. for(var i=0; i<rows; i++){
  1014. stat = ds_grd_mdiclamlist.getRowType(i);
  1015. if(stat == 4){
  1016. check = ds_grd_mdiclamlist.getColumn(i, "choi");
  1017. if(check == "true"){
  1018. ds_grd_mdiclamlist.setColumn(i, "lastupdtrid", ds_init_session.getColumn(0, "sess_userid"));
  1019. ds_grd_mdiclamlist.setColumn(i, "insukind", "");
  1020. pid = ds_grd_mdiclam.getColumn(i, "pid");
  1021. if(frmf_checkOpener()){
  1022. if(openerpid == pid){
  1023. midcflag = "N";
  1024. }
  1025. }
  1026. }else{
  1027. var arrPostion = new Array();
  1028. arrPostion[0] = i;
  1029. grdf_setStatus(swt_spclmemo.case_srchmiddleclam.grd_mdiclamrgst, "", arrPostion);
  1030. }
  1031. }
  1032. }
  1033. var updtdata = grdf_getGridUpdateData(swt_spclmemo.case_srchmiddleclam.grd_mdiclamrgst);
  1034. grdf_setStatusColumn(updtdata,"status");
  1035. var oParam = {};
  1036. oParam.id = "TXPIJ02302";
  1037. oParam.service = "bfjudgapp.MdlClamBatRgst";
  1038. oParam.method = "reqSetMdlClamBatRgst";
  1039. oParam.inds = "req="+updtdata.name;
  1040. oParam.outds = "";
  1041. oParam.async = false;
  1042. oParam.callback = "cf_TXPIJ02302";
  1043. tranf_submit(oParam);
  1044. }
  1045. function cf_TXPIJ02302(){
  1046. var updtdata = grdf_getGridUpdateData(swt_spclmemo.case_srchmiddleclam.grd_mdiclamrgst);
  1047. dsf_setDefaultVal(updtdata, "cnclyn:Y");
  1048. var oParam = {};
  1049. oParam.id = "TXPIJ02304";
  1050. oParam.service = "inordamtmngtapp.InRcpt";
  1051. oParam.method = "reqSetInClamSpecCret";
  1052. oParam.inds = "inputdata="+updtdata.name;
  1053. oParam.outds = "";
  1054. oParam.async = false;
  1055. //oParam.callback = "cf_TXPIJ02304";
  1056. tranf_submit(oParam);
  1057. btn_rgstsrch_onclick();
  1058. if(midcflag == "N"){
  1059. opener.fSetMidregist("N");
  1060. }
  1061. sysf_messageBox("등록취소가","I002");
  1062. }
  1063. function btn_rgstsrch_onclick(obj:Button, e:ClickEventInfo)
  1064. {
  1065. ds_main_send.setColumn(0, "allcnt", "0");
  1066. ds_main_send.setColumn(0, "patcnt", "0");
  1067. var oParam = {};
  1068. oParam.id = "TRPIJ02302";
  1069. oParam.service = "bfjudgapp.MdlClamBatRgst";
  1070. oParam.method = "reqGetMdlClamBatRgstList";
  1071. oParam.inds = "req=ds_main_send";
  1072. oParam.outds = "ds_grd_mdiclamlist=grdmdiclamlist";
  1073. oParam.async = false;
  1074. oParam.callback = "cf_TRPIJ02302";
  1075. tranf_submit(oParam);
  1076. ds_grd_mdiclamlist.updatecontrol = false;
  1077. dsf_setDefaultVal(ds_grd_mdiclamlist, "choi:false");
  1078. ds_grd_mdiclamlist.updatecontrol = true;
  1079. var pid = "";
  1080. var patcnt = 0;
  1081. var allcnt = ds_grd_mdiclamlist.rowcount;
  1082. ds_main_send.setColumn(0, "allcnt", allcnt);
  1083. for(var i=0; i<ds_grd_mdiclamlist.rowcount; i++){
  1084. var chkpid = ds_grd_mdiclamlist.getColumn(i, "pid");
  1085. if(pid != chkpid){
  1086. patcnt = patcnt + 1;
  1087. }
  1088. pid = chkpid;
  1089. }
  1090. ds_main_send.setColumn(0, "patcnt", patcnt);
  1091. pid = ds_main_send.getColumn(0, "pid");
  1092. if(!utlf_isNull(pid)){
  1093. for(var i=0; i<ds_grd_mdiclamlist.rowcount; i++){
  1094. var cretyn = ds_grd_mdiclamlist.getColumn(i, "cretyn");
  1095. if(cretyn != "Y"){
  1096. ds_grd_mdiclamlist.setColumn(i, "choi", "true");
  1097. var arrPostion = new Array();
  1098. arrPostion[0] = i;
  1099. grdf_setStatus(swt_spclmemo.case_srchmiddleclam.grd_mdiclamrgst, "U", arrPostion);
  1100. }
  1101. }
  1102. }
  1103. }
  1104. function cf_TRPIJ02302(){
  1105. //copyNodeType("/root/main/list2","/root/hidden/rcv/list2","replace");
  1106. }
  1107. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  1108. {
  1109. if (frmf_checkOpener())
  1110. {
  1111. this.close();
  1112. }
  1113. }
  1114. function btn_exlsave_onclick(obj:Button, e:ClickEventInfo)
  1115. {
  1116. if (ds_grd_mdiclam.rowcount > 0) {
  1117. grdf_exportExcel(swt_spclmemo.case_makemiddleclam.grd_mdiclam, "중간청구등록", "see");
  1118. } else {
  1119. sysf_messageBox("엑셀저장할 내역이", "I004"); ///엑셀저장할 내역이 없습니다.
  1120. }
  1121. }
  1122. function swt_spclmemo_case_makemiddleclam_group2_chk_dschperson_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  1123. {
  1124. if(obj.value == "Y"){
  1125. if(utlf_isNull(swt_spclmemo.case_makemiddleclam.group2.ipt_pid.value)){
  1126. sysf_messageBox("퇴원자포함 선택시 환자번호는","I003");
  1127. }
  1128. }
  1129. }
  1130. function btn_selectall_onclick(obj:Button, e:ClickEventInfo)
  1131. {
  1132. for(var i=0; i<ds_grd_mdiclam.rowcount; i++){
  1133. ds_grd_mdiclam.setColumn(i, "choi", "true");
  1134. var arrPostion = new Array();
  1135. arrPostion[0] = i;
  1136. grdf_setStatus(swt_spclmemo.case_makemiddleclam.grd_mdiclam, "U", arrPostion);
  1137. }
  1138. }
  1139. function btn_deselectall_onclick(obj:Button, e:ClickEventInfo)
  1140. {
  1141. for(var i=0; i<ds_grd_mdiclam.rowcount; i++){
  1142. ds_grd_mdiclam.setColumn(i, "choi", "false");
  1143. var arrPostion = new Array();
  1144. arrPostion[0] = i;
  1145. grdf_setStatus(swt_spclmemo.case_makemiddleclam.grd_mdiclam, "", arrPostion);
  1146. }
  1147. }
  1148. function swt_spclmemo_case_srchmiddleclam_group5_ipt_rgstpid_onkeydown(obj:Edit, e:KeyEventInfo)
  1149. {
  1150. if(e.keycode == 13){
  1151. swt_spclmemo.case_srchmiddleclam.group5.opt_rgstpatnm.setFocus();
  1152. var pid = obj.value;
  1153. if(!utlf_isNull(pid)){
  1154. ds_sppmc02500_cond.setColumn(0, "srchcond", "1");
  1155. ds_sppmc02500_cond.setColumn(0, "pid", pid);
  1156. ds_sppmc02500_cond.setColumn(0, "autoflag", "1");
  1157. }else{
  1158. }
  1159. var objArgs = new Object();
  1160. objArgs.arg_ds_send = ds_sppmc02500_cond;
  1161. frmf_modal("SPPMC02500", "SPPMC02500", objArgs, "", "", "", "", "", "", "", "", "", "M");
  1162. var srch_pid = ds_patinfolist.getColumn(0, "pid");
  1163. swt_spclmemo.case_srchmiddleclam.group5.ipt_rgstpid.value = ds_patinfolist.getColumn(0, "pid");
  1164. swt_spclmemo.case_srchmiddleclam.group5.opt_rgstpatnm.value = ds_patinfolist.getColumn(0, "hngnm");
  1165. swt_spclmemo.case_srchmiddleclam.group5.opt_rgstpatnm.setFocus();
  1166. }
  1167. }
  1168. function group5_btn_srchpid_onclick(obj:Button, e:ClickEventInfo)
  1169. {
  1170. var pid = swt_spclmemo.case_srchmiddleclam.group5.ipt_rgstpid.value;
  1171. if(!utlf_isNull(pid))
  1172. {
  1173. ds_sppmc02500_cond.setColumn(0, "srchcond", "1");
  1174. ds_sppmc02500_cond.setColumn(0, "pid", pid);
  1175. ds_sppmc02500_cond.setColumn(0, "autoflag", "0");
  1176. }
  1177. else
  1178. {
  1179. }
  1180. var objArgs = new Object();
  1181. objArgs.arg_ds_send = ds_sppmc02500_cond;
  1182. frmf_modal("SPPMC02500", "SPPMC02500", objArgs, "", "", "", "", "", "", "", "", "", "M");
  1183. var srch_pid = ds_patinfolist.getColumn(0, "pid");
  1184. swt_spclmemo.case_srchmiddleclam.group5.ipt_rgstpid.value = ds_patinfolist.getColumn(0, "pid");
  1185. swt_spclmemo.case_srchmiddleclam.group5.opt_rgstpatnm.value = ds_patinfolist.getColumn(0, "hngnm");
  1186. }
  1187. function ds_grd_mdiclamlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1188. {
  1189. if(e.columnid == "choi")
  1190. {
  1191. obj.setColumn(e.row, "choi", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
  1192. var choi = obj.getColumn(e.row, "choi");
  1193. if(choi == "true")
  1194. {
  1195. var arrRow = new Array();
  1196. arrRow[0] = e.row;
  1197. grdf_setStatus(swt_spclmemo.case_srchmiddleclam.grd_mdiclamrgst, "U", arrRow);
  1198. }
  1199. else if(choi == "false")
  1200. {
  1201. var arrRow = new Array();
  1202. arrRow[0] = e.row;
  1203. grdf_setStatus(swt_spclmemo.case_srchmiddleclam.grd_mdiclamrgst, "", arrRow);
  1204. }
  1205. }
  1206. }
  1207. function ds_grd_mdiclam_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1208. {
  1209. if(e.columnid == "choi")
  1210. {
  1211. obj.setColumn(e.row, "choi", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
  1212. }
  1213. }
  1214. ]]></Script>
  1215. </Form>
  1216. </FDL>