SMABC00500_혈액입고관리.xrw 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>조혈모세포 입고관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <stemcellcwin>
  11. <stemcellcwinlist>
  12. <windt/>
  13. <pid/>
  14. <hngnm/>
  15. <roomcd/>
  16. <deliveflag/>
  17. <bonebank/>
  18. <cordbank/>
  19. <blodno/>
  20. <tranpsn/>
  21. <scs/>
  22. <winpsnnm/>
  23. <winpsnid/>
  24. <winseqno/>
  25. <windd/>
  26. <wintm/>
  27. <prcpdd/>
  28. <prcpid/>
  29. <prcpnm/>
  30. <prcpno/>
  31. <prcphistno/>
  32. <execprcpno/>
  33. </stemcellcwinlist>
  34. </stemcellcwin>
  35. <userinfo>
  36. <winpsn>
  37. <winpsnid/>
  38. <winpsnnm/>
  39. </winpsn>
  40. </userinfo>
  41. <popupendflag/>
  42. </main>
  43. <send>
  44. <baseinfo>
  45. <wintodd/>
  46. <winfromdd/>
  47. <pid/>
  48. <deliveflag/>
  49. <bonebank/>
  50. <cordbank/>
  51. <blodno/>
  52. <winpsnid/>
  53. </baseinfo>
  54. <execdata>
  55. <stemcellcwinlist/>
  56. </execdata>
  57. <userinfo>
  58. <userid/>
  59. </userinfo>
  60. <patbaseinfo>
  61. <pid/>
  62. </patbaseinfo>
  63. <commoncode>SC</commoncode>
  64. <hsctlrgcd/>
  65. </send>
  66. <init>
  67. <cmbinfo>
  68. <deliveflag>
  69. <A0156>
  70. <cdid/>
  71. <cdnm/>
  72. </A0156>
  73. </deliveflag>
  74. <bonebank>
  75. <B004>
  76. <cdid/>
  77. <cdnm/>
  78. </B004>
  79. </bonebank>
  80. <stemcellsource>
  81. <A0159/>
  82. </stemcellsource>
  83. <cordbank>
  84. <B005>
  85. <cdid/>
  86. <cdnm/>
  87. </B005>
  88. </cordbank>
  89. </cmbinfo>
  90. </init>
  91. <hidden>
  92. <count/>
  93. <item/>
  94. </hidden>
  95. <temp>
  96. <userinfo>
  97. <item>
  98. <userid/>
  99. <usernm/>
  100. </item>
  101. </userinfo>
  102. <receiveref>/root/send/baseinfo/pid</receiveref>
  103. <patbaseinfo>
  104. <item>
  105. <roomcd/>
  106. <hngnm/>
  107. </item>
  108. </patbaseinfo>
  109. <tempcodeinfo/>
  110. </temp>
  111. </root>
  112. </instance>
  113. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  114. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  115. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  116. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  117. <script type="javascript" src="../../../ast/hsctweb/js/bmtcommon.js"/>
  118. <submission id="TRABC00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/baseinfo" replace="instance" resultref="/root/main/stemcellcwin"/>
  119. <submission id="TRZBC00101"/>
  120. <script type="javascript" ev:event="xforms-ready">
  121. <![CDATA[
  122. zbcfGetCodeList( new Array("A0156", "A0159"), new Array("/root/init/cmbinfo/deliveflag", "/root/init/cmbinfo/stemcellsource"));
  123. //BMT 코드성 데이터 조회.(기존의 공통코드로 사용했던것들을 BMT에서 관리하도록 수정 후)
  124. aboGetCodeList(new Array("B004", "B005")
  125. , new Array("/root/init/cmbinfo/bonebank", "/root/init/cmbinfo/cordbank"));
  126. model.removeNodeset("/root/main/stemcellcwin/stemcellcwinlist");
  127. model.setValue("/root/send/baseinfo/wintodd", getCurrentDate());
  128. model.setValue("/root/send/baseinfo/winfromdd", getCurrentDate());
  129. //권한체크
  130. btn_save.disabled = !checkAuth("X") ;
  131. btn_excsave.disabled = !checkAuth("P") ;
  132. model.refresh();
  133. ]]>
  134. </script>
  135. <submission id="TXABC00501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/execdata" replace="instance" resultref="/root/hidden"/>
  136. <submission id="TRABC00602" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/userinfo" replace="instance" resultref="/root/temp/userinfo"/>
  137. <submission id="TRABC00502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/patbaseinfo" resultref="/root/temp/patbaseinfo"/>
  138. <submission id="TRABO02103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp/tempcodeinfo"/>
  139. </model>
  140. <script type="javascript">
  141. <![CDATA[
  142. /* @group : 조혈모세포 입고관리
  143. * @ver : 2007.12.26
  144. * @by : 남수현
  145. * @type : function
  146. * @access : public
  147. * @desc : 조혈모세포입고내역조회
  148. * @param :
  149. */
  150. function fGetStemCellList(){
  151. /* // 바코드번호를 입력하고 Enter Key - 바코드 번호는 반드시 입력해야 한다.
  152. if (event.target == "ipt_cellbcno") {
  153. if (model.getValue("/root/send/baseinfo/cellbcno") == "") {
  154. return;
  155. }
  156. }
  157. */
  158. submit("TRABC00501");
  159. // model.refresh();
  160. }
  161. /* @group : 조혈모세포 입고관리
  162. * @ver : 2007.12.27
  163. * @by : 남수현
  164. * @type : function
  165. * @access : public
  166. * @desc : 조혈모세포입고정보를 저장한다.
  167. * @param :
  168. */
  169. function fExecSave(){
  170. model.removeNodeset("/root/send/execdata");
  171. model.makeNode("/root/send/execdata/stemcellcwinlist");
  172. var UpdateList = grd_stemcellwinlist.getUpdateData();
  173. model.setValue("/root/send/execdata/stemcellcwinlist", UpdateList);
  174. // 등록번호, 입고장소, 입고자, 입고일시 데이터 체크
  175. for( var i = 1; i < grd_stemcellwinlist.rows ; i++ ){
  176. if ( model.getValue("/root/main/stemcellcwin/stemcellcwinlist[" + i + "]/pid") == "" ||
  177. model.getValue("/root/main/stemcellcwin/stemcellcwinlist[" + i + "]/pid") == "" ) {
  178. messageBox("등록번호가 선택되어 있지 않아 저장", "E001");
  179. return;
  180. }else if ( model.getValue("/root/main/stemcellcwin/stemcellcwinlist[" + i + "]/winpsnid") == "" ||
  181. model.getValue("/root/main/stemcellcwin/stemcellcwinlist[" + i + "]/winpsnid") == "" ) {
  182. messageBox("입고자가 선택되어 있지 않아 저장", "E001");
  183. return;
  184. }else if ( model.getValue("/root/main/stemcellcwin/stemcellcwinlist[" + i + "]/deliveflag") == "" ||
  185. model.getValue("/root/main/stemcellcwin/stemcellcwinlist[" + i + "]/deliveflag") == "" ) {
  186. messageBox("입고장소가 선택되어 있지 않아 저장", "E001");
  187. return;
  188. }else if ( model.getValue("/root/main/stemcellcwin/stemcellcwinlist[" + i + "]/windt") == "" ||
  189. model.getValue("/root/main/stemcellcwin/stemcellcwinlist[" + i + "]/windt") == "" ) {
  190. messageBox("입고일시가 선택되어 있지 않아 저장", "E001");
  191. return;
  192. }
  193. }
  194. /*var nodeList = instance1.selectNodes("/root/main/stemcellcwin/stemcellcwinlist[chk='Y']");
  195. var rCSV = getNodeListCSV(nodeList);
  196. if ( rCSV == null ) {
  197. messageBox("처방내역을 선택해 주십시오.","I999");
  198. return "0";
  199. }
  200. model.setValue("/root/send/execdata/stemcellcwinlist", rCSV);*/
  201. submit("TXABC00501");
  202. fGetStemCellList();
  203. }
  204. /* @group : 조혈모세포 입고관리
  205. * @ver : 2007.12.27
  206. * @by : 남수현
  207. * @type : function
  208. * @access : public
  209. * @desc : 사용자 정보 조회
  210. * @param :
  211. */
  212. function fKeyEvent() {
  213. if(event.keyCode == "13"){
  214. if(event.target == "ipt_winpsnid") {
  215. if ( (ipt_winpsnid.currentText).toUpperCase() == "" ) {
  216. return false;
  217. }
  218. model.setvalue("/root/send/userinfo/userid", (ipt_winpsnid.currentText).toUpperCase());
  219. submit("TRABC00602");
  220. if ( model.getValue("/root/temp/userinfo/item/userid") == "" ) {
  221. return false;
  222. }
  223. model.setValue("/root/main/userinfo/winpsn/winpsnid", model.getValue("/root/temp/userinfo/item/userid"));
  224. model.setValue("/root/main/userinfo/winpsn/winpsnnm", model.getValue("/root/temp/userinfo/item/usernm"));
  225. for (var i = 1; i < grd_stemcellwinlist.rows; i++) {
  226. model.setValue("/root/main/stemcellcwin/stemcellcwinlist[" + i + "]/chk", "Y");
  227. model.setValue("/root/main/stemcellcwin/stemcellcwinlist[" + i + "]/winpsnid", model.getValue("/root/temp/userinfo/item/userid"));
  228. model.setValue("/root/main/stemcellcwin/stemcellcwinlist[" + i + "]/winpsnnm", model.getValue("/root/temp/userinfo/item/usernm"));
  229. }
  230. model.refresh();
  231. }
  232. }
  233. }
  234. ]]>
  235. </script>
  236. </xhtml:head>
  237. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  238. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  239. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">조혈모세포실 입고관리</caption>
  240. </group>
  241. <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  242. <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:61px; vertical-align:top; ">
  243. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
  244. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">입고일 :</caption>
  245. <line id="line13" class="line_4" style="x1:1107px; y1:8px; x2:1107px; y2:51px; "/>
  246. <button id="btn_sea" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
  247. <caption>조회</caption>
  248. <script type="javascript" ev:event="DOMActivate">
  249. <![CDATA[
  250. fGetStemCellList();
  251. ]]>
  252. </script>
  253. </button>
  254. <input id="ipt_pid" ref="/root/send/baseinfo/pid" class="input_search" style="left:430px; top:8px; width:100px; height:19px; ">
  255. <script type="javascript" ev:event="onkeyup">
  256. <![CDATA[
  257. if(event.keyCode == "13"){
  258. model.setValue("/root/send/baseinfo/pid", ipt_pid.currentText)
  259. btn_sea.dispatch("DOMActivate");
  260. }
  261. ]]>
  262. </script>
  263. </input>
  264. <caption id="caption16" class="search_name" style="left:344px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
  265. <caption id="caption5" class="search_name" style="left:545px; top:9px; width:86px; height:17px; ">입고장소 :</caption>
  266. <select1 id="combo14" ref="/root/send/baseinfo/deliveflag" class="combo_search" appearance="minimal" style="left:634px; top:8px; width:116px; height:19px; ">
  267. <choices>
  268. <itemset nodeset="/root/init/cmbinfo/deliveflag/A0156">
  269. <label ref="cdnm"/>
  270. <value ref="cdid"/>
  271. </itemset>
  272. </choices>
  273. </select1>
  274. <input id="input5" ref="/root/send/baseinfo/wintodd" class="input_s_essential" inputtype="date" style="left:225px; top:8px; width:100px; height:19px; "/>
  275. <caption id="caption4" class="search_name" visibility="visible" style="left:545px; top:35px; width:99px; height:17px; ">제대혈은행 :</caption>
  276. <caption id="caption3" class="search_name" style="left:344px; top:36px; width:86px; height:17px; ">골수은행 :</caption>
  277. <select1 id="combo1" ref="/root/send/baseinfo/bonebank" class="combo_search" appearance="minimal" style="left:433px; top:35px; width:97px; height:19px; ">
  278. <choices>
  279. <itemset nodeset="/root/init/cmbinfo/bonebank/B004">
  280. <label ref="cdnm"/>
  281. <value ref="cdid"/>
  282. </itemset>
  283. </choices>
  284. </select1>
  285. <input id="ipt_delivepsnnm" ref="/root/main/userinfo/winpsn/winpsnnm" class="input_search" disabled="true" visibility="hidden" style="left:924px; top:9px; width:80px; height:19px; "/>
  286. <caption id="caption7" class="search_name" style="left:765px; top:10px; width:73px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">입고자 :</caption>
  287. <input id="ipt_winpsnid" ref="/root/send/baseinfo/winpsnid" class="input_search" style="left:841px; top:9px; width:80px; height:19px; ">
  288. <script type="javascript" ev:event="xforms-value-changed">
  289. <![CDATA[
  290. var vUserID = model.getValue("/root/send/baseinfo/winpsnid");
  291. if(vUserID != ""){
  292. model.setvalue("/root/send/baseinfo/winpsnid", vUserID.toUpperCase());
  293. ipt_winpsnid.refresh();
  294. }
  295. ]]>
  296. </script>
  297. </input>
  298. <input id="input2" ref="/root/send/baseinfo/winfromdd" class="input_s_essential" inputtype="date" style="left:100px; top:8px; width:100px; height:19px; "/>
  299. <caption id="caption8" style="left:207px; top:8px; width:12px; height:20px; text-align:center; vertical-align:middle; ">~</caption>
  300. <caption id="caption9" class="search_name" visibility="hidden" style="left:770px; top:35px; width:86px; height:17px; ">혈액번호 :</caption>
  301. <input id="input3" ref="/root/send/baseinfo/blodno" class="input_search" visibility="hidden" style="left:860px; top:35px; width:115px; height:19px; "/>
  302. <select1 id="combo2" ref="/root/send/baseinfo/cordbank" class="combo_search" appearance="minimal" style="left:646px; top:35px; width:104px; height:19px; ">
  303. <choices>
  304. <itemset nodeset="/root/init/cmbinfo/cordbank/B005">
  305. <label ref="cdnm"/>
  306. <value ref="cdid"/>
  307. </itemset>
  308. </choices>
  309. </select1>
  310. </group>
  311. <caption id="caption1" class="tit_2" style="left:5px; top:81px; width:200px; height:13px; ">조혈모세포 입고리스트</caption>
  312. <button id="btn_excsave" class="btn2_letter4" style="left:1130px; top:76px; width:64px; height:19px; ">
  313. <caption>엑셀저장</caption>
  314. <script type="javascript" ev:event="DOMActivate">
  315. <![CDATA[
  316. var fileName = window.fileDialog("save", ",", false, "입고관리", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  317. if (fileName != "")
  318. {
  319. grd_stemcellwinlist.saveExcel(fileName);
  320. }
  321. ]]>
  322. </script>
  323. </button>
  324. <line id="line1" class="line_1" style="x1:0px; y1:96px; x2:1194px; y2:96px; "/>
  325. <datagrid id="grd_stemcellwinlist" nodeset="/root/main/stemcellcwin/stemcellcwinlist" caption="입고일시^등록번호^환자명^병실^입고장소^골수은행^제대혈은행^혈액번호^이송자^Stem Cell Source^입고자^입고자ID^winseqno^windd^wintm^적용일자^처방환자^지시처방명^PRCPNO^PRCPHISTNO^execprcpno" colsep="^" colwidth="127, 110, 116, 100, 101, 107, 100, 71, 114, 143, 100, 100, 100, 100, 100, 90, 80, 200, 100, 100, 100" dataheight="25" defaultrows="1" explorerbar="sortshow" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:0px; top:101px; width:1194px; height:600px; text-align:center; ">
  326. <col ref="windt" type="output" format="yyyy-mm-dd hh:mm:ss"/>
  327. <col ref="pid" type="input" maxlength="10"/>
  328. <col ref="hngnm"/>
  329. <col ref="roomcd"/>
  330. <col ref="deliveflag" type="combo">
  331. <choices>
  332. <itemset nodeset="/root/init/cmbinfo/deliveflag/A0156">
  333. <label ref="cdnm"/>
  334. <value ref="cdid"/>
  335. </itemset>
  336. </choices>
  337. </col>
  338. <col ref="bonebank" type="combo">
  339. <choices>
  340. <itemset nodeset="/root/init/cmbinfo/bonebank/B004">
  341. <label ref="cdnm"/>
  342. <value ref="cdid"/>
  343. </itemset>
  344. </choices>
  345. </col>
  346. <col ref="cordbank" type="combo">
  347. <choices>
  348. <itemset nodeset="/root/init/cmbinfo/cordbank/B005">
  349. <label ref="cdnm"/>
  350. <value ref="cdid"/>
  351. </itemset>
  352. </choices>
  353. </col>
  354. <col ref="blodno" type="input" visibility="hidden"/>
  355. <col ref="tranpsn" type="input" maxlength="50"/>
  356. <col ref="scs" type="combo">
  357. <choices>
  358. <itemset nodeset="/root/init/cmbinfo/stemcellsource/A0159">
  359. <label ref="cdnm"/>
  360. <value ref="cdid"/>
  361. </itemset>
  362. </choices>
  363. </col>
  364. <col ref="winpsnnm" type="input" maxlength="10" style="text-align:center; "/>
  365. <col ref="winpsnid" visibility="hidden"/>
  366. <col ref="winseqno" visibility="hidden"/>
  367. <col ref="windd" visibility="hidden"/>
  368. <col ref="wintm" visibility="hidden"/>
  369. <col ref="prcpdd" visibility="hidden" format="yyyy-mm-dd" style="left:53px; top:23px; width:80px; height:23px; "/>
  370. <col ref="prcpid" type="output" visibility="hidden"/>
  371. <col ref="prcpnm" type="output" visibility="hidden"/>
  372. <col ref="prcpno" type="output" visibility="hidden"/>
  373. <col ref="prcphistno" type="output" visibility="hidden"/>
  374. <col ref="execprcpno" type="output" visibility="hidden"/>
  375. <script type="javascript" ev:event="onaftersort">
  376. <![CDATA[
  377. grd_stemcellwinlist.gridToInstance();
  378. ]]>
  379. </script>
  380. <script type="javascript" ev:event="xforms-value-changed">
  381. <![CDATA[
  382. //환자명, 병실 조회.
  383. if ((grd_stemcellwinlist.row >= grd_stemcellwinlist.fixedRows) && (grd_stemcellwinlist.col == grd_stemcellwinlist.colRef("pid"))){
  384. model.setValue("/root/send/patbaseinfo/pid", model.getValue("/root/main/stemcellcwin/stemcellcwinlist["+ grd_stemcellwinlist.row +"]/pid"));
  385. if(submit("TRABC00502")) {
  386. model.setValue("/root/main/stemcellcwin/stemcellcwinlist["+ grd_stemcellwinlist.row +"]/hngnm", model.getValue("/root/temp/patbaseinfo/item/hngnm"));
  387. model.setValue("/root/main/stemcellcwin/stemcellcwinlist["+ grd_stemcellwinlist.row +"]/roomcd", model.getValue("/root/temp/patbaseinfo/item/roomcd"));
  388. }
  389. }
  390. //환자명, 병실 조회.
  391. if ((grd_stemcellwinlist.row >= grd_stemcellwinlist.fixedRows) && (grd_stemcellwinlist.col == grd_stemcellwinlist.colRef("winpsnnm"))){
  392. model.setvalue("/root/send/userinfo/userid", (model.getValue("/root/main/stemcellcwin/stemcellcwinlist["+ grd_stemcellwinlist.row +"]/winpsnnm")).toUpperCase());
  393. if(submit("TRABC00602")){
  394. model.setValue("/root/main/stemcellcwin/stemcellcwinlist["+ grd_stemcellwinlist.row +"]/winpsnid", model.getValue("/root/temp/userinfo/item/userid"));
  395. model.setValue("/root/main/stemcellcwin/stemcellcwinlist["+ grd_stemcellwinlist.row +"]/winpsnnm", model.getValue("/root/temp/userinfo/item/usernm"));
  396. }
  397. }
  398. //이송자 조회.
  399. if ((grd_stemcellwinlist.row >= grd_stemcellwinlist.fixedRows) && (grd_stemcellwinlist.col == grd_stemcellwinlist.colRef("tranpsn"))){
  400. model.setvalue("/root/send/userinfo/userid", (model.getValue("/root/main/stemcellcwin/stemcellcwinlist["+ grd_stemcellwinlist.row +"]/tranpsn")).toUpperCase());
  401. if(submit("TRABC00602")){
  402. if(model.getValue("/root/temp/userinfo/item/usernm")){
  403. // model.setValue("/root/main/stemcellcwin/stemcellcwinlist["+ grd_stemcellwinlist.row +"]/winpsnid", model.getValue("/root/temp/userinfo/item/userid"));
  404. model.setValue("/root/main/stemcellcwin/stemcellcwinlist["+ grd_stemcellwinlist.row +"]/tranpsn", model.getValue("/root/temp/userinfo/item/usernm"));
  405. }
  406. }
  407. }
  408. model.refresh();
  409. ]]>
  410. </script>
  411. <script type="javascript" ev:event="ondblclick">
  412. <![CDATA[
  413. // grd_stemcellwinlist.endEditCell();
  414. // var spid = model.getValue("/root/main/stemcellcwin/stemcellcwinlist[" + grd_stemcellwinlist.row + "]/pid");
  415. // var sselectrow = grd_stemcellwinlist.row ;
  416. //
  417. // if ( sselectrow > 0 ) {
  418. // var status = grd_stemcellwinlist.rowStatus(grd_stemcellwinlist.row);
  419. // var sflag = "";
  420. // sflag = spid + "▦" + sselectrow ;
  421. // setParameter("opener_parameter_id", sflag);
  422. //
  423. // modal("SPABC60100", 1, "", "", "", "", "", "")
  424. // if(!(status == 1 || status == 3)){
  425. // grd_stemcellwinlist.rowStatus(grd_stemcellwinlist.row) = 2;
  426. // }
  427. //
  428. // }
  429. // model.refresh();
  430. ]]>
  431. </script>
  432. <script type="javascript" ev:event="onclick">
  433. <![CDATA[
  434. if(grd_stemcellwinlist.col == grd_stemcellwinlist.colRef("pid") || grd_stemcellwinlist.col == grd_stemcellwinlist.colRef("tranpsn") || grd_stemcellwinlist.col == grd_stemcellwinlist.colRef("winpsnnm")){
  435. grd_stemcellwinlist.editCell();
  436. model.refresh();
  437. }
  438. ]]>
  439. </script>
  440. </datagrid>
  441. <button id="btn_grdadd" class="btn2_letter3" style="left:1018px; top:76px; width:53px; height:19px; ">
  442. <caption>행추가</caption>
  443. <script type="javascript" ev:event="DOMActivate">
  444. <![CDATA[
  445. grd_stemcellwinlist.addRow();
  446. model.setValue("/root/main/stemcellcwin/stemcellcwinlist["+ grd_stemcellwinlist.row +"]/windt", getCurrentDate() + getCurrentTime());
  447. model.setValue("/root/main/stemcellcwin/stemcellcwinlist["+ grd_stemcellwinlist.row +"]/windd", getCurrentDate());
  448. model.setValue("/root/main/stemcellcwin/stemcellcwinlist["+ grd_stemcellwinlist.row +"]/wintm", getCurrentTime());
  449. grd_stemcellwinlist.refresh();
  450. ]]>
  451. </script>
  452. </button>
  453. <button id="btn_grddel" class="btn2_letter3" style="left:1074px; top:76px; width:53px; height:19px; ">
  454. <caption>행삭제</caption>
  455. <script type="javascript" ev:event="DOMActivate">
  456. <![CDATA[
  457. grd_stemcellwinlist.addStatus(grd_stemcellwinlist.row,"delete");
  458. ]]>
  459. </script>
  460. </button>
  461. <button id="btn_grdcopy" class="btn2_letter3" visibility="hidden" style="left:962px; top:76px; width:53px; height:19px; ">
  462. <caption>행복사</caption>
  463. <script type="javascript" ev:event="DOMActivate">
  464. <![CDATA[
  465. var iSelRow = grd_stemcellwinlist.row;
  466. var iAddRow = grd_stemcellwinlist.addRow();
  467. model.copyNode("/root/main/stemcellcwin/stemcellcwinlist[" + ( grd_stemcellwinlist.rows - 1) + "]", "/root/main/stemcellcwin/stemcellcwinlist[" + iSelRow + "]");
  468. model.setValue("/root/main/stemcellcwin/stemcellcwinlist[" + ( grd_stemcellwinlist.rows - 1) + "]/winseqno", "");
  469. model.setValue("/root/main/stemcellcwin/stemcellcwinlist[" + ( grd_stemcellwinlist.rows - 1) + "]/chk", "Y");
  470. grd_stemcellwinlist.rebuild();
  471. ]]>
  472. </script>
  473. </button>
  474. </group>
  475. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  476. <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
  477. <caption>저장</caption>
  478. <script type="javascript" ev:event="ondelayclick">
  479. <![CDATA[
  480. fExecSave();
  481. /*
  482. if (model.getValue("root/properties/error/description") == ""){
  483. messageBox(model.getValue("root/properties/error/msg"), "E999", "");
  484. }
  485. */
  486. ]]>
  487. </script>
  488. </button>
  489. </group>
  490. </xhtml:body>
  491. </xhtml:html>