SMRPD12900_학생번표관리.xfdl 73 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRPD12900" position="absolute 0 0 1199 800" titletext="학생번표등록" oninit="SMRPD12900_oninit" onload="SMRPD12900_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="학생번표등록" class="tit_1" position="absolute 0 0 125 25"/>
  8. <Button id="btn_admin" taborder="1" text="관리자모드" class="btn3" position="absolute 0 26 92 48" onclick="btn_admin_onclick"/>
  9. <Shape id="line75" class="line_6" position="absolute 0 47 1195 53" anchor="left top right"/>
  10. <Button id="btn_synY" taborder="2" text="수간호사결재" class="btn4" position="absolute 718 26 822 48" anchor="top right" onclick="btn_synY_onclick"/>
  11. <Button id="button5" taborder="3" text="출력" class="btn4" position="absolute 661 26 717 48" anchor="top right" onclick="button5_onclick"/>
  12. <Button id="btn_synN" taborder="4" text="수간호사결재해제" class="btn4" position="absolute 823 26 951 48" anchor="top right" onclick="btn_synN_onclick"/>
  13. <Button id="btn_mynY" taborder="5" text="최종확인" class="btn4" position="absolute 952 26 1032 48" anchor="top right" onclick="btn_mynY_onclick"/>
  14. <Button id="btn_mynN" taborder="6" text="최종확인해제" class="btn4" position="absolute 1033 26 1137 48" anchor="top right" onclick="btn_mynN_onclick"/>
  15. <Button id="btn_save" taborder="7" text="저장" class="btn4" position="absolute 1138 26 1194 48" anchor="top right" onclick="btn_save_onclick"/>
  16. <Shape id="line1" class="line_10" position="absolute 0 118 1195 124" anchor="left top right"/>
  17. <Static id="caption9" text="근무 스케줄" class="tit_2" position="absolute 0 102 109 123"/>
  18. <Div id="group4" taborder="8" class="div_SA2" position="absolute 0 51 1195 91" anchor="left top right">
  19. <Layouts>
  20. <Layout>
  21. <Static id="caption5" text="부서 :" class="search_name" position="absolute 260 11 325 28"/>
  22. <Shape id="line3" linetype="vertical" class="line_4" position="absolute 1107 10 1113 28" anchor="top right"/>
  23. <Static id="caption1" text="근무년월 :" class="search_name" position="absolute 575 11 666 28"/>
  24. <Calendar id="ipt_dutym" taborder="7" class="input_search" position="absolute 655 10 765 29" mask="yyyy-mm" autoselect="true" autoskip="true" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" onchanged="group4_ipt_dutym_onchanged" style="align:center middle;"/>
  25. <Edit id="ipt_dutdeptcd" taborder="8" class="input_s_essential" position="absolute 314 10 399 29" autoselect="true" autoskip="true" onkeydown="group4_ipt_dutdeptcd_onkeydown"/>
  26. <Edit id="ipt_dutdeptnm" taborder="9" class="input_search" enable="false" position="absolute 423 10 557 29" autoselect="true"/>
  27. <Button id="btn_dutdept" taborder="10" class="icon_search" position="absolute 404 11 420 27" onclick="group4_btn_dutdept_onclick"/>
  28. <Button id="btn_search" taborder="11" text="조회" class="btn1" visible="false" position="absolute 1045 9 1101 31" onclick="group4_btn_search_onclick"/>
  29. <Button id="button1" taborder="12" text="조회" class="btn1" position="absolute 1122 9 1178 31" anchor="top right" onclick="group4_button1_onclick"/>
  30. <Static id="caption8" text="기관 :" class="search_name" position="absolute 15 11 80 28"/>
  31. <Combo id="cmb_instcd" taborder="13" position="absolute 65 10 240 29"/>
  32. </Layout>
  33. </Layouts>
  34. </Div>
  35. <Button id="btn_dutcdflag" taborder="9" text="행추가" class="btn2" position="absolute 940 99 993 118" anchor="top right" onclick="btn_dutcdflag_onclick"/>
  36. <Button id="btn_excsave" taborder="10" text="엑셀저장" class="btn7" position="absolute 859 99 939 118" anchor="top right" onclick="btn_excsave_onclick"/>
  37. <Button id="btn_delrow" taborder="11" text="행삭제" class="btn2" position="absolute 994 99 1047 118" anchor="top right" onclick="btn_delrow_onclick"/>
  38. <Grid id="grd_dutschelist" taborder="12" binddataset="ds_main_stusche_stuschelist" useinputpanel="false" position="absolute 0 123 1049 794" autoenter="select" cellsizingtype="col" anchor="all" oncelldblclick="grd_dutschelist_oncelldblclick" selecttype="multiarea">
  39. <Formats>
  40. <Format id="default">
  41. <Columns>
  42. <Column size="22" band="left"/>
  43. <Column size="130" band="left"/>
  44. <Column size="140" band="left"/>
  45. <Column size="90" band="left"/>
  46. <Column size="90" band="left"/>
  47. <Column size="80" band="left"/>
  48. <Column size="60" band="left"/>
  49. <Column size="24"/>
  50. <Column size="24"/>
  51. <Column size="24"/>
  52. <Column size="24"/>
  53. <Column size="24"/>
  54. <Column size="24"/>
  55. <Column size="24"/>
  56. <Column size="24"/>
  57. <Column size="24"/>
  58. <Column size="24"/>
  59. <Column size="24"/>
  60. <Column size="24"/>
  61. <Column size="24"/>
  62. <Column size="24"/>
  63. <Column size="24"/>
  64. <Column size="24"/>
  65. <Column size="24"/>
  66. <Column size="24"/>
  67. <Column size="24"/>
  68. <Column size="24"/>
  69. <Column size="24"/>
  70. <Column size="24"/>
  71. <Column size="24"/>
  72. <Column size="24"/>
  73. <Column size="24"/>
  74. <Column size="24"/>
  75. <Column size="24"/>
  76. <Column size="24"/>
  77. <Column size="24"/>
  78. <Column size="24"/>
  79. <Column size="24"/>
  80. <Column size="270"/>
  81. <Column size="0"/>
  82. <Column size="0"/>
  83. <Column size="0"/>
  84. <Column size="0"/>
  85. <Column size="0"/>
  86. <Column size="0"/>
  87. <Column size="0"/>
  88. <Column size="0"/>
  89. <Column size="0"/>
  90. <Column size="0"/>
  91. <Column size="0"/>
  92. <Column size="0"/>
  93. </Columns>
  94. <Rows>
  95. <Row size="24" band="head"/>
  96. <Row size="24" band="head"/>
  97. <Row size="24"/>
  98. </Rows>
  99. <Band id="head">
  100. <Cell rowspan="2" taborder="undefined"/>
  101. <Cell col="1" rowspan="2" text="부서" taborder="undefined"/>
  102. <Cell col="2" rowspan="2" text="실습의뢰기관" taborder="undefined"/>
  103. <Cell col="3" colspan="2" text="기간" taborder="undefined"/>
  104. <Cell col="5" rowspan="2" text="학년/&#10;과정" taborder="undefined"/>
  105. <Cell col="6" rowspan="2" text="성명" taborder="undefined"/>
  106. <Cell col="7" text="1"/>
  107. <Cell col="8" text="2"/>
  108. <Cell col="9" text="3"/>
  109. <Cell col="10" text="4"/>
  110. <Cell col="11" text="5"/>
  111. <Cell col="12" text="6"/>
  112. <Cell col="13" text="7"/>
  113. <Cell col="14" text="8"/>
  114. <Cell col="15" text="9"/>
  115. <Cell col="16" text="10"/>
  116. <Cell col="17" text="11"/>
  117. <Cell col="18" text="12"/>
  118. <Cell col="19" text="13"/>
  119. <Cell col="20" text="14"/>
  120. <Cell col="21" text="15"/>
  121. <Cell col="22" text="16"/>
  122. <Cell col="23" text="17"/>
  123. <Cell col="24" text="18"/>
  124. <Cell col="25" text="19"/>
  125. <Cell col="26" text="20"/>
  126. <Cell col="27" text="21"/>
  127. <Cell col="28" text="22"/>
  128. <Cell col="29" text="23"/>
  129. <Cell col="30" text="24"/>
  130. <Cell col="31" text="25"/>
  131. <Cell col="32" text="26"/>
  132. <Cell col="33" text="27"/>
  133. <Cell col="34" text="28"/>
  134. <Cell col="35" text="29"/>
  135. <Cell col="36" text="30"/>
  136. <Cell col="37" text="31"/>
  137. <Cell col="38" rowspan="2" text="비고" taborder="undefined"/>
  138. <Cell col="39"/>
  139. <Cell col="40"/>
  140. <Cell col="41"/>
  141. <Cell col="42"/>
  142. <Cell col="43"/>
  143. <Cell col="44"/>
  144. <Cell col="45"/>
  145. <Cell col="46"/>
  146. <Cell col="47"/>
  147. <Cell col="48"/>
  148. <Cell col="49"/>
  149. <Cell col="50"/>
  150. <Cell row="1" col="3" text="시작일"/>
  151. <Cell row="1" col="4" text="종료일"/>
  152. <Cell row="1" col="7" text="월"/>
  153. <Cell row="1" col="8" text="화"/>
  154. <Cell row="1" col="9" text="수"/>
  155. <Cell row="1" col="10" text="목"/>
  156. <Cell row="1" col="11" text="금"/>
  157. <Cell row="1" col="12" text="토"/>
  158. <Cell row="1" col="13" text="일"/>
  159. <Cell row="1" col="14" text="월"/>
  160. <Cell row="1" col="15" text="화"/>
  161. <Cell row="1" col="16" text="수"/>
  162. <Cell row="1" col="17" text="목"/>
  163. <Cell row="1" col="18" text="금"/>
  164. <Cell row="1" col="19" text="토"/>
  165. <Cell row="1" col="20" text="일"/>
  166. <Cell row="1" col="21" text="월"/>
  167. <Cell row="1" col="22" text="화"/>
  168. <Cell row="1" col="23" text="수"/>
  169. <Cell row="1" col="24" text="목"/>
  170. <Cell row="1" col="25" text="금"/>
  171. <Cell row="1" col="26" text="토"/>
  172. <Cell row="1" col="27" text="일"/>
  173. <Cell row="1" col="28" text="월"/>
  174. <Cell row="1" col="29" text="화"/>
  175. <Cell row="1" col="30" text="수"/>
  176. <Cell row="1" col="31" text="목"/>
  177. <Cell row="1" col="32" text="금"/>
  178. <Cell row="1" col="33" text="토"/>
  179. <Cell row="1" col="34" text="일"/>
  180. <Cell row="1" col="35" text="월"/>
  181. <Cell row="1" col="36" text="화"/>
  182. <Cell row="1" col="37" text="수"/>
  183. <Cell row="1" col="39"/>
  184. <Cell row="1" col="40"/>
  185. <Cell row="1" col="41"/>
  186. <Cell row="1" col="42"/>
  187. <Cell row="1" col="43"/>
  188. <Cell row="1" col="44"/>
  189. <Cell row="1" col="45"/>
  190. <Cell row="1" col="46"/>
  191. <Cell row="1" col="47"/>
  192. <Cell row="1" col="48"/>
  193. <Cell row="1" col="49"/>
  194. <Cell row="1" col="50"/>
  195. </Band>
  196. <Band id="body">
  197. <Cell celltype="head"/>
  198. <Cell col="1" edittype="expr:nrname == 'Day' || nrname == 'Evening' || nrname == 'Night' ? 'none' : 'text'" style="align:left middle;padding:2 2 2 2;" text="bind:deptnm" combodisplayrowcount="20"/>
  199. <Cell col="2" displaytype="combo" edittype="expr:nrname == 'Day' || nrname == 'Evening' || nrname == 'Night' ? 'none' : 'combo'" style="align:left middle;padding:2 2 2 2;" text="bind:collegename" combodisplayrowcount="20" enable="false"/>
  200. <Cell col="3" displaytype="date" edittype="expr:nrname == 'Day' || nrname == 'Evening' || nrname == 'Night' ? 'none' : 'date'" text="bind:fromdd" calendardisplaynulltype="nulltext"/>
  201. <Cell col="4" displaytype="date" edittype="expr:nrname == 'Day' || nrname == 'Evening' || nrname == 'Night' ? 'none' : 'date'" text="bind:todd" calendardisplaynulltype="nulltext"/>
  202. <Cell col="5" displaytype="combo" edittype="expr:nrname == 'Day' || nrname == 'Evening' || nrname == 'Night' ? 'none' : 'combo'" style="align:center middle;" text="bind:schoolyy" combodataset="ds_cmb_schoolyy" combocodecol="value" combodatacol="label" combodisplayrowcount="20"/>
  203. <Cell col="6" displaytype="text" edittype="expr:nrname == 'Day' || nrname == 'Evening' || nrname == 'Night' ? 'none' : 'text'" style="align:center middle;" text="bind:nrname" enable="false"/>
  204. <Cell col="7" text="bind:day1"/>
  205. <Cell col="8" text="bind:day2"/>
  206. <Cell col="9" text="bind:day3"/>
  207. <Cell col="10" text="bind:day4"/>
  208. <Cell col="11" text="bind:day5"/>
  209. <Cell col="12" text="bind:day6"/>
  210. <Cell col="13" text="bind:day7"/>
  211. <Cell col="14" text="bind:day8"/>
  212. <Cell col="15" text="bind:day9"/>
  213. <Cell col="16" text="bind:day10"/>
  214. <Cell col="17" text="bind:day11"/>
  215. <Cell col="18" text="bind:day12"/>
  216. <Cell col="19" text="bind:day13"/>
  217. <Cell col="20" text="bind:day14"/>
  218. <Cell col="21" text="bind:day15"/>
  219. <Cell col="22" text="bind:day16"/>
  220. <Cell col="23" text="bind:day17"/>
  221. <Cell col="24" text="bind:day18"/>
  222. <Cell col="25" text="bind:day19"/>
  223. <Cell col="26" text="bind:day20"/>
  224. <Cell col="27" text="bind:day21"/>
  225. <Cell col="28" text="bind:day22"/>
  226. <Cell col="29" text="bind:day23"/>
  227. <Cell col="30" text="bind:day24"/>
  228. <Cell col="31" text="bind:day25"/>
  229. <Cell col="32" text="bind:day26"/>
  230. <Cell col="33" text="bind:day27"/>
  231. <Cell col="34" text="bind:day28"/>
  232. <Cell col="35" text="bind:day29"/>
  233. <Cell col="36" text="bind:day30"/>
  234. <Cell col="37" text="bind:day31"/>
  235. <Cell col="38" displaytype="text" edittype="expr:nrname == 'Day' || nrname == 'Evening' || nrname == 'Night' ? 'none' : 'text'" text="bind:bigo"/>
  236. <Cell col="39" text="bind:wardid"/>
  237. <Cell col="40" text="bind:deptcd"/>
  238. <Cell col="41" text="bind:scmonth"/>
  239. <Cell col="42" text="bind:conf_sid"/>
  240. <Cell col="43" text="bind:conf_syn"/>
  241. <Cell col="44" text="bind:conf_mid"/>
  242. <Cell col="45" text="bind:conf_myn"/>
  243. <Cell col="46" text="bind:modtime"/>
  244. <Cell col="47" text="bind:flag"/>
  245. <Cell col="48" text="bind:conf_snm"/>
  246. <Cell col="49" text="bind:instcd"/>
  247. <Cell col="50" text="bind:collegenm"/>
  248. </Band>
  249. </Format>
  250. </Formats>
  251. </Grid>
  252. <Grid id="grd_dutcdlist" class="text_center" taborder="13" binddataset="ds_main_dutcd_dutcdlist" autoenter="select" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 1049 123 1194 794" anchor="top right bottom" oncelldblclick="grd_dutcdlist_oncelldblclick">
  253. <Formats>
  254. <Format id="default">
  255. <Columns>
  256. <Column size="35"/>
  257. <Column size="100"/>
  258. <Column size="0"/>
  259. <Column size="0"/>
  260. <Column size="0"/>
  261. <Column size="0"/>
  262. <Column size="0"/>
  263. </Columns>
  264. <Rows>
  265. <Row size="24" band="head"/>
  266. <Row size="24" band="head"/>
  267. <Row size="24"/>
  268. </Rows>
  269. <Band id="head">
  270. <Cell rowspan="2" text="코드" taborder="undefined"/>
  271. <Cell col="1" rowspan="2" text="근무명" taborder="undefined"/>
  272. <Cell col="2" text="근무코드명"/>
  273. <Cell col="3" text="근무시간"/>
  274. <Cell col="4" text="Day인원"/>
  275. <Cell col="5" text="Evening인원"/>
  276. <Cell col="6" text="Night인원"/>
  277. <Cell row="1" col="2" text="근무코드명"/>
  278. <Cell row="1" col="3" text="근무시간"/>
  279. <Cell row="1" col="4" text="Day인원"/>
  280. <Cell row="1" col="5" text="Evening인원"/>
  281. <Cell row="1" col="6" text="Night인원"/>
  282. </Band>
  283. <Band id="body">
  284. <Cell style="align:left middle;padding:2 2 2 2;font:돋움체,9;" text="bind:dutcd"/>
  285. <Cell col="1" style="align:left middle;padding:2 2 2 2;font:돋움체,9;" text="bind:dutnm"/>
  286. <Cell col="2" text="bind:dutcdnm"/>
  287. <Cell col="3" text="bind:duttm"/>
  288. <Cell col="4" text="bind:daycnt"/>
  289. <Cell col="5" text="bind:eveningpsnno"/>
  290. <Cell col="6" text="bind:nigtpsnno"/>
  291. </Band>
  292. </Format>
  293. </Formats>
  294. </Grid>
  295. <Div id="group2" taborder="14" visible="false" position="absolute 15 233 590 779" style="border:2 solid #808080ff ;">
  296. <Layouts>
  297. <Layout width="570" height="522">
  298. <Static id="caption3" text="관리자 화면" class="tit_1" position="absolute 1 1 106 26" anchor="default"/>
  299. <Grid id="grd_popdeptschlist" taborder="14" binddataset="ds_main_popup_main_deptsche_deptschelist" useinputpanel="false" position="absolute 1 118 569 512" anchor="default" autoenter="select" autofittype="col" cellsizingtype="col">
  300. <Formats>
  301. <Format id="default">
  302. <Columns>
  303. <Column size="21"/>
  304. <Column size="40"/>
  305. <Column size="297"/>
  306. <Column size="70"/>
  307. <Column size="70"/>
  308. <Column size="55"/>
  309. <Column size="0"/>
  310. <Column size="0"/>
  311. <Column size="0"/>
  312. </Columns>
  313. <Rows>
  314. <Row size="24" band="head"/>
  315. <Row size="24"/>
  316. </Rows>
  317. <Band id="head">
  318. <Cell/>
  319. <Cell col="1" text="√"/>
  320. <Cell col="2" text="병 동 / 부 서"/>
  321. <Cell col="3" text="근무년월"/>
  322. <Cell col="4" text="수간호결재"/>
  323. <Cell col="5" text="최종확인"/>
  324. <Cell col="6"/>
  325. <Cell col="7"/>
  326. <Cell col="8"/>
  327. </Band>
  328. <Band id="body">
  329. <Cell celltype="head"/>
  330. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkflag" expr="expr:chkflag == 'Y' || chkflag == '1' ? 1 : 0"/>
  331. <Cell col="2" style="align:left middle;padding:2 2 2 2;" text="bind:deptnm"/>
  332. <Cell col="3" style="align:center middle;" text="bind:scmonth" mask="####-##" maskchar=" "/>
  333. <Cell col="4" displaytype="checkbox" style="controlbackground:silver;controlborder:1 solid #708090cc ;" text="bind:conf_syn" expr="expr:conf_syn == 'Y' || conf_syn == '1' ? 1 : 0" enable="false"/>
  334. <Cell col="5" displaytype="checkbox" style="controlbackground:silver;controlborder:1 solid #708090cc ;" text="bind:conf_myn" expr="expr:conf_myn == 'Y' || conf_myn == '1' ? 1 : 0" enable="false"/>
  335. <Cell col="6" text="bind:deptcd"/>
  336. <Cell col="7" text="bind:confchk"/>
  337. <Cell col="8" text="bind:instcd"/>
  338. </Band>
  339. </Format>
  340. </Formats>
  341. </Grid>
  342. <Shape id="line4" linetype="horizontal" class="line_10" position="absolute 1 113 569 119" anchor="default"/>
  343. <Static id="caption7" text="병동별 스케쥴" class="tit_2" position="absolute 1 97 110 119" anchor="default"/>
  344. <Button id="button4" taborder="15" text="종료" class="btn4" position="absolute 513 513 569 535" anchor="default" onclick="group2_button4_onclick"/>
  345. <Button id="button6" taborder="17" text="전체선택" class="btn2" position="absolute 439 94 503 113" anchor="default" onclick="group2_button6_onclick"/>
  346. <Button id="button7" taborder="18" text="전체해제" class="btn2" position="absolute 504 94 568 113" anchor="default" onclick="group2_button7_onclick"/>
  347. <Button id="btn_popmynN" taborder="20" text="취소" class="btn4" position="absolute 513 27 569 49" anchor="default" onclick="group2_btn_popmynN_onclick"/>
  348. <Button id="btn_popmynY" taborder="21" text="최종확인" class="btn4" position="absolute 432 27 512 49" anchor="default" onclick="group2_btn_popmynY_onclick"/>
  349. <Button id="btn_popsynN" taborder="22" text="취소" class="btn4" position="absolute 375 27 431 49" anchor="default" onclick="group2_btn_popsynN_onclick"/>
  350. <Button id="btn_popsynY" taborder="23" text="수간호사결재" class="btn4" position="absolute 270 27 374 49" anchor="default" onclick="group2_btn_popsynY_onclick"/>
  351. <Button id="btn_schoolprint" taborder="24" text="실습의뢰기관별출력" class="btn4" position="absolute 94 27 234 49" anchor="default" onclick="group2_btn_schoolprint_onclick"/>
  352. <Button id="btn_deptprint" taborder="25" text="부서별출력" class="btn4" position="absolute 1 27 93 49" anchor="default" onclick="group2_btn_deptprint_onclick"/>
  353. <Div id="group3" taborder="26" class="div_SA2" position="absolute 1 50 569 90" anchor="default">
  354. <Layouts>
  355. <Layout>
  356. <Shape id="line2" linetype="vertical" class="line_4" position="absolute 492 11 498 29" anchor="default"/>
  357. <Button id="pop_search" taborder="5" text="조회" class="btn1" position="absolute 505 9 561 31" anchor="default" onclick="group2_group3_pop_search_onclick"/>
  358. <Radio id="rbo_popflag" taborder="6" columncount="-1" rowcount="-1" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 377 11 487 31" anchor="default">
  359. <Dataset id="innerdataset">
  360. <ColumnInfo>
  361. <Column id="codecolumn"/>
  362. <Column id="datacolumn"/>
  363. </ColumnInfo>
  364. <Rows>
  365. <Row>
  366. <Col id="codecolumn">1</Col>
  367. <Col id="datacolumn">부서</Col>
  368. </Row>
  369. <Row>
  370. <Col id="codecolumn">2</Col>
  371. <Col id="datacolumn">실습기관</Col>
  372. </Row>
  373. </Rows>
  374. </Dataset>
  375. </Radio>
  376. <Calendar id="pop_dutym" taborder="7" class="input_search" position="absolute 288 11 366 30" mask="yyyy-mm" anchor="default" autoselect="true" autoskip="true" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" onchanged="group2_group3_pop_dutym_onchanged"/>
  377. <Static id="caption2" text="근무년월 :" class="search_name" position="absolute 206 12 297 29" anchor="default"/>
  378. <Combo id="cmb_instcdpopup" taborder="8" position="absolute 63 11 203 30" anchor="default"/>
  379. <Static id="caption10" text="기관 :" class="search_name" position="absolute 5 12 70 29" anchor="default"/>
  380. </Layout>
  381. </Layouts>
  382. </Div>
  383. </Layout>
  384. </Layouts>
  385. </Div>
  386. </Layout>
  387. </Layouts>
  388. <Objects>
  389. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_oncolumnchanged">
  390. <ColumnInfo>
  391. <Column id="dutunitcd" type="STRING" size="256"/>
  392. <Column id="dutunitnm" type="STRING" size="256"/>
  393. <Column id="dutym" type="STRING" size="256"/>
  394. <Column id="instcd" type="STRING" size="256"/>
  395. <Column id="emplno" type="STRING" size="256"/>
  396. </ColumnInfo>
  397. <Rows>
  398. <Row>
  399. <Col id="dutunitcd"/>
  400. <Col id="dutunitnm"/>
  401. <Col id="dutym"/>
  402. <Col id="instcd"/>
  403. </Row>
  404. </Rows>
  405. </Dataset>
  406. <Dataset id="ds_main_stusche_stuschelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  407. <ColumnInfo>
  408. <Column id="collegename" type="STRING" size="256" sumtext=""/>
  409. <Column id="collegenm" type="STRING" size="256" sumtext=""/>
  410. <Column id="deptcd" type="STRING" size="256" sumtext=""/>
  411. <Column id="deptnm" type="STRING" size="256" sumtext=""/>
  412. <Column id="scmonth" type="STRING" size="256" sumtext=""/>
  413. <Column id="nrname" type="STRING" size="256" sumtext=""/>
  414. <Column id="day1" type="STRING" size="256" sumtext=""/>
  415. <Column id="day2" type="STRING" size="256" sumtext=""/>
  416. <Column id="day3" type="STRING" size="256" sumtext=""/>
  417. <Column id="day4" type="STRING" size="256" sumtext=""/>
  418. <Column id="day5" type="STRING" size="256" sumtext=""/>
  419. <Column id="day6" type="STRING" size="256" sumtext=""/>
  420. <Column id="day7" type="STRING" size="256" sumtext=""/>
  421. <Column id="day8" type="STRING" size="256" sumtext=""/>
  422. <Column id="day9" type="STRING" size="256" sumtext=""/>
  423. <Column id="day10" type="STRING" size="256" sumtext=""/>
  424. <Column id="day11" type="STRING" size="256" sumtext=""/>
  425. <Column id="day12" type="STRING" size="256" sumtext=""/>
  426. <Column id="day13" type="STRING" size="256" sumtext=""/>
  427. <Column id="day14" type="STRING" size="256" sumtext=""/>
  428. <Column id="day15" type="STRING" size="256" sumtext=""/>
  429. <Column id="day16" type="STRING" size="256" sumtext=""/>
  430. <Column id="day17" type="STRING" size="256" sumtext=""/>
  431. <Column id="day18" type="STRING" size="256" sumtext=""/>
  432. <Column id="day19" type="STRING" size="256" sumtext=""/>
  433. <Column id="day20" type="STRING" size="256" sumtext=""/>
  434. <Column id="day21" type="STRING" size="256" sumtext=""/>
  435. <Column id="day22" type="STRING" size="256" sumtext=""/>
  436. <Column id="day23" type="STRING" size="256" sumtext=""/>
  437. <Column id="day24" type="STRING" size="256" sumtext=""/>
  438. <Column id="day25" type="STRING" size="256" sumtext=""/>
  439. <Column id="day26" type="STRING" size="256" sumtext=""/>
  440. <Column id="day27" type="STRING" size="256" sumtext=""/>
  441. <Column id="day28" type="STRING" size="256" sumtext=""/>
  442. <Column id="day29" type="STRING" size="256" sumtext=""/>
  443. <Column id="day30" type="STRING" size="256" sumtext=""/>
  444. <Column id="day31" type="STRING" size="256" sumtext=""/>
  445. <Column id="bigo" type="STRING" size="256" sumtext=""/>
  446. <Column id="conf_sid" type="STRING" size="256" sumtext=""/>
  447. <Column id="conf_syn" type="STRING" size="256" sumtext=""/>
  448. <Column id="conf_mid" type="STRING" size="256" sumtext=""/>
  449. <Column id="conf_myn" type="STRING" size="256" sumtext=""/>
  450. <Column id="wardid" type="STRING" size="256" sumtext=""/>
  451. <Column id="flag" type="STRING" size="256" sumtext=""/>
  452. <Column id="conf_snm" type="STRING" size="256" sumtext=""/>
  453. <Column id="schoolyy" type="STRING" size="256" sumtext=""/>
  454. <Column id="fromdd" type="STRING" size="256" sumtext=""/>
  455. <Column id="todd" type="STRING" size="256" sumtext=""/>
  456. <Column id="instcd" type="STRING" size="256" sumtext=""/>
  457. </ColumnInfo>
  458. </Dataset>
  459. <Dataset id="ds_main_dutcd_dutcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  460. <Dataset id="ds_popup_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  461. <ColumnInfo>
  462. <Column id="dutym" type="STRING" size="256"/>
  463. <Column id="instcd" type="STRING" size="256"/>
  464. <Column id="popflag" type="STRING" size="256"/>
  465. </ColumnInfo>
  466. <Rows>
  467. <Row>
  468. <Col id="popflag">1</Col>
  469. </Row>
  470. </Rows>
  471. </Dataset>
  472. <Dataset id="ds_main_popup_main_deptsche_deptschelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_popup_main_deptsche_deptschelist_oncolumnchanged">
  473. <ColumnInfo>
  474. <Column id="confchk" type="STRING" size="256" sumtext="체크"/>
  475. <Column id="chkflag" type="STRING" size="256" sumtext="체크"/>
  476. <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
  477. <Column id="deptcd" type="STRING" size="256" sumtext="부서"/>
  478. <Column id="scmonth" type="STRING" size="256" sumtext="년월"/>
  479. <Column id="conf_syn" type="STRING" size="256" sumtext="수간호결제"/>
  480. <Column id="conf_myn" type="STRING" size="256" sumtext="최종확인"/>
  481. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  482. </ColumnInfo>
  483. </Dataset>
  484. <Dataset id="ds_count" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  485. <ColumnInfo>
  486. <Column id="cnt" type="STRING" size="256"/>
  487. </ColumnInfo>
  488. </Dataset>
  489. <Dataset id="ds_cmb_schoolyy" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  490. <ColumnInfo>
  491. <Column id="label" type="STRING" size="256"/>
  492. <Column id="value" type="STRING" size="256"/>
  493. </ColumnInfo>
  494. <Rows>
  495. <Row>
  496. <Col id="label">1</Col>
  497. <Col id="value">1</Col>
  498. </Row>
  499. <Row>
  500. <Col id="label">2</Col>
  501. <Col id="value">2</Col>
  502. </Row>
  503. <Row>
  504. <Col id="label">3</Col>
  505. <Col id="value">3</Col>
  506. </Row>
  507. <Row>
  508. <Col id="label">4</Col>
  509. <Col id="value">4</Col>
  510. </Row>
  511. <Row>
  512. <Col id="label">전문간호사</Col>
  513. <Col id="value">전문간호사</Col>
  514. </Row>
  515. </Rows>
  516. </Dataset>
  517. <Dataset id="ds_week" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  518. <Dataset id="ds_pass" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  519. <Dataset id="ds_popup_print_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  520. <ColumnInfo>
  521. <Column id="instcd" type="STRING" size="256"/>
  522. <Column id="dutym" type="STRING" size="256"/>
  523. <Column id="flag" type="STRING" size="256"/>
  524. <Column id="indeptcd" type="STRING" size="256"/>
  525. </ColumnInfo>
  526. <Rows>
  527. <Row>
  528. <Col id="instcd"/>
  529. <Col id="dutym"/>
  530. <Col id="flag"/>
  531. <Col id="indeptcd"/>
  532. </Row>
  533. </Rows>
  534. </Dataset>
  535. <Dataset id="ds_popup_print_stusche" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  536. <ColumnInfo>
  537. <Column id="collegename" type="STRING" size="256" sumtext=""/>
  538. <Column id="collegenm" type="STRING" size="256" sumtext=""/>
  539. <Column id="deptcd" type="STRING" size="256" sumtext=""/>
  540. <Column id="deptnm" type="STRING" size="256" sumtext=""/>
  541. <Column id="scmonth" type="STRING" size="256" sumtext=""/>
  542. <Column id="nrname" type="STRING" size="256" sumtext=""/>
  543. <Column id="day1" type="STRING" size="256" sumtext=""/>
  544. <Column id="day2" type="STRING" size="256" sumtext=""/>
  545. <Column id="day3" type="STRING" size="256" sumtext=""/>
  546. <Column id="day4" type="STRING" size="256" sumtext=""/>
  547. <Column id="day5" type="STRING" size="256" sumtext=""/>
  548. <Column id="day6" type="STRING" size="256" sumtext=""/>
  549. <Column id="day7" type="STRING" size="256" sumtext=""/>
  550. <Column id="day8" type="STRING" size="256" sumtext=""/>
  551. <Column id="day9" type="STRING" size="256" sumtext=""/>
  552. <Column id="day10" type="STRING" size="256" sumtext=""/>
  553. <Column id="day11" type="STRING" size="256" sumtext=""/>
  554. <Column id="day12" type="STRING" size="256" sumtext=""/>
  555. <Column id="day13" type="STRING" size="256" sumtext=""/>
  556. <Column id="day14" type="STRING" size="256" sumtext=""/>
  557. <Column id="day15" type="STRING" size="256" sumtext=""/>
  558. <Column id="day16" type="STRING" size="256" sumtext=""/>
  559. <Column id="day17" type="STRING" size="256" sumtext=""/>
  560. <Column id="day18" type="STRING" size="256" sumtext=""/>
  561. <Column id="day19" type="STRING" size="256" sumtext=""/>
  562. <Column id="day20" type="STRING" size="256" sumtext=""/>
  563. <Column id="day21" type="STRING" size="256" sumtext=""/>
  564. <Column id="day22" type="STRING" size="256" sumtext=""/>
  565. <Column id="day23" type="STRING" size="256" sumtext=""/>
  566. <Column id="day24" type="STRING" size="256" sumtext=""/>
  567. <Column id="day25" type="STRING" size="256" sumtext=""/>
  568. <Column id="day26" type="STRING" size="256" sumtext=""/>
  569. <Column id="day27" type="STRING" size="256" sumtext=""/>
  570. <Column id="day28" type="STRING" size="256" sumtext=""/>
  571. <Column id="day29" type="STRING" size="256" sumtext=""/>
  572. <Column id="day30" type="STRING" size="256" sumtext=""/>
  573. <Column id="day31" type="STRING" size="256" sumtext=""/>
  574. <Column id="bigo" type="STRING" size="256" sumtext=""/>
  575. <Column id="conf_sid" type="STRING" size="256" sumtext=""/>
  576. <Column id="conf_syn" type="STRING" size="256" sumtext=""/>
  577. <Column id="conf_mid" type="STRING" size="256" sumtext=""/>
  578. <Column id="conf_myn" type="STRING" size="256" sumtext=""/>
  579. <Column id="wardid" type="STRING" size="256" sumtext=""/>
  580. <Column id="flag" type="STRING" size="256" sumtext=""/>
  581. <Column id="conf_snm" type="STRING" size="256" sumtext=""/>
  582. <Column id="schoolyy" type="STRING" size="256" sumtext=""/>
  583. <Column id="fromdd" type="STRING" size="256" sumtext=""/>
  584. <Column id="todd" type="STRING" size="256" sumtext=""/>
  585. <Column id="instcd" type="STRING" size="256" sumtext=""/>
  586. </ColumnInfo>
  587. </Dataset>
  588. </Objects>
  589. <Bind>
  590. <BindItem id="item0" compid="group4.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
  591. <BindItem id="item1" compid="group4.ipt_dutdeptcd" propid="value" datasetid="ds_send" columnid="dutunitcd"/>
  592. <BindItem id="item2" compid="group4.ipt_dutdeptnm" propid="value" datasetid="ds_send" columnid="dutunitnm"/>
  593. <BindItem id="item3" compid="group4.ipt_dutym" propid="value" datasetid="ds_send" columnid="dutym"/>
  594. <BindItem id="item4" compid="group2.group3.cmb_instcdpopup" propid="value" datasetid="ds_popup_send" columnid="instcd"/>
  595. <BindItem id="item5" compid="group2.group3.pop_dutym" propid="value" datasetid="ds_popup_send" columnid="dutym"/>
  596. <BindItem id="item6" compid="group2.group3.rbo_popflag" propid="value" datasetid="ds_popup_send" columnid="popflag"/>
  597. </Bind>
  598. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  599. * System Name :
  600. * Job Name :
  601. * Creator :
  602. * Make Date : 2017-06-19
  603. * Description :
  604. *---------------------------------------------------------------------------------------
  605. * Modify Date Modifier Modify Description
  606. *---------------------------------------------------------------------------------------
  607. * 2017-06-19 Live Converter TF->XP
  608. *
  609. *---------------------------------------------------------------------------------------
  610. ****************************************************************************************/
  611. include "com_commonxp::comm_main.xjs";
  612. include "mis_miscommonxp::MIS.xjs";
  613. function SMRPD12900_oninit(obj:Form, e:InitEventInfo)
  614. {
  615. frmf_initForm(obj);
  616. }
  617. function SMRPD12900_onload(obj:Form, e:LoadEventInfo)
  618. {
  619. grdf_initGrid(grd_dutschelist);
  620. grdf_setRowTypeIcon(grd_dutschelist, 0);
  621. grdf_initGrid(grd_dutcdlist);
  622. grdf_initGrid(group2.grd_popdeptschlist);
  623. grdf_setRowTypeIcon(group2.grd_popdeptschlist, 0);
  624. misfGridInit(grd_dutschelist);
  625. misfGridInit(grd_dutcdlist);
  626. var logindeptcd = sysf_getUserInfo("dutplcecd");
  627. var logindeptnm = sysf_getUserInfo("dutplcenm");
  628. var loginid = sysf_getUserInfo("userid");
  629. misfComboInstCdListMulti("group4.cmb_instcd",utlf_getCurrentDate(),"","N");
  630. misfComboInstCdListMulti("group2.group3.cmb_instcdpopup",utlf_getCurrentDate(),"","N");
  631. misfGridComboComCdList("R0529",grd_dutschelist,"collegename");
  632. ds_send.setColumn(0, "emplno", sysf_getUserInfo("userid"));
  633. var oParam = {};
  634. oParam.id = "TRRPD12903";
  635. oParam.service = "dligclaznsmngtapp.DutScheMngt";
  636. oParam.method = "reqGetNurBossChk";
  637. oParam.inds = "req=ds_send";
  638. oParam.outds = "ds_count=count";
  639. oParam.async = false;
  640. //oParam.callback = "cf_TRRPD12903";
  641. tranf_submit(oParam);
  642. if(ds_count.getColumn(0, "cnt") == "0")
  643. {
  644. btn_synY.enable = false;
  645. btn_mynY.enable = false;
  646. btn_admin.visible = false;
  647. group4.button1.enable = false;
  648. }
  649. if(sysf_getUserInfo("userid") == "MIS")
  650. {
  651. btn_synY.enable = true;
  652. btn_mynY.enable = true;
  653. btn_admin.visible = true;
  654. group4.button1.enable = true;
  655. }
  656. ds_send.enableevent = false;
  657. ds_send.setColumn(0, "dutym", String(utlf_getCurrentDate()).substr(0,6));
  658. ds_send.setColumn(0, "dutunitcd", logindeptcd);
  659. ds_send.setColumn(0, "dutunitnm", logindeptnm);
  660. ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  661. ds_send.enableevent = true;
  662. ds_popup_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  663. }
  664. function group4_ipt_dutdeptcd_onkeydown(obj:Edit, e:KeyEventInfo)
  665. {
  666. if(e.keycode == 13)
  667. {
  668. obj.updateToDataset();
  669. misfValidationCheck("02", "", "dutunitcd,dutunitnm", ds_send.getColumn(0, "instcd"), "instcd" );
  670. if(!utlf_isNull(group4.ipt_dutdeptnm.value))
  671. {
  672. btnflag = "0";
  673. group4.btn_search.click();
  674. }
  675. }
  676. }
  677. function ds_send_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  678. {
  679. if(e.columnid == "dutunitcd")
  680. {
  681. group4.ipt_dutdeptcd.value = e.newvalue;
  682. group4.ipt_dutdeptcd.setFocus();
  683. misfValidationCheck("02", "", "dutunitcd,dutunitnm", ds_send.getColumn(0, "instcd"), "instcd" );
  684. if(!utlf_isNull(group4.ipt_dutdeptnm.value))
  685. {
  686. btnflag = "0";
  687. group4.btn_search.click();
  688. }
  689. }
  690. }
  691. function group4_btn_dutdept_onclick(obj:Button, e:ClickEventInfo)
  692. {
  693. misfOpenPopUpList("02", group4.ipt_dutdeptcd,"","dutunitcd,dutunitnm", ds_send.getColumn(0, "instcd")+ "," + group4.ipt_dutym.value+"31", "instcd,basedd");
  694. if(!utlf_isNull(group4.ipt_dutdeptnm.value))
  695. {
  696. btnflag = "0";
  697. group4.btn_search.click();
  698. }
  699. }
  700. function group4_ipt_dutym_onchanged(obj:Calendar, e:ChangeEventInfo)
  701. {
  702. ds_send.setColumn(0, "dutym", String(obj.value).substr(0,6));
  703. btnflag = "0";
  704. group4.btn_search.click();
  705. }
  706. function group4_btn_search_onclick(obj:Button, e:ClickEventInfo)
  707. {
  708. if(ds_count.getColumn(0, "cnt") != "0")
  709. {
  710. btn_synY.enable = true;
  711. btn_mynY.enable = true;
  712. }
  713. if(sysf_getUserInfo("userid") == "MIS")
  714. {
  715. btn_synY.enable = true;
  716. btn_mynY.enable = true;
  717. }
  718. btn_synN.enable = true;
  719. btn_mynN.enable = true;
  720. btn_excsave.enable = true;
  721. btn_dutcdflag.enable = true;
  722. btn_delrow.enable = true;
  723. misfGridInit(grd_dutschelist);
  724. dutcdlistaddrow();
  725. for(var i = 1; i < 32; i++)
  726. {
  727. var dt = ds_send.getColumn(0, "dutym")+i
  728. grd_dutschelist.setCellProperty("Head", parseInt(i+51), "text", dt.toDate().getDayOfWeek("K"));
  729. }
  730. var oParam = {};
  731. oParam.id = "TRRPD12901";
  732. oParam.service = "dligclaznsmngtapp.DutScheMngt";
  733. oParam.method = "reqGetStuScheList";
  734. oParam.inds = "req=ds_send";
  735. oParam.outds = "ds_main_stusche_stuschelist=stuschelist";
  736. oParam.async = false;
  737. //oParam.callback = "cf_TRRPD12901";
  738. tranf_submit(oParam);
  739. ds_main_stusche_stuschelist.rowposition = -1;
  740. ds_main_stusche_stuschelist.updatecontrol = false;
  741. if(btnflag == "0")
  742. {
  743. for(o = 1 ; o < 4 ; o++)
  744. {
  745. var m = ds_main_stusche_stuschelist.addRow();
  746. var dut = "";
  747. if(o == 1)
  748. {
  749. dut = "Day";
  750. }
  751. else if(o ==2)
  752. {
  753. dut = "Evening";
  754. }
  755. else
  756. {
  757. dut = "Night";
  758. }
  759. ds_main_stusche_stuschelist.setColumn(m, "nrname", dut);
  760. for(j = 7 ; j < 38 ; j++)
  761. {
  762. var dsum = 0;
  763. if(o == 1)
  764. {
  765. for(var i = 0; i < ds_main_stusche_stuschelist.rowcount; i++)
  766. {
  767. if(ds_main_stusche_stuschelist.getColumn(i, "day"+(j-6)) == "D")
  768. {
  769. dsum++;
  770. }
  771. }
  772. var col = "day"+(j-6);
  773. dsf_makeValue(ds_main_stusche_stuschelist, col, "string", dsum, m);
  774. }
  775. else if(o == 2)
  776. {
  777. for(var i = 0; i < ds_main_stusche_stuschelist.rowcount; i++)
  778. {
  779. if(ds_main_stusche_stuschelist.getColumn(i, "day"+(j-6)) == "E")
  780. {
  781. dsum++;
  782. }
  783. dsf_makeValue(ds_main_stusche_stuschelist, "day"+(j-6), "string", dsum, m);
  784. }
  785. }
  786. else
  787. {
  788. for(var i = 0; i < ds_main_stusche_stuschelist.rowcount; i++)
  789. {
  790. if(ds_main_stusche_stuschelist.getColumn(i, "day"+(j-6)) == "N")
  791. {
  792. dsum++;
  793. }
  794. dsf_makeValue(ds_main_stusche_stuschelist, "day"+(j-6), "string", dsum, m);
  795. }
  796. }
  797. }
  798. }
  799. ds_main_stusche_stuschelist.setRowType(m, "");
  800. ds_main_stusche_stuschelist.updatecontrol = true;
  801. for(var i = 0 ; i < ds_main_stusche_stuschelist.rowcount; i++)
  802. {
  803. var sNrname = ds_main_stusche_stuschelist.getColumn(i, "nrname");
  804. if( sNrname == 'Day' || sNrname == 'Evening' || sNrname == 'Night' ){
  805. misfSetGridColor(grd_dutschelist, "all", "#ccffff", "B", i);
  806. }
  807. }
  808. if(ds_main_stusche_stuschelist.getColumn(0, "conf_syn") == "Y")
  809. {
  810. btn_synY.enable = false;
  811. }
  812. else
  813. {
  814. btn_synN.enable = false;
  815. btn_save.enable = true;
  816. }
  817. if(ds_main_stusche_stuschelist.getColumn(0, "conf_myn") == "Y")
  818. {
  819. btn_mynY.enable = false;
  820. btn_synN.enable = false;
  821. sysf_messageBox("최종확인된 번표이므로 더이상 수정이 불가능합니다.", "E999", "");
  822. btn_save.enable = false;
  823. btn_dutcdflag.enable = false;
  824. btn_delrow.enable = false;
  825. }
  826. else
  827. {
  828. btn_mynN.enable = false;
  829. btn_save.enable = true;
  830. }
  831. if(ds_main_stusche_stuschelist.getColumn(0, "conf_syn") == "Y" && ds_main_stusche_stuschelist.getColumn(0, "conf_myn") == "N")
  832. {
  833. sysf_messageBox("수간호사 결재가 완료되어 간호부에 제출된 번표입니다.", "E999", "");
  834. }
  835. }
  836. var dutym = ds_send.getColumn(0, "dutym");
  837. for(var i = 0; i < ds_main_stusche_stuschelist.rowcount; i++)
  838. {
  839. if(dutym != ds_main_stusche_stuschelist.getColumn(i, "scmonth"))
  840. {
  841. ds_main_stusche_stuschelist.updatecontrol = false;
  842. ds_main_stusche_stuschelist.setColumn(i, "scmonth", dutym);
  843. ds_main_stusche_stuschelist.updatecontrol = true;
  844. }
  845. }
  846. }
  847. function group4_button1_onclick(obj:Button, e:ClickEventInfo)
  848. {
  849. group4.btn_search.click();
  850. }
  851. function dutcdlistaddrow()
  852. {
  853. dsf_makeValue(ds_main_dutcd_dutcdlist, "dutcd", "string", "D", 0);
  854. dsf_makeValue(ds_main_dutcd_dutcdlist, "dutnm", "string", "Day", 0);
  855. dsf_makeValue(ds_main_dutcd_dutcdlist, "dutcd", "string", "E", 1);
  856. dsf_makeValue(ds_main_dutcd_dutcdlist, "dutnm", "string", "Evening", 1);
  857. dsf_makeValue(ds_main_dutcd_dutcdlist, "dutcd", "string", "N", 2);
  858. dsf_makeValue(ds_main_dutcd_dutcdlist, "dutnm", "string", "Night", 2);
  859. dsf_makeValue(ds_main_dutcd_dutcdlist, "dutcd", "string", "OF", 3);
  860. dsf_makeValue(ds_main_dutcd_dutcdlist, "dutnm", "string", "off", 3);
  861. dsf_makeValue(ds_main_dutcd_dutcdlist, "dutcd", "string", "C", 4);
  862. dsf_makeValue(ds_main_dutcd_dutcdlist, "dutnm", "string", "병결", 4);
  863. dsf_makeValue(ds_main_dutcd_dutcdlist, "dutcd", "string", "F", 5);
  864. dsf_makeValue(ds_main_dutcd_dutcdlist, "dutnm", "string", "축제/행사/시험", 5);
  865. dsf_makeValue(ds_main_dutcd_dutcdlist, "dutcd", "string", "A", 6);
  866. dsf_makeValue(ds_main_dutcd_dutcdlist, "dutnm", "string", "결석", 6);
  867. dsf_makeValue(ds_main_dutcd_dutcdlist, "dutcd", "string", "JC", 7);
  868. dsf_makeValue(ds_main_dutcd_dutcdlist, "dutnm", "string", "지각", 7);
  869. dsf_makeValue(ds_main_dutcd_dutcdlist, "dutcd", "string", "SS", 8);
  870. dsf_makeValue(ds_main_dutcd_dutcdlist, "dutnm", "string", "스프리트", 8);
  871. dsf_makeValue(ds_main_dutcd_dutcdlist, "dutcd", "string", "M", 9);
  872. dsf_makeValue(ds_main_dutcd_dutcdlist, "dutnm", "string", "통상근무", 9);
  873. }
  874. function grd_dutschelist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  875. {
  876. var dutcd = "";
  877. if(6 < e.col && e.col< 38 && !utlf_isNull(ds_main_stusche_stuschelist.getColumn(e.row, "collegename")))
  878. {
  879. var cell = e.cell;
  880. var row = e.row;
  881. var col = e.col
  882. var colID = obj.getCellProperty("Body", e.cell, "text");
  883. colID = colID.replace("bind:", "");
  884. ds_main_stusche_stuschelist.setColumn(row, colID, dutcd);
  885. misfSetGridColor(grd_dutschelist, colID, "#ffcccc", "B", row)
  886. for(var i = 0 ; i < ds_main_stusche_stuschelist.rowcount; i++)
  887. {
  888. if(row == i) continue;
  889. var sNrname = ds_main_stusche_stuschelist.getColumn(i, "nrname");
  890. if( sNrname == 'Day' || sNrname == 'Evening' || sNrname == 'Night' ){
  891. misfSetGridColor(grd_dutschelist, colID, "#ccffff", "B", i);
  892. }
  893. }
  894. if(ds_main_stusche_stuschelist.getRowType(row) == 1)
  895. {
  896. ds_main_stusche_stuschelist.updatecontrol = false;
  897. ds_main_stusche_stuschelist.setRowType(row, "u");
  898. ds_main_stusche_stuschelist.updatecontrol = true;
  899. }
  900. }
  901. }
  902. function grd_dutcdlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  903. {
  904. var dutcd = ds_main_dutcd_dutcdlist.getColumn(e.row, "dutcd");
  905. if(6 < grd_dutschelist.currentcol && grd_dutschelist.currentcol < 38 && !utlf_isNull(ds_main_stusche_stuschelist.getColumn(ds_main_stusche_stuschelist.rowposition, "collegename")))
  906. {
  907. for( var k=0 ; k<grd_dutschelist.selectcount ; k++ ){
  908. var startrow = grd_dutschelist.selectstartrow[k];//grdRows[0];
  909. var endrow = grd_dutschelist.selectendrow[k];//grdRows[grdRows.length-1];
  910. var startcol = grd_dutschelist.selectstartcol[k];//grdCells[0];
  911. var endcol = grd_dutschelist.selectendcol[k];//grdCells[grdCells.length-1];
  912. for(var i = startrow ; i <= endrow; i++)
  913. {
  914. for(var j = startcol ; j <= endcol ; j++)
  915. {
  916. var colID = grd_dutschelist.getCellProperty("Body", j, "text");
  917. colID = colID.replace("bind:", "");
  918. misfSetGridColor(grd_dutschelist, colID, "#ffcccc", "B", i);
  919. ds_main_stusche_stuschelist.setColumn(i, colID, dutcd);
  920. }
  921. }
  922. for(var i = 0 ; i < ds_main_stusche_stuschelist.rowcount; i++)
  923. {
  924. if(startrow <= i && i <= endrow) continue;
  925. var sNrname = ds_main_stusche_stuschelist.getColumn(i, "nrname");
  926. if( sNrname == 'Day' || sNrname == 'Evening' || sNrname == 'Night' ){
  927. misfSetGridColor(grd_dutschelist, "all", "#ccffff", "B", i);
  928. }
  929. // if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(i, "deptnm")))
  930. // {
  931. // misfSetGridColor(grd_dutschelist, "all", "#ccffff", "B", i)
  932. // }
  933. // else
  934. // {
  935. // misfSetGridColor(grd_dutschelist, "all", "", "B", i)
  936. // }
  937. }
  938. }
  939. }
  940. }
  941. function btn_excsave_onclick(obj:Button, e:ClickEventInfo)
  942. {
  943. misfSaveExcel(grd_dutschelist);
  944. }
  945. function btn_dutcdflag_onclick(obj:Button, e:ClickEventInfo)
  946. {
  947. if(utlf_isNull(group4.ipt_dutdeptnm.value))
  948. {
  949. sysf_messageBox("위에 선택된 부서가 없습니다. 부서를 선택한 후 행추가를 눌러주세요.", "E999", "");
  950. return;
  951. }
  952. var chk = 0;
  953. for(var i = 0; i < ds_main_stusche_stuschelist.rowcount; i++)
  954. {
  955. if(ds_main_stusche_stuschelist.getRowType(i) == 2)
  956. {
  957. chk++;
  958. }
  959. }
  960. if(chk == 0)
  961. {
  962. sysf_messageBox("행추가를 위해 재조회 합니다.", "I999", "");
  963. misfGridInit(grd_dutschelist);
  964. dutcdlistaddrow();
  965. for(var i = 1; i < 32; i++)
  966. {
  967. var dt = ds_send.getColumn(0, "dutym")+i
  968. grd_dutschelist.setCellProperty("Head", parseInt(i+51), "text", dt.toDate().getDayOfWeek("K"));
  969. }
  970. var oParam = {};
  971. oParam.id = "TRRPD12901";
  972. oParam.service = "dligclaznsmngtapp.DutScheMngt";
  973. oParam.method = "reqGetStuScheList";
  974. oParam.inds = "req=ds_send";
  975. oParam.outds = "ds_main_stusche_stuschelist=stuschelist";
  976. oParam.async = false;
  977. //oParam.callback = "cf_TRRPD12901";
  978. tranf_submit(oParam);
  979. }
  980. var addRow = ds_main_stusche_stuschelist.addRow();
  981. ds_main_stusche_stuschelist.setColumn(addRow, "deptcd", ds_send.getColumn(0, "dutunitcd"));
  982. ds_main_stusche_stuschelist.setColumn(addRow, "deptnm", ds_send.getColumn(0, "dutunitnm"));
  983. ds_main_stusche_stuschelist.setColumn(addRow, "scmonth", ds_send.getColumn(0, "dutym"));
  984. ds_main_stusche_stuschelist.setColumn(addRow, "instcd", ds_send.getColumn(0, "instcd"));
  985. }
  986. function btn_delrow_onclick(obj:Button, e:ClickEventInfo)
  987. {
  988. var nrname = ds_main_stusche_stuschelist.getColumn(ds_main_stusche_stuschelist.rowposition, "nrname");
  989. if(nrname == "Day" || nrname == "Evening" || nrname == "Night")
  990. {
  991. return;
  992. }
  993. misfGridIUD(grd_dutschelist, "D");
  994. }
  995. function button5_onclick(obj:Button, e:ClickEventInfo)
  996. {
  997. if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(0, "collegename")))
  998. {
  999. sysf_messageBox("조회된 값이 없습니다.", "E999", "");
  1000. return;
  1001. }
  1002. btnflag = "0";
  1003. group4.btn_search.click();
  1004. ds_week.clearData();
  1005. for(i = 1 ; i < 32 ; i++)
  1006. {
  1007. var dt = ds_send.getColumn(0, "dutym")+i;
  1008. dsf_makeValue(ds_week, "week"+i, "string", dt.toDate().getDayOfWeek("K"), 0);
  1009. }
  1010. dsf_makeValue(ds_pass, "daytitle", "string", String(ds_send.getColumn(0, "dutym")).substr(0,4)+"년"+String(ds_send.getColumn(0, "dutym")).substr(4,2)+"월", 0);
  1011. dsf_makeValue(ds_pass, "dept", "string", ds_send.getColumn(0, "dutunitnm"), 0);
  1012. dsf_makeValue(ds_pass, "instnm", "string", group4.cmb_instcd.text, 0);
  1013. var objDOM = rptf_createDOM();
  1014. rptf_setNodeListToDOM(objDOM, "/root/week", ds_week);
  1015. rptf_setNodeListToDOM(objDOM, "/root/main/stusche/stuschelist", ds_main_stusche_stuschelist);
  1016. var objParam = new Object();
  1017. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1018. objParam.daytitle = ds_pass.getColumn(0, "daytitle");
  1019. objParam.dept = ds_pass.getColumn(0, "dept");
  1020. objParam.instnm = ds_pass.getColumn(0, "instnm");
  1021. var option = "";
  1022. rptf_exeReportPreview30(["RPRPD12901"],[objParam], option, "");
  1023. }
  1024. function btn_synY_onclick(obj:Button, e:ClickEventInfo)
  1025. {
  1026. if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(0, "collegename")))
  1027. {
  1028. sysf_messageBox("조회된 값이 없습니다.", "E999", "");
  1029. return;
  1030. }
  1031. var req = sysf_messageBox("수간호사결재를 실행합니다. 수정중이거나 입력중인 자료는 저장되지 않습니다.", "Q003");
  1032. if( req == 6 )
  1033. {
  1034. btnflag = "1";
  1035. group4.btn_search.click();
  1036. ds_main_stusche_stuschelist.enableevent = false;
  1037. ds_main_stusche_stuschelist.updatecontrol = false;
  1038. for(var i = 0; i < ds_main_stusche_stuschelist.rowcount; i ++)
  1039. {
  1040. ds_main_stusche_stuschelist.setColumn(i, "flag", "1");
  1041. ds_main_stusche_stuschelist.setColumn(i, "conf_syn", "Y");
  1042. ds_main_stusche_stuschelist.setRowType(i, 4);
  1043. }
  1044. grdf_setStatusColumn(ds_main_stusche_stuschelist, "status");
  1045. ds_main_stusche_stuschelist.updatecontrol = true;
  1046. ds_main_stusche_stuschelist.enableevent = true;
  1047. var oParam = {};
  1048. oParam.id = "TXRPD12901";
  1049. oParam.service = "dligclaznsmngtapp.DutScheMngt";
  1050. oParam.method = "reqExeSaveStuScheList";
  1051. oParam.inds = "stuschelist=ds_main_stusche_stuschelist:u";
  1052. oParam.outds = "";
  1053. oParam.async = false;
  1054. //oParam.callback = "cf_TXRPD12901";
  1055. tranf_submit(oParam);
  1056. btnflag = "0";
  1057. group4.btn_search.click();
  1058. }
  1059. else
  1060. {
  1061. return;
  1062. }
  1063. }
  1064. function btn_synN_onclick(obj:Button, e:ClickEventInfo)
  1065. {
  1066. if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(0, "collegename")))
  1067. {
  1068. sysf_messageBox("조회된 값이 없습니다.", "E999", "");
  1069. return;
  1070. }
  1071. var req = sysf_messageBox("수간호사결재해제를 실행합니다. 수정중이거나 입력중인 자료는 저장되지 않습니다.", "Q003");
  1072. if( req == 6 )
  1073. {
  1074. btnflag = "2";
  1075. group4.btn_search.click();
  1076. ds_main_stusche_stuschelist.enableevent = false;
  1077. ds_main_stusche_stuschelist.updatecontrol = false;
  1078. for(var i = 0; i < ds_main_stusche_stuschelist.rowcount; i ++)
  1079. {
  1080. ds_main_stusche_stuschelist.setColumn(i, "flag", "2");
  1081. ds_main_stusche_stuschelist.setColumn(i, "conf_syn", "N");
  1082. ds_main_stusche_stuschelist.setRowType(i, 4);
  1083. }
  1084. grdf_setStatusColumn(ds_main_stusche_stuschelist, "status");
  1085. ds_main_stusche_stuschelist.updatecontrol = true;
  1086. ds_main_stusche_stuschelist.enableevent = true;
  1087. var oParam = {};
  1088. oParam.id = "TXRPD12901";
  1089. oParam.service = "dligclaznsmngtapp.DutScheMngt";
  1090. oParam.method = "reqExeSaveStuScheList";
  1091. oParam.inds = "stuschelist=ds_main_stusche_stuschelist:u";
  1092. oParam.outds = "";
  1093. oParam.async = false;
  1094. //oParam.callback = "cf_TXRPD12901";
  1095. tranf_submit(oParam);
  1096. btnflag = "0";
  1097. group4.btn_search.click();
  1098. }
  1099. else
  1100. {
  1101. return;
  1102. }
  1103. }
  1104. function btn_mynY_onclick(obj:Button, e:ClickEventInfo)
  1105. {
  1106. if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(0, "collegename")))
  1107. {
  1108. sysf_messageBox("조회된 값이 없습니다.", "E999", "");
  1109. return;
  1110. }
  1111. if(ds_main_stusche_stuschelist.getColumn(0, "conf_syn") == "N")
  1112. {
  1113. sysf_messageBox("수간호가결재가 되어 있지 않아 최종확인을 할수 없습니다.", "E999", "");
  1114. return;
  1115. }
  1116. var req = sysf_messageBox("최종확인을 실행합니다. 수정중이거나 입력중인 자료는 저장되지 않습니다.", "Q003");
  1117. if( req == 6 )
  1118. {
  1119. btnflag = "3";
  1120. group4.btn_search.click();
  1121. ds_main_stusche_stuschelist.enableevent = false;
  1122. ds_main_stusche_stuschelist.updatecontrol = false;
  1123. for(var i = 0; i < ds_main_stusche_stuschelist.rowcount; i ++)
  1124. {
  1125. ds_main_stusche_stuschelist.setColumn(i, "flag", "3");
  1126. ds_main_stusche_stuschelist.setColumn(i, "conf_myn", "Y");
  1127. ds_main_stusche_stuschelist.setRowType(i, 4);
  1128. }
  1129. grdf_setStatusColumn(ds_main_stusche_stuschelist, "status");
  1130. ds_main_stusche_stuschelist.updatecontrol = true;
  1131. ds_main_stusche_stuschelist.enableevent = true;
  1132. var oParam = {};
  1133. oParam.id = "TXRPD12901";
  1134. oParam.service = "dligclaznsmngtapp.DutScheMngt";
  1135. oParam.method = "reqExeSaveStuScheList";
  1136. oParam.inds = "stuschelist=ds_main_stusche_stuschelist:u";
  1137. oParam.outds = "";
  1138. oParam.async = false;
  1139. //oParam.callback = "cf_TXRPD12901";
  1140. tranf_submit(oParam);
  1141. btnflag = "0";
  1142. group4.btn_search.click();
  1143. }
  1144. else
  1145. {
  1146. return;
  1147. }
  1148. }
  1149. function btn_mynN_onclick(obj:Button, e:ClickEventInfo)
  1150. {
  1151. if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(0, "collegename")))
  1152. {
  1153. sysf_messageBox("조회된 값이 없습니다.", "E999", "");
  1154. return;
  1155. }
  1156. var req = sysf_messageBox("최종확인해제를 실행합니다. 수정중이거나 입력중인 자료는 저장되지 않습니다.", "Q003");
  1157. if( req == 6 )
  1158. {
  1159. btnflag = "4";
  1160. group4.btn_search.click();
  1161. ds_main_stusche_stuschelist.enableevent = false;
  1162. ds_main_stusche_stuschelist.updatecontrol = false;
  1163. for(var i = 0; i < ds_main_stusche_stuschelist.rowcount; i ++)
  1164. {
  1165. ds_main_stusche_stuschelist.setColumn(i, "flag", "4");
  1166. ds_main_stusche_stuschelist.setColumn(i, "conf_myn", "N");
  1167. ds_main_stusche_stuschelist.setRowType(i, 4);
  1168. }
  1169. grdf_setStatusColumn(ds_main_stusche_stuschelist, "status");
  1170. ds_main_stusche_stuschelist.updatecontrol = true;
  1171. ds_main_stusche_stuschelist.enableevent = true;
  1172. var oParam = {};
  1173. oParam.id = "TXRPD12901";
  1174. oParam.service = "dligclaznsmngtapp.DutScheMngt";
  1175. oParam.method = "reqExeSaveStuScheList";
  1176. oParam.inds = "stuschelist=ds_main_stusche_stuschelist:u";
  1177. oParam.outds = "";
  1178. oParam.async = false;
  1179. //oParam.callback = "cf_TXRPD12901";
  1180. tranf_submit(oParam);
  1181. btnflag = "0";
  1182. group4.btn_search.click();
  1183. }
  1184. else
  1185. {
  1186. return;
  1187. }
  1188. }
  1189. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  1190. {
  1191. if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(0, "deptcd")))
  1192. {
  1193. sysf_messageBox("저장될 행이 없습니다.", "E999", "");
  1194. return;
  1195. }
  1196. for(var i = 0; i < ds_main_stusche_stuschelist.rowcount; i++)
  1197. {
  1198. if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(i, "collegename")))
  1199. {
  1200. var nrname = ds_main_stusche_stuschelist.getColumn(i, "nrname");
  1201. if(nrname != "Day" && nrname != "Evening" && nrname != "Night")
  1202. {
  1203. sysf_messageBox(parseInt(i+1)+"번째 실습의뢰기관명이 없습니다. 선택하여주십시오.", "E999", "");
  1204. ds_main_stusche_stuschelist.rowposition = i;
  1205. grd_dutschelist.setCellPos(grd_dutschelist.getBindCellIndex("body", "collegename"));
  1206. grd_dutschelist.showEditor(true);
  1207. return;
  1208. }
  1209. }
  1210. if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(i, "schoolyy")))
  1211. {
  1212. var nrname = ds_main_stusche_stuschelist.getColumn(i, "nrname");
  1213. if(nrname != "Day" && nrname != "Evening" && nrname != "Night")
  1214. {
  1215. sysf_messageBox(parseInt(i+1)+"번째 학년/과정이 없습니다. 입력하여주십시오..", "E999", "");
  1216. ds_main_stusche_stuschelist.rowposition = i;
  1217. grd_dutschelist.setCellPos(grd_dutschelist.getBindCellIndex("body", "schoolyy"));
  1218. grd_dutschelist.showEditor(true);
  1219. return;
  1220. }
  1221. }
  1222. if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(i, "nrname")))
  1223. {
  1224. var nrname = ds_main_stusche_stuschelist.getColumn(i, "nrname");
  1225. if(nrname != "Day" && nrname != "Evening" && nrname != "Night")
  1226. {
  1227. sysf_messageBox(parseInt(i+1)+"번째 성명이 없습니다. 입력하여주십시오.", "E999", "");
  1228. ds_main_stusche_stuschelist.rowposition = i;
  1229. grd_dutschelist.setCellPos(grd_dutschelist.getBindCellIndex("body", "nrname"));
  1230. grd_dutschelist.showEditor(true);
  1231. return;
  1232. }
  1233. }
  1234. if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(i, "fromdd")))
  1235. {
  1236. var nrname = ds_main_stusche_stuschelist.getColumn(i, "nrname");
  1237. if(nrname != "Day" && nrname != "Evening" && nrname != "Night")
  1238. {
  1239. sysf_messageBox(parseInt(i+1)+"번째 기간 시작일이 없습니다. 입력하여주십시오..", "E999", "");
  1240. ds_main_stusche_stuschelist.rowposition = i;
  1241. grd_dutschelist.setCellPos(grd_dutschelist.getBindCellIndex("body", "fromdd"));
  1242. grd_dutschelist.showEditor(true);
  1243. return;
  1244. }
  1245. }
  1246. if(utlf_isNull(ds_main_stusche_stuschelist.getColumn(i, "todd")))
  1247. {
  1248. var nrname = ds_main_stusche_stuschelist.getColumn(i, "nrname");
  1249. if(nrname != "Day" && nrname != "Evening" && nrname != "Night")
  1250. {
  1251. sysf_messageBox(parseInt(i+1)+"번째 기간 종료일이 없습니다. 입력하여주십시오..", "E999", "");
  1252. ds_main_stusche_stuschelist.rowposition = i;
  1253. grd_dutschelist.setCellPos(grd_dutschelist.getBindCellIndex("body", "todd"));
  1254. grd_dutschelist.showEditor(true);
  1255. return;
  1256. }
  1257. }
  1258. }
  1259. var oParam = {};
  1260. oParam.id = "TXRPD12901";
  1261. oParam.service = "dligclaznsmngtapp.DutScheMngt";
  1262. oParam.method = "reqExeSaveStuScheList";
  1263. oParam.inds = "stuschelist=ds_main_stusche_stuschelist:u";
  1264. oParam.outds = "";
  1265. oParam.async = false;
  1266. //oParam.callback = "cf_TXRPD12901";
  1267. tranf_submit(oParam);
  1268. btnflag = "0";
  1269. group4.btn_search.click();
  1270. }
  1271. function btn_admin_onclick(obj:Button, e:ClickEventInfo)
  1272. {
  1273. group2.visible = true;
  1274. misfGridInit(group2.grd_popdeptschlist);
  1275. ds_popup_send.setColumn(0, "dutym", String(utlf_getCurrentDate()).substr(0, 6));
  1276. group2.btn_popsynY.enable = true;
  1277. group2.btn_popsynN.enable = true;
  1278. group2.btn_popmynY.enable = true;
  1279. group2.btn_popmynN.enable = true;
  1280. group2.group3.rbo_popflag.value = "1";
  1281. }
  1282. function group2_group3_pop_dutym_onchanged(obj:Calendar, e:ChangeEventInfo)
  1283. {
  1284. ds_popup_send.setColumn(0, "dutym", String(obj.value).substr(0,6));
  1285. group2.group3.pop_search.click();
  1286. }
  1287. function group2_group3_pop_search_onclick(obj:Button, e:ClickEventInfo)
  1288. {
  1289. misfGridInit(group2.grd_popdeptschlist);
  1290. var caption = "";
  1291. if(group2.group3.rbo_popflag.value == "1")
  1292. {
  1293. caption = "√^병 동 / 부 서^근무년월^수간호결재^최종확인";
  1294. group2.btn_popsynY.enable = true;
  1295. group2.btn_popsynN.enable = true;
  1296. group2.btn_popmynY.enable = true;
  1297. group2.btn_popmynN.enable = true;
  1298. }
  1299. else
  1300. {
  1301. sysf_messageBox("실습의뢰기관은 수간호사결재,최종확인을 일괄 처리 할 수 없습니다.", "I999", "");
  1302. caption = "√^실습의뢰기관^근무년월^수간호결재^최종확인";
  1303. group2.btn_popsynY.enable = false;
  1304. group2.btn_popsynN.enable = false;
  1305. group2.btn_popmynY.enable = false;
  1306. group2.btn_popmynN.enable = false;
  1307. }
  1308. caption = caption.split("^");
  1309. for(var i = 0; i < caption.length; i++)
  1310. {
  1311. group2.grd_popdeptschlist.setCellProperty("Head", i+1, "text", caption[i]);
  1312. }
  1313. var oParam = {};
  1314. oParam.id = "TRRPD12903";
  1315. oParam.service = "dligclaznsmngtapp.DutScheMngt";
  1316. oParam.method = "reqGetDeptScheList";
  1317. oParam.inds = "req=ds_popup_send";
  1318. oParam.outds = "ds_main_popup_main_deptsche_deptschelist=deptschelist";
  1319. oParam.async = false;
  1320. // oParam.callback = "cf_TRRPD12903";
  1321. tranf_submit(oParam);
  1322. }
  1323. function ds_main_popup_main_deptsche_deptschelist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  1324. {
  1325. if(e.columnid == "chkflag")
  1326. {
  1327. obj.setColumn(e.row, "chkflag", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  1328. }
  1329. if(e.columnid == "conf_syn")
  1330. {
  1331. obj.setColumn(e.row, "conf_syn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  1332. }
  1333. if(e.columnid == "conf_myn")
  1334. {
  1335. obj.setColumn(e.row, "conf_myn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  1336. }
  1337. }
  1338. function group2_button6_onclick(obj:Button, e:ClickEventInfo)
  1339. {
  1340. ds_main_popup_main_deptsche_deptschelist.updatecontrol = true;
  1341. for(var i = 0; i < ds_main_popup_main_deptsche_deptschelist.rowcount; i++)
  1342. {
  1343. ds_main_popup_main_deptsche_deptschelist.setColumn(i, "chkflag", "Y");
  1344. ds_main_popup_main_deptsche_deptschelist.setRowType(i, "u");
  1345. }
  1346. ds_main_popup_main_deptsche_deptschelist.updatecontrol = true;
  1347. }
  1348. function group2_button7_onclick(obj:Button, e:ClickEventInfo)
  1349. {
  1350. ds_main_popup_main_deptsche_deptschelist.updatecontrol = true;
  1351. for(var i = 0; i < ds_main_popup_main_deptsche_deptschelist.rowcount; i++)
  1352. {
  1353. ds_main_popup_main_deptsche_deptschelist.setColumn(i, "chkflag", "N");
  1354. ds_main_popup_main_deptsche_deptschelist.setRowType(i, "u");
  1355. }
  1356. ds_main_popup_main_deptsche_deptschelist.updatecontrol = true;
  1357. }
  1358. function group2_btn_deptprint_onclick(obj:Button, e:ClickEventInfo)
  1359. {
  1360. ds_popup_print_send.clearData();
  1361. ds_popup_print_send.addRow();
  1362. var page = "1";
  1363. if(utlf_isNull(ds_main_popup_main_deptsche_deptschelist.getColumn(0, "deptnm")))
  1364. {
  1365. sysf_messageBox("조회된 값이 없습니다.", "E999", "");
  1366. return;
  1367. }
  1368. var pagechk = sysf_messageBox("일괄출력을", "S003", "각각 장마다 출력을");
  1369. if(pagechk == "6")
  1370. {
  1371. page = "1";
  1372. }
  1373. else if(pagechk == "7")
  1374. {
  1375. page = "2";
  1376. }
  1377. else
  1378. {
  1379. return;
  1380. }
  1381. var indeptcd = "";
  1382. var deptnum = 0;
  1383. for(var i = 0; i < ds_main_popup_main_deptsche_deptschelist.rowcount; i++)
  1384. {
  1385. var chkflag = ds_main_popup_main_deptsche_deptschelist.getColumn(i, "chkflag");
  1386. var deptcd = ds_main_popup_main_deptsche_deptschelist.getColumn(i, "deptcd");
  1387. if(chkflag == "Y")
  1388. {
  1389. if(deptnum == 0)
  1390. {
  1391. indeptcd = "'"+deptcd+"'";
  1392. }
  1393. else if(deptnum > 0)
  1394. {
  1395. indeptcd = indeptcd + ",'"+deptcd+"'";
  1396. }
  1397. deptnum++;
  1398. }
  1399. }
  1400. if(deptnum != 0)
  1401. {
  1402. ds_popup_print_send.setColumn(0, "indeptcd", indeptcd);
  1403. }
  1404. ds_popup_print_send.setColumn(0, "instcd", group2.group3.cmb_instcdpopup.value);
  1405. ds_popup_print_send.setColumn(0, "dutym", ds_popup_send.getColumn(0, "dutym"));
  1406. ds_popup_print_send.setColumn(0, "flag", "dept");
  1407. ds_popup_print_stusche.clearData();
  1408. var oParam = {};
  1409. oParam.id = "TRRPD12905";
  1410. oParam.service = "dligclaznsmngtapp.DutScheMngt";
  1411. oParam.method = "reqGetStuScheDeptPrintList";
  1412. oParam.inds = "req=ds_popup_print_send";
  1413. oParam.outds = "ds_popup_print_stusche=stuschelist";
  1414. oParam.async = false;
  1415. //oParam.callback = "cf_TRRPD12905";
  1416. tranf_submit(oParam);
  1417. ds_week.clearData();
  1418. for(i = 1 ; i < 32 ; i++)
  1419. {
  1420. var dt = ds_send.getColumn(0, "dutym")+i;
  1421. dsf_makeValue(ds_week, "week"+i, "string", dt.toDate().getDayOfWeek("K"), 0);
  1422. }
  1423. dsf_makeValue(ds_pass, "daytitle", "string", String(ds_popup_send.getColumn(0, "dutym")).substr(0,4)+"년"+String(ds_popup_send.getColumn(0, "dutym")).substr(4,2)+"월", 0);
  1424. dsf_makeValue(ds_pass, "instnm", "string", group2.group3.cmb_instcdpopup.text, 0);
  1425. if(page == "1")
  1426. {
  1427. var objDOM = rptf_createDOM();
  1428. rptf_setNodeListToDOM(objDOM, "/root/week", ds_week);
  1429. rptf_setNodeListToDOM(objDOM, "/root/popup/print/stusche/stuschelist", ds_popup_print_stusche);
  1430. var objParam = new Object();
  1431. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1432. objParam.daytitle = ds_pass.getColumn(0, "daytitle");
  1433. objParam.instnm = ds_pass.getColumn(0, "instnm");
  1434. var option = "";
  1435. rptf_exeReportPreview30(["RPRPD12902"],[objParam], option, "");
  1436. }
  1437. else
  1438. {
  1439. var objDOM = rptf_createDOM();
  1440. rptf_setNodeListToDOM(objDOM, "/root/week", ds_week);
  1441. rptf_setNodeListToDOM(objDOM, "/root/popup/print/stusche/stuschelist", ds_popup_print_stusche);
  1442. var objParam = new Object();
  1443. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1444. objParam.daytitle = ds_pass.getColumn(0, "daytitle");
  1445. objParam.instnm = ds_pass.getColumn(0, "instnm");
  1446. var option = "";
  1447. rptf_exeReportPreview30(["RPRPD12903"],[objParam], option, "");
  1448. }
  1449. }
  1450. function group2_btn_schoolprint_onclick(obj:Button, e:ClickEventInfo)
  1451. {
  1452. ds_popup_print_send.clearData();
  1453. ds_popup_print_send.addRow();
  1454. var page = "1";
  1455. if(utlf_isNull(ds_main_popup_main_deptsche_deptschelist.getColumn(0, "deptnm")))
  1456. {
  1457. sysf_messageBox("조회된 값이 없습니다.", "E999", "");
  1458. return;
  1459. }
  1460. var pagechk = sysf_messageBox("일괄출력을", "S003", "각각 장마다 출력을");
  1461. if(pagechk == "6")
  1462. {
  1463. page = "1";
  1464. }
  1465. else if(pagechk == "7")
  1466. {
  1467. page = "2";
  1468. }
  1469. else
  1470. {
  1471. return;
  1472. }
  1473. var indeptcd = "";
  1474. var deptnum = 0;
  1475. for(var i = 0; i < ds_main_popup_main_deptsche_deptschelist.rowcount; i++)
  1476. {
  1477. var chkflag = ds_main_popup_main_deptsche_deptschelist.getColumn(i, "chkflag");
  1478. var deptcd = ds_main_popup_main_deptsche_deptschelist.getColumn(i, "deptcd");
  1479. if(chkflag == "Y")
  1480. {
  1481. if(deptnum == 0)
  1482. {
  1483. indeptcd = "'"+deptcd+"'";
  1484. }
  1485. else if(deptnum > 0)
  1486. {
  1487. indeptcd = indeptcd + ",'"+deptcd+"'";
  1488. }
  1489. deptnum++;
  1490. }
  1491. }
  1492. if(deptnum != 0)
  1493. {
  1494. ds_popup_print_send.setColumn(0, "indeptcd", indeptcd);
  1495. }
  1496. ds_popup_print_send.setColumn(0, "instcd", group2.group3.cmb_instcdpopup.value);
  1497. ds_popup_print_send.setColumn(0, "dutym", ds_popup_send.getColumn(0, "dutym"));
  1498. ds_popup_print_send.setColumn(0, "flag", "school");
  1499. ds_popup_print_stusche.clearData();
  1500. var oParam = {};
  1501. oParam.id = "TRRPD12905";
  1502. oParam.service = "dligclaznsmngtapp.DutScheMngt";
  1503. oParam.method = "reqGetStuScheDeptPrintList";
  1504. oParam.inds = "req=ds_popup_print_send";
  1505. oParam.outds = "ds_popup_print_stusche=stuschelist";
  1506. oParam.async = false;
  1507. //oParam.callback = "cf_TRRPD12905";
  1508. tranf_submit(oParam);
  1509. ds_week.clearData();
  1510. for(i = 1 ; i < 32 ; i++)
  1511. {
  1512. var dt = ds_send.getColumn(0, "dutym")+i;
  1513. dsf_makeValue(ds_week, "week"+i, "string", dt.toDate().getDayOfWeek("K"), 0);
  1514. }
  1515. dsf_makeValue(ds_pass, "daytitle", "string", String(ds_popup_send.getColumn(0, "dutym")).substr(0,4)+"년"+String(ds_popup_send.getColumn(0, "dutym")).substr(4,2)+"월", 0);
  1516. dsf_makeValue(ds_pass, "instnm", "string", group2.group3.cmb_instcdpopup.text, 0);
  1517. if(page == "1")
  1518. {
  1519. var objDOM = rptf_createDOM();
  1520. rptf_setNodeListToDOM(objDOM, "/root/week", ds_week);
  1521. rptf_setNodeListToDOM(objDOM, "/root/popup/print/stusche/stuschelist", ds_popup_print_stusche);
  1522. var objParam = new Object();
  1523. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1524. objParam.daytitle = ds_pass.getColumn(0, "daytitle");
  1525. objParam.instnm = ds_pass.getColumn(0, "instnm");
  1526. var option = "";
  1527. rptf_exeReportPreview30(["RPRPD12902"],[objParam], option, "");
  1528. }
  1529. else
  1530. {
  1531. var objDOM = rptf_createDOM();
  1532. rptf_setNodeListToDOM(objDOM, "/root/week", ds_week);
  1533. rptf_setNodeListToDOM(objDOM, "/root/popup/print/stusche/stuschelist", ds_popup_print_stusche);
  1534. var objParam = new Object();
  1535. objParam.xml_data_XML1 = objDOM.documentElement.source;
  1536. objParam.daytitle = ds_pass.getColumn(0, "daytitle");
  1537. objParam.instnm = ds_pass.getColumn(0, "instnm");
  1538. var option = "";
  1539. rptf_exeReportPreview30(["RPRPD12903"],[objParam], option, "");
  1540. }
  1541. }
  1542. function group2_btn_popsynY_onclick(obj:Button, e:ClickEventInfo)
  1543. {
  1544. if(grdf_getGridUpdateData(group2.grd_popdeptschlist).rowcount == 0)
  1545. {
  1546. sysf_messageBox("선택된 데이터가 없습니다.","I004");
  1547. return;
  1548. }
  1549. for(var i = 0; i < ds_main_popup_main_deptsche_deptschelist.rowcount; i++)
  1550. {
  1551. if(ds_main_popup_main_deptsche_deptschelist.getColumn(i, "chkflag") == "Y")
  1552. {
  1553. ds_main_popup_main_deptsche_deptschelist.setColumn(i, "conf_syn", "Y");
  1554. ds_main_popup_main_deptsche_deptschelist.setColumn(i, "confchk", "1");
  1555. }
  1556. }
  1557. var oParam = {};
  1558. oParam.id = "TXRPD12901";
  1559. oParam.service = "dligclaznsmngtapp.DutScheMngt";
  1560. oParam.method = "reqExeSaveDeptScheList";
  1561. oParam.inds = "deptschelist=ds_main_popup_main_deptsche_deptschelist:u";
  1562. oParam.outds = "";
  1563. oParam.async = false;
  1564. //oParam.callback = "cf_TXRPD12901";
  1565. tranf_submit(oParam);
  1566. group2.group3.pop_search.click();
  1567. }
  1568. function group2_btn_popsynN_onclick(obj:Button, e:ClickEventInfo)
  1569. {
  1570. if(grdf_getGridUpdateData(group2.grd_popdeptschlist).rowcount == 0)
  1571. {
  1572. sysf_messageBox("선택된 데이터가 없습니다.","I004");
  1573. return;
  1574. }
  1575. for(var i = 0; i < ds_main_popup_main_deptsche_deptschelist.rowcount; i++)
  1576. {
  1577. if(ds_main_popup_main_deptsche_deptschelist.getColumn(i, "chkflag") == "Y")
  1578. {
  1579. ds_main_popup_main_deptsche_deptschelist.setColumn(i, "conf_syn", "N");
  1580. ds_main_popup_main_deptsche_deptschelist.setColumn(i, "confchk", "1");
  1581. }
  1582. }
  1583. var oParam = {};
  1584. oParam.id = "TXRPD12901";
  1585. oParam.service = "dligclaznsmngtapp.DutScheMngt";
  1586. oParam.method = "reqExeSaveDeptScheList";
  1587. oParam.inds = "deptschelist=ds_main_popup_main_deptsche_deptschelist:u";
  1588. oParam.outds = "";
  1589. oParam.async = false;
  1590. //oParam.callback = "cf_TXRPD12901";
  1591. tranf_submit(oParam);
  1592. group2.group3.pop_search.click();
  1593. }
  1594. function group2_btn_popmynY_onclick(obj:Button, e:ClickEventInfo)
  1595. {
  1596. if(grdf_getGridUpdateData(group2.grd_popdeptschlist).rowcount == 0)
  1597. {
  1598. sysf_messageBox("선택된 데이터가 없습니다.","I004");
  1599. return;
  1600. }
  1601. for(var i = 0; i < ds_main_popup_main_deptsche_deptschelist.rowcount; i++)
  1602. {
  1603. if(ds_main_popup_main_deptsche_deptschelist.getColumn(i, "chkflag") == "Y")
  1604. {
  1605. ds_main_popup_main_deptsche_deptschelist.setColumn(i, "conf_myn", "Y");
  1606. ds_main_popup_main_deptsche_deptschelist.setColumn(i, "confchk", "2");
  1607. }
  1608. }
  1609. var oParam = {};
  1610. oParam.id = "TXRPD12901";
  1611. oParam.service = "dligclaznsmngtapp.DutScheMngt";
  1612. oParam.method = "reqExeSaveDeptScheList";
  1613. oParam.inds = "deptschelist=ds_main_popup_main_deptsche_deptschelist:u";
  1614. oParam.outds = "";
  1615. oParam.async = false;
  1616. //oParam.callback = "cf_TXRPD12901";
  1617. tranf_submit(oParam);
  1618. group2.group3.pop_search.click();
  1619. }
  1620. function group2_btn_popmynN_onclick(obj:Button, e:ClickEventInfo)
  1621. {
  1622. if(grdf_getGridUpdateData(group2.grd_popdeptschlist).rowcount == 0)
  1623. {
  1624. sysf_messageBox("선택된 데이터가 없습니다.","I004");
  1625. return;
  1626. }
  1627. for(var i = 0; i < ds_main_popup_main_deptsche_deptschelist.rowcount; i++)
  1628. {
  1629. if(ds_main_popup_main_deptsche_deptschelist.getColumn(i, "chkflag") == "Y")
  1630. {
  1631. ds_main_popup_main_deptsche_deptschelist.setColumn(i, "conf_myn", "N");
  1632. ds_main_popup_main_deptsche_deptschelist.setColumn(i, "confchk", "2");
  1633. }
  1634. }
  1635. var oParam = {};
  1636. oParam.id = "TXRPD12901";
  1637. oParam.service = "dligclaznsmngtapp.DutScheMngt";
  1638. oParam.method = "reqExeSaveDeptScheList";
  1639. oParam.inds = "deptschelist=ds_main_popup_main_deptsche_deptschelist:u";
  1640. oParam.outds = "";
  1641. oParam.async = false;
  1642. //oParam.callback = "cf_TXRPD12901";
  1643. tranf_submit(oParam);
  1644. group2.group3.pop_search.click();
  1645. }
  1646. function group2_button4_onclick(obj:Button, e:ClickEventInfo)
  1647. {
  1648. group2.visible = false;
  1649. btnflag = "0";
  1650. group4.btn_search.click();
  1651. }
  1652. ]]></Script>
  1653. </Form>
  1654. </FDL>