SMAHA03150_건진별기본정보관리.xfdl 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAHA03150" position="absolute 0 0 1196 782" titletext="Untitle" onload="SMAHA03150_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 25 1195 753" id="grp_biz" scrollbars="autoboth" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 0 1194 40" align="align:center top;" id="grp_sea" class="div_SA" anchor="left top right">
  11. <Layouts>
  12. <Layout>
  13. <Button position="absolute 1123 10 1179 32" id="btn_search" class="btn1" text="조회" anchor="top right" onclick="grp_biz_grp_sea_btn_search_onclick"/>
  14. <Shape position="absolute 1104 10 1110 32" linetype="vertical" id="line13" class="line_4" anchor="top right"/>
  15. </Layout>
  16. </Layouts>
  17. </Div>
  18. <Grid position="absolute 0 45 1194 728" id="grd_stdval" binddataset="ds_main_stdval_item" anchor="all" autofittype="col">
  19. <Formats>
  20. <Format id="default">
  21. <Columns>
  22. <Column size="25" band="left"/>
  23. <Column size="80"/>
  24. <Column size="120"/>
  25. <Column size="0"/>
  26. <Column size="0"/>
  27. <Column size="0"/>
  28. <Column size="0"/>
  29. <Column size="0"/>
  30. <Column size="0"/>
  31. <Column size="0"/>
  32. <Column size="90"/>
  33. <Column size="80"/>
  34. <Column size="80"/>
  35. <Column size="80"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. <Column size="0"/>
  39. <Column size="0"/>
  40. <Column size="80"/>
  41. <Column size="100"/>
  42. <Column size="120"/>
  43. <Column size="120"/>
  44. </Columns>
  45. <Rows>
  46. <Row size="24" band="head"/>
  47. <Row size="24"/>
  48. </Rows>
  49. <Band id="head">
  50. <Cell/>
  51. <Cell col="1" text="건진구분"/>
  52. <Cell col="2" text="건진상세구분"/>
  53. <Cell col="3" text="기관코드"/>
  54. <Cell col="4" text="데이터만기일"/>
  55. <Cell col="5" text="데이터시작일"/>
  56. <Cell col="6" text="추가검사수가"/>
  57. <Cell col="7" text="보험유형"/>
  58. <Cell col="8" text="보조유형"/>
  59. <Cell col="9" text="보조유형사유"/>
  60. <Cell col="10" text="진료과"/>
  61. <Cell col="11" text="진료과코드"/>
  62. <Cell col="12" text="진료의"/>
  63. <Cell col="13" text="진료의ID"/>
  64. <Cell col="14" text="건진일정관리"/>
  65. <Cell col="15" text="결과상담일정관리"/>
  66. <Cell col="16" text="검사실별일정관리"/>
  67. <Cell col="17" text="계산"/>
  68. <Cell col="18" text="다중접수"/>
  69. <Cell col="19" text="이중접수"/>
  70. <Cell col="20" text="처방당일후수납여부"/>
  71. <Cell col="21" text="검사동의서자동출력"/>
  72. </Band>
  73. <Band id="body">
  74. <Cell celltype="head"/>
  75. <Cell col="1" displaytype="combo" edittype="combo" text="bind:stdm_healexamflag" combodataset="ds_init_A0068" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  76. <Cell col="2" displaytype="combo" edittype="combo" text="bind:stdm_healexamdetlflag" combodataset="ds_init_baseinfo_healexamdetlflaglst_item" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  77. <Cell col="3" displaytype="text" edittype="text" text="bind:stdm_instcd"/>
  78. <Cell col="4" displaytype="text" edittype="text" text="bind:stdm_todd"/>
  79. <Cell col="5" displaytype="text" edittype="text" text="bind:stdm_fromdd"/>
  80. <Cell col="6" displaytype="combo" edittype="combo" text="bind:stdm_addtestcalcflag"/>
  81. <Cell col="7" displaytype="combo" edittype="combo" text="bind:stdm_insukind"/>
  82. <Cell col="8" displaytype="combo" edittype="combo" text="bind:stdm_suppkind"/>
  83. <Cell col="9" displaytype="combo" edittype="combo" text="bind:stdm_suppkindresn"/>
  84. <Cell col="10" text="bind:stdm_meddeptnm"/>
  85. <Cell col="11" displaytype="text" edittype="text" text="bind:stdm_meddeptcd"/>
  86. <Cell col="12" text="bind:stdm_orddrnm"/>
  87. <Cell col="13" displaytype="text" edittype="text" text="bind:stdm_orddrid"/>
  88. <Cell col="14" displaytype="checkbox" edittype="checkbox" text="bind:stdm_totalscheyn"/>
  89. <Cell col="15" displaytype="checkbox" edittype="checkbox" text="bind:stdm_rsltcnstscheyn"/>
  90. <Cell col="16" displaytype="checkbox" edittype="checkbox" text="bind:stdm_roomscheyn"/>
  91. <Cell col="17" displaytype="checkbox" edittype="checkbox" text="bind:stdm_calcflag"/>
  92. <Cell col="18" displaytype="checkbox" edittype="checkbox" text="bind:stdm_multiacptyn" expr="expr:(stdm_multiacptyn==&quot;Y&quot;||stdm_multiacptyn==1)?1:0"/>
  93. <Cell col="19" displaytype="checkbox" edittype="checkbox" text="bind:stdm_duplacptyn" expr="expr:(stdm_duplacptyn==&quot;Y&quot;||stdm_duplacptyn==1)?1:0"/>
  94. <Cell col="20" displaytype="checkbox" edittype="checkbox" text="bind:stdm_prcptdayaftrcptyn" expr="expr:(stdm_prcptdayaftrcptyn==&quot;Y&quot;||stdm_prcptdayaftrcptyn==1)?1:0"/>
  95. <Cell col="21" displaytype="checkbox" edittype="checkbox" text="bind:stdm_examformyn" expr="expr:(stdm_examformyn==&quot;Y&quot;||stdm_examformyn==1)?1:0"/>
  96. </Band>
  97. </Format>
  98. </Formats>
  99. </Grid>
  100. <Shape position="absolute 0 40 1194 46" id="line3" class="line_10" anchor="left top right"/>
  101. </Layout>
  102. </Layouts>
  103. </Div>
  104. <Div position="absolute 0 751 1194 778" id="grp_btn" anchor="left right bottom">
  105. <Layouts>
  106. <Layout>
  107. <Button position="absolute 59 5 139 27" id="button8" class="btn3" text="화면이동" anchor="left bottom" visible="false"/>
  108. <Button position="absolute 0 5 56 27" id="btn_print" class="btn6" text="출력" anchor="left bottom" onclick="grp_btn_btn_print_onclick" visible="false"/>
  109. <Button position="absolute 1138 5 1194 27" id="btn_save" class="btn4" text="저장" anchor="right bottom" onclick="grp_btn_btn_save_onclick"/>
  110. </Layout>
  111. </Layouts>
  112. </Div>
  113. <Static id="caption6" text="건진별 기본정보 관리" class="tit_1" position="absolute 0 0 180 25"/>
  114. </Layout>
  115. </Layouts>
  116. <Objects>
  117. <Dataset id="ds_temp_addr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  118. <ColumnInfo>
  119. <Column id="zipcd1" type="STRING" size="256"/>
  120. <Column id="zipcd2" type="STRING" size="256"/>
  121. <Column id="addr" type="STRING" size="256"/>
  122. <Column id="zipcdseq" type="STRING" size="256"/>
  123. </ColumnInfo>
  124. </Dataset>
  125. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  126. <ColumnInfo>
  127. <Column id="hidden" type="STRING" size="256"/>
  128. </ColumnInfo>
  129. <Rows>
  130. <Row>
  131. <Col id="hidden"/>
  132. </Row>
  133. </Rows>
  134. </Dataset>
  135. <Dataset id="ds_case_mode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  136. <ColumnInfo>
  137. <Column id="case_mode" type="STRING" size="256"/>
  138. </ColumnInfo>
  139. <Rows>
  140. <Row>
  141. <Col id="case_mode"/>
  142. </Row>
  143. </Rows>
  144. </Dataset>
  145. <Dataset id="ds_main_stdval_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_stdval_item_oncolumnchanged">
  146. <ColumnInfo>
  147. <Column id="stdm_healexamflag" type="STRING" size="256"/>
  148. <Column id="stdm_healexamdetlflag" type="STRING" size="256"/>
  149. <Column id="stdm_instcd" type="STRING" size="256"/>
  150. <Column id="stdm_todd" type="STRING" size="256"/>
  151. <Column id="stdm_fromdd" type="STRING" size="256"/>
  152. <Column id="stdm_addtestcalcflag" type="STRING" size="256"/>
  153. <Column id="stdm_insukind" type="STRING" size="256"/>
  154. <Column id="stdm_suppkind" type="STRING" size="256"/>
  155. <Column id="stdm_suppkindresn" type="STRING" size="256"/>
  156. <Column id="stdm_meddeptcd" type="STRING" size="256"/>
  157. <Column id="stdm_orddrid" type="STRING" size="256"/>
  158. <Column id="stdm_orddrnm" type="STRING" size="256"/>
  159. <Column id="stdm_totalscheyn" type="STRING" size="256"/>
  160. <Column id="stdm_rsltcnstscheyn" type="STRING" size="256"/>
  161. <Column id="stdm_roomscheyn" type="STRING" size="256"/>
  162. <Column id="stdm_calcflag" type="STRING" size="256"/>
  163. <Column id="stdm_multiacptyn" type="STRING" size="256"/>
  164. <Column id="stdm_duplacptyn" type="STRING" size="256"/>
  165. <Column id="stdm_prcptdayaftrcptyn" type="STRING" size="256"/>
  166. <Column id="stdm_examformyn" type="STRING" size="256"/>
  167. </ColumnInfo>
  168. <Rows>
  169. <Row>
  170. <Col id="stdm_healexamflag"/>
  171. <Col id="stdm_healexamdetlflag"/>
  172. <Col id="stdm_instcd"/>
  173. <Col id="stdm_todd"/>
  174. <Col id="stdm_fromdd"/>
  175. <Col id="stdm_addtestcalcflag"/>
  176. <Col id="stdm_insukind"/>
  177. <Col id="stdm_suppkind"/>
  178. <Col id="stdm_suppkindresn"/>
  179. <Col id="stdm_meddeptcd"/>
  180. <Col id="stdm_orddrid"/>
  181. <Col id="stdm_orddrnm"/>
  182. <Col id="stdm_totalscheyn"/>
  183. <Col id="stdm_rsltcnstscheyn"/>
  184. <Col id="stdm_roomscheyn"/>
  185. <Col id="stdm_calcflag"/>
  186. <Col id="stdm_multiacptyn"/>
  187. <Col id="stdm_duplacptyn"/>
  188. <Col id="stdm_prcptdayaftrcptyn"/>
  189. <Col id="stdm_examformyn"/>
  190. </Row>
  191. </Rows>
  192. </Dataset>
  193. <Dataset id="ds_main_assolist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  194. <ColumnInfo>
  195. <Column id="assocd" type="STRING" size="256"/>
  196. <Column id="assonm" type="STRING" size="256"/>
  197. <Column id="telno" type="STRING" size="256"/>
  198. <Column id="faxno" type="STRING" size="256"/>
  199. <Column id="zipcd1" type="STRING" size="256"/>
  200. <Column id="zipcd2" type="STRING" size="256"/>
  201. <Column id="detladdr" type="STRING" size="256"/>
  202. <Column id="zipcdseq" type="STRING" size="256"/>
  203. </ColumnInfo>
  204. <Rows>
  205. <Row>
  206. <Col id="assocd"/>
  207. <Col id="assonm"/>
  208. <Col id="telno"/>
  209. <Col id="faxno"/>
  210. <Col id="zipcd1"/>
  211. <Col id="zipcd2"/>
  212. <Col id="detladdr"/>
  213. <Col id="zipcdseq"/>
  214. </Row>
  215. </Rows>
  216. </Dataset>
  217. <Dataset id="ds_send_save" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  218. <ColumnInfo>
  219. <Column id="saveasso" type="STRING" size="256"/>
  220. <Column id="assoflag" type="STRING" size="256"/>
  221. <Column id="instcd" type="STRING" size="256"/>
  222. <Column id="userid" type="STRING" size="256"/>
  223. </ColumnInfo>
  224. <Rows>
  225. <Row>
  226. <Col id="saveasso"/>
  227. <Col id="assoflag"/>
  228. <Col id="instcd"/>
  229. <Col id="userid"/>
  230. </Row>
  231. </Rows>
  232. </Dataset>
  233. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  234. <ColumnInfo>
  235. <Column id="srchassoflag" type="STRING" size="256"/>
  236. <Column id="srchinstcd" type="STRING" size="256"/>
  237. </ColumnInfo>
  238. <Rows>
  239. <Row>
  240. <Col id="srchassoflag">01</Col>
  241. <Col id="srchinstcd"/>
  242. </Row>
  243. </Rows>
  244. </Dataset>
  245. <Dataset id="ds_init_baseinfo_healexamdetlflaglst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  246. <Dataset id="ds_init_baseinfo_assocd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  247. <Dataset id="ds_init_A0068" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  248. <Dataset id="ds_init_A0070" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  249. <Dataset id="ds_init_A0069" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  250. <Dataset id="ds_init_P0008" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  251. <Dataset id="ds_init_P0010" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  252. <Dataset id="ds_init_P0032" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  253. <Dataset id="ds_send_savedrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  254. </Objects>
  255. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  256. * System Name :
  257. * Job Name :
  258. * Creator :
  259. * Make Date : 2017-12-04
  260. * Description :
  261. *---------------------------------------------------------------------------------------
  262. * Modify Date Modifier Modify Description
  263. *---------------------------------------------------------------------------------------
  264. * 2017-06-19 Live Converter TF->XP
  265. *
  266. *---------------------------------------------------------------------------------------
  267. ****************************************************************************************/
  268. //=======================================================================================
  269. // Lib Include
  270. //---------------------------------------------------------------------------------------
  271. include "com_commonxp::comm_main.xjs";
  272. //include "ast_commonxp::AST.xjs";
  273. //include "com_zipcodexp::ZBP001.xjs";
  274. //include "ast_healexamxp::AHA001.xjs";
  275. //include "ast_healexamxp::healexam.xjs";
  276. //=======================================================================================
  277. // Global Form Variable
  278. //---------------------------------------------------------------------------------------
  279. var arErrorCode = new HashArray();
  280. //=======================================================================================
  281. // Function
  282. //---------------------------------------------------------------------------------------
  283. /*-**************************************************************************************
  284. * Argument : N/A
  285. * Description : 기초코드 조회
  286. ****************************************************************************************/
  287. function fGetBaseInfo(){
  288. // 건진기관구분
  289. var arrParam = [{dsNm: "ds_init_A0068", cdGrpId: "A0068"}
  290. ,{dsNm: "ds_init_A0069", cdGrpId: "A0069"}
  291. ,{dsNm: "ds_init_A0070", cdGrpId: "A0070"}
  292. ,{dsNm: "ds_init_P0008", cdGrpId: "P0008"}
  293. ,{dsNm: "ds_init_P0010", cdGrpId: "P0010"}
  294. ,{dsNm: "ds_init_P0032", cdGrpId: "P0032"}
  295. ];
  296. appf_getCodeList(arrParam);
  297. ds_init_baseinfo_healexamdetlflaglst_item.copyData(ds_init_A0069);
  298. dsf_copyDs(ds_init_baseinfo_healexamdetlflaglst_item, ds_init_A0070, "after");
  299. }
  300. /*-**************************************************************************************
  301. * Argument : N/A
  302. * Description : 조회
  303. ****************************************************************************************/
  304. function fGetStdVal(){
  305. ds_main_stdval_item.clearData();
  306. var oParam = {};
  307. oParam.id = "TRAHA03151";
  308. oParam.service = "healthexambaseapp.ComCode";
  309. oParam.method = "reqGetStdVal";
  310. oParam.inds = "req=ds_send";
  311. oParam.outds = "ds_main_stdval_item=item";
  312. oParam.async = false;
  313. //oParam.callback = "cf_TRAHA03151";
  314. tranf_submit(oParam);
  315. }
  316. /*-**************************************************************************************
  317. * Argument : N/A
  318. * Description : 저장
  319. ****************************************************************************************/
  320. function fSaveVal() {
  321. if( sysf_messageBox("기준정보를 ","Q002") == 6){
  322. dsf_createDs("ds_send_save_savedrlist");
  323. var dsUpdate = grdf_getGridUpdateData(grp_biz.grd_stdval, "all");
  324. grdf_setStatusColumn(dsUpdate, "m");
  325. ds_send_save_savedrlist.copyData(dsUpdate, true);
  326. var oParam = {};
  327. oParam.id = "TXAHA03151";
  328. oParam.service = "healthexambaseapp.ComCode";
  329. oParam.method = "reqExeStdVal";
  330. oParam.inds = "req=ds_send_save_savedrlist";
  331. oParam.outds = "ds_hidden=item";
  332. oParam.async = false;
  333. oParam.callback = "cf_TXAHA03151";
  334. tranf_submit(oParam);
  335. if (arErrorCode.pop("TXAHA03151") > -1){
  336. fGetStdVal();
  337. }
  338. }
  339. }
  340. function cf_TXAHA03151(sSvcId, nErrorCode, sErrorMsg) {
  341. arErrorCode.push(sSvcId, nErrorCode);
  342. }
  343. //=======================================================================================
  344. // Event
  345. //---------------------------------------------------------------------------------------
  346. /****************************************************************************************
  347. * Components : Form
  348. * Description : 화면 처음 초기화시 폼초기화
  349. ****************************************************************************************/
  350. function SMAHA03150_onload(obj:Form, e:LoadEventInfo) {
  351. frmf_initForm(obj);
  352. //grdf_initGrid(grd_XXX);
  353. //grdf_setGridSort(grd_XXX);
  354. grdf_setRowTypeIcon(grp_biz.grd_stdval, 0);
  355. fGetBaseInfo();
  356. fGetStdVal();
  357. }
  358. /****************************************************************************************
  359. * Components : Button
  360. * Description : 조회
  361. ****************************************************************************************/
  362. function grp_biz_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  363. fGetStdVal();
  364. }
  365. /****************************************************************************************
  366. * Components : Button
  367. * Description : 저장
  368. ****************************************************************************************/
  369. function grp_btn_btn_save_onclick(obj:Button, e:ClickEventInfo) {
  370. fSaveVal();
  371. sysf_messageBox("저장 ", "I002");
  372. }
  373. function ds_main_stdval_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  374. {
  375. if(e.columnid=="stdm_multiacptyn" || e.columnid=="stdm_duplacptyn" || e.columnid=="stdm_prcptdayaftrcptyn" || e.columnid=="stdm_examformyn") {
  376. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  377. }
  378. if(e.columnid == "healexamdetlflag") {
  379. var healexamdetl = dsf_getColumnNullToEmpty(obj, e.row, e.columnid);
  380. grp_biz.grd_stdval.valueMatrix(grp_biz.grd_stdval.row , grp_biz.grd_stdval.colRef("healexamflag")) = healexamdetl.substr(0,1);
  381. obj.setColumn(e.row, "healexamflag", healexamdetl.substr(0,1));
  382. }
  383. }
  384. ]]></Script>
  385. </Form>
  386. </FDL>