SPMNC00900_공통진단수진이력조회.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNC00900" position="absolute 0 0 740 500" titletext="내원 진단 이력 조회" oninit="SPMNC00900_oninit" onload="SPMNC00900_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="등록번호" position="absolute 0 26 84 45" align="align:center middle;" id="caption31" class="cell_1" style="align:center middle;"/>
  8. <Button position="absolute 682 25 735 44" id="btn_closenewpat" class="btn2" text="닫 기" onclick="btn_closenewpat_onclick"/>
  9. <Shape position="absolute 0 46 735 52" linetype="horizontal" id="line1" class="line_10"/>
  10. <Static text="수진이력" position="absolute 0 0 100 25" id="caption6" class="tit_1"/>
  11. <Edit position="absolute 85 26 191 45" id="input1" enable="false"/>
  12. <Button position="absolute 626 25 679 44" id="button1" class="btn2" text="선 택" onclick="button1_onclick"/>
  13. <Grid position="absolute 0 51 736 491" align="align:center middle;" id="grd_otptlist" class="datagrid2" binddataset="ds_main_otptlists_otptlist" onmousemove="grd_otptlist_onmousemove" oncelldblclick="grd_otptlist_oncelldblclick" cellsizingtype="both" extendsizetype="row">
  14. <Formats>
  15. <Format id="default">
  16. <Columns>
  17. <Column size="25" band="left"/>
  18. <Column size="45"/>
  19. <Column size="82"/>
  20. <Column size="57"/>
  21. <Column size="104"/>
  22. <Column size="68"/>
  23. <Column size="48"/>
  24. <Column size="99"/>
  25. <Column size="204"/>
  26. <Column size="0"/>
  27. <Column size="0"/>
  28. <Column size="0"/>
  29. <Column size="0"/>
  30. </Columns>
  31. <Rows>
  32. <Row size="30" band="head"/>
  33. <Row size="24"/>
  34. </Rows>
  35. <Band id="head">
  36. <Cell/>
  37. <Cell col="1" text="구분"/>
  38. <Cell col="2" text="진료일자"/>
  39. <Cell col="3" text="진료시간"/>
  40. <Cell col="4" text="진료과"/>
  41. <Cell col="5" text="진료의"/>
  42. <Cell col="6" text="진단&#10;구분"/>
  43. <Cell col="7" text="진단코드"/>
  44. <Cell col="8" text="진단명"/>
  45. <Cell col="9" text="pid"/>
  46. <Cell col="10" text="cretno"/>
  47. <Cell col="11" text="org_orddd"/>
  48. <Cell col="12" text="org_indd"/>
  49. </Band>
  50. <Band id="body">
  51. <Cell celltype="head" text="expr:currow + 1"/>
  52. <Cell col="1" displaytype="combo" edittype="none" style="align:center middle;" text="bind:gubn" mask="####-##-##" combodataset="ds_gubn" combocodecol="value" combodatacol="label" enable="false"/>
  53. <Cell col="2" edittype="none" text="bind:orddd" enable="false"/>
  54. <Cell col="3" displaytype="normal" edittype="none" style="align:center middle;" text="bind:ordtm" mask="##:##" enable="false"/>
  55. <Cell col="4" displaytype="normal" edittype="none" style="align:center middle;" text="bind:orddeptnm" enable="false"/>
  56. <Cell col="5" displaytype="normal" edittype="none" style="align:center middle;" text="bind:orddrnm" enable="false"/>
  57. <Cell col="6" displaytype="combo" edittype="none" text="bind:genrflagcd" combodataset="ds_genrflagcd" combocodecol="value" combodatacol="label" enable="false"/>
  58. <Cell col="7" text="bind:diagcd" enable="false"/>
  59. <Cell col="8" style="align:left middle;" text="bind:diagnm" enable="true"/>
  60. <Cell col="9" text="bind:pid"/>
  61. <Cell col="10" text="bind:cretno"/>
  62. <Cell col="11" text="bind:org_orddd"/>
  63. <Cell col="12" text="bind:org_indd"/>
  64. </Band>
  65. </Format>
  66. </Formats>
  67. </Grid>
  68. <CheckBox position="absolute 196 25 296 45" id="checkbox1" text="가접수포함" truevalue="Y"/>
  69. <Static text="※ 주진단이 있는 수진이력만 조회 됩니다." position="absolute 301 26 571 46" id="caption1"/>
  70. </Layout>
  71. </Layouts>
  72. <Objects>
  73. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_cond_oncolumnchanged">
  74. <ColumnInfo>
  75. <Column id="pid" type="STRING" size="256"/>
  76. <Column id="orddd" type="STRING" size="256"/>
  77. <Column id="stat" type="STRING" size="256"/>
  78. <Column id="orddeptcd" type="STRING" size="256"/>
  79. <Column id="orddrid" type="STRING" size="256"/>
  80. </ColumnInfo>
  81. <Rows>
  82. <Row>
  83. <Col id="pid"/>
  84. <Col id="orddd"/>
  85. <Col id="stat"/>
  86. <Col id="orddeptcd"/>
  87. <Col id="orddrid"/>
  88. </Row>
  89. </Rows>
  90. </Dataset>
  91. <Dataset id="ds_main_otptlists_otptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  92. <ColumnInfo>
  93. <Column id="gubn" type="STRING" size="256"/>
  94. <Column id="orddd" type="STRING" size="256"/>
  95. <Column id="ordtm" type="STRING" size="256"/>
  96. <Column id="orddeptnm" type="STRING" size="256"/>
  97. <Column id="orddrnm" type="STRING" size="256"/>
  98. <Column id="genrflagcd" type="STRING" size="256"/>
  99. <Column id="diagcd" type="STRING" size="256"/>
  100. <Column id="diagnm" type="STRING" size="256"/>
  101. <Column id="pid" type="STRING" size="256"/>
  102. <Column id="cretno" type="STRING" size="256"/>
  103. <Column id="org_orddd" type="STRING" size="256"/>
  104. <Column id="org_indd" type="STRING" size="256"/>
  105. </ColumnInfo>
  106. <Rows>
  107. <Row>
  108. <Col id="gubn"/>
  109. <Col id="orddd"/>
  110. <Col id="ordtm"/>
  111. <Col id="orddeptnm"/>
  112. <Col id="orddrnm"/>
  113. <Col id="genrflagcd"/>
  114. <Col id="diagcd"/>
  115. <Col id="diagnm"/>
  116. <Col id="pid"/>
  117. <Col id="cretno"/>
  118. <Col id="org_orddd"/>
  119. <Col id="org_indd"/>
  120. </Row>
  121. </Rows>
  122. </Dataset>
  123. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  124. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  125. <ColumnInfo>
  126. <Column id="temp" type="STRING" size="256"/>
  127. </ColumnInfo>
  128. <Rows>
  129. <Row/>
  130. </Rows>
  131. </Dataset>
  132. <Dataset id="ds_gubn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  133. <ColumnInfo>
  134. <Column id="label" type="STRING" size="256"/>
  135. <Column id="value" type="STRING" size="256"/>
  136. </ColumnInfo>
  137. <Rows>
  138. <Row>
  139. <Col id="label">외래</Col>
  140. <Col id="value">O</Col>
  141. </Row>
  142. <Row>
  143. <Col id="label">입원</Col>
  144. <Col id="value">I</Col>
  145. </Row>
  146. </Rows>
  147. </Dataset>
  148. <Dataset id="ds_genrflagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  149. <ColumnInfo>
  150. <Column id="label" type="STRING" size="256"/>
  151. <Column id="value" type="STRING" size="256"/>
  152. </ColumnInfo>
  153. <Rows>
  154. <Row>
  155. <Col id="label">외래</Col>
  156. <Col id="value">O</Col>
  157. </Row>
  158. <Row>
  159. <Col id="label">입원</Col>
  160. <Col id="value">I</Col>
  161. </Row>
  162. <Row>
  163. <Col id="label">응급</Col>
  164. <Col id="value">E</Col>
  165. </Row>
  166. </Rows>
  167. </Dataset>
  168. </Objects>
  169. <Bind>
  170. <BindItem id="item0" compid="input1" propid="value" datasetid="ds_cond" columnid="pid"/>
  171. <BindItem id="item1" compid="checkbox1" propid="value" datasetid="ds_cond" columnid="stat"/>
  172. </Bind>
  173. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  174. * System Name :
  175. * Job Name :
  176. * Creator :
  177. * Make Date : 2015-11-13
  178. * Description :
  179. *---------------------------------------------------------------------------------------
  180. * Modify Date Modifier Modify Description
  181. *---------------------------------------------------------------------------------------
  182. * 2015-11-13 Live Converter TF->XP
  183. *
  184. *---------------------------------------------------------------------------------------
  185. ****************************************************************************************/
  186. include "com_commonxp::comm_main.xjs";
  187. var arErrorCode = new HashArray();
  188. function cf_TRMNC00900(sSvcId, nErrorCode, sErrorMsg) {
  189. arErrorCode.push(sSvcId, nErrorCode);
  190. if(nErrorCode < 0) return;
  191. utlf_addLog("***** cf_TRMNC00900 *****");
  192. }
  193. function SPMNC00900_oninit(obj:Form, e:InitEventInfo)
  194. {
  195. frmf_initForm(obj);
  196. }
  197. function SPMNC00900_onload(obj:Form, e:LoadEventInfo)
  198. {
  199. grdf_initGrid(grd_otptlist);
  200. fInit();
  201. }
  202. function fInit(){
  203. var sParam = opener.frmf_getParameter("SPMNC00900_searchcond");
  204. opener.frmf_setParameter("SPMNC00900_searchcond","");
  205. if( utlf_isNull(sParam) || sParam == "undefined"){
  206. alert("진단명을 생성할 환자 정보가 존재하지 않습니다.");
  207. this.close();
  208. }else{
  209. //===============================
  210. //넘어온 파라미터 정보
  211. //var param = sPid+"▦"+sOrddd;
  212. //===============================
  213. var sParamArr = utlf_transNullToEmpty(sParam).split("▦");
  214. ds_cond.setColumn(0, "pid" , sParamArr[0]);
  215. ds_cond.setColumn(0, "orddd" , sParamArr[1]);
  216. ds_cond.setColumn(0, "orddeptcd", sParamArr[2]);
  217. ds_cond.setColumn(0, "orddrid" , sParamArr[3]);
  218. fGetOtptInptDiagList();
  219. }
  220. }
  221. //해당 외래입원 수진이력 조회
  222. function fGetOtptInptDiagList(){
  223. ds_send.clearData();
  224. dsf_makeValue(ds_send,"pid" , "string", ds_cond.getColumn(0, "pid"));
  225. dsf_makeValue(ds_send,"orddd" , "string", ds_cond.getColumn(0, "orddd"));
  226. dsf_makeValue(ds_send,"orddeptcd" , "string", ds_cond.getColumn(0, "orddeptcd"));
  227. dsf_makeValue(ds_send,"orddrid" , "string", ds_cond.getColumn(0, "orddrid"));
  228. dsf_makeValue(ds_send,"stat" , "string", ds_cond.getColumn(0, "stat"));
  229. var oParam = {};
  230. oParam.id = "TRMNC00900";
  231. oParam.service = "homecareapp.HomeCare";
  232. oParam.method = "reqGetComOtptInptDiag";
  233. oParam.inds = "req=ds_send";
  234. oParam.outds = "ds_main_otptlists_otptlist=otptlist";
  235. oParam.async = false;
  236. oParam.callback = "cf_TRMNC00900";
  237. tranf_submit(oParam);
  238. if(arErrorCode.pop("TRMNC00900") > -1){
  239. if(ds_main_otptlists_otptlist.rowcount < 1){
  240. alert("선택할 수진이력이 존재하지 않습니다.");
  241. return;
  242. }
  243. }else{
  244. alert("수진이력 조회시 서버 오류가 발생 되었습니다.");
  245. return;
  246. }
  247. }
  248. function btn_closenewpat_onclick(obj:Button, e:ClickEventInfo)
  249. {
  250. this.close();
  251. }
  252. function button1_onclick(obj:Button, e:ClickEventInfo)
  253. {
  254. fOnClickOkBtn();
  255. }
  256. function fOnClickOkBtn(){
  257. var iGridCnt = ds_main_otptlists_otptlist.rowcount;
  258. if(iGridCnt < 1){
  259. alert("선택할 수진이력이 존재하지 않습니다.");
  260. return;
  261. }
  262. var iSelectCnt = 0;
  263. var iSelectPos = 0;
  264. for(var i = 0; i < iGridCnt; i++){
  265. if(ds_main_otptlists_otptlist.getSelect(i) == true) {
  266. iSelectCnt ++;
  267. iSelectPos = i;
  268. }
  269. }
  270. if(iSelectCnt > 1){
  271. alert("하나의 수진이력만 선택하셔야 합니다.");
  272. return;
  273. }else{
  274. var sGridXpath = "ds_main_otptlists_otptlist";
  275. var sPid = utlf_transNullToEmpty(ds_main_otptlists_otptlist.getColumn(iSelectPos, "pid"));
  276. var sOrddd = utlf_transNullToEmpty(ds_main_otptlists_otptlist.getColumn(iSelectPos, "org_orddd"));
  277. var sIndd = utlf_transNullToEmpty(ds_main_otptlists_otptlist.getColumn(iSelectPos, "org_indd"));
  278. var sCretno = utlf_transNullToEmpty(ds_main_otptlists_otptlist.getColumn(iSelectPos, "cretno"));
  279. var sGenrflagcd = utlf_transNullToEmpty(ds_main_otptlists_otptlist.getColumn(iSelectPos, "genrflagcd"));
  280. var sOrddeptcd = utlf_transNullToEmpty(ds_main_otptlists_otptlist.getColumn(iSelectPos, "orddeptcd")); //파라미터 추가_20100118_SMY
  281. //var param = sPid+"▦"+sOrddd+"▦"+sIndd+"▦"+sCretno+"▦"+sGenrflagcd;
  282. var param = sPid+"▦"+sOrddd+"▦"+sIndd+"▦"+sCretno+"▦"+sGenrflagcd+"▦"+sOrddeptcd;
  283. opener.frmf_setParameter("preDiagResult", param);
  284. this.close();
  285. }
  286. }
  287. function grd_otptlist_onmousemove(obj:Grid, e:GridMouseEventInfo)
  288. {
  289. if(e.row >-1 && e.col > -1){
  290. if(!utlf_isNull(grd_otptlist.getCellValue(e.row,e.col))){
  291. grd_otptlist.tooltiptext = grd_otptlist.getCellValue(e.row,e.col);
  292. }else{
  293. grd_otptlist.tooltiptext ="";
  294. }
  295. }
  296. }
  297. function grd_otptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  298. {
  299. fOnClickOkBtn();
  300. }
  301. function ds_cond_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  302. {
  303. if( e.columnid == "stat" ){
  304. obj.setColumn(0, "stat", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "");
  305. fGetOtptInptDiagList();
  306. }
  307. }
  308. ]]></Script>
  309. </Form>
  310. </FDL>