SMSDT00100_원목마감이력.xrw 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 제 목 : SMAYS05100_원목업무총집계표.xrw
  4. * 설 명 : 원목업무총집계표
  5. * 작 성 자 : 김다영
  6. * 작 성 일 : 2008.07.16
  7. * 수정이력 :
  8. * 기 타 :
  9. -->
  10. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  11. <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">
  12. <xhtml:head>
  13. <xhtml:title>원목업무총집계표</xhtml:title>
  14. <model id="model1">
  15. <instance id="instance1">
  16. <root xmlns="">
  17. <main>
  18. <cmbcond>
  19. </cmbcond>
  20. <fthendlist>
  21. <fthendlistinfo>
  22. <endym/>
  23. <enddg/>
  24. <senddg/>
  25. <workstat/>
  26. <enddt/>
  27. <endpsn/>
  28. <medicntrtrsmdt/>
  29. <medicntrtrsmpsn/>
  30. <endrem/>
  31. </fthendlistinfo>
  32. </fthendlist>
  33. <cond>
  34. <endym/>
  35. <medicntrtrsmpsn/>
  36. <from/>
  37. <to/>
  38. <endyy/>
  39. <endmm/>
  40. <entryy/>
  41. <qurtyy/>
  42. <enddd/>
  43. <enddg/>
  44. <btnflag/>
  45. <batchflag/>
  46. <fromdd/>
  47. <todd/>
  48. <bizflag/>
  49. </cond>
  50. </main>
  51. <send>
  52. <reqdata/>
  53. </send>
  54. <init>
  55. </init>
  56. <hidden/>
  57. <temp>
  58. <rtninfo>
  59. <rtnflag/>
  60. </rtninfo>
  61. </temp>
  62. </root>
  63. </instance>
  64. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  65. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  66. <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
  67. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  69. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  70. <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
  71. <script type="javascript" ev:event="xforms-ready">
  72. <![CDATA[
  73. fInit();
  74. ]]>
  75. </script>
  76. <submission id="TRSDT00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" replace="instance" resultref="/root/temp"/>
  77. <submission id="TRSDT00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" resultref="/root/temp"/>
  78. <submission id="TRSDT00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" replace="instance" resultref="/root/main/fthendlist"/>
  79. <submission id="TXSDT00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" replace="instance" resultref="/root/temp"/>
  80. <submission id="TRSDT00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" replace="instance" resultref="/root/temp"/>
  81. <submission id="TRSDT00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/cond" replace="instance" resultref="/root/temp"/>
  82. </model>
  83. <script type="javascript">
  84. <![CDATA[
  85. /**========================================================================================================================================
  86. * 화면 오픈시
  87. =========================================================================================================================================*/
  88. function fInit() {
  89. //그리드 초기화
  90. model.removeNodeset("/root/main/fthendlist/fthendlistinfo");
  91. grd_fthendlist.refresh();
  92. //사용자명 (입력자 또는 로그인한 사용자명)
  93. var usernm = getUserInfo("usernm");
  94. model.setValue(ipt_medicntrtrsmpsn.attribute("ref"), usernm);
  95. model.refresh();
  96. /*
  97. var CurrentDate = getCurrentDate();
  98. model.setValue("/root/main/cond/endym", CurrentDate.substr(0, 6) + "01");
  99. model.refresh();
  100. */
  101. var CurrentDate=getCurrentDate();
  102. var LastDate=CurrentDate.toDate().getAddDate(-1,"M").getDateFormat(); //현재 월-1월을 셋팅
  103. var LastDateYM=LastDate.substr(0,6);
  104. model.makeValue("/root/main/cond/endym",LastDateYM);
  105. model.refresh();
  106. //마감월 조회기간 세팅
  107. var CurrentDate = getCurrentDate();
  108. //model.setValue("/root/main/cond/from", CurrentDate.substr(0, 6) );
  109. //model.setValue("/root/main/cond/to" , CurrentDate.substr(0, 6) );
  110. model.setValue("/root/main/cond/from", LastDateYM );
  111. model.setValue("/root/main/cond/to" , LastDateYM );
  112. // 메뉴 파라미터(업무구분)
  113. var menuparam = getScreenMenuParameter();
  114. if (menuparam == "02")
  115. {
  116. model.setValue("/root/main/cond/bizflag", menuparam );
  117. //btn_medi.disabled = true;
  118. }
  119. else
  120. {
  121. model.setValue("/root/main/cond/bizflag", "01" );
  122. //btn_medi.disabled = false;
  123. }
  124. //btn_medi.visible=false;
  125. model.refresh();
  126. }
  127. /**========================================================================================================================================
  128. * 조회
  129. =========================================================================================================================================*/
  130. function fGetFthEndYM(){
  131. model.removeNodeset("/root/send/reqdata");
  132. model.makeNode("/root/send/reqdata");
  133. model.copyNode("/root/send/reqdata", "/root/main/cond");
  134. submit("TRSDT00103");
  135. }
  136. /**========================================================================================================================================
  137. * 그리드 초기화
  138. =========================================================================================================================================*/
  139. function fClear(){
  140. model.resetInstanceNode("/root/main/fthendlist/fthendlistinfo");
  141. model.resetInstanceNode("/root/main/cond");
  142. fInit();
  143. model.refresh();
  144. }
  145. ]]>
  146. </script>
  147. </xhtml:head>
  148. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  149. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  150. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:225px; height:14px; ">원목마감이력</caption>
  151. </group>
  152. <group id="group5" scroll="auto" style="left:0px; top:757px; width:1195px; height:27px; ">
  153. <line id="line37" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  154. </group>
  155. <group id="group2" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  156. <caption id="caption21" class="tit_2" style="left:0px; top:55px; width:209px; height:13px; ">마감작업 LIST</caption>
  157. <line id="line1" class="line_1" style="x1:0px; y1:78px; x2:1189px; y2:77px; "/>
  158. <datagrid id="grd_fthendlist" nodeset="/root/main/fthendlist/fthendlistinfo" caption="마감년월^마감차수^송신차수^상태^마감일시^마감자^송신일시^송신자^비고^장소^장소^장소^장소명^장소^담당자" colsep="^" colwidth="102, 100, 100, 100, 140, 100, 140, 100, 311" dataheight="25" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:81px; width:1190px; height:640px; ">
  159. <col ref="endym" format="yyyy-mm" style="text-align:center; "/>
  160. <col ref="enddg" style="text-align:center; "/>
  161. <col ref="senddg" style="text-align:center; "/>
  162. <col ref="workstat" style="text-align:center; "/>
  163. <col ref="enddt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  164. <col ref="endpsn" style="text-align:center; "/>
  165. <col ref="medicntrtrsmdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
  166. <col ref="medicntrtrsmpsn" style="text-align:center; "/>
  167. <col ref="endrem" style="text-align:left; "/>
  168. </datagrid>
  169. <group id="group4" style="left:0px; top:5px; width:1194px; height:40px; vertical-align:top; ">
  170. <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1189px; height:40px; "/>
  171. <caption id="caption26" class="search_name" style="left:10px; top:10px; width:85px; height:17px; ">작업월 :</caption>
  172. <input id="ipt_medicntrtrsmpsn" ref="/root/main/cond/medicntrtrsmpsn" class="output_fix" disabled="true" style="left:303px; top:10px; width:100px; height:19px; "/>
  173. <input id="ipt_endym" ref="/root/main/cond/endym" class="input_search" inputtype="date" format="yyyy-mm" style="left:92px; top:10px; width:100px; height:19px; "/>
  174. <caption id="caption1" class="search_name" style="left:225px; top:10px; width:85px; height:17px; ">마감자 :</caption>
  175. <input id="ipt_endyy" ref="/root/main/cond/endyy" class="input_search" visibility="hidden" inputtype="date" format="yyyy" style="left:405px; top:10px; width:55px; height:19px; "/>
  176. <input id="ipt_endmm" ref="/root/main/cond/endmm" class="input_search" visibility="hidden" inputtype="date" format="mm" style="left:460px; top:10px; width:50px; height:19px; "/>
  177. </group>
  178. <button id="button3" class="btn5_letter2" style="left:1148px; top:54px; width:42px; height:19px; ">
  179. <caption>조회</caption>
  180. <script type="javascript" ev:event="DOMActivate">
  181. <![CDATA[
  182. fGetFthEndYM();
  183. ]]>
  184. </script>
  185. </button>
  186. <input id="input1" ref="/root/main/cond/to" class="input_default" navindex="2" inputtype="date" format="yyyy-mm" style="left:1042px; top:54px; width:100px; height:19px; "/>
  187. <caption id="caption2" class="search_no_b" style="left:1027px; top:54px; width:12px; height:17px; ">~</caption>
  188. <caption id="caption29" class="cell_1" style="left:839px; top:52px; width:79px; height:21px; text-align:center; vertical-align:middle; ">마감월</caption>
  189. <input id="ipt_fromdd" ref="/root/main/cond/from" class="input_default" navindex="1" inputtype="date" format="yyyy-mm" style="left:924px; top:54px; width:100px; height:19px; "/>
  190. <button id="btn_end" class="btn4_letter2" style="left:1015px; top:15px; width:56px; height:22px; ">
  191. <caption>마감</caption>
  192. <script type="javascript" ev:event="onclick">
  193. <![CDATA[
  194. model.setValue("/root/main/cond/btnflag", "01");
  195. var endym = model.getValue("/root/main/cond/endym");
  196. var endyy = model.getValue("/root/main/cond/endyy");
  197. var endmm = model.getValue("/root/main/cond/endmm");
  198. model.setValue("/root/main/cond/endym",endym.substr(0, 6) );
  199. model.setValue("/root/main/cond/endyy",endym.substr(0, 4) );
  200. model.setValue("/root/main/cond/endmm",endym.substr(4, 2) );
  201. model.copyNode("/root/send/reqdata", "/root/main/cond");
  202. submit("TRSDT00105", false);
  203. rtnflag = model.getValue("/root/temp/rtninfo/rtnflag");
  204. if(rtnflag == "00"){
  205. messageBox("원목마감중입니다.","E");
  206. return;
  207. }
  208. else if(rtnflag =="01"){
  209. messageBox("원목마감에러 상태입니다.","E");
  210. }
  211. //마감완료상태
  212. else if(rtnflag =="02"){
  213. //마감버튼
  214. var vbYes = messageBox("원목마감 완료된 상태입니다.마감을", "Q004");
  215. if(vbYes == 6){
  216. }
  217. else{
  218. return;
  219. }
  220. }
  221. //의료원송신에러상태
  222. else if(rtnflag =="03"){
  223. var vbYes = messageBox("원목마감 완료된 상태입니다.마감을", "Q004");
  224. if(vbYes == 6){
  225. }
  226. else{
  227. return;
  228. }
  229. }
  230. //의료원송신완료상태
  231. else if(rtnflag =="04"){
  232. var vbYes = messageBox("의료원송신 완료된 상태입니다.마감을", "Q004");
  233. if(vbYes == 6){
  234. }
  235. else{
  236. return;
  237. }
  238. }
  239. //의료원송신중
  240. else if(rtnflag =="88"){
  241. var vbYes = messageBox("의료원송신중입니다. 마감을", "Q004");
  242. if(vbYes == 6){
  243. }
  244. else{
  245. return;
  246. }
  247. }
  248. // else if(rtnflag =="05"){
  249. // messageBox("원목마감 데이터가 존재하지 않습니다.","E");
  250. // }
  251. if (submit("TRSDT00101", false)) {
  252. rtnflag = model.getValue("/root/temp/rtninfo/rtnflag");
  253. if (rtnflag =="99"){
  254. messageBox("원목마감이 정상적으로 실행되었습니다.","I");
  255. model.refresh();
  256. }
  257. }
  258. else {
  259. return;
  260. }
  261. ]]>
  262. </script>
  263. </button>
  264. <button id="btn_medi" class="btn4_letter5" visibility="visible" style="left:1080px; top:15px; width:92px; height:22px; ">
  265. <caption>의료원송신</caption>
  266. <script type="javascript" ev:event="onclick">
  267. <![CDATA[
  268. model.setValue("/root/main/cond/btnflag", "02");
  269. var endym = model.getValue("/root/main/cond/endym");
  270. var endyy = model.getValue("/root/main/cond/endyy");
  271. var endmm = model.getValue("/root/main/cond/endmm");
  272. model.setValue("/root/main/cond/endym",endym.substr(0, 6) );
  273. model.setValue("/root/main/cond/endyy",endym.substr(0, 4) );
  274. model.setValue("/root/main/cond/endmm",endym.substr(4, 2) );
  275. model.copyNode("/root/send/reqdata", "/root/main/cond");
  276. submit("TRSDT00105", false);
  277. rtnflag = model.getValue("/root/temp/rtninfo/rtnflag");
  278. if(rtnflag == "88"){
  279. messageBox("의료원 송신중입니다.","E");
  280. return;
  281. }
  282. //의료원송신완료상태
  283. else if(rtnflag =="04"){
  284. //의료원송신 버튼
  285. var vbYes = messageBox("의료원송신 완료된 상태입니다.의료원 송신을", "Q004");
  286. if(vbYes == 6){
  287. }
  288. else{
  289. return;
  290. }
  291. }
  292. else if(rtnflag == "00"){
  293. messageBox("원목마감중입니다.","E");
  294. return;
  295. }
  296. // else if(rtnflag =="05"){
  297. // messageBox("원목마감 데이터가 존재하지 않습니다.","E");
  298. // }
  299. if (submit("TRSDT00104", false)) {
  300. rtnflag = model.getValue("/root/temp/rtninfo/rtnflag");
  301. if (rtnflag =="77"){
  302. messageBox("의료원송신이 정상적으로 실행되었습니다.","I");
  303. model.refresh();
  304. }
  305. }
  306. else {
  307. return;
  308. }
  309. ]]>
  310. </script>
  311. </button>
  312. </group>
  313. </xhtml:body>
  314. </xhtml:html>