SMMNG01300_일일멸균일지.xrw 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <rsdhdinflist>
  11. <instcd/>
  12. <workdd/>
  13. <fixasetcd/>
  14. <goodflag/>
  15. <usetims/>
  16. <usetm/>
  17. <funtngtm/>
  18. <expsurtmpr/>
  19. <expsurtm/>
  20. <dinftmpr/>
  21. <dinfitemspec/>
  22. <nowrongyn/>
  23. <purfctm/>
  24. <userid/>
  25. <useridnm/>
  26. <totm/>
  27. <endpsnid/>
  28. <endpsnnm/>
  29. <cheindint/>
  30. <cheindext/>
  31. <biindng/>
  32. <biindg/>
  33. <bowdicok/>
  34. <bowdicic/>
  35. <bowdicna/>
  36. <incubtm/>
  37. <incubcnfmr/>
  38. <incubcnfmrnm/>
  39. <rsltcnfmtm/>
  40. <rsltcnfmpsn/>
  41. <rsltcnfmpsnnm/>
  42. <reading/>
  43. <spclmentfact/>
  44. <chrgid/>
  45. <chrgnm/>
  46. <cmt/>
  47. </rsdhdinflist>
  48. <eqiprgstlist>
  49. <instcd/>
  50. <fixasetcd/>
  51. <fixasetnm/>
  52. <dinfkind/>
  53. <useyn/>
  54. <cmt/>
  55. </eqiprgstlist>
  56. <prndatalist/>
  57. <list>
  58. <temp/>
  59. </list>
  60. </main>
  61. <send>
  62. <instcd/>
  63. <goodflag/>
  64. <dinfkind/>
  65. <workdd/>
  66. <usernm/>
  67. <true/>
  68. <fixasetcd/>
  69. <rsdhdinflist/>
  70. <test/>
  71. <dutycd/>
  72. </send>
  73. <init>
  74. <radio1>
  75. <label>고압증기</label>
  76. <value>1</value>
  77. <label>건열</label>
  78. <value>2</value>
  79. <label>EO gas</label>
  80. <value>3</value>
  81. <label>STERRAD</label>
  82. <value>4</value>
  83. <label>전체</label>
  84. <value/>
  85. </radio1>
  86. <biindflag>
  87. <label>No growth</label>
  88. <value>1</value>
  89. <label>Growth</label>
  90. <value>2</value>
  91. <label>N/A</label>
  92. <value>3</value>
  93. </biindflag>
  94. <bowdicflag1>
  95. <label>OK</label>
  96. <value>1</value>
  97. <label>IC</label>
  98. <value>2</value>
  99. <label>NA</label>
  100. <value>3</value>
  101. </bowdicflag1>
  102. <bowdicflag2>
  103. <label>No growth</label>
  104. <value>1</value>
  105. <label>Growth</label>
  106. <value>2</value>
  107. <label>N/A</label>
  108. <value>3</value>
  109. </bowdicflag2>
  110. </init>
  111. <temp>
  112. <nodeset/>
  113. </temp>
  114. <hidden>
  115. <common>
  116. <instcdinfo/>
  117. </common>
  118. </hidden>
  119. </root>
  120. </instance>
  121. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  122. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  123. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  124. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  125. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  126. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  127. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  128. <script type="javascript" ev:event="xforms-ready">
  129. <![CDATA[
  130. fInitialize();
  131. ]]>
  132. </script>
  133. <submission id="TXMNG01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  134. <submission id="TRMNG01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/rsdhdinflist"/>
  135. <submission id="TRRSE01102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/reqcollcdeptlist"/>
  136. <submission id="TRRSE01103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/prndatalist"/>
  137. <!--20101215_KNUH_Start 변경
  138. submission id="TRRSS01311" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/divsflaglist"/-->
  139. <!--20101215_KNUH_Start추가. -->
  140. <submission id="TRMNG01303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/rscmeqmdlist"/>
  141. <submission id="TRMNG00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/divsflaglist"/>
  142. <submission id="TRMNG01302" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/eqiprgstlist"/>
  143. <submission id="TRMNG00701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/dutylist"/>
  144. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  145. </model>
  146. <script type="javascript">
  147. <![CDATA[
  148. //멸균, 세척 버튼 눌렀을시 설정 전역변수
  149. var butclkyn = "Y";
  150. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  151. function fInitialize() {
  152. zbcfGetCodeList (new Array("Z0007"),new Array("/root/hidden/common/instcdinfo"),true);
  153. //기관코드 설정
  154. // rszfUserReqInstList(cmb_instcd,getUserInfo("userid"),"5","B");
  155. misfGridInit(grd_reqcollcdeptlist);
  156. misfGridInit(grd_rsdhdinflist);
  157. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  158. model.makeValue("/root/send/reqdata/useyn", "Y");
  159. model.makeValue("/root/send/reqdata/cdflag", "E");
  160. submit("TRMNG00701");
  161. model.removeNodeset("/root/main/dutylist[dutycd='S']"); //일반장비구분 삭제.
  162. //멸균, 세척탭으로 나뉘면서 전체 장비구분 제외 by 박영우 2010-02-22
  163. //addComboItem("cmb_dutycd", "전체" , "", "above");
  164. //cmb_dutycd.refresh();
  165. //fsearch2();
  166. misfMsterDetailSet(grd_rsdhdinflist, null, "TRMNG01301", "Y");
  167. model.removeNodeset("/root/main/rsdhdinflist");
  168. model.removeNodeset("/root/main/reqcollcdeptlist");
  169. model.resetInstanceNode("/root/send");
  170. model.setValue("/root/send/usernm", getUserInfo("usernm")); // 사용자 이름 설정
  171. model.setValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관 설정
  172. model.setValue("/root/send/goodflag", "E"); // 물품 설정
  173. model.setValue("/root/send/true", "Y"); // 사용유무 설정.
  174. model.setValue("/root/send/dinfkind", rdo_dinfkind.value); // 멸균 구분
  175. // model.setValue("/root/send/cntrdeptcd", getUserInfo("dutplcecd")); // 귀속부서 설정
  176. model.setValue("/root/send/workdd", getCurrentDate());
  177. //화면 권한 설정
  178. // btn_save.disabled = !(checkAuth("X"));
  179. // btn_prt.disabled= !(checkAuth("P"));
  180. model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
  181. cmb_dutycd.select(0);
  182. rdo_dinfkind.select(0);
  183. //fsearch();
  184. // rszfModeGetComboList( '012', , "grd_rsdhdinflist.csrfixasetmdnm");
  185. // var obj = document.controls(grd_rsdhdinflist.colAttribute(grd_rsdhdinflist.colRef("csrfixasetmdnm"), "id"));
  186. // alert(obj.choices.itemset.attribute("nodeset"));
  187. misfSetReadOnlyCol(grd_reqcollcdeptlist, "fixasetcd,fixasetnm", true);
  188. }
  189. function fModeCheck() {
  190. // var fixasetcd = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd"));
  191. //
  192. // if( fixasetcd.substr(0, 5) == "E8001" ) {
  193. //
  194. // grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("purfctm")) = false;
  195. //
  196. // } else {
  197. //
  198. // grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("purfctm")) = true;
  199. //
  200. // }
  201. }
  202. function fCheckTime(ftimeset) {
  203. if(grd_rsdhdinflist.col == grd_rsdhdinflist.colRef(ftimeset)) {
  204. var sTime = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef(ftimeset));
  205. if(sTime.length != 4) {
  206. messageBox("네자리를 ","C001");
  207. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef(ftimeset)) = "";
  208. return;
  209. }
  210. var sFrontTime = sTime.substr(0, 2);
  211. var sBackTime = sTime.substr(2, 2);
  212. if(parseInt(sFrontTime) > 24) {
  213. messageBox("24시를 ","E003");
  214. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef(ftimeset)) = "";
  215. return;
  216. }
  217. if(parseInt(sBackTime) > 59) {
  218. messageBox("59분을 ","E003");
  219. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef(ftimeset)) = "";
  220. return;
  221. }
  222. }
  223. }
  224. // 장비코드 조회
  225. function fsearch() {
  226. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  227. model.makeValue("/root/send/reqdata/dutycd", cmb_dutycd.value);
  228. model.makeValue("/root/send/reqdata/divscd", rdo_dinfkind.value);
  229. model.makeValue("/root/send/reqdata/useyn", "Y");
  230. model.makeValue("/root/send/reqdata/butclkyn", "Y");
  231. if(submit("TRMNG01302")) {
  232. }
  233. //
  234. //
  235. }
  236. function fsearch2() {
  237. var dutycd = model.getValue(cmb_dutycd.attribute("ref"));
  238. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  239. model.makeValue("/root/send/reqdata/dutycd", dutycd);
  240. model.makeValue("/root/send/reqdata/useyn", "Y");
  241. //20101215_KNUH_Start Submit ID변경
  242. //submit("TRRSS01311");
  243. //20101215_KNUH_End
  244. submit("TRMNG00601");
  245. addComboItem("rdo_dinfkind", "전체" , "", "above");
  246. rdo_dinfkind.select(0);
  247. }
  248. function fsearch3() {
  249. model.removeNodeset("/root/main/rsdhdinflist");
  250. grd_rsdhdinflist.rebuild();
  251. model.makeValue("/root/send/reqdata/instcd", cmb_instcd.value);
  252. model.makeValue("/root/send/reqdata/dutycd", cmb_dutycd.value);
  253. model.makeValue("/root/send/reqdata/divscd", cmb_dinfkind.value);
  254. model.makeValue("/root/send/reqdata/useyn", "Y");
  255. if(submit("TRMNG01302")) {
  256. grd_reqcollcdeptlist.row = 1;
  257. if(cmb_dutycd.value != "W") {
  258. //멸균, 세척 탭 사용에 따른 데이터 그리드 숨김, 보임 설정 by 박영우 2010-02-22
  259. btn_dinf.selected = true;
  260. grd_rsdhdinflist.caption = "횟수^모드^노출시간^멸균온도^시작시간^종료시간^작동시간^B-I^B-I nm^RESULT^정화시간^멸균품내역^이상무^시작자ID^시작자ID^종료자ID^종료자ID^Chemical indicator Internal^Chemical indicator External^Incubator 시간^Incubator 확인자ID^Incubator 확인자ID^결과확인시간^결과확인자ID^결과확인자ID^reading^특기사항^담당자ID^담당자ID^기관코드^작업일자^고정자산코드^물품구분^사용\n시간^노출온도^비고";
  261. grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("csrfixasetmd")) = false;
  262. grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("expsurtm")) = false;
  263. grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("dinftmpr")) = false;
  264. grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("biindflag")) = false;
  265. grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("purfctm")) = false;
  266. grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("bowdicflag")) = false;
  267. grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("rsltcnfmtm")) = false;
  268. grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("rsltcnfmpsn")) = false;
  269. grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("rsltcnfmpsnnm")) = false;
  270. grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("rsltcnfmpsnnm")) = false;
  271. } else {
  272. //멸균, 세척 탭 사용에 따른 데이터 그리드 숨김, 보임 설정 by 박영우 2010-02-22
  273. btn_wash.selected = true;
  274. grd_rsdhdinflist.caption = "횟수^모드^노출시간^멸균온도^시작시간^종료시간^세척시간^B-I^B-I nm^RESULT^정화시간^세척품내역^이상무^시작자ID^시작자ID^종료자ID^종료자ID^Chemical indicator Internal^Chemical indicator External^Incubator 시간^Incubator 확인자ID^Incubator 확인자ID^결과확인시간^결과확인자ID^결과확인자ID^reading^특기사항^담당자ID^담당자ID^기관코드^작업일자^고정자산코드^물품구분^사용\n시간^노출온도^비고";
  275. grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("csrfixasetmd")) = true;
  276. grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("expsurtm")) = true;
  277. grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("dinftmpr")) = true;
  278. grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("biindflag")) = true;
  279. grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("purfctm")) = true;
  280. grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("bowdicflag")) = true;
  281. grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("rsltcnfmtm")) = true;
  282. grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("rsltcnfmpsn")) = true;
  283. grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("rsltcnfmpsnnm")) = true;
  284. grd_rsdhdinflist.colHidden(grd_rsdhdinflist.colRef("rsltcnfmpsnnm")) = true;
  285. }
  286. }
  287. }
  288. // 세부내역 조회
  289. function fsearchGrid() {
  290. var updtdata = getGridUpdateData(grd_rsdhdinflist);
  291. if ( updtdata != "") {
  292. var ret = messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  293. if (ret != 6) { // not OK
  294. return;
  295. }
  296. }
  297. model.setValue("/root/send/fixasetcd", grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd")));
  298. model.setValue("/root/send/workdd", ipt_workdd.value);
  299. model.setValue("/root/send/dinfkind", rdo_dinfkind.value); // 멸균 구분
  300. submit("TRMNG01301");
  301. misfSetReadOnlyCol(grd_rsdhdinflist, "instcd,workdd,fixasetcd,goodflag", true);
  302. }
  303. //행 추가
  304. function finsert() {
  305. if(grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd")) == "") {
  306. messageBox("장비코드를","C002");
  307. }else{
  308. misfGridIUD(grd_rsdhdinflist, "A");
  309. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("fixasetcd")) = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd"));
  310. }
  311. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("usetims") ) = grd_rsdhdinflist.row;
  312. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("chrgid") ) = getUserInfo("userid");
  313. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("chrgnm") ) = getUserInfo("usernm");
  314. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("workdd")) = ipt_workdd.value;
  315. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("goodflag")) = "E";
  316. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("nowrongyn")) = "Y";
  317. if(grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("instcd")) == "") {
  318. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("instcd")) = cmb_instcd.value;
  319. }else{
  320. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("instcd")) = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("instcd"));
  321. }
  322. misfSetReadOnlyCol(grd_rsdhdinflist, "instcd,fixasetcd,goodflag", true);
  323. }
  324. function fModeComboNodeSetGet() {
  325. //////////////////////////모드코드 콤보설정//////////////////////////////////////////
  326. // 모드 콤보 설정되기전에 콤보에 nodeset이 지정되어 있으며 화면상에 나타내어 지고 있으면 콤보의 노드를 변경할 수가 없다.
  327. // 그리드를 초기화 시켜줌으로써 nodeset을 재설정 할수있도록 해준다.
  328. misfGridInit(grd_rsdhdinflist);
  329. grd_rsdhdinflist.rebuild();
  330. // 모드코드 콤보를 설정한다.
  331. //20101215_KNUH_Start 주석처리(mis함수에서 강제로 TRRSS01303호출함.(TRMNG01303으로 변경).
  332. // rszfModeGetComboList( grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("instcd")), grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd")), "grd_rsdhdinflist.csrfixasetmd");
  333. //20101215_KNUH_Start submit ID TRMNG01303으로 변경
  334. var instcd = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("instcd"));
  335. var fixasetcd = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd"));
  336. var useyn = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("useyn"));
  337. model.makeValue("/root/send/reqdata/instcd", instcd);
  338. model.makeValue("/root/send/reqdata/fixasetcd", fixasetcd);
  339. model.makeValue("/root/send/reqdata/useyn", useyn);
  340. submit("TRMNG01303");
  341. //20101215_KNUH_End
  342. /* 모드콤보에 설정된 nodeset을 임시저장소에 담아둔다.
  343. 이유 : 임시저장소에 저장된 nodeset은 모드코드콤보를 선택했을시
  344. 콤보값에 맞는 노출시간과 멸균온도를 가져오기위한 위치를 나타낼때 사용됨.
  345. */
  346. var obj = document.controls(grd_rsdhdinflist.colAttribute(grd_rsdhdinflist.colRef("csrfixasetmd"), "id"));
  347. model.removenode("/root/temp/nodeset");
  348. model.makeNode("/root/temp/nodeset");
  349. model.setValue("/root/temp/nodeset", obj.choices.itemset.attribute("nodeset"));
  350. //////////////////////////모드코드 콤보설정//////////////////////////////////////////
  351. }
  352. function subTm(fstTm, lastTm) {
  353. var fstHour = fstTm.substr(0,2);
  354. var fstTm2 = fstTm.substr(2,2);
  355. var fstss = fstTm.substr(4,2);
  356. var lastHour = lastTm.substr(0,2);
  357. var lastTm2 = lastTm.substr(2,2);
  358. var lastss = lastTm.substr(4,2);
  359. var subHour = Number(lastHour) - Number(fstHour);
  360. var subTm = Number(lastTm2) - Number(fstTm2);
  361. var subss = Number(lastss) - Number(fstss);
  362. var hr;
  363. var tm;
  364. var ss;
  365. if(subss < 0) {
  366. subss += 60;
  367. subTm -= 1;
  368. }
  369. if(subTm < 0) {
  370. subTm += 60;
  371. subHour -= 1;
  372. }
  373. if(subHour < 0) {
  374. subHour += 24;
  375. }
  376. if(subHour < 10) {
  377. subHour = "0" + subHour;
  378. } else {
  379. subHour = String(subHour);
  380. }
  381. if(subTm < 10) {
  382. subTm = "0" + subTm;
  383. } else {
  384. subTm = String(subTm);
  385. }
  386. if(subss <10) {
  387. subss = "0" + subss;
  388. } else {
  389. subss = String(subss);
  390. }
  391. return subHour + subTm + subss;
  392. }
  393. ]]>
  394. </script>
  395. </xhtml:head>
  396. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  397. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  398. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:186px; height:14px; ">일일 작업 일지</caption>
  399. </group>
  400. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  401. <group id="grp_sea" style="left:0px; top:10px; width:1191px; height:60px; vertical-align:top; ">
  402. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:4px; width:1190px; height:51px; background-color:#fffbf2; border-color:#ffd799; "/>
  403. <caption id="cap_workdd" class="search_name" style="left:15px; top:35; width:86px; height:17px; ">작업일자 :</caption>
  404. <caption id="cap_dinfkind" class="search_name" style="left:465px; top:10px; width:102px; height:17px; ">분류구분 :</caption>
  405. <input id="ipt_workdd" ref="/root/send/workdd" class="input_default" inputtype="date" style="left:103px; top:34px; width:120px; height:19px; ">
  406. <script type="javascript" ev:event="xforms-value-changed">
  407. <![CDATA[
  408. var workdd = model.getValue(ipt_workdd.attribute("ref"));
  409. /*
  410. if(workdd == getCurrentDate()) {
  411. btn_insert.disabled = false;
  412. btn_delete.disabled = false;
  413. btn_save.disabled = false;
  414. } else {
  415. btn_insert.disabled = true;
  416. btn_delete.disabled = true;
  417. btn_save.disabled = true;
  418. }
  419. btn_insert.refresh();
  420. btn_delete.refresh();
  421. btn_save.refresh();
  422. */
  423. fsearchGrid();
  424. ]]>
  425. </script>
  426. </input>
  427. <caption id="cap_usernm" class="search_name" visibility="hidden" style="left:235px; top:35px; width:83px; height:17px; ">담 당 자 :</caption>
  428. <output id="opt_usernm" ref="/root/send/usernm" class="output_fix" visibility="hidden" appearance="output" style="left:323px; top:34px; width:130px; height:19px; "/>
  429. <line id="line30" class="line_4" style="x1:785px; y1:14px; x2:785px; y2:47px; "/>
  430. <button id="btn_search" class="btn1_letter2" style="left:796px; top:19px; width:56px; height:22px; ">
  431. <caption>조회</caption>
  432. <script type="javascript" ev:event="DOMActivate">
  433. <![CDATA[
  434. fsearch3();
  435. ]]>
  436. </script>
  437. </button>
  438. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" navindex="2" appearance="minimal" style="left:103px; top:8px; width:120px; height:19px; text-align:center; ">
  439. <choices>
  440. <itemset nodeset="/root/hidden/common/instcdinfo/Z0007">
  441. <label ref="cdnm"/>
  442. <value ref="cdid"/>
  443. </itemset>
  444. </choices>
  445. <script type="javascript" ev:event="xforms-value-changed">
  446. <![CDATA[
  447. model.setValue("/root/send/instcd", cmb_instcd.value);
  448. fsearch();
  449. ]]>
  450. </script>
  451. </select1>
  452. <caption id="cap_instcd" class="search_name" style="left:15px; top:9; width:90px; height:17px; ">기관코드 :</caption>
  453. <select1 id="rdo_dinfkind" ref="/root/send/dinfkind" visibility="hidden" appearance="full" cellspacing="5" cols="5" overflow="visible" style="left:660px; top:10px; width:219px; height:15px; background-color:transparent; border-style:none; ">
  454. <choices>
  455. <itemset nodeset="/root/init/divsflaglist">
  456. <label ref="divsnm"/>
  457. <value ref="divscd"/>
  458. </itemset>
  459. </choices>
  460. <script type="javascript" ev:event="xforms-value-changed">
  461. <![CDATA[
  462. fsearch();
  463. ]]>
  464. </script>
  465. </select1>
  466. <button id="btn_excel" class="btn1_letter2" style="left:854px; top:19px; width:56px; height:22px; ">
  467. <caption>엑셀</caption>
  468. <script type="javascript" ev:event="DOMActivate">
  469. <![CDATA[
  470. //일일작업일지로 명칭 변경 by 박영우 2010-02-22
  471. var fileName = window.fileDialog("save", ",", false, "일일작업일지", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  472. if (fileName != "")
  473. {
  474. grd_rsdhdinflist.saveExcel(fileName, "sheetname:일일작업일지;");
  475. }
  476. ]]>
  477. </script>
  478. </button>
  479. <button id="btn_prt" class="btn1_letter8" style="left:912px; top:19px; width:128px; height:22px; ">
  480. <caption>일일작업일지출력</caption>
  481. <script type="javascript" ev:event="DOMActivate">
  482. <![CDATA[
  483. //세척일지, 멸균일지로 구분 by 박영우 2010-02-22
  484. var dutycd = model.getValue("/root/send/dutycd");
  485. model.removeNodeset("/root/send/report/rsdhdinflist");
  486. model.makeNode("/root/send/report/rsdhdinflist");
  487. model.makeValue("/root/send/report/prtdata/currentdate" ,getCurrentDate());
  488. model.makeValue("/root/send/report/prtdata/currentday" ,getCurrentWeek("K"));
  489. model.makeValue("/root/send/report/prtdata/divsnm" ,grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("divsnm")));
  490. model.makeValue("/root/send/report/prtdata/csrfixasetnm",grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("csrfixasetnm")));
  491. if(grd_rsdhdinflist.rowStatus(grd_rsdhdinflist.rows-1) =="0"){
  492. for(var i=1; i < grd_rsdhdinflist.rows;i++){
  493. model.makeValue("/root/main/rsdhdinflist["+i+"]/biindflagnm",grd_rsdhdinflist.labelMatrix(i,grd_rsdhdinflist.colRef("biindflag")));
  494. }
  495. copyNodesetType("/root/send/report/rsdhdinflist", "/root/main/rsdhdinflist");
  496. }
  497. if(dutycd == "W") {
  498. exeReportPreview("RPMNG01001", "XMLSTR", "/root/send/report/rsdhdinflist");
  499. } else {
  500. exeReportPreview("RPMNG01000", "XMLSTR", "/root/send/report/rsdhdinflist");
  501. }
  502. ]]>
  503. </script>
  504. </button>
  505. <caption id="caption1" class="search_name" style="left:235px; top:10px; width:87px; height:17px; ">장비구분 :</caption>
  506. <select1 id="cmb_dutycd" ref="/root/send/dutycd" appearance="minimal" style="left:323px; top:10px; width:130px; height:19px; ">
  507. <choices>
  508. <itemset nodeset="/root/main/dutylist">
  509. <label ref="dutynm"/>
  510. <value ref="dutycd"/>
  511. </itemset>
  512. </choices>
  513. <script type="javascript" ev:event="xforms-value-changed">
  514. <![CDATA[
  515. if(butclkyn == "Y") {
  516. model.makeValue("/root/send/reqdata/butclkyn", "Y");
  517. } else {
  518. model.makeValue("/root/send/reqdata/butclkyn", "");
  519. }
  520. fsearch2();
  521. fsearch3();
  522. butclkyn = "N";
  523. ]]>
  524. </script>
  525. </select1>
  526. <select1 id="cmb_dinfkind" ref="/root/send/dinfkind" appearance="minimal" style="left:550px; top:10px; width:100px; height:19px; ">
  527. <choices>
  528. <itemset nodeset="/root/init/divsflaglist">
  529. <label ref="divsnm"/>
  530. <value ref="divscd"/>
  531. </itemset>
  532. </choices>
  533. <script type="javascript" ev:event="xforms-value-changed">
  534. <![CDATA[
  535. fsearch3();
  536. ]]>
  537. </script>
  538. </select1>
  539. <button id="button1" class="btn1_letter9" style="left:1042px; top:19px; width:140px; height:22px; ">
  540. <caption>인디케이터일지출력</caption>
  541. <script type="javascript" ev:event="DOMActivate">
  542. <![CDATA[
  543. model.removeNodeset("/root/send/report/rsdhdinflist");
  544. model.makeNode("/root/send/report/rsdhdinflist");
  545. model.makeValue("/root/send/report/prtdata/currentdate" ,getCurrentDate());
  546. model.makeValue("/root/send/report/prtdata/currentday" ,getCurrentWeek("K"));
  547. model.makeValue("/root/send/report/prtdata/divsnm" ,grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("divsnm")));
  548. model.makeValue("/root/send/report/prtdata/csrfixasetnm",grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("csrfixasetnm")));
  549. copyNodesetType("/root/send/report/rsdhdinflist", "/root/main/rsdhdinflist");
  550. exeReportPreview("RPMNG01600", "XMLSTR", "/root/send/report/rsdhdinflist");
  551. ]]>
  552. </script>
  553. </button>
  554. </group>
  555. <group id="group1" style="left:0px; top:90px; width:200px; height:645px; border-color:#808080; border-style:solid; ">
  556. <caption id="cap_fixasetcdlist" class="tit_2" style="left:5px; top:0px; width:80px; height:13px; ">장비코드</caption>
  557. <line id="line3" class="line_1" style="x1:0px; y1:14px; x2:198px; y2:14px; "/>
  558. <datagrid id="grd_reqcollcdeptlist" nodeset="/root/main/eqiprgstlist" caption="기관코드^장비코드^분류구분^장비명^CSR청구부서코드^사용유무^비고" colsep="^" colwidth="0, 0, 85, 90, 70, 58, 100, 100, 100" dataheight="25" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:19px; width:198px; height:623px; ">
  559. <col ref="instcd" visibility="hidden"/>
  560. <col ref="fixasetcd" visibility="hidden"/>
  561. <col ref="divsnm" style="text-align:center; "/>
  562. <col ref="csrfixasetnm" style="text-align:center; "/>
  563. <col ref="dinfkind" visibility="hidden"/>
  564. <col ref="useyn" visibility="hidden"/>
  565. <col ref="cmt" visibility="hidden"/>
  566. <col ref="fixasetnm" visibility="hidden"/>
  567. <col ref="csrfixaset" visibility="hidden"/>
  568. <script type="javascript" ev:event="onclick">
  569. <![CDATA[
  570. if(grd_reqcollcdeptlist.row > 0){
  571. fModeCheck();
  572. // 모드콤보 설정.
  573. fModeComboNodeSetGet();
  574. fsearchGrid();
  575. }
  576. ]]>
  577. </script>
  578. </datagrid>
  579. </group>
  580. <button id="btn_dinf" class="btn_sw" group="sw" selected="true" style="left:0px; top:70px; width:100px; height:22px; ">
  581. <caption>멸균</caption>
  582. <script type="javascript" ev:event="DOMActivate">
  583. <![CDATA[
  584. model.makeValue("/root/send/dutycd", "D");
  585. butclkyn = "Y";
  586. cmb_dutycd.refresh();
  587. cmb_dutycd.dispatch("xforms-value-changed");
  588. ]]>
  589. </script>
  590. </button>
  591. <button id="btn_wash" class="btn_sw" group="sw" style="left:100px; top:70px; width:100px; height:22px; ">
  592. <caption>세척</caption>
  593. <script type="javascript" ev:event="DOMActivate">
  594. <![CDATA[
  595. model.makeValue("/root/send/dutycd", "W");
  596. butclkyn = "Y";
  597. cmb_dutycd.refresh();
  598. cmb_dutycd.dispatch("xforms-value-changed");
  599. ]]>
  600. </script>
  601. </button>
  602. <button id="btn_delete" class="btn2_letter3" style="left:1090px; top:86px; width:53px; height:19px; ">
  603. <caption>행삭제</caption>
  604. <script type="javascript" ev:event="DOMActivate">
  605. <![CDATA[
  606. misfGridIUD(grd_rsdhdinflist, "D");
  607. ]]>
  608. </script>
  609. </button>
  610. <button id="btn_insert" class="btn2_letter3" style="left:1035px; top:86px; width:53px; height:19px; ">
  611. <caption>행추가</caption>
  612. <script type="javascript" ev:event="DOMActivate">
  613. <![CDATA[
  614. // finsert()
  615. grd_rsdhdinflist.addRow();
  616. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("fixasetcd")) = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd"));
  617. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("usetims") ) = grd_rsdhdinflist.row;
  618. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("chrgid") ) = getUserInfo("userid");
  619. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("chrgnm") ) = getUserInfo("usernm");
  620. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("workdd")) = ipt_workdd.value;
  621. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("goodflag")) = "E";
  622. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("nowrongyn")) = "Y";
  623. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("instcd")) = getUserInfo("dutplceinstcd");
  624. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("nowrongyn")) = "Y";
  625. ]]>
  626. </script>
  627. </button>
  628. <button id="btn_save" class="btn5_letter2" style="left:1145px; top:86px; width:42px; height:19px; ">
  629. <caption>저장</caption>
  630. <script type="javascript" ev:event="DOMActivate">
  631. <![CDATA[
  632. var updtdata = getGridUpdateData(grd_rsdhdinflist);
  633. if (updtdata == "")
  634. {
  635. messageBox("변경된 데이터가","I004");
  636. return;
  637. }else{
  638. /*
  639. var csrfixasetmd = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row,grd_rsdhdinflist.colRef("csrfixasetmd"));
  640. if(csrfixasetmd==""){
  641. messageBox("모드","I003");
  642. return;
  643. }
  644. var expsurtm = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row,grd_rsdhdinflist.colRef("expsurtm"));
  645. if(expsurtm==""){
  646. messageBox("노출시간은","I003");
  647. return;
  648. }
  649. var dinftmpr = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row,grd_rsdhdinflist.colRef("dinftmpr"));
  650. if(dinftmpr==""){
  651. messageBox("멸균온도는","I003");
  652. return;
  653. }
  654. var starttm = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row,grd_rsdhdinflist.colRef("starttm"));
  655. if(starttm==""){
  656. messageBox("시작시간은","I003");
  657. return;
  658. }
  659. var endtm = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row,grd_rsdhdinflist.colRef("endtm"));
  660. if(endtm==""){
  661. messageBox("종료시간은","I003");
  662. return;
  663. }
  664. var funtngtm = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row,grd_rsdhdinflist.colRef("funtngtm"));
  665. if(funtngtm==""){
  666. messageBox("작동시간은","I003");
  667. return;
  668. }
  669. */
  670. /*
  671. var biindflag = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row,grd_rsdhdinflist.colRef("biindflag"));
  672. if(biindflag==""){
  673. messageBox("B-I","I003");
  674. return;
  675. }*/
  676. /*
  677. var bowdicflag = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row,grd_rsdhdinflist.colRef("bowdicflag"));
  678. if(bowdicflag==""){
  679. messageBox("RESULT는","I003");
  680. return;
  681. }
  682. var purfctm = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row,grd_rsdhdinflist.colRef("purfctm"));
  683. if(purfctm==""){
  684. messageBox("정화시간는","I003");
  685. return;
  686. }
  687. var dinfitemspec = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row,grd_rsdhdinflist.colRef("dinfitemspec"));
  688. var rsltcnfmpsn = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row,grd_rsdhdinflist.colRef("rsltcnfmpsn"));
  689. if(rsltcnfmpsn==""){
  690. messageBox("결과확인자는","I003");
  691. return;
  692. }
  693. */
  694. rtn = messageBox("", "Q002");
  695. if(rtn != "6" ) return false;
  696. misfSave("TXMNG01301");
  697. btn_search.dispatch("DOMActivate");
  698. }
  699. ]]>
  700. </script>
  701. </button>
  702. <caption id="caption4" class="tit_2" style="left:205px; top:92px; width:70px; height:13px; ">세부내역</caption>
  703. <line id="line1" class="line_1" style="x1:205px; y1:106px; x2:1190px; y2:106px; "/>
  704. <datagrid id="grd_rsdhdinflist" nodeset="/root/main/rsdhdinflist" class="datagrid2" autoresize="true" caption="횟수^모드^노출시간^멸균온도^시작시간^종료시간^작동시간^B-I^B-I nm^RESULT^정화시간^멸균품내역^이상무^시작자ID^시작자ID^종료자ID^종료자ID^Chemical indicator Internal^Chemical indicator External^Incubator 시간^Incubator 확인자ID^Incubator 확인자ID^결과확인시간^결과확인자ID^결과확인자ID^reading^특기사항^담당자ID^담당자ID^기관코드^작업일자^고정자산코드^물품구분^사용&#xA;시간^노출온도^비고" colsep="^" colwidth="36, 129, 75, 55, 70, 70, 55, 83, 100, 73, 55, 192, 46, 80, 70, 80, 70, 60, 60, 100, 160, 169, 130, 120, 120, 120, 100, 100, 120, 100, 100, 100, 130, 39, 100, 250" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" style="left:205px; top:111px; width:985px; height:623px; ">
  705. <col ref="usetims" format="########" _key="true" style="left:20px; top:23px; width:36px; height:23px; text-align:center; "/>
  706. <col ref="csrfixasetmd" type="combo" style="text-align:center; ">
  707. <choices>
  708. <itemset nodeset="/root/main/rscmeqmdlist">
  709. <label ref="label"/>
  710. <value ref="value"/>
  711. </itemset>
  712. </choices>
  713. </col>
  714. <col ref="expsurtm" format="hh:nn:ss" maxlength="6" style="text-align:right; "/>
  715. <col ref="dinftmpr" maxlength="4" style="text-align:right; "/>
  716. <col ref="starttm" type="input" format="hh:nn:ss" style="text-align:right; "/>
  717. <col ref="endtm" type="input" format="hh:nn:ss" style="text-align:right; "/>
  718. <col ref="funtngtm" format="hh:nn:ss" style="text-align:right; "/>
  719. <col ref="biindflag" type="combo" visibility="visible">
  720. <choices>
  721. <itemset nodeset="/root/init/biindflag">
  722. <label ref="label"/>
  723. <value ref="value"/>
  724. </itemset>
  725. </choices>
  726. </col>
  727. <col ref="biindflagnm" visibility="hidden"/>
  728. <col id="bowdicflag" ref="bowdicflag" type="combo" visibility="visible">
  729. <choices>
  730. <itemset nodeset="/root/init/bowdicflag1">
  731. <label ref="label"/>
  732. <value ref="value"/>
  733. </itemset>
  734. </choices>
  735. </col>
  736. <col ref="purfctm" type="input" maxlength="8" style="text-align:right; "/>
  737. <col ref="dinfitemspec" type="inputbutton" maxlength="1000"/>
  738. <col checkvalue="Y,N" ref="nowrongyn" type="combo">
  739. <choices>
  740. <item>
  741. <label>Y</label>
  742. <value>Y</value>
  743. </item>
  744. <item>
  745. <label>N</label>
  746. <value>N</value>
  747. </item>
  748. </choices>
  749. </col>
  750. <col ref="userid" type="inputbutton" maxlength="10"/>
  751. <col ref="useridnm"/>
  752. <col ref="endpsnid" type="inputbutton" maxlength="10"/>
  753. <col ref="endpsnnm"/>
  754. <col ref="cheindint" type="input" visibility="hidden" maxlength="24"/>
  755. <col ref="cheindext" type="input" visibility="hidden" maxlength="24"/>
  756. <col ref="incubtm" type="input" visibility="hidden" format="hh:nn"/>
  757. <col ref="incubcnfmr" type="inputbutton" visibility="hidden" maxlength="10"/>
  758. <col ref="incubcnfmrnm" visibility="hidden"/>
  759. <col ref="rsltcnfmtm" type="input" format="hh:nn"/>
  760. <col ref="rsltcnfmpsn" type="inputbutton" maxlength="10"/>
  761. <col ref="rsltcnfmpsnnm"/>
  762. <col ref="reading" type="input" visibility="hidden" maxlength="24"/>
  763. <col ref="spclmentfact" type="input" visibility="hidden" maxlength="36"/>
  764. <col ref="chrgid" type="inputbutton" visibility="hidden" maxlength="10"/>
  765. <col ref="chrgnm" visibility="hidden"/>
  766. <col ref="instcd" type="input" visibility="hidden" maxlength="3" _key="true"/>
  767. <col class="input_default" ref="workdd" type="inputdate" visibility="hidden" _key="true"/>
  768. <col ref="fixasetcd" type="input" visibility="hidden" maxlength="20" _key="true"/>
  769. <col ref="goodflag" type="input" visibility="hidden" maxlength="1" _key="true"/>
  770. <col disabled="true" ref="usetm" visibility="hidden" format="hh:nn"/>
  771. <col ref="expsurtmpr" type="input" visibility="hidden" maxlength="4"/>
  772. <col ref="cmt" type="input" maxlength="100"/>
  773. <script type="javascript" ev:event="onendedit">
  774. <![CDATA[
  775. fCheckTime("usetm");
  776. fCheckTime("funtngtm");
  777. fCheckTime("expsurtm");
  778. // fCheckTime("purfctm");
  779. fCheckTime("totm");
  780. fCheckTime("incubtm");
  781. fCheckTime("rsltcnfmtm");
  782. ]]>
  783. </script>
  784. <script type="javascript" ev:event="onbuttonclick">
  785. <![CDATA[
  786. model.property("instcd") = cmb_instcd.value;
  787. model.property("dutplcecd") = getUserInfo("dutplcecd");
  788. model.property("dutplcenm") = getUserInfo("dutplcenm");
  789. clearParameter("param");
  790. if (grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("userid")) {//작동자 ID 버튼을 눌렀을 때
  791. modal("SPMNG01000");
  792. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("userid")) = model.property("userid");
  793. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("useridnm")) = model.property("usernm");
  794. }
  795. else if (grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("endpsnid")) {//종료자ID 버튼을 눌렀을 때
  796. modal("SPMNG01000");
  797. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("endpsnid")) = model.property("userid");
  798. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("endpsnnm")) = model.property("usernm");
  799. }
  800. else if (grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("incubcnfmr")) {//Incubator 확인자ID 버튼을 눌렀을 때
  801. modal("SPMNG01000");
  802. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("incubcnfmr")) = model.property("userid");
  803. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("incubcnfmrnm")) = model.property("usernm");
  804. }
  805. else if (grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("rsltcnfmpsn")) {//결과확인자ID 버튼을 눌렀을 때
  806. modal("SPMNG01000");
  807. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("rsltcnfmpsn")) = model.property("userid");
  808. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("rsltcnfmpsnnm")) = model.property("usernm");
  809. }
  810. else if (grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("chrgid")) {//담당자ID 버튼을 눌렀을 때
  811. modal("SPMNG01000");
  812. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("chrgid")) = model.property("userid");
  813. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("chrgnm")) = model.property("usernm");
  814. }
  815. else if(grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("dinfitemspec")){
  816. clearParameter("dutycd");
  817. var dutycd = model.getValue("/root/send/dutycd");
  818. setParameter("dutycd", dutycd);
  819. modal("SPMNG00700");
  820. if(grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("dinfitemspec")) !=""){
  821. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("dinfitemspec")) = (grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("dinfitemspec"))+"\n"+getParameter("param"));
  822. }else{
  823. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("dinfitemspec")) = getParameter("param");
  824. }
  825. grd_rsdhdinflist.resizeCells();
  826. }
  827. model.property("instcd") = "";
  828. model.property("dutplcecd") = "";
  829. model.property("dutplcenm") = "";
  830. grd_rsdhdinflist.rowStatus(grd_rsdhdinflist.row) = 2
  831. grd_rsdhdinflist.refresh();
  832. // else if(grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("csrfixasetmdnm")){
  833. // misfOpenPopUpList("42", grd_rsdhdinflist, "", "fixasetcd,csrfixasetmd,csrfixasetmdnm,expsurtm,dinftmpr", grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("instcd")) + "," + grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("fixasetcd")),"instcd,fixasetcd");
  834. // //rszfOpenPopUpListByWndName(grd_rsdhdinflist,"","csrfixasetmd,expsurtm,dinftmpr","SPRSD00300", "instcd,fixasetcd", sins+ "," + sfix, "Y");
  835. // }
  836. ]]>
  837. </script>
  838. <script type="javascript" ev:event="xforms-value-changed">
  839. <![CDATA[
  840. var starttm = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("starttm"));
  841. var endtm = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("endtm"));
  842. if(grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("starttm")) {
  843. if(starttm.length < 6) {
  844. messageBox("시작시간 hh:mm:ss 시:분:초 자릿수가 맞지않습니다.", "E");
  845. grd_rsdhdinflist.col = grd_rsdhdinflist.colRef("starttm");
  846. return;
  847. }
  848. }
  849. if(grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("endtm")){
  850. if(endtm.length < 6) {
  851. messageBox("종료시간 hh:mm:ss 시:분:초 자릿수가 맞지않습니다.", "E");
  852. grd_rsdhdinflist.col = grd_rsdhdinflist.colRef("endtm");
  853. return;
  854. }
  855. }
  856. var fixasetcd = grd_reqcollcdeptlist.valueMatrix(grd_reqcollcdeptlist.row, grd_reqcollcdeptlist.colRef("fixasetcd"));
  857. var csrfixasetmd = grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("csrfixasetmd"));
  858. if(grd_rsdhdinflist.col == grd_rsdhdinflist.colRef("csrfixasetmd")) {
  859. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("expsurtm")) = model.getValue("/root/main/rscmeqmdlist[csrfixasetmd='"+csrfixasetmd+"']/expsurtm");
  860. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("dinftmpr")) = model.getValue("/root/main/rscmeqmdlist[csrfixasetmd='"+csrfixasetmd+"']/dinftmpr");
  861. }
  862. if(starttm != "" && endtm != "") {
  863. grd_rsdhdinflist.valueMatrix(grd_rsdhdinflist.row, grd_rsdhdinflist.colRef("funtngtm")) = subTm(starttm, endtm);
  864. }
  865. grd_rsdhdinflist.rowStatus(grd_rsdhdinflist.row) = 2
  866. grd_rsdhdinflist.refresh();
  867. ]]>
  868. </script>
  869. </datagrid>
  870. </group>
  871. </xhtml:body>
  872. </xhtml:html>