SMLPR00700_동결절편결과등록.xrw 71 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMLPR00700_동결절편결과등록.xrw
  4. * 설 명 : 동결절편결과등록
  5. * 설 계 자 : (주)에이씨케이 - 황상미
  6. * 작 성 자 : (주)에이씨케이 - 황상미
  7. * 작 성 일 : 2006.12.13
  8. * 수정이력 : 2007.08.19
  9. * 기 타 :
  10. -->
  11. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  12. <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">
  13. <xhtml:head>
  14. <xhtml:title>동결절편 결과등록</xhtml:title>
  15. <model id="model1">
  16. <instance id="instance1">
  17. <root xmlns="">
  18. <main>
  19. <frznptno>
  20. <frznptnolist>
  21. <instcd/>
  22. <ptno/>
  23. <dispptno/>
  24. <pid/>
  25. <patnm/>
  26. <acptdd/>
  27. <acpttm/>
  28. <oprsrvno/>
  29. <oproomcd/>
  30. <oproomnm/>
  31. <agesex/>
  32. <orddrnm/>
  33. <deptnm/>
  34. <orgacptdd/>
  35. <cstecnts/>
  36. <readdrnm1/>
  37. </frznptnolist>
  38. </frznptno>
  39. <frzncste>
  40. <frzncstelist>
  41. <instcd/>
  42. <ptno/>
  43. <dispptno/>
  44. <spcacptdd/>
  45. <spcacptno/>
  46. <spccd/>
  47. <spcnm/>
  48. <spcacptseqno/>
  49. <csteno/>
  50. <cstecnts/>
  51. <acptdd/>
  52. <acpttm/>
  53. <indd/>
  54. <intm/>
  55. <readdd/>
  56. <readtm/>
  57. <readrslt/>
  58. <readdrnm1/>
  59. <readdrid1/>
  60. <readdrnm2/>
  61. <readdrid2/>
  62. <readdrnm3/>
  63. <readdrid3/>
  64. <delyflagcd/>
  65. <delyresncd/>
  66. <keepflagcd/>
  67. <cmtcnts/>
  68. <oprsrvno/>
  69. <oproomcd/>
  70. <oproomnm/>
  71. <pid/>
  72. <patnm/>
  73. <delyresnnm/>
  74. <choi/>
  75. <extrtm/>
  76. <cnfmtm/>
  77. <orgintm/>
  78. <orggrostm/>
  79. <orgcryostattm/>
  80. <inptflagcd/>
  81. <tat/>
  82. <orgreaddrid1/>
  83. <orgreadtm/>
  84. <grosdd/>
  85. <cryostatdd/>
  86. </frzncstelist>
  87. </frzncste>
  88. <frzntat>
  89. <frzntatlist>
  90. <ptno/>
  91. <dispptno/>
  92. <pid/>
  93. <hngnm/>
  94. <roomcd/>
  95. <testhngnm/>
  96. <deptengabbr/>
  97. <spcnm/>
  98. <extrtm/>
  99. <cnfmdd/>
  100. <cnfmtm/>
  101. <acptdd/>
  102. <acpttm/>
  103. <grostm/>
  104. <cryostattm/>
  105. <indd/>
  106. <intm/>
  107. <readdd/>
  108. <readtm/>
  109. <cnfmacptmin/>
  110. <cnfmacpttm/>
  111. <acptmakemin/>
  112. <acptmaketm/>
  113. <acptreadmin/>
  114. <acptreadmin/>
  115. <spcbarcdno/>
  116. </frzntatlist>
  117. </frzntat>
  118. <etcrslt>
  119. <etcrsltcnt/>
  120. </etcrslt>
  121. </main>
  122. <send/>
  123. <init>
  124. <ptnocode/>
  125. <fromyear/>
  126. <fromptno/>
  127. <toyear/>
  128. <toptno/>
  129. <refflagcd>1</refflagcd>
  130. <refval/>
  131. <acptfromdd/>
  132. <acpttodd/>
  133. <sysdt>
  134. <sysdtinfo>
  135. <sysdd/>
  136. <systm/>
  137. </sysdtinfo>
  138. </sysdt>
  139. <ptnocd>
  140. <ptnocdlist>
  141. <instcd/>
  142. <ptnocd/>
  143. <ptnonm/>
  144. </ptnocdlist>
  145. </ptnocd>
  146. <hospenv>
  147. <hospenvinfo>
  148. <instcd/>
  149. <lendrtnterm/>
  150. <recvqualmthdcd/>
  151. <plgydeptcd/>
  152. <plgyteamcd/>
  153. <doctjobgradcd/>
  154. <teamjobgradcd/>
  155. </hospenvinfo>
  156. </hospenv>
  157. <userinfo>
  158. <userinfolist>
  159. <userid/>
  160. <usernm/>
  161. <jobkindcd/>
  162. </userinfolist>
  163. </userinfo>
  164. <resncd>
  165. <resncdlist>
  166. <instcd/>
  167. <baseflagcd/>
  168. <resncd/>
  169. <resncnts/>
  170. </resncdlist>
  171. </resncd>
  172. </init>
  173. <hidden>
  174. <rsltcont/>
  175. <popupmenu>
  176. <grid>
  177. <item>
  178. <name>결과등록 확장</name>
  179. <func>fExeCntsView</func>
  180. </item>
  181. <item>
  182. <name>결과예문 조회</name>
  183. <func>fExeExmpCall</func>
  184. </item>
  185. </grid>
  186. </popupmenu>
  187. <gridinfo>
  188. <rowno/>
  189. </gridinfo>
  190. <gridinfo>
  191. <rowno/>
  192. </gridinfo>
  193. <grostm/>
  194. <croystattm/>
  195. <slidetm/>
  196. <readtm/>
  197. </hidden>
  198. </root>
  199. </instance>
  200. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  201. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  202. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  203. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  204. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  205. <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
  206. <script type="javascript" ev:event="xforms-ready">
  207. <![CDATA[
  208. fExeInitialize();
  209. ]]>
  210. </script>
  211. <submission id="TRLPZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/hospenv/hospenvinfo"/>
  212. <submission id="TRLPZ00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/sysdt/sysdtinfo"/>
  213. <submission id="TRLPZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/resncd/resncdlist"/>
  214. <submission id="TRLPZ00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/userinfo/userinfolist"/>
  215. <submission id="TRLPZ00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/ptnocd/ptnocdlist"/>
  216. <submission id="TRLPR00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/frznptno/frznptnolist"/>
  217. <submission id="TRLPR00702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/frzncste/frzncstelist"/>
  218. <submission id="TXLPR00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/message"/>
  219. <submission id="TRLPR00703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/frzntat/frzntatlist"/>
  220. <submission id="TRLPR00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/etcrslt/etcrsltcnt"/>
  221. </model>
  222. <script type="javascript">
  223. <![CDATA[
  224. var iMousCol = ""; // 마우스 선택시 선택 컬럼
  225. var iMousRow = ""; // 마우스 선택시 선택 로우
  226. var iCheck = "0"; // 예문 직접 입력인지 컬럼 확장 후 입력인지 구분
  227. var sInptFlag = "";
  228. /* @group : 동결절편결과등록
  229. * @ver : 2007.06.04 (CMCDEV-0001)
  230. * @by : 유동철(ACK)
  231. * @-----------------------------------
  232. * @type : function
  233. * @access : public
  234. * @desc : 화면초기화 함수
  235. */
  236. function fExeInitialize() {
  237. var sCurDate = "";
  238. //--------------------------------------------------
  239. model.removeNodeset("/root/main/frznptno/frznptnolist");
  240. model.removeNodeset("/root/main/frzncste/frzncstelist");
  241. //--------------------------------------------------
  242. grd_frzncstelist.fixedcellcheckbox(0, grd_frzncstelist.colRef("choi2"))=true;
  243. grd_frzncstelist.fixedcellcheckbox(0, grd_frzncstelist.colRef("choi3"))=true;
  244. grd_frzncstelist.fixedcellcheckbox(0, grd_frzncstelist.colRef("choi4"))=true;
  245. grd_rsltinpt.fixedcellcheckbox(0, grd_rsltinpt.colRef("choi"))=true;
  246. btn_inptrslt.selected = true;
  247. model.toggle("case2");
  248. sInptFlag = "inptrslt";
  249. grd_tatlist.colHidden(grd_tatlist.colRef("spcbarcdno")) = true;
  250. //----------------
  251. // 시스템일시 조회
  252. model.removeNodeset("/root/send");
  253. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  254. submit("TRLPZ00101", false);
  255. submit("TRLPZ00102", false);
  256. submit("TRLPZ00109", false);
  257. //--------------------
  258. // 지연사유 목록 조회
  259. model.makeValue("/root/send/baseflagcd", "'D1'");
  260. submit("TRLPZ00103", false);
  261. //-----------------------------------------
  262. // 지연사유 목록에서 "전체"를 공백으로 변환
  263. //model.removeNodeset("/root/init/resncd/resncdlist[resncd = 'ZZZZ']");
  264. model.makeValue("/root/init/resncd/resncdlist[resncd = 'ZZZZ']/resncnts", " ");
  265. model.makeValue("/root/init/resncd/resncdlist[resncd = 'ZZZZ']/resncd", "-");
  266. //---------------------------------------------------------
  267. // 병원환경정보를 취득하여 병리과와 병리팀 코드를 편집한다.
  268. lpzfUserDeptCd("/root/init/hospenv/hospenvinfo", "/root/hidden");
  269. //----------------------------------------------------------------------------------
  270. model.makeValue("/root/send/userdeptcd", model.getValue("/root/hidden/userdeptcd"));
  271. model.makeValue("/root/send/doctjobgradcd", model.getValue("/root/init/hospenv/hospenvinfo/doctjobgradcd"));
  272. model.makeValue("/root/send/teamjobgradcd", model.getValue("/root/init/hospenv/hospenvinfo/teamjobgradcd"));
  273. submit("TRLPZ00105");
  274. //-------------------------------------------
  275. model.makeValue("/root/init/refflagcd", "1");
  276. model.makeValue("/root/init/acptfromdd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  277. model.makeValue("/root/init/acpttodd", model.getValue("/root/init/sysdt/sysdtinfo/sysdd"));
  278. model.makeValue("/root/init/refval", "");
  279. //------------------------------------------------------------
  280. sCurDate = model.getValue("/root/init/sysdt/sysdtinfo/sysdd");
  281. model.makeValue("/root/init/ptnocode", "S");
  282. model.makeValue("/root/init/fromyear", sCurDate.substr(2,2));
  283. model.makeValue("/root/init/toyear", sCurDate.substr(2,2));
  284. model.makeValue("/root/init/fromptno", "");
  285. model.makeValue("/root/init/toptno", "");
  286. //-------------------
  287. cbo_ptnocd.refresh();
  288. model.refresh();
  289. }
  290. /* @group : 동결절편결과등록
  291. * @ver : 2007.06.04 (CMCDEV-0001)
  292. * @by : 유동철(ACK)
  293. * @-----------------------------------
  294. * @type : function
  295. * @access : public
  296. * @desc : 동절절편 병리번호 조회 함수
  297. */
  298. function fGetFrznPtNolist() {
  299. var sTemp = "";
  300. //--------------------------------
  301. model.removeNodeset("/root/send");
  302. model.removeNodeset("/root/main/frzncste/frzncstelist");
  303. //------------------------------------------------
  304. if (model.getValue("/root/init/ptnocode") != "") {
  305. //------------------------------------------------
  306. if (model.getValue("/root/init/fromyear") == "") {
  307. model.makeValue("/root/init/fromyear", sFromDD.substr(2,2));
  308. } else {
  309. sTemp = model.getValue("/root/init/fromyear");
  310. model.makeValue("/root/init/fromyear", sTemp.getLeftPad(2, "0"));
  311. }
  312. //----------------------------------------------
  313. if (model.getValue("/root/init/toyear") == "") {
  314. model.makeValue("/root/init/toyear", sToDD.substr(2,2));
  315. } else {
  316. sTemp = model.getValue("/root/init/toyear");
  317. model.makeValue("/root/init/toyear", sTemp.getLeftPad(2, "0"));
  318. }
  319. //------------------------------------------------
  320. if (model.getValue("/root/init/fromptno") == "") {
  321. model.makeValue("/root/init/fromptno", "000000");
  322. } else {
  323. sTemp = model.getValue("/root/init/fromptno");
  324. model.makeValue("/root/init/fromptno", sTemp.getLeftPad(6, "0"));
  325. }
  326. //----------------------------------------------
  327. if (model.getValue("/root/init/toptno") == "") {
  328. model.makeValue("/root/init/toptno", "999999");
  329. } else {
  330. sTemp = model.getValue("/root/init/toptno");
  331. model.makeValue("/root/init/toptno", sTemp.getLeftPad(6, "0"));
  332. }
  333. }
  334. //--------------------------------------------
  335. sTemp = model.getValue("/root/init/ptnocode");
  336. //---------------------------------------------------------------------
  337. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  338. model.makeValue("/root/send/acptfromdd", model.getValue("/root/init/acptfromdd"));
  339. model.makeValue("/root/send/acpttodd", model.getValue("/root/init/acpttodd"));
  340. model.makeValue("/root/send/refflagcd", model.getValue("/root/init/refflagcd"));
  341. model.makeValue("/root/send/refval", model.getValue("/root/init/refval"));
  342. model.makeValue("/root/send/ptnocode", sTemp.replace("-", ""));
  343. model.makeValue("/root/send/fromyear", model.getValue("/root/init/fromyear"));
  344. model.makeValue("/root/send/fromptno", model.getValue("/root/init/fromptno"));
  345. model.makeValue("/root/send/toyear", model.getValue("/root/init/toyear"));
  346. model.makeValue("/root/send/toptno", model.getValue("/root/init/toptno"));
  347. if(sInptFlag == "tat") {
  348. //tat 조회
  349. if(submit("TRLPR00703")) {
  350. grd_tatlist.autoResize = true;
  351. grd_tatlist.refresh();
  352. }
  353. } else {
  354. //병리번호 목록 조회
  355. submit("TRLPR00701");
  356. }
  357. }
  358. /* @group : 동결절편결과등록
  359. * @ver : 2007.06.05 (CMCDEV-0001)
  360. * @by : 유동철(ACK)
  361. * @-----------------------------------
  362. * @type : function
  363. * @access : public
  364. * @desc : 동절절편 병리번호 조회 함수
  365. */
  366. function fExePtNoGridClick(pRowNo, pBizFlagCd, pInptFlag) {
  367. var sSrcNode = "/root/main/frznptno/frznptnolist";
  368. var sDescNode = "/root/main/frzncste/frzncstelist";
  369. //----------------------------
  370. if (pRowNo <= 0) return false;
  371. if(pInptFlag == "fslist"){
  372. if (grd_frznptnolist.row >= grd_frznptnolist.fixedRows) {
  373. // Continue
  374. } else {
  375. return false;
  376. }
  377. } else {
  378. if (grd_frznlist.row >= grd_frznlist.fixedRows) {
  379. // Continue
  380. } else {
  381. return false;
  382. }
  383. }
  384. //--------------------------------
  385. model.removeNodeset("/root/send");
  386. //-----------------------------------------------------------------------------------------
  387. model.makeValue("/root/send/instcd", model.getValue(sSrcNode + "[" + pRowNo + "]/instcd"));
  388. model.makeValue("/root/send/ptno", model.getValue(sSrcNode + "[" + pRowNo + "]/ptno"));
  389. //-------------------
  390. submit("TRLPR00702");
  391. //------------------------------------------------------------------
  392. for (var iRowNo=1; iRowNo <= getNodesetCount(sDescNode); iRowNo++) {
  393. //---------------------
  394. // 접수일자 기본값 설정
  395. if (model.getValue(sDescNode + "[" + iRowNo + "]/acptdd") == "-") {
  396. model.makeValue(sDescNode + "[" + iRowNo + "]/acptdd", model.getValue(sSrcNode + "[" + pRowNo + "]/acptdd"));
  397. //model.makeValue(sDescNode + "[" + iRowNo + "]/acpttm", model.getValue(sSrcNode + "[" + pRowNo + "]/acpttm"));
  398. }
  399. //---------------------
  400. // 입고일자 기본값 설정
  401. if (model.getValue(sDescNode + "[" + iRowNo + "]/indd") == "-") {
  402. model.makeValue(sDescNode + "[" + iRowNo + "]/indd", model.getValue(sSrcNode + "[" + pRowNo + "]/acptdd"));
  403. //model.makeValue(sDescNode + "[" + iRowNo + "]/intm", model.getValue(sDescNode + "[" + pRowNo + "]/acpttm"));
  404. }
  405. //---------------------
  406. // 판독일자 기본값 설정
  407. if (model.getValue(sDescNode + "[" + iRowNo + "]/readdd") == "-") {
  408. model.makeValue(sDescNode + "[" + iRowNo + "]/readdd", model.getValue(sSrcNode + "[" + pRowNo + "]/acptdd"));
  409. }
  410. //---------------------
  411. // 그로스일자일자 기본값 설정
  412. if (model.getValue(sDescNode + "[" + iRowNo + "]/grosdd") == "-" || model.getValue(sDescNode + "[" + iRowNo + "]/grosdd") == "") {
  413. model.makeValue(sDescNode + "[" + iRowNo + "]/grosdd", model.getValue(sSrcNode + "[" + pRowNo + "]/acptdd"));
  414. }
  415. //---------------------
  416. // Croystat일자 기본값 설정
  417. if (model.getValue(sDescNode + "[" + iRowNo + "]/cryostatdd") == "-" || model.getValue(sDescNode + "[" + iRowNo + "]/cryostatdd") == "") {
  418. model.makeValue(sDescNode + "[" + iRowNo + "]/cryostatdd", model.getValue(sSrcNode + "[" + pRowNo + "]/acptdd"));
  419. }
  420. if (model.getValue(sDescNode+"["+iRowNo+"]/delyresncd") == "" || model.getValue(sDescNode+"["+iRowNo+"]/delyresncd") == "-") {
  421. // Continue
  422. } else {
  423. model.setValue(sDescNode+"["+iRowNo+"]/delyresnnm", model.getValue("/root/init/resncd/resncdlist[resncd='"+model.getValue(sDescNode+"["+iRowNo+"]/delyresncd")+"']/resncnts"));
  424. }
  425. //----------------
  426. // 수술방정보 설정
  427. model.makeValue(sDescNode + "[" + iRowNo + "]/oprsrvno", model.getValue(sSrcNode + "[" + pRowNo + "]/oprsrvno"));
  428. model.makeValue(sDescNode + "[" + iRowNo + "]/oproomcd", model.getValue(sSrcNode + "[" + pRowNo + "]/oproomcd"));
  429. model.makeValue(sDescNode + "[" + iRowNo + "]/oproomnm", model.getValue(sSrcNode + "[" + pRowNo + "]/oproomnm"));
  430. model.makeValue(sDescNode + "[" + iRowNo + "]/pid", model.getValue(sSrcNode + "[" + pRowNo + "]/pid"));
  431. model.makeValue(sDescNode + "[" + iRowNo + "]/patnm", model.getValue(sSrcNode + "[" + pRowNo + "]/patnm"));
  432. if(pInptFlag == "fslist"){
  433. model.makeValue(sDescNode + "[" + iRowNo + "]/choi", "true");
  434. }
  435. }
  436. //--------------------------------------------------
  437. // 수술방코드가 없는경우 메세지 전송불가 경고창 표시
  438. if(pInptFlag == "inptrslt") {
  439. //정도관리 입력여부 조회.
  440. fGetEtcRsltCnt();
  441. //TAT계산
  442. fexeTAT();
  443. if (model.getValue(sSrcNode+"["+pRowNo+"]/oproomcd") == "" || model.getValue(sSrcNode+"["+pRowNo+"]/oproomcd") == "-") {
  444. if (pBizFlagCd == "0") {
  445. messageBox("수술방이 없습니다! 저장할 경우 메세지를 전송", "E001");
  446. }
  447. }
  448. }
  449. }
  450. /* @group : 동결절편결과등록
  451. * @ver : 2007.06.04 (CMCDEV-0001)
  452. * @by : 유동철(ACK)
  453. * @-----------------------------------
  454. * @type : function
  455. * @access : public
  456. * @desc : 동절절편 결과저장 함수
  457. */
  458. function fExeFrznRsltSave(pInptFlag) {
  459. var sSrcNode = "/root/main/frzncste/frzncstelist";
  460. var sUserNode = "/root/init/userinfo/userinfolist";
  461. var iCheck = 0;
  462. //--------------------------------
  463. model.removeNodeset("/root/send");
  464. if(sInptFlag == "fslist") {
  465. iCheck = grd_frzncstelist.findRow("true", 0, grd_frzncstelist.colRef("choi"), true, true);
  466. grd_frzncstelist.clearStatus();
  467. } else {
  468. iCheck = grd_rsltinpt.findRow("true", 0, grd_rsltinpt.colRef("choi"), true, true);
  469. grd_rsltinpt.clearStatus();
  470. }
  471. if(iCheck <= 0) {
  472. messageBox("저장 할 세부 목록을 선택하여 주세요", "I999");
  473. return false;
  474. }
  475. //-------------------------
  476. // 판독의사의 입력여부 검사
  477. for (var iRowNo=1; iRowNo <= getNodesetCount(sSrcNode); iRowNo++)
  478. {
  479. if(pInptFlag == "inptrslt") { //판독의사는 결과입력일 경우만 체크 한다.
  480. if(model.getValue(sSrcNode+"["+iRowNo+"]/choi") == "true") {
  481. model.makeValue(sSrcNode+"["+iRowNo+"]/inptflagcd", sInptFlag);
  482. // 결과가 있다면 판독의사1은 무조건 입력되어야 한다.
  483. if ( ((model.getValue(sSrcNode+"["+iRowNo+"]/readrslt")).length > 1 )
  484. && (model.getValue(sSrcNode+"["+iRowNo+"]/readdrid1") == ""
  485. || model.getValue(sSrcNode+"["+iRowNo+"]/readdrid1") == "-"))
  486. {
  487. messageBox("판독의사1은 ", "I003");
  488. return false;
  489. }
  490. //-----------------------------------------------------------
  491. // 판독시간이 입력된 경우 판고의사1은 반드시 입력되어야 한다.
  492. if (model.getValue(sSrcNode+"["+iRowNo+"]/readtm") == ""
  493. || model.getValue(sSrcNode+"["+iRowNo+"]/readtm") == "-")
  494. {
  495. if (model.getValue(sSrcNode+"["+iRowNo+"]/readdrid1") == ""
  496. || model.getValue(sSrcNode+"["+iRowNo+"]/readdrid1") == "-")
  497. {
  498. grd_rsltinpt.removeStatus(iRowNo, "insert");
  499. }
  500. else
  501. {
  502. model.makeValue(sSrcNode+"["+iRowNo+"]/readtm", getCurrentTime());
  503. grd_rsltinpt.addStatus(iRowNo, "insert");
  504. }
  505. }
  506. else
  507. {
  508. if (model.getValue(sSrcNode+"["+iRowNo+"]/readdrid1") == ""
  509. || model.getValue(sSrcNode+"["+iRowNo+"]/readdrid1") == "-")
  510. {
  511. messageBox("판독의사1은 ", "I003");
  512. return false;
  513. }
  514. else
  515. {
  516. grd_rsltinpt.addStatus(iRowNo, "insert");
  517. }
  518. }
  519. //-----------------------------------------------------------------------------------------------------------------------------------------------------
  520. model.setValue(sSrcNode+"["+iRowNo+"]/readdrnm1", model.getValue(sUserNode+"[userid='"+model.getValue(sSrcNode+"["+iRowNo+"]/readdrid1")+"']/usernm"));
  521. model.setValue(sSrcNode+"["+iRowNo+"]/readdrnm2", model.getValue(sUserNode+"[userid='"+model.getValue(sSrcNode+"["+iRowNo+"]/readdrid2")+"']/usernm"));
  522. }
  523. } else {
  524. //FS list 저장
  525. if(model.getValue(sSrcNode+"["+iRowNo+"]/choi") == "true") {
  526. model.makeValue(sSrcNode+"["+iRowNo+"]/inptflagcd", sInptFlag);
  527. grd_frzncstelist.addStatus(iRowNo, "insert");
  528. }
  529. }
  530. if(model.getValue(sSrcNode+"["+iRowNo+"]/grostm") != "" && model.getValue(sSrcNode+"["+iRowNo+"]/grostm") != "-") {
  531. model.makeValue(sSrcNode+"["+iRowNo+"]/grostm", model.getValue(sSrcNode+"["+iRowNo+"]/grosdd") + model.getValue(sSrcNode+"["+iRowNo+"]/grostm"));
  532. } else {
  533. model.makeValue(sSrcNode+"["+iRowNo+"]/grostm", "");
  534. }
  535. if(model.getValue(sSrcNode+"["+iRowNo+"]/cryostattm") != "" && model.getValue(sSrcNode+"["+iRowNo+"]/cryostattm") != "-") {
  536. model.makeValue(sSrcNode+"["+iRowNo+"]/cryostattm", model.getValue(sSrcNode+"["+iRowNo+"]/cryostatdd") + model.getValue(sSrcNode+"["+iRowNo+"]/cryostattm"));
  537. } else {
  538. model.makeValue(sSrcNode+"["+iRowNo+"]/cryostattm", "");
  539. }
  540. }
  541. if(pInptFlag == "fslist") {
  542. model.makeValue("/root/send/frznrslt", grd_frzncstelist.getUpdateData("insert"));
  543. } else {
  544. model.makeValue("/root/send/frznrslt", grd_rsltinpt.getUpdateData("insert"));
  545. }
  546. //-----------
  547. setAlertOn();
  548. if (submit("TXLPR00701")) {
  549. if(pInptFlag == "inptrslt") {
  550. fExePtNoGridClick(grd_frznlist.row, "1", sInptFlag);
  551. if (model.getValue("/root/main/etcrslt/etcrsltcnt[bizflagcd='G']/rsltcnt") == "0") {
  552. if(messageBox("정도관리가 등록되지 않았습니다. ", "Q014") == "6") {
  553. fExeScopManage();
  554. fGetEtcRsltCnt();
  555. }
  556. }
  557. } else {
  558. fExePtNoGridClick(grd_frznptnolist.row, "1", sInptFlag);
  559. }
  560. }
  561. }
  562. /* @group : 동결절편결과등록
  563. * @ver : 2007.12.14 (CMCDEV-0001)
  564. * @by : 유동철(ACK)
  565. * @-----------------------------------
  566. * @type : function
  567. * @access : public
  568. * @desc : 등록번호 조회값 ㅣ입력처리 함수
  569. */
  570. function fExeRefValKeyPressRslt() {
  571. if(event.keyCode == 13) {
  572. model.setValue("/root/init/refval", input3.currentText);
  573. input3.refresh();
  574. //-----------------
  575. fGetFrznPtNolist();
  576. }
  577. }
  578. /* @group : 동결절편결과등록
  579. * @ver : 2007.12.14 (CMCDEV-0001)
  580. * @by : 유동철(ACK)
  581. * @-----------------------------------
  582. * @type : function
  583. * @access : public
  584. * @desc : 등록번호 조회값 ㅣ입력처리 함수
  585. */
  586. function fExeRefValKeyPressFslist() {
  587. if(event.keyCode == 13) {
  588. model.setValue("/root/init/refval", ipt_seaval.currentText);
  589. ipt_seaval.refresh();
  590. //-----------------
  591. fGetFrznPtNolist();
  592. }
  593. }
  594. /* @group : 동결절편결과등록
  595. * @ver : 2007.12.14 (CMCDEV-0001)
  596. * @by : 유동철(ACK)
  597. * @-----------------------------------
  598. * @type : function
  599. * @access : public
  600. * @desc : 등록번호 조회값 ㅣ입력처리 함수
  601. */
  602. function fExeRefValKeyPress() {
  603. if(event.keyCode == 13) {
  604. model.setValue("/root/init/refval", input10.currentText);
  605. input10.refresh();
  606. //-----------------
  607. fGetFrznPtNolist();
  608. }
  609. }
  610. /* @group : 동결절편결과등록
  611. * @ver : 2008.03.03 (CMCDEV-0001)
  612. * @by : 유동철(ACK)
  613. * @-----------------------------------
  614. * @type : function
  615. * @access : public
  616. * @desc : 지연사유 선택 처리 함수
  617. */
  618. function fExeDelyClick() {
  619. var iNo = grd_rsltinpt.row;
  620. //-------------------------------
  621. if (grd_rsltinpt.col == grd_rsltinpt.colRef("delyresncd")) {
  622. if (model.getValue("/root/main/frzncste/frzncstelist["+iNo+"]/delyresncd") == "" ||
  623. model.getValue("/root/main/frzncste/frzncstelist["+iNo+"]/delyresncd") == "-") {
  624. model.setValue("/root/main/frzncste/frzncstelist["+iNo+"]/delyresnnm", "");
  625. } else {
  626. model.setValue("/root/main/frzncste/frzncstelist["+iNo+"]/delyresnnm", model.getValue("/root/init/resncd/resncdlist[resncd='"+model.getValue("/root/main/frzncste/frzncstelist["+iNo+"]/delyresncd")+"']/resncnts"));
  627. }
  628. }
  629. }
  630. /* @group : 동결절편결과등록
  631. * @ver : 2008.03.03 (CMCDEV-0001)
  632. * @by : 유동철(ACK)
  633. * @-----------------------------------
  634. * @type : function
  635. * @access : public
  636. * @desc : 그리드 클릭 처리 함수
  637. */
  638. function fExeFrznGridClick(pRow, pCol) {
  639. //--------------------------------------------------------------------------------------------
  640. if (pRow > 0 && grd_frzncstelist.isCell(event.target) && pRow >= grd_frzncstelist.fixedRows) {
  641. fExeFrznGridChoi(pRow, pCol);
  642. }
  643. }
  644. /* @group : 동결절편결과등록
  645. * @ver : 2008.03.03 (CMCDEV-0001)
  646. * @by : 유동철(ACK)
  647. * @-----------------------------------
  648. * @type : function
  649. * @access : public
  650. * @desc : 그리드 선택 처리 함수
  651. */
  652. function fExeFrznGridChoi(pRow, pCol) {
  653. var sNode = "/root/main/frzncste/frzncstelist";
  654. var sKeepFlagCd = model.getValue(sNode+"["+pRow+"]/keepflagcd");
  655. var sInstCd = model.getValue(sNode+"["+pRow+"]/instcd");
  656. var sPtNo = model.getValue(sNode+"["+pRow+"]/ptno");
  657. var sSpcAcptDD = model.getValue(sNode+"["+pRow+"]/spcacptdd");
  658. var sSpcAcptNo = model.getValue(sNode+"["+pRow+"]/spcacptno");
  659. var sSpcAcptSeqNo = model.getValue(sNode+"["+pRow+"]/spcacptseqno");
  660. //-------------------------------
  661. // 보관 컬럼이 선택된 경우만 처리
  662. if (pCol == grd_frzncstelist.colRef("keepflagcd"))
  663. {
  664. for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++)
  665. {
  666. if (iNo != pRow)
  667. {
  668. if (sInstCd == model.getValue(sNode+"["+iNo+"]/instcd")) // 기관코드 비교
  669. {
  670. if (sPtNo == model.getValue(sNode+"["+iNo+"]/ptno")) // 병리번호 비교
  671. {
  672. if (sSpcAcptDD == model.getValue(sNode+"["+iNo+"]/spcacptdd")) // 검체접수일자 비교
  673. {
  674. if (sSpcAcptNo == model.getValue(sNode+"["+iNo+"]/spcacptno")) // 검체접수번호 비교
  675. {
  676. if (sSpcAcptSeqNo == model.getValue(sNode+"["+iNo+"]/spcacptseqno")) // 검체접수일련번호 비교
  677. {
  678. model.setValue(sNode+"["+iNo+"]/keepflagcd", sKeepFlagCd);
  679. if (sKeepFlagCd == "true")
  680. {
  681. //------------------------------------------------
  682. // 2008-08-26 : 간호팀(수술방) 요청으로 "Y"로 변경
  683. // model.setValue(sNode+"["+iNo+"]/cmtcnts", "검체보관중", true);
  684. model.setValue(sNode+"["+iNo+"]/cmtcnts", "Y", true);
  685. } else
  686. {
  687. model.setValue(sNode+"["+iNo+"]/cmtcnts", "", true);
  688. }
  689. }
  690. }
  691. }
  692. }
  693. }
  694. }
  695. else
  696. {
  697. //--------------------------
  698. if (sKeepFlagCd == "true")
  699. {
  700. model.setValue(sNode+"["+iNo+"]/cmtcnts", "검체보관중", true);
  701. }
  702. else
  703. {
  704. model.setValue(sNode+"["+iNo+"]/cmtcnts", "", true);
  705. }
  706. }
  707. }
  708. }
  709. //-------------------------
  710. grd_frzncstelist.refresh();
  711. }
  712. /* @group : 동결절편결과등록
  713. * @ver : 2008.11.21 (CMCDEV-0001)
  714. * @by : 하만석(ACK)
  715. * @-----------------------------------
  716. * @type : function
  717. * @access : public
  718. * @desc : 그리드의 결과 더블클릭 처리 함수
  719. */
  720. function fExeCntsView()
  721. {
  722. if(model.getValue("/root/main/frzncste/frzncstelist[" + iMousRow + "]/readrslt") == "-") {
  723. model.makeValue("/root/hidden/rsltcont", "");
  724. } else {
  725. model.makeValue("/root/hidden/rsltcont"
  726. , model.getValue("/root/main/frzncste/frzncstelist[" + iMousRow + "]/readrslt"));
  727. }
  728. tar_rsltcnts.refresh();
  729. grp_rsltcnts.visible = true;
  730. model.setFocus("tar_rsltcnts");
  731. }
  732. /* @group : 동결절편결과등록
  733. * @ver : 2008.11.21 (CMCDEV-0001)
  734. * @by : 하만석(ACK)
  735. * @-----------------------------------
  736. * @type : function
  737. * @access : public
  738. * @desc : 결과 등록 후 처리 함수
  739. */
  740. function fExeCloseCntsView()
  741. {
  742. model.makeValue("/root/main/frzncste/frzncstelist[" + iMousRow + "]/readrslt", tar_rsltcnts.currentText);
  743. // 그리드 Attribute 항목에 설정이 되어있어도 자동 조절 안되서
  744. grd_frzncstelist.autoResize = true;
  745. grd_frzncstelist.refresh();
  746. grp_rsltcnts.visible = false;
  747. }
  748. /* @group : 검사결과등록
  749. * @ver : 2008.11.21 (CMCDEV-0001)
  750. * @by : 하만석(ACK)
  751. * @-----------------------------------
  752. * @type : function
  753. * @access : public
  754. * @desc : 결과예문 팝업 호출 처리 Function
  755. */
  756. function fExeExmpCall()
  757. {
  758. // 예문 조회할 의사 ID 설정
  759. setParameter("SPLPR01600_rgstdrid", getUserId());
  760. //modal("SPLPR01600", "", "", "", "SPLPR01600", "", "");
  761. modal("SPLPR01600");
  762. if (getParameter( "SPLPR01600_exmpcnts") != "")
  763. {
  764. if (iCheck == "1" )
  765. {
  766. // 확장 텍스트 입력 창에서 결과예문 조회 시
  767. model.makeValue("root/hidden/rsltcont", getParameter( "SPLPR01600_exmpcnts"));
  768. tar_rsltcnts.refresh();
  769. }
  770. else if ( iCheck == "0" )
  771. {
  772. // 목록 그리드에서 결과예문 조회 시
  773. model.makeValue("/root/main/frzncste/frzncstelist[" + iMousRow + "]/readrslt"
  774. , getParameter( "SPLPR01600_exmpcnts"));
  775. // 그리드 Attribute 항목에 설정이 되어있어도 자동 조절 안되서
  776. grd_frzncstelist.autoResize = true;
  777. grd_frzncstelist.refresh();
  778. }
  779. }
  780. iCheck = "0";
  781. }
  782. /* @group : 검사결과등록
  783. * @ver : 2008.11.21 (CMCDEV-0001)
  784. * @by : 하만석(ACK)
  785. * @-----------------------------------
  786. * @type : function
  787. * @access : public
  788. * @desc : 진단결과 팝업 호출 처리 Function
  789. */
  790. function fGetMouseDown()
  791. {
  792. model.removeNodeset("/root/hidden/gridinfo");
  793. initPopupMenu(); // 팝업 메뉴 선택시 초기화
  794. if(event.button == 3 && iMousCol == 17 ) // 마우스 우클릭 메뉴
  795. {
  796. //model.makeValue("/root/hidden/gridinfo/rowno", iMousCol);
  797. setPopupMenu("grd_frzncstelist", false, "/root/hidden/popupmenu/grid/item", "name", "func");
  798. }
  799. }
  800. /* @group : 검사결과등록
  801. * @ver : 2008.11.21 (CMCDEV-0001)
  802. * @by : 하만석(ACK)
  803. * @-----------------------------------
  804. * @type : function
  805. * @access : public
  806. * @desc : 시간 set Function
  807. */
  808. function fExeHeaderChoi(pBizFlagCd) {
  809. var sSrcNode = "/root/main/frzncste/frzncstelist";
  810. var sDate = getCurrentDate();
  811. var sTime = getCurrentTime();
  812. //--------------
  813. // 전체선택 처리
  814. if (grd_frzncstelist.row == 0 && grd_frzncstelist.col == grd_frzncstelist.colRef("choi2")) {
  815. //--------------------------------------------------------
  816. for (var iNo=1; iNo <= getNodesetCount(sSrcNode); iNo++) {
  817. //--------------------------------------------------------
  818. if (model.getValue(sSrcNode+"["+iNo+"]/choi2") == "true") {
  819. model.makeValue(sSrcNode+"["+iNo+"]/grostm", sTime);
  820. } else {
  821. model.makeValue(sSrcNode+"["+iNo+"]/grostm", model.getValue(sSrcNode+"["+iNo+"]/orggrostm"));
  822. }
  823. }
  824. } else if(grd_frzncstelist.col == grd_frzncstelist.colRef("choi2")){
  825. //--------------------------------------------------------
  826. if (model.getValue(sSrcNode+"["+grd_frzncstelist.row+"]/choi2") == "true") {
  827. model.makeValue(sSrcNode+"["+grd_frzncstelist.row+"]/grostm", sTime);
  828. } else {
  829. model.makeValue(sSrcNode+"["+grd_frzncstelist.row+"]/grostm", model.getValue(sSrcNode+"["+grd_frzncstelist.row+"]/orggrostm"));
  830. }
  831. }
  832. //--------------
  833. // 전체선택 처리
  834. if (grd_frzncstelist.row == 0 && grd_frzncstelist.col == grd_frzncstelist.colRef("choi3")) {
  835. //--------------------------------------------------------
  836. for (var iNo=1; iNo <= getNodesetCount(sSrcNode); iNo++) {
  837. //--------------------------------------------------------
  838. if (model.getValue(sSrcNode+"["+iNo+"]/choi3") == "true") {
  839. model.makeValue(sSrcNode+"["+iNo+"]/cryostattm", sTime);
  840. } else {
  841. model.makeValue(sSrcNode+"["+iNo+"]/cryostattm", model.getValue(sSrcNode+"["+iNo+"]/orgcryostattm"));
  842. }
  843. }
  844. } else if(grd_frzncstelist.col == grd_frzncstelist.colRef("choi3")){
  845. //--------------------------------------------------------
  846. if (model.getValue(sSrcNode+"["+grd_frzncstelist.row+"]/choi3") == "true") {
  847. model.makeValue(sSrcNode+"["+grd_frzncstelist.row+"]/cryostattm", sTime);
  848. } else {
  849. model.makeValue(sSrcNode+"["+grd_frzncstelist.row+"]/cryostattm", model.getValue(sSrcNode+"["+grd_frzncstelist.row+"]/orgcryostattm"));
  850. }
  851. }
  852. //--------------
  853. // 전체선택 처리
  854. if (grd_frzncstelist.row == 0 && grd_frzncstelist.col == grd_frzncstelist.colRef("choi4")) {
  855. //--------------------------------------------------------
  856. for (var iNo=1; iNo <= getNodesetCount(sSrcNode); iNo++) {
  857. //--------------------------------------------------------
  858. if (model.getValue(sSrcNode+"["+iNo+"]/choi4") == "true") {
  859. model.makeValue(sSrcNode+"["+iNo+"]/intm", sTime);
  860. } else {
  861. model.makeValue(sSrcNode+"["+iNo+"]/intm", model.getValue(sSrcNode+"["+iNo+"]/orgintm"));
  862. }
  863. }
  864. } else if(grd_frzncstelist.col == grd_frzncstelist.colRef("choi4")){
  865. //--------------------------------------------------------
  866. if (model.getValue(sSrcNode+"["+grd_frzncstelist.row+"]/choi") == "true") {
  867. model.makeValue(sSrcNode+"["+grd_frzncstelist.row+"]/intm", sTime);
  868. } else {
  869. model.makeValue(sSrcNode+"["+grd_frzncstelist.row+"]/intm", model.getValue(sSrcNode+"["+grd_frzncstelist.row+"]/orgintm"));
  870. }
  871. }
  872. //-------------------------
  873. grd_frzncstelist.refresh();
  874. }
  875. /* @group : 검사결과등록
  876. * @ver : 2008.11.21 (CMCDEV-0001)
  877. * @by : 하만석(ACK)
  878. * @-----------------------------------
  879. * @type : function
  880. * @access : public
  881. * @desc : 시간 set Function
  882. */
  883. function fExeHeaderChoi2(pBizFlagCd) {
  884. var sSrcNode = "/root/main/frzncste/frzncstelist";
  885. var sDate = getCurrentDate();
  886. var sTime = getCurrentTime();
  887. //--------------
  888. // 전체선택 처리
  889. if (grd_rsltinpt.row == 0 && grd_rsltinpt.col == grd_rsltinpt.colRef("choi")) {
  890. //--------------------------------------------------------
  891. for (var iNo=1; iNo <= getNodesetCount(sSrcNode); iNo++) {
  892. //--------------------------------------------------------
  893. if (model.getValue(sSrcNode+"["+iNo+"]/choi") == "true") {
  894. model.makeValue(sSrcNode+"["+iNo+"]/readtm", sTime);
  895. //판독의사는 입력이 되어 있지 않을 경우만 set 한다.
  896. if(model.getValue(sSrcNode+"["+iNo+"]/readdrid1") == "" || model.getValue(sSrcNode+"["+iNo+"]/readdrid1") == "-") {
  897. if((model.getValue("/root/init/userinfo/userinfolist[jobkindcd=1 and userid="+ getUserId() +"]/usernm")) == "") {
  898. model.makeValue(sSrcNode+"["+iNo+"]/readdrid1", model.getValue(sSrcNode+"["+iNo+"]/orgreaddrid1"));
  899. } else {
  900. model.makeValue(sSrcNode+"["+iNo+"]/readdrid1", getUserId());
  901. }
  902. }
  903. } else {
  904. model.makeValue(sSrcNode+"["+iNo+"]/readtm", model.getValue(sSrcNode+"["+iNo+"]/orgreadtm"));
  905. model.makeValue(sSrcNode+"["+iNo+"]/readdrid1", model.getValue(sSrcNode+"["+iNo+"]/orgreaddrid1"));
  906. }
  907. }
  908. } else if(grd_rsltinpt.col == grd_rsltinpt.colRef("choi")){
  909. //--------------------------------------------------------
  910. if (model.getValue(sSrcNode+"["+grd_rsltinpt.row+"]/choi") == "true") {
  911. //판독시간은 입력이 되어 있지 않은 경우 에만 Set 한다.
  912. if(model.getValue(sSrcNode+"["+grd_rsltinpt.row+"]/readtm") == "" || model.getValue(sSrcNode+"["+grd_rsltinpt.row+"]/readtm") == "-") {
  913. model.makeValue(sSrcNode+"["+grd_rsltinpt.row+"]/readtm", sTime);
  914. }
  915. //판독의사는 입력이 되어 있지 않을 경우만 set 한다.
  916. if(model.getValue(sSrcNode+"["+grd_rsltinpt.row+"]/readdrid1") == "" || model.getValue(sSrcNode+"["+grd_rsltinpt.row+"]/readdrid1") == "-") {
  917. if((model.getValue("/root/init/userinfo/userinfolist[jobkindcd=1 and userid="+ getUserId() +"]/usernm")) == "") {
  918. model.makeValue(sSrcNode+"["+grd_rsltinpt.row+"]/readdrid1", model.getValue(sSrcNode+"["+grd_rsltinpt.row+"]/orgreaddrid1"));
  919. } else {
  920. model.makeValue(sSrcNode+"["+grd_rsltinpt.row+"]/readdrid1", getUserId());
  921. }
  922. }
  923. } else {
  924. model.makeValue(sSrcNode+"["+grd_rsltinpt.row+"]/readtm", model.getValue(sSrcNode+"["+grd_rsltinpt.row+"]/orgreadtm"));
  925. model.makeValue(sSrcNode+"["+grd_rsltinpt.row+"]/readdrid1", model.getValue(sSrcNode+"["+grd_rsltinpt.row+"]/orgreaddrid1"));
  926. }
  927. }
  928. //-------------------------
  929. grd_frzncstelist.refresh();
  930. }
  931. /* @group : 검사결과등록
  932. * @ver : 2008.11.21 (CMCDEV-0001)
  933. * @by : 하만석(ACK)
  934. * @-----------------------------------
  935. * @type : function
  936. * @access : public
  937. * @desc : 시간 set Function
  938. */
  939. function fChangeDT(pFlag) {
  940. for (var iNo=1; iNo <= getNodesetCount("/root/main/frzncste/frzncstelist"); iNo++) {
  941. if(model.getValue("/root/main/frzncste/frzncstelist["+ iNo+"]/choi") == "true") {
  942. if(pFlag == "GROS") {
  943. model.setValue("/root/main/frzncste/frzncstelist["+ iNo+"]/grostm", model.getValue("/root/hidden/grostm"));
  944. } else if(pFlag == "CRYO"){
  945. model.setValue("/root/main/frzncste/frzncstelist["+ iNo+"]/cryostattm", model.getValue("/root/hidden/croystattm"));
  946. } else if(pFlag == "SLID"){
  947. model.setValue("/root/main/frzncste/frzncstelist["+ iNo+"]/intm", model.getValue("/root/hidden/slidetm"));
  948. } else if(pFlag == "READ"){
  949. model.setValue("/root/main/frzncste/frzncstelist["+ iNo+"]/readtm", model.getValue("/root/hidden/readtm"));
  950. }
  951. }
  952. }
  953. grd_frzncstelist.refresh();
  954. grd_rsltinpt.refresh();
  955. }
  956. /* @group : 검사결과등록
  957. * @ver : 2008.11.21 (CMCDEV-0001)
  958. * @by : 하만석(ACK)
  959. * @-----------------------------------
  960. * @type : function
  961. * @access : public
  962. * @desc : TAT 계산
  963. */
  964. function fexeTAT() {
  965. var sReadTm = "";
  966. var sAcptTm = "";
  967. var sSrcNode = "/root/main/frzncste/frzncstelist";
  968. var sTat = "";
  969. //--------------------------------------------------------
  970. for (var iNo=1; iNo <= getNodesetCount(sSrcNode); iNo++) {
  971. //--------------------------------------------------------
  972. if (model.getValue(sSrcNode+"["+iNo+"]/acpttm") != "" && model.getValue(sSrcNode+"["+iNo+"]/acpttm") != "-"
  973. && model.getValue(sSrcNode+"["+iNo+"]/readtm") != "" && model.getValue(sSrcNode+"["+iNo+"]/readtm") != "-") {
  974. sReadTm = model.getValue(sSrcNode+"["+iNo+"]/readtm");
  975. sAcptTm = model.getValue(sSrcNode+"["+iNo+"]/acpttm");
  976. sTat = (getTimeInterval(sAcptTm, sReadTm))/60;
  977. //if( sTat >= 0) {
  978. model.makeValue(sSrcNode+"["+iNo+"]/tat", sTat);
  979. //} else {
  980. // model.makeValue(sSrcNode+"["+iNo+"]/tat", "-");
  981. //}
  982. } else {
  983. model.makeValue(sSrcNode+"["+iNo+"]/tat", "-");
  984. }
  985. }
  986. grd_rsltinpt.refresh();
  987. }
  988. /* @group : 검사결과등록
  989. * @ver : 2008.11.21 (CMCDEV-0001)
  990. * @by : 하만석(ACK)
  991. * @-----------------------------------
  992. * @type : function
  993. * @access : public
  994. * @desc : 정도관리 팝업
  995. */
  996. function fExeScopManage()
  997. {
  998. model.property("SMLPR00100_scopmanag") = "Search"; // 정도관 데이터 시작 점
  999. setParameter("SMLPR00100_scop_wrkcd", "1002");
  1000. setParameter("SMLPR00100_scop_ptno", model.getValue("/root/main/frznptno/frznptnolist["+grd_frznlist.row+"]/ptno"));
  1001. setParameter("SMLPR00100_scop_acptdd", model.getValue("/root/main/frznptno/frznptnolist["+grd_frznlist.row+"]/orgacptdd"));
  1002. modal("SMLPB00600");
  1003. }
  1004. /* @group : 검사결과등록
  1005. * @ver : 2008.11.21 (CMCDEV-0001)
  1006. * @by : 하만석(ACK)
  1007. * @-----------------------------------
  1008. * @type : function
  1009. * @access : public
  1010. * @desc : 정도관리 버튼 색 변경
  1011. */
  1012. function fGetEtcRsltCnt() {
  1013. model.removeNodeset("/root/send");
  1014. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  1015. model.makeValue("/root/send/ptno", model.getValue("/root/main/frznptno/frznptnolist["+grd_frznlist.row+"]/ptno"));
  1016. submit("TRLPR00103");
  1017. //-------------------
  1018. // 정도관리 버튼 변경
  1019. if (model.getValue("/root/main/etcrslt/etcrsltcnt[bizflagcd='G']/rsltcnt") == "0") {
  1020. button2.attribute("border-color") = "";
  1021. button2.attribute("border-width") = "";
  1022. button2.attribute("border-style") = "none";
  1023. } else {
  1024. button2.attribute("border-color") = "#ff0000";
  1025. button2.attribute("border-width") = "2px";
  1026. button2.attribute("border-style") = "dotted";
  1027. }
  1028. button2.refresh();
  1029. }
  1030. ]]>
  1031. </script>
  1032. </xhtml:head>
  1033. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  1034. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  1035. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:15px; ">동결절편 결과등록</caption>
  1036. </group>
  1037. <group id="grp_btn" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
  1038. <line id="line10" class="line_6" style="x1:270px; y1:25; x2:1194px; y2:25; "/>
  1039. <button id="btn_frznsave" class="btn4_letter2" navindex="27" style="left:1138px; top:3px; width:56px; height:22px; ">
  1040. <caption>저장</caption>
  1041. <script type="javascript" ev:event="DOMActivate">
  1042. <![CDATA[
  1043. fExeFrznRsltSave(sInptFlag);
  1044. ]]>
  1045. </script>
  1046. </button>
  1047. <button id="button2" class="btn3_letter4" style="left:1055px; top:3px; width:80px; height:22px; ">
  1048. <caption>정도관리</caption>
  1049. <script type="javascript" ev:event="DOMActivate">
  1050. <![CDATA[
  1051. // 병리번호 조회가 되어있을 경우만
  1052. if (grd_frznlist.row > 0 && sInptFlag == "inptrslt")
  1053. {
  1054. fExeScopManage();
  1055. fGetEtcRsltCnt();
  1056. }
  1057. ]]>
  1058. </script>
  1059. </button>
  1060. </group>
  1061. <button id="btn_fslist" class="btn_sw" group="tab" selected="true" style="left:90px; top:18px; width:90px; height:22px; ">
  1062. <caption>FS list</caption>
  1063. <script type="javascript" ev:event="DOMActivate">
  1064. <![CDATA[
  1065. btn_fslist.selected = true;
  1066. button2.visible = false;
  1067. btn_frznsave.disabled = false;
  1068. model.toggle("case1");
  1069. sInptFlag = "fslist";
  1070. model.removeNodeset("/root/main/frzncste/frzncstelist");
  1071. model.refresh();
  1072. ]]>
  1073. </script>
  1074. </button>
  1075. <button id="btn_inptrslt" class="btn_sw" group="tab" selected="true" style="left:0px; top:18px; width:90px; height:22px; ">
  1076. <caption>결과입력</caption>
  1077. <script type="javascript" ev:event="DOMActivate">
  1078. <![CDATA[
  1079. btn_inptrslt.selected = true;
  1080. button2.visible = true;
  1081. btn_frznsave.disabled = false;
  1082. model.toggle("case2");
  1083. sInptFlag = "inptrslt";
  1084. model.removeNodeset("/root/main/frzncste/frzncstelist");
  1085. model.refresh();
  1086. ]]>
  1087. </script>
  1088. </button>
  1089. <button id="btn_tat" class="btn_sw" group="tab" selected="true" style="left:180px; top:18px; width:90px; height:22px; ">
  1090. <caption>TAT 조회</caption>
  1091. <script type="javascript" ev:event="DOMActivate">
  1092. <![CDATA[
  1093. btn_tat.selected = true;
  1094. button2.visible = false;
  1095. btn_frznsave.disabled = true;
  1096. model.toggle("case3");
  1097. sInptFlag = "tat";
  1098. ]]>
  1099. </script>
  1100. </button>
  1101. <switch id="switch1" style="left:0px; top:40px; width:1195px; height:744px; ">
  1102. <case id="case1" selected="true">
  1103. <group id="grp_biz" style="left:0px; top:0px; width:1193px; height:740px; ">
  1104. <caption id="caption1" class="tit_2" style="left:6px; top:45px; width:126px; height:13px; ">동결절편 접수목록</caption>
  1105. <line id="line1" class="line_1" style="x1:0px; y1:60px; x2:430px; y2:60px; "/>
  1106. <datagrid id="grd_frznptnolist" nodeset="/root/main/frznptno/frznptnolist" class="datagrid2" caption="기관코드^ptno^병리번호^환자명^성별&#xA;나이^등록번호^진료과^주치의^수술방^접수일자^접수시간^수술번호^orgacptdd^oproomcd" colsep="^" colwidth="0, 0, 80, 60, 43, 70, 50, 60, 50, 70, 60, 80, 100, 0" mergecellsfixedrows="bycolrec" rowsep="|" navindex="10" style="left:0px; top:65px; width:430px; height:675px; border-color:#c0c0c0; border-style:solid; ">
  1107. <col ref="instcd"/>
  1108. <col ref="ptno"/>
  1109. <col class="text_center" ref="dispptno"/>
  1110. <col class="text_center" ref="patnm"/>
  1111. <col class="text_center" ref="agesex"/>
  1112. <col class="text_center" ref="pid"/>
  1113. <col class="text_center" ref="deptnm"/>
  1114. <col class="text_center" ref="orddrnm"/>
  1115. <col ref="oproomnm"/>
  1116. <col class="text_center" ref="acptdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  1117. <col class="text_center" ref="acpttm" format="99:99:99" mask="exclude" showmask="true"/>
  1118. <col ref="oprsrvno"/>
  1119. <col ref="orgacptdd" visibility="hidden"/>
  1120. <col ref="oproomcd"/>
  1121. <script type="javascript" ev:event="onclick">
  1122. <![CDATA[
  1123. fExePtNoGridClick(grd_frznptnolist.row, "0", sInptFlag);
  1124. ]]>
  1125. </script>
  1126. </datagrid>
  1127. <caption id="caption4" class="tit_2" style="left:439px; top:45px; width:157px; height:13px; ">세부 목록</caption>
  1128. <line id="line2" class="line_1" style="x1:435px; y1:60px; x2:1193px; y2:60px; "/>
  1129. <group id="grp_sea" style="left:0px; top:0px; width:1193px; height:35px; vertical-align:top; ">
  1130. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  1131. <line id="line13" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  1132. <caption id="caption2" class="search_name" style="left:804px; top:9px; width:86px; height:17px; ">접수일자 :</caption>
  1133. <input id="ipt_seaval" ref="/root/init/refval" class="input_search" navindex="-1" style="left:635px; top:8px; width:100px; height:19px; ">
  1134. <script type="javascript" ev:event="onkeypress">
  1135. <![CDATA[
  1136. fExeRefValKeyPressFslist();
  1137. ]]>
  1138. </script>
  1139. </input>
  1140. <caption id="caption3" class="search_name" style="left:544px; top:9px; width:91px; height:17px; ">등록번호 :</caption>
  1141. <caption id="caption5" class="search_no_b" style="left:989px; top:8px; width:12px; height:17px; ">~</caption>
  1142. <input id="ipt_acpttodd" ref="/root/init/acpttodd" class="input_search" navindex="8" inputtype="date" style="left:1004px; top:8px; width:90px; height:19px; "/>
  1143. <input id="ipt_acptfromdd" ref="/root/init/acptfromdd" class="input_search" navindex="7" inputtype="date" style="left:896px; top:8px; width:90px; height:19px; "/>
  1144. <button id="btn_sea" class="btn1_letter2" navindex="9" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  1145. <caption>조회</caption>
  1146. <script type="javascript" ev:event="DOMActivate">
  1147. <![CDATA[
  1148. fGetFrznPtNolist();
  1149. ]]>
  1150. </script>
  1151. </button>
  1152. <select1 id="cbo_ptnocd" ref="/root/init/ptnocode" navindex="0" appearance="minimal" editmode="search" style="left:109px; top:8px; width:186px; height:19px; ">
  1153. <choices>
  1154. <itemset nodeset="/root/init/ptnocd/ptnocdlist">
  1155. <label ref="ptnonm"/>
  1156. <value ref="ptnocd"/>
  1157. </itemset>
  1158. </choices>
  1159. </select1>
  1160. <input id="ipt_fromptno" ref="/root/init/fromptno" class="text_center" navindex="4" maxlength="6" style="left:328px; top:8px; width:50px; height:19px; "/>
  1161. <caption id="caption7" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">병리번호 :</caption>
  1162. <caption id="caption8" class="search_no_b" style="left:381px; top:8px; width:12px; height:17px; ">~</caption>
  1163. <input id="input1" ref="/root/init/toptno" class="text_center" navindex="6" maxlength="6" style="left:426px; top:8px; width:50px; height:19px; "/>
  1164. <input id="input2" ref="/root/init/toyear" class="text_center" navindex="5" maxlength="2" style="left:396px; top:8px; width:27px; height:19px; "/>
  1165. <input id="ipt_fromyear" ref="/root/init/fromyear" class="text_center" navindex="3" maxlength="2" style="left:298px; top:8px; width:27px; height:19px; "/>
  1166. </group>
  1167. <datagrid id="grd_frzncstelist" nodeset="/root/main/frzncste/frzncstelist" class="datagrid2" autoresize="true" caption="instcd^ptno^dispptno^spcacptdd^spcacptno^검체코드^^검체&#xA;번호^검체명^Cassette&#xA;번호^Cassette&#xA;내용^채취시간^수신시간^접수일자^접수시간^^Gross&#xA;시간^^Cryostat&#xA;도착시간^입고일자^^Slide&#xA;제작시간^inptflagcd^grosdd^cryostatdd^orgintm^orggrostm^orgcryostattm^판독일자^판독의명1^판독의명2^판독의명3^판독의사3^delyflagcd^Comment^oprsrvno^oproomcd^oproomnm^pid^patnm^지연사유명" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 28, 40, 110, 0, 105, 60, 60, 0, 60, 29, 75, 30, 75, 100, 30, 75, 100, 100, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" dataheight="25" forecolorfrozen="#339966" frozencols="6" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" navindex="11" style="left:435px; top:65px; width:758px; height:675px; border-color:#c0c0c0; border-style:solid; ">
  1168. <col ref="instcd"/>
  1169. <col ref="ptno"/>
  1170. <col ref="dispptno"/>
  1171. <col ref="spcacptdd"/>
  1172. <col ref="spcacptno">
  1173. <![CDATA[ㄱ]]>
  1174. </col>
  1175. <col ref="spccd"/>
  1176. <col checkvalue="true,false" ref="choi" type="checkbox" visibility="hidden"/>
  1177. <col ref="spcacptseqno"/>
  1178. <col ref="spcnm"/>
  1179. <col ref="csteno"/>
  1180. <col ref="cstecnts"/>
  1181. <col ref="extrtm" format="99:99:99" style="text-align:center; "/>
  1182. <col ref="cnfmtm" format="99:99:99" style="text-align:center; "/>
  1183. <col ref="acptdd" type="inputdate"/>
  1184. <col ref="acpttm" format="99:99:99" style="text-align:center; "/>
  1185. <col checkvalue="true,false" ref="choi2" type="checkbox"/>
  1186. <col ref="grostm" type="input" format="99:99:99" mask="exclude" showmask="true" style="text-align:center; "/>
  1187. <col checkvalue="true,false" ref="choi3" type="checkbox"/>
  1188. <col ref="cryostattm" type="input" format="99:99:99" mask="exclude" showmask="true" style="text-align:center; "/>
  1189. <col ref="indd" visibility="hidden"/>
  1190. <col checkvalue="true,false" ref="choi4" type="checkbox"/>
  1191. <col ref="intm" type="input" format="99:99:99" mask="exclude" showmask="true" style="text-align:center; "/>
  1192. <col ref="inptflagcd" visibility="hidden"/>
  1193. <col ref="grosdd" visibility="hidden"/>
  1194. <col ref="cryostatdd" visibility="hidden"/>
  1195. <col ref="orgintm" visibility="hidden"/>
  1196. <col ref="orggrostm" visibility="hidden"/>
  1197. <col ref="orgcryostattm" visibility="hidden"/>
  1198. <col ref="readdd" type="inputdate"/>
  1199. <col ref="readdrnm1"/>
  1200. <col ref="readdrnm2"/>
  1201. <col ref="readdrnm3"/>
  1202. <col ref="readdrid3" type="combo">
  1203. <choices>
  1204. <itemset nodeset="/root/init/deptuserlist/deptuserlisttbl[occukind='Y']">
  1205. <label ref="username2"/>
  1206. <value ref="userid"/>
  1207. </itemset>
  1208. </choices>
  1209. </col>
  1210. <col ref="delyflagcd"/>
  1211. <col ref="cmtcnts" type="input"/>
  1212. <col ref="oprsrvno"/>
  1213. <col ref="oproomcd"/>
  1214. <col ref="oproomnm"/>
  1215. <col ref="pid"/>
  1216. <col ref="patnm"/>
  1217. <col ref="delyresnnm"/>
  1218. <script type="javascript" ev:event="xforms-deselect">
  1219. <![CDATA[
  1220. fExeHeaderChoi("D");
  1221. ]]>
  1222. </script>
  1223. <script type="javascript" ev:event="xforms-select">
  1224. <![CDATA[
  1225. fExeHeaderChoi("S");
  1226. ]]>
  1227. </script>
  1228. </datagrid>
  1229. <input id="input17" ref="/root/hidden/grostm" navindex="12" format="hh:nn:ss" showmask="true" style="left:901px; top:40px; width:72px; height:19px; ">
  1230. <script type="javascript" ev:event="xforms-value-changed">
  1231. <![CDATA[
  1232. fChangeDT("GROS");
  1233. ]]>
  1234. </script>
  1235. </input>
  1236. <input id="input18" ref="/root/hidden/croystattm" navindex="13" format="hh:nn:ss" showmask="true" style="left:1006px; top:40px; width:72px; height:19px; ">
  1237. <script type="javascript" ev:event="xforms-value-changed">
  1238. <![CDATA[
  1239. fChangeDT("CRYO");
  1240. ]]>
  1241. </script>
  1242. </input>
  1243. <input id="input19" ref="/root/hidden/slidetm" navindex="14" format="hh:nn:ss" showmask="true" style="left:1111px; top:40px; width:72px; height:19px; ">
  1244. <script type="javascript" ev:event="xforms-value-changed">
  1245. <![CDATA[
  1246. fChangeDT("SLID");
  1247. ]]>
  1248. </script>
  1249. </input>
  1250. </group>
  1251. </case>
  1252. <case id="case2">
  1253. <group id="group1" style="left:0px; top:0px; width:1193px; height:740px; ">
  1254. <group id="group2" style="left:0px; top:0px; width:1193px; height:35px; vertical-align:top; ">
  1255. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  1256. <line id="line6" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  1257. <caption id="caption11" class="search_name" style="left:804px; top:9px; width:86px; height:17px; ">접수일자 :</caption>
  1258. <input id="input3" ref="/root/init/refval" class="input_search" navindex="20" style="left:635px; top:8px; width:100px; height:19px; ">
  1259. <script type="javascript" ev:event="onkeypress">
  1260. <![CDATA[
  1261. fExeRefValKeyPressRslt();
  1262. ]]>
  1263. </script>
  1264. </input>
  1265. <caption id="caption12" class="search_name" style="left:544px; top:9px; width:91px; height:17px; ">등록번호 :</caption>
  1266. <caption id="caption13" class="search_no_b" style="left:989px; top:8px; width:12px; height:17px; ">~</caption>
  1267. <input id="input4" ref="/root/init/acpttodd" class="input_search" navindex="22" inputtype="date" style="left:1004px; top:8px; width:90px; height:19px; "/>
  1268. <input id="input5" ref="/root/init/acptfromdd" class="input_search" navindex="21" inputtype="date" style="left:896px; top:8px; width:90px; height:19px; "/>
  1269. <button id="button4" class="btn1_letter2" navindex="23" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  1270. <caption>조회</caption>
  1271. <script type="javascript" ev:event="DOMActivate">
  1272. <![CDATA[
  1273. fGetFrznPtNolist();
  1274. ]]>
  1275. </script>
  1276. </button>
  1277. <select1 id="combo1" ref="/root/init/ptnocode" navindex="15" appearance="minimal" editmode="search" style="left:109px; top:8px; width:186px; height:19px; ">
  1278. <choices>
  1279. <itemset nodeset="/root/init/ptnocd/ptnocdlist">
  1280. <label ref="ptnonm"/>
  1281. <value ref="ptnocd"/>
  1282. </itemset>
  1283. </choices>
  1284. </select1>
  1285. <input id="input6" ref="/root/init/fromptno" class="text_center" navindex="17" maxlength="6" style="left:328px; top:8px; width:50px; height:19px; "/>
  1286. <caption id="caption14" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">병리번호 :</caption>
  1287. <caption id="caption15" class="search_no_b" style="left:381px; top:8px; width:12px; height:17px; ">~</caption>
  1288. <input id="input7" ref="/root/init/toptno" class="text_center" navindex="19" maxlength="6" style="left:426px; top:8px; width:50px; height:19px; "/>
  1289. <input id="input8" ref="/root/init/toyear" class="text_center" navindex="18" maxlength="2" style="left:396px; top:8px; width:27px; height:19px; "/>
  1290. <input id="input9" ref="/root/init/fromyear" class="text_center" navindex="16" maxlength="2" style="left:298px; top:8px; width:27px; height:19px; "/>
  1291. </group>
  1292. <datagrid id="grd_frznlist" nodeset="/root/main/frznptno/frznptnolist" class="datagrid2" caption="기관코드^ptno^병리번호^환자명^성별&#xA;나이^등록번호^진료과^주치의^수술방^접수일자^접수시간^수술번호^orgacptdd^oproomcd" colsep="^" colwidth="0, 0, 80, 60, 43, 70, 50, 60, 50, 70, 60, 80, 100, 0" mergecellsfixedrows="bycolrec" rowsep="|" navindex="24" style="left:0px; top:65px; width:430px; height:675px; border-color:#c0c0c0; border-style:solid; ">
  1293. <col ref="instcd"/>
  1294. <col ref="ptno"/>
  1295. <col class="text_center" ref="dispptno"/>
  1296. <col class="text_center" ref="patnm"/>
  1297. <col class="text_center" ref="agesex"/>
  1298. <col class="text_center" ref="pid"/>
  1299. <col class="text_center" ref="deptnm"/>
  1300. <col class="text_center" ref="orddrnm"/>
  1301. <col ref="oproomnm"/>
  1302. <col class="text_center" ref="acptdd" format="yyyy-mm-dd" mask="exclude" showmask="true"/>
  1303. <col class="text_center" ref="acpttm" format="99:99:99" mask="exclude" showmask="true"/>
  1304. <col ref="oprsrvno"/>
  1305. <col ref="orgacptdd" visibility="hidden"/>
  1306. <col ref="oproomcd"/>
  1307. <script type="javascript" ev:event="onclick">
  1308. <![CDATA[
  1309. fExePtNoGridClick(grd_frznlist.row, "0", sInptFlag);
  1310. ]]>
  1311. </script>
  1312. </datagrid>
  1313. <caption id="caption9" class="tit_2" style="left:6px; top:45px; width:126px; height:13px; ">동결절편 접수목록</caption>
  1314. <caption id="caption10" class="tit_2" style="left:439px; top:45px; width:157px; height:13px; ">세부 목록</caption>
  1315. <line id="line4" class="line_1" style="x1:0px; y1:60px; x2:430px; y2:60px; "/>
  1316. <line id="line5" class="line_1" style="x1:435px; y1:60px; x2:1193px; y2:60px; "/>
  1317. <datagrid id="grd_rsltinpt" nodeset="/root/main/frzncste/frzncstelist" class="datagrid2" autoresize="true" caption="instcd^ptno^dispptno^spcacptdd^spcacptno^검체코드^^검체&#xA;번호^검체명^Cassette&#xA;번호^Cassette&#xA;내용^접수일자^접수&#xA;시간^입고일자^Slide&#xA;제작시간^판독일자^진단&#xA;시간^TAT&#xA;(분)^진단결과^판독의명1^판독의사1^판독의명2^판독의사2^판독의명3^판독의사3^delyflagcd^지연사유^orgreaddrid1^보관^orgreadtm^inptflagcd^grosdd^cryostatdd^Comment^oprsrvno^oproomcd^oproomnm^pid^patnm^지연사유명" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 28, 35, 92, 0, 80, 0, 54, 100, 54, 0, 54, 37, 120, 0, 65, 0, 65, 0, 0, 0, 72, 100, 50, 100, 100, 100, 100, 0, 0, 0, 0, 0, 0, 0" dataheight="25" forecolorfrozen="#339966" frozencols="6" mergecellsfixedrows="bycolrec" rowheight="32" rowsep="|" navindex="25" style="left:435px; top:65px; width:758px; height:675px; border-color:#c0c0c0; border-style:solid; ">
  1318. <col ref="instcd"/>
  1319. <col ref="ptno"/>
  1320. <col ref="dispptno"/>
  1321. <col ref="spcacptdd"/>
  1322. <col ref="spcacptno"/>
  1323. <col ref="spccd"/>
  1324. <col ref="choi" type="checkbox"/>
  1325. <col ref="spcacptseqno"/>
  1326. <col ref="spcnm"/>
  1327. <col ref="csteno"/>
  1328. <col ref="cstecnts"/>
  1329. <col ref="acptdd" type="inputdate"/>
  1330. <col ref="acpttm" format="99:99:99" mask="exclude" showmask="true"/>
  1331. <col ref="indd" visibility="hidden"/>
  1332. <col ref="intm" format="99:99:99" mask="exclude" showmask="true"/>
  1333. <col ref="readdd" type="inputdate"/>
  1334. <col ref="readtm" type="input" format="99:99:99" mask="exclude" showmask="true"/>
  1335. <col ref="tat" format="###"/>
  1336. <col ref="readrslt" type="input" maxbyte="900"/>
  1337. <col ref="readdrnm1"/>
  1338. <col ref="readdrid1" type="combo">
  1339. <choices>
  1340. <itemset nodeset="/root/init/userinfo/userinfolist[jobkindcd='1']">
  1341. <label ref="usernm"/>
  1342. <value ref="userid"/>
  1343. </itemset>
  1344. </choices>
  1345. </col>
  1346. <col ref="readdrnm2"/>
  1347. <col ref="readdrid2" type="combo" style="left:690px; top:32px; width:100px; height:25px; ">
  1348. <choices>
  1349. <itemset nodeset="/root/init/userinfo/userinfolist[jobkindcd='1']">
  1350. <label ref="usernm"/>
  1351. <value ref="userid"/>
  1352. </itemset>
  1353. </choices>
  1354. </col>
  1355. <col ref="readdrnm3"/>
  1356. <col ref="readdrid3" type="combo">
  1357. <choices>
  1358. <itemset nodeset="/root/init/deptuserlist/deptuserlisttbl[occukind='Y']">
  1359. <label ref="username2"/>
  1360. <value ref="userid"/>
  1361. </itemset>
  1362. </choices>
  1363. </col>
  1364. <col ref="delyflagcd"/>
  1365. <col ref="delyresncd" type="combo">
  1366. <choices>
  1367. <itemset nodeset="/root/init/resncd/resncdlist">
  1368. <label ref="resncnts"/>
  1369. <value ref="resncd"/>
  1370. </itemset>
  1371. </choices>
  1372. </col>
  1373. <col ref="orgreaddrid1" visibility="hidden"/>
  1374. <col ref="keepflagcd" type="checkbox" visibility="hidden"/>
  1375. <col ref="orgreadtm" visibility="hidden"/>
  1376. <col ref="inptflagcd" visibility="hidden"/>
  1377. <col ref="grosdd" visibility="hidden"/>
  1378. <col ref="cryostatdd" visibility="hidden"/>
  1379. <col ref="cmtcnts" type="input"/>
  1380. <col ref="oprsrvno"/>
  1381. <col ref="oproomcd"/>
  1382. <col ref="oproomnm"/>
  1383. <col ref="pid"/>
  1384. <col ref="patnm"/>
  1385. <col ref="delyresnnm"/>
  1386. <script type="javascript" ev:event="xforms-value-changed">
  1387. <![CDATA[
  1388. fExeDelyClick();
  1389. fexeTAT();
  1390. ]]>
  1391. </script>
  1392. <script type="javascript" ev:event="xforms-select">
  1393. <![CDATA[
  1394. //fExeFrznGridClick(grd_frzncstelist.row, grd_frzncstelist.col);
  1395. fExeHeaderChoi2();
  1396. fexeTAT();
  1397. ]]>
  1398. </script>
  1399. <script type="javascript" ev:event="xforms-deselect">
  1400. <![CDATA[
  1401. //fExeFrznGridClick(grd_frzncstelist.row, grd_frzncstelist.col);
  1402. fExeHeaderChoi2();
  1403. fexeTAT();
  1404. ]]>
  1405. </script>
  1406. <script type="javascript" ev:event="ondblclick">
  1407. <![CDATA[
  1408. // 결과 진단 컬럼 선택
  1409. if ((iMousCol == grd_rsltinpt.colRef("readrslt")) && (iMousRow > 0) )
  1410. {
  1411. fExeCntsView();
  1412. }
  1413. ]]>
  1414. </script>
  1415. <script type="javascript" ev:event="onmousedown">
  1416. <![CDATA[
  1417. // 그리드에서 선택한 col / row 값 저장
  1418. iMousCol = grd_rsltinpt.mouseCol;
  1419. iMousRow = grd_rsltinpt.mouseRow;
  1420. // 결과 진단 컬럼 선택
  1421. if ((iMousCol == grd_rsltinpt.colRef("readrslt")) && (iMousRow > 0) )
  1422. {
  1423. fGetMouseDown();
  1424. }
  1425. ]]>
  1426. </script>
  1427. </datagrid>
  1428. <input id="input20" ref="/root/hidden/readtm" navindex="26" format="hh:nn:ss" showmask="true" style="left:779px; top:40px; width:53px; height:19px; ">
  1429. <script type="javascript" ev:event="xforms-value-changed">
  1430. <![CDATA[
  1431. fChangeDT("READ");
  1432. fexeTAT();
  1433. ]]>
  1434. </script>
  1435. </input>
  1436. </group>
  1437. </case>
  1438. <case id="case3">
  1439. <group id="group3" style="left:0px; top:0px; width:1193px; height:740px; ">
  1440. <caption id="caption16" class="tit_2" style="left:6px; top:45px; width:126px; height:14px; ">검체접수 목록</caption>
  1441. <line id="line7" class="line_1" style="x1:0px; y1:60px; x2:1193px; y2:60px; "/>
  1442. <group id="group4" style="left:0px; top:0px; width:1193px; height:35px; vertical-align:top; ">
  1443. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1193px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  1444. <line id="line9" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  1445. <caption id="caption18" class="search_name" style="left:804px; top:9px; width:86px; height:17px; ">접수일자 :</caption>
  1446. <input id="input10" ref="/root/init/refval" class="input_search" navindex="-2" style="left:635px; top:8px; width:100px; height:19px; ">
  1447. <script type="javascript" ev:event="onkeypress">
  1448. <![CDATA[
  1449. fExeRefValKeyPress();
  1450. ]]>
  1451. </script>
  1452. </input>
  1453. <caption id="caption19" class="search_name" style="left:544px; top:9px; width:91px; height:17px; ">등록번호 :</caption>
  1454. <caption id="caption20" class="search_no_b" style="left:989px; top:8px; width:12px; height:17px; ">~</caption>
  1455. <input id="input11" ref="/root/init/acpttodd" class="input_search" navindex="29" inputtype="date" style="left:1004px; top:8px; width:90px; height:19px; "/>
  1456. <input id="input12" ref="/root/init/acptfromdd" class="input_search" navindex="28" inputtype="date" style="left:896px; top:8px; width:90px; height:19px; "/>
  1457. <button id="button5" class="btn1_letter2" navindex="30" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
  1458. <caption>조회</caption>
  1459. <script type="javascript" ev:event="DOMActivate">
  1460. <![CDATA[
  1461. fGetFrznPtNolist();
  1462. ]]>
  1463. </script>
  1464. </button>
  1465. <select1 id="combo2" ref="/root/init/ptnocode" navindex="-15" appearance="minimal" editmode="search" style="left:109px; top:8px; width:186px; height:19px; ">
  1466. <choices>
  1467. <itemset nodeset="/root/init/ptnocd/ptnocdlist">
  1468. <label ref="ptnonm"/>
  1469. <value ref="ptnocd"/>
  1470. </itemset>
  1471. </choices>
  1472. </select1>
  1473. <input id="input13" ref="/root/init/fromptno" class="text_center" navindex="-10" maxlength="6" style="left:328px; top:8px; width:50px; height:19px; "/>
  1474. <caption id="caption21" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">병리번호 :</caption>
  1475. <caption id="caption22" class="search_no_b" style="left:381px; top:8px; width:12px; height:17px; ">~</caption>
  1476. <input id="input14" ref="/root/init/toptno" class="text_center" navindex="-4" maxlength="6" style="left:426px; top:8px; width:50px; height:19px; "/>
  1477. <input id="input15" ref="/root/init/toyear" class="text_center" navindex="-7" maxlength="2" style="left:396px; top:8px; width:27px; height:19px; "/>
  1478. <input id="input16" ref="/root/init/fromyear" class="text_center" navindex="-13" maxlength="2" style="left:298px; top:8px; width:27px; height:19px; "/>
  1479. </group>
  1480. <datagrid id="grd_tatlist" nodeset="/root/main/frzntat/frzntatlist" class="datagrid2" caption="바코드번호^ptno^병리번호^등록번호^환자명^병실^검사명^Cassette명^진료과^검체명^채취&#xA;시간^수신일자^수신&#xA;시간^접수일자^접수&#xA;시간^Gross&#xA;시간^Cryostat&#xA;시간^Slide&#xA;일자^Slide&#xA;제작시간^판독일자^판독&#xA;시간^제작&#xA;소요분^제작&#xA;소요시간^판독&#xA;소요분^판독&#xA;소요시간^판독의" colsep="^" colwidth="89, 37, 76, 70, 53, 47, 130, 100, 47, 100, 50, 70, 51, 70, 50, 50, 55, 100, 55, 70, 50, 60, 60, 60, 60, 53" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" navindex="10" style="left:0px; top:65px; width:1193px; height:675px; border-color:#c0c0c0; border-style:solid; ">
  1481. <col ref="spcbarcdno"/>
  1482. <col ref="ptno" visibility="hidden"/>
  1483. <col class="text_center" ref="dispptno"/>
  1484. <col ref="pid" style="text-align:center; "/>
  1485. <col class="text_center" ref="hngnm"/>
  1486. <col class="text_center" ref="roomcd"/>
  1487. <col ref="testhngnm"/>
  1488. <col ref="cstecnts"/>
  1489. <col class="text_center" ref="deptengabbr"/>
  1490. <col ref="spcnm"/>
  1491. <col ref="extrtm" format="hh:nn:ss" style="text-align:center; "/>
  1492. <col ref="cnfmdd" visibility="hidden"/>
  1493. <col ref="cnfmtm" format="hh:nn:ss" style="text-align:center; "/>
  1494. <col ref="acptdd" format="yyyy-mm-dd"/>
  1495. <col ref="acpttm" format="hh:nn:ss" style="text-align:center; "/>
  1496. <col ref="grostm" format="hh:nn:ss" style="text-align:center; "/>
  1497. <col ref="cryostattm" format="hh:nn:ss" style="text-align:center; "/>
  1498. <col ref="indd" visibility="hidden"/>
  1499. <col ref="intm" format="hh:nn:ss" style="text-align:center; "/>
  1500. <col ref="readdd" format="yyyy-mm-dd" style="text-align:center; "/>
  1501. <col ref="readtm" format="hh:nn:ss" style="text-align:center; "/>
  1502. <col ref="acptmakemin"/>
  1503. <col ref="acptmaketm" visibility="hidden"/>
  1504. <col ref="acptreadmin"/>
  1505. <col ref="acptreadtm" visibility="hidden"/>
  1506. <col ref="readdrnm1"/>
  1507. <script type="javascript" ev:event="onaftersort">
  1508. <![CDATA[
  1509. grd_tatlist.gridToInstance();
  1510. ]]>
  1511. </script>
  1512. </datagrid>
  1513. <button id="btn_excsave" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1128px; top:41px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
  1514. <caption>엑셀저장</caption>
  1515. <script type="javascript" ev:event="DOMActivate">
  1516. <![CDATA[
  1517. grd_tatlist.colHidden(grd_tatlist.colRef("spcbarcdno")) = false;
  1518. var fileName = window.fileDialog("save", ",", false, "프로즌판독소요시간", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  1519. if (fileName != "")
  1520. {
  1521. grd_tatlist.saveExcel(fileName);
  1522. grd_tatlist.colHidden(grd_tatlist.colRef("spcbarcdno")) = true;
  1523. }
  1524. ]]>
  1525. </script>
  1526. </button>
  1527. </group>
  1528. </case>
  1529. </switch>
  1530. <group id="grp_rsltcnts" visibility="hidden" style="left:55px; top:160px; width:1090px; height:525px; color:#ff0000; background-color:#fcd2c1; border-color:#f7a08b; border-left-color:#c0c0c0; border-top-color:#c0c0c0; border-right-color:#808080; border-bottom-color:#808080; border-width:2; border-style:solid; ">
  1531. <line id="line3" class="line_1" style="x1:3px; y1:26px; x2:1084px; y2:26px; "/>
  1532. <textarea id="tar_rsltcnts" ref="/root/hidden/rsltcont" maxbyte="900" style="left:3px; top:33px; width:1080px; height:460px; font-family:굴림체; font-size:16pt; "/>
  1533. <button id="btn_rsltclose" class="btn4_letter2" style="left:968px; top:498px; width:56px; height:22px; ">
  1534. <caption>확인</caption>
  1535. <script type="javascript" ev:event="DOMActivate">
  1536. <![CDATA[
  1537. fExeCloseCntsView();
  1538. ]]>
  1539. </script>
  1540. </button>
  1541. <caption id="cap_title" class="tit_2" style="left:6px; top:9px; width:338px; height:13px; ">진단결과</caption>
  1542. <button id="btn_exmp100802" class="btn2_letter4" style="left:1013px; top:4px; width:64px; height:19px; ">
  1543. <caption>결과예문</caption>
  1544. <script type="javascript" ev:event="DOMActivate">
  1545. <![CDATA[
  1546. iCheck = "1";
  1547. fExeExmpCall();
  1548. ]]>
  1549. </script>
  1550. </button>
  1551. <button id="button1" class="btn4_letter2" style="left:1028px; top:498px; width:56px; height:22px; ">
  1552. <caption>취소</caption>
  1553. <script type="javascript" ev:event="DOMActivate">
  1554. <![CDATA[
  1555. tar_rsltcnts.refresh();
  1556. grp_rsltcnts.visible = false;
  1557. ]]>
  1558. </script>
  1559. </button>
  1560. </group>
  1561. </xhtml:body>
  1562. </xhtml:html>