SMPMC01200_중증환자관리.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMC01200" position="absolute 0 0 1211 820" titletext="중증환자관리" onload="SMPMC01200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" scrollbars="autoboth" position="absolute 0 23 1195 775" style="">
  8. <Layouts>
  9. <Layout>
  10. <Div id="group2" scrollbars="autoboth" position="absolute 0 7 1195 751" style="" anchor="default">
  11. <Layouts>
  12. <Layout>
  13. <Div id="group6" position="absolute 0 206 1195 744" style="" anchor="default">
  14. <Layouts>
  15. <Layout>
  16. <Static id="caption46" class="tit_2" position="absolute 5 7 137 24" style="" text="중증도내역 리스트" anchor="default"/>
  17. <Shape id="line18" class="line_10" linetype="horizontal" position="absolute 0 27 1194 31" style="" anchor="default"/>
  18. <Button id="btn_addRow" class="btn2" position="absolute 996 4 1049 23" style="" text="행추가" onclick="group3_group2_group6_btn_addRow_onclick" anchor="default"/>
  19. <Button id="btn_delRow" class="btn5" position="absolute 1052 4 1105 23" style="" text="행삭제" onclick="group3_group2_group6_btn_delRow_onclick" anchor="default"/>
  20. <Button id="btn_save" class="btn5" position="absolute 1108 4 1194 23" style="" text="중증내역저장" onclick="group3_group2_group6_btn_save_onclick" anchor="default"/>
  21. <Grid id="grd_serDiag" binddataset="ds_main_serdiagspec_serdiagspeclist" position="absolute 0 30 1194 534" style="" ontextchanged="group3_group2_group6_grd_serDiag_ontextchanged" anchor="default">
  22. <Formats>
  23. <Format id="default">
  24. <Columns>
  25. <Column size="24"/>
  26. <Column size="80"/>
  27. <Column size="84"/>
  28. <Column size="84"/>
  29. <Column size="84"/>
  30. <Column size="100"/>
  31. <Column size="65"/>
  32. <Column size="60"/>
  33. <Column size="120"/>
  34. <Column size="84"/>
  35. <Column size="84"/>
  36. <Column size="80"/>
  37. <Column size="80"/>
  38. <Column size="120"/>
  39. <Column size="0"/>
  40. <Column size="0"/>
  41. <Column size="0"/>
  42. <Column size="0"/>
  43. </Columns>
  44. <Rows>
  45. <Row size="25" band="head"/>
  46. <Row size="25"/>
  47. </Rows>
  48. <Band id="head">
  49. <Cell/>
  50. <Cell col="1" text="보험구분"/>
  51. <Cell col="2" text="보조유형"/>
  52. <Cell col="3" text="시작일자"/>
  53. <Cell col="4" text="종료일자"/>
  54. <Cell col="5" text="중증등록번호"/>
  55. <Cell col="6" text="신청자명"/>
  56. <Cell col="7" text="관계"/>
  57. <Cell col="8" text="참고사항"/>
  58. <Cell col="9" text="접수일자"/>
  59. <Cell col="10" text="접수시간"/>
  60. <Cell col="11" text="접수자ID"/>
  61. <Cell col="12" text="최종수정자ID"/>
  62. <Cell col="13" text="최종수정일시"/>
  63. <Cell col="14" text="환자등록번호"/>
  64. <Cell col="15" text="최초등록자ID"/>
  65. <Cell col="16" text="최초등록일시"/>
  66. <Cell col="17" text="일련번호"/>
  67. </Band>
  68. <Band id="body">
  69. <Cell expr="currow + 1"/>
  70. <Cell col="1" displaytype="combo" edittype="combo" style="align:left middle;" text="bind:insuflag" combodataset="ds_init_P0315list_P0315" combocodecol="cdid" combodatacol="cdnm"/>
  71. <Cell col="2" displaytype="combo" edittype="combo" style="align:left middle;" text="bind:suppkind" combodataset="ds_init_P0317list_P0317" combocodecol="cdid" combodatacol="cdnm"/>
  72. <Cell col="3" displaytype="date" edittype="date" style="align:left middle;" text="bind:fromdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  73. <Cell col="4" displaytype="date" edittype="date" style="align:left middle;" text="bind:todd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  74. <Cell col="5" edittype="text" style="align:left middle;" text="bind:seridiagno"/>
  75. <Cell col="6" edittype="text" style="align:left middle;" text="bind:apppsnnm"/>
  76. <Cell col="7" displaytype="combo" edittype="combo" style="align:left middle;" text="bind:rela" combodataset="ds_init_P0016list_P0016" combocodecol="cdid" combodatacol="cdnm"/>
  77. <Cell col="8" edittype="text" style="align:left middle;" text="bind:remfact"/>
  78. <Cell col="9" displaytype="date" style="align:left middle;" text="bind:acptdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  79. <Cell col="10" displaytype="date" style="align:left middle;" text="bind:acpttm" mask="HH:mm:ss" calendardisplaynulltype="nulltext"/>
  80. <Cell col="11" style="align:left middle;" text="bind:acptid"/>
  81. <Cell col="12" style="align:left middle;" text="bind:lastupdtrid"/>
  82. <Cell col="13" displaytype="date" edittype="none" style="align:left middle;" text="bind:lastupdtdt" mask="yyyy-MM-dd HH:mm:ss" calendardisplaynulltype="nulltext"/>
  83. <Cell col="14" text="bind:pid"/>
  84. <Cell col="15" text="bind:fstrgstrid"/>
  85. <Cell col="16" displaytype="date" text="bind:fstrgstdt" mask="yyyy-MM-dd HH:mm:ss" calendardisplaynulltype="nulltext"/>
  86. <Cell col="17" text="bind:seqno"/>
  87. </Band>
  88. </Format>
  89. </Formats>
  90. </Grid>
  91. </Layout>
  92. </Layouts>
  93. </Div>
  94. <Div id="import1" url="pam_patinfomngtxp::SSPMC00100_인적사항.xfdl" position="absolute 0 -2 1195 206" style="" anchor="default"/>
  95. </Layout>
  96. </Layouts>
  97. </Div>
  98. </Layout>
  99. </Layouts>
  100. </Div>
  101. <Div id="group4" scrollbars="autoboth" position="absolute 0 771 1195 798" style="">
  102. <Layouts>
  103. <Layout>
  104. <Button id="btn_copyRow0" class="btn4" position="absolute 1126 5 1194 27" style="" text="초기화" onclick="group4_btn_copyRow0_onclick" anchor="default"/>
  105. <Shape id="line32" class="line_6" linetype="horizontal" position="absolute 0 0 1194 3" style="" anchor="default"/>
  106. <Shape id="line20" class="line_6" linetype="horizontal" position="absolute 0 0 1194 3" style="" anchor="default"/>
  107. </Layout>
  108. </Layouts>
  109. </Div>
  110. <Static id="caption4" class="patient_text_black" position="absolute 862 4 1192 20"/>
  111. <Static id="caption6" text="중증도환자관리" class="tit_1" position="absolute 0 0 140 25"/>
  112. </Layout>
  113. </Layouts>
  114. <Objects>
  115. <Dataset id="ds_send_updatedata_datalist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  116. <ColumnInfo/>
  117. </Dataset>
  118. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  119. <ColumnInfo>
  120. <Column id="result" type="STRING" size="256"/>
  121. </ColumnInfo>
  122. <Rows>
  123. <Row>
  124. <Col id="result"/>
  125. </Row>
  126. </Rows>
  127. </Dataset>
  128. <Dataset id="ds_init_P0315list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  129. <ColumnInfo/>
  130. </Dataset>
  131. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  132. <ColumnInfo/>
  133. </Dataset>
  134. <Dataset id="ds_init_P0016list_P0016" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  135. <ColumnInfo>
  136. <Column id="cdnm" type="STRING" size="256"/>
  137. <Column id="cdid" type="STRING" size="256"/>
  138. </ColumnInfo>
  139. <Rows>
  140. <Row>
  141. <Col id="cdnm"/>
  142. <Col id="cdid"/>
  143. </Row>
  144. </Rows>
  145. </Dataset>
  146. <Dataset id="ds_main_serdiagspec_serdiagspeclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  147. <ColumnInfo/>
  148. </Dataset>
  149. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  150. <ColumnInfo>
  151. <Column id="pid" type="STRING" size="256"/>
  152. <Column id="insuflag" type="STRING" size="256"/>
  153. <Column id="suppkind" type="STRING" size="256"/>
  154. <Column id="fromdd" type="STRING" size="256"/>
  155. <Column id="instcd" type="STRING" size="256"/>
  156. </ColumnInfo>
  157. <Rows>
  158. <Row>
  159. <Col id="pid"/>
  160. <Col id="insuflag"/>
  161. <Col id="suppkind"/>
  162. <Col id="fromdd"/>
  163. <Col id="instcd"/>
  164. </Row>
  165. </Rows>
  166. </Dataset>
  167. <Dataset id="ds_init_P0317list_P0317" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  168. <ColumnInfo>
  169. <Column id="cdnm" type="STRING" size="256"/>
  170. <Column id="cdid" type="STRING" size="256"/>
  171. </ColumnInfo>
  172. <Rows>
  173. <Row>
  174. <Col id="cdnm"/>
  175. <Col id="cdid"/>
  176. </Row>
  177. </Rows>
  178. </Dataset>
  179. <Dataset id="ds_init_P0315list_P0315" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  180. <ColumnInfo>
  181. <Column id="cdnm" type="STRING" size="256"/>
  182. <Column id="cdid" type="STRING" size="256"/>
  183. </ColumnInfo>
  184. <Rows>
  185. <Row>
  186. <Col id="cdnm"/>
  187. <Col id="cdid"/>
  188. </Row>
  189. </Rows>
  190. </Dataset>
  191. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  192. <ColumnInfo>
  193. <Column id="tmp" type="STRING" size="256"/>
  194. </ColumnInfo>
  195. </Dataset>
  196. <Dataset id="ds_init_P0016list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  197. <ColumnInfo/>
  198. </Dataset>
  199. <Dataset id="ds_init_P0317list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  200. <ColumnInfo/>
  201. </Dataset>
  202. <Dataset id="ds_hidden_tmp_serdiagspeclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  203. </Objects>
  204. <Bind/>
  205. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs"
  206. include "com_basiccodexp::ZBC001.xjs"
  207. var arErrorCode = new HashArray();
  208. function SMPMC01200_onload(obj: Form, e: LoadEventInfo) {
  209. frmf_initForm(obj);
  210. grdf_initGrid(group3.group2.group6.grd_serDiag);
  211. var arrParam = [
  212. {dsNm: "ds_init_P0317list_P0317", cdGrpId: "P0317"},
  213. {dsNm: "ds_init_P0016list_P0016", cdGrpId: "P0016"},
  214. {dsNm: "ds_init_P0315list_P0315", cdGrpId: "P0315"}
  215. ];
  216. appf_getCodeList(arrParam);
  217. //2007.7.23 - 이동식 추가
  218. //다른곳에서 화면 호출 조회
  219. var pid = ds_source.getColumn(0, "pid");
  220. if (pid != "") {
  221. group3.group2.import1.group5.ipt_pid.text = pid;
  222. fSearchPatInfo();
  223. }
  224. }
  225. //중증도 내역 검색
  226. function fSearch() {
  227. if (ds_main.getColumn(0, "popupendflag") == "ok") {
  228. var pid = String(ds_main_patinfo_patinfolist.getColumn(0, "pid"));
  229. if (pid.length <= 0) {
  230. sysf_messageBox("환자번호가 정확이 입력되지", "E007");
  231. return false;
  232. }
  233. ds_send.setColumn(0, "pid", pid);
  234. var oParam = {};
  235. oParam.id = "TRPMC01201";
  236. oParam.service = "patinfomngtapp.SerDiagPat";
  237. oParam.method = "reqGetSerDiagSpec";
  238. oParam.inds = "req=ds_send";
  239. oParam.outds = "ds_main_serdiagspec_serdiagspeclist=serdiagspeclist";
  240. oParam.async = false;
  241. tranf_submit(oParam);
  242. var rowCnt = ds_main_serdiagspec_serdiagspeclist.rowcount;
  243. if (rowCnt < 1) {
  244. fAddRow();
  245. }
  246. }
  247. }
  248. //중증도내역 테이블에 한 행을 추가하고 숨긴 컬럼 값을 세팅한다.
  249. function fAddRow() {
  250. var pid = String(ds_main_patinfo_patinfolist.getColumn(0, "pid"));
  251. if (pid.length >= 0) {
  252. group3.group2.group6.grd_serDiag.addRow();
  253. var bottom = ds_main_serdiagspec_serdiagspeclist.addRow();
  254. ds_main_serdiagspec_serdiagspeclist.setColumn(bottom, "pid", pid);
  255. var curDate = utlf_getCurrentDate();
  256. ds_main_serdiagspec_serdiagspeclist.setColumn(bottom, "fromdd", curDate);
  257. ds_main_serdiagspec_serdiagspeclist.setColumn(bottom, "todd", utlf_getDateTime(curDate.toDate().getAddDate(5, "Y"), "D"));
  258. return true;
  259. }
  260. else {
  261. sysf_messageBox("환자번호가 정확이 입력되지", "E007");
  262. return false;
  263. }
  264. }
  265. function group3_group2_group6_btn_addRow_onclick(obj: Button, e: ClickEventInfo) {
  266. fAddRow();
  267. }
  268. function group3_group2_group6_btn_delRow_onclick(obj: Button, e: ClickEventInfo) {
  269. if (sysf_messageBox("선택된 행의 중증도내역을", "Q001") != 6) return;
  270. var cur_row = ds_main_serdiagspec_serdiagspeclist.rowposition;
  271. if (cur_row >= 0) {
  272. //디비에 저장되지 않은 데이타는 그냥 삭제한다.
  273. if (ds_main_serdiagspec_serdiagspeclist.getRowType(cur_row) == Dataset.ROWTYPE_INSERT) {
  274. ds_main_serdiagspec_serdiagspeclist.deleterRow(cur_row);
  275. return;
  276. }
  277. ds_main_serdiagspec_serdiagspeclist.setRowType(cur_row, Dataset.ROWTYPE_DELETE);
  278. var update = grdf_getGridUpdateData(group3.group2.group6.grd_serDiag, "delete");
  279. ds_send_updatedata_datalist.copyData(update);
  280. var oParam = {};
  281. oParam.id = "TXPMC01202";
  282. oParam.service = "patinfomngtapp.SerDiagPat";
  283. oParam.method = "reqExeSerDiagSpec";
  284. oParam.inds = "req=ds_send_updatedata_datalist";
  285. oParam.outds = "ds_main_serdiagspec_serdiagspeclist=serdiagspeclist";
  286. oParam.async = false;
  287. oParam.callback = "cf_TXPMC01202";
  288. tranf_submit(oParam);
  289. if (arErrorCode.pop("TXPMC01202") > -1) {
  290. ds_main_serdiagspec_serdiagspeclist.deleteRow(cur_row);
  291. }
  292. else {
  293. ds_send_updatedata_datalist.setRowType(cur_row, Dataset.ROWTYPE_NORMAL);
  294. }
  295. }
  296. }
  297. function cf_TXPMC01202(sSvcId, nErrorCode, sErrorMsg) {
  298. arErrorCode.push(sSvcId, nErrorCode);
  299. }
  300. function group3_group2_group6_btn_save_onclick(obj: Button, e: ClickEventInfo) {
  301. var datasetAll = grdf_getGridUpdateData(group3.group2.group6.grd_serDiag, "all");
  302. ds_send_updatedata_datalist.copyData(datasetAll);
  303. var oParam = {};
  304. oParam.id = "TXPMC01202";
  305. oParam.service = "patinfomngtapp.SerDiagPat";
  306. oParam.method = "reqExeSerDiagSpec";
  307. oParam.inds = "req=ds_send_updatedata_datalist";
  308. oParam.outds = "ds_hidden_tmp_serdiagspeclist=serdiagspeclist";
  309. oParam.async = false;
  310. oParam.callback = "cf_TXPMC01202";
  311. tranf_submit(oParam);
  312. if (arErrorCode.pop("TXPMC01202") > -1) {
  313. ds_main_serdiagspec_serdiagspeclist.copyData(ds_hidden_tmp);
  314. }
  315. }
  316. function group3_group2_group6_grd_serDiag_ontextchanged(obj: Grid, e: GridEditTextChangedEventInfo) {
  317. var cur_row = ds_main_serdiagspec_serdiagspeclist.rowposition;
  318. if (cur_row >= 0) {
  319. if (ds_main_serdiagspec_serdiagspeclist.getColumn(0, "rela") == '1') { // 본인 이라면
  320. ds_main_serdiagspec_serdiagspeclist.setColumn(0, "apppsnnm", ds_main_patinfo_patinfolist.getColumn(0, "hngnm"));
  321. }
  322. }
  323. }
  324. function group4_btn_copyRow0_onclick(obj: Button, e: ClickEventInfo) {
  325. ds_main_serdiagspec_serdiagspeclist.clearData();
  326. ds_main_patinfo_patinfolist.clearData();
  327. ds_main_patinfo_patinfolist.addRow();
  328. group3.group2.import1.group5.ipt_pid.setFocus();
  329. }]]></Script>
  330. </Form>
  331. </FDL>