SMCHI00100_건진사업장관리.xrw 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * Name : SMCHI00100_건진사업장관리
  4. * Summary : 건진사업장관리
  5. * Programmer : 최정환
  6. * Date Written : 2007.07.30
  7. * History : 2007.07.30
  8. * Remark :
  9. -->
  10. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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. <list>
  19. <bizplcelist>
  20. <todd/>
  21. <cmpycd/>
  22. <cmpynm/>
  23. <cmpyid/>
  24. <prsdnm/>
  25. <cmpyno/>
  26. <biztype/>
  27. <zipcd1/>
  28. <zipcd2/>
  29. <zipaddr/>
  30. <detladdr/>
  31. <telno/>
  32. <chrgnm/>
  33. <mpphonno/>
  34. <emailid/>
  35. <emailtype/>
  36. </bizplcelist>
  37. <conlist>
  38. <condd/>
  39. <confromdd/>
  40. <contodd/>
  41. <contype/>
  42. <mantotamt/>
  43. <womtotamt/>
  44. <mancnfmamt/>
  45. <womcnfmamt/>
  46. <uncocd/>
  47. <chrgnm/>
  48. <chrgtelno/>
  49. <choitestyn/>
  50. <addtestyn/>
  51. </conlist>
  52. <perchgrlist/>
  53. </list>
  54. <attr>
  55. <bizplceattr>
  56. <cmpycd/>
  57. <cmpynm/>
  58. <cmpyid/>
  59. <prsdnm/>
  60. <cmpyno/>
  61. <biztype/>
  62. <zipcd1/>
  63. <zipcd2/>
  64. <detladdr/>
  65. <telno/>
  66. <chrgnm/>
  67. <mpphonno/>
  68. <emailid/>
  69. <emailtype/>
  70. </bizplceattr>
  71. <conattr>
  72. <condd/>
  73. <confromdd/>
  74. <contodd/>
  75. <basepkgcd/>
  76. </conattr>
  77. <perchgremail>
  78. <emailmsglrgcd/>
  79. <emailmsgmdlcd/>
  80. <emailmsgsmlcd/>
  81. <emailtitl/>
  82. <delivedd/>
  83. <delivetm/>
  84. <wrtedt/>
  85. <savemode/>
  86. </perchgremail>
  87. </attr>
  88. <countnode>
  89. <bizplcecount/>
  90. <concount/>
  91. </countnode>
  92. </main>
  93. <send>
  94. <data>
  95. <cmpynm/>
  96. <cmpycd/>
  97. <healexamflag/>
  98. <rgstfromdd/>
  99. <rgsttodd/>
  100. <chgrnm/>
  101. </data>
  102. <bizplceinfo>
  103. <cmpycd/>
  104. <todd/>
  105. </bizplceinfo>
  106. <perchgrlist/>
  107. <perchgremail/>
  108. </send>
  109. <init>
  110. <A0068list>
  111. <cdid/>
  112. <cdnm/>
  113. </A0068list>
  114. </init>
  115. <temp>
  116. <perchgr>
  117. <seqno/>
  118. <reqdeptnm/>
  119. <reqdeptcd/>
  120. <reqempnm/>
  121. <reqempid/>
  122. <email/>
  123. <useyn/>
  124. </perchgr>
  125. </temp>
  126. </root>
  127. </instance>
  128. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  129. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  130. <submission id="TRCHI00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" resultref="/root/main/list/bizplcelist"/>
  131. <submission id="TRCHI00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/bizplceinfo" resultref="/root/main/list/conlist"/>
  132. <submission id="TRCHI00103" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/list/perchgrlist"/>
  133. <submission id="TRCHI00104" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/attr/perchgremail"/>
  134. <submission id="TXCHI00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
  135. </model>
  136. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  137. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  138. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  139. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  140. <script type="javascript" src="../../../crm/crmweb/js/CCZ001.js"/>
  141. <script type="javascript" ev:event="xforms-ready">
  142. <![CDATA[
  143. // 사업장목록 및 계약목록 그리드를 초기화한다.
  144. model.removenodeset("/root/main/list/bizplcelist"); // 사업장정보리스트
  145. model.removenodeset("/root/main/list/conlist"); // 계약정보리스트
  146. model.removenodeset("/root/main/list/perchgrlist"); // 담당자정보리스트
  147. // 공통코드를 호출하여 자료(건진구분)를 가져온다
  148. zbcfGetCodeList( new Array("A0068"), new Array("/root/init/A0068list"), true );
  149. model.refresh();
  150. // 담당자 정보리스트를 가져온다.
  151. submit("TRCHI00103");
  152. submit("TRCHI00104");
  153. ]]>
  154. </script>
  155. <script type="javascript">
  156. <![CDATA[
  157. // 사업장검색 팝업창 호출
  158. function fCmpyCodeList(receive_cmpycd_path, receive_cmpynm_path){
  159. setParameter("receive_cmpycd_path", receive_cmpycd_path);
  160. setParameter("receive_cmpynm_path", receive_cmpynm_path);
  161. modal("SPCHI00200");
  162. clearParameter("receive_cmpycd_path");
  163. clearParameter("receive_cmpynm_path");
  164. }
  165. // 사업체 목록조회
  166. function fGetCmpyList() {
  167. model.removeNodeset("/root/main/list/bizplcelist");
  168. submit("TRCHI00101");
  169. var grid_rows = grd_bizplcelist.rows-1;
  170. model.setvalue("/root/main/countnode/bizplcecount" , grid_rows);
  171. model.refresh();
  172. }
  173. // 사업체정보 상세
  174. function fGetBizPlceAttr() {
  175. var row = grd_bizplcelist.row;
  176. model.setValue("/root/send/bizplceinfo/cmpycd","");
  177. model.setValue("/root/send/bizplceinfo/todd","");
  178. // 선택한 사업체 리스트항목의 내용을 뿌려준다.
  179. var cmpycd = grd_bizplcelist.valueMatrix(row, grd_bizplcelist.colRef("cmpycd"));
  180. model.setValue("/root/main/attr/bizplceattr/cmpycd",cmpycd); // 사업체코드
  181. model.setValue("/root/send/bizplceinfo/cmpycd",cmpycd);
  182. var cmpynm = grd_bizplcelist.valueMatrix(row, grd_bizplcelist.colRef("cmpynm"));
  183. model.setValue("/root/main/attr/bizplceattr/cmpynm",cmpynm); // 사업장명
  184. var cmpyid = grd_bizplcelist.valueMatrix(row, grd_bizplcelist.colRef("cmpyid"));
  185. model.setValue("/root/main/attr/bizplceattr/cmpyid",cmpyid); // 사업자등록번호
  186. var prsdnm = grd_bizplcelist.valueMatrix(row, grd_bizplcelist.colRef("prsdnm"));
  187. model.setValue("/root/main/attr/bizplceattr/prsdnm",prsdnm); // 대표자명
  188. var cmpyno = grd_bizplcelist.valueMatrix(row, grd_bizplcelist.colRef("cmpyno"));
  189. model.setValue("/root/main/attr/bizplceattr/cmpyno",cmpyno); // 사업장기호
  190. var biztype = grd_bizplcelist.valueMatrix(row, grd_bizplcelist.colRef("biztype"));
  191. model.setValue("/root/main/attr/bizplceattr/biztype",biztype); // 업종
  192. var zipcd1 = grd_bizplcelist.valueMatrix(row, grd_bizplcelist.colRef("zipcd1"));
  193. model.setValue("/root/main/attr/bizplceattr/zipcd1",zipcd1); // 우편번호1
  194. var zipcd2 = grd_bizplcelist.valueMatrix(row, grd_bizplcelist.colRef("zipcd2"));
  195. model.setValue("/root/main/attr/bizplceattr/zipcd2",zipcd2); // 우편번호2
  196. var detladdr = grd_bizplcelist.valueMatrix(row, grd_bizplcelist.colRef("detladdr"));
  197. model.setValue("/root/main/attr/bizplceattr/detladdr",detladdr); // 상세주소
  198. var telno = grd_bizplcelist.valueMatrix(row, grd_bizplcelist.colRef("telno"));
  199. model.setValue("/root/main/attr/bizplceattr/telno",telno); // 전화번호
  200. var chrgnm = grd_bizplcelist.valueMatrix(row, grd_bizplcelist.colRef("chrgnm"));
  201. model.setValue("/root/main/attr/bizplceattr/chrgnm",chrgnm); // 담당자
  202. var mpphonno = grd_bizplcelist.valueMatrix(row, grd_bizplcelist.colRef("mpphonno"));
  203. model.setValue("/root/main/attr/bizplceattr/mpphonno",mpphonno); // 담당자휴대전화
  204. var emailid = grd_bizplcelist.valueMatrix(row, grd_bizplcelist.colRef("emailid"));
  205. model.setValue("/root/main/attr/bizplceattr/emailid",emailid); // 담당자이메일ID
  206. var emailtype = grd_bizplcelist.valueMatrix(row, grd_bizplcelist.colRef("emailtype"));
  207. model.setValue("/root/main/attr/bizplceattr/emailtype",emailtype); // 담당자이메일계정
  208. //model.refresh();
  209. // 사업장계약정보
  210. var todd = grd_bizplcelist.valueMatrix(row, grd_bizplcelist.colRef("todd"));
  211. model.setValue("/root/send/bizplceinfo/todd",todd); // 종료일자
  212. model.removeNodeset("/root/main/list/conlist");
  213. submit("TRCHI00102");
  214. var grid_rows1 = grd_coninfolst.rows-2;
  215. model.setvalue("/root/main/countnode/concount" , grid_rows1);
  216. model.refresh();
  217. }
  218. // 담당자의 변경사항(입력, 수정, 삭제)을 처리한다.
  219. function fSavePerChgr(grid){
  220. var wrtedt = model.getValue("/root/main/attr/perchgremail/wrtedt");
  221. if (wrtedt == "") {
  222. model.makeValue("/root/main/attr/perchgremail/savemode", "I");
  223. model.setValue("/root/main/attr/perchgremail/wrtedt", getCurrentDate()+getCurrentTime());
  224. } else if (wrtedt != "") {
  225. model.makeValue("/root/main/attr/perchgremail/savemode", "U");
  226. }
  227. model.setValue("/root/send/perchgrlist", grid.getUpdateData());
  228. model.copyNode( "/root/send/perchgremail", "/root/main/attr/perchgremail" );
  229. if(isRequiredControls("ipt_emailtitl", "ipt_emaillrgcd", "ipt_emailmdlcd", "ipt_emailsmlcd", "cmb_delivedd", "ipt_delivetm")) {
  230. messageBox("모든 필수값이 입력이","I002");
  231. if ( submit("TXCHI00101") ) {
  232. grid.clearStatus(); // submit() 성공하면 그리드의 i,u,d 상태 제거
  233. }
  234. submit("TRCHI00103");
  235. }
  236. }
  237. ]]>
  238. </script>
  239. </xhtml:head>
  240. <xhtml:body guideline="1,358;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  241. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  242. <caption id="caption1" class="tit_1" style="left:0px; top:0px; width:145px; height:14px; ">건진 사업장관리</caption>
  243. </group>
  244. <group id="grp_johe" style="left:0px; top:23px; width:1195px; height:59px; vertical-align:top; ">
  245. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:59px; background-color:#fffbf2; border-color:#ffd799; "/>
  246. <caption id="caption4" class="search_name" style="left:15px; top:9px; width:105px; height:17px; ">사 업 체 명 :</caption>
  247. <output id="opt_cmpynm" ref="/root/send/data/cmpynm" class="output_search" style="left:124px; top:9px; width:180px; height:19px; "/>
  248. <button id="btnicon_search1" class="icon_search" style="left:307px; top:10px; width:16px; height:16px; ">
  249. <caption/>
  250. <script type="javascript" ev:event="onclick">
  251. <![CDATA[
  252. // 사업장검색
  253. var receive_cmpynm_path = "/root/send/data/cmpynm";
  254. var receive_cmpycd_path = "/root/send/data/cmpycd";
  255. fCmpyCodeList(receive_cmpycd_path, receive_cmpynm_path);
  256. ]]>
  257. </script>
  258. </button>
  259. <output id="opt_cmpycd" ref="/root/send/data/cmpycd" class="output_search" style="left:323px; top:9px; width:97px; height:19px; "/>
  260. <caption id="caption5" class="search_name" style="left:465px; top:9px; width:105px; height:17px; ">건 진 구 분 :</caption>
  261. <select1 id="cmb_orddept" ref="/root/send/data/healexamflag" class="combo_search" appearance="minimal" editmode="search" style="left:573px; top:8px; width:140px; height:19px; ">
  262. <choices>
  263. <itemset nodeset="/root/init/A0068list/A0068">
  264. <label ref="cdnm"/>
  265. <value ref="cdid"/>
  266. </itemset>
  267. </choices>
  268. </select1>
  269. <line id="line1" class="line_4" style="x1:1105px; y1:5px; x2:1105px; y2:51px; "/>
  270. <button id="btn_search" class="btn1_letter2" style="left:1115px; top:15px; width:56px; height:22px; ">
  271. <caption>조회</caption>
  272. <script type="javascript" ev:event="DOMActivate">
  273. <![CDATA[
  274. fGetCmpyList();
  275. ]]>
  276. </script>
  277. </button>
  278. <caption id="caption6" class="search_name" style="left:15px; top:33px; width:105px; height:17px; ">등 록 일 자 :</caption>
  279. <input id="input2" ref="/root/send/data/rgstfromdd" class="input_search" inputtype="date" style="left:123px; top:33px; width:120px; height:19px; "/>
  280. <script type="javascript" ev:event="DOMFocusOut">
  281. <![CDATA[
  282. var rgstfromdd = model.getValue("/root/send/data/rgstfromdd");
  283. if (rgstfromdd != "" && !isValidDateTime(rgstfromdd,"YYYYMMDD")) {
  284. messageBox("날짜가 바르게 입력되지","E007");
  285. model.setFocus("ipt_rgstfromdd");
  286. }
  287. ]]>
  288. </script>
  289. <caption id="caption3" class="search_no_b" style="left:248px; top:33px; width:12px; height:17px; ">~</caption>
  290. <input id="input3" ref="/root/send/data/rgsttodd" class="input_search" inputtype="date" style="left:263px; top:33px; width:120px; height:19px; "/>
  291. <script type="javascript" ev:event="DOMFocusOut">
  292. <![CDATA[
  293. var rgsttodd = model.getValue("/root/send/data/rgsttodd");
  294. if (rgsttodd != "" && !isValidDateTime(rgsttodd,"YYYYMMDD")) {
  295. messageBox("날짜가 바르게 입력되지","E007");
  296. model.setFocus("ipt_rgsttodd");
  297. }
  298. ]]>
  299. </script>
  300. <caption id="caption8" class="search_name" style="left:465px; top:33px; width:105px; height:17px; ">담 당 자 명 :</caption>
  301. <input id="input4" ref="/root/send/data/chgrnm" class="input_search" style="left:573px; top:34px; width:140px; height:19px; "/>
  302. </group>
  303. <group id="group2" style="left:0px; top:82px; width:1195px; height:197px; ">
  304. <caption id="caption9" class="tit_2" style="left:5px; top:10px; width:150px; height:13px; ">사업체 목록</caption>
  305. <caption id="caption35" style="left:1022px; top:27px; width:40px; height:17px; ">전체 :</caption>
  306. <output id="opt_bizplcecount" ref="/root/main/countnode/bizplcecount" appearance="output" style="left:1062px; top:26px; width:30px; height:17px; text-align:right; "/>
  307. <caption id="caption10" style="left:1095px; top:27px; width:30px; height:17px; ">건</caption>
  308. <button id="button3" class="btn2_letter4" style="left:1128px; top:25px; width:64px; height:19px; ">
  309. <caption>엑셀저장</caption>
  310. <script type="javascript" ev:event="DOMActivate">
  311. <![CDATA[
  312. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  313. if (fileName != "")
  314. {
  315. grd_bizplcelist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  316. }
  317. ]]>
  318. </script>
  319. </button>
  320. <line id="line2" class="line_1" style="x1:0px; y1:51px; x2:1195px; y2:51px; "/>
  321. <datagrid id="grd_bizplcelist" nodeset="/root/main/list/bizplcelist" caption="^사업체명^사업체코드^사업장등록번호^대표자명^업종^대표전화^담당자휴대전화^담당자^^^" colsep="^" colwidth="0, 300, 150, 120, 150, 150, 100, 100, 75, 0, 0" ellipsis="true" explorerbar="sortshowmove" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:56px; width:1195px; height:141px; ">
  322. <col ref="todd" type="hidden"/>
  323. <col ref="cmpynm"/>
  324. <col ref="cmpycd"/>
  325. <col ref="cmpyid"/>
  326. <col ref="prsdnm"/>
  327. <col ref="biztype"/>
  328. <col ref="telno"/>
  329. <col ref="mpphonno"/>
  330. <col ref="chrgnm"/>
  331. <col ref="emailid" visibility="hidden"/>
  332. <col ref="emailtype" visibility="hidden"/>
  333. <script type="javascript" ev:event="ondblclick">
  334. <![CDATA[
  335. // 사업체상세정보
  336. if( grd_bizplcelist.isCell(event.target) && grd_bizplcelist.row >= grd_bizplcelist.fixedRows ){
  337. fGetBizPlceAttr(); // 사업체 정보조회
  338. }
  339. ]]>
  340. </script>
  341. </datagrid>
  342. </group>
  343. <group id="group3" style="left:0px; top:279px; width:510px; height:202px; ">
  344. <caption id="caption11" class="tit_2" style="left:5px; top:10px; width:90px; height:13px; ">사업체정보</caption>
  345. <button id="button39" class="btn3_letter10" style="left:200px; top:1px; width:152px; height:22px; ">
  346. <caption>담당자에게SMS발송</caption>
  347. <script type="javascript" ev:event="DOMActivate">
  348. <![CDATA[
  349. var recvrnm = model.getValue("/root/main/attr/bizplceattr/chrgnm");
  350. var recvrtelno = model.getValue("/root/main/attr/bizplceattr/mpphonno");
  351. cczfSMSTrsmOpen("text","","","",recvrnm,recvrtelno); // SMS메시지 전송(그리드/텍스트구분,그리드명,수신자명col(grid),수신자휴대폰번호col(grid),수신자명(text),수신자휴대폰번호(text))
  352. ]]>
  353. </script>
  354. </button>
  355. <button id="button1" class="btn3_letter10" style="left:355px; top:1px; width:152px; height:22px; ">
  356. <caption>담당자에게Email발송</caption>
  357. <script type="javascript" ev:event="DOMActivate">
  358. <![CDATA[
  359. var emailid = model.getValue("/root/main/attr/bizplceattr/emailid");
  360. var emailtype = model.getValue("/root/main/attr/bizplceattr/emailtype");
  361. if (emailid != "" && emailtype != "") {
  362. var recvremail = emailid + "@" + emailtype
  363. cczfEmailTrsmOpen("text","","",recvremail); // Email 발송
  364. } else {
  365. messageBox("전송할 Email주소가","C002");
  366. }
  367. ]]>
  368. </script>
  369. </button>
  370. <line id="line3" class="line_1" style="x1:0px; y1:23px; x2:510px; y2:23px; "/>
  371. <line id="line4" class="line_2" style="x1:0px; y1:51px; x2:510px; y2:51px; "/>
  372. <caption id="cap_msgmdlcd" class="cell_1" style="left:0px; top:28px; width:105px; height:23px; text-align:center; ">사업장명</caption>
  373. <output id="output1" ref="/root/main/attr/bizplceattr/cmpycd" class="output_fix" maxlength="20" style="left:108px; top:29px; width:144px; height:19px; "/>
  374. <output id="output2" ref="/root/main/attr/bizplceattr/cmpynm" class="output_fix" maxlength="20" style="left:255px; top:29px; width:252px; height:19px; "/>
  375. <line id="line5" class="line_2" style="x1:0px; y1:76px; x2:510px; y2:76px; "/>
  376. <caption id="caption16" class="cell_1" style="left:0px; top:53px; width:105px; height:23px; text-align:center; ">사업자등록번호</caption>
  377. <output id="opt_cmpyid" ref="/root/main/attr/bizplceattr/cmpyid" class="output_fix" maxlength="20" style="left:108px; top:54px; width:144px; height:19px; "/>
  378. <caption id="caption17" class="cell_1" style="left:255px; top:53px; width:105px; height:23px; text-align:center; ">대표자명</caption>
  379. <output id="opt_prsdnm" ref="/root/main/attr/bizplceattr/prsdnm" class="output_fix" maxlength="20" style="left:363px; top:54px; width:144px; height:19px; "/>
  380. <line id="line6" class="line_2" style="x1:0px; y1:101px; x2:510px; y2:101px; "/>
  381. <caption id="caption12" class="cell_1" style="left:0px; top:78px; width:105px; height:23px; text-align:center; ">사업장기호</caption>
  382. <output id="opt_cmpyno" ref="/root/main/attr/bizplceattr/cmpyno" class="output_fix" maxlength="20" style="left:108px; top:79px; width:144px; height:19px; "/>
  383. <line id="line7" class="line_2" style="x1:0px; y1:126px; x2:510px; y2:126px; "/>
  384. <caption id="caption13" class="cell_1" style="left:255px; top:78px; width:105px; height:23px; text-align:center; ">업종</caption>
  385. <output id="opt_biztype" ref="/root/main/attr/bizplceattr/biztype" class="output_fix" maxlength="20" style="left:363px; top:79px; width:144px; height:19px; "/>
  386. <line id="line8" class="line_2" style="x1:0px; y1:151px; x2:510px; y2:151px; "/>
  387. <caption id="caption14" class="cell_1" style="left:0px; top:103px; width:105px; height:23px; text-align:center; ">우편번호</caption>
  388. <output id="opt_zipcd1" ref="/root/main/attr/bizplceattr/zipcd1" class="output_fix" maxlength="20" style="left:108px; top:104px; width:34px; height:19px; "/>
  389. <output id="opt_zipcd2" ref="/root/main/attr/bizplceattr/zipcd2" class="output_fix" maxlength="20" style="left:145px; top:104px; width:34px; height:19px; "/>
  390. <output id="opt_detladdr" ref="/root/main/attr/bizplceattr/detladdr" class="output_fix" maxlength="20" style="left:182px; top:104px; width:325px; height:19px; "/>
  391. <line id="line9" class="line_2" style="x1:0px; y1:176px; x2:510px; y2:176px; "/>
  392. <caption id="caption15" class="cell_1" style="left:0px; top:128px; width:105px; height:23px; text-align:center; ">전화번호</caption>
  393. <output id="opt_telno" ref="/root/main/attr/bizplceattr/telno" class="output_fix" maxlength="20" style="left:108px; top:129px; width:144px; height:19px; "/>
  394. <caption id="caption18" class="cell_1" style="left:0px; top:153px; width:105px; height:23px; text-align:center; ">담당자</caption>
  395. <output id="opt_chgrnm" ref="/root/main/attr/bizplceattr/chrgnm" class="output_fix" maxlength="20" style="left:108px; top:154px; width:144px; height:19px; "/>
  396. <caption id="caption19" class="cell_1" style="left:254px; top:153px; width:105px; height:23px; text-align:center; ">담당자휴대폰</caption>
  397. <output id="opt_mpphonno" ref="/root/main/attr/bizplceattr/mpphonno" class="output_fix" maxlength="20" style="left:363px; top:154px; width:144px; height:19px; "/>
  398. <caption id="caption20" class="cell_1" style="left:0px; top:178px; width:105px; height:23px; text-align:center; ">담당자이메일</caption>
  399. <output id="opt_emailid" ref="/root/main/attr/bizplceattr/emailid" class="output_fix" maxlength="20" style="left:108px; top:179px; width:144px; height:19px; "/>
  400. <caption id="caption29" class="search_no_b" style="left:252px; top:179px; width:15px; height:17px; ">@</caption>
  401. <output id="opt_emailtype" ref="/root/main/attr/bizplceattr/emailtype" class="output_fix" maxlength="20" style="left:267px; top:179px; width:144px; height:19px; "/>
  402. <line id="line12" class="line_3" style="x1:0px; y1:201px; x2:510px; y2:201px; "/>
  403. </group>
  404. <group id="group4" style="left:515px; top:279px; width:680px; height:252px; ">
  405. <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:120px; height:13px; ">건진계약담당자</caption>
  406. <button id="button4" class="btn5_letter5" style="left:602px; top:2px; width:75px; height:19px; ">
  407. <caption>담당자저장</caption>
  408. <script type="javascript" ev:event="DOMActivate">
  409. <![CDATA[
  410. if( grd_bizplcelist.isCell(event.target) && grd_bizplcelist.row >= grd_bizplcelist.fixedRows ){
  411. fSavePerChgr(grd_perchgrinfo);
  412. } else {
  413. messageBox("선택된 사업장이 없어 담당자 저장을 할 수","I004");
  414. }
  415. ]]>
  416. </script>
  417. </button>
  418. <line id="line16" class="line_1" style="x1:0px; y1:23px; x2:680px; y2:23px; "/>
  419. <line id="line10" class="line_2" style="x1:0px; y1:151px; x2:680px; y2:151px; "/>
  420. <caption id="caption7" class="cell_1" style="left:0px; top:28px; width:105px; height:123spx; text-align:center; ">담당자정보</caption>
  421. <datagrid id="grd_perchgrinfo" nodeset="/root/main/list/perchgrlist" caption="^부서명^부서코드^담당자^담당자ID^이메일^사용여부" colwidth="0, 120, 80, 70, 80, 125, 50" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" tooltip="true" style="left:108px; top:29px; width:569px; height:95px; ">
  422. <col ref="seqno" visibility="hidden"/>
  423. <col ref="reqdeptnm"/>
  424. <col ref="reqdeptcd"/>
  425. <col ref="reqempnm"/>
  426. <col ref="reqempid"/>
  427. <col ref="email" type="input"/>
  428. <col ref="useyn" type="combo">
  429. <choices>
  430. <item>
  431. <label>Y</label>
  432. <value>Y</value>
  433. </item>
  434. <item>
  435. <label>N</label>
  436. <value>N</value>
  437. </item>
  438. </choices>
  439. </col>
  440. </datagrid>
  441. <output id="opt_reqdeptnm" ref="/root/temp/perchgr/reqdeptnm" class="output_fix" appearance="output" style="left:108px; top:129px; width:110px; height:19px; "/>
  442. <output id="opt_reqdeptcd" ref="/root/temp/perchgr/reqdeptcd" class="output_fix" appearance="output" style="left:221px; top:129px; width:110px; height:19px; "/>
  443. <button id="button2" class="icon_search" style="left:334px; top:130px; width:16px; height:16px; ">
  444. <caption/>
  445. <script type="javascript" ev:event="DOMActivate">
  446. <![CDATA[
  447. if ( model.getValue("/root/temp/perchgr/reqempid") != "" ){
  448. var search_condition = "empid";
  449. var search_term = model.getValue("/root/temp/perchgr/reqempid");
  450. } else if ( model.getValue("/root/temp/perchgr/reqdeptcd") != "" ){
  451. var search_condition = "deptcd";
  452. var search_term = model.getValue("/root/temp/perchgr/reqdeptcd");
  453. } else {
  454. var search_condition = "empid";
  455. var search_term = model.getValue("/root/temp/perchgr/reqempid");
  456. }
  457. var receive_empid_path = "/root/temp/perchgr/reqempid";
  458. var receive_empnm_path = "/root/temp/perchgr/reqempnm";
  459. var receive_deptcd_path = "/root/temp/perchgr/reqdeptcd";
  460. var receive_deptnm_path = "/root/temp/perchgr/reqdeptnm";
  461. setParameter("search_condition", search_condition);
  462. setParameter("search_term", search_term);
  463. setParameter("receive_empid_path", receive_empid_path);
  464. setParameter("receive_empnm_path", receive_empnm_path);
  465. setParameter("receive_deptcd_path", receive_deptcd_path);
  466. setParameter("receive_deptnm_path", receive_deptnm_path);
  467. modal("SPCCM00400")
  468. clearParameter("search_condition");
  469. clearParameter("search_term");
  470. clearParameter("receive_empid_path");
  471. clearParameter("receive_empnm_path");
  472. clearParameter("receive_deptcd_path");
  473. clearParameter("receive_deptnm_path");
  474. ]]>
  475. </script>
  476. </button>
  477. <output id="opt_reqempnm" ref="/root/temp/perchgr/reqempnm" class="output_fix" appearance="output" style="left:353px; top:129px; width:110px; height:19px; "/>
  478. <output id="opt_reqempid" ref="/root/temp/perchgr/reqempid" class="output_fix" appearance="output" style="left:466px; top:129px; width:110px; height:19px; "/>
  479. <button id="button5" class="btn2_letter2" style="left:579px; top:129px; width:42px; height:19px; ">
  480. <caption>추가</caption>
  481. <script type="javascript" ev:event="DOMActivate">
  482. <![CDATA[
  483. // 검색한 담당자정보를 그리드에 넣어준다.
  484. var reqdeptnm = model.getValue("/root/temp/perchgr/reqdeptnm");
  485. var reqdeptcd = model.getValue("/root/temp/perchgr/reqdeptcd");
  486. var reqempnm = model.getValue("/root/temp/perchgr/reqempnm");
  487. var reqempid = model.getValue("/root/temp/perchgr/reqempid");
  488. if (reqdeptnm != "" && reqdeptcd != "" && reqempnm != "" && reqempid != "") {
  489. grd_perchgrinfo.additem();
  490. model.copyNode("/root/main/list/perchgrlist[" + grd_perchgrinfo.row + " ]", "/root/temp/perchgr");
  491. model.resetInstanceNode("/root/temp/perchgr");
  492. model.refresh();
  493. } else {
  494. messageBox("담당자를 ","C002");
  495. }
  496. ]]>
  497. </script>
  498. </button>
  499. <button id="button6" class="btn2_letter2" style="left:624px; top:129px; width:42px; height:19px; ">
  500. <caption>삭제</caption>
  501. <script type="javascript" ev:event="DOMActivate">
  502. <![CDATA[
  503. // 선택한 진료과,진료의(내원)그리드를 삭제한다.
  504. var cur_row = grd_perchgrinfo.row; // 행 번호 가져오기
  505. //grd_perchgrinfo.deleteRow(grd_perchgrinfo.row);
  506. //grd_perchgrinfo.refresh();
  507. grd_perchgrinfo.addStatus(cur_row, "delete");
  508. ]]>
  509. </script>
  510. </button>
  511. <line id="line11" class="line_2" style="x1:0px; y1:176spx; x2:680px; y2:176px; "/>
  512. <caption id="cap_emailtitl" class="cell_1" style="left:0px; top:153px; width:105px; height:23px; text-align:center; ">Email설정</caption>
  513. <input id="ipt_emailtitl" ref="/root/main/attr/perchgremail/emailtitl" disabled="true" style="left:108px; top:154px; width:400px; height:19px; "/>
  514. <input id="ipt_emailsmlcd" ref="/root/main/attr/perchgremail/emailmsgsmlcd" maxlength="10" style="left:511px; top:154px; width:79px; height:19px; ">
  515. <script type="javascript" ev:event="onkeyup">
  516. <![CDATA[
  517. inputEnterKey("btn_emailsrch", "DOMActivate");
  518. ]]>
  519. </script>
  520. </input>
  521. <input id="ipt_emailmdlcd" ref="/root/main/attr/perchgremail/emailmsgmdlcd" visibility="hidden" style="left:530px; top:154px; width:40px; height:19px; "/>
  522. <input id="ipt_emaillrgcd" ref="/root/main/attr/perchgremail/emailmsglrgcd" visibility="hidden" style="left:550px; top:154px; width:40px; height:19px; "/>
  523. <button id="btn_emailsrch" class="icon_search" style="left:595px; top:154px; width:16px; height:16px; ">
  524. <caption/>
  525. <script type="javascript" ev:event="DOMActivate">
  526. <![CDATA[
  527. var search_condition = "E";
  528. var search_term = model.getValue("/root/main/attr/perchgremail/emailmsgsmlcd");
  529. var receive_msgsmlcd_path = "/root/main/attr/perchgremail/emailmsgsmlcd";
  530. var receive_msgmdlcd_path = "/root/main/attr/perchgremail/emailmsgmdlcd";
  531. var receive_msglrgcd_path = "/root/main/attr/perchgremail/emailmsglrgcd";
  532. var receive_emailtitl_path = "/root/main/attr/perchgremail/emailtitl";
  533. cczfOpenSelectMsg(search_condition, search_term, receive_msgsmlcd_path, receive_msgmdlcd_path, receive_msglrgcd_path, "", receive_emailtitl_path);
  534. ]]>
  535. </script>
  536. </button>
  537. <caption id="cap_delivedd" class="cell_1" style="left:0px; top:178px; width:105px; height:23px; text-align:center; ">발송일</caption>
  538. <select1 id="cmb_delivedd" ref="/root/main/attr/perchgremail/delivedd" class="combo_default" appearance="minimal" style="left:108px; top:179px; width:150px; height:19px; ">
  539. <choices>
  540. <item>
  541. <label>당일</label>
  542. <value>0</value>
  543. </item>
  544. <item>
  545. <label>하루전</label>
  546. <value>1</value>
  547. </item>
  548. <item>
  549. <label>이틀전</label>
  550. <value>2</value>
  551. </item>
  552. </choices>
  553. </select1>
  554. <input id="ipt_delivetm" ref="/root/main/attr/perchgremail/delivetm" class="input_essential" navindex="1" format="hh:nn" style="left:261px; top:179px; width:120px; height:19px; "/>
  555. <script type="javascript" ev:event="DOMFocusOut">
  556. <![CDATA[
  557. var check_tm = model.getValue("/root/main/attr/perchgremail/delivetm");
  558. if (check_tm != "" && !isValidDateTime(check_tm,"hhmm")) {
  559. messageBox("시간이 바르게 입력되지","E007");
  560. model.resetInstanceNode("/root/main/attr/perchgremail/delivetm");
  561. model.refresh();
  562. model.setFocus("ipt_delivetm");
  563. }
  564. ]]>
  565. </script>
  566. <caption id="caption23" style="left:384px; top:179px; width:80px; height:17px; ">에 발송</caption>
  567. <line id="line17" class="line_3" style="x1:0px; y1:201px; x2:680px; y2:201px; "/>
  568. </group>
  569. <group id="group5" style="left:0px; top:481px; width:1195px; height:299px; ">
  570. <caption id="caption56" class="tit_2" style="left:5px; top:10px; width:150px; height:13px; ">계약 목록</caption>
  571. <caption id="caption57" style="left:1022px; top:27px; width:40px; height:17px; ">전체 :</caption>
  572. <output id="opt_concount" ref="/root/main/countnode/concount" appearance="output" style="left:1062px; top:26px; width:30px; height:17px; text-align:right; "/>
  573. <caption id="caption58" style="left:1095px; top:27px; width:30px; height:17px; ">건</caption>
  574. <button id="button8" class="btn2_letter4" style="left:1128px; top:25px; width:64px; height:19px; ">
  575. <caption>엑셀저장</caption>
  576. <script type="javascript" ev:event="DOMActivate">
  577. <![CDATA[
  578. var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  579. if (fileName != "")
  580. {
  581. grd_bizplcelist.saveExcel(fileName, "SheetName", true, true, "", "", true);
  582. }
  583. ]]>
  584. </script>
  585. </button>
  586. <line id="line22" class="line_1" style="x1:0px; y1:51px; x2:1195px; y2:51px; "/>
  587. <datagrid id="grd_coninfolst" nodeset="/root/main/list/conlist" caption="계약일자^건진기간^건진기간^계약종류^건진금액^건진금액^확정금액^확정금액^청구방법^담당자명^담당자전화^선택검사^추가검사|계약일자^From^To^계약종류^남^여^남^여^청구방법^담당자명^담당자전화^선택검사^추가검사" colsep="^" colwidth="100, 70, 70, 100, 85, 85, 85, 85, 100, 100, 110, 90, 65" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:56px; width:1195px; height:243px; ">
  588. <col ref="condd" format="yyyy-mm-dd"/>
  589. <col ref="confromdd" format="yyyy-mm-dd"/>
  590. <col ref="contodd" format="yyyy-mm-dd"/>
  591. <col disabled="true" ref="contype" type="combo">
  592. <choices>
  593. <itemset nodeset="/root/init/baseinfo/contypelst/A0113">
  594. <label ref="cdnm"/>
  595. <value ref="cdid"/>
  596. </itemset>
  597. </choices>
  598. </col>
  599. <col ref="mantotamt" format="#,###"/>
  600. <col ref="womtotamt" format="#,###"/>
  601. <col ref="mancnfmamt" format="#,###"/>
  602. <col ref="womcnfmamt" format="#,###"/>
  603. <col disabled="true" ref="uncocd" type="combo"/>
  604. <col ref="chrgnm"/>
  605. <col ref="chrgtelno"/>
  606. <col checkvalue="Y,N" disabled="true" ref="choitestyn" type="checkbox"/>
  607. <col checkvalue="Y,N" disabled="true" ref="addtestyn" type="checkbox"/>
  608. </datagrid>
  609. </group>
  610. </xhtml:body>
  611. </xhtml:html>