SMZSD01000_업무별부서정보관리.xrw 114 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559
  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. <clsdeptlist>
  11. </clsdeptlist>
  12. <deptlist>
  13. </deptlist>
  14. <depthistorylist/>
  15. <prevdata>
  16. <standarduseyn/>
  17. <standardflag/>
  18. </prevdata>
  19. <data>
  20. <instcd/>
  21. <deptcd/>
  22. <valifromddkey/>
  23. <valitoddkey/>
  24. <valifromdd/>
  25. <depthngnm/>
  26. <inorddeptnm/>
  27. <indepthngnm/>
  28. <deptengnm/>
  29. <deptchinm/>
  30. <deptplce/>
  31. <deptengabbr/>
  32. <depthngabbr/>
  33. <reqfild/>
  34. <reqdeptno/>
  35. <nextplceyn/>
  36. <nextplceprity/>
  37. <inetrsrvyn/>
  38. <cntctel/>
  39. <dutplceuseyn/>
  40. <reqauthdeptyn/>
  41. <planuseyn/>
  42. <plansupdeptcd/>
  43. <plandispseq/>
  44. <orduseyn/>
  45. <orddeptflag/>
  46. <orddispseq/>
  47. <ordsupdeptcd/>
  48. <clincdeptdispseq/>
  49. <psnworkuseyn/>
  50. <psnworksupdeptcd/>
  51. <psnworkdispseq/>
  52. <purcuseyn/>
  53. <purcsupdeptcd/>
  54. <purcdispseq/>
  55. <fnworkuseyn/>
  56. <fnworksupdeptcd/>
  57. <fnworkdispseq/>
  58. <careuseyn/>
  59. <caresupdeptcd/>
  60. <caredispseq/>
  61. <gafruseyn/>
  62. <gafrsupdeptcd/>
  63. <gafrdispseq/>
  64. <rcptuseyn/>
  65. <rcptsupdeptcd/>
  66. <rcptdispseq/>
  67. <pamuseyn/>
  68. <pamsupdeptcd/>
  69. <pamdispseq/>
  70. <healcareinfouseyn/>
  71. <healcareinfosupdeptcd/>
  72. <healcareinfodispseq/>
  73. <insuuseyn/>
  74. <insusupdeptcd/>
  75. <insudispseq/>
  76. <dgenuseyn/>
  77. <dgensupdeptcd/>
  78. <dgendispseq/>
  79. <homecareuseyn/>
  80. <homecaresupdeptcd/>
  81. <homecaredispseq/>
  82. <instsupdeptcd/>
  83. <instdispseq/>
  84. <valitodd/>
  85. <orddeptkind/>
  86. <ordclsdeptflag/>
  87. </data>
  88. <search>
  89. <instcd/>
  90. <deptmaster>
  91. <supdeptcd/>
  92. <supdeptnm/>
  93. </deptmaster>
  94. <authority/>
  95. <authorities/>
  96. <deptinfo>
  97. <deptcd/>
  98. <depthngnm/>
  99. </deptinfo>
  100. </search>
  101. <move>
  102. <mvdest/>
  103. <mvsrc/>
  104. </move>
  105. <mode/>
  106. <modedetail/>
  107. <modedetailstatus/>
  108. <label>
  109. <left/>
  110. <right/>
  111. <deptinfo/>
  112. </label>
  113. </main>
  114. <send>
  115. <data>
  116. <instcd/>
  117. <deptcd/>
  118. </data>
  119. </send>
  120. <hidden>
  121. </hidden>
  122. <init>
  123. <reqdeptnocode>
  124. <P0322>
  125. <cdid/>
  126. <cdnm/>
  127. </P0322>
  128. </reqdeptnocode>
  129. <reqfieldcode>
  130. <P0291>
  131. <cdid/>
  132. <cdnm/>
  133. </P0291>
  134. </reqfieldcode>
  135. <insuuseyn>
  136. <Z0015>
  137. <cdid/>
  138. <cdnm/>
  139. </Z0015>
  140. </insuuseyn>
  141. <instlist/>
  142. </init>
  143. </root>
  144. </instance>
  145. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  146. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  147. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  148. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  149. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  150. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
  151. <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD003.js"/>
  152. <script type="javascript" ev:event="xforms-ready">
  153. <![CDATA[
  154. var success = submit("TRZSD00205");
  155. return;
  156. if(success){
  157. zbcfGetCodeList( new Array("P0322", "P0291", "Z0015"), new Array("/root/init/reqdeptnocode", "/root/init/reqfieldcode", "/root/init/insuuseyn") );
  158. fInitMainData();
  159. model.setValue("/root/main/mode", "init");
  160. model.setValue("/root/main/modedetail", "init");
  161. model.setValue("/root/main/modedetailstatus", "none");
  162. model.refresh();
  163. fInitMainDataControls(true);
  164. }else{
  165. messageBox("업무부서관리 권한기관이 지정되지 않아서 화면을 조작", "E001");
  166. body.disabled = true;
  167. }
  168. ]]>
  169. </script>
  170. <submission id="TRZSD00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/clsdeptlist"/>
  171. <submission id="TRZSD00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/deptlist"/>
  172. <submission id="TXZSD00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/temp"/>
  173. <submission id="TRZSD00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden"/>
  174. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="urlencoded-post" replace="instance"/>
  175. <submission id="TRZSD00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/search/authorities"/>
  176. <submission id="TRZSD00110" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/deptlisthistory"/>
  177. <submission id="TXZSD00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden"/>
  178. <submission id="TXZSD00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden"/>
  179. <submission id="TXZSD00106" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden"/>
  180. <submission id="TRZSD00109" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/hidden"/>
  181. <submission id="TRZSD00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/clsdeptlist"/>
  182. <submission id="TXZSD00107" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden/temp"/>
  183. <submission id="TXZSD00108" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/search/authorities"/>
  184. <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
  185. <submission id="TRZSD00205" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/init/instlist"/>
  186. </model>
  187. </xhtml:head>
  188. <xhtml:body guideline="1,1201;2,109;1,836;" style="color:transparent; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  189. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  190. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">업무별부서정보관리</caption>
  191. </group>
  192. <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
  193. <group id="group5" style="left:0px; top:10px; width:1194px; height:59px; vertical-align:top; ">
  194. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:59px; "/>
  195. <line id="line12" class="line_4" style="x1:1106px; y1:8px; x2:1106px; y2:51px; "/>
  196. <caption id="caption2" class="search_name" style="left:412px; top:8px; width:143px; height:17px; ">조회기준 상위부서 :</caption>
  197. <select1 id="cmb_standardupdeptcd" ref="/root/main/search/authority" class="combo_essential" appearance="minimal" style="left:555px; top:7px; width:253px; height:19px; ">
  198. <choices>
  199. <itemset nodeset="/root/main/search/authorities/authority">
  200. <label ref="label"/>
  201. <value ref="value"/>
  202. </itemset>
  203. </choices>
  204. <script type="javascript" ev:event="xforms-value-changed">
  205. <![CDATA[
  206. model.setValue("/root/main/search/deptmaster/supdeptcd", "");
  207. model.setValue("/root/main/search/deptmaster/supdeptnm", "");
  208. model.setValue("/root/main/search/deptinfo/deptcd", "");
  209. model.setValue("/root/main/search/deptinfo/depthngnm", "");
  210. model.removenode("/root/main/clsdeptlist");
  211. model.makeNode("/root/main/clsdeptlist");
  212. model.removenode("/root/main/deptlist");
  213. model.makeNode("/root/main/deptlist");
  214. model.removenode("/root/main/depthistorylist");
  215. model.makeNode("/root/main/depthistorylist");
  216. fInitMainData();
  217. model.refresh();
  218. fInitMainDataControls(true);
  219. ]]>
  220. </script>
  221. </select1>
  222. <button id="btn_retrive" class="btn1_letter2" style="left:1120px; top:19px; width:56px; height:22px; ">
  223. <caption>조회</caption>
  224. <script type="javascript" ev:event="DOMActivate">
  225. <![CDATA[
  226. model.removeNodeset("/root/main/depthistorylist");
  227. var instcd = model.getValue("/root/main/search/instcd");
  228. var authority = model.getValue("/root/main/search/authority");
  229. if( instcd == "" ){
  230. messageBox("조회기준 기관을", "C002");
  231. model.setFocus("cmb_inst");
  232. return;
  233. }else if( authority == "" ){
  234. messageBox("조회기준 상위부서를", "C002");
  235. model.setFocus("cmb_standardupdeptcd");
  236. return;
  237. }
  238. model.makeValue("/root/send/data/instcd", instcd);
  239. model.makeValue("/root/send/data/standard", "instsupdeptcd");
  240. model.makeValue("/root/send/data/supdeptcd", "root");
  241. var success = submit("TRZSD00112");//기관담당자가 등록한 부서목록을 검색한다.
  242. if(success){
  243. grd_clsdeptlist.rebuild();//검색한 결과를 트리형태로 표현하기 전에 rebuild한다.
  244. grd_clsdeptlist.colHidden(grd_clsdeptlist.colRef("useyn")) = false;
  245. setTree( grd_clsdeptlist, grd_clsdeptlist.colRef("level"), grd_clsdeptlist.colRef("deptnm"), true );//마스터 트리를 만든다.
  246. var standard = model.getValue("/root/main/search/authority");
  247. model.makeValue("/root/send/data/instcd", instcd);
  248. model.makeValue("/root/send/data/standard", standard);
  249. model.makeValue("/root/send/data/supdeptcd", "root");
  250. success = submit("TRZSD00104");
  251. if(success){
  252. grd_deptlist.rebuild();
  253. setTree(grd_deptlist, grd_deptlist.colRef("level"), grd_deptlist.colRef("inorddeptnm"), true);
  254. grd_clsdeptlist.rebuildStyle();
  255. var dept_standard_idx = grd_clsdeptlist.colRef(standard);
  256. var cls_fixed_rows = grd_clsdeptlist.fixedRows;
  257. var cls_rows = grd_clsdeptlist.rows;
  258. var cls_iscurrent_index = grd_clsdeptlist.colRef("iscurrent");
  259. var cls_color_index = grd_clsdeptlist.colRef("color");
  260. /*기관마스터에 색상부여하기*/
  261. for(var i = cls_fixed_rows; i<cls_rows; i++){
  262. var iscurrent = grd_clsdeptlist.valueMatrix(i, cls_iscurrent_index);//현재 사용중인것과 종료된것을 구분한다.
  263. var assigned_supdeptcd = grd_clsdeptlist.valueMatrix(i, dept_standard_idx);
  264. if(iscurrent=='Y'){//기관에서 현재사용중인부서
  265. grd_clsdeptlist.rowstyle( i , "data" , "background-color" ) = "#ffffff";//현제 기관의 선택된업무에서 사용중인 부서
  266. grd_clsdeptlist.valueMatrix(i, cls_color_index) = "#ffffff";
  267. }else if(iscurrent=='F'){
  268. grd_clsdeptlist.rowstyle( i , "data" , "background-color" ) = "#fcd2c1";//현제 기관에서 사용중이며 미래에 적용될 부서.
  269. grd_clsdeptlist.valueMatrix(i, cls_color_index) = "#fcd2c1";
  270. }else if(iscurrent=='P'){
  271. grd_clsdeptlist.rowstyle( i , "data" , "background-color" ) = "#b9e5fb";//현제 기관에서 사용중이며, 종료된부서.
  272. grd_clsdeptlist.valueMatrix(i, cls_color_index) = "#b9e5fb";
  273. }else{
  274. grd_clsdeptlist.rowstyle( i , "data" , "background-color" ) = "#c8e67b";//현제 기관에서는 사용하지 않는 부서
  275. grd_clsdeptlist.valueMatrix(i, cls_color_index) = "#c8e67b";
  276. }
  277. if(assigned_supdeptcd!=""){
  278. grd_clsdeptlist.valueMatrix(i, grd_clsdeptlist.colRef("useyn")) = "true";
  279. }else{
  280. grd_clsdeptlist.valueMatrix(i, grd_clsdeptlist.colRef("useyn")) = "false";
  281. }
  282. }
  283. /*업무별 부서마스터에 색상부여하기*/
  284. for(var j = grd_deptlist.fixedRows; j<grd_deptlist.rows;j++){
  285. var iscurrent = grd_deptlist.valueMatrix(j, grd_deptlist.colRef("iscurrent"));
  286. if(iscurrent=="Y"){
  287. grd_deptlist.rowstyle( j , "data" , "background-color" ) = "#ffffff";//현제 기관의 선택된업무에서 사용중인 부서
  288. grd_deptlist.valueMatrix(j, grd_deptlist.colRef("color")) = "#ffffff";
  289. }else if(iscurrent=="F"){
  290. grd_deptlist.rowstyle( j , "data" , "background-color" ) = "#fcd2c1";//현제 기관에서는 사용중이며, 종료된부서.
  291. grd_deptlist.valueMatrix(j, grd_deptlist.colRef("color")) = "#fcd2c1";
  292. }else if(iscurrent=="P"){
  293. grd_deptlist.rowstyle( j , "data" , "background-color" ) = "#b9e5fb";//현제 기관에서는 사용중이며, 종료된부서.
  294. grd_deptlist.valueMatrix(j, grd_deptlist.colRef("color")) = "#b9e5fb";
  295. }
  296. }
  297. model.setValue("/root/main/mode", "retrived");
  298. model.setValue("/root/main/modedetail", "init");
  299. model.setValue("/root/main/modedetailstatus", "none");
  300. }
  301. }
  302. ]]>
  303. </script>
  304. </button>
  305. <caption id="caption10" class="search_name" style="left:15px; top:34px; width:101px; height:17px; ">기관부서 :</caption>
  306. <img id="img2" class="icon_search" style="left:362px; top:35px; width:16px; height:16px; background-stretch:stretch; ">
  307. <script type="javascript" ev:event="onclick">
  308. <![CDATA[
  309. if(grd_clsdeptlist.rows<2){
  310. messageBox("조회된 아이템이 없습니다.", "C");
  311. return;
  312. }
  313. var supdeptcolumn = "instsupdeptcd";
  314. var searchcondition = "deptnm";
  315. var searchterm = model.getValue("/root/main/search/deptmaster/supdeptnm");
  316. var receivedeptcdpath = "/root/main/search/deptmaster/supdeptcd";
  317. var receivedeptnmpath = "/root/main/search/deptmaster/supdeptnm";
  318. var instcd = model.getValue("/root/main/search/instcd");
  319. zbcfGetDeptCodeListFromTree(searchcondition, searchterm, instcd, supdeptcolumn, receivedeptcdpath, receivedeptnmpath);
  320. var deptcd = model.getValue("/root/main/search/deptmaster/supdeptcd").getTrim();
  321. var deptnm = model.getValue("/root/main/search/deptmaster/supdeptnm").getTrim();
  322. var selected_index = -1;
  323. if(deptcd!=""&&deptnm!=""){
  324. selected_index = fFindGridTreeItem(grd_clsdeptlist, deptcd, grd_clsdeptlist.colRef("deptcd"), grd_clsdeptlist.colRef("level"));
  325. if(selected_index==-1){
  326. var deptnm = model.getValue("/root/main/search/deptmaster/supdeptnm").getTrim();
  327. messageBox("해당 부서(부서코드:"+deptcd+",부서명:"+deptnm+")이 존재하지 않습니다.", "C");
  328. }else{
  329. grd_clsdeptlist.row = selected_index;
  330. grd_clsdeptlist.topRow = selected_index;
  331. }
  332. }
  333. ]]>
  334. </script>
  335. </img>
  336. <input id="ipt_searchdeptcd" ref="/root/main/search/deptmaster/supdeptnm" class="input_s_essential" navindex="32" editable="false" inputtype="button" style="left:132px; top:33px; width:218px; height:19px; ">
  337. <script type="javascript" ev:event="onbuttonclick">
  338. <![CDATA[
  339. var deptcd = model.getValue("/root/main/search/deptmaster/supdeptcd").getTrim();
  340. var deptnm = model.getValue("/root/main/search/deptmaster/supdeptnm").getTrim();
  341. var selected_index = -1;
  342. if(deptcd!=""&&deptnm!=""){
  343. selected_index = fFindGridTreeItem(grd_clsdeptlist, deptcd, grd_clsdeptlist.colRef("deptcd"), grd_clsdeptlist.colRef("level"));
  344. if(selected_index==-1){
  345. var deptnm = model.getValue("/root/main/search/deptmaster/supdeptnm").getTrim();
  346. messageBox("해당 부서(부서코드:"+deptcd+",부서명:"+deptnm+")이 존재하지 않습니다.", "C");
  347. }else{
  348. grd_clsdeptlist.row = selected_index;
  349. grd_clsdeptlist.topRow = selected_index;
  350. }
  351. }
  352. ]]>
  353. </script>
  354. </input>
  355. <caption id="caption16" class="search_name" style="left:15px; top:9px; width:127px; height:17px; ">조회기준 기관 :</caption>
  356. <img id="img4" class="icon_search" style="left:790px; top:34px; width:16px; height:16px; background-stretch:stretch; ">
  357. <script type="javascript" ev:event="onclick">
  358. <![CDATA[
  359. if(grd_deptlist.rows<2){
  360. messageBox("조회된 아이템이 없습니다.", "C");
  361. return;
  362. }
  363. var supdeptcolumn = model.getValue("/root/main/search/authority");
  364. var searchcondition = "deptnm";
  365. var searchterm = model.getValue("/root/main/search/deptinfo/depthngnm");
  366. var receivedeptcdpath = "/root/main/search/deptinfo/deptcd";
  367. var receivedeptnmpath = "/root/main/search/deptinfo/depthngnm";
  368. var instcd = model.getValue("/root/main/search/instcd");
  369. zbcfGetDeptCodeListFromTree(searchcondition, searchterm, instcd, supdeptcolumn, receivedeptcdpath, receivedeptnmpath);
  370. var deptcd = model.getValue("/root/main/search/deptinfo/deptcd").getTrim();
  371. var deptnm = model.getValue("/root/main/search/deptinfo/depthngnm").getTrim();
  372. var selected_index = -1;
  373. if(deptcd!=""&&deptnm!=""){
  374. selected_index = fFindGridTreeItem(grd_deptlist, deptcd, grd_deptlist.colRef("deptcd"), grd_deptlist.colRef("level"));
  375. if(selected_index==-1){
  376. messageBox("해당 부서(부서코드:"+deptcd+",부서명:"+deptnm+")이 존재하지 않습니다.", "C");
  377. }else{
  378. grd_deptlist.row = selected_index;
  379. grd_deptlist.topRow = selected_index;
  380. }
  381. }
  382. ]]>
  383. </script>
  384. </img>
  385. <caption id="caption17" class="search_name" style="left:413px; top:34px; width:142px; height:17px; ">업무별부서 :</caption>
  386. <input id="input1" ref="/root/main/search/deptinfo/depthngnm" class="input_s_essential" navindex="32" editable="false" inputtype="button" style="left:555px; top:33px; width:225px; height:19px; ">
  387. <script type="javascript" ev:event="onbuttonclick">
  388. <![CDATA[
  389. var deptcd = model.getValue("/root/main/search/deptinfo/deptcd").getTrim();
  390. var deptnm = model.getValue("/root/main/search/deptinfo/depthngnm").getTrim();
  391. var selected_index = -1;
  392. if(deptcd!=""&&deptnm!=""){
  393. selected_index = fFindGridTreeItem(grd_deptlist, deptcd, grd_deptlist.colRef("deptcd"), grd_deptlist.colRef("level"));
  394. if(selected_index==-1){
  395. messageBox("해당 부서(부서코드:"+deptcd+",부서명:"+deptnm+")이 존재하지 않습니다.", "C");
  396. }else{
  397. grd_deptlist.row = selected_index;
  398. grd_deptlist.topRow = selected_index;
  399. }
  400. }
  401. ]]>
  402. </script>
  403. </input>
  404. <select1 id="cmb_inst" ref="/root/main/search/instcd" class="combo_essential" appearance="minimal" style="left:132px; top:8px; width:253px; height:19px; ">
  405. <choices>
  406. <itemset nodeset="/root/init/instlist/inst">
  407. <label ref="label"/>
  408. <value ref="value"/>
  409. </itemset>
  410. </choices>
  411. <script type="javascript" ev:event="xforms-value-changed">
  412. <![CDATA[
  413. var instcd = model.getValue("/root/main/search/instcd");
  414. model.setValue("/root/send/data/instcd", instcd);
  415. var success = submit("TRZSD00108");
  416. model.setValue("/root/main/search/deptmaster/supdeptcd", "");
  417. model.setValue("/root/main/search/deptmaster/supdeptnm", "");
  418. model.setValue("/root/main/search/deptinfo/deptcd", "");
  419. model.setValue("/root/main/search/deptinfo/depthngnm", "");
  420. model.removenode("/root/main/clsdeptlist");
  421. model.makeNode("/root/main/clsdeptlist");
  422. model.removenode("/root/main/deptlist");
  423. model.makeNode("/root/main/deptlist");
  424. model.removenode("/root/main/depthistorylist");
  425. model.makeNode("/root/main/depthistorylist");
  426. fInitMainData();
  427. model.refresh();
  428. fInitMainDataControls(true);
  429. ]]>
  430. </script>
  431. </select1>
  432. </group>
  433. <caption id="caption12" ref="/root/main/label/left" class="tit_2" style="left:5px; top:85px; width:110px; height:13px; ">기관부서마스터</caption>
  434. <line id="line15" class="line_1" style="x1:0px; y1:100px; x2:1194px; y2:100px; "/>
  435. <img id="img3">
  436. <script type="javascript" ev:event="onclick">
  437. <![CDATA[
  438. var searchcondition = "deptnm";
  439. var searchterm = model.getValue("/root/main/search/deptcd");
  440. var receivedeptcdpath = "/root/main/search/deptcd";
  441. var receivedeptnmpath = "/root/main/search/deptnm";
  442. zbcfOpenMasterDeptCodeList(searchcondition, searchterm, receivedeptcdpath, receivedeptnmpath);
  443. ]]>
  444. </script>
  445. </img>
  446. <datagrid id="grd_clsdeptlist" nodeset="/root/main/clsdeptlist/dept" scroll="autovscroll" caption="^색상^상위 부서명^부서명^부서영문명^부서한문명^부서영문약어^부서한글약어^부서코드^기획상위부서^진료 상위부서^인사 상위부서^구매 상위부서^재무 상위부서^간호 상위부서^총무 상위부서^수납 상위부서^원무 상위부서^의료정보 상위부서^보험 상위부서^근태 상위부서^그룹웨어상위부서코드^기관상위부서코드^기관코드^유효시작일자^유효종료일자^현재사용여부^레벨" colsep="▦" colwidth="16, 100, 300, 300, 100, 100, 100, 100, 140, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" defaultrows="0" extendlastcol="noscroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="▩" select.background-color="transparent" style="left:0px; top:105px; width:380px; height:435px; border-color:#808080; ">
  447. <col checkvalue="true,false" disabled="true" ref="useyn" type="checkbox" visibility="hidden"/>
  448. <col ref="color" visibility="hidden"/>
  449. <col ref="supdeptnm" visibility="hidden"/>
  450. <col ref="deptnm"/>
  451. <col ref="deptengnm" visibility="hidden"/>
  452. <col ref="deptchinm" visibility="hidden"/>
  453. <col ref="deptengabbr" visibility="hidden"/>
  454. <col ref="depthngabbr" visibility="hidden"/>
  455. <col ref="deptcd" visibility="hidden"/>
  456. <col ref="plansupdeptcd" visibility="hidden"/>
  457. <col ref="ordsupdeptcd" visibility="hidden"/>
  458. <col ref="psnworksupdeptcd" visibility="hidden"/>
  459. <col ref="purcsupdeptcd" visibility="hidden"/>
  460. <col ref="fnworksupdeptcd" visibility="hidden"/>
  461. <col ref="caresupdeptcd" visibility="hidden"/>
  462. <col ref="gafrsupdeptcd" visibility="hidden"/>
  463. <col ref="rcptsupdeptcd" visibility="hidden"/>
  464. <col ref="pamsupdeptcd" visibility="hidden"/>
  465. <col ref="healcareinfosupdeptcd" visibility="hidden"/>
  466. <col ref="insusupdeptcd" visibility="hidden"/>
  467. <col ref="dgensupdeptcd" visibility="hidden"/>
  468. <col ref="homecaresupdeptcd" visibility="hidden"/>
  469. <col ref="instsupdeptcd" visibility="hidden"/>
  470. <col ref="instcd" visibility="hidden"/>
  471. <col ref="valifromdd" visibility="hidden"/>
  472. <col ref="valitodd" visibility="hidden"/>
  473. <col ref="iscurrent" visibility="hidden"/>
  474. <col ref="level" visibility="hidden"/>
  475. </datagrid>
  476. <img id="img_mv_right" class="icon_right" style="left:382px; top:275px; width:26px; height:19px; background-stretch:stretch; ">
  477. <script type="javascript" ev:event="onclick">
  478. <![CDATA[
  479. var mode = model.getValue("/root/main/mode");//부서정보관리프로그램에서 프로그램의 현재상태를 얻어온다.
  480. if(mode!="retrived"){//검색이 되지 않은상태에서 부서관리작업을 수행할수 없다.
  481. messageBox("검색되지 않은상태에서 작업을 진행할수", "I004");
  482. return;
  483. }
  484. var modedetail = model.getValue("/root/main/modedetail");
  485. if(modedetail!="init"&&modedetail!="reorg"){
  486. if(modedetail=="update"){
  487. var nextstep = messageBox("부서이력 수정작업중이었습니다. 수정작업이 초기화되며, 출력상태변경 작업을 진행하게 됩니다", "S001");
  488. if(nextstep==6){
  489. messageBox("업무별 부서 상위부서 및 출력순서 변경작업을 진행합니다.", "I");
  490. }else{
  491. return;
  492. }
  493. }
  494. fInitialize();
  495. }
  496. var src_row = grd_clsdeptlist.row;
  497. if(src_row==-1){
  498. messageBox("이동할 대상 부서를 선택하지 않은상태에서 이동", "E001");
  499. return;
  500. }
  501. /*
  502. 임시로 등록할 자원이 이미 등록되어 있는 자원인지 판단한다.
  503. */
  504. var standard = model.getValue("/root/main/search/authority");
  505. var master_standard_supdeptcd = grd_clsdeptlist.valueMatrix(src_row, grd_clsdeptlist.colRef(standard));
  506. if(master_standard_supdeptcd!=""){
  507. messageBox("이미 등록된부서는 이동", "E001");
  508. return;
  509. }
  510. /*
  511. 등록된 자원중 어느행을 대상으로 삽입할것인지 얻어온다.
  512. */
  513. var dest_row = grd_deptlist.row;
  514. var dest_row_style = grd_deptlist.valueMatrix(dest_row, grd_deptlist.colRef("color"));
  515. if(dest_row_style=="#b9e5fb"){
  516. messageBox("종료된 부서하위로 이동", "E001");
  517. return;
  518. }
  519. var modedetail = model.getValue("/root/main/modedetail");
  520. if(modedetail!="init"&&modedetail!="reorg"){
  521. if(modedetail=="create"){
  522. var nextstep = messageBox("부서이력 추가작업중이었습니다. 추가작업이 초기화되며, 출력상태변경 작업을 진행하게 됩니다", "S001");
  523. if(nextstep==6){
  524. messageBox("출력상태 변경작업을 진행합니다.", "I");
  525. }else{
  526. return;
  527. }
  528. }else if(modedetail=="update"){
  529. var nextstep = messageBox("부서이력 수정작업중이었습니다. 수정작업이 초기화되며, 출력상태변경 작업을 진행하게 됩니다", "S001");
  530. if(nextstep==6){
  531. messageBox("출력상태 변경작업을 진행합니다.", "I");
  532. }else{
  533. return;
  534. }
  535. }
  536. fInitialize();
  537. }
  538. var child_info = fGetGridTreeNextChild(grd_deptlist, dest_row, "level", "deptcd");
  539. var child_offset = child_info[0];
  540. var insert_index = child_info[1];
  541. var child_index = child_info[2];
  542. var parents = child_info[3];
  543. var child_level = child_info[4];
  544. var child_seq = new Number(child_info[5]);
  545. if(insert_index==-1){
  546. messageBox("최상위 부서를 추가합니다.", "I");
  547. grd_deptlist.addItem();
  548. }else{
  549. grd_deptlist.insertrow(insert_index, "after", false);
  550. }
  551. /*
  552. 기관관리자가 등록한 해당부서의 속성을 가져온다.
  553. 부서코드와 유효종료일자를 PrimaryKey로 하여 기관관리자가 등록한 해당부서의 속성을 가져온다.
  554. */
  555. var master_instcd = model.getValue("/root/main/search/instcd");
  556. var master_deptcd = grd_clsdeptlist.valueMatrix(grd_clsdeptlist.row, grd_clsdeptlist.colRef("deptcd"));
  557. var master_valifromdd = grd_clsdeptlist.valueMatrix(grd_clsdeptlist.row, grd_clsdeptlist.colRef("valifromdd"));
  558. var master_valitodd = grd_clsdeptlist.valueMatrix(grd_clsdeptlist.row, grd_clsdeptlist.colRef("valitodd"));
  559. model.makeValue("/root/send/data/instcd", master_instcd);
  560. model.makeValue("/root/send/data/deptcd", master_deptcd);
  561. model.makeValue("/root/send/data/valifromdd", master_valifromdd);
  562. model.makeValue("/root/send/data/valitodd", master_valitodd);
  563. submit("TRZSD00106");
  564. model.removenode("/root/send/data");
  565. model.makeNode("/root/send/data");
  566. var dept_size = instance1.selectNodes("/root/hidden/dept").length;
  567. if(dept_size!=1){
  568. messageBox("조회한 부서의 이력이 다른사용자에 의해 삭제되었습니다. 다시조회한 후에 작업하시기 바랍니다.", "C");
  569. model.setValue("/root/main/search/deptmaster/supdeptcd", "");
  570. model.removenode("/root/main/clsdeptlist");
  571. model.makeNode("/root/main/clsdeptlist");
  572. model.removenode("/root/main/deptlist");
  573. model.makeNode("/root/main/deptlist");
  574. model.setValue("/root/main/mode", "init");
  575. model.setValue("/root/main/modedetail", "init");
  576. model.setValue("/root/main/modedetailstatus", "none");
  577. fInitMainData();
  578. model.refresh();
  579. fInitMainDataControls(true);
  580. return;
  581. }else{
  582. fMVInstMaster2BizMaster(grd_clsdeptlist.row, child_index, standard, dest_row, parents, child_seq, child_level);
  583. model.setValue("/root/main/modedetail", "reorg");
  584. model.setValue("/root/main/modedetailstatus", "");
  585. }
  586. grd_deptlist.topRow = grd_deptlist.row;
  587. ]]>
  588. </script>
  589. </img>
  590. <group id="group_master" style="left:228px; top:79px; width:145px; height:19px; ">
  591. <button id="btn_clsdepttotalopen" class="btn2_letter5" style="left:0px; top:0px; width:75px; height:19px; ">
  592. <caption>전체펼치기</caption>
  593. <script type="javascript" ev:event="DOMActivate">
  594. <![CDATA[
  595. for(var i=grd_clsdeptlist.fixedRows; i<grd_clsdeptlist.rows;i++){
  596. grd_clsdeptlist.iscollapsed(i)=false;
  597. }
  598. ]]>
  599. </script>
  600. </button>
  601. <button id="btn_clsdepttotalclose" class="btn2_letter4" style="left:76px; top:0px; width:64px; height:19px; ">
  602. <caption>전체닫기</caption>
  603. <script type="javascript" ev:event="onclick">
  604. <![CDATA[
  605. for(var i=grd_clsdeptlist.fixedRows; i<grd_clsdeptlist.rows;i++){
  606. grd_clsdeptlist.iscollapsed(i)=true;
  607. }
  608. ]]>
  609. </script>
  610. </button>
  611. </group>
  612. <group id="group6" style="left:533px; top:79px; width:275px; height:19px; ">
  613. <button id="btn_bizdepttree_open" class="btn2_letter5" style="left:0px; top:0px; width:75px; height:19px; ">
  614. <caption>전체펼치기</caption>
  615. <script type="javascript" ev:event="DOMActivate">
  616. <![CDATA[
  617. for(var i=grd_deptlist.fixedRows; i<grd_deptlist.rows;i++){
  618. grd_deptlist.iscollapsed(i)=false;
  619. }
  620. ]]>
  621. </script>
  622. </button>
  623. <button id="btn_bizdepttree_close" class="btn2_letter4" style="left:76px; top:0px; width:64px; height:19px; ">
  624. <caption>전체닫기</caption>
  625. <script type="javascript" ev:event="onclick">
  626. <![CDATA[
  627. for(var i=grd_deptlist.fixedRows; i<grd_deptlist.rows;i++){
  628. grd_deptlist.iscollapsed(i)=true;
  629. }
  630. ]]>
  631. </script>
  632. </button>
  633. <button id="btn_bizdepttree_relocate" class="btn2_letter4" style="left:141px; top:0px; width:64px; height:19px; ">
  634. <caption>위치이동</caption>
  635. <script type="javascript" ev:event="DOMActivate">
  636. <![CDATA[
  637. var modedetail = model.getValue("/root/main/modedetail");
  638. if(modedetail!="init"&&modedetail!="reorg"){
  639. if(modedetail=="update"){
  640. var nextstep = messageBox("부서이력 수정작업중이었습니다. 수정작업이 초기화되며, 위치이동 작업을 진행하게 됩니다", "S001");
  641. if(nextstep==6){
  642. messageBox("위치이동 작업을 진행합니다.", "C");
  643. }else{
  644. return;
  645. }
  646. }
  647. fInitialize();
  648. }
  649. var mv_src = grd_deptlist.row;
  650. if(mv_src<1){
  651. messageBox("위치이동 대상 부서를", "C002") ;
  652. return;
  653. }else{
  654. model.setValue("/root/main/move/mvsrc", mv_src);
  655. model.resetInstanceNode("/root/main/move/mvdest");
  656. modal("SPZSD00400",1,"","","SPZSD00400","/root/main/deptlist","/root/main/deptlist");
  657. var mv_dest = model.getValue("/root/main/move/mvdest").getTrim();
  658. if( mv_dest!="" && mv_dest!=null ){
  659. var mv_dest_deptcd = grd_deptlist.valueMatrix(mv_dest, grd_deptlist.colRef("deptcd"));
  660. var mv_dest_depthngnm = grd_deptlist.valueMatrix(mv_dest, grd_deptlist.colRef("depthngnm"));
  661. var last_src = fCacheDeptBundle(grd_deptlist, mv_src, "/root/main/deptlist/dept", "/root/main/temp/mvsrc");
  662. var src_level = new Number(grd_deptlist.valueMatrix(mv_src, grd_deptlist.colRef("level")));
  663. var standard_supdeptcd_cols = model.getValue("/root/main/search/authority");
  664. var standard_displayseq_cols = standard_supdeptcd_cols.substring(0, standard_supdeptcd_cols.indexOf("supdeptcd")) + "dispseq";
  665. var mv_src_parents = grd_deptlist.valueMatrix(mv_src, grd_deptlist.colRef(standard_supdeptcd_cols));
  666. for(var i=0; i<instance1.selectNodes("/root/main/temp/mvsrc").length; i++){
  667. grd_deptlist.deleterow(mv_src, false);
  668. }
  669. fReorgSequenceFromBizDeptGrid(grd_deptlist, mv_src_parents, standard_supdeptcd_cols, standard_displayseq_cols);
  670. mv_dest = fFindItem(grd_deptlist, mv_dest_deptcd, "deptcd");
  671. var last_dest = fCacheDeptBundle(grd_deptlist, mv_dest, "/root/main/deptlist/dept", "/root/main/temp/mvdest");
  672. var dest_level = new Number(grd_deptlist.valueMatrix(mv_dest, grd_deptlist.colRef("level")));
  673. var difference = dest_level-src_level;
  674. fCache2Grid("/root/main/temp/mvsrc", last_dest, difference);
  675. grd_deptlist.valueMatrix(new Number(last_dest)+1, grd_deptlist.colRef(standard_supdeptcd_cols)) = mv_dest_deptcd;
  676. fReorgSequenceFromBizDeptGrid(grd_deptlist, mv_dest_deptcd, standard_supdeptcd_cols, standard_displayseq_cols);
  677. grd_deptlist.valueMatrix(new Number(last_dest)+1, grd_deptlist.colRef("supdeptnm")) = mv_dest_depthngnm;
  678. var src_root_rowstatus = grd_deptlist.valueMatrix(new Number(last_dest)+1, grd_deptlist.colRef("rowstatus"));
  679. if(src_root_rowstatus!=1){
  680. grd_deptlist.valueMatrix(new Number(last_dest)+1, grd_deptlist.colRef("rowstatus")) = 2;
  681. }
  682. setTreeItem(grd_deptlist, grd_deptlist.colRef("level"), grd_deptlist.colRef("inorddeptnm"));
  683. fRefreshGridRowStatus(grd_deptlist, "rowstatus");
  684. model.setValue("/root/main/modedetail", "reorg");
  685. model.setValue("/root/main/modedetailstatus", "none");
  686. grd_deptlist.topRow = grd_deptlist.row;
  687. }
  688. }
  689. ]]>
  690. </script>
  691. </button>
  692. <button id="btn_selectdepthistory" class="btn2_letter4" style="left:206x; top:0px; width:64px; height:19px; ">
  693. <caption>이력선택</caption>
  694. <script type="javascript" ev:event="onclick">
  695. <![CDATA[
  696. var modedetail = model.getValue("/root/main/modedetail");
  697. if(modedetail=="reorg"){
  698. messageBox("출력순서 재조정이나 위치이동을 하는 재구성 작업중에는 이력을 선택할수 없습니다.", "C");
  699. return;
  700. }
  701. var row = grd_deptlist.row;
  702. if(row<1){
  703. messageBox("부서코드 목록을 선택하세요.", "C");
  704. return;
  705. }
  706. var color_status = grd_deptlist.valueMatrix(row, grd_deptlist.colRef("color"));
  707. fClearDeptHistory();
  708. model.refresh();
  709. if(color_status=="#dec6a4"){//임시인 경우
  710. model.setValue("/root/main/label/deptinfo", "부서정보추가");
  711. grd_depthistorylist.addItem();
  712. var add_offset = 1;
  713. fDept2DeptHistory(grd_deptlist.row,add_offset);
  714. }else{//임시가 아닌경우
  715. var deptcd = grd_deptlist.valueMatrix(row, grd_deptlist.colRef("deptcd"));
  716. model.removenode("/root/send/data");
  717. var instcd = model.getValue("/root/main/search/instcd");
  718. model.makeValue("/root/send/data/instcd", instcd);
  719. model.makeValue("/root/send/data/deptcd", deptcd);
  720. submit("TRZSD00110");
  721. for( var i=grd_depthistorylist.fixedrows; i<grd_depthistorylist.rows; i++){
  722. var iscurrent = grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("iscurrent"));
  723. if(iscurrent=='Y'){//기관에서 현재사용중인부서
  724. grd_depthistorylist.rowstyle( i , "data" , "background-color" ) = "#ffffff";//현제 기관의 선택된업무에서 사용중인 부서
  725. grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("color")) = "#ffffff";
  726. }else if(iscurrent=='F'){
  727. grd_depthistorylist.rowstyle( i , "data" , "background-color" ) = "#fcd2c1";//현제 기관에서 사용중이며 미래에 적용될 부서.
  728. grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("color")) = "#fcd2c1";
  729. }else if(iscurrent=='P'){
  730. grd_depthistorylist.rowstyle( i , "data" , "background-color" ) = "#b9e5fb";//현제 기관에서 사용중이며, 종료된부서.
  731. grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("color")) = "#b9e5fb";
  732. }
  733. }
  734. var history_target_deptcd = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd"));
  735. var history_target_valifromdd = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("valifromdd"));
  736. for( var i=grd_depthistorylist.fixedrows; i<grd_depthistorylist.rows; i++){
  737. var history_deptcd = grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("deptcd"));
  738. var history_valifromdd = grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("valifromdd"));
  739. if(history_target_deptcd==history_deptcd && history_target_valifromdd==history_valifromdd){
  740. grd_depthistorylist.row = i;
  741. break;
  742. }
  743. }
  744. }
  745. fInitMainDataControls(false);
  746. fHistoryGrid2Main();
  747. model.setValue("/root/main/modedetail", "retrived");
  748. model.setValue("/root/main/label/deptinfo", "부서정보보기")
  749. model.refresh();
  750. fInitMainDataControls(true);
  751. ]]>
  752. </script>
  753. </button>
  754. </group>
  755. <group id="group2" style="left:1140px; top:79px; width:45px; height:20px; ">
  756. <button id="btn_update" class="btn2_letter2" visibility="hidden" style="left:0px; top:0px; width:42px; height:19px; ">
  757. <caption>수정</caption>
  758. <script type="javascript" ev:event="DOMActivate">
  759. <![CDATA[
  760. var modedetail = model.getValue("/root/main/modedetail");
  761. if(modedetail=="reorg"){
  762. messageBox("출력순서 재조정이나 위치이동을 하는 재구성 작업중에는 이력수정에 해당하는 '추가','수정' 작업을 수행할수 없습니다.", "C");
  763. return;
  764. }
  765. var history_selected = fGridSelected(grd_depthistorylist);
  766. if(!history_selected){
  767. messageBox("부서이력목록을", "C002");
  768. return;
  769. }
  770. var history_status = fGetDeptHistoryStatus(grd_depthistorylist.row);
  771. if(history_status=="present"){
  772. var has_future = fHasDeptHistoryBundle("future");
  773. if(has_future){
  774. messageBox("미래이력을 가지고 있는 경우에는 현재이력을 수정할수 없습니다.", "C");
  775. return;
  776. }
  777. var valitodd = grd_depthistorylist.valueMatrix(grd_depthistorylist.row, grd_depthistorylist.colRef("valitodd"));
  778. var current_date = new Date();
  779. var next_date = current_date.getAddDate(1, "D");
  780. var next_date_string = next_date.getDateFormat("YYYYMMDD");
  781. if(valitodd<next_date_string){
  782. messageBox("현재이력의 종료일자가 현재일자와 같거나 더 작다면 현재이력을 변경하여, 현재이력과 미래이력으로 나눌수 없습니다.", "C");
  783. return;
  784. }
  785. fHistoryGrid2Main();
  786. model.refresh();
  787. fInitMainDataControls(true);
  788. var standard = model.getValue("/root/main/search/authority");
  789. if("plansupdeptcd"==standard){
  790. cmb_planuseyn.disabled = false;
  791. var planuseyn = model.getValue("/root/main/data/planuseyn");
  792. model.setValue("/root/main/prevdata/standarduseyn", planuseyn);
  793. model.setValue("/root/main/prevdata/standardflag", "");
  794. }else if("ordsupdeptcd"==standard){
  795. cmb_orduseyn.disabled = false;
  796. cmb_orddeptflag.disabled = false;
  797. var orduseyn = model.getValue("/root/main/data/orduseyn");
  798. var orddeptflag = model.getValue("/root/main/prevdata/standardflag");
  799. model.setValue("/root/main/prevdata/standarduseyn", orduseyn);
  800. model.setValue("/root/main/prevdata/standardflag", orddeptflag);
  801. }else if("psnworksupdeptcd"==standard){
  802. cmb_psnworkuseyn.disabled = false;
  803. var psnworkuseyn = model.getValue("/root/main/data/psnworkuseyn");
  804. model.setValue("/root/main/prevdata/standarduseyn", psnworkuseyn);
  805. model.setValue("/root/main/prevdata/standardflag", "");
  806. }else if("purcsupdeptcd"==standard){
  807. cmb_purcuseyn.disabled = false;
  808. var purcuseyn = model.getValue("/root/main/data/purcuseyn");
  809. model.setValue("/root/main/prevdata/standarduseyn", purcuseyn);
  810. model.setValue("/root/main/prevdata/standardflag", "");
  811. }else if("fnworksupdeptcd"==standard){
  812. cmb_fnworkuseyn.disabled = false;
  813. var fnworkuseyn = model.getValue("/root/main/data/fnworkuseyn");
  814. model.setValue("/root/main/prevdata/standarduseyn", fnworkuseyn);
  815. model.setValue("/root/main/prevdata/standardflag", "");
  816. }else if("caresupdeptcd"==standard){
  817. cmb_careuseyn.disabled = false;
  818. var careuseyn = model.getValue("/root/main/data/careuseyn");
  819. model.setValue("/root/main/prevdata/standarduseyn", careuseyn);
  820. model.setValue("/root/main/prevdata/standardflag", "");
  821. }else if("gafrsupdeptcd"==standard){
  822. cmb_gafruseyn.disabled = false;
  823. var gafruseyn = model.getValue("/root/main/data/gafruseyn");
  824. model.setValue("/root/main/prevdata/standarduseyn", gafruseyn);
  825. model.setValue("/root/main/prevdata/standardflag", "");
  826. }else if("rcptsupdeptcd"==standard){
  827. cmb_rcptuseyn.disabled = false;
  828. var rcptuseyn = model.getValue("/root/main/data/rcptuseyn");
  829. model.setValue("/root/main/prevdata/standarduseyn", rcptuseyn);
  830. model.setValue("/root/main/prevdata/standardflag", "");
  831. }else if("pamsupdeptcd"==standard){
  832. cmb_pamuseyn.disabled = false;
  833. var pamuseyn = model.getValue("/root/main/data/pamuseyn");
  834. model.setValue("/root/main/prevdata/standarduseyn", pamuseyn);
  835. model.setValue("/root/main/prevdata/standardflag", "");
  836. }else if("healcareinfosupdeptcd"==standard){
  837. cmb_healcareinfouseyn.disabled = false;
  838. var healcareinfouseyn = model.getValue("/root/main/data/healcareinfouseyn");
  839. model.setValue("/root/main/prevdata/standarduseyn", healcareinfouseyn);
  840. model.setValue("/root/main/prevdata/standardflag", "");
  841. }else if("insusupdeptcd"==standard){
  842. cmb_insuuseyn.disabled = false;
  843. var insuuseyn = model.getValue("/root/main/data/insuuseyn");
  844. model.setValue("/root/main/prevdata/standarduseyn", insuuseyn);
  845. model.setValue("/root/main/prevdata/standardflag", "");
  846. }else if("dgensupdeptcd"==standard){
  847. cmb_dgenuseyn.disabled = false;
  848. var dgenuseyn = model.getValue("/root/main/data/dgenuseyn");
  849. model.setValue("/root/main/prevdata/standarduseyn", dgenuseyn);
  850. model.setValue("/root/main/prevdata/standardflag", "");
  851. }else if("homecaresupdeptcd"==standard){
  852. cmb_homecareuseyn.disabled = false;
  853. var homecareuseyn = model.getValue("/root/main/data/homecareuseyn");
  854. model.setValue("/root/main/prevdata/standarduseyn", homecareuseyn);
  855. model.setValue("/root/main/prevdata/standardflag", "");
  856. }else{
  857. messageBox("ERROR=>unexpected standard : "+standard, "C");
  858. }
  859. model.setValue("/root/main/modedetail", "update");
  860. model.setValue("/root/main/modedetailstatus", "present");
  861. model.setValue("/root/main/label/deptinfo", "부서정보수정");
  862. model.refresh();
  863. }else if(history_status=="future"){
  864. messageBox("업무담당자는 미래이력을 수정할수 없습니다.", "C");
  865. }else if(history_status=="past"){
  866. messageBox("과거이력은 수정할 수 없습니다.", "C");
  867. }else{
  868. messageBox("ERROR => history_status : "+history_status, "C");
  869. }
  870. ]]>
  871. </script>
  872. </button>
  873. </group>
  874. <input id="ipt_deptcd" ref="/root/main/data/deptcd" class="input_essential" navindex="3" style="left:964px; top:154px; width:228px; height:19px; "/>
  875. <input id="ipt_inorddeptnm" ref="/root/main/data/inorddeptnm" class="input_essential" navindex="4" maxlength="21" style="left:964px; top:178px; width:228px; height:19px; ">
  876. <script type="javascript" ev:event="onkeyup">
  877. <![CDATA[
  878. var strlen = 0;
  879. var str = ipt_inorddeptnm.currentText
  880. for (var i=0; i<str.length; i++) {
  881. strlen += (str.charCodeAt(i) > 128) ? 2 : 1;
  882. if (strlen > 64) {
  883. messageBox("최대입력글자인 64byte를 ", "E003");
  884. strlen -= (str.charCodeAt(i) > 128) ? 2 : 1;
  885. break;
  886. }
  887. }
  888. ]]>
  889. </script>
  890. </input>
  891. <input id="ipt_deptchinm" ref="/root/main/data/deptchinm" class="input_essential" navindex="6" maxlength="21" style="left:964px; top:225px; width:228px; height:19px; ">
  892. <script type="javascript" ev:event="onkeyup">
  893. <![CDATA[
  894. var strlen = 0;
  895. var str = ipt_deptchinm.currentText
  896. for (var i=0; i<str.length; i++) {
  897. strlen += (str.charCodeAt(i) > 128) ? 2 : 1;
  898. if (strlen > 64) {
  899. messageBox("최대입력글자인 64byte를 ", "E003");
  900. strlen -= (str.charCodeAt(i) > 128) ? 2 : 1;
  901. break;
  902. }
  903. }
  904. ]]>
  905. </script>
  906. </input>
  907. <input id="ipt_deptengnm" ref="/root/main/data/deptengnm" class="input_essential" navindex="5" imemode="disabled" maxlength="21" style="left:964px; top:201px; width:228px; height:19px; ">
  908. <script type="javascript" ev:event="onkeyup">
  909. <![CDATA[
  910. var strlen = 0;
  911. var str = ipt_deptengnm.currentText
  912. for (var i=0; i<str.length; i++) {
  913. strlen += (str.charCodeAt(i) > 128) ? 2 : 1;
  914. if (strlen > 64) {
  915. messageBox("최대입력글자인 64byte를 ", "E003");
  916. strlen -= (str.charCodeAt(i) > 128) ? 2 : 1;
  917. break;
  918. }
  919. }
  920. ]]>
  921. </script>
  922. </input>
  923. <input id="ipt_valifromdd" ref="/root/main/data/valifromdd" class="input_search" navindex="1" inputtype="date" style="left:964px; top:106px; width:228px; height:19px; ">
  924. <script type="javascript" ev:event="onbuttonclick">
  925. <![CDATA[
  926. ipt_valifromdd.attribute("_value") = ipt_valifromdd.value;
  927. ]]>
  928. </script>
  929. <script type="javascript" ev:event="DOMFocusIn">
  930. <![CDATA[
  931. ipt_valifromdd.attribute("_value") = ipt_valifromdd.value;
  932. ]]>
  933. </script>
  934. <script type="javascript" ev:event="xforms-value-changed">
  935. <![CDATA[
  936. var mode_detail = model.getValue("/root/main/modedetail");
  937. if(mode_detail=="create"){//추가시 상위부서를 지정하는 경우
  938. //시작일자는 종료일자보다 클수 없으며, 시작일자는 오늘이후여야 한다.
  939. var from = model.getValue("/root/main/data/valifromdd");
  940. var to= model.getValue("/root/main/data/valitodd");
  941. var isvalid_from = isValidDateTime(from, "YYYYMMDD");
  942. if(!isvalid_from){
  943. messageBox("유효시작일자의 지정된 일자가 잘못되었습니다. 다시 입력하세요.", "C");
  944. ipt_valifromdd.value = ipt_valifromdd.attribute("_value");
  945. model.setFocus("ipt_valifromdd");
  946. return;
  947. }
  948. var is_valid_duration = fValidateDuration(from, to);
  949. if(!is_valid_duration){
  950. messageBox("유효시작일자는 유효종료일자보다 클수 없습니다.", "C");
  951. ipt_valifromdd.value = ipt_valifromdd.attribute("_value");
  952. model.setFocus("ipt_valifromdd");
  953. return;
  954. }
  955. var present_valitodd = fGetValueFromDeptHistory("present", "valitodd");
  956. if(present_valitodd!=""){
  957. if(from<=present_valitodd){
  958. messageBox("미래이력의 시작일자는 현재이력의 종료일자보다 커야합니다.", "C");
  959. ipt_valifromdd.value = ipt_valifromdd.attribute("_value");
  960. model.setFocus("ipt_valifromdd");
  961. return;
  962. }
  963. }else{
  964. var current_date = new Date();
  965. var min_valifromdd = current_date.getDateFormat("YYYYMMDD");
  966. if(from<min_valifromdd){
  967. messageBox("미래이력의 시작일자는 현재일자와 같거나 더 커야합니다.", "C");
  968. ipt_valifromdd.value = ipt_valifromdd.attribute("_value");
  969. model.setFocus("ipt_valifromdd");
  970. return;
  971. }
  972. }
  973. }else if(mode_detail=="update"){
  974. var mode_detail_status = model.getValue("/root/main/modedetailstatus");
  975. if(mode_detail_status=="future"){
  976. var from = model.getValue("/root/main/data/valifromdd");
  977. var to= model.getValue("/root/main/data/valitodd");
  978. var isvalid_from = isValidDateTime(from, "YYYYMMDD");
  979. if(!isvalid_from){
  980. messageBox("유효시작일자의 지정된 일자가 잘못되었습니다. 다시 입력하세요.", "C");
  981. ipt_valifromdd.value = ipt_valifromdd.attribute("_value");
  982. model.setFocus("ipt_valifromdd");
  983. return;
  984. }
  985. var is_valid_duration = fValidateDuration(from, to);
  986. if(!is_valid_duration){
  987. messageBox("유효시작일자는 유효종료일자보다 클수 없습니다.", "C");
  988. ipt_valifromdd.value = ipt_valifromdd.attribute("_value");
  989. model.setFocus("ipt_valifromdd");
  990. return;
  991. }
  992. var present_valitodd = fGetValueFromDeptHistory("present", "valitodd");
  993. if(present_valitodd!=""){
  994. if(from<=present_valitodd){
  995. messageBox("미래이력의 시작일자는 현재이력의 종료일자보다 커야합니다.", "C");
  996. ipt_valifromdd.value = ipt_valifromdd.attribute("_value");
  997. model.setFocus("ipt_valifromdd");
  998. return;
  999. }
  1000. }else{
  1001. var current_date = new Date();
  1002. var min_valifromdd = current_date.getDateFormat("YYYYMMDD");
  1003. if(from<min_valifromdd){
  1004. messageBox("미래이력의 시작일자는 현재일자와 같거나 더 커야합니다.", "C");
  1005. ipt_valifromdd.value = ipt_valifromdd.attribute("_value");
  1006. model.setFocus("ipt_valifromdd");
  1007. return;
  1008. }
  1009. }
  1010. }else{
  1011. messageBox("error => mode_detail_status이 ("+mode_detail_status+")인 상태에서 유효시작일자를 변경할수 없습니다.", "C");
  1012. ipt_valifromdd.value = ipt_valifromdd.attribute("_value");
  1013. model.setFocus("ipt_valifromdd");
  1014. return;
  1015. }
  1016. }else{
  1017. messageBox("error => mode_detail이 ("+mode_detail+")인 상태에서 유효시작일자를 변경할수 없습니다.", "C");
  1018. ipt_valifromdd.value = ipt_valifromdd.attribute("_value");
  1019. model.setFocus("ipt_valifromdd");
  1020. return;
  1021. }
  1022. ]]>
  1023. </script>
  1024. </input>
  1025. <caption id="caption11" class="cell_1" style="left:838px; top:105px; width:125px; height:23px; vertical-align:middle; ">유효 시작일자</caption>
  1026. <caption id="caption53" class="cell_1" style="left:838px; top:225px; width:125px; height:23px; vertical-align:middle; ">부서코드 한문명칭</caption>
  1027. <caption id="caption58" class="cell_1" style="left:838px; top:201px; width:125px; height:23px; vertical-align:middle; ">부서코드 영문명칭</caption>
  1028. <caption id="caption59" class="cell_1" style="left:838px; top:153px; width:125px; height:23px; vertical-align:middle; ">부서코드</caption>
  1029. <caption id="caption66" class="cell_1" style="left:838px; top:177px; width:125px; height:23px; vertical-align:middle; ">부서명(MIS사용)</caption>
  1030. <caption id="caption3" class="cell_1" style="left:838px; top:129px; width:125px; height:23px; vertical-align:middle; ">유효 종료일자</caption>
  1031. <input id="ipt_valitodd" ref="/root/main/data/valitodd" class="input_search" navindex="2" inputtype="date" style="left:965px; top:130px; width:228px; height:19px; ">
  1032. <script type="javascript" ev:event="onbuttonclick">
  1033. <![CDATA[
  1034. ipt_valitodd.attribute("_value") = ipt_valitodd.value;
  1035. ]]>
  1036. </script>
  1037. <script type="javascript" ev:event="DOMFocusIn">
  1038. <![CDATA[
  1039. ipt_valitodd.attribute("_value") = ipt_valitodd.value;
  1040. ]]>
  1041. </script>
  1042. <script type="javascript" ev:event="xforms-value-changed">
  1043. <![CDATA[
  1044. var mode_detail = model.getValue("/root/main/modedetail");
  1045. if(mode_detail=="create"){//추가시 상위부서를 지정하는 경우
  1046. //시작일자는 종료일자보다 클수 없으며, 시작일자는 오늘이후여야 한다.
  1047. var from = model.getValue("/root/main/data/valifromdd");
  1048. var to= model.getValue("/root/main/data/valitodd");
  1049. var is_valid_duration = fValidateDuration(from, to);
  1050. var mode_detail = model.getValue("/root/main/modedetail");
  1051. var isvalid_to = isValidDateTime(to, "YYYYMMDD");
  1052. if(!isvalid_to){
  1053. messageBox("유효종료일자의 지정된 일자가 잘못되었습니다. 다시 입력하세요.", "C");
  1054. ipt_valitodd.value = ipt_valitodd.attribute("_value");
  1055. model.setFocus("ipt_valitodd");
  1056. return;
  1057. }
  1058. if(!is_valid_duration){
  1059. messageBox("유효시작일자는 유효종료일자보다 클수 없습니다.", "C");
  1060. ipt_valitodd.value = ipt_valitodd.attribute("_value");
  1061. model.setFocus("ipt_valitodd");
  1062. return;
  1063. }
  1064. var present_valitodd = fGetValueFromDeptHistory("present", "valitodd");
  1065. if(present_valitodd!=""){
  1066. if(from<=present_valitodd){
  1067. messageBox("미래이력의 시작일자는 현재이력의 종료일자보다 커야합니다.", "C");
  1068. ipt_valitodd.value = ipt_valitodd.attribute("_value");
  1069. model.setFocus("ipt_valitodd");
  1070. return;
  1071. }
  1072. }else{
  1073. var current_date = new Date();
  1074. var min_valifromdd = current_date.getDateFormat("YYYYMMDD");
  1075. if(from<min_valifromdd){
  1076. messageBox("미래이력의 시작일자는 현재일자와 같거나 더 커야합니다.", "C");
  1077. ipt_valitodd.value = ipt_valitodd.attribute("_value");
  1078. model.setFocus("ipt_valitodd");
  1079. return;
  1080. }
  1081. }
  1082. }else if(mode_detail=="update"){
  1083. var mode_detail_status = model.getValue("/root/main/modedetailstatus");
  1084. if(mode_detail_status=="present"){
  1085. var from = model.getValue("/root/main/data/valifromdd");
  1086. var to= model.getValue("/root/main/data/valitodd");
  1087. var isvalid_to = isValidDateTime(to, "YYYYMMDD");
  1088. if(!isvalid_to){
  1089. messageBox("현재이력의 유효종료일자의 지정된 일자가 잘못되었습니다. 다시 입력하세요.", "C");
  1090. ipt_valitodd.value = ipt_valitodd.attribute("_value");
  1091. model.setFocus("ipt_valitodd");
  1092. return;
  1093. }
  1094. var is_valid_duration = fValidateDuration(from, to);
  1095. if(!is_valid_duration){
  1096. messageBox("현재이력의 유효시작일자는 유효종료일자보다 클수 없습니다.", "C");
  1097. ipt_valitodd.value = ipt_valitodd.attribute("_value");
  1098. model.setFocus("ipt_valitodd");
  1099. return;
  1100. }
  1101. var has_future = fHasDeptHistoryBundle("future");
  1102. if(has_future){
  1103. var future_valifromdd = grd_depthistorylist.valueMatrix(1, grd_depthistorylist.colRef("valifromdd"));
  1104. if(to>=future_valifromdd){
  1105. messageBox("현재이력의 유효종료일자는 미래이력의 유효시작일자보다 크거나 같을수 없습니다.", "C");
  1106. ipt_valitodd.value = ipt_valitodd.attribute("_value");
  1107. model.setFocus("ipt_valitodd");
  1108. return;
  1109. }
  1110. }
  1111. var current_date = new Date();
  1112. min_valitodd = current_date.getDateFormat("YYYYMMDD");
  1113. if(to<min_valitodd){
  1114. messageBox("현재이력의 종료일자는 현재일자와 같거나 더 커야합니다.", "C");
  1115. ipt_valitodd.value = ipt_valitodd.attribute("_value");
  1116. model.setFocus("ipt_valitodd");
  1117. return;
  1118. }
  1119. }else if(mode_detail_status=="future"){
  1120. var from = model.getValue("/root/main/data/valifromdd");
  1121. var to= model.getValue("/root/main/data/valitodd");
  1122. var isvalid_to = isValidDateTime(to, "YYYYMMDD");
  1123. if(!isvalid_to){
  1124. messageBox("유효종료일자의 지정된 일자가 잘못되었습니다. 다시 입력하세요.", "C");
  1125. ipt_valitodd.value = ipt_valitodd.attribute("_value");
  1126. model.setFocus("ipt_valitodd");
  1127. return;
  1128. }
  1129. var is_valid_duration = fValidateDuration(from, to);
  1130. if(!is_valid_duration){
  1131. messageBox("유효시작일자는 유효종료일자보다 클수 없습니다.", "C");
  1132. ipt_valitodd.value = ipt_valitodd.attribute("_value");
  1133. model.setFocus("ipt_valitodd");
  1134. return;
  1135. }
  1136. var present_valitodd = fGetValueFromDeptHistory("present", "valitodd");
  1137. if(present_valitodd!=""){
  1138. if(from<=present_valitodd){
  1139. messageBox("미래이력의 시작일자는 현재이력의 종료일자보다 커야합니다.", "C");
  1140. ipt_valitodd.value = ipt_valitodd.attribute("_value");
  1141. model.setFocus("ipt_valitodd");
  1142. return;
  1143. }
  1144. }else{
  1145. var current_date = new Date();
  1146. var min_valifromdd = current_date.getDateFormat("YYYYMMDD");
  1147. if(from<min_valifromdd){
  1148. messageBox("미래이력의 시작일자는 현재일자와 같거나 더 커야합니다.", "C");
  1149. ipt_valitodd.value = ipt_valitodd.attribute("_value");
  1150. model.setFocus("ipt_valitodd");
  1151. return;
  1152. }
  1153. }
  1154. }else{
  1155. messageBox("error => mode_detail('"+mode_detail+"'), mode_detail_status('"+mode_detail_status+"')인 상태에서 유효시작일자를 변경할수 없습니다.", "C");
  1156. return;
  1157. }
  1158. }else{
  1159. messageBox("error => mode_detail이 ("+mode_detail+")인 상태에서 유효시작일자를 변경할수 없습니다.", "C");
  1160. ipt_valitodd.value = ipt_valitodd.attribute("_value");
  1161. model.setFocus("ipt_valitodd");
  1162. return;
  1163. }
  1164. ]]>
  1165. </script>
  1166. </input>
  1167. <caption id="caption14" class="cell_1" style="left:838px; top:273px; width:125px; height:23px; vertical-align:middle; ">입원진료부서명</caption>
  1168. <input id="ipt_indepthngnm" ref="/root/main/data/indepthngnm" class="input_essential" navindex="6" maxlength="21" style="left:964px; top:273px; width:228px; height:19px; ">
  1169. <script type="javascript" ev:event="onkeyup">
  1170. <![CDATA[
  1171. var strlen = 0;
  1172. var str = ipt_indepthngnm.currentText
  1173. for (var i=0; i<str.length; i++) {
  1174. strlen += (str.charCodeAt(i) > 128) ? 2 : 1;
  1175. if (strlen > 64) {
  1176. messageBox("최대입력글자인 64byte를 ", "E003");
  1177. strlen -= (str.charCodeAt(i) > 128) ? 2 : 1;
  1178. break;
  1179. }
  1180. }
  1181. ]]>
  1182. </script>
  1183. </input>
  1184. <caption id="caption49" class="cell_1" style="left:838px; top:297px; width:125px; height:23px; vertical-align:middle; ">부서 한글약어</caption>
  1185. <input id="ipt_depthngabbr" ref="/root/main/data/depthngabbr" class="input_essential" navindex="7" maxlength="21" style="left:964px; top:297px; width:228px; height:19px; ">
  1186. <script type="javascript" ev:event="onkeyup">
  1187. <![CDATA[
  1188. var strlen = 0;
  1189. var str = ipt_depthngabbr.currentText
  1190. for (var i=0; i<str.length; i++) {
  1191. strlen += (str.charCodeAt(i) > 128) ? 2 : 1;
  1192. if (strlen > 64) {
  1193. messageBox("최대입력글자인 64byte를 ", "E003");
  1194. strlen -= (str.charCodeAt(i) > 128) ? 2 : 1;
  1195. break;
  1196. }
  1197. }
  1198. ]]>
  1199. </script>
  1200. </input>
  1201. <caption id="caption69" class="cell_1" style="left:838px; top:321px; width:125px; height:23px; vertical-align:middle; ">부서 영문약어</caption>
  1202. <input id="ipt_deptengabbr" ref="/root/main/data/deptengabbr" class="input_essential" navindex="8" imemode="disabled" maxlength="10" style="left:964px; top:321px; width:228px; height:19px; ">
  1203. <script type="javascript" ev:event="onkeyup">
  1204. <![CDATA[
  1205. var strlen = 0;
  1206. var str = ipt_deptengabbr.currentText
  1207. for (var i=0; i<str.length; i++) {
  1208. strlen += (str.charCodeAt(i) > 128) ? 2 : 1;
  1209. if (strlen > 10) {
  1210. messageBox("최대입력글자인 10byte를 ", "E003");
  1211. strlen -= (str.charCodeAt(i) > 128) ? 2 : 1;
  1212. break;
  1213. }
  1214. }
  1215. ]]>
  1216. </script>
  1217. </input>
  1218. <caption id="caption54" class="cell_1" style="left:838px; top:345px; width:125px; height:33px; vertical-align:middle; ">부서 위치</caption>
  1219. <textarea id="tar_deptplce" ref="/root/main/data/deptplce" navindex="9" maxlength="21" style="left:964px; top:345px; width:228px; height:33px; ">
  1220. <script type="javascript" ev:event="onkeyup">
  1221. <![CDATA[
  1222. var strlen = 0;
  1223. var str = tar_deptplce.currentText
  1224. for (var i=0; i<str.length; i++) {
  1225. strlen += (str.charCodeAt(i) > 128) ? 2 : 1;
  1226. if (strlen > 64) {
  1227. messageBox("최대입력글자인 64byte를 ", "E003");
  1228. strlen -= (str.charCodeAt(i) > 128) ? 2 : 1;
  1229. break;
  1230. }
  1231. }
  1232. ]]>
  1233. </script>
  1234. </textarea>
  1235. <caption id="caption68" class="cell_1" style="left:838px; top:379px; width:125px; height:23px; vertical-align:middle; ">근무지사용여부</caption>
  1236. <select1 id="cmb_dutplceuseyn" ref="/root/main/data/dutplceuseyn" class="combo_essential" navindex="10" appearance="minimal" style="left:964px; top:379px; width:50px; height:19px; ">
  1237. <choices>
  1238. <item>
  1239. <label>N</label>
  1240. <value>N</value>
  1241. </item>
  1242. <item>
  1243. <label>Y</label>
  1244. <value>Y</value>
  1245. </item>
  1246. </choices>
  1247. </select1>
  1248. <caption id="caption65" class="cell_1" style="left:1015px; top:379px; width:125px; height:23px; vertical-align:middle; ">인터넷 예약구분</caption>
  1249. <select1 id="cmb_inetrsrvyn" ref="/root/main/data/inetrsrvyn" class="combo_essential" navindex="11" appearance="minimal" style="left:1141px; top:379px; width:50px; height:19px; ">
  1250. <choices>
  1251. <item>
  1252. <label>N</label>
  1253. <value>N</value>
  1254. </item>
  1255. <item>
  1256. <label>Y</label>
  1257. <value>Y</value>
  1258. </item>
  1259. </choices>
  1260. </select1>
  1261. <caption id="caption57" class="cell_1" style="left:838px; top:403px; width:125px; height:23px; vertical-align:middle; ">다음 가실곳 여부</caption>
  1262. <select1 id="cmb_nextplceyn" ref="/root/main/data/nextplceyn" class="combo_essential" navindex="12" appearance="minimal" style="left:964px; top:403px; width:50px; height:19px; ">
  1263. <choices>
  1264. <item>
  1265. <label>N</label>
  1266. <value>N</value>
  1267. </item>
  1268. <item>
  1269. <label>Y</label>
  1270. <value>Y</value>
  1271. </item>
  1272. </choices>
  1273. </select1>
  1274. <caption id="caption62" class="cell_1" style="left:1015px; top:403px; width:125px; height:23px; vertical-align:middle; ">다음 가실곳 우선순위</caption>
  1275. <input id="ipt_nextplceprity" ref="/root/main/data/nextplceprity" class="input_essential" navindex="13" maxlength="4" format="999999-9999999" style="left:1141px; top:403px; width:50px; height:19px; ">
  1276. <script type="javascript" ev:event="onkeyup">
  1277. <![CDATA[
  1278. var strlen = 0;
  1279. var str = ipt_nextplceprity.currentText
  1280. for (var i=0; i<str.length; i++) {
  1281. strlen += (str.charCodeAt(i) > 128) ? 2 : 1;
  1282. if (strlen > 4) {
  1283. messageBox("최대입력글자인 4byte를 ", "E003");
  1284. strlen -= (str.charCodeAt(i) > 128) ? 2 : 1;
  1285. break;
  1286. }
  1287. }
  1288. ]]>
  1289. </script>
  1290. </input>
  1291. <caption id="caption72" class="cell_1" style="left:838px; top:427px; width:125px; height:23px; vertical-align:middle; ">전화번호</caption>
  1292. <input id="ipt_cntctel" ref="/root/main/data/cntctel" class="input_essential" navindex="14" maxlength="20" style="left:964px; top:427px; width:228px; height:19px; ">
  1293. <script type="javascript" ev:event="onkeyup">
  1294. <![CDATA[
  1295. var strlen = 0;
  1296. var str = ipt_cntctel.currentText;
  1297. for (var i=0; i<str.length; i++) {
  1298. strlen += (str.charCodeAt(i) > 128) ? 2 : 1;
  1299. if (strlen > 20) {
  1300. messageBox("최대입력글자인 20byte를 ", "E003");
  1301. strlen -= (str.charCodeAt(i) > 128) ? 2 : 1;
  1302. break;
  1303. }
  1304. }
  1305. ]]>
  1306. </script>
  1307. </input>
  1308. <caption id="caption46" class="cell_1" style="left:838px; top:451px; width:125px; height:23px; vertical-align:middle; ">청구 권한 부서</caption>
  1309. <select1 id="cmb_reqauthdeptyn" ref="/root/main/data/reqauthdeptyn" class="combo_essential" navindex="15" appearance="minimal" style="left:964px; top:451px; width:50px; height:19px; ">
  1310. <choices>
  1311. <item>
  1312. <label>N</label>
  1313. <value>N</value>
  1314. </item>
  1315. <item>
  1316. <label>Y</label>
  1317. <value>Y</value>
  1318. </item>
  1319. </choices>
  1320. </select1>
  1321. <caption id="caption19" class="cell_1" style="left:1015px; top:451px; width:65px; height:23px; vertical-align:middle; ">상위부서</caption>
  1322. <input id="ipt_supdeptcd" class="input_essential" navindex="13" style="left:1081px; top:451px; width:109px; height:19px; ">
  1323. <script type="javascript" ev:event="onclick">
  1324. <![CDATA[
  1325. /*
  1326. if(mode_detail=="create"){//추가시 상위부서를 지정하는 경우
  1327. var from = model.getValue("/root/main/data/valifromdd");
  1328. var to= model.getValue("/root/main/data/valitodd");
  1329. var is_valid_duration = fValidateDuration(from, to);
  1330. if(!is_valid_duration){
  1331. alert("유효종료일자는 유효시작일자보다 커야합니다.");
  1332. return;
  1333. }
  1334. var min_valifromdd = fGetMinValifromddFutureDeptHistory();
  1335. if(min_valifromdd>from){
  1336. alert("유효시작일자는 이전이력의 종료일자보다 커야 합니다.");
  1337. return;
  1338. }
  1339. }else if(mode_detail=="update"){
  1340. }else if(mode_detail=="delete"){
  1341. }
  1342. */
  1343. ]]>
  1344. </script>
  1345. </input>
  1346. <caption id="caption56" class="cell_1" style="left:838px; top:475px; width:125px; height:23px; vertical-align:middle; ">청구과 번호</caption>
  1347. <select1 id="cmb_reqdeptno" ref="/root/main/data/reqdeptno" class="combo_essential" navindex="16" appearance="minimal" style="left:965px; top:475px; width:225px; height:19px; ">
  1348. <choices>
  1349. <itemset nodeset="/root/init/reqdeptnocode/P0322">
  1350. <label ref="cdnm"/>
  1351. <value ref="cdid"/>
  1352. </itemset>
  1353. </choices>
  1354. </select1>
  1355. <caption id="caption55" class="cell_1" style="left:838px; top:499px; width:125px; height:23px; vertical-align:middle; ">청구분야</caption>
  1356. <select1 id="cmb_reqfild" ref="/root/main/data/reqfild" class="combo_essential" navindex="17" appearance="minimal" style="left:964px; top:499px; width:226px; height:19px; ">
  1357. <choices>
  1358. <itemset nodeset="/root/init/reqfieldcode/P0291">
  1359. <label ref="cdnm"/>
  1360. <value ref="cdid"/>
  1361. </itemset>
  1362. </choices>
  1363. </select1>
  1364. <caption id="caption45" class="cell_1" style="left:838px; top:523px; width:86px; height:23px; vertical-align:middle; ">진료사용여부</caption>
  1365. <select1 id="cmb_orduseyn" ref="/root/main/data/orduseyn" class="combo_essential" navindex="18" appearance="minimal" style="left:925px; top:523px; width:80px; height:19px; ">
  1366. <choices>
  1367. <item>
  1368. <label>사용안함</label>
  1369. <value>N</value>
  1370. </item>
  1371. <item>
  1372. <label>사용함</label>
  1373. <value>Y</value>
  1374. </item>
  1375. </choices>
  1376. <script type="javascript" ev:event="xforms-value-changed">
  1377. <![CDATA[
  1378. var orduseyn = model.getValue("/root/main/data/orduseyn");
  1379. if(orduseyn=="Y"){
  1380. cmb_orddeptflag.disabled = false;
  1381. }
  1382. ]]>
  1383. </script>
  1384. </select1>
  1385. <caption id="caption15" class="cell_1" style="left:1006px; top:522px; width:94px; height:23px; vertical-align:middle; ">임상과출력순서</caption>
  1386. <input id="ipt_clincdeptdispseq" ref="/root/main/data/clincdeptdispseq" class="input_essential" navindex="13" style="left:1101px; top:523px; width:90px; height:19px; "/>
  1387. <caption id="caption61" class="cell_1" style="left:838px; top:547px; width:86px; height:23px; vertical-align:middle; ">진료부서구분</caption>
  1388. <select1 id="cmb_orddeptflag" ref="/root/main/data/orddeptflag" class="combo_essential" navindex="19" appearance="minimal" style="left:925px; top:547px; width:95px; height:19px; ">
  1389. <choices>
  1390. <item>
  1391. <label>입원진료과</label>
  1392. <value>D</value>
  1393. </item>
  1394. <item>
  1395. <label>병동</label>
  1396. <value>W</value>
  1397. </item>
  1398. <item>
  1399. <label>Consult부서</label>
  1400. <value>A</value>
  1401. </item>
  1402. <item>
  1403. <label>기타</label>
  1404. <value>X</value>
  1405. </item>
  1406. <item>
  1407. <label>진료지원수행부서</label>
  1408. <value>E</value>
  1409. </item>
  1410. </choices>
  1411. </select1>
  1412. <caption id="caption25" class="cell_1" style="left:1021px; top:546px; width:84px; height:23px; vertical-align:middle; ">진료부서유형</caption>
  1413. <select1 id="cmb_orddeptkind" ref="/root/main/data/orddeptkind" class="combo_essential" navindex="19" appearance="minimal" style="left:1106px; top:547px; width:85px; height:19px; ">
  1414. <choices>
  1415. <item>
  1416. <label>센터</label>
  1417. <value>C</value>
  1418. </item>
  1419. <item>
  1420. <label>일반부서</label>
  1421. <value>D</value>
  1422. </item>
  1423. </choices>
  1424. </select1>
  1425. <caption id="caption1" class="cell_1" style="left:838px; top:571px; width:86px; height:23px; vertical-align:middle; ">진료분과구분</caption>
  1426. <select1 id="cmb_ordclsdeptflag" ref="/root/main/data/ordclsdeptflag" class="combo_essential" navindex="19" appearance="minimal" style="left:925px; top:571px; width:80px; height:19px; ">
  1427. <choices>
  1428. <item>
  1429. <label>분과</label>
  1430. <value>C</value>
  1431. </item>
  1432. <item>
  1433. <label>대표과</label>
  1434. <value>R</value>
  1435. </item>
  1436. <item>
  1437. <label>간호외래</label>
  1438. <value>A</value>
  1439. </item>
  1440. </choices>
  1441. </select1>
  1442. <caption id="caption9" class="cell_1" style="left:1006px; top:570px; width:94px; height:23px; vertical-align:middle; ">근태 사용여부</caption>
  1443. <select1 id="cmb_dgenuseyn" ref="/root/main/data/dgenuseyn" class="combo_essential" navindex="20" appearance="minimal" style="left:1102px; top:571px; width:88px; height:19px; ">
  1444. <choices>
  1445. <item>
  1446. <label>N</label>
  1447. <value>N</value>
  1448. </item>
  1449. <item>
  1450. <label>Y</label>
  1451. <value>Y</value>
  1452. </item>
  1453. </choices>
  1454. </select1>
  1455. <caption id="caption7" class="cell_1" style="left:837px; top:595px; width:128px; height:23px; vertical-align:middle; ">보험사용여부</caption>
  1456. <select1 id="cmb_insuuseyn" ref="/root/main/data/insuuseyn" class="combo_essential" navindex="21" appearance="minimal" style="left:966px; top:596px; width:221px; height:19px; ">
  1457. <choices>
  1458. <itemset nodeset="/root/init/insuuseyn/Z0015">
  1459. <label ref="cdnm"/>
  1460. <value ref="cdid"/>
  1461. </itemset>
  1462. </choices>
  1463. </select1>
  1464. <caption id="caption71" class="cell_1" style="left:838px; top:619px; width:125px; height:23px; vertical-align:middle; ">기획 사용여부</caption>
  1465. <select1 id="cmb_planuseyn" ref="/root/main/data/planuseyn" class="combo_essential" navindex="22" appearance="minimal" style="left:964px; top:620px; width:50px; height:19px; ">
  1466. <choices>
  1467. <item>
  1468. <label>N</label>
  1469. <value>N</value>
  1470. </item>
  1471. <item>
  1472. <label>Y</label>
  1473. <value>Y</value>
  1474. </item>
  1475. </choices>
  1476. </select1>
  1477. <caption id="caption48" class="cell_1" style="left:1015px; top:619px; width:125px; height:23px; vertical-align:middle; ">구매 사용여부</caption>
  1478. <select1 id="cmb_purcuseyn" ref="/root/main/data/purcuseyn" class="combo_essential" navindex="23" appearance="minimal" style="left:1141px; top:620px; width:50px; height:19px; ">
  1479. <choices>
  1480. <item>
  1481. <label>N</label>
  1482. <value>N</value>
  1483. </item>
  1484. <item>
  1485. <label>Y</label>
  1486. <value>Y</value>
  1487. </item>
  1488. </choices>
  1489. </select1>
  1490. <caption id="caption44" class="cell_1" style="left:838px; top:643px; width:125px; height:23px; vertical-align:middle; ">간호사용여부</caption>
  1491. <select1 id="cmb_careuseyn" ref="/root/main/data/careuseyn" class="combo_essential" navindex="24" appearance="minimal" style="left:964px; top:644px; width:50px; height:19px; ">
  1492. <choices>
  1493. <item>
  1494. <label>N</label>
  1495. <value>N</value>
  1496. </item>
  1497. <item>
  1498. <label>Y</label>
  1499. <value>Y</value>
  1500. </item>
  1501. </choices>
  1502. </select1>
  1503. <caption id="caption36" class="cell_1" style="left:1015px; top:643px; width:125px; height:23px; vertical-align:middle; ">수납 사용여부</caption>
  1504. <select1 id="cmb_rcptuseyn" ref="/root/main/data/rcptuseyn" class="combo_essential" navindex="25" appearance="minimal" style="left:1141px; top:644px; width:50px; height:19px; ">
  1505. <choices>
  1506. <item>
  1507. <label>N</label>
  1508. <value>N</value>
  1509. </item>
  1510. <item>
  1511. <label>Y</label>
  1512. <value>Y</value>
  1513. </item>
  1514. </choices>
  1515. </select1>
  1516. <caption id="caption40" class="cell_1" style="left:838px; top:667px; width:125px; height:23px; vertical-align:middle; ">의료정보 사용여부</caption>
  1517. <select1 id="cmb_healcareinfouseyn" ref="/root/main/data/healcareinfouseyn" class="combo_essential" navindex="26" appearance="minimal" style="left:964px; top:668px; width:50px; height:19px; ">
  1518. <choices>
  1519. <item>
  1520. <label>N</label>
  1521. <value>N</value>
  1522. </item>
  1523. <item>
  1524. <label>Y</label>
  1525. <value>Y</value>
  1526. </item>
  1527. </choices>
  1528. </select1>
  1529. <caption id="caption43" class="cell_1" style="left:1015px; top:667px; width:125px; height:23px; vertical-align:middle; ">인사 사용여부</caption>
  1530. <select1 id="cmb_psnworkuseyn" ref="/root/main/data/psnworkuseyn" class="combo_essential" navindex="27" appearance="minimal" style="left:1141px; top:668px; width:50px; height:19px; ">
  1531. <choices>
  1532. <item>
  1533. <label>N</label>
  1534. <value>N</value>
  1535. </item>
  1536. <item>
  1537. <label>Y</label>
  1538. <value>Y</value>
  1539. </item>
  1540. </choices>
  1541. </select1>
  1542. <caption id="caption70" class="cell_1" style="left:838px; top:691px; width:125px; height:23px; vertical-align:middle; ">재무 사용여부</caption>
  1543. <select1 id="cmb_fnworkuseyn" ref="/root/main/data/fnworkuseyn" class="combo_essential" navindex="28" appearance="minimal" style="left:964px; top:692px; width:50px; height:19px; ">
  1544. <choices>
  1545. <item>
  1546. <label>N</label>
  1547. <value>N</value>
  1548. </item>
  1549. <item>
  1550. <label>Y</label>
  1551. <value>Y</value>
  1552. </item>
  1553. </choices>
  1554. </select1>
  1555. <caption id="caption51" class="cell_1" style="left:1015px; top:691px; width:125px; height:23px; vertical-align:middle; ">총무 사용여부</caption>
  1556. <select1 id="cmb_gafruseyn" ref="/root/main/data/gafruseyn" class="combo_essential" navindex="29" appearance="minimal" style="left:1141px; top:692px; width:50px; height:19px; ">
  1557. <choices>
  1558. <item>
  1559. <label>N</label>
  1560. <value>N</value>
  1561. </item>
  1562. <item>
  1563. <label>Y</label>
  1564. <value>Y</value>
  1565. </item>
  1566. </choices>
  1567. </select1>
  1568. <caption id="caption63" class="cell_1" style="left:838px; top:715px; width:125px; height:23px; vertical-align:middle; ">원무 사용여부</caption>
  1569. <select1 id="cmb_pamuseyn" ref="/root/main/data/pamuseyn" class="combo_essential" navindex="30" appearance="minimal" style="left:964px; top:716px; width:50px; height:19px; ">
  1570. <choices>
  1571. <item>
  1572. <label>N</label>
  1573. <value>N</value>
  1574. </item>
  1575. <item>
  1576. <label>Y</label>
  1577. <value>Y</value>
  1578. </item>
  1579. </choices>
  1580. </select1>
  1581. <caption id="caption5" class="cell_1" style="left:1015px; top:715px; width:125px; height:23px; vertical-align:middle; ">그룹웨어 사용여부</caption>
  1582. <select1 id="cmb_homecareuseyn" ref="/root/main/data/homecareuseyn" class="combo_essential" navindex="31" appearance="minimal" style="left:1141px; top:716px; width:50px; height:19px; ">
  1583. <choices>
  1584. <item>
  1585. <label>N</label>
  1586. <value>N</value>
  1587. </item>
  1588. <item>
  1589. <label>Y</label>
  1590. <value>Y</value>
  1591. </item>
  1592. </choices>
  1593. </select1>
  1594. <datagrid id="grd_deptlist" nodeset="/root/main/deptlist/dept" scroll="autovscroll" caption="색상^행상태^진료과유형^진료분과구분^입원진료과명^외래진료부서명^상위 부서명^부서명(MIS사용)^부서코드^부서 영문명^부서 한문명^부서위치^부서 영문약어^부서 한글약어^청구분야^진료부서구분^임상과출력순서^청구부서번호^청구세부진료과^다음 가실곳 여부^다음 가실곳 우선순위^인터넷 예약구분^전화번호^근무지부서여부^청구권한부서^기획부서여부^기획상위부서^기획부서 출력순서^진료부서여부^진료상위부서^진료부서 출력순서^인사부서 여부^인사 상위부서^인사부서 출력순서^구매부서 사용여부^구매 상위부서^구매부서 출력순서^재무부서 사용여부^재무 상위부서^재무 출력순서^간호 사용여부^간호 상위부서^간호 출력순서^총무 사용여부^총무 상위부서^총무 출력순서^수납 사용여부^수납 상위부서^수납 출력순서^원무 사용여부^원무 상위부서^원무 출력순서^의료정보 사용여부^의료정보 상위부서^의료정보 출력순서^보험 사용여부^보험 상위부서^보험 출력순서^근태 사용여부^근태 상위부서^근태 출력순서^그룹웨어사용여부^그룹웨어상위부서코드^그룹웨어출력순서^기관상위부서코드^기관출력순서^기관코드^유효 시작일자^유효 종료일자^레벨^현재사용여부" colsep="▦" colwidth="100, 47, 100, 100, 100, 100, 300, 300, 127, 120, 100, 100, 100, 100, 100, 100, 100, 124, 100, 100, 100, 100, 121, 100, 100, 100, 100, 100, 100, 111, 100, 100, 113, 100, 100, 105, 111, 100, 107, 108, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 106, 107, 107, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" defaultrows="0" extendlastcol="noscroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="▩" style="left:410px; top:105px; width:398px; height:435px; border-color:#808080; ">
  1595. <col ref="color" visibility="hidden"/>
  1596. <col ref="rowstatus" visibility="hidden"/>
  1597. <col ref="orddeptkind" visibility="hidden"/>
  1598. <col ref="ordclsdeptflag" visibility="hidden"/>
  1599. <col ref="indepthngnm" visibility="hidden"/>
  1600. <col ref="depthngnm" visibility="hidden"/>
  1601. <col ref="supdeptnm" visibility="hidden"/>
  1602. <col ref="inorddeptnm"/>
  1603. <col ref="deptcd" visibility="hidden"/>
  1604. <col ref="deptengnm" visibility="hidden"/>
  1605. <col ref="deptchinm" visibility="hidden" style="left:1314px; top:23px; width:100px; height:23px; "/>
  1606. <col ref="deptplce" visibility="hidden"/>
  1607. <col ref="deptengabbr" visibility="hidden"/>
  1608. <col ref="depthngabbr" visibility="hidden"/>
  1609. <col ref="reqfild" visibility="hidden"/>
  1610. <col ref="orddeptflag" visibility="hidden"/>
  1611. <col ref="clincdeptdispseq" visibility="hidden"/>
  1612. <col ref="reqdeptno" visibility="hidden"/>
  1613. <col ref="nextplceyn" visibility="hidden"/>
  1614. <col ref="nextplceprity" visibility="hidden"/>
  1615. <col ref="inetrsrvyn" visibility="hidden"/>
  1616. <col ref="cntctel" visibility="hidden"/>
  1617. <col ref="dutplceuseyn" visibility="hidden"/>
  1618. <col ref="reqauthdeptyn" visibility="hidden"/>
  1619. <col ref="planuseyn" visibility="hidden"/>
  1620. <col ref="plansupdeptcd" visibility="hidden"/>
  1621. <col ref="plandispseq" visibility="hidden"/>
  1622. <col ref="orduseyn" visibility="hidden"/>
  1623. <col ref="ordsupdeptcd" visibility="hidden"/>
  1624. <col ref="orddispseq" visibility="hidden"/>
  1625. <col ref="psnworkuseyn" visibility="hidden"/>
  1626. <col ref="psnworksupdeptcd" visibility="hidden"/>
  1627. <col ref="psnworkdispseq" visibility="hidden"/>
  1628. <col ref="purcuseyn" visibility="hidden"/>
  1629. <col ref="purcsupdeptcd" visibility="hidden"/>
  1630. <col ref="purcdispseq" visibility="hidden"/>
  1631. <col ref="fnworkuseyn" visibility="hidden"/>
  1632. <col ref="fnworksupdeptcd" visibility="hidden"/>
  1633. <col ref="fnworkdispseq" visibility="hidden"/>
  1634. <col ref="careuseyn" visibility="hidden"/>
  1635. <col ref="caresupdeptcd" visibility="hidden"/>
  1636. <col ref="caredispseq" visibility="hidden"/>
  1637. <col ref="gafruseyn" visibility="hidden"/>
  1638. <col ref="gafrsupdeptcd" visibility="hidden"/>
  1639. <col ref="gafrdispseq" visibility="hidden"/>
  1640. <col ref="rcptuseyn" visibility="hidden"/>
  1641. <col ref="rcptsupdeptcd" visibility="hidden"/>
  1642. <col ref="rcptdispseq" visibility="hidden"/>
  1643. <col ref="pamuseyn" visibility="hidden"/>
  1644. <col ref="pamsupdeptcd" visibility="hidden"/>
  1645. <col ref="pamdispseq" visibility="hidden"/>
  1646. <col ref="healcareinfouseyn" visibility="hidden"/>
  1647. <col ref="healcareinfosupdeptcd" visibility="hidden"/>
  1648. <col ref="healcareinfodispseq" visibility="hidden"/>
  1649. <col ref="insuuseyn" visibility="hidden"/>
  1650. <col ref="insusupdeptcd" visibility="hidden"/>
  1651. <col ref="insudispseq" visibility="hidden"/>
  1652. <col ref="dgenuseyn" visibility="hidden"/>
  1653. <col ref="dgensupdeptcd" visibility="hidden"/>
  1654. <col ref="dgendispseq" visibility="hidden"/>
  1655. <col ref="homecareuseyn" visibility="hidden"/>
  1656. <col ref="homecaresupdeptcd" visibility="hidden"/>
  1657. <col ref="homecaredispseq" visibility="hidden"/>
  1658. <col ref="instsupdeptcd" visibility="hidden"/>
  1659. <col ref="instdispseq" visibility="hidden"/>
  1660. <col ref="instcd" visibility="hidden"/>
  1661. <col ref="valifromdd" visibility="hidden"/>
  1662. <col ref="valitodd" visibility="hidden"/>
  1663. <col ref="level" visibility="hidden"/>
  1664. <col ref="iscurrent" visibility="hidden"/>
  1665. <script type="javascript" ev:event="ondblclick">
  1666. <![CDATA[
  1667. var modedetail = model.getValue("/root/main/modedetail");
  1668. if(modedetail=="reorg"){
  1669. messageBox("출력순서 재조정이나 위치이동을 하는 재구성 작업중에는 이력을 선택", "E001");
  1670. return;
  1671. }
  1672. if( !grd_deptlist.iscell(event.target)){
  1673. return;
  1674. }
  1675. var row = grd_deptlist.row;
  1676. var color_status = grd_deptlist.valueMatrix(row, grd_deptlist.colRef("color"));
  1677. fClearDeptHistory();
  1678. model.refresh();
  1679. if(color_status=="#dec6a4"){//임시인 경우
  1680. model.setValue("/root/main/label/deptinfo", "부서정보추가");
  1681. grd_depthistorylist.addItem();
  1682. var add_offset = 1;
  1683. fDept2DeptHistory(grd_deptlist.row,add_offset);
  1684. }else{//임시가 아닌경우
  1685. var instcd = grd_deptlist.valueMatrix(row, grd_deptlist.colRef("instcd"));
  1686. var deptcd = grd_deptlist.valueMatrix(row, grd_deptlist.colRef("deptcd"));
  1687. model.makeValue("/root/send/data/instcd", instcd);
  1688. model.makeValue("/root/send/data/deptcd", deptcd);
  1689. submit("TRZSD00110");
  1690. for( var i=grd_depthistorylist.fixedrows; i<grd_depthistorylist.rows; i++){
  1691. var iscurrent = grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("iscurrent"));
  1692. if(iscurrent=='Y'){//기관에서 현재사용중인부서
  1693. grd_depthistorylist.rowstyle( i , "data" , "background-color" ) = "#ffffff";//현제 기관의 선택된업무에서 사용중인 부서
  1694. grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("color")) = "#ffffff";
  1695. }else if(iscurrent=='F'){
  1696. grd_depthistorylist.rowstyle( i , "data" , "background-color" ) = "#fcd2c1";//현제 기관에서 사용중이며 미래에 적용될 부서.
  1697. grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("color")) = "#fcd2c1";
  1698. }else if(iscurrent=='P'){
  1699. grd_depthistorylist.rowstyle( i , "data" , "background-color" ) = "#b9e5fb";//현제 기관에서 사용중이며, 종료된부서.
  1700. grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("color")) = "#b9e5fb";
  1701. }
  1702. }
  1703. var history_target_deptcd = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd"));
  1704. var history_target_valifromdd = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("valifromdd"));
  1705. for( var i=grd_depthistorylist.fixedrows; i<grd_depthistorylist.rows; i++){
  1706. var history_deptcd = grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("deptcd"));
  1707. var history_valifromdd = grd_depthistorylist.valueMatrix(i, grd_depthistorylist.colRef("valifromdd"));
  1708. if(history_target_deptcd==history_deptcd && history_target_valifromdd==history_valifromdd){
  1709. grd_depthistorylist.row = i;
  1710. break;
  1711. }
  1712. }
  1713. }
  1714. fInitMainDataControls(false);
  1715. fHistoryGrid2Main();
  1716. model.setValue("/root/main/modedetail", "retrived");
  1717. model.setValue("/root/main/label/deptinfo", "부서정보보기")
  1718. model.refresh();
  1719. fInitMainDataControls(true);
  1720. ]]>
  1721. </script>
  1722. </datagrid>
  1723. <img id="img_mv_left" class="icon_left" style="left:382px; top:305px; width:26px; height:19px; background-stretch:stretch; ">
  1724. <script type="javascript" ev:event="onclick">
  1725. <![CDATA[
  1726. var row = grd_deptlist.row;
  1727. var status = grd_deptlist.rowStatus(row);
  1728. var deptcd = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd"));
  1729. if( status == 1 ){//입력상태인 부서만 삭제할수 있다.
  1730. var has_child = fFindGridTreeItemHasChild(grd_deptlist, row, "level");
  1731. if(!has_child){
  1732. grd_deptlist.deleterow(row, false); //행삭제
  1733. var standard = model.getValue("/root/main/search/authority");
  1734. var display_cols = standard.substring(0, standard.indexOf("supdeptcd")) + "dispseq"; //기준이 어떤상위부서인지 찾아보고, 해당 출력순서 행의 이름을 얻어온다.
  1735. var parents = fGetParents(grd_deptlist, row, standard);
  1736. fReorgSequenceFromBizDeptGrid(grd_deptlist, parents, standard, display_cols);//부서정보그리드, 상위부서코드, 기준상위부서라벨, 기준출력순서라벨으로 해당상위부서 하위의 부서순서를 재정렬한다.
  1737. setTreeItem(grd_deptlist, grd_deptlist.colRef("level"), grd_deptlist.colRef("inorddeptnm"));//삭제한후에 그리드의 아웃라인을 다시 만든다.
  1738. var class_dept_index = fFindGridItem(grd_clsdeptlist, grd_clsdeptlist.colRef("deptcd"), deptcd);
  1739. var standard = model.getValue("/root/main/search/authority");
  1740. grd_clsdeptlist.valueMatrix(class_dept_index, grd_clsdeptlist.colRef(standard)) = "";
  1741. grd_clsdeptlist.valueMatrix(class_dept_index, grd_clsdeptlist.colRef("useyn")) = "false";
  1742. setTreeItem( grd_clsdeptlist, grd_clsdeptlist.colRef("level"), grd_clsdeptlist.colRef("deptnm"));
  1743. fInitMainData();
  1744. fClearDeptHistory();
  1745. model.setValue("/root/main/modedetail", "reorg");
  1746. model.setValue("/root/main/modedetailstatus", "");
  1747. model.refresh();
  1748. fInitMainDataControls(true);
  1749. grd_clsdeptlist.row = class_dept_index;
  1750. grd_clsdeptlist.topRow = class_dept_index;
  1751. }else{
  1752. messageBox("부서코드 : "+deptcd+"는 하위부서코드를 포함하므로 삭제할수 없습니다.", "C");
  1753. return;
  1754. }
  1755. }
  1756. ]]>
  1757. </script>
  1758. </img>
  1759. <img id="img_mv_up" class="icon_top" style="left:810px; top:275px; width:26px; height:19px; background-stretch:stretch; ">
  1760. <script type="javascript" ev:event="onclick">
  1761. <![CDATA[
  1762. /*임시부서가 있는지 확인*/
  1763. var modedetail = model.getValue("/root/main/modedetail");
  1764. if(modedetail!="init"&&modedetail!="reorg"){
  1765. if(modedetail=="update"){
  1766. var nextstep = messageBox("부서이력 수정작업중이었습니다. 수정작업이 초기화되며, 출력상태변경 작업을 진행하게 됩니다", "S001");
  1767. if(nextstep==6){
  1768. messageBox("출력상태 변경작업을 진행합니다.", "I");
  1769. }else{
  1770. return;
  1771. }
  1772. }
  1773. fInitialize();
  1774. }
  1775. var dn_row = grd_deptlist.row;//부서정보 그리드에서 현재 선택된 부서
  1776. var deptcd = grd_deptlist.valueMatrix(dn_row, grd_deptlist.colRef("deptcd")); //부서정보 그리드에서 현재 선택된 부서의 부서코드
  1777. var up_row = fFindUpSameLevelRow(grd_deptlist);//상위에 같은레벨의 부서코드가 있는지 확인
  1778. if( up_row == -1 ){
  1779. messageBox("상위로 이동할수", "I004");
  1780. return;
  1781. }else{
  1782. var last_up_row = fCacheDeptBundle(grd_deptlist, up_row, "/root/main/deptlist/dept", "/root/main/temp/updept");//위에있는 같은레벨의 부서를 인스턴스 캐쉬에 저장한다.
  1783. var last_dn_row = fCacheDeptBundle(grd_deptlist, dn_row, "/root/main/deptlist/dept", "/root/main/temp/dndept");//선택된부서와 같은레벨의 부서를 인스턴스 캐쉬에 저장한다.
  1784. var parents_cols = model.getValue("/root/main/search/authority");//현재 설정된 부모부서코드라벨을 가져온다.
  1785. var parents = grd_deptlist.valueMatrix(dn_row, grd_deptlist.colRef(parents_cols));
  1786. var dispseq_cols = parents_cols.substring(0, parents_cols.indexOf("supdeptcd")) + "dispseq";
  1787. fCache2Grid("/root/main/temp/updept", last_dn_row);//위에있는 같은레벨의 부서('캐쉬에저장되어있음')를 선택된부서와 같은레벨의 부서의 마지막 위치부터 붙인다.
  1788. var updept_list = instance1.selectNodes("/root/main/temp/updept");//위에있는 같은레벨의 부서의 수를 알아내기위해 캐쉬에 저장되어있는 정보를 가져온다.
  1789. for(var i=0; i<updept_list.length; i++){//위에있는 같은레벨의 부서의 수만큼 시작위치부터 삭제한다.
  1790. grd_deptlist.deleterow(up_row, false);
  1791. }
  1792. fReorgSequenceFromBizDeptGrid(grd_deptlist, parents, parents_cols, dispseq_cols);
  1793. fRefreshGridRowStatus(grd_deptlist, "rowstatus");
  1794. model.setValue("/root/main/modedetail", "reorg");
  1795. model.setValue("/root/main/modedetailstatus", "");
  1796. grd_deptlist.refresh();
  1797. setTreeItem(grd_deptlist, grd_deptlist.colRef("level"), grd_deptlist.colRef("inorddeptnm"));
  1798. }
  1799. ]]>
  1800. </script>
  1801. </img>
  1802. <img id="img_mv_down" class="icon_bottom" style="left:810px; top:305px; width:26px; height:19px; background-stretch:stretch; ">
  1803. <script type="javascript" ev:event="onclick">
  1804. <![CDATA[
  1805. var modedetail = model.getValue("/root/main/modedetail");
  1806. if(modedetail!="init"&&modedetail!="reorg"){
  1807. if(modedetail=="create"){
  1808. var nextstep = messageBox("부서이력 추가작업중이었습니다. 추가작업이 초기화되며, 출력상태변경 작업을 진행하게 됩니다", "S001");
  1809. if(nextstep==6){
  1810. messageBox("출력상태 변경작업을 진행합니다.", "I");
  1811. }else{
  1812. return;
  1813. }
  1814. }else if(modedetail=="update"){
  1815. var nextstep = messageBox("부서이력 수정작업중이었습니다. 수정작업이 초기화되며, 출력상태변경 작업을 진행하게 됩니다", "S001");
  1816. if(nextstep==6){
  1817. messageBox("출력상태 변경작업을 진행합니다.", "I");
  1818. }else{
  1819. return;
  1820. }
  1821. }
  1822. fInitialize();
  1823. }
  1824. var deptcd = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd"));//선택된 부서의 부서코드
  1825. var dn_row = fFindDownSameLevelRow(grd_deptlist);//선택된부서 아래에 있는 같은레벨의 부서위치
  1826. //alert("dn_row : "+dn_row);
  1827. if( dn_row == -1 ){
  1828. messageBox("하위로 이동할수", "I004");
  1829. }else{
  1830. var up_row = grd_deptlist.row;//위에있는부서위치('선택된부서')
  1831. var parents_cols = model.getValue("/root/main/search/authority");
  1832. var parents = grd_deptlist.valueMatrix(grd_deptlist.row,grd_deptlist.colRef(parents_cols));
  1833. var dispseq_cols = parents_cols.substring(0, parents_cols.indexOf("supdeptcd")) + "dispseq";
  1834. fCacheDeptBundle(grd_deptlist, up_row, "/root/main/deptlist/dept", "/root/main/temp/updept");//위에있는부서('선택된부서')와 그하위에 있는 부서를 캐쉬에 보관
  1835. var last_dn_row = fCacheDeptBundle(grd_deptlist, dn_row, "/root/main/deptlist/dept", "/root/main/temp/dndept");//아래에있는부서와 그하위에 있는 부서를 캐쉬에 보관
  1836. fCache2Grid("/root/main/temp/updept", last_dn_row);//위에있는부서('선택된부서')와 그하위에 있는부서들을 아래에있는부서와 그하위에 있는 부서다음에 붙인다.
  1837. var updept_list = instance1.selectNodes( "/root/main/temp/updept");//캐쉬에 저장된 위에있는부서의 수를 구하기위해 목록을 가져온다.
  1838. for(var i=0; i<updept_list.length; i++){//위에서부터 길이만큼 삭제한다.
  1839. grd_deptlist.deleterow(up_row, false);
  1840. }
  1841. fReorgSequenceFromBizDeptGrid(grd_deptlist, parents, parents_cols, dispseq_cols);
  1842. fRefreshGridRowStatus(grd_deptlist, "rowstatus");
  1843. setTreeItem(grd_deptlist, grd_deptlist.colRef("level"), grd_deptlist.colRef("inorddeptnm"));
  1844. fFindItem(grd_deptlist, deptcd, "deptcd");
  1845. model.setValue("/root/main/modedetail", "reorg");
  1846. model.setValue("/root/main/modedetailstatus", "");
  1847. model.refresh();
  1848. }
  1849. ]]>
  1850. </script>
  1851. </img>
  1852. <caption id="caption4" ref="/root/main/label/right" class="tit_2" style="left:405px; top:85px; width:115px; height:13px; ">업무부서마스터</caption>
  1853. <caption id="caption8" ref="/root/main/label/deptinfo" class="tit_2" style="left:840px; top:85px; width:213px; height:13px; "/>
  1854. <datagrid id="grd_depthistorylist" nodeset="/root/main/depthistorylist/depthistory" caption="색상^유효시작일자^유효종료일자^외래진료부서명^입원진료부서명^부서 한글명(MIS사용)^부서코드^부서 영문명^부서 한문명^부서위치^부서 영문약어^부서 한글약어^청구분야^진료부서구분^진료부서유형^진료분과구분^청구부서번호^다음 가실곳 여부^다음가실곳 우선순위^인터넷 예약구분^전화번호^근무지부서여부^청구권한부서^기획부서여부^기획상위부서^기획부서 출력순서^진료부서여부^진료상위부서^진료부서 출력순서^임상과출력순서^인사부서 여부^인사 상위부서^인사부서 출력순서^구매부서 사용여부^구매 상위부서^구매부서 출력순서^재무부서 사용여부^재무 상위부서^재무 출력순서^간호 사용여부^간호 상위부서^간호 출력순서^총무 사용여부^총무 상위부서^총무 출력순서^수납 사용여부^수납 상위부서^수납 출력순서^원무 사용여부^원무 상위부서^원무 출력순서^의료정보 사용여부^의료정보 상위부서^의료정보 출력순서^보험 사용여부^보험 상위부서^보험 출력순서^근태 사용여부^근태 상위부서^근태 출력순서^그룹웨어사용여부^그룹웨어상위부서코드^그룹웨어출력순서^기관상위부서코드^기관출력순서^기관코드^현재사용여부" colsep="▦" colwidth="100, 100, 100, 100, 100, 300, 127, 120, 100, 100, 100, 100, 100, 100, 100, 100, 124, 100, 120, 100, 121, 100, 100, 100, 100, 104, 100, 111, 109, 100, 100, 113, 107, 107, 105, 111, 110, 107, 108, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 110, 114, 106, 107, 107, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" dataheight="25" defaultrows="0" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="▩" style="left:0px; top:595px; width:805px; height:140px; border-color:#808080; ">
  1855. <col ref="color" visibility="hidden" style="left:20px; top:23px; width:100px; height:23px; "/>
  1856. <col ref="valifromdd"/>
  1857. <col ref="valitodd"/>
  1858. <col ref="depthngnm"/>
  1859. <col ref="indepthngnm"/>
  1860. <col ref="inorddeptnm"/>
  1861. <col ref="deptcd" visibility="hidden"/>
  1862. <col ref="deptengnm"/>
  1863. <col ref="deptchinm"/>
  1864. <col ref="deptplce"/>
  1865. <col ref="deptengabbr"/>
  1866. <col ref="depthngabbr"/>
  1867. <col ref="reqfild"/>
  1868. <col ref="orddeptflag" type="combo">
  1869. <choices>
  1870. <item>
  1871. <label>입원진료과</label>
  1872. <value>D</value>
  1873. </item>
  1874. <item>
  1875. <label>병동</label>
  1876. <value>W</value>
  1877. </item>
  1878. <item>
  1879. <label>진료지원수행부서</label>
  1880. <value>E</value>
  1881. </item>
  1882. <item>
  1883. <label>Consult부서</label>
  1884. <value>A</value>
  1885. </item>
  1886. <item>
  1887. <label>기타부서</label>
  1888. <value>X</value>
  1889. </item>
  1890. </choices>
  1891. </col>
  1892. <col ref="orddeptkind" type="combo">
  1893. <choices>
  1894. <item>
  1895. <label>센터</label>
  1896. <value>C</value>
  1897. </item>
  1898. <item>
  1899. <label>일반부서</label>
  1900. <value>D</value>
  1901. </item>
  1902. </choices>
  1903. </col>
  1904. <col ref="ordclsdeptflag" type="combo">
  1905. <choices>
  1906. <item>
  1907. <label>대표과</label>
  1908. <value>R</value>
  1909. </item>
  1910. <item>
  1911. <label>분과</label>
  1912. <value>C</value>
  1913. </item>
  1914. <item>
  1915. <label>간호외래</label>
  1916. <value>A</value>
  1917. </item>
  1918. </choices>
  1919. </col>
  1920. <col ref="reqdeptno" type="combo">
  1921. <choices>
  1922. <itemset nodeset="/root/init/reqdeptnocode/P0322">
  1923. <label ref="cdnm"/>
  1924. <value ref="cdid"/>
  1925. </itemset>
  1926. </choices>
  1927. </col>
  1928. <col ref="nextplceyn" type="combo">
  1929. <choices>
  1930. <item>
  1931. <label>사용함</label>
  1932. <value>Y</value>
  1933. </item>
  1934. <item>
  1935. <label>사용안함</label>
  1936. <value>N</value>
  1937. </item>
  1938. </choices>
  1939. </col>
  1940. <col ref="nextplceprity"/>
  1941. <col ref="inetrsrvyn" type="combo">
  1942. <choices>
  1943. <item>
  1944. <label>사용함</label>
  1945. <value>Y</value>
  1946. </item>
  1947. <item>
  1948. <label>사용안함</label>
  1949. <value>N</value>
  1950. </item>
  1951. </choices>
  1952. </col>
  1953. <col ref="cntctel"/>
  1954. <col ref="dutplceuseyn" type="combo">
  1955. <choices>
  1956. <item>
  1957. <label>사용함</label>
  1958. <value>Y</value>
  1959. </item>
  1960. <item>
  1961. <label>사용안함</label>
  1962. <value>N</value>
  1963. </item>
  1964. </choices>
  1965. </col>
  1966. <col ref="reqauthdeptyn"/>
  1967. <col ref="planuseyn" type="combo">
  1968. <choices>
  1969. <item>
  1970. <label>사용함</label>
  1971. <value>Y</value>
  1972. </item>
  1973. <item>
  1974. <label>사용안함</label>
  1975. <value>N</value>
  1976. </item>
  1977. </choices>
  1978. </col>
  1979. <col ref="plansupdeptcd" visibility="hidden"/>
  1980. <col ref="plandispseq" visibility="hidden"/>
  1981. <col ref="orduseyn" type="combo">
  1982. <choices>
  1983. <item>
  1984. <label>사용함</label>
  1985. <value>Y</value>
  1986. </item>
  1987. <item>
  1988. <label>사용안함</label>
  1989. <value>N</value>
  1990. </item>
  1991. </choices>
  1992. </col>
  1993. <col ref="ordsupdeptcd" visibility="hidden"/>
  1994. <col ref="orddispseq"/>
  1995. <col ref="clincdeptdispseq"/>
  1996. <col ref="psnworkuseyn" type="combo">
  1997. <choices>
  1998. <item>
  1999. <label>사용함</label>
  2000. <value>Y</value>
  2001. </item>
  2002. <item>
  2003. <label>사용안함</label>
  2004. <value>N</value>
  2005. </item>
  2006. </choices>
  2007. </col>
  2008. <col ref="psnworksupdeptcd" visibility="hidden"/>
  2009. <col ref="psnworkdispseq" visibility="hidden"/>
  2010. <col ref="purcuseyn" type="combo">
  2011. <choices>
  2012. <item>
  2013. <label>사용함</label>
  2014. <value>Y</value>
  2015. </item>
  2016. <item>
  2017. <label>사용안함</label>
  2018. <value>N</value>
  2019. </item>
  2020. </choices>
  2021. </col>
  2022. <col ref="purcsupdeptcd" visibility="hidden"/>
  2023. <col ref="purcdispseq" visibility="hidden"/>
  2024. <col ref="fnworkuseyn" type="combo">
  2025. <choices>
  2026. <item>
  2027. <label>사용함</label>
  2028. <value>Y</value>
  2029. </item>
  2030. <item>
  2031. <label>사용안함</label>
  2032. <value>N</value>
  2033. </item>
  2034. </choices>
  2035. </col>
  2036. <col ref="fnworksupdeptcd" visibility="hidden"/>
  2037. <col ref="fnworkdispseq" visibility="hidden"/>
  2038. <col ref="careuseyn" type="combo">
  2039. <choices>
  2040. <item>
  2041. <label>사용함</label>
  2042. <value>Y</value>
  2043. </item>
  2044. <item>
  2045. <label>사용안함</label>
  2046. <value>N</value>
  2047. </item>
  2048. </choices>
  2049. </col>
  2050. <col ref="caresupdeptcd" visibility="hidden"/>
  2051. <col ref="caredispseq" visibility="hidden"/>
  2052. <col ref="gafruseyn" type="combo">
  2053. <choices>
  2054. <item>
  2055. <label>사용함</label>
  2056. <value>Y</value>
  2057. </item>
  2058. <item>
  2059. <label>사용안함</label>
  2060. <value>N</value>
  2061. </item>
  2062. </choices>
  2063. </col>
  2064. <col ref="gafrsupdeptcd" visibility="hidden"/>
  2065. <col ref="gafrdispseq" visibility="hidden"/>
  2066. <col ref="rcptuseyn" type="combo">
  2067. <choices>
  2068. <item>
  2069. <label>사용함</label>
  2070. <value>Y</value>
  2071. </item>
  2072. <item>
  2073. <label>사용안함</label>
  2074. <value>N</value>
  2075. </item>
  2076. </choices>
  2077. </col>
  2078. <col ref="rcptsupdeptcd" visibility="hidden"/>
  2079. <col ref="rcptdispseq" visibility="hidden"/>
  2080. <col ref="pamuseyn" type="combo">
  2081. <choices>
  2082. <item>
  2083. <label>사용함</label>
  2084. <value>Y</value>
  2085. </item>
  2086. <item>
  2087. <label>사용안함</label>
  2088. <value>N</value>
  2089. </item>
  2090. </choices>
  2091. </col>
  2092. <col ref="pamsupdeptcd" visibility="hidden"/>
  2093. <col ref="pamdispseq" visibility="hidden"/>
  2094. <col ref="healcareinfouseyn" type="combo">
  2095. <choices>
  2096. <item>
  2097. <label>사용함</label>
  2098. <value>Y</value>
  2099. </item>
  2100. <item>
  2101. <label>사용안함</label>
  2102. <value>N</value>
  2103. </item>
  2104. </choices>
  2105. </col>
  2106. <col ref="healcareinfosupdeptcd" visibility="hidden"/>
  2107. <col ref="healcareinfodispseq" visibility="hidden"/>
  2108. <col ref="insuuseyn" type="combo">
  2109. <choices>
  2110. <itemset nodeset="/root/init/insuuseyn/Z0015">
  2111. <label ref="cdnm"/>
  2112. <value ref="cdid"/>
  2113. </itemset>
  2114. </choices>
  2115. </col>
  2116. <col ref="insusupdeptcd" visibility="hidden"/>
  2117. <col ref="insudispseq" visibility="hidden"/>
  2118. <col ref="dgenuseyn" type="combo">
  2119. <choices>
  2120. <item>
  2121. <label>사용함</label>
  2122. <value>Y</value>
  2123. </item>
  2124. <item>
  2125. <label>사용안함</label>
  2126. <value>N</value>
  2127. </item>
  2128. </choices>
  2129. </col>
  2130. <col ref="dgensupdeptcd" visibility="hidden"/>
  2131. <col ref="dgendispseq" visibility="hidden"/>
  2132. <col ref="homecareuseyn" type="combo">
  2133. <choices>
  2134. <item>
  2135. <label>사용함</label>
  2136. <value>Y</value>
  2137. </item>
  2138. <item>
  2139. <label>사용안함</label>
  2140. <value>N</value>
  2141. </item>
  2142. </choices>
  2143. </col>
  2144. <col ref="homecaresupdeptcd" visibility="hidden"/>
  2145. <col ref="homecaredispseq" visibility="hidden"/>
  2146. <col ref="instsupdeptcd" visibility="hidden"/>
  2147. <col ref="instdispseq" visibility="hidden"/>
  2148. <col ref="instcd" visibility="hidden"/>
  2149. <col ref="iscurrent" type="combo">
  2150. <choices>
  2151. <item>
  2152. <label>미래사용</label>
  2153. <value>F</value>
  2154. </item>
  2155. <item>
  2156. <label>현재사용</label>
  2157. <value>Y</value>
  2158. </item>
  2159. <item>
  2160. <label>과거사용</label>
  2161. <value>P</value>
  2162. </item>
  2163. </choices>
  2164. </col>
  2165. <script type="javascript" ev:event="ondblclick">
  2166. <![CDATA[
  2167. if( !grd_depthistorylist.iscell(event.target) || grd_depthistorylist.row<1){
  2168. return;
  2169. }
  2170. fInitMainDataControls(false);
  2171. fHistoryGrid2Main();
  2172. model.setValue("/root/main/modedetail", "retrived");
  2173. model.setValue("/root/main/label/deptinfo", "부서정보보기");
  2174. model.refresh();
  2175. fInitMainDataControls(true);
  2176. ]]>
  2177. </script>
  2178. </datagrid>
  2179. <caption id="caption18" class="tit_2" style="left:0px; top:576px; width:75px; height:13px; ">부서이력</caption>
  2180. <caption id="caption20" style="left:499px; top:560px; width:38px; height:14px; ">미사용</caption>
  2181. <caption id="caption21" class="color_5" style="left:546px; top:559px; width:15px; height:15px; "/>
  2182. <caption id="caption22" style="left:564px; top:560px; width:32px; height:14px; ">종료</caption>
  2183. <caption id="caption35" class="color_1" style="left:611px; top:559px; width:15px; height:15px; "/>
  2184. <caption id="caption23" style="left:629px; top:560px; width:32px; height:14px; ">미래</caption>
  2185. <caption id="caption47" class="cell_2" style="left:403px; top:557px; width:70px; height:20px; ">범 례</caption>
  2186. <caption id="caption37" class="color_8" style="left:676px; top:559px; width:15px; height:15px; background-color:#ffffff; border-style:solid; "/>
  2187. <caption id="caption38" style="left:694px; top:560px; width:32px; height:14px; ">현재</caption>
  2188. <caption id="caption24" class="color_9" style="left:481px; top:559px; width:15px; height:15px; "/>
  2189. <caption id="caption13" class="color_8" style="left:741px; top:559px; width:15px; height:15px; "/>
  2190. <caption id="caption26" style="left:759px; top:560px; width:32px; height:14px; ">임시</caption>
  2191. <shape id="roundrect1" class="roundrect_example" appearance="roundrect" style="left:400px; top:552px; width:405px; height:30px; "/>
  2192. <line id="line2" class="line_1" style="x1:0px; y1:590px; x2:805px; y2:590px; "/>
  2193. <caption id="caption27" class="cell_1" style="left:838px; top:249px; width:125px; height:23px; vertical-align:middle; ">외래진료부서명</caption>
  2194. <input id="ipt_depthngnm" ref="/root/main/data/depthngnm" class="input_essential" navindex="6" maxlength="21" style="left:964px; top:249px; width:228px; height:19px; ">
  2195. <script type="javascript" ev:event="onkeyup">
  2196. <![CDATA[
  2197. var strlen = 0;
  2198. var str = ipt_depthngnm.currentText
  2199. for (var i=0; i<str.length; i++) {
  2200. strlen += (str.charCodeAt(i) > 128) ? 2 : 1;
  2201. if (strlen > 64) {
  2202. messageBox("최대입력글자인 64byte를 ", "E003");
  2203. strlen -= (str.charCodeAt(i) > 128) ? 2 : 1;
  2204. break;
  2205. }
  2206. }
  2207. ]]>
  2208. </script>
  2209. </input>
  2210. </group>
  2211. <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
  2212. <button id="btn_init" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
  2213. <caption>초기화</caption>
  2214. <script type="javascript" ev:event="DOMActivate">
  2215. <![CDATA[
  2216. model.setValue("/root/main/search/deptmaster/supdeptcd", "");
  2217. model.removenode("/root/main/clsdeptlist");
  2218. model.makeNode("/root/main/clsdeptlist");
  2219. model.removenode("/root/main/deptlist");
  2220. model.makeNode("/root/main/deptlist");
  2221. model.setValue("/root/main/mode", "init");
  2222. model.setValue("/root/main/modedetail", "init");
  2223. model.setValue("/root/main/modedetailstatus", "none");
  2224. fInitMainData();
  2225. model.refresh();
  2226. fInitMainDataControls(true);
  2227. ]]>
  2228. </script>
  2229. </button>
  2230. <button id="btn_save" class="btn4_letter2" navindex="34" focus.background-color="#99ccff" style="left:1067px; top:5px; width:56px; height:22px; ">
  2231. <caption>저장</caption>
  2232. <script type="javascript" ev:event="DOMActivate">
  2233. <![CDATA[
  2234. var mode = model.getValue("/root/main/mode");
  2235. if(mode!="retrived"){
  2236. messageBox("조회된 경우에만 저장 가능합니다.", "C");
  2237. return;
  2238. }
  2239. /* 1. 정보창 작업에 대한 처리 */
  2240. var mode_detail = model.getValue("/root/main/modedetail");
  2241. if(mode_detail=="reorg"){
  2242. model.removenode("/root/hidden/temp");
  2243. var update_data = grd_deptlist.getUpdateData ('update');
  2244. var insert_data = grd_deptlist.getUpdateData('insert');
  2245. model.makeValue("/root/send/updatedeptstructure", update_data);
  2246. model.makeValue("/root/send/insertdeptstructure", insert_data);
  2247. var bizcd = fGetBizCD();
  2248. model.makeValue("/root/send/bisiness", bizcd);
  2249. model.makeNode("/root/hidden/temp");
  2250. var success = submit("TXZSD00107");
  2251. if(success){
  2252. for(var i=grd_deptlist.fixedRows; i<grd_deptlist.rows; i++){
  2253. grd_deptlist.rowStatus(i) = 0;
  2254. grd_deptlist.valueMatrix(i, grd_deptlist.colRef("rowstatus")) = 0;
  2255. }
  2256. model.setValue("/root/main/mode", "retrived");
  2257. model.setValue("/root/main/modedetail", "init");
  2258. model.setValue("/root/main/modedetail", "none");
  2259. model.refresh();
  2260. var u_updated = model.getValue("/root/hidden/temp/updateresultmsg/updated");
  2261. var i_updated = model.getValue("/root/hidden/temp/insertresultmsg/updated");
  2262. messageBox(u_updated+"건의 부서이력이 다른위치로 이동 되었습니다.", "I");
  2263. messageBox(i_updated+"건의 부서이력이 새로운 위치로 이동 되었습니다.", "I");
  2264. }else{
  2265. messageBox("위치이동, 출력순서변경에 실패하였습니다.", "C");
  2266. }
  2267. }else if(mode_detail=="update"){
  2268. model.resetInstanceNode("/root/send/data");
  2269. var standard = model.getValue("/root/main/search/authority");
  2270. if("plansupdeptcd"==standard){
  2271. cmb_planuseyn.disabled = false;
  2272. var planuseyn = model.getValue("/root/main/data/planuseyn");
  2273. var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
  2274. if(planuseyn==standarduseyn){
  2275. messageBox("기획사용여부가 기존현재이력와 동일하기 때문에 변경할수 없습니다.", "C");
  2276. return;
  2277. }else{
  2278. model.makeValue("/root/send/data/standard", "plan");
  2279. model.makeValue("/root/send/data/standarduseyn", planuseyn);
  2280. model.makeValue("/root/send/data/standardflag", "");
  2281. }
  2282. }else if("ordsupdeptcd"==standard){
  2283. cmb_orduseyn.disabled = false;
  2284. cmb_orddeptflag.disabled = false;
  2285. var orduseyn = model.getValue("/root/main/data/orduseyn");
  2286. var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
  2287. var orddeptflag = model.getValue("/root/main/data/orddeptflag");
  2288. var standardflag = model.getValue("/root/main/prevdata/standardflag");
  2289. if(orduseyn==standarduseyn&&orddeptflag==standardflag){
  2290. messageBox("진료사용여부와 진료부서구분이 기존현재이력와 동일하기 때문에 변경할수 없습니다.", "C");
  2291. return;
  2292. }else{
  2293. model.makeValue("/root/send/data/standard", "ord");
  2294. model.makeValue("/root/send/data/standarduseyn", orduseyn);
  2295. model.makeValue("/root/send/data/standardflag", orddeptflag);
  2296. }
  2297. }else if("psnworksupdeptcd"==standard){
  2298. cmb_psnworkuseyn.disabled = false;
  2299. var psnworkuseyn = model.getValue("/root/main/data/psnworkuseyn");
  2300. var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
  2301. if(psnworkuseyn==standarduseyn){
  2302. messageBox("인사사용여부가 기존현재이력과 동일하기 때문에 변경할수 없습니다.", "C");
  2303. return;
  2304. }else{
  2305. model.makeValue("/root/send/data/standard", "psnwork");
  2306. model.makeValue("/root/send/data/standarduseyn", psnworkuseyn);
  2307. model.makeValue("/root/send/data/standardflag", "");
  2308. }
  2309. }else if("purcsupdeptcd"==standard){
  2310. cmb_purcuseyn.disabled = false;
  2311. var purcuseyn = model.getValue("/root/main/data/purcuseyn");
  2312. var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
  2313. if(purcuseyn==standarduseyn){
  2314. messageBox("구매사용여부가 기존현재이력과 동일하기 때문에 변경할수 없습니다.", "C");
  2315. return;
  2316. }else{
  2317. model.makeValue("/root/send/data/standard", "purc");
  2318. model.makeValue("/root/send/data/standarduseyn", purcuseyn);
  2319. model.makeValue("/root/send/data/standardflag", "");
  2320. }
  2321. }else if("fnworksupdeptcd"==standard){
  2322. cmb_fnworkuseyn.disabled = false;
  2323. var fnworkuseyn = model.getValue("/root/main/data/fnworkuseyn");
  2324. var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
  2325. if(fnworkuseyn==standarduseyn){
  2326. messageBox("재무사용여부가 기존현재이력과 동일하기 때문에 변경할수 없습니다.", "C");
  2327. return;
  2328. }else{
  2329. model.makeValue("/root/send/data/standard", "fnwork");
  2330. model.makeValue("/root/send/data/standarduseyn", fnworkuseyn);
  2331. model.makeValue("/root/send/data/standardflag", "");
  2332. }
  2333. }else if("caresupdeptcd"==standard){
  2334. cmb_careuseyn.disabled = false;
  2335. var careuseyn = model.getValue("/root/main/data/careuseyn");
  2336. var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
  2337. if(careuseyn==standarduseyn){
  2338. messageBox("간호사용여부가 기존현재이력과 동일하기 때문에 변경할수 없습니다.", "C");
  2339. return;
  2340. }else{
  2341. model.makeValue("/root/send/data/standard", "care");
  2342. model.makeValue("/root/send/data/standarduseyn", careuseyn);
  2343. model.makeValue("/root/send/data/standardflag", "");
  2344. }
  2345. }else if("gafrsupdeptcd"==standard){
  2346. cmb_gafruseyn.disabled = false;
  2347. var gafruseyn = model.getValue("/root/main/data/gafruseyn");
  2348. var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
  2349. if(gafruseyn==standarduseyn){
  2350. messageBox("총무사용여부가 기존현재이력과 동일하기 때문에 변경할수 없습니다.", "C");
  2351. return;
  2352. }else{
  2353. model.makeValue("/root/send/data/standard", "gafr");
  2354. model.makeValue("/root/send/data/standarduseyn", gafruseyn);
  2355. model.makeValue("/root/send/data/standardflag", "");
  2356. }
  2357. }else if("rcptsupdeptcd"==standard){
  2358. cmb_rcptuseyn.disabled = false;
  2359. var rcptuseyn = model.getValue("/root/main/data/rcptuseyn");
  2360. var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
  2361. if(rcptuseyn==standarduseyn){
  2362. messageBox("수납사용여부가 기존현재이력과 동일하기 때문에 변경할수 없습니다.", "C");
  2363. return;
  2364. }else{
  2365. model.makeValue("/root/send/data/standard", "rcpt");
  2366. model.makeValue("/root/send/data/standarduseyn", rcptuseyn);
  2367. model.makeValue("/root/send/data/standardflag", "");
  2368. }
  2369. }else if("pamsupdeptcd"==standard){
  2370. cmb_pamuseyn.disabled = false;
  2371. var pamuseyn = model.getValue("/root/main/data/pamuseyn");
  2372. var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
  2373. if(pamuseyn==standarduseyn){
  2374. messageBox("원무사용여부가 기존현재이력과 동일하기 때문에 변경할수 없습니다.", "C");
  2375. return;
  2376. }else{
  2377. model.makeValue("/root/send/data/standard", "pam");
  2378. model.makeValue("/root/send/data/standarduseyn", pamuseyn);
  2379. model.makeValue("/root/send/data/standardflag", "");
  2380. }
  2381. }else if("healcareinfosupdeptcd"==standard){
  2382. cmb_healcareinfouseyn.disabled = false;
  2383. var healcareinfouseyn = model.getValue("/root/main/data/healcareinfouseyn");
  2384. var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
  2385. if(healcareinfouseyn==standarduseyn){
  2386. messageBox("의료정보사용여부가 기존현재이력과 동일하기 때문에 변경할수 없습니다.", "C");
  2387. return;
  2388. }else{
  2389. model.makeValue("/root/send/data/standard", "healcareinfo");
  2390. model.makeValue("/root/send/data/standarduseyn", healcareinfouseyn);
  2391. model.makeValue("/root/send/data/standardflag", "");
  2392. }
  2393. }else if("insusupdeptcd"==standard){
  2394. cmb_insuuseyn.disabled = false;
  2395. var insuuseyn = model.getValue("/root/main/data/insuuseyn");
  2396. var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
  2397. if(insuuseyn==standarduseyn){
  2398. messageBox("보험사용여부가 기존현재이력과 동일하기 때문에 변경할수 없습니다.", "C");
  2399. return;
  2400. }else{
  2401. model.makeValue("/root/send/data/standard", "insu");
  2402. model.makeValue("/root/send/data/standarduseyn", insuuseyn);
  2403. model.makeValue("/root/send/data/standardflag", "");
  2404. }
  2405. }else if("dgensupdeptcd"==standard){
  2406. cmb_dgenuseyn.disabled = false;
  2407. var dgenuseyn = model.getValue("/root/main/data/dgenuseyn");
  2408. var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
  2409. if(dgenuseyn==standarduseyn){
  2410. messageBox("근태사용여부가 기존현재이력과 동일하기 때문에 변경할수 없습니다.", "C");
  2411. return;
  2412. }else{
  2413. model.makeValue("/root/send/data/standard", "dgen");
  2414. model.makeValue("/root/send/data/standarduseyn", dgenuseyn);
  2415. model.makeValue("/root/send/data/standardflag", "");
  2416. }
  2417. }else if("homecaresupdeptcd"==standard){
  2418. cmb_homecareuseyn.disabled = false;
  2419. var homecareuseyn = model.getValue("/root/main/data/homecareuseyn");
  2420. var standarduseyn = model.getValue("/root/main/prevdata/standarduseyn");
  2421. if(homecareuseyn==standarduseyn){
  2422. messageBox("그룹웨어사용여부가 기존현재이력과 동일하기 때문에 변경할수 없습니다.", "C");
  2423. return;
  2424. }else{
  2425. model.makeValue("/root/send/data/standard", "homecare");
  2426. model.makeValue("/root/send/data/standarduseyn", homecareuseyn);
  2427. model.makeValue("/root/send/data/standardflag", "");
  2428. }
  2429. }else{
  2430. messageBox("ERROR=>unexpected standard : "+standard, "C");
  2431. }
  2432. model.makeValue("/root/send/data/deptcd", model.getValue("/root/main/data/deptcd"));
  2433. model.makeValue("/root/send/data/valifromdd", model.getValue("/root/main/data/valifromdd"));
  2434. model.makeValue("/root/send/data/valitodd", model.getValue("/root/main/data/valitodd"));
  2435. var success = submit("TXZSD00108");
  2436. if(success){
  2437. var deptcd = model.getValue("/root/main/data/deptcd");
  2438. var selected_row = fFindDept(deptcd);
  2439. var current_date = new Date();
  2440. var current_date_string = current_date.getDateFormat("YYYYMMDD");
  2441. grd_deptlist.valueMatrix(selected_row, grd_deptlist.colRef("valitodd")) = current_date_string;
  2442. selected_row = fIndexOfDeptHistory("present");
  2443. grd_depthistorylist.valueMatrix(selected_row, grd_depthistorylist.colRef("valitodd")) = current_date_string;
  2444. var future_valifromdd = model.getValue("/root/hidden/temp/deptfuturehistory/valifromdd");
  2445. var future_valitodd = model.getValue("/root/hidden/temp/deptfuturehistory/valitodd");
  2446. model.setValue("/root/main/data/valifromdd", future_valifromdd);
  2447. model.setValue("/root/main/data/valitodd", future_valitodd);
  2448. model.setValue("/root/main/modedetail", "retrived");
  2449. model.setValue("/root/main/label/deptinfo", "부서정보보기")
  2450. model.refresh();
  2451. fInitMainDataControls(true);
  2452. grd_depthistorylist.insertrow(1, "before", true);
  2453. fCopyDetail2DeptHistoryGrid(1);
  2454. grd_depthistorylist.rowStatus(1) = 0;
  2455. grd_depthistorylist.valueMatrix(1, grd_depthistorylist.colRef("color")) = "#fcd2c1";
  2456. grd_depthistorylist.rowstyle( 1 , "data" , "background-color" ) = "#fcd2c1";
  2457. grd_depthistorylist.valueMatrix(1, grd_depthistorylist.colRef("iscurrent")) = "F";
  2458. messageBox("현재이력을 수정하였습니다.", "I");
  2459. }else{
  2460. messageBox("현재이력 수정에 실패하였습니다. 화면과 데이터페이스간에 동기가 맞지 않는 경우이니 조회를 다시한후 다시 시도해 보세요.\n계속 문제가 발생한다면 관리자에게 문의하세요.", "I");
  2461. }
  2462. }
  2463. ]]>
  2464. </script>
  2465. </button>
  2466. <line id="line1" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
  2467. </group>
  2468. </xhtml:body>
  2469. </xhtml:html>