SPMNP03100_미불출리스트.xfdl 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNP03100" position="absolute 0 0 1208 768" titletext="수술실 물품 미불출 관리" oninit="SPMNP03100_oninit" onload="SPMNP03100_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 181 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 9 81 26" 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 411 9 479 26" 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 546 7 603 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 9 291 26" id="caption2" class="search_name" anchor="default"/>
  27. <Combo position="absolute 484 7 540 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_undelivelist" class="datagrid2" binddataset="ds_main_undelivelist" cellsizingtype="both" extendsizetype="row" selecttype="multirow">
  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="25"/>
  66. <Column size="38"/>
  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="70"/>
  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/>
  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="align:center middle;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:(chkflag == &quot;true&quot; || chkflag == 1) ? 1 : 0"/>
  122. <Cell col="4" displaytype="text" edittype="text" style="align:right middle;" text="bind:deliveqty"/>
  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" autosizerow="default"/>
  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" autosizerow="default"/>
  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" autosizerow="default"/>
  135. <Cell col="17" style="align:left top;padding:3 2 2 2;linespace:2;" text="bind:goodspec" wordwrap="word" autosizerow="default"/>
  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" autosizerow="default"/>
  138. <Cell col="20" style="align:center middle;" text="bind:prcpunit"/>
  139. <Cell col="21" style="align:left middle;" 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 1128 45 1192 64" id="btn_delivecnfm" class="btn5" visible="false" text="불출확정" onclick="grp_biz_btn_delivecnfm_onclick"/>
  147. <Static text="수술실 물품 미불출 리스트" position="absolute 0 50 180 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_init_deliveinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  173. <ColumnInfo>
  174. <Column id="basedayflag" type="STRING" size="256"/>
  175. <Column id="basedtflag" type="STRING" size="256"/>
  176. <Column id="message" type="STRING" size="256"/>
  177. <Column id="basedelive" type="STRING" size="256"/>
  178. </ColumnInfo>
  179. <Rows>
  180. <Row/>
  181. </Rows>
  182. </Dataset>
  183. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  184. <ColumnInfo>
  185. <Column id="refdd" type="STRING" size="256"/>
  186. <Column id="oproomcd" type="STRING" size="256"/>
  187. <Column id="goodcd" type="STRING" size="256"/>
  188. <Column id="allsizespecid" type="STRING" size="256"/>
  189. <Column id="goodnm" type="STRING" size="256"/>
  190. <Column id="deptflag" type="STRING" size="256"/>
  191. <Column id="fromdd" type="STRING" size="256"/>
  192. <Column id="todd" type="STRING" size="256"/>
  193. <Column id="oprosette" type="STRING" size="256"/>
  194. <Column id="openflag" type="STRING" size="256"/>
  195. </ColumnInfo>
  196. <Rows>
  197. <Row>
  198. <Col id="refdd"/>
  199. <Col id="oproomcd"/>
  200. <Col id="goodcd"/>
  201. <Col id="allsizespecid"/>
  202. <Col id="goodnm"/>
  203. <Col id="deptflag">O</Col>
  204. <Col id="fromdd"/>
  205. <Col id="todd"/>
  206. <Col id="oprosette"/>
  207. <Col id="openflag"/>
  208. </Row>
  209. </Rows>
  210. </Dataset>
  211. <Dataset id="ds_main_undelivelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_undelivelist_oncolumnchanged">
  212. <ColumnInfo>
  213. <Column id="ccrtstatnm" type="STRING" size="256"/>
  214. <Column id="opstatnm" type="STRING" size="256"/>
  215. <Column id="chkflag" type="STRING" size="256"/>
  216. <Column id="deliveqty" type="STRING" size="256"/>
  217. <Column id="undeliveqty" type="STRING" size="256"/>
  218. <Column id="oproomnm" type="STRING" size="256"/>
  219. <Column id="opcnfmdt" type="STRING" size="256"/>
  220. <Column id="perfdeptnm" type="STRING" size="256"/>
  221. <Column id="patnm" type="STRING" size="256"/>
  222. <Column id="pid" type="STRING" size="256"/>
  223. <Column id="sa" type="STRING" size="256"/>
  224. <Column id="opnm" type="STRING" size="256"/>
  225. <Column id="perfnm" type="STRING" size="256"/>
  226. <Column id="goodcd" type="STRING" size="256"/>
  227. <Column id="allsizespecid" type="STRING" size="256"/>
  228. <Column id="goodnm" type="STRING" size="256"/>
  229. <Column id="goodspec" type="STRING" size="256"/>
  230. <Column id="goodmodel" type="STRING" size="256"/>
  231. <Column id="prodcmpynm" type="STRING" size="256"/>
  232. <Column id="prcpunit" type="STRING" size="256"/>
  233. <Column id="undeliveresn" type="STRING" size="256"/>
  234. <Column id="oprsrvno" type="STRING" size="256"/>
  235. <Column id="oproomcd" type="STRING" size="256"/>
  236. </ColumnInfo>
  237. <Rows>
  238. <Row>
  239. <Col id="ccrtstatnm"/>
  240. <Col id="opstatnm"/>
  241. <Col id="chkflag"/>
  242. <Col id="deliveqty"/>
  243. <Col id="undeliveqty"/>
  244. <Col id="oproomnm"/>
  245. <Col id="opcnfmdt"/>
  246. <Col id="perfdeptnm"/>
  247. <Col id="patnm"/>
  248. <Col id="pid"/>
  249. <Col id="sa"/>
  250. <Col id="opnm"/>
  251. <Col id="perfnm"/>
  252. <Col id="goodcd"/>
  253. <Col id="allsizespecid"/>
  254. <Col id="goodnm"/>
  255. <Col id="goodspec"/>
  256. <Col id="goodmodel"/>
  257. <Col id="prodcmpynm"/>
  258. <Col id="prcpunit"/>
  259. <Col id="undeliveresn"/>
  260. <Col id="oprsrvno"/>
  261. <Col id="oproomcd"/>
  262. </Row>
  263. </Rows>
  264. </Dataset>
  265. <Dataset id="ds_main_deliveinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  266. <ColumnInfo>
  267. <Column id="reqenddt" type="STRING" size="256"/>
  268. <Column id="delivecnfmdd" type="STRING" size="256"/>
  269. <Column id="delivemessage" type="STRING" size="256"/>
  270. </ColumnInfo>
  271. <Rows>
  272. <Row/>
  273. </Rows>
  274. </Dataset>
  275. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  276. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  277. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  278. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  279. <ColumnInfo>
  280. <Column id="refflag" type="STRING" size="256"/>
  281. <Column id="kk" type="STRING" size="256"/>
  282. </ColumnInfo>
  283. <Rows>
  284. <Row/>
  285. </Rows>
  286. </Dataset>
  287. <Dataset id="ds_temp_logginlevel" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  288. <ColumnInfo>
  289. <Column id="usrlevel" type="STRING" size="256"/>
  290. </ColumnInfo>
  291. <Rows>
  292. <Row/>
  293. </Rows>
  294. </Dataset>
  295. <Dataset id="ds_main_reqerlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  296. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  297. </Objects>
  298. <Bind>
  299. <BindItem id="item0" compid="grp_biz.grp_sea.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  300. <BindItem id="item1" compid="grp_biz.grp_sea.cmb_oproomlist" propid="value" datasetid="ds_main_cond" columnid="oproomcd"/>
  301. <BindItem id="item2" compid="grp_biz.grp_sea.cmb_rosette" propid="value" datasetid="ds_main_cond" columnid="oprosette"/>
  302. <BindItem id="item3" compid="grp_biz.grp_sea.combo1" propid="value" datasetid="ds_main_cond" columnid="deptflag"/>
  303. </Bind>
  304. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  305. * System Name :
  306. * Job Name :
  307. * Creator :
  308. * Make Date : 2016-10-12
  309. * Description :
  310. *---------------------------------------------------------------------------------------
  311. * Modify Date Modifier Modify Description
  312. *---------------------------------------------------------------------------------------
  313. * 2016-10-12 Live Converter TF->XP
  314. *
  315. *---------------------------------------------------------------------------------------
  316. ****************************************************************************************/
  317. include "com_commonxp::comm_main.xjs";
  318. include "emr_opanstxp::SPMNP03000.xjs";
  319. var arErrorCode = new HashArray();
  320. function cf_TRMNP03002(sSvcId, nErrorCode, sErrorMsg) {
  321. arErrorCode.push(sSvcId, nErrorCode);
  322. if(nErrorCode < 0) return;
  323. utlf_addLog("***** cf_TRMNP03002 *****");
  324. }
  325. function SPMNP03100_oninit(obj:Form, e:InitEventInfo)
  326. {
  327. frmf_initForm(obj);
  328. grdf_initGrid(grp_biz.grd_undelivelist);
  329. }
  330. function SPMNP03100_onload(obj:Form, e:LoadEventInfo)
  331. {
  332. if( frmf_checkOpener() ) {
  333. fInit("S");
  334. }
  335. }
  336. function grp_biz_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  337. {
  338. fUnDeliveSearch();
  339. }
  340. function grp_biz_grp_sea_cmb_rosette_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  341. {
  342. ds_send_reqdata.clearData();
  343. dsf_makeValue(ds_send_reqdata,"opcnfmdd","string",ds_main_cond.getColumn(0, "fromdd"));
  344. dsf_makeValue(ds_send_reqdata,"rosette" ,"string",ds_main_cond.getColumn(0, "oprosette"));
  345. var oParam = {};
  346. oParam.id = "TRMNP03002";
  347. oParam.service = "opanstapp.OpAnstCCrtGoodMngt";
  348. oParam.method = "reqGetOmcdlist";
  349. oParam.inds = "req=ds_send_reqdata";
  350. oParam.outds = "ds_init_oproomlist=oproomlist";
  351. oParam.async = false;
  352. oParam.callback = "cf_TRMNP03002";
  353. tranf_submit(oParam);
  354. if(arErrorCode.pop("TRMNP03002") > -1) { // 수술실코드 가져오기
  355. frmf_addComboItem("grp_biz.grp_sea.cmb_oproomlist", "전체", "", "above");
  356. grp_biz.grp_sea.cmb_oproomlist.value = "";
  357. }
  358. }
  359. function ds_main_undelivelist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  360. {//grd_erlist 그리드 없음..
  361. var deliveqty;
  362. var undeliveqty;
  363. // if(e.col == 4){//불출수량 입력하면
  364. // deliveqty = model.getValue("/root/main/reqerlist[" + grd_erlist.row + "]/deliveqty");
  365. // undeliveqty = model.getValue("/root/main/reqerlist[" + grd_erlist.row + "]/undeliveqty");
  366. // if( deliveqty < "1" ) {
  367. // model.setValue("/root/main/reqerlist[" + grd_erlist.row + "]/chkflag", "false");
  368. // }else {
  369. // model.setValue("/root/main/reqerlist[" + grd_erlist.row + "]/chkflag", "true");
  370. // model.setValue("/root/main/reqerlist[" + grd_erlist.row + "]/undeliveqty", parseInt(undeliveqty-deliveqty));
  371. // }
  372. // }
  373. if(e.columnid == "chkflag"){
  374. obj.setColumn(e.row, "chkflag", (e.newvalue == "true" || e.newvalue == 1) ? "true" : "false");
  375. }
  376. }
  377. function grp_biz_btn_delivecnfm_onclick(obj:Button, e:ClickEventInfo)
  378. {//버튼 숨김 되어있음..
  379. //fDeliveCnfm("S");
  380. }
  381. ]]></Script>
  382. </Form>
  383. </FDL>