SMZSU10300_기관별사용자마스터관리.xrw 65 KB

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