SMMNW00129_부적합검체 간호확인.xfdl 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNW00129" position="absolute 0 0 1190 385" titletext="부적합검체 간호 확인" oninit="SMMNW00129_oninit" onload="SMMNW00129_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button position="absolute 1115 5 1171 27" id="button1" class="btn4" text="확인" onclick="button1_onclick" anchor="top right"/>
  8. <Grid position="absolute 0 30 1185 380" id="grd_unablspclist" binddataset="ds_main_unablspclist" selecttype="multirow" anchor="all" cellsizingtype="col" autosizingtype="row" extendsizetype="row">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="30"/>
  13. <Column size="105"/>
  14. <Column size="80"/>
  15. <Column size="70"/>
  16. <Column size="70"/>
  17. <Column size="70"/>
  18. <Column size="270"/>
  19. <Column size="105"/>
  20. <Column size="70"/>
  21. <Column size="50"/>
  22. <Column size="130"/>
  23. <Column size="130"/>
  24. </Columns>
  25. <Rows>
  26. <Row size="24" band="head"/>
  27. <Row size="24"/>
  28. </Rows>
  29. <Band id="head">
  30. <Cell displaytype="checkbox" edittype="checkbox"/>
  31. <Cell col="1" text="처방일시"/>
  32. <Cell col="2" text="병동"/>
  33. <Cell col="3" text="환자번호"/>
  34. <Cell col="4" text="환자명"/>
  35. <Cell col="5" text="바코드번호"/>
  36. <Cell col="6" text="검사 항목"/>
  37. <Cell col="7" text="통보 일자"/>
  38. <Cell col="8" text="통보자"/>
  39. <Cell col="9" text="연락처"/>
  40. <Cell col="10" text="부적합 등록 사유"/>
  41. <Cell col="11" text="조치사항"/>
  42. </Band>
  43. <Band id="body">
  44. <Cell displaytype="checkbox" edittype="checkbox" text="bind:chkyn" expr="expr:(chkyn == &quot;Y&quot; || chkyn == 1) ? 1 : 0"/>
  45. <Cell col="1" text="bind:rgstdt" mask="expr:utlf_isNull(rgstdt) ? '' : '####-##-## ##:##'"/>
  46. <Cell col="2" style="align:left middle;padding:2 2 2 2;" text="bind:wardroom"/>
  47. <Cell col="3" style="align:center middle;" text="bind:pid"/>
  48. <Cell col="4" style="align:center middle;" text="bind:patnm"/>
  49. <Cell col="5" style="align:center middle;padding:2 2 2 2;" text="bind:bcno" wordwrap="word"/>
  50. <Cell col="6" style="align:left middle;" text="bind:tclslist"/>
  51. <Cell col="7" style="align:left middle;" text="bind:notidt" mask="expr:utlf_isNull(notidt) ? '' : '####-##-## ##:##'"/>
  52. <Cell col="8" style="align:center middle;" text="bind:fstrgstrnm"/>
  53. <Cell col="9" style="align:center middle;" text="bind:phone"/>
  54. <Cell col="10" style="align:left middle;" text="bind:spcstatdesc"/>
  55. <Cell col="11" style="align:left middle;" text="bind:measfact"/>
  56. </Band>
  57. </Format>
  58. </Formats>
  59. </Grid>
  60. </Layout>
  61. </Layouts>
  62. <Objects>
  63. <Dataset id="ds_main_unablspclist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_unablspclist_oncolumnchanged">
  64. <ColumnInfo>
  65. <Column id="chkyn" type="STRING" size="256"/>
  66. <Column id="rgstdt" type="STRING" size="256"/>
  67. <Column id="wardroom" type="STRING" size="256"/>
  68. <Column id="pid" type="STRING" size="256"/>
  69. <Column id="patnm" type="STRING" size="256"/>
  70. <Column id="bcno" type="STRING" size="256"/>
  71. <Column id="tclslist" type="STRING" size="256"/>
  72. <Column id="notidt" type="STRING" size="256"/>
  73. <Column id="fstrgstrnm" type="STRING" size="256"/>
  74. <Column id="phone" type="STRING" size="256"/>
  75. <Column id="spcstatdesc" type="STRING" size="256"/>
  76. <Column id="measfact" type="STRING" size="256"/>
  77. </ColumnInfo>
  78. <Rows>
  79. <Row>
  80. <Col id="chkyn"/>
  81. <Col id="rgstdt"/>
  82. <Col id="wardroom"/>
  83. <Col id="pid"/>
  84. <Col id="patnm"/>
  85. <Col id="bcno"/>
  86. <Col id="tclslist"/>
  87. <Col id="notidt"/>
  88. <Col id="fstrgstrnm"/>
  89. <Col id="phone"/>
  90. <Col id="spcstatdesc"/>
  91. <Col id="measfact"/>
  92. </Row>
  93. </Rows>
  94. </Dataset>
  95. <Dataset id="ds_param" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  96. <ColumnInfo>
  97. <Column id="pid" type="STRING" size="256"/>
  98. <Column id="indd" type="STRING" size="256"/>
  99. </ColumnInfo>
  100. <Rows>
  101. <Row>
  102. <Col id="pid"/>
  103. <Col id="indd"/>
  104. </Row>
  105. </Rows>
  106. </Dataset>
  107. <Dataset id="ds_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  108. <Dataset id="ds_resultcnt_rtn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  109. <ColumnInfo>
  110. <Column id="cnts" type="STRING" size="256"/>
  111. </ColumnInfo>
  112. <Rows>
  113. <Row>
  114. <Col id="cnts"/>
  115. </Row>
  116. </Rows>
  117. </Dataset>
  118. </Objects>
  119. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  120. * System Name :
  121. * Job Name :
  122. * Creator :
  123. * Make Date : 2015-11-13
  124. * Description :
  125. *---------------------------------------------------------------------------------------
  126. * Modify Date Modifier Modify Description
  127. *---------------------------------------------------------------------------------------
  128. * 2015-11-13 Live Converter TF->XP
  129. *
  130. *---------------------------------------------------------------------------------------
  131. ****************************************************************************************/
  132. include "com_commonxp::comm_main.xjs";
  133. var arErrorCode = new HashArray();
  134. function cf_TXMNW00129(sSvcId, nErrorCode, sErrorMsg) {
  135. arErrorCode.push(sSvcId, nErrorCode);
  136. if(nErrorCode < 0) return;
  137. utlf_addLog("***** cf_TXMNW00129 *****");
  138. }
  139. /*SMMNW00129_oninit*/
  140. function SMMNW00129_oninit(obj:Form, e:InitEventInfo)
  141. {
  142. frmf_initForm(obj);
  143. }
  144. /*SMMNW00129_onload*/
  145. function SMMNW00129_onload(obj:Form, e:LoadEventInfo)
  146. {
  147. var initPid = opener.frmf_getParameter("SMMNW00129_PARM_PID");
  148. var initIndd = opener.frmf_getParameter("SMMNW00129_PARM_INDD");
  149. ds_param.setColumn(0, "pid", initPid);
  150. ds_param.setColumn(0, "indd", initIndd);
  151. var oParam = {};
  152. oParam.id = "TRMNW00129";
  153. oParam.service = "wardcareapp.WardCareMngt";
  154. oParam.method = "reqGetUnablSpcList";
  155. oParam.inds = "req=ds_param";
  156. oParam.outds = "ds_main_unablspclist=unablspclist";
  157. oParam.async = false;
  158. tranf_submit(oParam);
  159. grdf_setAllCheck(grd_unablspclist);
  160. }
  161. /*button1_onclick*/
  162. function button1_onclick(obj:Button, e:ClickEventInfo)
  163. {
  164. var usrNm = sysf_getUserInfo("usernm");
  165. var wardNm = sysf_getUserInfo("dutplcenm");
  166. dsf_copyDs(ds_savedata, ds_main_unablspclist);
  167. var chkCount = 0;
  168. for(var i = 0 ; i < ds_main_unablspclist.rowcount; i++){
  169. if ( ds_main_unablspclist.getColumn(i, "chkyn") == "Y") {
  170. chkCount ++;
  171. }
  172. }
  173. if (chkCount < 1 ) {
  174. sysf_messageBox("확인할 부적합 검체를 선택 하십시요 !", "E");
  175. return;
  176. }
  177. if ("7" == sysf_messageBox("선택한 부적합 검체 확인 내역을 ", "Q002"))
  178. {
  179. return;
  180. }
  181. var oParam = {};
  182. oParam.id = "TXMNW00129";
  183. oParam.service = "wardcareapp.WardCareMngt";
  184. oParam.method = "reqInsUnablSpcInfo";
  185. oParam.inds = "unablspclist=ds_savedata";
  186. oParam.outds = "ds_resultcnt_rtn=rtn";
  187. oParam.async = false;
  188. oParam.callback = "cf_TXMNW00129";
  189. tranf_submit(oParam);
  190. if(arErrorCode.pop("TXMNW00129") > -1){
  191. var rtnCnts = ds_resultcnt_rtn.getColumn(0, "cnts");
  192. if ("6" == sysf_messageBox("부적합 검체 ["+ rtnCnts +"] 건 확인 되었습니다.\n\n바코드출력 화면으로 이동하시겠습니까?", "Q")){
  193. frmf_modal("SMLLC00200","SMLLC00200","", 1, 50, 50,"","", "", "", "", "", "M");
  194. }
  195. var oParam = {};
  196. oParam.id = "TRMNW00129";
  197. oParam.service = "wardcareapp.WardCareMngt";
  198. oParam.method = "reqGetUnablSpcList";
  199. oParam.inds = "req=ds_param";
  200. oParam.outds = "ds_main_unablspclist=unablspclist";
  201. oParam.async = false;
  202. tranf_submit(oParam);
  203. }
  204. }
  205. /*ds_main_unablspclist_oncolumnchanged*/
  206. function ds_main_unablspclist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  207. {
  208. if ( e.columnid == "chkyn" ) {
  209. var currow = e.row;
  210. obj.setColumn(currow, e.columnid, (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  211. }
  212. }
  213. ]]></Script>
  214. </Form>
  215. </FDL>