SMPID22700_명세서자격수정.xfdl 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPID22700" position="absolute 0 0 1256 805" titletext="명세서자격수정" scrollbars="none" onload="SMPID22700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" anchor="left top right" taborder="7" style="align:center top;" class="div_SA" position="absolute 0 25 1256 92" align="align:center top;" positiontype="position">
  8. <Layouts>
  9. <Layout>
  10. <cp_patientInfo id="cp_searchPatInfo00" titletext="New Form" taborder="64" position="absolute 236 35 597 63" style="background:transparent; "/>
  11. <Static id="caption30" text="청구년월" class="search_name" position="absolute 8 10 82 30" positiontype="position"/>
  12. <Static id="caption32" text="청구구분" class="search_name" position="absolute 8 35 82 55" positiontype="position"/>
  13. <Combo id="cmb_docuflagcd" taborder="49" class="combo_search" position="absolute 82 35 157 55" positiontype="position" innerdataset="@ds_init_clamflagcd" codecolumn="cdid" datacolumn="cdnm"/>
  14. <Static id="caption36" text="접수번호" class="search_name" position="absolute 655 10 729 30" positiontype="position"/>
  15. <Edit id="ipt_acptno" taborder="50" class="input_search" position="absolute 729 10 829 30" imemode="hangul" maxlength="8" positiontype="position"/>
  16. <Static id="caption37" text="명번호" class="search_name" position="absolute 853 10 914 30" positiontype="position"/>
  17. <Edit id="ipt_docuseqno1" taborder="51" class="input_search" position="absolute 926 10 968 30" imemode="hangul" maxlength="5" positiontype="position"/>
  18. <Edit id="ipt_docuseqno2" taborder="52" class="input_search" position="absolute 984 10 1026 30" imemode="hangul" maxlength="5" positiontype="position"/>
  19. <Button id="btn_select" taborder="54" text="조회" class="btn1" position="absolute 1188 10 1244 30" anchor="top right" positiontype="position" onclick="group1_btn_select_onclick"/>
  20. <Static id="caption45" text="~" position="absolute 969 10 985 30" style="align:center middle;" positiontype="position"/>
  21. <Combo id="cmb_clamdg" taborder="57" position="absolute 160 10 211 30" positiontype="position" innerdataset="@ds_init_clamdg" codecolumn="clamdgcd" datacolumn="clamdgnm"/>
  22. <Static id="caption1" text="내원형태" class="search_name" position="absolute 235 10 309 30" positiontype="position"/>
  23. <Combo id="cmb_ioflag" taborder="58" class="combo_search" position="absolute 307 10 407 30" positiontype="position" codecolumn="value" datacolumn="label" innerdataset="@ds_init_ioflag" onitemchanged="group1_cmb_ioflag_onitemchanged"/>
  24. <Static id="caption2" text="청구번호" class="search_name" position="absolute 457 10 531 30" positiontype="position"/>
  25. <Edit id="input1" taborder="59" class="input_search" position="absolute 531 10 631 30" imemode="hangul" maxlength="8" positiontype="position"/>
  26. <Static id="caption3" text="작업구분" class="search_name" position="absolute 457 35 531 55" positiontype="position"/>
  27. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1050 5 1050 51" positiontype="position"/>
  28. <Combo id="cmb_workflag" taborder="60" class="combo_search" position="absolute 531 35 631 55" enable="false" positiontype="position" codecolumn="value" datacolumn="label" innerdataset="@ds_init_makeflag"/>
  29. <Combo id="cmb_suppkind" taborder="61" class="combo_search" position="absolute 926 35 1026 55" positiontype="position" innerdataset="@ds_init_suppkind" codecolumn="cdid" datacolumn="cdnm" displayrowcount="10" type="search"/>
  30. <Static id="caption12" text="보조유형" class="search_name" position="absolute 853 35 927 55" positiontype="position"/>
  31. <Combo id="cmb_insukind" taborder="62" class="combo_search" position="absolute 729 35 829 55" positiontype="position" innerdataset="@ds_init_insukind" codecolumn="cdid" datacolumn="cdnm" onitemchanged="group1_cmb_insukind_onitemchanged" displayrowcount="10"/>
  32. <Static id="caption4" text="보험유형" class="search_name" position="absolute 655 35 729 55" positiontype="position"/>
  33. <cp_monthCal id="cp_monthCal00" titletext="monthCalendar" taborder="63" text="cp_monthCal00" scrollbars="none" position="absolute 82 10 157 30"/>
  34. </Layout>
  35. </Layouts>
  36. </Div>
  37. <Div id="grp_tle" position="absolute 1280 0 2426 13" anchor="default" positiontype="position">
  38. <Layouts>
  39. <Layout/>
  40. </Layouts>
  41. </Div>
  42. <Static id="cap_title" text="명세서 자격수정" class="tit_1" position="absolute 0 3 155 23" positiontype="position"/>
  43. <Grid id="grd_clbsmast" class="datagrid2" taborder="2" useinputpanel="true" position="absolute 0 122 1256 805" anchor="all" binddataset="DS_GRID_grd_clbsmast" positiontype="position" oncellclick="grd_clbsmast_oncellclick" onhscroll="grd_clbsmast_onhscroll" cellsizingtype="both" autoenter="select">
  44. <Formats>
  45. <Format id="default">
  46. <Columns>
  47. <Column size="35"/>
  48. <Column size="0"/>
  49. <Column size="61"/>
  50. <Column size="41"/>
  51. <Column size="56"/>
  52. <Column size="67"/>
  53. <Column size="22"/>
  54. <Column size="53"/>
  55. <Column size="30"/>
  56. <Column size="30"/>
  57. <Column size="75"/>
  58. <Column size="75"/>
  59. <Column size="71"/>
  60. <Column size="60"/>
  61. <Column size="124"/>
  62. <Column size="60"/>
  63. <Column size="100"/>
  64. <Column size="100"/>
  65. <Column size="58"/>
  66. <Column size="73"/>
  67. <Column size="82"/>
  68. <Column size="67"/>
  69. <Column size="78"/>
  70. <Column size="60"/>
  71. <Column size="72"/>
  72. <Column size="72"/>
  73. <Column size="38"/>
  74. <Column size="0"/>
  75. <Column size="0"/>
  76. <Column size="0"/>
  77. <Column size="0"/>
  78. </Columns>
  79. <Rows>
  80. <Row size="35" band="head"/>
  81. <Row size="23"/>
  82. </Rows>
  83. <Band id="head">
  84. <Cell text="C"/>
  85. <Cell col="1" text="TO"/>
  86. <Cell col="2" text="청구년월"/>
  87. <Cell col="3" text="차수"/>
  88. <Cell col="4" text="청구구분"/>
  89. <Cell col="5" colspan="2" text="등록번호"/>
  90. <Cell col="7" text="환자명"/>
  91. <Cell col="8" text="보험&#10;유형"/>
  92. <Cell col="9" text="보조&#10;유형"/>
  93. <Cell col="10" text=" TO&#10;보험유형"/>
  94. <Cell col="11" text=" TO&#10;보조유형"/>
  95. <Cell col="12" text="진료개시일"/>
  96. <Cell col="13" text="진료분야"/>
  97. <Cell col="14" text="진료과"/>
  98. <Cell col="15" text="주치의"/>
  99. <Cell col="16" text="사업장기호"/>
  100. <Cell col="17" text="증번호"/>
  101. <Cell col="18" text="피보험자"/>
  102. <Cell col="19" text="사고일자"/>
  103. <Cell col="20" text="접수번호"/>
  104. <Cell col="21" text="보험회사"/>
  105. <Cell col="22" text="청구번호"/>
  106. <Cell col="23" text="접수번호"/>
  107. <Cell col="24" text="접수일자"/>
  108. <Cell col="25" text="명세서번호"/>
  109. <Cell col="26" text="사유&#10;코드"/>
  110. <Cell col="27" text="clamkey"/>
  111. <Cell col="28" text="workflag"/>
  112. <Cell col="29" text="clbtworkflag"/>
  113. <Cell col="30" text="추가청구여부"/>
  114. </Band>
  115. <Band id="body">
  116. <Cell displaytype="checkbox" edittype="checkbox" text="bind:fromchk"/>
  117. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:tochk"/>
  118. <Cell col="2" displaytype="date" style="align:center middle;" text="bind:clamym" mask="yyyy-MM"/>
  119. <Cell col="3" style="align:center middle;" text="bind:clamdg"/>
  120. <Cell col="4" displaytype="combo" edittype="none" style="align:left middle;" text="bind:clamflagcd" combodataset="ds_init_clamflagcd" combocodecol="cdid" combodatacol="cdnm"/>
  121. <Cell col="5" style="align:center middle;" text="bind:pid"/>
  122. <Cell col="6" style="align:center middle;" text="bind:pidsn"/>
  123. <Cell col="7" style="align:center middle;" text="bind:patnm"/>
  124. <Cell col="8" displaytype="normal" edittype="none" style="align:center middle;" text="bind:insukind"/>
  125. <Cell col="9" displaytype="normal" edittype="none" style="align:center middle;" text="bind:suppkind"/>
  126. <Cell col="10" displaytype="combo" edittype="combo" style="align:left middle;background:#e5d9ffff;" class="cell_nopadding" text="bind:t_insukind" combodataset="ds_init_insukind" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="10"/>
  127. <Cell col="11" displaytype="combo" edittype="combo" style="align:left middle;background:#e5d9ffff;" class="cell_nopadding" text="bind:t_suppkind" combodataset="ds_init_suppkind" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="10"/>
  128. <Cell col="12" displaytype="date" style="align:center middle;" text="bind:ordfromdd" calendardisplaynulltype="none"/>
  129. <Cell col="13" displaytype="combo" edittype="combo" style="align:center middle;" text="bind:ordfildcd" combodataset="ds_init_ordfildcd" combocodecol="cdid" combodatacol="cdnm"/>
  130. <Cell col="14" displaytype="combo" edittype="none" style="align:left middle;" text="bind:orddeptcd" combodataset="ds_init_orddeptcd" combocodecol="cd" combodatacol="nm"/>
  131. <Cell col="15" displaytype="combo" edittype="none" style="align:center middle;" text="bind:orddrid" combodataset="ds_init_orddrid" combocodecol="cd" combodatacol="nm"/>
  132. <Cell col="16" displaytype="text" edittype="text" style="align:center middle;background:#e5d9ffff;" text="bind:insuno" editlimit="15"/>
  133. <Cell col="17" displaytype="text" edittype="text" style="align:center middle;background:#e5d9ffff;" text="bind:certno" editlimit="40"/>
  134. <Cell col="18" displaytype="text" edittype="text" style="align:center middle;background:#e5d9ffff;" text="bind:insdnm" editlimit="50"/>
  135. <Cell col="19" displaytype="date" edittype="date" style="align:center middle;background:#e5d9ffff;" text="bind:acddd" editlimit="8" calendardisplaynulltype="none"/>
  136. <Cell col="20" displaytype="text" edittype="text" style="align:left middle;background:#e5d9ffff;" text="bind:acdacptno" editlimit="40"/>
  137. <Cell col="21" displaytype="text" edittype="text" style="align:left middle;background:#e5d9ffff;" text="bind:insucd" editlimit="15"/>
  138. <Cell col="22" style="align:left middle;" text="bind:clamno"/>
  139. <Cell col="23" style="align:left middle;" text="bind:acptno"/>
  140. <Cell col="24" displaytype="normal" edittype="none" style="align:left middle;" text="bind:acptdd"/>
  141. <Cell col="25" style="align:left middle;" text="bind:docuseqno"/>
  142. <Cell col="26" style="align:left middle;" text="bind:adjtresncd"/>
  143. <Cell col="27" text="bind:clamkey"/>
  144. <Cell col="28" text="bind:workflag"/>
  145. <Cell col="29" text="bind:clbtworkflag"/>
  146. <Cell col="30" text="bind:rclamyn"/>
  147. <Cell col="31"/>
  148. </Band>
  149. </Format>
  150. </Formats>
  151. </Grid>
  152. <Static id="caption9" text="대상자조회" class="tit_2" position="absolute 0 102 145 122" style="align:left middle;"/>
  153. <Combo id="combo1" taborder="3" position="absolute 750 99 1040 119" anchor="left top right" positiontype="position" innerdataset="@ds_init_chgresn" codecolumn="cdid" datacolumn="cdnm"/>
  154. <Button id="btn_save" taborder="4" text="자격수정" class="btn4" position="absolute 1043 99 1125 119" anchor="top right" positiontype="position" onclick="btn_save_onclick"/>
  155. <Button id="btn_init" taborder="5" text="초기화" class="btn4" position="absolute 1128 99 1197 119" anchor="top right" positiontype="position" onclick="btn_init_onclick"/>
  156. <Button id="btn_cancel" taborder="6" text="종료" class="btn4" position="absolute 1200 99 1256 119" anchor="top right" positiontype="position" onclick="btn_cancel_onclick"/>
  157. <Static id="caption5" text="수정사유" class="search_name" position="absolute 676 99 750 119" positiontype="position"/>
  158. </Layout>
  159. </Layouts>
  160. <Objects>
  161. <Dataset id="DS_GRID_grd_clbsmast" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" onrowsetchanged="DS_GRID_grd_clbsmast_onrowsetchanged">
  162. <ColumnInfo>
  163. <Column id="fromchk" type="STRING"/>
  164. <Column id="tochk" type="STRING"/>
  165. <Column id="clamym" type="STRING"/>
  166. <Column id="clamdg" type="STRING"/>
  167. <Column id="clamflagcd" type="STRING"/>
  168. <Column id="pid" type="STRING"/>
  169. <Column id="pidsn" type="STRING"/>
  170. <Column id="patnm" type="STRING"/>
  171. <Column id="insukind" type="STRING"/>
  172. <Column id="suppkind" type="STRING"/>
  173. <Column id="t_insukind" type="STRING"/>
  174. <Column id="t_suppkind" type="STRING"/>
  175. <Column id="ordfromdd" type="STRING"/>
  176. <Column id="ordfildcd" type="STRING"/>
  177. <Column id="orddeptcd" type="STRING"/>
  178. <Column id="orddrid" type="STRING"/>
  179. <Column id="insuno" type="STRING"/>
  180. <Column id="certno" type="STRING"/>
  181. <Column id="insdnm" type="STRING"/>
  182. <Column id="acddd" type="STRING"/>
  183. <Column id="acdacptno" type="STRING"/>
  184. <Column id="insucd" type="STRING"/>
  185. <Column id="clamno" type="STRING"/>
  186. <Column id="acptno" type="STRING"/>
  187. <Column id="acptdd" type="STRING"/>
  188. <Column id="docuseqno" type="STRING"/>
  189. <Column id="adjtresncd" type="STRING"/>
  190. <Column id="clamkey" type="STRING"/>
  191. <Column id="workflag" type="STRING"/>
  192. <Column id="clbtworkflag" type="STRING"/>
  193. <Column id="rclamyn" type="STRING"/>
  194. </ColumnInfo>
  195. </Dataset>
  196. <Dataset id="ds_init_insukind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  197. <ColumnInfo>
  198. <Column id="cdnm" type="STRING" size="256"/>
  199. <Column id="cdid" type="STRING" size="256"/>
  200. </ColumnInfo>
  201. </Dataset>
  202. <Dataset id="ds_init_suppkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  203. <ColumnInfo>
  204. <Column id="cdnm" type="STRING" size="256"/>
  205. <Column id="cdid" type="STRING" size="256"/>
  206. </ColumnInfo>
  207. </Dataset>
  208. <Dataset id="ds_init_ordfildcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  209. <ColumnInfo>
  210. <Column id="cdnm" type="STRING" size="256"/>
  211. <Column id="cdid" type="STRING" size="256"/>
  212. </ColumnInfo>
  213. </Dataset>
  214. <Dataset id="ds_init_clamflagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  215. <ColumnInfo>
  216. <Column id="cdnm" type="STRING" size="256"/>
  217. <Column id="cdid" type="STRING" size="256"/>
  218. </ColumnInfo>
  219. </Dataset>
  220. <Dataset id="ds_init_chgresn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  221. <ColumnInfo>
  222. <Column id="cdnm" type="STRING" size="256"/>
  223. <Column id="cdid" type="STRING" size="256"/>
  224. </ColumnInfo>
  225. </Dataset>
  226. <Dataset id="ds_init_makeflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  227. <ColumnInfo>
  228. <Column id="label" type="STRING" size="256"/>
  229. <Column id="value" type="STRING" size="256"/>
  230. </ColumnInfo>
  231. <Rows>
  232. <Row>
  233. <Col id="label">자격수정</Col>
  234. <Col id="value">5</Col>
  235. </Row>
  236. </Rows>
  237. </Dataset>
  238. <Dataset id="ds_init_ioflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  239. <ColumnInfo>
  240. <Column id="label" type="STRING" size="256"/>
  241. <Column id="value" type="STRING" size="256"/>
  242. </ColumnInfo>
  243. <Rows>
  244. <Row>
  245. <Col id="label">입원</Col>
  246. <Col id="value">I</Col>
  247. </Row>
  248. <Row>
  249. <Col id="label">외래</Col>
  250. <Col id="value">O</Col>
  251. </Row>
  252. </Rows>
  253. </Dataset>
  254. <Dataset id="ds_init_orddeptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  255. <ColumnInfo>
  256. <Column id="nm" type="STRING" size="256"/>
  257. <Column id="cd" type="STRING" size="256"/>
  258. </ColumnInfo>
  259. </Dataset>
  260. <Dataset id="ds_init_orddrid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  261. <ColumnInfo>
  262. <Column id="nm" type="STRING" size="256"/>
  263. <Column id="cd" type="STRING" size="256"/>
  264. </ColumnInfo>
  265. </Dataset>
  266. <Dataset id="ds_send_clbsmast" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  267. <ColumnInfo>
  268. <Column id="fromchk" type="STRING"/>
  269. <Column id="tochk" type="STRING"/>
  270. <Column id="clamym" type="STRING"/>
  271. <Column id="clamdg" type="STRING"/>
  272. <Column id="clamflagcd" type="STRING"/>
  273. <Column id="pid" type="STRING"/>
  274. <Column id="pidsn" type="STRING"/>
  275. <Column id="patnm" type="STRING"/>
  276. <Column id="insukind" type="STRING"/>
  277. <Column id="suppkind" type="STRING"/>
  278. <Column id="t_insukind" type="STRING"/>
  279. <Column id="t_suppkind" type="STRING"/>
  280. <Column id="ordfromdd" type="STRING"/>
  281. <Column id="ordfildcd" type="STRING"/>
  282. <Column id="orddeptcd" type="STRING"/>
  283. <Column id="orddrid" type="STRING"/>
  284. <Column id="insuno" type="STRING"/>
  285. <Column id="certno" type="STRING"/>
  286. <Column id="insdnm" type="STRING"/>
  287. <Column id="acddd" type="STRING"/>
  288. <Column id="acdacptno" type="STRING"/>
  289. <Column id="insucd" type="STRING"/>
  290. <Column id="clamno" type="STRING"/>
  291. <Column id="acptno" type="STRING"/>
  292. <Column id="acptdd" type="STRING"/>
  293. <Column id="docuseqno" type="STRING"/>
  294. <Column id="adjtresncd" type="STRING"/>
  295. <Column id="clamkey" type="STRING"/>
  296. <Column id="workflag" type="STRING"/>
  297. <Column id="clbtworkflag" type="STRING"/>
  298. <Column id="rclamyn" type="STRING"/>
  299. <Column id="chgresn" type="STRING" size="256"/>
  300. <Column id="makeflag" type="STRING" size="256"/>
  301. <Column id="ioflag" type="STRING" size="256"/>
  302. <Column id="docuseqno1" type="STRING" size="256"/>
  303. <Column id="docuseqno2" type="STRING" size="256"/>
  304. </ColumnInfo>
  305. </Dataset>
  306. <Dataset id="ds_init_clamdg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  307. <ColumnInfo>
  308. <Column id="clamdgnm" type="STRING" size="256"/>
  309. <Column id="clamdgcd" type="STRING" size="256"/>
  310. </ColumnInfo>
  311. </Dataset>
  312. </Objects>
  313. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  314. * System Name :
  315. * Job Name :
  316. * Creator :
  317. * Make Date : 2015-05-01
  318. * Description :
  319. *---------------------------------------------------------------------------------------
  320. * Modify Date Modifier Modify Description
  321. *---------------------------------------------------------------------------------------
  322. * 2015-05-01 Live Converter TF->XP
  323. *
  324. *---------------------------------------------------------------------------------------
  325. ****************************************************************************************/
  326. include "com_commonxp::comm_main.xjs";
  327. include "com_basiccodexp::ZBC001.xjs";
  328. include "pam_aftjudgxp::SMPID20000.xjs";
  329. var g_from_cnt = 0;
  330. var g_to_cnt = 0;
  331. function fInitialize()
  332. {
  333. // 그리드 툴팁
  334. grdf_setToolTipBind(grd_clbsmast);
  335. grdf_initGrid(grd_clbsmast);
  336. // 보험유형, 보조유형, 진료분야, 청구구분, 수정사유 리스트
  337. appf_getCodeListSubmit([{cdGrpId: "P0008", dsNm: "ds_init_insukind", sortField: "cdnm", sortMehotd: "desc"}
  338. ,{cdGrpId: "P0010", dsNm: "ds_init_suppkind", sortField: "cdnm", sortMehotd: "desc"}
  339. ,{cdGrpId: "P0291", dsNm: "ds_init_ordfildcd", sortField: "cdnm", sortMehotd: "desc"}
  340. ,{cdGrpId: "P0155", dsNm: "ds_init_clamflagcd", sortField: "cdnm", sortMehotd: "desc"}
  341. ,{cdGrpId: "P0491", dsNm: "ds_init_chgresn", sortField: "cdnm", sortMehotd: "desc"}], false, false, "");
  342. // 진료과 주치의 초기화
  343. var sInDsName = dsf_createDsRow("ds_cond",[{col: "ioflag", val: group1.cmb_ioflag.value}]);
  344. tranf_submit({
  345. id: "TRPID20309"
  346. , service: "aftjudgapp.InAftJudgTrgtMan"
  347. , method: "reqGetDeptCDDrID"
  348. , inds : "req=ds_cond"
  349. , outds: "ds_init_orddeptcd=orddeptcd ds_init_orddrid=orddrid"
  350. , async: false
  351. });
  352. frmf_addComboItem("group1.cmb_ioflag", "전체", "");
  353. group1.cmb_ioflag.innerdataset = ds_init_ioflag;
  354. group1.cmb_ioflag.index = 0 ;
  355. // 청구월 셋팅
  356. var objDate = new Date();
  357. var lv_date = objDate.addMonth(-1);
  358. lv_date = objDate.toFormatString("%Y%m");
  359. group1.cp_monthCal00.cal_Month.value = lv_date;
  360. // 작업구분
  361. group1.cmb_workflag.value = "5";
  362. // 청구구분
  363. frmf_addComboItem("group1.cmb_docuflagcd", "전체", "");
  364. group1.cmb_docuflagcd.index = 0;
  365. // 보험유형
  366. frmf_addComboItem("group1.cmb_insukind", "전체", "");
  367. group1.cmb_insukind.index = 0;
  368. // 보조유형
  369. frmf_addComboItem("group1.cmb_suppkind", "전체", "");
  370. group1.cmb_suppkind.index = 0;
  371. // 수정사유
  372. frmf_addComboItem("combo1", "수정사유", "");
  373. combo1.index = 0;
  374. }
  375. function fGetDocuList()
  376. {
  377. // if (utlf_isNull(group1.cp_searchPatInfo00.edt_pid.value))
  378. // {
  379. // sysf_messageBox("등록번호는", "I003"); ///I003=등록번호는 필수입력입니다.
  380. //
  381. // var e = new ClickEventInfo; //이벤트 선언
  382. // var varRet = group1.cp_searchPatInfo00.btn_search.onclick.fireEvent(group1.cp_searchPatInfo00.btn_search, e); //이벤트 매핑
  383. //
  384. // return;
  385. // }
  386. ds_send_clbsmast.clearData();
  387. var Month = group1.cp_monthCal00.cal_Month.value;
  388. var clamym = Month.toFormatString("%Y%m");
  389. //대상자 조회
  390. ds_send_clbsmast.addRow();
  391. ds_send_clbsmast.setColumn(0, "makeflag", group1.cmb_workflag.value);
  392. ds_send_clbsmast.setColumn(0, "clamym", clamym);
  393. ds_send_clbsmast.setColumn(0, "clamdg", group1.cmb_clamdg.value);
  394. ds_send_clbsmast.setColumn(0, "clamflagcd", group1.cmb_docuflagcd.value);
  395. ds_send_clbsmast.setColumn(0, "ioflag", group1.cmb_ioflag.value);
  396. ds_send_clbsmast.setColumn(0, "pid", group1.cp_searchPatInfo00.edt_pid.value);
  397. ds_send_clbsmast.setColumn(0, "insukind", group1.cmb_insukind.value);
  398. ds_send_clbsmast.setColumn(0, "suppkind", group1.cmb_suppkind.value);
  399. ds_send_clbsmast.setColumn(0, "clamno", group1.input1.value);
  400. ds_send_clbsmast.setColumn(0, "acptno", group1.ipt_acptno.value);
  401. ds_send_clbsmast.setColumn(0, "docuseqno1", group1.ipt_docuseqno1.value);
  402. ds_send_clbsmast.setColumn(0, "docuseqno2", group1.ipt_docuseqno2.value);
  403. trace(ds_send_clbsmast.saveXML());
  404. tranf_submit({
  405. id: "TRPID20601"
  406. , service: "aftjudgapp.DocuManage"
  407. , method: "reqGetDocuMngList"
  408. , inds : "req=ds_send_clbsmast"
  409. , outds: "DS_GRID_grd_clbsmast=clbs"
  410. , async: false
  411. , callback: "cbf_TRPID20601"
  412. });
  413. }
  414. function cbf_TRPID20601(strSvcID, nErrorCode, strErrorMsg){
  415. //에러 처리
  416. if(nErrorCode == 0)
  417. {
  418. DS_GRID_grd_clbsmast.addColumn("fromchk", "string");
  419. DS_GRID_grd_clbsmast.addColumn("tochk", "string");
  420. var nodeList = DS_GRID_grd_clbsmast.rowcount;
  421. if (nodeList == 1)
  422. {
  423. DS_GRID_grd_clbsmast.setColumn(0, "fromchk", "1");
  424. g_from_cnt = 1;
  425. }
  426. }else{
  427. }
  428. DS_GRID_grd_clbsmast.filter("");
  429. DS_GRID_grd_clbsmast.rowposition = -1;
  430. }
  431. function fSetDocuMake()
  432. {
  433. // 자료생성전 체크
  434. var rslt = fValidcheck();
  435. if (rslt != false)
  436. {
  437. ds_send_clbsmast.clearData();
  438. var chgresn = combo1.value // 20091223 수정사유추가 박창원
  439. var makeflag = group1.cmb_workflag.value;
  440. var fromchk = "";
  441. var iCnt = 0;
  442. DS_GRID_grd_clbsmast.filter("fromchk == '1'");
  443. ds_send_clbsmast.copyData(DS_GRID_grd_clbsmast, true);
  444. DS_GRID_grd_clbsmast.filter("");
  445. for (var i = 0; i < ds_send_clbsmast.rowcount; i++)
  446. {
  447. ds_send_clbsmast.addColumn("makeflag", "string");
  448. ds_send_clbsmast.addColumn("ioflag", "string");
  449. ds_send_clbsmast.addColumn("chgresn", "string");
  450. ds_send_clbsmast.setColumn(iCnt, "makeflag", makeflag);
  451. ds_send_clbsmast.setColumn(iCnt, "ioflag" , group1.cmb_ioflag.value);
  452. ds_send_clbsmast.setColumn(iCnt, "chgresn" , chgresn);
  453. iCnt++;
  454. }
  455. if (chgresn < "1") {
  456. sysf_messageBox("수정사유가 지정되지 않으면 자격수정 할 수", "I004"); //I004: 없습니다.
  457. return;
  458. }
  459. tranf_submit({
  460. id: "TXPID20601"
  461. , service: "aftjudgapp.DocuManage"
  462. , method: "reqExeDocuManage"
  463. , inds : "clbs=ds_send_clbsmast"
  464. , async: false
  465. , callback: "cbf_TXPID20601"
  466. });
  467. }
  468. }
  469. function cbf_TXPID20601(strSvcID, nErrorCode, strErrorMsg){
  470. //에러 처리
  471. if(nErrorCode == 0)
  472. {
  473. // 자료생성 후 바로 조회.
  474. fGetDocuList();
  475. }else{
  476. }
  477. }
  478. function fValidcheck()
  479. {
  480. // 생성할 명세서 선택되었는지 체크
  481. var nodeList = DS_GRID_grd_clbsmast.rowcount;
  482. var chkcnt = 0;
  483. var i = 1;
  484. var lockyn = "";
  485. for ( i = 0 ; i < nodeList ; i++ )
  486. {
  487. fromchkyn = DS_GRID_grd_clbsmast.getColumn(i, "fromchk");
  488. if (fromchkyn == "1")
  489. {
  490. chkcnt++;
  491. lockyn = fromchkyn = DS_GRID_grd_clbsmast.getColumn(i, "lockyn");
  492. if (lockyn != "N")
  493. {
  494. sysf_messageBox("잠금설정된 명세서는 자격수정 할 수", "I004"); //I004: 없습니다.
  495. return false;
  496. }
  497. }
  498. }
  499. if (chkcnt == 0)
  500. {
  501. sysf_messageBox("자료생성할 명세서가", "I004"); //I004: 없습니다.
  502. return false;
  503. }
  504. var fromchkyn;
  505. var insukind;
  506. var suppkind;
  507. var t_insukind;
  508. var t_suppkind;
  509. var nodeList = DS_GRID_grd_clbsmast.rowcount;
  510. for ( i = 0; i < nodeList; i++ )
  511. {
  512. fromchkyn = DS_GRID_grd_clbsmast.getColumn(i, "fromchk");
  513. if (fromchkyn == "1")
  514. {
  515. insukind = DS_GRID_grd_clbsmast.getColumn(i, "insukind");
  516. suppkind = DS_GRID_grd_clbsmast.getColumn(i, "suppkind");
  517. t_insukind = DS_GRID_grd_clbsmast.getColumn(i, "t_insukind");
  518. t_suppkind = DS_GRID_grd_clbsmast.getColumn(i, "t_suppkind");
  519. insuno = DS_GRID_grd_clbsmast.getColumn(i, "insuno");
  520. certno = DS_GRID_grd_clbsmast.getColumn(i, "certno");
  521. insdnm = DS_GRID_grd_clbsmast.getColumn(i, "insdnm");
  522. acddd = DS_GRID_grd_clbsmast.getColumn(i, "acddd");
  523. acdacptno = DS_GRID_grd_clbsmast.getColumn(i, "acdacptno");
  524. insucd = DS_GRID_grd_clbsmast.getColumn(i, "insucd");
  525. if (utlf_isNull(t_insukind))
  526. {
  527. sysf_messageBox("변경 보험유형이", "I004"); //I004: 없습니다.
  528. return false;
  529. }
  530. else if (utlf_isNull(t_suppkind)) {
  531. sysf_messageBox("변경 보조유형이", "I004"); //I004: 없습니다.
  532. return false;
  533. }
  534. else {
  535. if ( insukind + suppkind == t_insukind + t_suppkind ) {
  536. sysf_messageBox("보험유형 또는 보조유형이 변경되지", "E007"); //E007=않았습니다.
  537. return false;
  538. }
  539. }
  540. if (t_insukind == "11" || t_insukind == "21" || t_insukind == "22")
  541. {
  542. if (utlf_isNull(insuno)) {
  543. sysf_messageBox("사업장기호가", "I004"); //I004: 없습니다.
  544. return false;
  545. } else if (utlf_isNull(certno)) {
  546. sysf_messageBox("증번호가", "I004"); //I004: 없습니다.
  547. return false;
  548. } if (utlf_isNull(insuno)) {
  549. sysf_messageBox("피보험자가", "I004"); //I004: 없습니다.
  550. return false;
  551. }
  552. } else if (t_insukind == "31") {
  553. if (utlf_isNull(acddd)) {
  554. sysf_messageBox("사고일자가", "I004"); //I004: 없습니다.
  555. return false;
  556. } else if (utlf_isNull(acdacptno)) {
  557. sysf_messageBox("접수번호가", "I004"); //I004: 없습니다.
  558. return false;
  559. } if (utlf_isNull(insucd)) {
  560. sysf_messageBox("보험회사가", "I004"); //I004: 없습니다.
  561. return false;
  562. }
  563. } else if (t_insukind == "41" || t_insukind == "42") {
  564. if (utlf_isNull(acdacptno)) {
  565. sysf_messageBox("산재관리번호가", "I004"); //I004: 없습니다.
  566. return false;
  567. } if (utlf_isNull(insucd)) {
  568. sysf_messageBox("산재지사가", "I004"); //I004: 없습니다.
  569. return false;
  570. }
  571. }
  572. }
  573. }
  574. }
  575. function SMPID22700_onload(obj:Form, e:LoadEventInfo)
  576. {
  577. frmf_initForm(obj);
  578. // 월달력 이벤트 호출
  579. group1.cp_monthCal00.setCallEvent("fn_Cal");
  580. group1.cp_searchPatInfo00.lf_setDataSearchPatInfo("PAM","0");
  581. group1.cp_searchPatInfo00.att_setControlWidth("98","0");
  582. group1.cp_searchPatInfo00.att_setVisible("3|4|",false);
  583. // 화면을 초기화한다.
  584. fInitialize();
  585. // 팝업으로 호출되었으면... 타이틀 변경해준다.
  586. if(frmf_checkOpener())
  587. {
  588. group1.cmb_workflag.value = sMakeflag; // 작업구분
  589. group1.cmb_ioflag.value = sIoflag; // 내원형태
  590. group1.cp_monthCal00.cal_Month.value = sClamym; // 청구년월
  591. group1.cp_searchPatInfo00.edt_pid.value = sPid; // 등록번호
  592. frmf_addComboItem("group1.cmb_clamdg", sClamdg, sClamdg);
  593. group1.cmb_clamdg.value = sClamdg;
  594. fGetDocuList();
  595. }
  596. }
  597. function button116_onclick(obj:Button, e:ClickEventInfo)
  598. {
  599. // 2008.06.05 neverdie 청구년월 다음월 클릭
  600. // 현재청구월에서 다음달을 구한다.
  601. var nowym = model.getValue("/root/send/item1/clamym");
  602. var upym;
  603. upym = pidCalMonth(1, nowym);
  604. model.setValue("/root/send/item1/clamym", upym);
  605. ipt_clamym.refresh();
  606. fGetClamdg();
  607. }
  608. function button73_onclick(obj:Button, e:ClickEventInfo)
  609. {
  610. // 2008.06.05 neverdie 청구년월 이전월 클릭
  611. // 현재청구월에서 이전달을 구한다.
  612. var nowym = model.getValue("/root/send/item1/clamym");
  613. var downym;
  614. downym = pidCalMonth(-1, nowym);
  615. model.setValue("/root/send/item1/clamym", downym);
  616. ipt_clamym.refresh();
  617. fGetClamdg();
  618. }
  619. function btn_save_onlbuttonup(obj:Button, e:MouseEventInfo)
  620. {
  621. // fSetDocuMake();
  622. }
  623. function DS_GRID_grd_clbsmast_onrowsetchanged(obj:Dataset, e:DSRowsetChangeEventInfo)
  624. {
  625. if(DS_GRID_grd_clbsmast.getColID(11) == "t_insukind")
  626. {
  627. var insukind = DS_GRID_grd_clbsmast.getColumn(e.row, "t_insukind");
  628. if ( insukind == "31")
  629. {
  630. grd_clbsmast.setCellProperty("Head", 19, "text", "접수번호");
  631. grd_clbsmast.setCellProperty("Head", 20, "text", "보험회사");
  632. } else if ( insukind == "41" || insukind == "42") {
  633. grd_clbsmast.setCellProperty("Head", 19, "text", "산재관리번호");
  634. grd_clbsmast.setCellProperty("Head", 20, "text", "산재지사");
  635. }
  636. }
  637. }
  638. function fn_Cal()
  639. {
  640. var Month = group1.cp_monthCal00.cal_Month.value;
  641. var clamym = Month.toFormatString("%Y%m");
  642. var sInDsName = dsf_createDsRow("ds_cond", [{col: "clamym", val: clamym}
  643. , {col: "ioflag", val: group1.cmb_ioflag.value}]);
  644. tranf_submit({
  645. id: "TRPID20407"
  646. , service: "aftjudgapp.InAftJudgTrgtMan"
  647. , method: "reqGetClamdg"
  648. , inds : "req=ds_cond"
  649. , outds: "ds_init_clamdg=clamdg"
  650. , async: false
  651. });
  652. group1.cmb_clamdg.index = 0;
  653. }
  654. function group1_cmb_ioflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  655. {
  656. fn_Cal();
  657. }
  658. function group1_cmb_insukind_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  659. {
  660. }
  661. // 초기화 버튼 onclick
  662. function btn_init_onclick(obj:Button, e:ClickEventInfo)
  663. {
  664. ds_send_clbsmast.clearData();
  665. DS_GRID_grd_clbsmast.clearData();
  666. fInitialize();
  667. // 청구차수
  668. group1.cmb_clamdg.value = "";
  669. // 청구번호
  670. group1.input1.value = "";
  671. // 접수번호
  672. group1.ipt_acptno.value = "";
  673. // 명번호
  674. group1.ipt_docuseqno1.value = "";
  675. group1.ipt_docuseqno2.value = "";
  676. // 청구구분
  677. group1.cmb_docuflagcd.index = 0;
  678. // 등록번호
  679. group1.cp_searchPatInfo00.edt_pid.value = "";
  680. // 보험유형
  681. group1.cmb_insukind.index = 0;
  682. // 보조유형
  683. group1.cmb_suppkind.index = 0;
  684. // 수정사유
  685. combo1.value = "";
  686. }
  687. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  688. {
  689. if ( utlf_isNull(combo1.value))
  690. {
  691. alert("수정사유를 선택해주세요.");
  692. return;
  693. }
  694. fSetDocuMake();
  695. }
  696. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  697. {
  698. this.close();
  699. }
  700. // 환자명 틀고정
  701. function grd_clbsmast_onhscroll(obj:Grid, e:ScrollEventInfo)
  702. {
  703. var iCnt = 0;
  704. var iColCur = grd_clbsmast.getCellProperty("Head", 6, "col");
  705. var iCell = 6;
  706. for(i=iCell; i>=0; i--)
  707. {
  708. if(grd_clbsmast.getCellProperty("Head", i, "row")==0 && iColCur==grd_clbsmast.getCellProperty("Head", i, "col"))
  709. {
  710. if(iCnt==0)
  711. {
  712. var iCol = grd_clbsmast.getCellProperty("Head", i, "col");
  713. var iSpan = grd_clbsmast.getCellProperty("Head", i, "colspan")-1;
  714. var iTotCol = iCol+iSpan;
  715. for(k=0; k<=iTotCol; k++)
  716. {
  717. grd_clbsmast.setFormatColProperty(k, "band", "left");
  718. }
  719. }
  720. iCnt++;
  721. }
  722. }
  723. }
  724. function group1_btn_select_onclick(obj:Button, e:ClickEventInfo)
  725. {
  726. fGetDocuList();
  727. }
  728. ]]></Script>
  729. </Form>
  730. </FDL>