SMZSU10200_사용자마스터관리.xrw 68 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
  4. <xhtml:head>
  5. <xhtml:title>전기관사용자마스터관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <list>
  11. <userlist/>
  12. </list>
  13. <search>
  14. <searchcondition/>
  15. <searchterm/>
  16. <posinstcd/>
  17. <posdeptcd/>
  18. <posdeptnm/>
  19. <dutinstcd/>
  20. <dutunitcd/>
  21. <dutunitnm/>
  22. <dutplceinstcd/>
  23. <dutplcecd/>
  24. <dutplcenm/>
  25. <psnworkyn/>
  26. <operation/>
  27. <retrived/>
  28. </search>
  29. <item>
  30. <label/>
  31. <process/>
  32. <userkindcd/>
  33. <userid/>
  34. <usernm/>
  35. <orginstcd/>
  36. <orgdeptnm/>
  37. <orgdeptcd/>
  38. <orgdeptnm/>
  39. <grupjoblncd/>
  40. <posinstnm/>
  41. <posinstcd/>
  42. <posdeptnm/>
  43. <posdeptcd/>
  44. <dutinstcd/>
  45. <dutinstnm/>
  46. <dutplceinstnm/>
  47. <dutplceinstcd/>
  48. <dutunitcd/>
  49. <dutunitnm/>
  50. <dutplcenm/>
  51. <dutplcecd/>
  52. <fromdd/>
  53. <todd/>
  54. <licnsno/>
  55. <specordyn/>
  56. <majorfild/>
  57. <jobkindcd/>
  58. <jobposcd/>
  59. <jobrespcd/>
  60. <prfshipflagcd/>
  61. <psnworkyn/>
  62. <apntflag/>
  63. <tempyn/>
  64. <lastupdtrid/>
  65. <lastupdtdt/>
  66. <rem/>
  67. <status/>
  68. <rrgstno/>
  69. <email/>
  70. <mpphonno/>
  71. <entcodd/>
  72. <pdano/>
  73. <pwd/>
  74. <anouserid/>
  75. <medispclno/>
  76. <minfromdd/>
  77. <maxtodd/>
  78. <grupjoblncd/>
  79. <userengnm/>
  80. <maindutplceflag/>
  81. <psnworkchk/>
  82. </item>
  83. </main>
  84. <init>
  85. <comcd>
  86. <userkindlist/>
  87. <jobkindlist/>
  88. <jobposlist/>
  89. <jobresplist>
  90. <R0063>
  91. <cdid>-</cdid>
  92. <cdnm>없음</cdnm>
  93. </R0063>
  94. </jobresplist>
  95. <grupjoblnlist/>
  96. <prfshiplist/>
  97. <apntlist/>
  98. <instlist>
  99. <Z0007>
  100. <cdid>-</cdid>
  101. <cdnm>전체</cdnm>
  102. </Z0007>
  103. </instlist>
  104. <tempyn>
  105. <lable>임시</lable>
  106. <value>Y</value>
  107. </tempyn>
  108. <tempyn>
  109. <lable>정규</lable>
  110. <value>N</value>
  111. </tempyn>
  112. <psnwork>
  113. <lable>전체</lable>
  114. <value>-</value>
  115. </psnwork>
  116. <psnwork>
  117. <lable>Y</lable>
  118. <value>Y</value>
  119. </psnwork>
  120. <psnwork>
  121. <lable>N</lable>
  122. <value>N</value>
  123. </psnwork>
  124. <specord>
  125. <lable>Y</lable>
  126. <value>Y</value>
  127. </specord>
  128. <specord>
  129. <lable>N</lable>
  130. <value>N</value>
  131. </specord>
  132. <searchconditionlist>
  133. <cdid>userid</cdid>
  134. <cdnm>사용자ID</cdnm>
  135. </searchconditionlist>
  136. <searchconditionlist>
  137. <cdid>usernm</cdid>
  138. <cdnm>사용자명</cdnm>
  139. </searchconditionlist>
  140. <searchconditionlist>
  141. <cdid>rrgstno</cdid>
  142. <cdnm>주민등록번호</cdnm>
  143. </searchconditionlist>
  144. </comcd>
  145. <resultref/>
  146. </init>
  147. <send>
  148. <searchcondition/>
  149. <searchterm/>
  150. <userkindcd/>
  151. <userid/>
  152. <usernm/>
  153. <orginstnm/>
  154. <orginstcd/>
  155. <orgdeptnm/>
  156. <orgdeptcd/>
  157. <posinstnm/>
  158. <posinstcd/>
  159. <posdeptnm/>
  160. <posdeptcd/>
  161. <dutinstnm/>
  162. <dutinstcd/>
  163. <dutplceinstnm/>
  164. <dutplceinstcd/>
  165. <dutunitcd/>
  166. <dutunitnm/>
  167. <dutplcenm/>
  168. <dutplcecd/>
  169. <fromdd/>
  170. <todd/>
  171. <licnsno/>
  172. <specordyn/>
  173. <majorfild/>
  174. <jobkindnm/>
  175. <jobkindcd/>
  176. <jobposnm/>
  177. <jobposcd/>
  178. <jobrespnm/>
  179. <jobrespcd/>
  180. <prfshipflagnm/>
  181. <prfshipflagcd/>
  182. <psnworkyn/>
  183. <apntflag/>
  184. <tempyn/>
  185. <lastupdtrid/>
  186. <lastupdtdt/>
  187. <rem/>
  188. <status/>
  189. <rrgstno/>
  190. <email/>
  191. <mpphonno/>
  192. <entcodd/>
  193. <pdano/>
  194. <pwd/>
  195. <anouserid/>
  196. <medispclno/>
  197. <item/>
  198. <grupjoblncd/>
  199. <userengnm/>
  200. <maindutplceflag/>
  201. </send>
  202. <hidden/>
  203. </root>
  204. </instance>
  205. <script type="javascript" ev:event="xforms-ready">
  206. <![CDATA[
  207. fInitialize();
  208. ipt_pwd.disabled = "true";
  209. ]]>
  210. </script>
  211. <submission id="TRZBC00101" method="post" replace="instance"/>
  212. <submission id="TXZSU10102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  213. <submission id="TRZSU10107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  214. <submission id="TXZSU10106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
  215. <submission id="TRZSU10110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
  216. <submission id="TXZSU10107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  217. <submission id="TXZSU10109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/item/message"/>
  218. <submission id="TXZSU10110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/item/message"/>
  219. <submission id="TXZSU10108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/item/message"/>
  220. <submission id="TXZSU10111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/item/message"/>
  221. <submission id="TXZSU10112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/item/message"/>
  222. <submission id="TXZSU10113" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
  223. </model>
  224. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  225. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  226. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  227. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  228. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
  229. <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU002.js"/>
  230. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  231. </xhtml:head>
  232. <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  233. <group id="grp_tle" style="left:0px; top:0px; width:1194px; height:13px; ">
  234. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">사용자마스터관리</caption>
  235. </group>
  236. <group id="grp_biz" scroll="auto" style="left:0px; top:36px; width:1195px; height:744px; ">
  237. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:100px; vertical-align:top; ">
  238. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:80px; background-color:#fffbf2; border-color:#ffd799; "/>
  239. <line id="line13" style="x1:1105px; y1:8px; x2:1105px; y2:74px; border-color:#ffe4bb; border-left-style:solid; "/>
  240. <caption id="caption33" class="search_name" style="left:5px; top:7px; width:96px; height:17px; ">검색조건 :</caption>
  241. <input id="ipt_searchterm" ref="/root/main/search/searchterm" class="input_s_essential" navindex="2" imemode="hangul" style="left:194px; top:7px; width:130px; height:19px; ">
  242. <script type="javascript" ev:event="onkeyup">
  243. <![CDATA[
  244. inputEnterKey("btn_search", "DOMActivate");
  245. ]]>
  246. </script>
  247. </input>
  248. <select1 id="radio2" ref="/root/main/search/operation" class="s" navindex="13" appearance="full" cols="2" overflow="visible" style="left:888px; top:52px; width:210px; height:20px; border-style:none; ">
  249. <choices>
  250. <item>
  251. <label>사용자기본정보</label>
  252. <value>userb</value>
  253. </item>
  254. <item>
  255. <label>사용자부서정보</label>
  256. <value>userd</value>
  257. </item>
  258. </choices>
  259. <script type="javascript" ev:event="xforms-value-changed">
  260. <![CDATA[
  261. model.setValue("/root/main/item/process", "");
  262. var operation = model.getValue("/root/main/search/operation");
  263. if(operation=="userb"){
  264. btn_dutplceref_create.disabled = "true";
  265. }else if(operation=="userd"){
  266. btn_dutplceref_create.disabled = "false";
  267. }
  268. model.removeNodeset("/root/main/list/userlist");
  269. model.refresh();
  270. fChangeSearchControl(operation);
  271. ]]>
  272. </script>
  273. </select1>
  274. <select1 id="cmb_psnworkyn_condition" ref="/root/main/search/psnworkyn" class="combo_default" navindex="12" appearance="minimal" style="left:777px; top:52px; width:87px; height:19px; ">
  275. <choices>
  276. <itemset nodeset="/root/init/comcd/psnwork">
  277. <label ref="lable"/>
  278. <value ref="value"/>
  279. </itemset>
  280. </choices>
  281. </select1>
  282. <button id="btn_search" class="btn1_letter2" style="left:1123px; top:32px; width:56px; height:22px; ">
  283. <caption>조회</caption>
  284. <script type="javascript" ev:event="DOMActivate">
  285. <![CDATA[
  286. var dutinstcd = getUserInfo("dutinstcd");
  287. var operation = model.getValue("/root/main/search/operation");
  288. var search_condition = model.getValue("/root/main/search/searchcondition");
  289. var search_term = model.getValue("/root/main/search/searchterm");
  290. if(search_term == ""){
  291. search_term = '%' + search_term;
  292. }
  293. var posinstcd = model.getValue("/root/main/search/posinstcd");
  294. var posdeptcd = model.getValue("/root/main/search/posdeptcd");
  295. var dutinstcd = model.getValue("/root/main/search/dutinstcd");
  296. var dutunitcd = model.getValue("/root/main/search/dutunitcd");
  297. var dutplceinstcd = model.getValue("/root/main/search/dutplceinstcd");
  298. var dutplcecd = model.getValue("/root/main/search/dutplcecd");
  299. var psnworkyn = model.getValue("/root/main/search/psnworkyn");
  300. model.resetInstanceNode("/root/send");
  301. model.setValue("/root/send/searchcondition", search_condition);
  302. model.setValue("/root/send/searchterm", search_term);
  303. model.setValue("/root/send/posinstcd", posinstcd);
  304. model.setValue("/root/send/posdeptcd", posdeptcd);
  305. model.setValue("/root/send/dutinstcd", dutinstcd);
  306. model.setValue("/root/send/dutunitcd", dutunitcd);
  307. var success = null;
  308. if(operation=="userb"){
  309. success = fValidateSearchUserInfo();
  310. if(!success){
  311. messageBox("사용자 기본정보 조회시 검색어를 한자이상 입력하거나,\n소속기관과 소속부서 또는 근무기관과 근무부서를 선택","I008");
  312. return;
  313. }
  314. success = submit("TRZSU10110");
  315. if(success){
  316. model.setValue("/root/main/search/retrived", "true");
  317. fInitializeProcessValue();
  318. fDisableProcessControl("true");
  319. }else{
  320. model.setValue("/root/main/search/retrived", "false");
  321. }
  322. }else if(operation=="userd"){
  323. success = fValidateSearchUserDeptInfo();
  324. if(!success){
  325. messageBox("사용자 부서정보 조회시 검색어를 한자이상 입력하거나,\n소속기관과 소속부서, 근무기관과 근무부서, 근무지기관과 근무지 중 하나를 선택.","I008");
  326. return;
  327. }
  328. model.setValue("/root/send/dutplceinstcd", dutplceinstcd);
  329. model.setValue("/root/send/dutplcecd", dutplcecd);
  330. model.setValue("/root/send/psnworkyn", psnworkyn);
  331. var success = submit("TRZSU10107");
  332. if(success){
  333. //==========================================================================
  334. //20100503 진상찬 (수정)
  335. //사용자기본정보만 있고, 사용자부서정보가 없면
  336. //사용자부서추가시 사용자기본정보를 조회하여 가상이력을 만들어 준다.
  337. //만들어진 가상이력을 선택하여 근무부서를 추가할수 있도록 수정
  338. var select_size = instance1.selectNodes("/root/main/list/userlist");
  339. if(select_size.length < 1)
  340. {
  341. success = submit("TRZSU10110");
  342. if(success){
  343. model.setValue("/root/main/search/retrived", "true");
  344. fInitializeProcessValue();
  345. fDisableProcessControl("true");
  346. }else{
  347. model.setValue("/root/main/search/retrived", "false");
  348. }
  349. }
  350. //==========================================================================
  351. model.setValue("/root/main/search/retrived", "true");
  352. fInitializeProcessValue();
  353. fDisableProcessControl("true");
  354. }else{
  355. model.setValue("/root/main/search/retrived", "false");
  356. }
  357. }
  358. model.refresh();
  359. ]]>
  360. </script>
  361. </button>
  362. <caption id="caption47" class="search_name" style="left:658px; top:52px; width:112px; height:17px; ">인사연동유형 :</caption>
  363. <select1 id="cmb_searchcondition" ref="/root/main/search/searchcondition" class="combo_default" navindex="1" appearance="minimal" style="left:105px; top:7px; width:87px; height:19px; ">
  364. <choices>
  365. <itemset nodeset="/root/init/comcd/searchconditionlist">
  366. <label ref="cdnm"/>
  367. <value ref="cdid"/>
  368. </itemset>
  369. </choices>
  370. </select1>
  371. <select1 id="cmb_posinstcd_condition" ref="/root/main/search/posinstcd" class="combo_default" navindex="3" appearance="minimal" style="left:434px; top:7px; width:191px; height:19px; ">
  372. <choices>
  373. <itemset nodeset="/root/init/comcd/instlist/Z0007">
  374. <label ref="cdnm"/>
  375. <value ref="cdid"/>
  376. </itemset>
  377. </choices>
  378. <script type="javascript" ev:event="xforms-value-changed">
  379. <![CDATA[
  380. model.setValue("/root/main/search/posdeptcd", "");
  381. model.setValue("/root/main/search/posdeptnm", "");
  382. model.refresh();
  383. ]]>
  384. </script>
  385. </select1>
  386. <caption id="caption1" class="search_name" style="left:342px; top:7px; width:99px; height:17px; ">소속기관 :</caption>
  387. <caption id="caption2" class="search_name" style="left:658px; top:7px; width:99px; height:17px; ">소속부서 :</caption>
  388. <caption id="caption46" class="search_name" style="left:5px; top:29px; width:101px; height:17px; ">근무기관 :</caption>
  389. <caption id="caption48" class="search_name" style="left:342px; top:29px; width:99px; height:17px; ">근무부서 :</caption>
  390. <select1 id="cmb_dutinstcd_condition" ref="/root/main/search/dutinstcd" class="combo_default" navindex="6" appearance="minimal" style="left:105px; top:29px; width:220px; height:19px; ">
  391. <choices>
  392. <itemset nodeset="/root/init/comcd/instlist/Z0007">
  393. <label ref="cdnm"/>
  394. <value ref="cdid"/>
  395. </itemset>
  396. </choices>
  397. <script type="javascript" ev:event="xforms-value-changed">
  398. <![CDATA[
  399. model.setValue("/root/main/search/dutunitcd", "");
  400. model.setValue("/root/main/search/dutunitnm", "");
  401. model.refresh();
  402. ]]>
  403. </script>
  404. </select1>
  405. <select1 id="cmb_dutplceinstcd_condition" ref="/root/main/search/dutplceinstcd" class="combo_default" navindex="9" appearance="minimal" style="left:105px; top:52px; width:220px; height:19px; ">
  406. <choices>
  407. <itemset nodeset="/root/init/comcd/instlist/Z0007">
  408. <label ref="cdnm"/>
  409. <value ref="cdid"/>
  410. </itemset>
  411. </choices>
  412. <script type="javascript" ev:event="xforms-value-changed">
  413. <![CDATA[
  414. model.setValue("/root/main/search/dutplcecd", "");
  415. model.setValue("/root/main/search/dutplcenm", "");
  416. model.refresh();
  417. ]]>
  418. </script>
  419. </select1>
  420. <caption id="caption49" class="search_name" style="left:5px; top:52px; width:99px; height:17px; ">근무지기관 :</caption>
  421. <caption id="caption50" class="search_name" style="left:342px; top:52px; width:99px; height:17px; ">근무지 :</caption>
  422. <input id="ipt_posdeptcd_condition" ref="/root/main/search/posdeptnm" class="input_s_essential" navindex="4" editable="false" style="left:750px; top:7px; width:185px; height:19px; ">
  423. <script type="javascript" ev:event="onkeypress">
  424. <![CDATA[
  425. if("13" == event.keyCode){
  426. btn_search_posdeptcd.dispatch("DOMActivate");
  427. }
  428. ]]>
  429. </script>
  430. </input>
  431. <button id="btn_search_posdeptcd" class="icon_search" navindex="5" style="left:939px; top:7px; width:16px; height:16px; ">
  432. <script type="javascript" ev:event="DOMActivate">
  433. <![CDATA[
  434. var posinstcd = model.getValue("/root/main/search/posinstcd");
  435. if(posinstcd!='-'){
  436. zbcfOpenAssignedInstDeptCodeList(posinstcd, "deptnm","", "/root/main/search/posdeptcd", "/root/main/search/posdeptnm", null, null, new Array("deptcd", "depthngnm"));
  437. }else{
  438. messageBox("소속기관을 먼저 선택", "I008");
  439. }
  440. ]]>
  441. </script>
  442. <caption/>
  443. </button>
  444. <input id="ipt_dutunitcd_condition" ref="/root/main/search/dutunitnm" class="input_s_essential" navindex="7" editable="false" style="left:435px; top:29px; width:190px; height:19px; ">
  445. <script type="javascript" ev:event="onkeypress">
  446. <![CDATA[
  447. if("13" == event.keyCode){
  448. btn_search_dutunitcd.dispatch("DOMActivate");
  449. }
  450. ]]>
  451. </script>
  452. </input>
  453. <button id="btn_search_dutunitcd" class="icon_search" navindex="8" style="left:629px; top:29px; width:16px; height:16px; ">
  454. <script type="javascript" ev:event="DOMActivate">
  455. <![CDATA[
  456. var dutinstcd = model.getValue("/root/main/search/dutinstcd");
  457. if(dutinstcd!='-'){
  458. zbcfOpenAssignedInstDeptCodeList(dutinstcd, "deptnm","", "/root/main/search/dutunitcd", "/root/main/search/dutunitnm", null, null, new Array("deptcd", "depthngnm"));
  459. }else{
  460. messageBox("근무기관을 먼저 선택", "I008");
  461. return;
  462. }
  463. ]]>
  464. </script>
  465. <caption/>
  466. </button>
  467. <button id="btn_search_dutplcecd" class="icon_search" navindex="11" style="left:629px; top:52px; width:16px; height:16px; ">
  468. <script type="javascript" ev:event="DOMActivate">
  469. <![CDATA[
  470. var dutplceinstcd = model.getValue("/root/main/search/dutplceinstcd");
  471. if(dutplceinstcd!='-'){
  472. zbcfOpenAssignedInstDeptCodeList(dutplceinstcd, "deptnm","", "/root/main/search/dutplcecd", "/root/main/search/dutplcenm", null, null, new Array("deptcd", "depthngnm"));
  473. }else{
  474. messageBox("근무지기관을 먼저 선택", "I008");
  475. return;
  476. }
  477. ]]>
  478. </script>
  479. <caption/>
  480. </button>
  481. <input id="ipt_dutplcecd_condition" ref="/root/main/search/dutplcenm" class="input_s_essential" navindex="10" editable="false" style="left:435px; top:52px; width:190px; height:19px; ">
  482. <script type="javascript" ev:event="onkeypress">
  483. <![CDATA[
  484. if("13" == event.keyCode){
  485. btn_search_dutplcecd.dispatch("DOMActivate");
  486. }
  487. ]]>
  488. </script>
  489. </input>
  490. </group>
  491. <line id="line12" class="line_1" style="x1:0px; y1:563px; x2:1194px; y2:563px; "/>
  492. <caption id="cap_item_title" ref="/root/main/item/label" class="tit_2" style="left:0px; top:545px; width:510px; height:13px; "/>
  493. <line id="line1" class="line_1" style="x1:0px; y1:113px; x2:1194px; y2:113px; "/>
  494. <caption id="caption11" class="cell_1" style="left:0px; top:664px; width:105px; height:23px; vertical-align:middle; ">선택진료여부</caption>
  495. <caption id="caption12" class="cell_1" style="left:477px; top:616px; width:100px; height:23px; vertical-align:middle; ">근무기관(*)</caption>
  496. <caption id="caption7" class="cell_1" style="left:0px; top:568px; width:105px; height:23px; vertical-align:middle; ">사용자ID</caption>
  497. <caption id="caption8" class="cell_1" style="left:0px; top:712px; width:105px; height:23px; vertical-align:middle; ">사용자명(*)</caption>
  498. <caption id="caption9" class="cell_1" style="left:240px; top:592px; width:100px; height:23px; vertical-align:middle; ">적용시작일자</caption>
  499. <caption id="caption3" class="cell_1" style="left:240px; top:616px; width:100px; height:23px; vertical-align:middle; ">적용종료일자</caption>
  500. <line id="line9" class="line_3" style="x1:0px; y1:530px; x2:1194px; y2:530px; "/>
  501. <line id="line2" class="line_3" style="x1:0px; y1:567px; x2:1194px; y2:567px; "/>
  502. <caption id="caption13" class="cell_1" style="left:0px; top:616px; width:105px; height:23px; vertical-align:middle; ">의사면허번호</caption>
  503. <caption id="caption16" class="cell_1" style="left:715px; top:592px; width:100px; height:23px; vertical-align:middle; ">직위</caption>
  504. <caption id="caption20" class="cell_1" style="left:715px; top:568px; width:100px; height:23px; vertical-align:middle; ">직종</caption>
  505. <input id="ipt_userid" ref="/root/main/item/userid" class="input_essential" navindex="18" editable="true" appearance="output" style="left:106px; top:569px; width:114px; height:19px; "/>
  506. <input id="ipt_usernm" ref="/root/main/item/usernm" class="input_essential" navindex="25" appearance="output" style="left:106px; top:713px; width:132px; height:19px; "/>
  507. <input id="ipt_fromdd" ref="/root/main/item/fromdd" class="input_essential" navindex="27" inputtype="date" style="left:343px; top:593px; width:132px; height:19px; ">
  508. <script type="javascript" ev:event="onbuttonclick">
  509. <![CDATA[
  510. ipt_fromdd.attribute("_value") = ipt_fromdd.value;
  511. ]]>
  512. </script>
  513. <script type="javascript" ev:event="xforms-value-changed">
  514. <![CDATA[
  515. var fromdd = model.getValue("/root/main/item/fromdd");
  516. var todd = model.getValue("/root/main/item/todd");
  517. if(todd==""){
  518. return;
  519. }
  520. if(fromdd>todd){
  521. model.setValue("/root/main/item/fromdd", ipt_fromdd.attribute("_value"));
  522. model.refresh();
  523. }
  524. ]]>
  525. </script>
  526. </input>
  527. <select1 id="cmb_specord" ref="/root/main/item/specordyn" class="combo_default" navindex="23" appearance="minimal" style="left:106px; top:665px; width:132px; height:19px; ">
  528. <choices>
  529. <itemset nodeset="/root/init/comcd/specord">
  530. <label ref="lable"/>
  531. <value ref="value"/>
  532. </itemset>
  533. </choices>
  534. </select1>
  535. <input id="ipt_todd" ref="/root/main/item/todd" class="input_essential" navindex="28" inputtype="date" style="left:343px; top:617px; width:132px; height:19px; ">
  536. <script type="javascript" ev:event="onbuttonclick">
  537. <![CDATA[
  538. ipt_todd.attribute("_value") = ipt_todd.value;
  539. ]]>
  540. </script>
  541. <script type="javascript" ev:event="xforms-value-changed">
  542. <![CDATA[
  543. var fromdd = model.getValue("/root/main/item/fromdd");
  544. var todd = model.getValue("/root/main/item/todd");
  545. if(todd==""){
  546. messageBox("적용시작일자는","I003");
  547. model.setFocus("ipt_fromdd");
  548. return;
  549. }else if(fromdd>todd){
  550. model.setValue("/root/main/item/todd", ipt_todd.attribute("_value"));
  551. model.refresh();
  552. }
  553. ]]>
  554. </script>
  555. </input>
  556. <caption id="caption17" class="tit_2" style="left:0px; top:95px; width:160px; height:14px; ">전기관사용자정보</caption>
  557. <button id="btn_search_userid" class="icon_search" navindex="19" style="left:223px; top:569px; width:16px; height:16px; ">
  558. <script type="javascript" ev:event="DOMActivate">
  559. <![CDATA[
  560. var search_condition = "userid";
  561. var dutinstcd = getUserInfo("dutinstcd");
  562. var search_term = model.getValue("/root/main/item/userid");
  563. var userfromdd = model.getValue("/root/main/item/userfromdd");
  564. var usertodd = model.getValue("/root/main/item/usertodd");
  565. var resultref = "/root/init/resultref";
  566. zsufOpenUserInfoList(search_condition, search_term, userfromdd, usertodd, resultref);
  567. var resultref_value = model.getValue(resultref);
  568. if(resultref_value!=null&&resultref_value!=""){
  569. var result_array = resultref_value.split("|");
  570. var fromdd = result_array[0];
  571. var todd = result_array[1];
  572. var userid = result_array[2];
  573. var usernm = result_array[3];
  574. var orginstnm = result_array[4];
  575. var orginstcd = result_array[5];
  576. var orgdeptnm = result_array[6];
  577. var orgdeptcd = result_array[7];
  578. var posinstnm = result_array[8];
  579. var posinstcd = result_array[9];
  580. var posdeptnm = result_array[10];
  581. var posdeptcd = result_array[11];
  582. var dutinstnm = result_array[12];
  583. var dutinstcd = result_array[13];
  584. var dutunitnm = result_array[14];
  585. var dutunitcd = result_array[15];
  586. var rrgstno = result_array[16];
  587. var email = result_array[17];
  588. var mpphonno = result_array[18];
  589. var entcodd = result_array[19];
  590. var pdano = result_array[20];
  591. var anouserid = result_array[21];
  592. model.setValue("/root/main/item/fromdd", fromdd);
  593. model.makeValue("/root/main/item/minfromdd", fromdd);
  594. model.setValue("/root/main/item/todd", todd);
  595. model.makeValue("/root/main/item/maxtodd", todd);
  596. model.setValue("/root/main/item/userid", userid);
  597. model.setValue("/root/main/item/usernm", usernm);
  598. model.setValue("/root/main/item/orginstcd", orginstcd);
  599. model.setValue("/root/main/item/orgdeptnm", orgdeptnm);
  600. model.setValue("/root/main/item/orgdeptcd", orgdeptcd);
  601. model.setValue("/root/main/item/posinstcd", posinstcd);
  602. model.setValue("/root/main/item/posdeptnm", posdeptnm);
  603. model.setValue("/root/main/item/posdeptcd", posdeptcd);
  604. model.setValue("/root/main/item/dutinstcd", dutinstcd);
  605. model.setValue("/root/main/item/dutunitnm", dutunitnm);
  606. model.setValue("/root/main/item/dutunitcd", dutunitcd);
  607. model.setValue("/root/main/item/rrgstno", rrgstno);
  608. model.setValue("/root/main/item/email", email);
  609. model.setValue("/root/main/item/mpphonno", mpphonno);
  610. model.setValue("/root/main/item/pdano", pdano);
  611. model.setValue("/root/main/item/entcodd", entcodd);
  612. model.setValue("/root/main/item/anouserid", anouserid);
  613. model.refresh();
  614. }else{
  615. messageBox("데이터를 저장", "E001");
  616. }
  617. ]]>
  618. </script>
  619. <caption/>
  620. </button>
  621. <caption id="caption21" class="cell_1" style="left:477px; top:640px; width:100px; height:23px; vertical-align:middle; ">근무부서(*)</caption>
  622. <caption id="caption22" class="cell_1" style="left:0px; top:688px; width:105px; height:23px; vertical-align:middle; ">전공분야</caption>
  623. <caption id="caption23" class="cell_1" style="left:715px; top:640px; width:100px; height:23px; vertical-align:middle; ">교직구분</caption>
  624. <output id="opt_dutunitnm" ref="/root/main/item/dutunitnm" class="input_essential" appearance="output" style="left:580px; top:641px; width:117px; height:19px; border-style:solid; "/>
  625. <caption id="caption26" class="cell_1" style="left:715px; top:664px; width:100px; height:23px; vertical-align:middle; ">임시여부</caption>
  626. <caption id="caption27" class="cell_1" style="left:240px; top:640px; width:100px; height:23px; vertical-align:middle; ">인사연동</caption>
  627. <caption id="caption28" class="cell_1" style="left:950px; top:616px; width:100px; height:23px; vertical-align:middle; ">최종수정일시</caption>
  628. <caption id="caption29" class="cell_1" style="left:477px; top:712px; width:100px; height:23px; vertical-align:middle; ">발령구분</caption>
  629. <select1 id="cmb_psnwork" ref="/root/main/item/psnworkyn" class="combo_default" navindex="29" appearance="minimal" style="left:343px; top:641px; width:132px; height:19px; ">
  630. <choices>
  631. <itemset nodeset="/root/init/comcd/psnwork[lable!='전체']">
  632. <label ref="lable"/>
  633. <value ref="value"/>
  634. </itemset>
  635. </choices>
  636. </select1>
  637. <caption id="caption30" class="cell_1" style="left:950px; top:592px; width:100px; height:23px; vertical-align:middle; ">최종수정자ID</caption>
  638. <output id="opt_lastupdtrid" ref="/root/main/item/lastupdtrid" class="output_fix" appearance="output" style="left:1052px; top:593px; width:132px; height:19px; "/>
  639. <caption id="caption31" class="cell_1" style="left:715px; top:616px; width:100px; height:23px; vertical-align:middle; ">직책</caption>
  640. <select1 id="cmb_apntflag" ref="/root/main/item/apntflag" class="combo_default" navindex="42" appearance="minimal" style="left:580px; top:713px; width:132px; height:19px; ">
  641. <choices>
  642. <itemset nodeset="/root/init/comcd/apntlist/R0090">
  643. <label ref="cdnm"/>
  644. <value ref="cdid"/>
  645. </itemset>
  646. </choices>
  647. </select1>
  648. <select1 id="cmb_jobkind" ref="/root/main/item/jobkindcd" class="combo_default" navindex="43" appearance="minimal" style="left:816px; top:569px; width:132px; height:19px; ">
  649. <choices>
  650. <itemset nodeset="/root/init/comcd/jobkindlist/R0061">
  651. <label ref="cdnm"/>
  652. <value ref="cdid"/>
  653. </itemset>
  654. </choices>
  655. </select1>
  656. <select1 id="cmb_jobpos" ref="/root/main/item/jobposcd" class="combo_default" navindex="44" appearance="minimal" style="left:816px; top:593px; width:132px; height:19px; ">
  657. <choices>
  658. <itemset nodeset="/root/init/comcd/jobposlist/R0062">
  659. <label ref="cdnm"/>
  660. <value ref="cdid"/>
  661. </itemset>
  662. </choices>
  663. </select1>
  664. <select1 id="cmb_jobresp" ref="/root/main/item/jobrespcd" class="combo_default" navindex="45" appearance="minimal" style="left:816px; top:617px; width:132px; height:19px; ">
  665. <choices>
  666. <itemset nodeset="/root/init/comcd/jobresplist/R0063">
  667. <label ref="cdnm"/>
  668. <value ref="cdid"/>
  669. </itemset>
  670. </choices>
  671. </select1>
  672. <select1 id="cmb_prfshipflag" ref="/root/main/item/prfshipflagcd" class="combo_default" navindex="46" appearance="minimal" style="left:816px; top:641px; width:132px; height:19px; ">
  673. <choices>
  674. <itemset nodeset="/root/init/comcd/prfshiplist/R0058">
  675. <label ref="cdnm"/>
  676. <value ref="cdid"/>
  677. </itemset>
  678. </choices>
  679. </select1>
  680. <input id="ipt_majorfild" ref="/root/main/item/majorfild" class="input_default" navindex="24" style="left:106px; top:689px; width:132px; height:19px; "/>
  681. <select1 id="cmb_tempyn" ref="/root/main/item/tempyn" class="combo_default" navindex="47" appearance="minimal" style="left:816px; top:665px; width:132px; height:19px; ">
  682. <choices>
  683. <item>
  684. <label>Y</label>
  685. <value>Y</value>
  686. </item>
  687. <item>
  688. <label>N</label>
  689. <value>N</value>
  690. </item>
  691. </choices>
  692. </select1>
  693. <button id="btn_dutunit_search" class="icon_search" navindex="38" style="left:697px; top:641px; width:16px; height:16px; ">
  694. <caption/>
  695. <script type="javascript" ev:event="DOMActivate">
  696. <![CDATA[
  697. var dutinstcd = model.getValue("/root/main/item/dutinstcd");
  698. if(dutinstcd!=''){
  699. zbcfOpenAssignedInstDeptCodeList(dutinstcd, "deptnm","", "/root/main/item/dutunitcd", "/root/main/item/dutunitnm", null, null, new Array("deptcd", "depthngnm"));
  700. }else{
  701. messageBox("근무기관을 선택", "I008");
  702. return;
  703. }
  704. ]]>
  705. </script>
  706. </button>
  707. <output id="opt_lastupdtdt" ref="/root/main/item/lastupdtdt" class="output_fix" format="yyyy-mm-dd hh:nn:ss" appearance="output" style="left:1052px; top:617px; width:132px; height:19px; "/>
  708. <input id="ipt_licnsno" ref="/root/main/item/licnsno" class="input_default" navindex="21" style="left:106px; top:617px; width:132px; height:19px; "/>
  709. <caption id="caption4" class="cell_1" style="left:477px; top:592px; width:100px; height:23px; vertical-align:middle; ">소속부서(*)</caption>
  710. <caption id="caption34" class="cell_1" style="left:477px; top:568px; width:100px; height:23px; vertical-align:middle; ">소속기관(*)</caption>
  711. <output id="opt_posdeptnm" ref="/root/main/item/posdeptnm" class="input_essential" navindex="35" appearance="output" style="left:580px; top:593px; width:117px; height:19px; border-style:solid; "/>
  712. <button id="btn_posdept_search" class="icon_search" navindex="36" style="left:697px; top:593px; width:16px; height:16px; ">
  713. <script type="javascript" ev:event="DOMActivate">
  714. <![CDATA[
  715. var posinstcd = model.getValue("/root/main/item/posinstcd");
  716. if(posinstcd!=''){
  717. zbcfOpenAssignedInstDeptCodeList(posinstcd, "deptnm","", "/root/main/item/posdeptcd", "/root/main/item/posdeptnm", null, null, new Array("deptcd", "depthngnm"));
  718. var posdeptcd = model.getValue("/root/main/item/posdeptcd");
  719. var posdeptnm = model.getValue("/root/main/item/posdeptnm");
  720. model.setValue("/root/main/item/dutunitcd", posdeptcd);
  721. model.setValue("/root/main/item/dutunitnm", posdeptnm);
  722. model.refresh();
  723. }else{
  724. messageBox("소속기관을 선택", "I008");
  725. }
  726. ]]>
  727. </script>
  728. <caption/>
  729. </button>
  730. <input id="ipt_rrgstno" ref="/root/main/item/rrgstno" class="input_essential" navindex="20" format="999999-9999999" style="left:106px; top:593px; width:132px; height:19px; "/>
  731. <caption id="caption36" class="cell_1" style="left:0px; top:592px; width:105px; height:23px; vertical-align:middle; ">주민번호(*)</caption>
  732. <caption id="caption37" class="cell_1" style="left:240px; top:568px; width:100px; height:23px; vertical-align:middle; ">입사일자(*)</caption>
  733. <input id="ipt_entcodd" ref="/root/main/item/entcodd" class="input_default" navindex="26" inputtype="date" style="left:343px; top:569px; width:132px; height:19px; "/>
  734. <input id="ipt_mpphonno" ref="/root/main/item/mpphonno" class="input" navindex="49" style="left:816px; top:713px; width:132px; height:19px; "/>
  735. <input id="ipt_email" ref="/root/main/item/email" class="input" navindex="48" style="left:816px; top:689px; width:132px; height:19px; ">
  736. <script type="javascript" ev:event="DOMFocusOut">
  737. <![CDATA[
  738. var sEmail = ipt_email.value;
  739. if (sEmail != ""){
  740. var iResult = sEmail.indexOf("@");
  741. if(iResult <= 0){
  742. messageBox("E-Mail 형식과 ", "E004");
  743. }
  744. }
  745. ]]>
  746. </script>
  747. </input>
  748. <caption id="caption38" class="cell_1" style="left:715px; top:712px; width:100px; height:23px; vertical-align:middle; ">휴대폰번호(*)</caption>
  749. <caption id="caption39" class="cell_1" style="left:715px; top:688px; width:100px; height:23px; vertical-align:middle; ">E-Mail(*)</caption>
  750. <input id="ipt_pdano" ref="/root/main/item/pdano" class="input" navindex="50" style="left:1052px; top:569px; width:132px; height:19px; "/>
  751. <caption id="caption41" class="cell_1" style="left:950px; top:568px; width:100px; height:23px; vertical-align:middle; ">PDA번호(*)</caption>
  752. <button id="btn_rgst_userinfo" class="btn2_letter6" navindex="57" style="left:811px; top:540px; width:86px; height:19px; ">
  753. <caption>신규이력추가</caption>
  754. <script type="javascript" ev:event="DOMActivate">
  755. <![CDATA[
  756. var retrived = model.getValue("/root/main/search/retrived");
  757. if(retrived!="true"){
  758. messageBox("조회를","I008");
  759. return;
  760. }
  761. fInitializeProcessValue();
  762. var operation = model.getValue("/root/main/search/operation");
  763. model.setValue("/root/main/item/process", "create");
  764. if(operation=="userb"){
  765. model.setValue("/root/main/item/label", "사용자기본정보추가(신규)");
  766. fDisableProcessControl("false");
  767. ipt_userid.attribute("editable") = "true";
  768. btn_search_userid.disabled = "true";
  769. ipt_licnsno.disabled = "true";
  770. ipt_medispclno.disabled = "true";
  771. cmb_specord.disabled = "true";
  772. ipt_majorfild.disabled = "true";
  773. cmb_psnwork.disabled = "true";
  774. cmb_dutplceinstcd.disabled = "true";
  775. opt_dutplcenm.disabled = "true";
  776. btn_dutplce_search.disabled = "true";
  777. cmb_apntflag.disabled = "true";
  778. cmb_jobkind.disabled = "true";
  779. cmb_jobpos.disabled = "true";
  780. cmb_jobresp.disabled = "true";
  781. cmb_prfshipflag.disabled = "true";
  782. cmb_tempyn.disabled = "true";
  783. ipt_pwd.disabled = "true";
  784. }else if(operation=="userd"){
  785. model.setValue("/root/main/item/label", "사용자부서정보추가(신규)");
  786. fDisableProcessControl("true");
  787. btn_search_userid.disabled = "false";
  788. ipt_userid.attribute("editable") = "false";
  789. ipt_userid.disabled = "false";
  790. ipt_licnsno.disabled = "false";
  791. ipt_medispclno.disabled = "false";
  792. //cmb_specord.disabled = "false";
  793. ipt_majorfild.disabled = "false";
  794. cmb_psnwork.disabled = "false";
  795. cmb_dutplceinstcd.disabled = "false";
  796. opt_dutplcenm.disabled = "false";
  797. btn_dutplce_search.disabled = "false";
  798. cmb_apntflag.disabled = "false";
  799. cmb_jobkind.disabled = "false";
  800. cmb_jobpos.disabled = "false";
  801. cmb_jobresp.disabled = "false";
  802. cmb_prfshipflag.disabled = "false";
  803. cmb_tempyn.disabled = "false";
  804. ipt_fromdd.disabled = "false";
  805. ipt_todd.disabled = "false";
  806. }else{
  807. alert("unknown operation : "+operation);
  808. return;
  809. }
  810. model.refresh();
  811. ]]>
  812. </script>
  813. </button>
  814. <caption id="caption10" class="cell_1" style="left:240px; top:664px; width:100px; height:23px; vertical-align:middle; ">타사용자ID(*)</caption>
  815. <input id="ipt_anouserid" ref="/root/main/item/anouserid" class="input_default" navindex="30" style="left:343px; top:665px; width:132px; height:19px; "/>
  816. <input id="ipt_medispclno" ref="/root/main/item/medispclno" class="input_default" navindex="22" style="left:106px; top:641px; width:132px; height:19px; "/>
  817. <caption id="caption14" class="cell_1" style="left:0px; top:640px; width:105px; height:23px; vertical-align:middle; ">전문의면허</caption>
  818. <caption id="caption15" class="cell_1" style="left:240px; top:688px; width:100px; height:23px; vertical-align:middle; ">원소속기관(*)</caption>
  819. <caption id="caption18" class="cell_1" style="left:240px; top:712px; width:100px; height:23px; vertical-align:middle; ">원소속부서(*)</caption>
  820. <button id="btn_orgdept_search" class="icon_search" navindex="33" style="left:460px; top:714px; width:16px; height:16px; ">
  821. <script type="javascript" ev:event="DOMActivate">
  822. <![CDATA[
  823. var orginstcd = model.getValue("/root/main/item/orginstcd");
  824. if(orginstcd!=''){
  825. zbcfOpenAssignedInstDeptCodeList(orginstcd, "deptnm","", "/root/main/item/orgdeptcd", "/root/main/item/orgdeptnm", null, null, new Array("deptcd", "depthngnm"));
  826. }else{
  827. messageBox("소속기관을 선택", "I008");
  828. }
  829. ]]>
  830. </script>
  831. <caption/>
  832. </button>
  833. <output id="opt_orgdeptnm" ref="/root/main/item/orgdeptnm" class="input_essential" navindex="32" appearance="output" style="left:343px; top:713px; width:117px; height:19px; border-style:solid; "/>
  834. <line id="line4" class="line_3" style="x1:0px; y1:743px; x2:1195px; y2:743px; "/>
  835. <caption id="caption42" class="cell_1" style="left:477px; top:664px; width:100px; height:23px; vertical-align:middle; ">근무지기관</caption>
  836. <caption id="caption43" class="cell_1" style="left:477px; top:688px; width:100px; height:23px; vertical-align:middle; ">근무지부서</caption>
  837. <output id="opt_dutplcenm" ref="/root/main/item/dutplcenm" class="input_essential" navindex="40" appearance="output" style="left:580px; top:689px; width:117px; height:19px; border-style:solid; "/>
  838. <button id="btn_dutplce_search" class="icon_search" navindex="41" style="left:697px; top:689px; width:16px; height:16px; ">
  839. <script type="javascript" ev:event="DOMActivate">
  840. <![CDATA[
  841. var dutplceinstcd = model.getValue("/root/main/item/dutplceinstcd");
  842. if(dutplceinstcd!=''){
  843. zbcfOpenAssignedInstDeptCodeList(dutplceinstcd, "deptnm","", "/root/main/item/dutplcecd", "/root/main/item/dutplcenm", null, null, new Array("deptcd", "depthngnm"));
  844. }else{
  845. messageBox("근무기관을 선택", "I008");
  846. return;
  847. }
  848. ]]>
  849. </script>
  850. <caption/>
  851. </button>
  852. <caption id="caption45" class="cell_1" style="left:950px; top:640px; width:100px; height:23px; vertical-align:middle; ">비밀번호(*)</caption>
  853. <input id="ipt_pwd" ref="/root/main/item/pwd" class="input" navindex="51" style="left:1052px; top:641px; width:132px; height:19px; "/>
  854. <button id="button1" class="btn2_letter4" navindex="59" style="left:961px; top:540px; width:64px; height:19px; ">
  855. <caption>이력수정</caption>
  856. <script type="javascript" ev:event="DOMActivate">
  857. <![CDATA[
  858. var data_row = grd_userdeptinfo.row - grd_userdeptinfo.fixedRows;
  859. if(data_row<0){
  860. return;
  861. }
  862. var psnWorkYn = model.getValue("/root/main/list/userlist["+(data_row+1)+"]/psnworkyn");
  863. if ( psnWorkYn == "Y" ) {
  864. alert("인사연동여부가 Y입니다. 인사연동여부가 Y인 경우는 수정 할 수 없습니다.");
  865. return ;
  866. }
  867. var retrived = model.getValue("/root/main/search/retrived");
  868. if(retrived!="true"){
  869. messageBox("조회를","I008");
  870. return;
  871. }
  872. var process = model.getValue("/root/main/item/process");
  873. if(process!="retrive"){
  874. var operation = model.getValue("/root/main/search/operation");
  875. if(operation=="userb"){
  876. messageBox("사용자기본정보를 목록에서 선택","I008");
  877. }else if(operation=="userd"){
  878. messageBox("사용자부서정보를 목록에서 선택","I008");
  879. }
  880. return;
  881. }
  882. var operation = model.getValue("/root/main/search/operation");
  883. if(operation=="userb"){
  884. var row = grd_userdeptinfo.row;
  885. model.setValue("/root/main/item/pwd", "");
  886. model.setValue("/root/main/item/process", "update");
  887. model.setValue("/root/main/item/label", "사용자기본정보수정(이력수정)");
  888. model.refresh();
  889. fDisableProcessControl("false");
  890. ipt_userid.disabled = "true";
  891. btn_search_userid.disabled = "true";
  892. ipt_fromdd.disabled = "true";
  893. ipt_userid.disabled = "true";
  894. btn_search_userid.disabled = "true";
  895. ipt_fromdd.disabled = "true";
  896. ipt_licnsno.disabled = "true";
  897. ipt_medispclno.disabled = "true";
  898. cmb_specord.disabled = "true";
  899. ipt_majorfild.disabled = "true";
  900. cmb_psnwork.disabled = "true";
  901. cmb_dutplceinstcd.disabled = "true";
  902. opt_dutplcenm.disabled = "true";
  903. cmb_apntflag.disabled = "true";
  904. cmb_jobkind.disabled = "true";
  905. cmb_jobpos.disabled = "true";
  906. cmb_jobresp.disabled = "true";
  907. cmb_prfshipflag.disabled = "true";
  908. cmb_tempyn.disabled = "true";
  909. //ipt_rrgstno.disabled = "true";
  910. ipt_pwd.disabled = "true";
  911. }else if(operation=="userd"){
  912. model.setValue("/root/main/item/process", "update");
  913. model.makeValue("/root/main/item/label","사용자부서정보수정(이력수정)");
  914. model.refresh();
  915. fDisableProcessControl("true");
  916. ipt_licnsno.disabled = "false";
  917. ipt_medispclno.disabled = "false";
  918. //cmb_specord.disabled = "false";
  919. ipt_majorfild.disabled = "false";
  920. cmb_apntflag.disabled = "false";
  921. cmb_jobkind.disabled = "false";
  922. cmb_jobpos.disabled = "false";
  923. cmb_jobresp.disabled = "false";
  924. cmb_prfshipflag.disabled = "false";
  925. cmb_tempyn.disabled = "false";
  926. ipt_todd.disabled = "false";
  927. }
  928. ]]>
  929. </script>
  930. </button>
  931. <button id="button2" class="btn2_letter4" navindex="60" style="left:1025px; top:540px; width:64px; height:19px; ">
  932. <caption>이력삭제</caption>
  933. <script type="javascript" ev:event="DOMActivate">
  934. <![CDATA[
  935. var data_row = grd_userdeptinfo.row - grd_userdeptinfo.fixedRows;
  936. if(data_row<0){
  937. return;
  938. }
  939. var psnWorkYn = model.getValue("/root/main/list/userlist["+(data_row+1)+"]/psnworkyn");
  940. if ( psnWorkYn == "Y" ) {
  941. alert("인사연동여부가 Y입니다. 인사연동여부가 Y인 경우는 삭제 할 수 없습니다.");
  942. return ;
  943. }
  944. //2011.12.12 경대요청사항->사용자 마스터관리 화면에서 인사연동 psnorkyn 이 N인 데이터 중 Y랑 쌍으로 묶인 데이터 삭제 불가능하게 블로킹 추가
  945. var psnWorkChk = model.getValue("/root/main/list/userlist["+(data_row+1)+"]/psnworkchk");
  946. if ( psnWorkYn == "N" ) {
  947. if(psnWorkChk=="Y"){
  948. messageBox("인사연동여부 Y 와 연관된 N 정보는 삭제","E001");
  949. return ;
  950. }
  951. }
  952. var retrived = model.getValue("/root/main/search/retrived");
  953. if(retrived!="true"){
  954. messageBox("조회를","I008");
  955. return;
  956. }
  957. var process = model.getValue("/root/main/item/process");
  958. if(process!="retrive"){
  959. var operation = model.getValue("/root/main/search/operation");
  960. if(operation=="userb"){
  961. messageBox("사용자기본정보를 목록에서 선택","I008");
  962. }else if(operation=="userd"){
  963. messageBox("사용자부서정보를 목록에서 선택","I008");
  964. }
  965. return;
  966. }
  967. var operation = model.getValue("/root/main/search/operation");
  968. if(operation=="userb"){
  969. var row = grd_userdeptinfo.row;
  970. model.setValue("/root/main/item/process", "delete");
  971. model.setValue("/root/main/item/label", "사용자기본정보삭제(이력삭제)");
  972. model.refresh();
  973. fDisableProcessControl("true");
  974. }else if(operation=="userd"){
  975. var row = grd_userdeptinfo.row;
  976. model.setValue("/root/main/item/process", "delete");
  977. model.setValue("/root/main/item/label", "사용자부서정보삭제(이력삭제)");
  978. model.refresh();
  979. fDisableProcessControl("true");
  980. }
  981. model.refresh();
  982. ]]>
  983. </script>
  984. </button>
  985. <button id="button3" class="btn2_letter4" navindex="58" style="left:897px; top:540px; width:64px; height:19px; ">
  986. <caption>이력추가</caption>
  987. <script type="javascript" ev:event="DOMActivate">
  988. <![CDATA[
  989. var retrived = model.getValue("/root/main/search/retrived");
  990. if(retrived!="true"){
  991. messageBox("조회를","I008");
  992. return;
  993. }
  994. var process = model.getValue("/root/main/item/process");
  995. if(process!="retrive"){
  996. var operation = model.getValue("/root/main/search/operation");
  997. if(operation=="userb"){
  998. messageBox("사용자기본정보를 목록에서 선택","I008");
  999. }else if(operation=="userd"){
  1000. messageBox("사용자부서정보를 목록에서 선택","I008");
  1001. }
  1002. return;
  1003. }
  1004. var operation = model.getValue("/root/main/search/operation");
  1005. var iRow = grd_userdeptinfo.row;
  1006. if(iRow>0){
  1007. var userid = grd_userdeptinfo.valueMatrix(iRow, grd_userdeptinfo.colRef("userid"));
  1008. var fromdd = grd_userdeptinfo.valueMatrix(iRow, grd_userdeptinfo.colRef("fromdd"));
  1009. var todd = grd_userdeptinfo.valueMatrix(iRow, grd_userdeptinfo.colRef("todd"));
  1010. if(todd=="99991231"){
  1011. messageBox("기존이력의 종료일자가 9999년 12월 31일 입니다. \n최종이력을 기준으로 새로운 이력을 추가할수", "I004");
  1012. return;
  1013. }
  1014. copyNodeType("/root/main/item", "/root/main/list/userlist["+(grd_userdeptinfo.row-grd_userdeptinfo.fixedRows+1)+"]");
  1015. var next_fromdd = todd.toDate("YYYYMMDD").getAddDate(1, "D").getDateFormat("YYYYMMDD");
  1016. model.setValue("/root/main/item/fromdd",next_fromdd);
  1017. model.setValue("/root/main/item/todd", "99991231");
  1018. if(operation=="userb"){
  1019. model.makeValue("/root/main/item/label","사용자기본정보추가(이력추가)");
  1020. model.setValue("/root/main/item/pwd", "");
  1021. fDisableProcessControl("false");
  1022. ipt_userid.disabled = "true";
  1023. ipt_licnsno.disabled = "true";
  1024. ipt_medispclno.disabled = "true";
  1025. cmb_specord.disabled = "true";
  1026. ipt_majorfild.disabled = "true";
  1027. cmb_psnwork.disabled = "true";
  1028. cmb_dutplceinstcd.disabled = "true";
  1029. opt_dutplcenm.disabled = "true";
  1030. btn_dutplce_search.disabled = "true";
  1031. cmb_apntflag.disabled = "true";
  1032. cmb_jobkind.disabled = "true";
  1033. cmb_jobpos.disabled = "true";
  1034. cmb_jobresp.disabled = "true";
  1035. cmb_prfshipflag.disabled = "true";
  1036. cmb_tempyn.disabled = "true";
  1037. //ipt_rrgstno.disabled = "true";
  1038. ipt_pwd.disabled = "true";
  1039. }else if(operation=="userd"){
  1040. model.makeValue("/root/main/item/label","사용자부서정보추가(이력추가)");
  1041. fDisableProcessControl("true");
  1042. ipt_licnsno.disabled = "false";
  1043. ipt_medispclno.disabled = "false";
  1044. //cmb_specord.disabled = "false";
  1045. ipt_majorfild.disabled = "false";
  1046. cmb_psnwork.disabled = "false";
  1047. cmb_dutplceinstcd.disabled = "false";
  1048. opt_dutplcenm.disabled = "false";
  1049. btn_dutplce_search.disabled = "false";
  1050. cmb_apntflag.disabled = "false";
  1051. cmb_jobkind.disabled = "false";
  1052. cmb_jobpos.disabled = "false";
  1053. cmb_jobresp.disabled = "false";
  1054. cmb_prfshipflag.disabled = "false";
  1055. cmb_tempyn.disabled = "false";
  1056. ipt_fromdd.disabled = "false";
  1057. ipt_todd.disabled = "false";
  1058. }
  1059. model.setValue("/root/main/item/process", "create");
  1060. model.refresh();
  1061. }else{
  1062. messageBox("이력추가의 경우에는 기존이력을 선택한후 기능을 수행", "I008");
  1063. return;
  1064. }
  1065. model.refresh();
  1066. ]]>
  1067. </script>
  1068. </button>
  1069. <select1 id="cmb_orginstcd" ref="/root/main/item/orginstcd" class="combo_default" navindex="31" appearance="minimal" style="left:343px; top:689px; width:132px; height:19px; ">
  1070. <choices>
  1071. <itemset nodeset="/root/init/comcd/instlist/Z0007[cdnm!='전체']">
  1072. <label ref="cdnm"/>
  1073. <value ref="cdid"/>
  1074. </itemset>
  1075. </choices>
  1076. <script type="javascript" ev:event="xforms-value-changed">
  1077. <![CDATA[
  1078. model.setValue("/root/main/item/orgdeptcd", "");
  1079. model.setValue("/root/main/item/orgdeptnm", "");
  1080. model.refresh();
  1081. ]]>
  1082. </script>
  1083. </select1>
  1084. <select1 id="cmb_posinstcd" ref="/root/main/item/posinstcd" class="combo_default" navindex="34" appearance="minimal" style="left:580px; top:569px; width:132px; height:19px; ">
  1085. <choices>
  1086. <itemset nodeset="/root/init/comcd/instlist/Z0007[cdnm!='전체']">
  1087. <label ref="cdnm"/>
  1088. <value ref="cdid"/>
  1089. </itemset>
  1090. </choices>
  1091. <script type="javascript" ev:event="xforms-value-changed">
  1092. <![CDATA[
  1093. var posinstcd = model.getValue("/root/main/item/posinstcd");
  1094. model.setValue("/root/main/item/posdeptcd", "");
  1095. model.setValue("/root/main/item/posdeptnm", "");
  1096. model.setValue("/root/main/item/dutunitcd", "");
  1097. model.setValue("/root/main/item/dutunitnm", "");
  1098. model.setValue("/root/main/item/dutinstcd", posinstcd);
  1099. model.refresh();
  1100. ]]>
  1101. </script>
  1102. </select1>
  1103. <select1 id="cmb_dutinstcd" ref="/root/main/item/dutinstcd" class="combo_default" navindex="37" appearance="minimal" style="left:580px; top:617px; width:132px; height:19px; ">
  1104. <choices>
  1105. <itemset nodeset="/root/init/comcd/instlist/Z0007[cdnm!='전체']">
  1106. <label ref="cdnm"/>
  1107. <value ref="cdid"/>
  1108. </itemset>
  1109. </choices>
  1110. <script type="javascript" ev:event="xforms-value-changed">
  1111. <![CDATA[
  1112. model.setValue("/root/main/item/dutunitcd", "");
  1113. model.setValue("/root/main/item/dutunitnm", "");
  1114. model.refresh();
  1115. ]]>
  1116. </script>
  1117. </select1>
  1118. <select1 id="cmb_dutplceinstcd" ref="/root/main/item/dutplceinstcd" class="combo_default" navindex="39" appearance="minimal" style="left:580px; top:664px; width:132px; height:19px; ">
  1119. <choices>
  1120. <itemset nodeset="/root/init/comcd/instlist/Z0007[cdnm!='전체']">
  1121. <label ref="cdnm"/>
  1122. <value ref="cdid"/>
  1123. </itemset>
  1124. </choices>
  1125. <script type="javascript" ev:event="xforms-value-changed">
  1126. <![CDATA[
  1127. model.setValue("/root/main/item/dutplcecd", "");
  1128. model.setValue("/root/main/item/dutplcenm", "");
  1129. model.refresh();
  1130. ]]>
  1131. </script>
  1132. </select1>
  1133. <select1 id="cmb_userkindcd" ref="/root/main/item/userkindcd" class="combo_default" navindex="52" appearance="minimal" style="left:1051px; top:665px; width:132px; height:19px; ">
  1134. <choices>
  1135. <itemset nodeset="/root/init/comcd/userkindlist/Z0016">
  1136. <label ref="cdnm"/>
  1137. <value ref="cdid"/>
  1138. </itemset>
  1139. </choices>
  1140. </select1>
  1141. <caption id="caption51" class="cell_1" style="left:950px; top:664px; width:100px; height:23px; vertical-align:middle; ">사용자유형</caption>
  1142. <button id="btn_dutplceref_create" class="btn2_letter7" navindex="58" style="left:1089px; top:540px; width:97px; height:19px; ">
  1143. <caption>사용자부서추가</caption>
  1144. <script type="javascript" ev:event="DOMActivate">
  1145. <![CDATA[
  1146. var retrived = model.getValue("/root/main/search/retrived");
  1147. if(retrived!="true"){
  1148. messageBox("조회를","I008");
  1149. return;
  1150. }
  1151. var process = model.getValue("/root/main/item/process");
  1152. if(process!="retrive"){
  1153. var operation = model.getValue("/root/main/search/operation");
  1154. messageBox("사용자부서정보를 목록에서 선택","I008");
  1155. return;
  1156. }
  1157. var operation = model.getValue("/root/main/search/operation");
  1158. var data_row = grd_userdeptinfo.row - grd_userdeptinfo.fixedRows;
  1159. //alert("(data_row+1) : "+(data_row+1)+", grd_userdeptinfo.row : "+grd_userdeptinfo.row+", grd_userdeptinfo.fixedRow : "+grd_userdeptinfo.fixedRows);
  1160. if(data_row>=0){
  1161. copyNodeType("/root/main/item", "/root/main/list/userlist["+(data_row+1)+"]");
  1162. model.setValue("/root/main/item/dutplceinstcd", "");
  1163. model.setValue("/root/main/item/dutplceinstnm", "");
  1164. model.setValue("/root/main/item/dutplcecd", "");
  1165. model.setValue("/root/main/item/dutplcenm", "");
  1166. model.setValue("/root/main/item/specordyn", "N");
  1167. model.makeValue("/root/main/item/label","사용자부서정보추가(이력추가)");
  1168. fDisableProcessControl("true");
  1169. ipt_licnsno.disabled = "false";
  1170. ipt_medispclno.disabled = "false";
  1171. //cmb_specord.disabled = "false";
  1172. ipt_majorfild.disabled = "false";
  1173. cmb_psnwork.disabled = "false";
  1174. cmb_dutplceinstcd.disabled = "false";
  1175. opt_dutplcenm.disabled = "false";
  1176. btn_dutplce_search.disabled = "false";
  1177. cmb_apntflag.disabled = "false";
  1178. cmb_jobkind.disabled = "false";
  1179. cmb_jobpos.disabled = "false";
  1180. cmb_jobresp.disabled = "false";
  1181. cmb_prfshipflag.disabled = "false";
  1182. cmb_tempyn.disabled = "false";
  1183. ipt_fromdd.disabled = "false";
  1184. ipt_todd.disabled = "false";
  1185. model.setValue("/root/main/item/process", "create");
  1186. model.refresh();
  1187. }else{
  1188. messageBox("사용자부서정보를 목록에서 선택","I008");
  1189. return;
  1190. }
  1191. model.refresh();
  1192. ]]>
  1193. </script>
  1194. </button>
  1195. <multilinegrid id="grd_userdeptinfo" nodeset="/root/main/list/userlist" caption="처리형태^적용시작일자^적용종료일자^사용자유형명^사용자유형코드^사용자ID^사용자명^사용자영문명^원소속기관명^원소속기관코드^원소속부서명^원소속부서코드^psnworkchk|소속기관명^소속기관코드^소속부서명^소속부서코드^근무기관명^근무기관코드^근무부서명^근무부서코드^주민등록번호^이메일^핸드폰번호^입사일자^psnworkchk|PDA번호^타사용자ID^근무지기관명^근무지기관코드^근무지명^근무지코드^직종명^직종코드^직위명^직위코드^직책명^직책코드^psnworkchk|교직구분명^교직구분코드^인사연동여부^발령구분명^발령구분코드^의사면허번호^전문의번호^선택진료여부^전공분야^직군명^직군코드^주근무지여부^psnworkchk" colsep="^" colwidth="91, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" rowsep="|" mergecellsfixedrows="bycolrec" style="left:0px; top:117px; width:1195px; height:411px; ">
  1196. <row>
  1197. <col ref="process"/>
  1198. <col ref="fromdd"/>
  1199. <col ref="todd"/>
  1200. <col ref="userkindnm"/>
  1201. <col ref="userkindcd"/>
  1202. <col ref="userid"/>
  1203. <col ref="usernm"/>
  1204. <col ref="userengnm"/>
  1205. <col ref="orginstnm"/>
  1206. <col ref="orginstcd"/>
  1207. <col ref="orgdeptnm"/>
  1208. <col ref="orgdeptcd"/>
  1209. <col ref="psnworkchk" visibility="hidden"/>
  1210. </row>
  1211. <row>
  1212. <col ref="posinstnm"/>
  1213. <col ref="posinstcd"/>
  1214. <col ref="posdeptnm"/>
  1215. <col ref="posdeptcd"/>
  1216. <col ref="dutinstnm"/>
  1217. <col ref="dutinstcd"/>
  1218. <col ref="dutunitnm"/>
  1219. <col ref="dutunitcd"/>
  1220. <col ref="rrgstno"/>
  1221. <col ref="email"/>
  1222. <col ref="mpphonno"/>
  1223. <col ref="entcodd"/>
  1224. <col visibility="hidden"/>
  1225. </row>
  1226. <row>
  1227. <col ref="pdano"/>
  1228. <col ref="anouserid"/>
  1229. <col ref="dutplceinstnm"/>
  1230. <col ref="dutplceinstcd"/>
  1231. <col ref="dutplcenm"/>
  1232. <col ref="dutplcecd"/>
  1233. <col ref="jobkindnm"/>
  1234. <col ref="jobkindcd"/>
  1235. <col ref="jobposnm"/>
  1236. <col ref="jobposcd"/>
  1237. <col ref="jobrespnm"/>
  1238. <col ref="jobrespcd"/>
  1239. <col visibility="hidden"/>
  1240. </row>
  1241. <row>
  1242. <col ref="prfshipflagnm"/>
  1243. <col ref="prfshipflagcd"/>
  1244. <col ref="psnworkyn"/>
  1245. <col ref="apntflagnm"/>
  1246. <col ref="apntflag"/>
  1247. <col ref="licnsno"/>
  1248. <col ref="medispclno"/>
  1249. <col ref="specordyn"/>
  1250. <col ref="majorfild"/>
  1251. <col ref="grupjoblnnm"/>
  1252. <col ref="grupjoblncd"/>
  1253. <col ref="maindutplceflag"/>
  1254. <col visibility="hidden"/>
  1255. </row>
  1256. <script type="javascript" ev:event="ondblclick">
  1257. <![CDATA[
  1258. var process = model.getValue("/root/main/item/process");
  1259. if(process=="excel"){
  1260. messageBox("엑셀입력 상태에서는 사용자정보 상세보기 기능을 수행할수", "I004");
  1261. return;
  1262. }
  1263. var data_row = grd_userdeptinfo.row - grd_userdeptinfo.fixedRows;
  1264. if(data_row<0){
  1265. return;
  1266. }
  1267. //alert("(data_row+1) : "+(data_row+1)+", grd_userdeptinfo.row : "+grd_userdeptinfo.row+", grd_userdeptinfo.fixedRow : "+grd_userdeptinfo.fixedRows);
  1268. copyNodeType("/root/main/item", "/root/main/list/userlist["+(data_row+1)+"]");
  1269. model.makeValue("/root/main/item/message", "");
  1270. model.makeValue("/root/main/item/status", "");
  1271. var operation = model.getValue("/root/main/search/operation");
  1272. if(operation=="userb"){
  1273. model.setValue("/root/main/item/process", "retrive");
  1274. model.makeValue("/root/main/item/label", "사용자기본정보조회");
  1275. }else if(operation=="userd"){
  1276. model.setValue("/root/main/item/process", "retrive");
  1277. model.makeValue("/root/main/item/label", "사용자부서정보조회");
  1278. }
  1279. fDisableProcessControl("true");
  1280. model.refresh();
  1281. ]]>
  1282. </script>
  1283. </multilinegrid>
  1284. <caption id="caption5" class="cell_1" style="left:950px; top:688px; width:100px; height:23px; vertical-align:middle; ">직군</caption>
  1285. <select1 id="cmb_grupjobln" ref="/root/main/item/grupjoblncd" class="combo_default" navindex="52" appearance="minimal" style="left:1051px; top:689px; width:132px; height:19px; ">
  1286. <choices>
  1287. <itemset nodeset="/root/init/comcd/grupjoblnlist/R0059">
  1288. <label ref="cdnm"/>
  1289. <value ref="cdid"/>
  1290. </itemset>
  1291. </choices>
  1292. </select1>
  1293. <caption id="caption19" class="cell_1" style="left:950px; top:712px; width:100px; height:23px; vertical-align:middle; ">사용자영문명</caption>
  1294. <input id="ipt_userengnm" ref="/root/main/item/userengnm" class="input" navindex="51" style="left:1052px; top:713px; width:132px; height:19px; "/>
  1295. <output id="output1" ref="/root/main/item/psnworkchk" visibility="hidden" style="left:695px; top:540px; width:100px; height:20px; border-style:solid; "/>
  1296. </group>
  1297. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  1298. <button id="btn_save" class="btn4_letter2" style="left:1135px; top:0px; width:56px; height:22px; ">
  1299. <caption>저장</caption>
  1300. <script type="javascript" ev:event="DOMActivate">
  1301. <![CDATA[
  1302. model.setValue("/root/send/item", grd_userdeptinfo.getUpdateData());
  1303. var operation = model.getValue("/root/main/search/operation");
  1304. var process = model.getValue("/root/main/item/process");
  1305. var success;
  1306. if(process=="create"){
  1307. if(operation=="userb"){
  1308. success = fValidateUserInfo();
  1309. if(success){
  1310. fSetUserInfoSendData();
  1311. success = submit("TXZSU10107");
  1312. if(success){
  1313. fDisableProcessControl("true");
  1314. var userid = model.getValue("/root/main/item/userid");
  1315. model.setValue("/root/main/item/process", "retrive");
  1316. model.setValue("/root/main/item/label", "사용자기본정보조회");
  1317. if(userid==""){
  1318. userid = model.getValue("/root/hidden/result/userid");
  1319. model.setValue("/root/main/item/userid", userid);
  1320. messageBox("신규 사용자ID(사용자ID:"+userid+")발번이", "I001");
  1321. }
  1322. messageBox("사용자기본정보 추가가", "I001");
  1323. }else{
  1324. messageBox("사용자기본정보 추가에", "E009");
  1325. }
  1326. }
  1327. }else if(operation=="userd"){
  1328. success = fValidateUserDeptInfo();
  1329. //경대 요청사항->사용자 마스터 관리 화면에서 인사연동 컬럼(PSNWORKYN) 컬럼 'Y' 인 상태로 Insert 불가능 하도록
  1330. //2011.12.12 인사연동여부(psnWorkYn)가 Y 인 경우 저장 불가능 추가
  1331. var vPsnworkYN = model.getValue("/root/main/item/psnworkyn");
  1332. if ( vPsnworkYN == "Y" ) {
  1333. messageBox("인사연동여부가 Y입니다. 인사연동여부가 Y인 경우는 저장","E001");
  1334. model.setFocus("cmb_psnwork");
  1335. return ;
  1336. }
  1337. if(success){
  1338. fSetUserDeptInfoSendData();
  1339. success = submit("TXZSU10108");
  1340. if(success){
  1341. fDisableProcessControl("true");
  1342. model.setValue("/root/main/item/process", "retrive");
  1343. model.setValue("/root/main/item/label", "사용자부서정보조회");
  1344. messageBox("사용자부서정보 추가가", "I001");
  1345. var jobposcd = model.getValue("/root/main/item/jobposcd");
  1346. if(!isNull(jobposcd) && jobposcd == "1782")
  1347. messageBox("선택진료여부는 진료행정팀과 상의하시기 바랍니다.", "E999");
  1348. }else{
  1349. messageBox("사용자부서정보 추가에", "E009");
  1350. }
  1351. }
  1352. }
  1353. }else if(process=="retrive"){
  1354. messageBox("조회한 정보를 저장할수", "I004");
  1355. return;
  1356. }else if(process=="update"){
  1357. if(operation=="userb"){
  1358. success = fValidateUserInfo();
  1359. if(success){
  1360. fSetUserInfoSendData();
  1361. success = submit("TXZSU10109");
  1362. if(success){
  1363. fDisableProcessControl("true");
  1364. model.setValue("/root/main/item/process", "retrive");
  1365. model.setValue("/root/main/item/label", "사용자기본정보조회");
  1366. messageBox("사용자기본정보 수정이", "I001");
  1367. }else{
  1368. messageBox("사용자기본정보 수정에", "E009");
  1369. }
  1370. }
  1371. }else if(operation=="userd"){
  1372. success = fValidateUserDeptInfo();
  1373. if(success){
  1374. fSetUserDeptInfoSendData();
  1375. success = submit("TXZSU10111");
  1376. if(success){
  1377. fDisableProcessControl("true");
  1378. model.setValue("/root/main/item/process", "retrive");
  1379. model.setValue("/root/main/item/label", "사용자부서정보조회");
  1380. messageBox("사용자부서정보 수정이", "I001");
  1381. }else{
  1382. messageBox("사용자부서정보 수정에", "E009");
  1383. }
  1384. }
  1385. }
  1386. }else if(process=="delete"){
  1387. if(operation=="userb"){
  1388. success = fValidateUserInfo();
  1389. if(success){
  1390. fSetUserInfoSendData();
  1391. success = submit("TXZSU10110");
  1392. if(success){
  1393. fDisableProcessControl("true");
  1394. model.setValue("/root/main/item/process", "deleted");
  1395. model.setValue("/root/main/item/label", "삭제된사용자기본정보");
  1396. messageBox("사용자기본정보 삭제가", "I001");
  1397. }else{
  1398. messageBox("사용자기본정보 삭제에", "E009");
  1399. }
  1400. }
  1401. }else if(operation=="userd"){
  1402. success = fValidateUserDeptInfo();
  1403. if(success){
  1404. fSetUserDeptInfoSendData();
  1405. success = submit("TXZSU10112");
  1406. if(success){
  1407. fDisableProcessControl("true");
  1408. model.setValue("/root/main/item/process", "deleted");
  1409. model.setValue("/root/main/item/label", "삭제된사용자부서정보");
  1410. messageBox("사용자부서정보 삭제가", "I001");
  1411. }else{
  1412. messageBox("사용자부서정보 삭제에", "E009");
  1413. }
  1414. }
  1415. }
  1416. }
  1417. if(success){
  1418. if(process=="excel"){
  1419. for(var i=0; i<grd_userdeptinfo.rows; i++){
  1420. grd_userdeptinfo.rowStatus(i) = 0;
  1421. }
  1422. }else{
  1423. //추가, 수정, 삭제를 한후에 다시 조회한다.
  1424. var operation = model.getValue("/root/main/search/operation");
  1425. var search_condition = model.getValue("/root/main/search/searchcondition");
  1426. var search_term = model.getValue("/root/main/search/searchterm");
  1427. if(search_term == ""){
  1428. search_term = '%' + search_term;
  1429. }
  1430. var posinstcd = model.getValue("/root/main/search/posinstcd");
  1431. var posdeptcd = model.getValue("/root/main/search/posdeptcd");
  1432. var dutinstcd = model.getValue("/root/main/search/dutinstcd");
  1433. var dutunitcd = model.getValue("/root/main/search/dutunitcd");
  1434. var dutplceinstcd = model.getValue("/root/main/search/dutplceinstcd");
  1435. var dutplcecd = model.getValue("/root/main/search/dutplcecd");
  1436. var psnworkyn = model.getValue("/root/main/search/psnworkyn");
  1437. model.resetInstanceNode("/root/send");
  1438. model.setValue("/root/send/searchcondition", search_condition);
  1439. model.setValue("/root/send/searchterm", search_term);
  1440. model.setValue("/root/send/posinstcd", posinstcd);
  1441. model.setValue("/root/send/posdeptcd", posdeptcd);
  1442. model.setValue("/root/send/dutinstcd", dutinstcd);
  1443. model.setValue("/root/send/dutunitcd", dutunitcd);
  1444. if(operation=="userb"){
  1445. success = fValidateSearchUserInfo();
  1446. if(!success){
  1447. messageBox("사용자 기본정보 조회시 검색어를 한자이상 입력하거나,\n소속기관 또는 근무기관을 선택", "I008");
  1448. return;
  1449. }
  1450. success = submit("TRZSU10110");
  1451. if(success){
  1452. model.setValue("/root/main/search/retrived", "true");
  1453. }else{
  1454. model.setValue("/root/main/search/retrived", "false");
  1455. }
  1456. }else if(operation=="userd"){
  1457. success = fValidateSearchUserDeptInfo();
  1458. if(!success){
  1459. messageBox("사용자 부서정보 조회시 검색어를 한자이상 입력하거나,\n소속기관, 근무기관, 근무지기관 중 하나를 선택", "I008");
  1460. return;
  1461. }
  1462. model.setValue("/root/send/dutplceinstcd", dutplceinstcd);
  1463. model.setValue("/root/send/dutplcecd", dutplcecd);
  1464. model.setValue("/root/send/psnworkyn", psnworkyn);
  1465. var success = submit("TRZSU10107");
  1466. if(success){
  1467. model.setValue("/root/main/search/retrived", "true");
  1468. //fInitializeProcessValue();
  1469. fDisableProcessControl("true");
  1470. }else{
  1471. model.setValue("/root/main/search/retrived", "false");
  1472. }
  1473. }
  1474. if(process=="create" || process=="update"){
  1475. if(operation=="userb"){
  1476. var src_fromdd = model.getValue("/root/main/item/fromdd");
  1477. var src_todd = model.getValue("/root/main/item/todd");
  1478. var src_userid = model.getValue("/root/main/item/userid");
  1479. for(var i=0; i<grd_userdeptinfo.rows;i++){
  1480. var tg_fromdd = grd_userdeptinfo.valueMatrix(i, grd_userdeptinfo.colRef("fromdd"));
  1481. var tg_todd = grd_userdeptinfo.valueMatrix(i, grd_userdeptinfo.colRef("todd"));
  1482. var tg_userid = grd_userdeptinfo.valueMatrix(i, grd_userdeptinfo.colRef("userid"));
  1483. if( src_fromdd==tg_fromdd && src_todd==tg_todd && src_userid==tg_userid ){
  1484. grd_userdeptinfo.row = i;
  1485. grd_userdeptinfo.topRow = i;
  1486. }
  1487. }
  1488. }else if(operation=="userd"){
  1489. var src_fromdd = model.getValue("/root/main/item/fromdd");
  1490. var src_todd = model.getValue("/root/main/item/todd");
  1491. var src_userid = model.getValue("/root/main/item/userid");
  1492. var src_dutplceinstcd = model.getValue("/root/main/item/dutplceinstcd");
  1493. var src_dutplcecd = model.getValue("/root/main/item/dutplcecd");
  1494. var src_psnworkyn = model.getValue("/root/main/item/psnworkyn");
  1495. for(var i=0; i<grd_userdeptinfo.rows;i++){
  1496. var tg_fromdd = grd_userdeptinfo.valueMatrix(i, grd_userdeptinfo.colRef("fromdd"));
  1497. var tg_todd = grd_userdeptinfo.valueMatrix(i, grd_userdeptinfo.colRef("todd"));
  1498. var tg_userid = grd_userdeptinfo.valueMatrix(i, grd_userdeptinfo.colRef("userid"));
  1499. var tg_dutplceinstcd = grd_userdeptinfo.valueMatrix(i, grd_userdeptinfo.colRef("dutplceinstcd"));
  1500. var tg_dutplcecd = grd_userdeptinfo.valueMatrix(i, grd_userdeptinfo.colRef("dutplcecd"));
  1501. var tg_psnworkyn = grd_userdeptinfo.valueMatrix(i, grd_userdeptinfo.colRef("psnworkyn"));
  1502. if( src_fromdd==tg_fromdd && src_todd==tg_todd && src_userid==tg_userid && src_dutplceinstcd==tg_dutplceinstcd && src_dutplcecd==tg_dutplcecd && src_psnworkyn==tg_psnworkyn){
  1503. grd_userdeptinfo.row = i;
  1504. grd_userdeptinfo.topRow = i;
  1505. }
  1506. }
  1507. }
  1508. }
  1509. }
  1510. }
  1511. model.refresh();
  1512. ]]>
  1513. </script>
  1514. </button>
  1515. <button id="btn_init" class="btn4_letter3" style="left:1067px; top:0px; width:68px; height:22px; ">
  1516. <caption>초기화</caption>
  1517. <script type="javascript" ev:event="DOMActivate">
  1518. <![CDATA[fInitialize();]]>
  1519. </script>
  1520. </button>
  1521. <line id="line3" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
  1522. </group>
  1523. </xhtml:body>
  1524. </xhtml:html>