SPMNP00361_수술기록지 장비등록.xfdl 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNP00361" position="absolute 0 0 1000 849" titletext="수술간호기록 장비등록 관리" oninit="SPMNP00361_oninit" onload="SPMNP00361_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 590 25" id="group1">
  8. <Layouts>
  9. <Layout>
  10. <Static text="수술간호기록 장비등록 관리" position="absolute 0 0 202 25" id="caption6" class="tit_1"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div id="group2" taborder="1" class="div_SA" position="absolute 0 25 1000 60" anchor="left top right">
  15. <Layouts>
  16. <Layout>
  17. <Shape id="line13" linetype="vertical" position="absolute 928 7 934 29" anchor="top right"/>
  18. <Edit id="ipt_equipsrc" taborder="3" position="absolute 71 8 191 28" onkeydown="group2_ipt_equipsrc_onkeydown"/>
  19. <Edit id="ipt_equipcode" taborder="4" position="absolute 285 8 405 28" onkeydown="group2_ipt_equipcode_onkeydown"/>
  20. <Static id="caption3" text="자산명 :" class="search_name" position="absolute 9 8 67 28"/>
  21. <Static id="caption00" text="자산코드 :" class="search_name" position="absolute 209 10 289 30"/>
  22. <Button id="btn_search" taborder="5" text="조회" class="btn1" position="absolute 938 8 994 28" anchor="top right" onclick="group2_btn_search_onclick"/>
  23. </Layout>
  24. </Layouts>
  25. </Div>
  26. <Grid id="grd_equiplist" taborder="3" binddataset="ds_main_list_chklist" autoenter="select" useinputpanel="false" cellsizingtype="col" position="absolute 0 360 1000 849" anchor="all" selecttype="multirow">
  27. <Formats>
  28. <Format id="default">
  29. <Columns>
  30. <Column size="20"/>
  31. <Column size="50"/>
  32. <Column size="80"/>
  33. <Column size="100"/>
  34. <Column size="200"/>
  35. <Column size="200"/>
  36. <Column size="120"/>
  37. <Column size="0"/>
  38. <Column size="100"/>
  39. <Column size="50"/>
  40. <Column size="0"/>
  41. <Column size="0"/>
  42. <Column size="0"/>
  43. <Column size="0"/>
  44. <Column size="219"/>
  45. </Columns>
  46. <Rows>
  47. <Row size="24" band="head"/>
  48. <Row size="23"/>
  49. </Rows>
  50. <Band id="head">
  51. <Cell/>
  52. <Cell col="1" text="구분"/>
  53. <Cell col="2" text="장비코드"/>
  54. <Cell col="3" text="자산코드"/>
  55. <Cell col="4" text="자산명(한글)"/>
  56. <Cell col="5" text="자산명(영어)"/>
  57. <Cell col="6" text="모델"/>
  58. <Cell col="7" text="순서"/>
  59. <Cell col="8" text="사용부서"/>
  60. <Cell col="9" text="수술방"/>
  61. <Cell col="10" text="최종 변경자"/>
  62. <Cell col="11" text="최종 변경일"/>
  63. <Cell col="12" text="lastupdtrid"/>
  64. <Cell col="13" text="cdgrupid"/>
  65. <Cell col="14" text="기타"/>
  66. </Band>
  67. <Band id="body">
  68. <Cell/>
  69. <Cell col="1" displaytype="combo" edittype="combo" style="align:center;" text="bind:wongayn" combodataset="ds_init_M0769list" combocodecol="cdid" combodatacol="cdnm"/>
  70. <Cell col="2" text="bind:eqid"/>
  71. <Cell col="3" text="bind:fixasetcd"/>
  72. <Cell col="4" edittype="expr:fixasetcd == null || fixasetcd == &quot;&quot; ? &quot;text&quot; : &quot;&quot;" style="align:left;" text="bind:goodflaghngnm"/>
  73. <Cell col="5" edittype="expr:fixasetcd == null || fixasetcd == &quot;&quot; ? &quot;text&quot; : &quot;&quot;" style="align:left;" text="bind:goodflagengnm"/>
  74. <Cell col="6" displaytype="text" edittype="expr:fixasetcd == null || fixasetcd == &quot;&quot; ? &quot;text&quot; : &quot;&quot;" text="bind:goodmodel"/>
  75. <Cell col="7" displaytype="text" edittype="text" text="bind:sortseq"/>
  76. <Cell col="8" text="bind:installplcenm"/>
  77. <Cell col="9" displaytype="combo" edittype="combo" style="align:center;" text="bind:oproomcd" combodataset="ds_init_installplcelist_installplceinfo" combocodecol="oproomcd" combodatacol="oproomnm" combodisplayrowcount="-1"/>
  78. <Cell col="10" text="bind:lastupdtrnm"/>
  79. <Cell col="11" text="bind:lastupdtdt" mask="yyyy-mm-dd"/>
  80. <Cell col="12" text="bind:lastupdtrid"/>
  81. <Cell col="13" text="bind:cdgrupid"/>
  82. <Cell col="14" edittype="text" text="bind:rmk1"/>
  83. </Band>
  84. </Format>
  85. </Formats>
  86. </Grid>
  87. <Shape id="line15" class="line_10" position="absolute 0 354 1000 363" anchor="left top right"/>
  88. <Static id="caption20" text="수술 장비 및 기구 목록" class="tit_2" position="absolute 0 339 172 355"/>
  89. <Button id="button8" taborder="4" text="행추가" onclick="group3_button8_onclick" class="btn2" position="absolute 162 335 215 355"/>
  90. <Button id="button9" taborder="5" text="행삭제" onclick="group3_button9_onclick" class="btn2" position="absolute 217 335 270 355"/>
  91. <Button id="button2" taborder="7" text="저장" onclick="button2_onclick" class="btn4" position="absolute 944 335 1000 355" anchor="top right"/>
  92. <Grid id="Grid_jasan" taborder="8" useinputpanel="false" position="absolute 0 83 1000 332" autofittype="col" binddataset="ds_temp_equiplist_equipinfo" oncelldblclick="Grid_jasan_oncelldblclick" anchor="left top right">
  93. <Formats>
  94. <Format id="default">
  95. <Columns>
  96. <Column size="80"/>
  97. <Column size="150"/>
  98. <Column size="150"/>
  99. <Column size="100"/>
  100. <Column size="100"/>
  101. <Column size="75"/>
  102. <Column size="75"/>
  103. </Columns>
  104. <Rows>
  105. <Row size="24" band="head"/>
  106. <Row size="24"/>
  107. </Rows>
  108. <Band id="head">
  109. <Cell text="자산코드"/>
  110. <Cell col="1" text="자산명(한글)"/>
  111. <Cell col="2" text="자산명(영어)"/>
  112. <Cell col="3" text="규격"/>
  113. <Cell col="4" text="모델"/>
  114. <Cell col="5" text="사용부서"/>
  115. <Cell col="6" text="제조원"/>
  116. </Band>
  117. <Band id="body">
  118. <Cell text="bind:fixasetcd"/>
  119. <Cell col="1" style="align:left middle;" text="bind:goodflaghngnm" tooltiptext="bind:goodflaghngnm"/>
  120. <Cell col="2" style="align:left middle;" text="bind:goodflagengnm" tooltiptext="bind:goodflagengnm"/>
  121. <Cell col="3" style="align:left;" text="bind:goodspec" tooltiptext="bind:goodspec"/>
  122. <Cell col="4" style="align:left;" text="bind:goodmodel"/>
  123. <Cell col="5" text="bind:installplcenm"/>
  124. <Cell col="6" text="bind:prodcmpynm"/>
  125. </Band>
  126. </Format>
  127. </Formats>
  128. </Grid>
  129. <Static id="caption00" text="자산 목록" class="tit_2" position="absolute 0 62 96 78"/>
  130. <Shape id="line00" class="line_10" position="absolute 0 77 1000 86" anchor="left top right"/>
  131. <Static id="caption24" text="※ 장비 목록에 추가를 위하여 더블 클릭 해주세요." position="absolute 83 60 400 80"/>
  132. </Layout>
  133. </Layouts>
  134. <Objects>
  135. <Dataset id="ds_main_list_chklist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  136. <ColumnInfo>
  137. <Column id="status" type="STRING" size="256"/>
  138. <Column id="instcd" type="STRING" sumtext="기관코드" size="256"/>
  139. <Column id="genrdd" type="STRING" size="256" sumtext="생성일자"/>
  140. <Column id="eqmodel" type="STRING" size="256" sumtext="사용자입력 모델"/>
  141. <Column id="eqid" type="STRING" size="256" sumtext="생성순번 및 장비코드"/>
  142. <Column id="fixasetcd" type="STRING" size="256" sumtext="자산번호"/>
  143. <Column id="eqennm" type="STRING" size="256" sumtext="지정 장비명 영어"/>
  144. <Column id="eqhnnm" type="STRING" size="256" sumtext="지정 장비명 한글"/>
  145. <Column id="goodmodel" type="STRING" size="256" sumtext="모델"/>
  146. <Column id="oproomcd" type="STRING" size="256" sumtext="수술방 코드"/>
  147. <Column id="valifromdd" type="STRING" size="256" sumtext="유효시작일자"/>
  148. <Column id="valitodd" type="STRING" size="256" sumtext="유효종료일자"/>
  149. <Column id="delyn" type="STRING" size="256" sumtext="삭제여부"/>
  150. <Column id="wongayn" type="STRING" size="256" sumtext="원가장비여부"/>
  151. <Column id="goodflaghngnm" type="STRING" size="256" sumtext="장비명 한글"/>
  152. <Column id="goodflagengnm" type="STRING" size="256" sumtext="장비명 영어"/>
  153. <Column id="installplcenm" type="STRING" size="256" sumtext="사용부서"/>
  154. <Column id="rmk1" type="STRING" size="256" sumtext="기타"/>
  155. </ColumnInfo>
  156. </Dataset>
  157. <Dataset id="ds_temp_equiplist_equipinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  158. <ColumnInfo>
  159. <Column id="fixasetcd" type="STRING" size="256" sumtext="자산코드"/>
  160. <Column id="fixasetnm" type="STRING" size="256" sumtext="자산명"/>
  161. <Column id="goodflaghngnm" type="STRING" size="256" sumtext="자산명(한글)"/>
  162. <Column id="goodflagengnm" type="STRING" size="256" sumtext="자산명(영문)"/>
  163. <Column id="goodspec" type="STRING" size="256" sumtext="규격"/>
  164. <Column id="mngtno" type="STRING" size="256" sumtext="S/N"/>
  165. <Column id="mngtdeptnm" type="STRING" size="256" sumtext="사용부서"/>
  166. <Column id="mngtgrade" type="STRING" size="256" sumtext="관리등급"/>
  167. <Column id="oldcd" type="STRING" size="256" sumtext="구코드"/>
  168. <Column id="installplcenm" type="STRING" size="256" sumtext="설치장소"/>
  169. <Column id="suplplcenm" type="STRING" size="256" sumtext="거래처"/>
  170. <Column id="prodcmpynm" type="STRING" size="256" sumtext="제조원"/>
  171. <Column id="prodplce" type="STRING" size="256" sumtext="제조국"/>
  172. <Column id="possndd" type="STRING" size="256" sumtext="취득일자"/>
  173. <Column id="goodmodel" type="STRING" size="256" sumtext="모델명"/>
  174. </ColumnInfo>
  175. </Dataset>
  176. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  177. <ColumnInfo>
  178. <Column id="cdgrupid" type="STRING" size="256" sumtext="cdgrupid"/>
  179. <Column id="oproomcd" type="STRING" size="256" sumtext="oproomcd"/>
  180. <Column id="goodflagnm" type="STRING" size="256" sumtext="자산명 검색"/>
  181. <Column id="fixasetcd" type="STRING" size="256" sumtext="자산코드 검색"/>
  182. </ColumnInfo>
  183. <Rows>
  184. <Row/>
  185. </Rows>
  186. </Dataset>
  187. <Dataset id="ds_init_installplcelist_installplceinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  188. <ColumnInfo>
  189. <Column id="oproomcd" type="STRING" size="256" sumtext="수술방 코드"/>
  190. <Column id="oproomnm" type="STRING" size="256" sumtext="수술방 이름"/>
  191. </ColumnInfo>
  192. </Dataset>
  193. <Dataset id="ds_send_listdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  194. <ColumnInfo>
  195. <Column id="status" type="STRING" size="256"/>
  196. <Column id="instcd" type="STRING" sumtext="기관코드" size="256"/>
  197. <Column id="genrdd" type="STRING" size="256" sumtext="생성일자"/>
  198. <Column id="eqmodel" type="STRING" size="256" sumtext="사용자입력 모델"/>
  199. <Column id="eqid" type="STRING" size="256" sumtext="생성순번 및 장비코드"/>
  200. <Column id="fixasetcd" type="STRING" size="256" sumtext="자산번호"/>
  201. <Column id="eqennm" type="STRING" size="256" sumtext="지정 장비명 영어"/>
  202. <Column id="eqhnnm" type="STRING" size="256" sumtext="지정 장비명 한글"/>
  203. <Column id="goodmodel" type="STRING" size="256" sumtext="모델"/>
  204. <Column id="oproomcd" type="STRING" size="256" sumtext="수술방 코드"/>
  205. <Column id="valifromdd" type="STRING" size="256" sumtext="유효시작일자"/>
  206. <Column id="valitodd" type="STRING" size="256" sumtext="유효종료일자"/>
  207. <Column id="delyn" type="STRING" size="256" sumtext="삭제여부"/>
  208. <Column id="wongayn" type="STRING" size="256" sumtext="원가장비여부"/>
  209. <Column id="goodflaghngnm" type="STRING" size="256" sumtext="장비명 한글"/>
  210. <Column id="goodflagengnm" type="STRING" size="256" sumtext="장비명 영어"/>
  211. <Column id="installplcenm" type="STRING" size="256" sumtext="사용부서"/>
  212. <Column id="rmk1" type="STRING" size="256" sumtext="기타"/>
  213. </ColumnInfo>
  214. </Dataset>
  215. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  216. <ColumnInfo>
  217. <Column id="equipnm" type="STRING" size="256"/>
  218. </ColumnInfo>
  219. <Rows>
  220. <Row/>
  221. </Rows>
  222. </Dataset>
  223. <Dataset id="ds_temp_list_chklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  224. <ColumnInfo>
  225. <Column id="instcd" type="STRING" sumtext="기관코드" size="256"/>
  226. <Column id="genrdd" type="STRING" size="256" sumtext="생성일자"/>
  227. <Column id="genrno" type="STRING" size="256" sumtext="생성순번 및 장비코드"/>
  228. <Column id="fixasetcd" type="STRING" size="256" sumtext="자산번호"/>
  229. <Column id="eqid" type="STRING" size="256" sumtext="장비명 코드"/>
  230. <Column id="eqnm" type="STRING" size="256" sumtext="지정 장비명"/>
  231. <Column id="goodmodel" type="STRING" size="256" sumtext="모델"/>
  232. <Column id="oproomcd" type="STRING" size="256" sumtext="수술방 코드"/>
  233. <Column id="valifromdd" type="STRING" size="256" sumtext="유효시작일자"/>
  234. <Column id="valitodd" type="STRING" size="256" sumtext="유효종료일자"/>
  235. <Column id="delyn" type="STRING" size="256" sumtext="삭제여부"/>
  236. <Column id="wongayn" type="STRING" size="256" sumtext="원가장비여부"/>
  237. <Column id="goodflaghngnm" type="STRING" size="256" sumtext="장비명 한글"/>
  238. <Column id="goodflagengnm" type="STRING" size="256" sumtext="장비명 영어"/>
  239. <Column id="installplcenm" type="STRING" size="256" sumtext="사용부서"/>
  240. </ColumnInfo>
  241. </Dataset>
  242. <Dataset id="ds_init_M0769list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  243. <ColumnInfo>
  244. <Column id="cdid" type="STRING" size="256"/>
  245. <Column id="cdnm" type="STRING" size="256"/>
  246. </ColumnInfo>
  247. </Dataset>
  248. </Objects>
  249. <Bind>
  250. <BindItem id="item0" compid="group2.ipt_equipcode" propid="value" datasetid="ds_send" columnid="fixasetcd"/>
  251. <BindItem id="item1" compid="group2.ipt_equipsrc" propid="value" datasetid="ds_send" columnid="goodflagnm"/>
  252. </Bind>
  253. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  254. * System Name : 경대 의료정보시스템
  255. * Job Name : emr_opanstxp -> SPMNP00361
  256. * Creator : yjh
  257. * Make Date : 2016-07-21
  258. * Description :
  259. *---------------------------------------------------------------------------------------
  260. * Modify Date Modifier Modify Description
  261. *---------------------------------------------------------------------------------------
  262. * 2016-07-21 yjh TF->XP
  263. *
  264. *---------------------------------------------------------------------------------------
  265. ****************************************************************************************/
  266. //=======================================================================================
  267. // Lib Include
  268. //---------------------------------------------------------------------------------------
  269. include "com_commonxp::comm_main.xjs";
  270. //=======================================================================================
  271. // Global Form Variable
  272. //---------------------------------------------------------------------------------------
  273. var arErrorCode = new HashArray();
  274. //=======================================================================================
  275. // Function
  276. //---------------------------------------------------------------------------------------
  277. function fInitialize()
  278. {
  279. grdf_setRowTypeIcon(grd_equiplist, 0);
  280. fOprationRoomcode();//수술방 코드 조회
  281. fJasanSearch();// 자산 목록 조회
  282. fJangbiSearch();//장비 목록 조회
  283. //ds_init_installplcelist_installplceinfo.insertRow(0);
  284. ds_main_list_chklist.rowposition = -1;
  285. //그리드 정렬기능 추가
  286. grdf_setGridSort(grd_equiplist);
  287. grdf_setGridSort(Grid_jasan);
  288. //공통코드 셋팅(원가, 일반)
  289. appf_getCodeList([{dsNm: "ds_init_M0769list", cdGrpId: "M0769"}], false);
  290. }
  291. //수술방 코드 조회
  292. function fOprationRoomcode()
  293. {
  294. var oParam = {};
  295. oParam.id = "TRMNP00370";
  296. oParam.service = "opanstapp.OpAnstRec";
  297. oParam.method = "reqGetOpRoomLst";
  298. oParam.inds = "req=ds_send";
  299. oParam.outds = "ds_init_installplcelist_installplceinfo=installplceinfo";
  300. oParam.async = false;
  301. //oParam.callback = "cf_TRMNP00370";
  302. tranf_submit(oParam); // 수술방
  303. }
  304. //장비 목록 조회
  305. function fJangbiSearch()
  306. {
  307. var oParam = {};
  308. oParam.id = "TRMNP00361";
  309. oParam.service = "opanstapp.OpAnstRec";
  310. oParam.method = "reqGetOpNrecEquipList";
  311. oParam.inds = "req=ds_send";
  312. oParam.outds = "ds_main_list_chklist=chklist";
  313. oParam.async = false;
  314. //oParam.callback = "cf_TRMNP00361";
  315. tranf_submit(oParam); // 장비목록
  316. }
  317. //자산 목록 조회
  318. function fJasanSearch()
  319. {
  320. var oParam = {};
  321. oParam.id = "TRMNP00371";
  322. oParam.service = "opanstapp.OpAnstRec";
  323. oParam.method = "reqGetOpRecEquiplist";
  324. oParam.inds = "req=ds_send";
  325. oParam.outds = "ds_temp_equiplist_equipinfo=equipinfo";
  326. oParam.async = false;
  327. //oParam.callback = "cf_TRMNP00371";
  328. tranf_submit(oParam); // 자산목록.
  329. }
  330. function fClickDeleteBtn(){
  331. var selectedRows = grdf_getSelectedRows(grd_equiplist);
  332. if(selectedRows.length < 0){
  333. return;
  334. }
  335. var arrPostion = new Array();
  336. var index = 0;
  337. for(var i = selectedRows.length - 1; i >= 0; i--) {
  338. var iRow = selectedRows[i];
  339. var status = ds_main_list_chklist.getRowType(iRow);
  340. if(status == 2){
  341. ds_main_list_chklist.deleteRow(iRow);
  342. }else{
  343. arrPostion[index++] = iRow;
  344. }
  345. }
  346. if(arrPostion.length > 0)
  347. grdf_setStatus(grd_equiplist, "d", arrPostion);
  348. }
  349. function fClickRowAddBtn(){
  350. var nRow = ds_main_list_chklist.addRow(); // 입력할 행 추가.
  351. //장비 추가시 원가값 기본 입력
  352. ds_main_list_chklist.setColumn(nRow, "wongayn", "N");
  353. grd_equiplist.setCellPos(1);
  354. grd_equiplist.setFocus();
  355. }
  356. function fOnClickSaveBtn()
  357. {
  358. var oDsUpdate = grdf_getGridUpdateData(grd_equiplist);
  359. if( oDsUpdate.rowcount < 1 ) {
  360. sysf_messageBox("입력","E013"); // 그리드에 데이터가 업데이트 되지 않으면 "입력된 데이터가 없습니다."는 메시지 출력
  361. return ;
  362. }
  363. grdf_setStatusColumn(oDsUpdate, "status"); // 각행의 status에 rowType 값에 따라 'i', 'u', 'd'로 업데이트 시켜준다
  364. ds_send_listdata.copyData(oDsUpdate, true);
  365. for(var iIndex = 0 ; iIndex < ds_send_listdata.rowcount ; iIndex++)
  366. {
  367. //수술방 미입력시 알림 처리
  368. if(utlf_isNull(ds_send_listdata.getColumn(iIndex, "oproomcd")))
  369. {
  370. sysf_messageBox("수술방을 입력하십시오.", "C999")
  371. return;
  372. }
  373. if(ds_send_listdata.getColumn(iIndex, "status") == "i")
  374. {
  375. //수술방 미입력시 알림 처리
  376. if(utlf_isNull(ds_send_listdata.getColumn(iIndex, "goodflagengnm")))
  377. {
  378. sysf_messageBox("자산명(영어)는 필수 입력 항목입니다.", "C999")
  379. return;
  380. }
  381. //status가 i인(추가되는 항목) 항목에 대하여 동일 자산코드를 동일 수술방에 저장할 경우 알림 처리
  382. ds_temp_list_chklist.copyData(ds_main_list_chklist);
  383. var varCondition = "fixasetcd == '" + ds_send_listdata.getColumn(iIndex, "fixasetcd")
  384. + "' && oproomcd == '" + ds_send_listdata.getColumn(iIndex, "oproomcd") + "'";
  385. ds_temp_list_chklist.filter(varCondition);
  386. if(ds_temp_list_chklist.rowcount > 1)
  387. {
  388. sysf_messageBox("수술방에 동일 장비 및 기구가 존재합니다.", "C999")
  389. return;
  390. }
  391. //자산번호가 없는 경우 명칭 및 모델을 사용자 명칭 및 모델에 입력
  392. if(utlf_isNull(ds_send_listdata.getColumn(iIndex, "fixasetcd")))
  393. {
  394. ds_send_listdata.setColumn(iIndex, "eqennm", ds_send_listdata.getColumn(iIndex, "goodflagengnm"));
  395. ds_send_listdata.setColumn(iIndex, "eqhnnm", ds_send_listdata.getColumn(iIndex, "goodflaghngnm"));
  396. ds_send_listdata.setColumn(iIndex, "eqmodel", ds_send_listdata.getColumn(iIndex, "goodmodel"));
  397. }
  398. }
  399. }
  400. var oParam = {};
  401. oParam.id = "TXMNP00361";
  402. oParam.service = "opanstapp.OpAnstRec";
  403. oParam.method = "reqSetOpNrecEquipList";
  404. oParam.inds = "listdata=ds_send_listdata";
  405. oParam.outds = "ds_main_list_chklist=chklist";
  406. oParam.async = false;
  407. oParam.callback = "cf_TXMNP00361";
  408. tranf_submit(oParam);
  409. if( arErrorCode.pop("TXMNP00361") > -1 ){
  410. ds_send_listdata.clearData();
  411. }
  412. fJangbiSearch();//장비 목록 조회
  413. }
  414. function cf_TXMNP00361(sSvcId, nErrorCode, sErrorMsg) {
  415. arErrorCode.push(sSvcId, nErrorCode);
  416. }
  417. //=======================================================================================
  418. // Event
  419. //---------------------------------------------------------------------------------------
  420. /****************************************************************************************
  421. * Components : Form
  422. * Components ID : SPMNP00361
  423. * Event : oninit
  424. * Argument : 01.obj : Object Event has occurred
  425. * : 02.e : Event Object
  426. * Description : 화면 처음 초기화시
  427. ****************************************************************************************/
  428. function SPMNP00361_oninit(obj:Form, e:InitEventInfo)
  429. {
  430. frmf_initForm(obj); //폼 초기화
  431. }
  432. /****************************************************************************************
  433. * Components : Form
  434. * Components ID : SPMNP00361
  435. * Event : onload
  436. * Argument : 01.obj : Object Event has occurred
  437. * : 02.e : Event Object
  438. * Description : 화면 로딩 완료시
  439. ****************************************************************************************/
  440. function SPMNP00361_onload(obj:Form, e:LoadEventInfo)
  441. {
  442. fInitialize();
  443. }
  444. /****************************************************************************************
  445. * Components : Button
  446. * Components ID : button8
  447. * Event : onclick
  448. * Argument : 01.obj : Object Event has occurred
  449. * : 02.e : Event Object
  450. * Description : 행추가버튼 클릭시
  451. ****************************************************************************************/
  452. function group3_button8_onclick(obj:Button, e:ClickEventInfo)
  453. {
  454. fClickRowAddBtn();
  455. }
  456. /****************************************************************************************
  457. * Components : Button
  458. * Components ID : button9
  459. * Event : onclick
  460. * Argument : 01.obj : Object Event has occurred
  461. * : 02.e : Event Object
  462. * Description : 행삭제버튼 클릭시
  463. ****************************************************************************************/
  464. function group3_button9_onclick(obj:Button, e:ClickEventInfo)
  465. {
  466. fClickDeleteBtn();
  467. }
  468. /****************************************************************************************
  469. * Components : Button
  470. * Components ID : button2
  471. * Event : onclick
  472. * Argument : 01.obj : Object Event has occurred
  473. * : 02.e : Event Object
  474. * Description : 저장버튼 클릭시
  475. ****************************************************************************************/
  476. function button2_onclick(obj:Button, e:ClickEventInfo)
  477. {
  478. fOnClickSaveBtn();
  479. }
  480. function Grid_jasan_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  481. {
  482. fClickRowAddBtn();
  483. var add_row = ds_main_list_chklist.rowcount;
  484. var cur_row = Grid_jasan.currentrow;
  485. ds_main_list_chklist.setColumn(add_row-1, "fixasetcd", ds_temp_equiplist_equipinfo.getColumn(cur_row, "fixasetcd"));
  486. ds_main_list_chklist.setColumn(add_row-1, "goodflaghngnm", ds_temp_equiplist_equipinfo.getColumn(cur_row, "goodflaghngnm"));
  487. ds_main_list_chklist.setColumn(add_row-1, "goodflagengnm", ds_temp_equiplist_equipinfo.getColumn(cur_row, "goodflagengnm"));
  488. ds_main_list_chklist.setColumn(add_row-1, "goodmodel", ds_temp_equiplist_equipinfo.getColumn(cur_row, "goodmodel"));
  489. ds_main_list_chklist.setColumn(add_row-1, "installplcenm", ds_temp_equiplist_equipinfo.getColumn(cur_row, "installplcenm"));
  490. }
  491. function group2_ipt_equipsrc_onkeydown(obj:Edit, e:KeyEventInfo)
  492. {
  493. }
  494. function group2_ipt_equipcode_onkeydown(obj:Edit, e:KeyEventInfo)
  495. {
  496. }
  497. /****************************************************************************************
  498. * Components : Button
  499. * Components ID : btn_search
  500. * Event : onclick
  501. * Argument : 01.obj : Object Event has occurred
  502. * : 02.e : Event Object
  503. * Description : 전체 조회버튼 클릭시
  504. ****************************************************************************************/
  505. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  506. {
  507. fJasanSearch();//자산 목록 조회
  508. fJangbiSearch();//장비 목록 조회
  509. }
  510. ]]></Script>
  511. </Form>
  512. </FDL>