SPMNP00330_장기이식기록.xfdl 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMNP00330" position="absolute 0 0 840 325" titletext="수술간호기록 장기이식 기록" oninit="SPMNP00330_oninit" onload="SPMNP00330_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 820 260" id="group3" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Div position="absolute 0 0 518 0" align="align:center top;" id="group2"/>
  11. <Static text="장기이식 기록" position="absolute 0 13 115 29" id="caption1" class="tit_2"/>
  12. <Shape position="absolute 0 33 820 39" linetype="horizontal" id="line1" class="line_1"/>
  13. <Button position="absolute 778 8 820 27" id="btn_search" class="btn2" text="조회" onclick="group3_btn_search_onclick"/>
  14. <Button position="absolute 733 8 775 27" id="button15" class="btn2" text="저장" onclick="group3_button15_onclick"/>
  15. <MaskEdit readonly="true" position="absolute 0 37 83 61" align="align:center middle;" id="output2" mask="####-##-##" type="string" style="align:center middle;font:Dotum,9,bold;"/>
  16. <Grid position="absolute 1 85 820 260" id="datagrid4" class="datagrid2" scrollbars="autoboth" binddataset="ds_main_OrganLists_organlist" onexpanddown="group3_datagrid4_onexpanddown" autoenter="select">
  17. <Formats>
  18. <Format id="default">
  19. <Columns>
  20. <Column size="20"/>
  21. <Column size="0"/>
  22. <Column size="0"/>
  23. <Column size="48"/>
  24. <Column size="68"/>
  25. <Column size="45"/>
  26. <Column size="81"/>
  27. <Column size="81"/>
  28. <Column size="68"/>
  29. <Column size="95"/>
  30. <Column size="37"/>
  31. <Column size="85"/>
  32. <Column size="32"/>
  33. <Column size="59"/>
  34. <Column size="77"/>
  35. <Column size="0"/>
  36. </Columns>
  37. <Rows>
  38. <Row size="26" band="head"/>
  39. <Row size="24"/>
  40. </Rows>
  41. <Band id="head">
  42. <Cell/>
  43. <Cell col="1" text="oprsrvno"/>
  44. <Cell col="2" text="otseqno"/>
  45. <Cell col="3" text="이식&#10;구분"/>
  46. <Cell col="4" text="공/수여자"/>
  47. <Cell col="5" text="장기&#10;종류"/>
  48. <Cell col="6" text="Perfusion 전 &#10;무게 (g)"/>
  49. <Cell col="7" text="Perfusion 후 &#10;무게 (g)"/>
  50. <Cell col="8" text="ischemic&#10; time(초)"/>
  51. <Cell col="9" text="warm ischemic &#10;time(초)"/>
  52. <Cell col="10" text="보관&#10;검체"/>
  53. <Cell col="11" text="검체명"/>
  54. <Cell col="12" text="개수"/>
  55. <Cell col="13" text="보관자ID"/>
  56. <Cell col="14" text="보관자"/>
  57. <Cell col="15" text="goodcd"/>
  58. </Band>
  59. <Band id="body">
  60. <Cell/>
  61. <Cell col="1" displaytype="none" edittype="none" text="bind:oprsrvno"/>
  62. <Cell col="2" displaytype="none" edittype="none" text="bind:otseqno"/>
  63. <Cell col="3" displaytype="combo" edittype="combo" text="bind:otflag" combodataset="ds_otflag" combocodecol="value" combodatacol="label"/>
  64. <Cell col="4" displaytype="combo" edittype="combo" text="bind:otsendrecvflag" combodataset="ds_otsendrecvflag" combocodecol="value" combodatacol="label"/>
  65. <Cell col="5" displaytype="combo" edittype="combo" text="bind:otkind" combodataset="ds_init_otkindcombo_otlist" combocodecol="cd" combodatacol="nm"/>
  66. <Cell col="6" displaytype="text" edittype="text" text="bind:otpfsbeweig" editlimit="10" editautoselect="true"/>
  67. <Cell col="7" displaytype="text" edittype="text" text="bind:otpfsafweig" editlimit="10" editautoselect="true"/>
  68. <Cell col="8" displaytype="text" edittype="text" text="bind:opisctime" editlimit="8" editautoselect="true"/>
  69. <Cell col="9" displaytype="text" edittype="text" text="bind:opwistime" editlimit="8" editautoselect="true"/>
  70. <Cell col="10" displaytype="combo" edittype="combo" text="bind:chargspecimenflag" combodataset="ds_chargspecimenflag" combocodecol="value" combodatacol="label"/>
  71. <Cell col="11" displaytype="text" edittype="expr:'text'" text="bind:specimennm" editlimit="50"/>
  72. <Cell col="12" displaytype="text" edittype="expr:'text'" text="bind:otcnt" editlimit="2" editautoselect="true"/>
  73. <Cell col="13" displaytype="none" edittype="none" text="bind:chargid"/>
  74. <Cell col="14" displaytype="text" edittype="expr:'text'" text="bind:chargnm" expandshow="show"/>
  75. <Cell col="15" text="bind:goodcd"/>
  76. </Band>
  77. </Format>
  78. </Formats>
  79. </Grid>
  80. <Button position="absolute 645 8 687 27" id="button29" class="btn2" text="추가" onclick="group3_button29_onclick"/>
  81. <Button position="absolute 689 8 731 27" id="button30" class="btn2" text="삭제" onclick="group3_button30_onclick"/>
  82. <Edit readonly="true" position="absolute 85 37 819 56" align="align:center middle;" id="output1" style="color:#0000ffff;align:center middle;font:Dotum,9,bold;"/>
  83. <Edit readonly="true" position="absolute 85 61 819 84" id="output3" style="font:Dotum,9,bold;"/>
  84. </Layout>
  85. </Layouts>
  86. </Div>
  87. <Div position="absolute 0 264 820 313" id="group1" scrollbars="autoboth">
  88. <Layouts>
  89. <Layout>
  90. <Button position="absolute 764 2 820 24" id="btn_cancel" class="btn4" visible="false" text="닫기" onclick="group1_btn_cancel_onclick"/>
  91. <Shape position="absolute 0 -2 678 4" linetype="horizontal" id="line32" class="line_6"/>
  92. <Static text="★ 추가 장기이식기록은 간호기록 Type II에 기록하시기 바랍니다" position="absolute 10 5 425 25" id="caption2" style="color:#ff0000ff;font:Dotum,9,bold;"/>
  93. <Static text="ex ) 검체 SIZE" position="absolute 30 25 445 45" id="caption3" style="color:#ff0000ff;font:Dotum,9,bold;"/>
  94. </Layout>
  95. </Layouts>
  96. </Div>
  97. </Layout>
  98. </Layouts>
  99. <Objects>
  100. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  101. <ColumnInfo>
  102. <Column id="oprsrvno" type="STRING" size="256" sumtext="수술예약번호"/>
  103. <Column id="searchdd" type="STRING" size="256" sumtext="조회 기준일자"/>
  104. </ColumnInfo>
  105. <Rows>
  106. <Row/>
  107. </Rows>
  108. </Dataset>
  109. <Dataset id="ds_main_OrganLists_organlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_OrganLists_organlist_oncolumnchanged">
  110. <ColumnInfo>
  111. <Column id="oprsrvno" type="STRING" size="256" sumtext=" 수술예약번호 "/>
  112. <Column id="otseqno" type="INT" size="256" sumtext=" 장기이식일련번호 "/>
  113. <Column id="otflag" type="STRING" size="256" sumtext=" 이식구분 "/>
  114. <Column id="otsendrecvflag" type="STRING" size="256" sumtext=" 공_수여자구분 "/>
  115. <Column id="otkind" type="STRING" size="256" sumtext=" 장기종류 "/>
  116. <Column id="otpfsbeweig" type="STRING" size="256" sumtext=" perfusion전 무게 "/>
  117. <Column id="otpfsafweig" type="STRING" size="256" sumtext=" perfusion후 무게 "/>
  118. <Column id="opisctime" type="STRING" size="256" sumtext=" ischemic time "/>
  119. <Column id="opwistime" type="STRING" size="256" sumtext=" warm ischemic time "/>
  120. <Column id="chargspecimenflag" type="STRING" size="256" sumtext=" 보관검체여부 "/>
  121. <Column id="specimennm" type="STRING" size="256" sumtext=" 검체명 "/>
  122. <Column id="otcnt" type="STRING" size="256" sumtext=" 개수 "/>
  123. <Column id="chargid" type="STRING" size="256" sumtext=" 보관자ID "/>
  124. <Column id="chargnm" type="STRING" size="256" sumtext=" 보관자명 "/>
  125. <Column id="status" type="STRING" size="256"/>
  126. </ColumnInfo>
  127. </Dataset>
  128. <Dataset id="ds_send_organlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  129. <ColumnInfo>
  130. <Column id="oprsrvno" type="STRING" size="256" sumtext=" 수술예약번호 "/>
  131. <Column id="otseqno" type="INT" size="256" sumtext=" 장기이식일련번호 "/>
  132. <Column id="otflag" type="STRING" size="256" sumtext=" 이식구분 "/>
  133. <Column id="otsendrecvflag" type="STRING" size="256" sumtext=" 공_수여자구분 "/>
  134. <Column id="otkind" type="STRING" size="256" sumtext=" 장기종류 "/>
  135. <Column id="otpfsbeweig" type="STRING" size="256" sumtext=" perfusion전 무게 "/>
  136. <Column id="otpfsafweig" type="STRING" size="256" sumtext=" perfusion후 무게 "/>
  137. <Column id="opisctime" type="STRING" size="256" sumtext=" ischemic time "/>
  138. <Column id="opwistime" type="STRING" size="256" sumtext=" warm ischemic time "/>
  139. <Column id="chargspecimenflag" type="STRING" size="256" sumtext=" 보관검체여부 "/>
  140. <Column id="specimennm" type="STRING" size="256" sumtext=" 검체명 "/>
  141. <Column id="otcnt" type="STRING" size="256" sumtext=" 개수 "/>
  142. <Column id="chargid" type="STRING" size="256" sumtext=" 보관자ID "/>
  143. <Column id="chargnm" type="STRING" size="256" sumtext=" 보관자명 "/>
  144. <Column id="status" type="STRING" size="256" sumtext=" 그리드 상태값"/>
  145. </ColumnInfo>
  146. </Dataset>
  147. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  148. <ColumnInfo>
  149. <Column id="pinfo" type="STRING" size="256"/>
  150. <Column id="pinfo2" type="STRING" size="256"/>
  151. <Column id="pinfo3" type="STRING" size="256"/>
  152. </ColumnInfo>
  153. <Rows>
  154. <Row/>
  155. </Rows>
  156. </Dataset>
  157. <Dataset id="ds_init_otkindcombo_otlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  158. <ColumnInfo>
  159. <Column id="nm" type="STRING" size="256"/>
  160. <Column id="cd" type="STRING" size="256"/>
  161. </ColumnInfo>
  162. <Rows>
  163. <Row>
  164. <Col id="cd">01</Col>
  165. <Col id="nm">간</Col>
  166. </Row>
  167. <Row>
  168. <Col id="cd">02</Col>
  169. <Col id="nm">각막</Col>
  170. </Row>
  171. <Row>
  172. <Col id="cd">03</Col>
  173. <Col id="nm">골수</Col>
  174. </Row>
  175. <Row>
  176. <Col id="cd">04</Col>
  177. <Col id="nm">소장</Col>
  178. </Row>
  179. <Row>
  180. <Col id="cd">06</Col>
  181. <Col id="nm">심장</Col>
  182. </Row>
  183. <Row>
  184. <Col id="cd">07</Col>
  185. <Col id="nm">췌장</Col>
  186. </Row>
  187. <Row>
  188. <Col id="cd">08</Col>
  189. <Col id="nm">폐</Col>
  190. </Row>
  191. <Row>
  192. <Col id="cd">09</Col>
  193. <Col id="nm">뼈</Col>
  194. </Row>
  195. <Row>
  196. <Col id="cd">10</Col>
  197. <Col id="nm">판막</Col>
  198. </Row>
  199. <Row>
  200. <Col id="cd">11</Col>
  201. <Col id="nm">신장</Col>
  202. </Row>
  203. </Rows>
  204. </Dataset>
  205. <Dataset id="ds_init_HideData" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  206. <ColumnInfo>
  207. <Column id="oprsrvno" type="STRING" size="256"/>
  208. </ColumnInfo>
  209. <Rows>
  210. <Row/>
  211. </Rows>
  212. </Dataset>
  213. <Dataset id="ds_otflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  214. <ColumnInfo>
  215. <Column id="label" type="STRING" size="256"/>
  216. <Column id="value" type="STRING" size="256"/>
  217. </ColumnInfo>
  218. <Rows>
  219. <Row>
  220. <Col id="label">생체</Col>
  221. <Col id="value">L</Col>
  222. </Row>
  223. <Row>
  224. <Col id="label">뇌사</Col>
  225. <Col id="value">C</Col>
  226. </Row>
  227. </Rows>
  228. </Dataset>
  229. <Dataset id="ds_otsendrecvflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  230. <ColumnInfo>
  231. <Column id="label" type="STRING" size="256"/>
  232. <Column id="value" type="STRING" size="256"/>
  233. </ColumnInfo>
  234. <Rows>
  235. <Row>
  236. <Col id="label">Donor</Col>
  237. <Col id="value">D</Col>
  238. </Row>
  239. <Row>
  240. <Col id="label">Recipient</Col>
  241. <Col id="value">R</Col>
  242. </Row>
  243. </Rows>
  244. </Dataset>
  245. <Dataset id="ds_chargspecimenflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  246. <ColumnInfo>
  247. <Column id="label" type="STRING" size="256"/>
  248. <Column id="value" type="STRING" size="256"/>
  249. </ColumnInfo>
  250. <Rows>
  251. <Row>
  252. <Col id="label">Y</Col>
  253. <Col id="value">Y</Col>
  254. </Row>
  255. <Row>
  256. <Col id="label">N</Col>
  257. <Col id="value">N</Col>
  258. </Row>
  259. </Rows>
  260. </Dataset>
  261. </Objects>
  262. <Bind>
  263. <BindItem id="item0" compid="group3.output2" propid="value" datasetid="ds_init" columnid="pinfo"/>
  264. <BindItem id="item1" compid="group3.output1" propid="value" datasetid="ds_init" columnid="pinfo2"/>
  265. <BindItem id="item2" compid="group3.output3" propid="value" datasetid="ds_init" columnid="pinfo3"/>
  266. </Bind>
  267. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  268. * System Name : 경대 의료정보시스템
  269. * Job Name : emr_opanstxp -> SPMNP00330
  270. * Creator : yjh
  271. * Make Date : 2016-07-20
  272. * Description :
  273. *---------------------------------------------------------------------------------------
  274. * Modify Date Modifier Modify Description
  275. *---------------------------------------------------------------------------------------
  276. * 2016-07-20 yjh TF->XP
  277. *
  278. *---------------------------------------------------------------------------------------
  279. ****************************************************************************************/
  280. //=======================================================================================
  281. // Lib Include
  282. //---------------------------------------------------------------------------------------
  283. include "com_commonxp::comm_main.xjs";
  284. include "emr_opanstxp::SPMNP00330.xjs"; //yjh : 커밋
  285. include "emr_carecomxp::SPMNP00001.xjs";
  286. //=======================================================================================
  287. // Global Form Variable
  288. //---------------------------------------------------------------------------------------
  289. //=======================================================================================
  290. // Function
  291. //---------------------------------------------------------------------------------------
  292. //=======================================================================================
  293. // Event
  294. //---------------------------------------------------------------------------------------
  295. /****************************************************************************************
  296. * Components : Form
  297. * Components ID : SPMNP00330
  298. * Event : oninit
  299. * Argument : 01.obj : Object Event has occurred
  300. * : 02.e : Event Object
  301. * Description : 화면 처음 초기화시
  302. ****************************************************************************************/
  303. function SPMNP00330_oninit(obj:Form, e:InitEventInfo)
  304. {
  305. frmf_initForm(obj); //폼 초기화
  306. }
  307. /****************************************************************************************
  308. * Components : Form
  309. * Components ID : SPMNP00330
  310. * Event : onload
  311. * Argument : 01.obj : Object Event has occurred
  312. * : 02.e : Event Object
  313. * Description : 화면 로딩 완료시
  314. ****************************************************************************************/
  315. function SPMNP00330_onload(obj:Form, e:LoadEventInfo)
  316. {
  317. grdf_setRowTypeIcon(group3.datagrid4, 0);
  318. fInit();
  319. }
  320. /****************************************************************************************
  321. * Components : Button
  322. * Components ID : btn_search
  323. * Event : onclick
  324. * Argument : 01.obj : Object Event has occurred
  325. * : 02.e : Event Object
  326. * Description : 조회버튼 클릭시
  327. ****************************************************************************************/
  328. function group3_btn_search_onclick(obj:Button, e:ClickEventInfo)
  329. {
  330. fSearchOrInfo();
  331. }
  332. /****************************************************************************************
  333. * Components : Button
  334. * Components ID : button15
  335. * Event : onclick
  336. * Argument : 01.obj : Object Event has occurred
  337. * : 02.e : Event Object
  338. * Description : 저장버튼 클릭시
  339. ****************************************************************************************/
  340. function group3_button15_onclick(obj:Button, e:ClickEventInfo)
  341. {
  342. onclickSaveBtn();
  343. }
  344. /****************************************************************************************
  345. * Components : Grid
  346. * Components ID : datagrid4
  347. * Event : onexpanddown
  348. * Argument : 01.obj : Object Event has occurred
  349. * : 02.e : Event Object
  350. * Description : 그리드 expand버튼 클릭시
  351. ****************************************************************************************/
  352. function group3_datagrid4_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  353. {
  354. var sGridXpath = ds_main_OrganLists_organlist;
  355. var iRow = group3.datagrid4.currentrow;
  356. var iCol = group3.datagrid4.currentcol;
  357. if( iCol == 8 ){
  358. ds_main_OrganLists_organlist.setColumn(iRow, "opisctime", utlf_getCurrentTime().substr(0,4));
  359. }else if( iCol == 9 ){
  360. ds_main_OrganLists_organlist.setColumn(iRow, "opwistime", utlf_getCurrentTime().substr(0,4));
  361. }else if( iCol == 14 ){
  362. var sChargerNm = ds_main_OrganLists_organlist.getColumn(iRow, "chargnm");
  363. //var sChargerNm = model.getValue(sGridXpath+"["+iRow+"]/appnm");
  364. fUseridPopup(sGridXpath, iRow, "chargid", "chargnm", "", sChargerNm, group3.datagrid4, "", sOpcnfmdd);
  365. var iStatus = ds_main_OrganLists_organlist.getRowType(iRow);
  366. ds_main_OrganLists_organlist.enableevent = false;
  367. ds_main_OrganLists_organlist.updatecontrol = false;
  368. if( iStatus == 1 ){ // 0 : - , 1: insert, 2: update
  369. ds_main_OrganLists_organlist.setRowType(iRow, 4);
  370. }
  371. ds_main_OrganLists_organlist.updatecontrol = true;
  372. ds_main_OrganLists_organlist.enableevent = true;
  373. }
  374. }
  375. /****************************************************************************************
  376. * Components : Dataset
  377. * Components ID : ds_main_OrganLists_organlist
  378. * Event : oncolumnchanged
  379. * Argument : 01.obj : Object Event has occurred
  380. * : 02.e : Event Object
  381. * Description : 데이터셋 값 변경시
  382. ****************************************************************************************/
  383. function ds_main_OrganLists_organlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  384. {
  385. var sGridXpath = ds_main_OrganLists_organlist;
  386. var iRow = group3.datagrid4.currentrow;
  387. var iCol = group3.datagrid4.currentcol;
  388. if( e.columnid == "chargspecimenflag" ){ // 보관 검체 여부
  389. if( ds_main_OrganLists_organlist.getColumn(iRow, "chargspecimenflag") == "N" ){
  390. ds_main_OrganLists_organlist.setColumn(iRow, "specimennm", "");
  391. ds_main_OrganLists_organlist.setColumn(iRow, "otcnt", "");
  392. ds_main_OrganLists_organlist.setColumn(iRow, "chargid", "");
  393. ds_main_OrganLists_organlist.setColumn(iRow, "chargnm", "");
  394. var sExprEdit = group3.datagrid4.getCellProperty("Body", 11, "edittype");
  395. if( sExprEdit.indexOf("currow == "+iRow+" ? 'none' : ") < 0 ){
  396. sExprEdit = sExprEdit.replace("'text'", "")
  397. + "currow == "+iRow+" ? 'none' : "
  398. + "'text'";
  399. }
  400. group3.datagrid4.setCellProperty("Body", 11, "edittype", sExprEdit);
  401. group3.datagrid4.setCellProperty("Body", 12, "edittype", sExprEdit);
  402. group3.datagrid4.setCellProperty("Body", 14, "edittype", sExprEdit);
  403. }else{
  404. var sExprEdit = group3.datagrid4.getCellProperty("Body", 11, "edittype");
  405. if( sExprEdit.indexOf("currow == "+iRow+" ? 'none' : ") > -1 ){
  406. sExprEdit = sExprEdit.replace("currow == "+iRow+" ? 'none' : ", "");
  407. }
  408. group3.datagrid4.setCellProperty("Body", 11, "edittype", sExprEdit);
  409. group3.datagrid4.setCellProperty("Body", 12, "edittype", sExprEdit);
  410. group3.datagrid4.setCellProperty("Body", 14, "edittype", sExprEdit);
  411. }
  412. }else if( e.columnid == "opisctime" ){//입력시 초를 시/분/초로 계산하여 리턴한다.
  413. fCalcSecToTime(ds_main_OrganLists_organlist.getColumn(iRow, e.columnid), iRow, e.columnid);
  414. }else if( e.columnid == "opwistime" ){
  415. fCalcSecToTime(ds_main_OrganLists_organlist.getColumn(iRow, e.columnid), iRow, e.columnid);
  416. }
  417. }
  418. /****************************************************************************************
  419. * Components : Button
  420. * Components ID : button29
  421. * Event : onclick
  422. * Argument : 01.obj : Object Event has occurred
  423. * : 02.e : Event Object
  424. * Description : 추가버튼 클릭시
  425. ****************************************************************************************/
  426. function group3_button29_onclick(obj:Button, e:ClickEventInfo)
  427. {
  428. //추가시 수술예약번호가 있을 경우 default로 세팅한다.
  429. var sOprsrvno = ds_init_HideData.getColumn(0, "oprsrvno");
  430. if( utlf_isNull(sOprsrvno) ){
  431. alert("장기이식을 작성할 대상환자의 정보가 존재하지 않습니다.");
  432. return;
  433. }else{
  434. var iRow = ds_main_OrganLists_organlist.addRow();
  435. //var iCol = datagrid4.col;
  436. ds_main_OrganLists_organlist.setColumn(iRow, "oprsrvno", sOprsrvno);
  437. }
  438. }
  439. /****************************************************************************************
  440. * Components : Button
  441. * Components ID : button30
  442. * Event : onclick
  443. * Argument : 01.obj : Object Event has occurred
  444. * : 02.e : Event Object
  445. * Description : 삭제버튼 클릭시
  446. ****************************************************************************************/
  447. function group3_button30_onclick(obj:Button, e:ClickEventInfo)
  448. {
  449. if( group3.datagrid4.currentrow > -1 ){
  450. ds_main_OrganLists_organlist.deleteRow(group3.datagrid4.currentrow);
  451. }
  452. }
  453. /****************************************************************************************
  454. * Components : Button
  455. * Components ID : btn_cancel
  456. * Event : onclick
  457. * Argument : 01.obj : Object Event has occurred
  458. * : 02.e : Event Object
  459. * Description : 닫기버튼 클릭시
  460. ****************************************************************************************/
  461. function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  462. {
  463. close();
  464. }
  465. ]]></Script>
  466. </Form>
  467. </FDL>