SPMNP03200_응급불출리스트.xfdl 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNP03200" position="absolute 0 0 1256 805" titletext="수술실 물품 응급불출 관리" oninit="SPMNP03200_oninit" onload="SPMNP03200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1195 25" id="grp_tle">
  8. <Layouts>
  9. <Layout>
  10. <Static text="수술실 물품 응급불출 관리" position="absolute 0 0 248 25" id="cap_title" class="tit_1"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 0 18 1195 760" id="grp_biz" scrollbars="autoboth">
  15. <Layouts>
  16. <Layout>
  17. <Div position="absolute 0 7 1194 39" align="align:center top;" id="grp_sea" class="div_SA">
  18. <Layouts>
  19. <Layout>
  20. <Static text="조회일자 :" position="absolute 10 8 81 25" id="caption26" class="search_name" anchor="default"/>
  21. <Button position="absolute 1125 7 1181 29" id="btn_search" class="btn1" text="조회" anchor="default" onclick="grp_biz_grp_sea_btn_search_onclick"/>
  22. <Shape position="absolute 1112 7 1118 27" linetype="vertical" id="line13" class="line_4" anchor="default"/>
  23. <Static text="수 술 방 :" position="absolute 445 8 513 25" id="caption1" class="search_name" anchor="default"/>
  24. <Calendar position="absolute 86 6 193 25" align="align:center middle;" id="ipt_fromdd" class="input_essential" mask="yyyy-mm-dd" anchor="default" style="align:center middle;" autoselect="true" autoskip="true"/>
  25. <Combo position="absolute 577 7 632 26" align="align:left middle;" id="cmb_oproomlist" class="combo_search" innerdataset="@ds_init_oproomlist" datacolumn="oproomnm" codecolumn="oproomcd" anchor="default"/>
  26. <Static text="부서구분 :" position="absolute 220 8 291 25" id="caption2" class="search_name" anchor="default"/>
  27. <Combo position="absolute 517 7 572 26" id="cmb_rosette" class="combo_search" innerdataset="@ds_init_rosettelist" datacolumn="rosettenm" codecolumn="rosettecd" anchor="default" onitemchanged="grp_biz_grp_sea_cmb_rosette_onitemchanged"/>
  28. <Combo position="absolute 296 7 371 26" id="combo1" class="combo_search" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default">
  29. <Dataset id="innerdataset">
  30. <ColumnInfo>
  31. <Column id="codecolumn"/>
  32. <Column id="datacolumn"/>
  33. </ColumnInfo>
  34. <Rows>
  35. <Row>
  36. <Col id="codecolumn">O</Col>
  37. <Col id="datacolumn">수술</Col>
  38. </Row>
  39. <Row>
  40. <Col id="codecolumn">A</Col>
  41. <Col id="datacolumn">마취</Col>
  42. </Row>
  43. <Row>
  44. <Col id="codecolumn">R</Col>
  45. <Col id="datacolumn">회복</Col>
  46. </Row>
  47. <Row>
  48. <Col id="codecolumn">E</Col>
  49. <Col id="datacolumn">안과</Col>
  50. </Row>
  51. </Rows>
  52. </Dataset>
  53. </Combo>
  54. </Layout>
  55. </Layouts>
  56. </Div>
  57. <Shape position="absolute 0 66 1194 72" linetype="horizontal" id="line1" class="line_10"/>
  58. <Grid position="absolute 0 70 1194 735" id="grd_erlist" class="datagrid2" binddataset="ds_main_reqerlist" selecttype="multirow" cellsizingtype="both" extendsizetype="row">
  59. <Formats>
  60. <Format id="default">
  61. <Columns>
  62. <Column size="25" band="left"/>
  63. <Column size="38"/>
  64. <Column size="38"/>
  65. <Column size="38"/>
  66. <Column size="35"/>
  67. <Column size="38"/>
  68. <Column size="38"/>
  69. <Column size="120"/>
  70. <Column size="45"/>
  71. <Column size="65"/>
  72. <Column size="70"/>
  73. <Column size="45"/>
  74. <Column size="117"/>
  75. <Column size="65"/>
  76. <Column size="80"/>
  77. <Column size="38"/>
  78. <Column size="122"/>
  79. <Column size="80"/>
  80. <Column size="80"/>
  81. <Column size="80"/>
  82. <Column size="50"/>
  83. <Column size="122"/>
  84. <Column size="0"/>
  85. <Column size="0"/>
  86. </Columns>
  87. <Rows>
  88. <Row size="33" band="head"/>
  89. <Row size="24"/>
  90. </Rows>
  91. <Band id="head">
  92. <Cell style="linespace:2;"/>
  93. <Cell col="1" style="linespace:2;" text="Cart&#10;상태"/>
  94. <Cell col="2" style="linespace:2;" text="진행&#10;상태"/>
  95. <Cell col="3" displaytype="checkbox" edittype="checkbox" style="linespace:2;"/>
  96. <Cell col="4" style="linespace:2;" text="불출&#10;수량"/>
  97. <Cell col="5" style="linespace:2;" text="미불출&#10;수량"/>
  98. <Cell col="6" style="linespace:2;" text="수술&#10;방"/>
  99. <Cell col="7" style="linespace:2;" text="수술일시"/>
  100. <Cell col="8" style="linespace:2;" text="집도과"/>
  101. <Cell col="9" style="linespace:2;" text="환자명"/>
  102. <Cell col="10" style="linespace:2;" text="등록번호"/>
  103. <Cell col="11" style="linespace:2;" text="S/A"/>
  104. <Cell col="12" style="linespace:2;" text="수술명"/>
  105. <Cell col="13" style="linespace:2;" text="집도의"/>
  106. <Cell col="14" style="linespace:2;" text="물품코드"/>
  107. <Cell col="15" style="linespace:2;" text="SUB"/>
  108. <Cell col="16" style="linespace:2;" text="물품명"/>
  109. <Cell col="17" style="linespace:2;" text="규격"/>
  110. <Cell col="18" style="linespace:2;" text="모델"/>
  111. <Cell col="19" style="linespace:2;" text="제조원"/>
  112. <Cell col="20" style="linespace:2;" text="단위"/>
  113. <Cell col="21" style="linespace:2;" text="미불출사유"/>
  114. <Cell col="22" text="상태값"/>
  115. <Cell col="23" text="수술방코드"/>
  116. </Band>
  117. <Band id="body">
  118. <Cell celltype="head" text="expr:currow + 1"/>
  119. <Cell col="1" style="align:center middle;" text="bind:ccrtstatnm"/>
  120. <Cell col="2" style="align:center middle;" text="bind:opstatnm"/>
  121. <Cell col="3" displaytype="checkbox" edittype="checkbox" style="align:center middle;" text="bind:chkflag" expr="expr:expr:(chkflag == &quot;true&quot; || chkflag == 1) ? 1 : 0"/>
  122. <Cell col="4" displaytype="text" edittype="text" style="align:right middle;" text="bind:deliveqty" editautoselect="true"/>
  123. <Cell col="5" style="align:right middle;" text="bind:undeliveqty"/>
  124. <Cell col="6" style="align:center middle;" text="bind:oproomnm"/>
  125. <Cell col="7" style="align:center middle;" text="bind:opcnfmdt" mask="####-##-## ##:##"/>
  126. <Cell col="8" style="align:center top;padding:3 2 2 2;linespace:2;" text="bind:perfdeptnm" wordwrap="word"/>
  127. <Cell col="9" style="align:center middle;" text="bind:patnm"/>
  128. <Cell col="10" style="align:center middle;" text="bind:pid"/>
  129. <Cell col="11" style="align:center middle;" text="bind:sa"/>
  130. <Cell col="12" style="align:left top;padding:3 2 2 2;linespace:2;" text="bind:opnm" wordwrap="word"/>
  131. <Cell col="13" style="align:center middle;" text="bind:perfnm"/>
  132. <Cell col="14" style="align:center middle;" text="bind:goodcd"/>
  133. <Cell col="15" style="align:center middle;" text="bind:allsizespecid"/>
  134. <Cell col="16" style="align:left top;padding:3 2 2 2;linespace:2;" text="bind:goodnm" wordwrap="word"/>
  135. <Cell col="17" style="align:left top;padding:3 2 2 2;linespace:2;" text="bind:goodspec" wordwrap="word"/>
  136. <Cell col="18" style="align:left middle;" text="bind:goodmodel"/>
  137. <Cell col="19" style="align:left top;padding:3 2 2 2;linespace:2;" text="bind:prodcmpynm" wordwrap="word"/>
  138. <Cell col="20" style="align:center middle;" text="bind:prcpunit"/>
  139. <Cell col="21" displaytype="text" edittype="text" text="bind:undeliveresn"/>
  140. <Cell col="22" text="bind:oprsrvno"/>
  141. <Cell col="23" text="bind:oproomcd"/>
  142. </Band>
  143. </Format>
  144. </Formats>
  145. </Grid>
  146. <Button position="absolute 1106 45 1192 64" id="btn_delivecnfm" class="btn5" text="응급불출확정" onclick="grp_biz_btn_delivecnfm_onclick"/>
  147. <Static text="수술실 물품 응급불출 리스트" position="absolute 0 50 191 66" id="caption12" class="tit_2"/>
  148. </Layout>
  149. </Layouts>
  150. </Div>
  151. </Layout>
  152. </Layouts>
  153. <Objects>
  154. <Dataset id="ds_init_oproomlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  155. <ColumnInfo>
  156. <Column id="oproomcd" type="STRING" size="256"/>
  157. <Column id="oproomnm" type="STRING" size="256"/>
  158. </ColumnInfo>
  159. <Rows>
  160. <Row/>
  161. </Rows>
  162. </Dataset>
  163. <Dataset id="ds_init_rosettelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  164. <ColumnInfo>
  165. <Column id="rosettenm" type="STRING" size="256"/>
  166. <Column id="rosettecd" type="STRING" size="256"/>
  167. </ColumnInfo>
  168. <Rows>
  169. <Row/>
  170. </Rows>
  171. </Dataset>
  172. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  173. <ColumnInfo>
  174. <Column id="refdd" type="STRING" size="256"/>
  175. <Column id="oproomcd" type="STRING" size="256"/>
  176. <Column id="goodcd" type="STRING" size="256"/>
  177. <Column id="allsizespecid" type="STRING" size="256"/>
  178. <Column id="goodnm" type="STRING" size="256"/>
  179. <Column id="deptflag" type="STRING" size="256"/>
  180. <Column id="fromdd" type="STRING" size="256"/>
  181. <Column id="todd" type="STRING" size="256"/>
  182. <Column id="oprosette" type="STRING" size="256"/>
  183. <Column id="openflag" type="STRING" size="256"/>
  184. </ColumnInfo>
  185. <Rows>
  186. <Row>
  187. <Col id="refdd"/>
  188. <Col id="oproomcd"/>
  189. <Col id="goodcd"/>
  190. <Col id="allsizespecid"/>
  191. <Col id="goodnm"/>
  192. <Col id="deptflag">O</Col>
  193. <Col id="fromdd"/>
  194. <Col id="todd"/>
  195. <Col id="oprosette"/>
  196. <Col id="openflag"/>
  197. </Row>
  198. </Rows>
  199. </Dataset>
  200. <Dataset id="ds_main_reqerlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_reqerlist_oncolumnchanged">
  201. <ColumnInfo>
  202. <Column id="ccrtstatnm" type="STRING" size="256"/>
  203. <Column id="opstatnm" type="STRING" size="256"/>
  204. <Column id="oproomnm" type="STRING" size="256"/>
  205. <Column id="opcnfmdt" type="STRING" size="256"/>
  206. <Column id="perfdeptnm" type="STRING" size="256"/>
  207. <Column id="patnm" type="STRING" size="256"/>
  208. <Column id="pid" type="STRING" size="256"/>
  209. <Column id="sa" type="STRING" size="256"/>
  210. <Column id="opnm" type="STRING" size="256"/>
  211. <Column id="perfnm" type="STRING" size="256"/>
  212. <Column id="goodcd" type="STRING" size="256"/>
  213. <Column id="allsizespecid" type="STRING" size="256"/>
  214. <Column id="goodnm" type="STRING" size="256"/>
  215. <Column id="goodspec" type="STRING" size="256"/>
  216. <Column id="goodmodel" type="STRING" size="256"/>
  217. <Column id="prodcmpynm" type="STRING" size="256"/>
  218. <Column id="prcpunit" type="STRING" size="256"/>
  219. <Column id="chkflag" type="STRING" size="256"/>
  220. <Column id="deliveqty" type="STRING" size="256"/>
  221. <Column id="undeliveqty" type="STRING" size="256"/>
  222. <Column id="undeliveresn" type="STRING" size="256"/>
  223. <Column id="oprsrvno" type="STRING" size="256"/>
  224. <Column id="oproomcd" type="STRING" size="256"/>
  225. </ColumnInfo>
  226. <Rows>
  227. <Row>
  228. <Col id="ccrtstatnm"/>
  229. <Col id="opstatnm"/>
  230. <Col id="oproomnm"/>
  231. <Col id="opcnfmdt"/>
  232. <Col id="perfdeptnm"/>
  233. <Col id="patnm"/>
  234. <Col id="pid"/>
  235. <Col id="sa"/>
  236. <Col id="opnm"/>
  237. <Col id="perfnm"/>
  238. <Col id="goodcd"/>
  239. <Col id="allsizespecid"/>
  240. <Col id="goodnm"/>
  241. <Col id="goodspec"/>
  242. <Col id="goodmodel"/>
  243. <Col id="prodcmpynm"/>
  244. <Col id="prcpunit"/>
  245. <Col id="chkflag"/>
  246. <Col id="deliveqty"/>
  247. <Col id="undeliveqty"/>
  248. <Col id="undeliveresn"/>
  249. <Col id="oprsrvno"/>
  250. <Col id="oproomcd"/>
  251. </Row>
  252. </Rows>
  253. </Dataset>
  254. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  255. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  256. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  257. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  258. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  259. </Objects>
  260. <Bind>
  261. <BindItem id="item0" compid="grp_biz.grp_sea.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  262. <BindItem id="item1" compid="grp_biz.grp_sea.cmb_oproomlist" propid="value" datasetid="ds_main_cond" columnid="oproomcd"/>
  263. <BindItem id="item2" compid="grp_biz.grp_sea.cmb_rosette" propid="value" datasetid="ds_main_cond" columnid="oprosette"/>
  264. <BindItem id="item3" compid="grp_biz.grp_sea.combo1" propid="value" datasetid="ds_main_cond" columnid="deptflag"/>
  265. </Bind>
  266. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  267. * System Name :
  268. * Job Name :
  269. * Creator :
  270. * Make Date : 2016-10-12
  271. * Description :
  272. *---------------------------------------------------------------------------------------
  273. * Modify Date Modifier Modify Description
  274. *---------------------------------------------------------------------------------------
  275. * 2016-10-12 Live Converter TF->XP
  276. *
  277. *---------------------------------------------------------------------------------------
  278. ****************************************************************************************/
  279. include "com_commonxp::comm_main.xjs";
  280. include "emr_opanstxp::SPMNP03000.xjs";
  281. var arErrorCode = new HashArray();
  282. function cf_TRMNP03002(sSvcId, nErrorCode, sErrorMsg) {
  283. arErrorCode.push(sSvcId, nErrorCode);
  284. if(nErrorCode < 0) return;
  285. utlf_addLog("***** cf_TRMNP03002 *****");
  286. }
  287. function SPMNP03200_oninit(obj:Form, e:InitEventInfo)
  288. {
  289. frmf_initForm(obj);
  290. grdf_initGrid(grp_biz.grd_erlist);
  291. }
  292. function SPMNP03200_onload(obj:Form, e:LoadEventInfo)
  293. {
  294. if( frmf_checkOpener() ) {
  295. fInit("E");
  296. }
  297. }
  298. function grp_biz_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  299. {
  300. fSearch();
  301. }
  302. function grp_biz_grp_sea_cmb_rosette_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  303. {
  304. ds_send_reqdata.clearData();
  305. dsf_makeValue(ds_send_reqdata,"opcnfmdd","string",ds_main_cond.getColumn(0, "fromdd"));
  306. dsf_makeValue(ds_send_reqdata,"rosette" ,"string",ds_main_cond.getColumn(0, "oprosette"));
  307. var oParam = {};
  308. oParam.id = "TRMNP03002";
  309. oParam.service = "opanstapp.OpAnstCCrtGoodMngt";
  310. oParam.method = "reqGetOmcdlist";
  311. oParam.inds = "req=ds_send";
  312. oParam.outds = "ds_init_oproomlist=oproomlist";
  313. oParam.async = false;
  314. oParam.callback = "cf_TRMNP03002";
  315. tranf_submit(oParam);
  316. if(arErrorCode.pop("TRMNP03002") > -1) { // 수술실코드 가져오기
  317. frmf_addComboItem("grp_biz.grp_sea.cmb_oproomlist", "전체", "", "above");
  318. }
  319. }
  320. function ds_main_reqerlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  321. {
  322. if(e.columnid == "chkflag"){
  323. obj.setColumn(e.row, "chkflag", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
  324. }
  325. var deliveqty;
  326. var undeliveqty;
  327. if( e.columnid == "deliveqty" ) {//불출수량 입력하면
  328. deliveqty = ds_main_reqerlist.getColumn(ds_main_reqerlist.rowposition, "deliveqty");
  329. undeliveqty = ds_main_reqerlist.getColumn(ds_main_reqerlist.rowposition, "undeliveqty");
  330. if( deliveqty < "1" ) {
  331. ds_main_reqerlist.updatecontrol = false;
  332. ds_main_reqerlist.enableevent = false;
  333. ds_main_reqerlist.setColumn(ds_main_reqerlist.rowposition, "chkflag", "false");
  334. ds_main_reqerlist.enableevent = true;
  335. ds_main_reqerlist.updatecontrol = true;
  336. }else {
  337. ds_main_reqerlist.updatecontrol = false;
  338. ds_main_reqerlist.enableevent = false;
  339. ds_main_reqerlist.setColumn(ds_main_reqerlist.rowposition, "chkflag", "true");
  340. ds_main_reqerlist.enableevent = true;
  341. ds_main_reqerlist.updatecontrol = true;
  342. ds_main_reqerlist.setColumn(ds_main_reqerlist.rowposition, "undeliveqty", parseInt(undeliveqty-deliveqty));
  343. }
  344. }
  345. }
  346. function grp_biz_btn_delivecnfm_onclick(obj:Button, e:ClickEventInfo)
  347. {
  348. fDeliveCnfm("E");
  349. }
  350. ]]></Script>
  351. </Form>
  352. </FDL>