SPMMR03900_진료일정.xfdl 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMR03900" position="absolute 0 0 1256 805" titletext="의뢰선택" oninit="SPMMR03900_oninit" onload="SPMMR03900_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1045 690" id="grup_cnst1" visible="false">
  8. <Layouts>
  9. <Layout>
  10. <Static text="휴진/마감 사유" position="absolute 160 491 417 511" id="caption3" class="tit_2"/>
  11. <Button position="absolute 575 488 601 508" id="btn_bottom" class="icon_bottom" text="" onclick="grup_cnst1_btn_bottom_onclick"/>
  12. <Grid position="absolute 160 510 1045 685" id="grd_endresn" binddataset="ds_grd_endresn">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="100"/>
  17. <Column size="631"/>
  18. </Columns>
  19. <Rows>
  20. <Row size="24" band="head"/>
  21. <Row size="24"/>
  22. </Rows>
  23. <Band id="head">
  24. <Cell text="날짜"/>
  25. <Cell col="1" text="휴진/마감 사유"/>
  26. </Band>
  27. <Band id="body">
  28. <Cell displaytype="normal" edittype="none" text="bind:orddd" mask="####-##-##"/>
  29. <Cell col="1" displaytype="text" edittype="none" text="bind:ordendresnnm"/>
  30. </Band>
  31. </Format>
  32. </Formats>
  33. </Grid>
  34. <Grid position="absolute 0 25 158 685" id="grd_deptlist" binddataset="ds_cnstformlist" oncelldblclick="grup_cnst1_grd_deptlist_oncelldblclick">
  35. <Formats>
  36. <Format id="default">
  37. <Columns>
  38. <Column size="147"/>
  39. <Column size="0"/>
  40. <Column size="0"/>
  41. <Column size="0"/>
  42. <Column size="0"/>
  43. </Columns>
  44. <Rows>
  45. <Row size="24"/>
  46. </Rows>
  47. <Band id="body">
  48. <Cell displaytype="text" text="bind:cnstdeptnm" expr="expr:seq == '0' ? cnstdeptnm + '★' : cnstdeptnm"/>
  49. <Cell col="1" text="bind:cnstdeptcd"/>
  50. <Cell col="2" text="bind:cnstflag"/>
  51. <Cell col="3" text="bind:formcd"/>
  52. <Cell col="4" text="bind:reqdeptno"/>
  53. </Band>
  54. </Format>
  55. </Formats>
  56. </Grid>
  57. <Grid position="absolute 160 25 1045 485" align="align:center middle;" id="grd_drschlist" binddataset="ds_grd_drschlist" oncelldblclick="grup_cnst1_grd_drschlist_oncelldblclick" selecttype="multiarea" extendsizetype="row" autosizingtype="row" cellsizingtype="row" scrollpixel="all">
  58. <Formats>
  59. <Format id="default">
  60. <Columns>
  61. <Column size="0" band="left"/>
  62. <Column size="0" band="left"/>
  63. <Column size="90" band="left"/>
  64. <Column size="515"/>
  65. <Column size="40"/>
  66. <Column size="40"/>
  67. <Column size="40"/>
  68. <Column size="40"/>
  69. <Column size="40"/>
  70. <Column size="40"/>
  71. <Column size="40"/>
  72. <Column size="40"/>
  73. <Column size="40"/>
  74. <Column size="40"/>
  75. <Column size="40"/>
  76. <Column size="40"/>
  77. <Column size="40"/>
  78. <Column size="40"/>
  79. <Column size="40"/>
  80. <Column size="40"/>
  81. <Column size="40"/>
  82. <Column size="40"/>
  83. <Column size="40"/>
  84. <Column size="40"/>
  85. <Column size="40"/>
  86. <Column size="40"/>
  87. <Column size="40"/>
  88. <Column size="40"/>
  89. <Column size="40"/>
  90. <Column size="40"/>
  91. <Column size="40"/>
  92. <Column size="40"/>
  93. <Column size="40"/>
  94. <Column size="40"/>
  95. </Columns>
  96. <Rows>
  97. <Row size="24" band="head"/>
  98. <Row size="24"/>
  99. </Rows>
  100. <Band id="head">
  101. <Cell/>
  102. <Cell col="1"/>
  103. <Cell col="2"/>
  104. <Cell col="3"/>
  105. <Cell col="4"/>
  106. <Cell col="5"/>
  107. <Cell col="6"/>
  108. <Cell col="7"/>
  109. <Cell col="8"/>
  110. <Cell col="9"/>
  111. <Cell col="10"/>
  112. <Cell col="11"/>
  113. <Cell col="12"/>
  114. <Cell col="13"/>
  115. <Cell col="14"/>
  116. <Cell col="15"/>
  117. <Cell col="16"/>
  118. <Cell col="17"/>
  119. <Cell col="18"/>
  120. <Cell col="19"/>
  121. <Cell col="20"/>
  122. <Cell col="21"/>
  123. <Cell col="22"/>
  124. <Cell col="23"/>
  125. <Cell col="24"/>
  126. <Cell col="25"/>
  127. <Cell col="26"/>
  128. <Cell col="27"/>
  129. <Cell col="28"/>
  130. <Cell col="29"/>
  131. <Cell col="30"/>
  132. <Cell col="31"/>
  133. <Cell col="32"/>
  134. <Cell col="33"/>
  135. </Band>
  136. <Band id="body">
  137. <Cell text="bind:orddrid"/>
  138. <Cell col="1" text="bind:orddrnm"/>
  139. <Cell col="2" displaytype="text" style="background:white;background2:white;" text="bind:orddrextnnm"/>
  140. <Cell col="3" displaytype="text" style="background:white;background2:white;" text="bind:ordfild"/>
  141. <Cell col="4" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col0&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col0&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col0&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col0&quot;));linespace:2;" text="bind:col0" wordwrap="word"/>
  142. <Cell col="5" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col1&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col1&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col1&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col1&quot;));linespace:2;" text="bind:col1" wordwrap="word"/>
  143. <Cell col="6" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col2&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col2&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col2&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col2&quot;));linespace:2;" text="bind:col2" wordwrap="word"/>
  144. <Cell col="7" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col3&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col3&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col3&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col3&quot;));linespace:2;" text="bind:col3" wordwrap="word"/>
  145. <Cell col="8" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col4&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col4&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col4&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col4&quot;));linespace:2;" text="bind:col4" wordwrap="word"/>
  146. <Cell col="9" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col5&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col5&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col5&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col5&quot;));linespace:2;" text="bind:col5" wordwrap="word"/>
  147. <Cell col="10" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col6&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col6&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col6&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col6&quot;));linespace:2;" text="bind:col6" wordwrap="word"/>
  148. <Cell col="11" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col7&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col7&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col7&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col7&quot;));linespace:2;" text="bind:col7" wordwrap="word"/>
  149. <Cell col="12" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col8&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col8&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col8&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col8&quot;));linespace:2;" text="bind:col8" wordwrap="word"/>
  150. <Cell col="13" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col9&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col9&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col9&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col9&quot;));linespace:2;" text="bind:col9" wordwrap="word"/>
  151. <Cell col="14" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col10&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col10&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col10&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col10&quot;));linespace:2;" text="bind:col10" wordwrap="word"/>
  152. <Cell col="15" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col11&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col11&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col11&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col11&quot;));linespace:2;" text="bind:col11" wordwrap="word"/>
  153. <Cell col="16" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col12&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col12&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col12&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col12&quot;));linespace:2;" text="bind:col12" wordwrap="word"/>
  154. <Cell col="17" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col13&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col13&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col13&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col13&quot;));linespace:2;" text="bind:col13" wordwrap="word"/>
  155. <Cell col="18" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col14&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col14&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col14&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col14&quot;));linespace:2;" text="bind:col14" wordwrap="word"/>
  156. <Cell col="19" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col15&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col15&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col15&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col15&quot;));linespace:2;" text="bind:col15" wordwrap="word"/>
  157. <Cell col="20" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col16&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col16&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col16&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col16&quot;));linespace:2;" text="bind:col16" wordwrap="word"/>
  158. <Cell col="21" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col17&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col17&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col17&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col17&quot;));linespace:2;" text="bind:col17" wordwrap="word"/>
  159. <Cell col="22" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col18&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col18&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col18&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col18&quot;));linespace:2;" text="bind:col18" wordwrap="word"/>
  160. <Cell col="23" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col19&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col19&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col19&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col19&quot;));linespace:2;" text="bind:col19" wordwrap="word"/>
  161. <Cell col="24" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col20&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col20&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col20&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col20&quot;));linespace:2;" text="bind:col20" wordwrap="word"/>
  162. <Cell col="25" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col21&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col21&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col21&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col21&quot;));linespace:2;" text="bind:col21" wordwrap="word"/>
  163. <Cell col="26" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col22&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col22&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col22&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col22&quot;));linespace:2;" text="bind:col22" wordwrap="word"/>
  164. <Cell col="27" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col23&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col23&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col23&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col23&quot;));linespace:2;" text="bind:col23" wordwrap="word"/>
  165. <Cell col="28" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col24&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col24&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col24&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col24&quot;));linespace:2;" text="bind:col24" wordwrap="word"/>
  166. <Cell col="29" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col25&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col25&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col25&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col25&quot;));linespace:2;" text="bind:col25" wordwrap="word"/>
  167. <Cell col="30" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col26&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col26&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col26&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col26&quot;));linespace:2;" text="bind:col26" wordwrap="word"/>
  168. <Cell col="31" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col27&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col27&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col27&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col27&quot;));linespace:2;" text="bind:col27" wordwrap="word"/>
  169. <Cell col="32" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col28&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col28&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col28&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col28&quot;));linespace:2;" text="bind:col28" wordwrap="word"/>
  170. <Cell col="33" style="padding:5 4 5 4;background:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col29&quot;));background2:EXPR(fSetGrdColor(&quot;back&quot;, currow, &quot;col29&quot;));color:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col29&quot;));color2:EXPR(fSetGrdColor(&quot;font&quot;, currow, &quot;col29&quot;));linespace:2;" text="bind:col29" wordwrap="word"/>
  171. </Band>
  172. </Format>
  173. </Formats>
  174. </Grid>
  175. <Button position="absolute 368 3 394 23" id="button102" class="icon_left" text="" onclick="grup_cnst1_button102_onclick" tooltiptext="이전달" tooltiptype="hover"/>
  176. <Button position="absolute 399 3 425 23" id="button103" class="icon_right" text="" onclick="grup_cnst1_button103_onclick" tooltiptext="다음달" tooltiptype="hover"/>
  177. <Static text="진료의뢰 수신과, 수신자 선택" position="absolute 5 5 205 25" id="caption1" class="tit_2"/>
  178. <Radio position="absolute 218 3 313 23" id="rdo_cnstioflag" visible="false" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="grup_cnst1_rdo_cnstioflag_onitemchanged">
  179. <Dataset id="innerdataset">
  180. <ColumnInfo>
  181. <Column id="codecolumn"/>
  182. <Column id="datacolumn"/>
  183. </ColumnInfo>
  184. <Rows>
  185. <Row>
  186. <Col id="codecolumn">I</Col>
  187. <Col id="datacolumn">입원</Col>
  188. </Row>
  189. <Row>
  190. <Col id="codecolumn">O</Col>
  191. <Col id="datacolumn">외래</Col>
  192. </Row>
  193. </Rows>
  194. </Dataset>
  195. </Radio>
  196. <Button position="absolute 575 660 601 680" id="btn_fold" class="icon_top" visible="false" text="" onclick="grup_cnst1_btn_fold_onclick"/>
  197. </Layout>
  198. </Layouts>
  199. </Div>
  200. <Div position="absolute 1045 0 1324 690" id="grup_cnst3" visible="false">
  201. <Layouts>
  202. <Layout>
  203. <Grid position="absolute 0 25 278 685" id="grd_cnstlist" binddataset="ds_cnstformlist" oncelldblclick="grup_cnst3_grd_cnstlist_oncelldblclick" autofittype="col" tooltiptype="hover">
  204. <Formats>
  205. <Format id="default">
  206. <Columns>
  207. <Column size="100"/>
  208. <Column size="167"/>
  209. <Column size="0"/>
  210. <Column size="0"/>
  211. <Column size="0"/>
  212. <Column size="0"/>
  213. <Column size="0"/>
  214. </Columns>
  215. <Rows>
  216. <Row size="24"/>
  217. </Rows>
  218. <Band id="body">
  219. <Cell style="background:white;background2:white;" text="bind:cnstclsnm" suppress="1"/>
  220. <Cell col="1" displaytype="text" style="background:white;background2:white;" text="bind:formnm" wordwrap="char" tooltiptext="bind:formnm"/>
  221. <Cell col="2" text="bind:cnstdeptnm"/>
  222. <Cell col="3" text="bind:cnstdeptcd"/>
  223. <Cell col="4" text="bind:cnstflag"/>
  224. <Cell col="5" text="bind:formcd"/>
  225. <Cell col="6" text="bind:replflag"/>
  226. </Band>
  227. </Format>
  228. </Formats>
  229. </Grid>
  230. <Shape position="absolute 0 21 275 22" linetype="vertical" id="line2" class="line_1"/>
  231. <Static text="지원부서의뢰 의뢰항목선택" position="absolute 5 5 196 25" id="caption2" class="tit_2"/>
  232. <Button position="absolute 233 2 275 22" id="button12" class="btn2" text="선택" onclick="grup_cnst3_button12_onclick"/>
  233. </Layout>
  234. </Layouts>
  235. </Div>
  236. </Layout>
  237. </Layouts>
  238. <Objects>
  239. <Dataset id="ds_endresnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  240. <ColumnInfo>
  241. <Column id="orddrid" type="STRING" size="256" sumtext="진료의사id"/>
  242. <Column id="orddrnm" type="STRING" size="256" sumtext="진료의사명"/>
  243. <Column id="orddrextnnm" type="STRING" size="256" sumtext="진료의사확장명"/>
  244. <Column id="orddd" type="STRING" size="256" sumtext="진료일"/>
  245. <Column id="ampmflag" type="STRING" size="256" sumtext="오전오후구분"/>
  246. <Column id="ampmflagnm" type="STRING" size="256" sumtext="오전오후구분명"/>
  247. <Column id="ordendresnnm" type="STRING" size="256" sumtext="휴진사유"/>
  248. </ColumnInfo>
  249. </Dataset>
  250. <Dataset id="ds_cnstformlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  251. <ColumnInfo>
  252. <Column id="formcd" type="STRING" size="256" sumtext="서식코드"/>
  253. <Column id="formnm" type="STRING" size="256" sumtext="서식명칭"/>
  254. <Column id="cnstdeptcd" type="STRING" size="256" sumtext="컨설트부서코드"/>
  255. <Column id="cnstdeptnm" type="STRING" size="256" sumtext="컨설트부서명"/>
  256. <Column id="cnstflag" type="STRING" size="256" sumtext="컨설트구분"/>
  257. <Column id="cnstclsnm" type="STRING" size="256" sumtext="서식분류명"/>
  258. <Column id="replflag" type="STRING" size="256" sumtext="회신서식구분"/>
  259. <Column id="reqdeptno" type="STRING" size="256" sumtext="청구구분번호"/>
  260. </ColumnInfo>
  261. </Dataset>
  262. <Dataset id="ds_grd_drschlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" onrowposchanged="ds_grd_drschlist_onrowposchanged">
  263. <ColumnInfo>
  264. <Column id="orddrid" type="STRING" size="256" sumtext="진료의사id"/>
  265. <Column id="orddrnm" type="STRING" size="256" sumtext="진료의사명"/>
  266. <Column id="orddrextnnm" type="STRING" size="256" sumtext="진료의사확장명"/>
  267. <Column id="ordfild" type="STRING" size="256" sumtext="진료분야"/>
  268. <Column id="col0" type="STRING" size="256" sumtext="진료일1"/>
  269. <Column id="col1" type="STRING" size="256" sumtext="진료일2"/>
  270. <Column id="col2" type="STRING" size="256" sumtext="진료일3"/>
  271. <Column id="col3" type="STRING" size="256" sumtext="진료일4"/>
  272. <Column id="col4" type="STRING" size="256" sumtext="진료일5"/>
  273. <Column id="col5" type="STRING" size="256" sumtext="진료일6"/>
  274. <Column id="col6" type="STRING" size="256" sumtext="진료일7"/>
  275. <Column id="col7" type="STRING" size="256" sumtext="진료일8"/>
  276. <Column id="col8" type="STRING" size="256" sumtext="진료일9"/>
  277. <Column id="col9" type="STRING" size="256" sumtext="진료일10"/>
  278. <Column id="col10" type="STRING" size="256" sumtext="진료일11"/>
  279. <Column id="col11" type="STRING" size="256" sumtext="진료일12"/>
  280. <Column id="col12" type="STRING" size="256" sumtext="진료일13"/>
  281. <Column id="col13" type="STRING" size="256" sumtext="진료일14"/>
  282. <Column id="col14" type="STRING" size="256" sumtext="진료일15"/>
  283. <Column id="col15" type="STRING" size="256" sumtext="진료일16"/>
  284. <Column id="col16" type="STRING" size="256" sumtext="진료일17"/>
  285. <Column id="col17" type="STRING" size="256" sumtext="진료일18"/>
  286. <Column id="col18" type="STRING" size="256" sumtext="진료일19"/>
  287. <Column id="col19" type="STRING" size="256" sumtext="진료일20"/>
  288. <Column id="col20" type="STRING" size="256" sumtext="진료일21"/>
  289. <Column id="col21" type="STRING" size="256" sumtext="진료일22"/>
  290. <Column id="col22" type="STRING" size="256" sumtext="진료일23"/>
  291. <Column id="col23" type="STRING" size="256" sumtext="진료일24"/>
  292. <Column id="col24" type="STRING" size="256" sumtext="진료일25"/>
  293. <Column id="col25" type="STRING" size="256" sumtext="진료일26"/>
  294. <Column id="col26" type="STRING" size="256" sumtext="진료일27"/>
  295. <Column id="col27" type="STRING" size="256" sumtext="진료일28"/>
  296. <Column id="col28" type="STRING" size="256" sumtext="진료일29"/>
  297. <Column id="col29" type="STRING" size="256" sumtext="진료일30"/>
  298. </ColumnInfo>
  299. </Dataset>
  300. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  301. <ColumnInfo>
  302. <Column id="cnstioflag" type="STRING" size="256"/>
  303. </ColumnInfo>
  304. <Rows>
  305. <Row/>
  306. </Rows>
  307. </Dataset>
  308. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  309. <ColumnInfo>
  310. <Column id="cnstflag" type="STRING" size="256" sumtext="컨설트구분"/>
  311. <Column id="ioflag" type="STRING" size="256" sumtext="내원구분"/>
  312. </ColumnInfo>
  313. <Rows>
  314. <Row/>
  315. </Rows>
  316. </Dataset>
  317. <Dataset id="ds_send2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  318. <ColumnInfo>
  319. <Column id="orddeptcd" type="STRING" size="256" sumtext="부서코드"/>
  320. <Column id="fromdd" type="STRING" size="256" sumtext="시작일"/>
  321. <Column id="todd" type="STRING" size="256" sumtext="종료일"/>
  322. <Column id="cnstioflag" type="STRING" size="256" sumtext="외래입원구분"/>
  323. <Column id="cnstdeptcd" type="STRING" size="256"/>
  324. <Column id="cnstdeptnm" type="STRING" size="256"/>
  325. <Column id="formcd" type="STRING" size="256"/>
  326. </ColumnInfo>
  327. <Rows>
  328. <Row>
  329. <Col id="orddeptcd"/>
  330. <Col id="fromdd"/>
  331. <Col id="todd"/>
  332. <Col id="cnstioflag"/>
  333. <Col id="cnstdeptcd"/>
  334. <Col id="cnstdeptnm"/>
  335. <Col id="formcd"/>
  336. </Row>
  337. </Rows>
  338. </Dataset>
  339. <Dataset id="ds_depthrcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  340. <Dataset id="ds_reqsuspend" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  341. <ColumnInfo>
  342. <Column id="orddrid" type="STRING" size="256" sumtext="수신의"/>
  343. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료부서"/>
  344. <Column id="orddd" type="STRING" size="256" sumtext="진료일시"/>
  345. </ColumnInfo>
  346. <Rows>
  347. <Row/>
  348. </Rows>
  349. </Dataset>
  350. <Dataset id="ds_suspendinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  351. <ColumnInfo>
  352. <Column id="spndyn" type="STRING" size="256" sumtext="휴진여부"/>
  353. <Column id="description" type="STRING" size="256" sumtext="컨설트부서명"/>
  354. </ColumnInfo>
  355. </Dataset>
  356. <Dataset id="ds_grd_endresn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  357. <ColumnInfo>
  358. <Column id="orddrid" type="STRING" size="256" sumtext="진료의사id"/>
  359. <Column id="orddrnm" type="STRING" size="256" sumtext="진료의사명"/>
  360. <Column id="orddrextnnm" type="STRING" size="256" sumtext="진료의사확장명"/>
  361. <Column id="orddd" type="STRING" size="256" sumtext="진료일"/>
  362. <Column id="ampmflag" type="STRING" size="256" sumtext="오전오후구분"/>
  363. <Column id="ampmflagnm" type="STRING" size="256" sumtext="오전오후구분명"/>
  364. <Column id="ordendresnnm" type="STRING" size="256" sumtext="휴진사유"/>
  365. </ColumnInfo>
  366. </Dataset>
  367. <Dataset id="ds_grd_drschlist_header" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  368. <ColumnInfo>
  369. <Column id="orddrid" type="STRING" size="256" sumtext="진료의사id"/>
  370. <Column id="orddrnm" type="STRING" size="256" sumtext="진료의사명"/>
  371. <Column id="orddrextnnm" type="STRING" size="256" sumtext="진료의사확장명"/>
  372. <Column id="ordfild" type="STRING" size="256" sumtext="진료분야"/>
  373. <Column id="col0" type="STRING" size="256" sumtext="진료일1"/>
  374. <Column id="col1" type="STRING" size="256" sumtext="진료일2"/>
  375. <Column id="col2" type="STRING" size="256" sumtext="진료일3"/>
  376. <Column id="col3" type="STRING" size="256" sumtext="진료일4"/>
  377. <Column id="col4" type="STRING" size="256" sumtext="진료일5"/>
  378. <Column id="col5" type="STRING" size="256" sumtext="진료일6"/>
  379. <Column id="col6" type="STRING" size="256" sumtext="진료일7"/>
  380. <Column id="col7" type="STRING" size="256" sumtext="진료일8"/>
  381. <Column id="col8" type="STRING" size="256" sumtext="진료일9"/>
  382. <Column id="col9" type="STRING" size="256" sumtext="진료일10"/>
  383. <Column id="col10" type="STRING" size="256" sumtext="진료일11"/>
  384. <Column id="col11" type="STRING" size="256" sumtext="진료일12"/>
  385. <Column id="col12" type="STRING" size="256" sumtext="진료일13"/>
  386. <Column id="col13" type="STRING" size="256" sumtext="진료일14"/>
  387. <Column id="col14" type="STRING" size="256" sumtext="진료일15"/>
  388. <Column id="col15" type="STRING" size="256" sumtext="진료일16"/>
  389. <Column id="col16" type="STRING" size="256" sumtext="진료일17"/>
  390. <Column id="col17" type="STRING" size="256" sumtext="진료일18"/>
  391. <Column id="col18" type="STRING" size="256" sumtext="진료일19"/>
  392. <Column id="col19" type="STRING" size="256" sumtext="진료일20"/>
  393. <Column id="col20" type="STRING" size="256" sumtext="진료일21"/>
  394. <Column id="col21" type="STRING" size="256" sumtext="진료일22"/>
  395. <Column id="col22" type="STRING" size="256" sumtext="진료일23"/>
  396. <Column id="col23" type="STRING" size="256" sumtext="진료일24"/>
  397. <Column id="col24" type="STRING" size="256" sumtext="진료일25"/>
  398. <Column id="col25" type="STRING" size="256" sumtext="진료일26"/>
  399. <Column id="col26" type="STRING" size="256" sumtext="진료일27"/>
  400. <Column id="col27" type="STRING" size="256" sumtext="진료일28"/>
  401. <Column id="col28" type="STRING" size="256" sumtext="진료일29"/>
  402. <Column id="col29" type="STRING" size="256" sumtext="진료일30"/>
  403. </ColumnInfo>
  404. </Dataset>
  405. </Objects>
  406. <Bind>
  407. <BindItem id="item0" compid="grup_cnst1.rdo_cnstioflag" propid="value" datasetid="ds_init" columnid="cnstioflag"/>
  408. </Bind>
  409. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  410. * System Name :
  411. * Job Name :
  412. * Creator :
  413. * Make Date : 2014-10-15
  414. * Description :
  415. *---------------------------------------------------------------------------------------
  416. * Modify Date Modifier Modify Description
  417. *---------------------------------------------------------------------------------------
  418. * 2014-10-15 Live Converter TF->XP
  419. *
  420. *---------------------------------------------------------------------------------------
  421. ****************************************************************************************/
  422. include "com_commonxp::comm_main.xjs";
  423. include "emr_prcpmngtxp::MMO001.xjs";
  424. var arErrorCode = new HashArray();
  425. var cnstflag = "";
  426. var selectedIndex = -1;
  427. var HEADER_ROW = 0;
  428. function SPMMR03900_oninit(obj:Form, e:InitEventInfo)
  429. {
  430. frmf_initForm(obj);
  431. }
  432. function SPMMR03900_onload(obj:Form, e:LoadEventInfo)
  433. {
  434. fInitalize();
  435. }
  436. function grup_cnst1_rdo_cnstioflag_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  437. {
  438. }
  439. function grup_cnst1_button102_onclick(obj:Button, e:ClickEventInfo)
  440. {
  441. fCalMonth("prev");
  442. }
  443. function grup_cnst1_button103_onclick(obj:Button, e:ClickEventInfo)
  444. {
  445. fCalMonth("next");
  446. }
  447. function grup_cnst1_grd_deptlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  448. {
  449. if(e.row > -1) //그리드에서 데이타영역만
  450. fClickDeptList();
  451. }
  452. function grup_cnst1_grd_drschlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  453. {
  454. fClickSchList(e.row, e.col);
  455. }
  456. function ds_grd_drschlist_onrowposchanged(obj:Dataset, e:DSRowPosChangeEventInfo)
  457. {
  458. fClickDrNm(obj.rowposition);
  459. }
  460. function grup_cnst3_grd_cnstlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  461. {
  462. if(e.row > -1)
  463. fClickCnstList(e.row);
  464. }
  465. function grup_cnst3_button12_onclick(obj:Button, e:ClickEventInfo)
  466. {
  467. fClickCnstList(ds_cnstformlist.rowposition);
  468. }
  469. function grup_cnst1_btn_bottom_onclick(obj:Button, e:ClickEventInfo)
  470. {
  471. grup_cnst1.grd_drschlist.position.height = 660;
  472. grup_cnst1.btn_fold.visible = true;
  473. }
  474. function grup_cnst1_btn_fold_onclick(obj:Button, e:ClickEventInfo)
  475. {
  476. grup_cnst1.grd_drschlist.position.height = 460;
  477. grup_cnst1.btn_fold.visible = false;
  478. }
  479. /**
  480. * @desc : 화면초기화
  481. * @id :
  482. * @event : xforms-ready
  483. * @return : void
  484. * @authur : 박종훈
  485. */
  486. function fInitalize()
  487. {
  488. cnstflag = opener.frmf_getParameter("MMR05000_cnstflag");
  489. grup_cnst3.position.x = 0;
  490. if (cnstflag == "1")
  491. {
  492. var ioflag = opener.ds_result_paminfo.getColumn(0, "ioflag");
  493. grup_cnst3.position.width = 0;
  494. grup_cnst3.position.height = 0;
  495. grup_cnst1.visible = true;
  496. if (ioflag == "I" || ioflag == "E" || ioflag == "D")
  497. {
  498. grup_cnst1.rdo_cnstioflag.visible = true;
  499. ioflag = "I";
  500. }
  501. else
  502. {
  503. grup_cnst1.rdo_cnstioflag.visible = false;
  504. ioflag = "O";
  505. }
  506. ds_init.setColumn(0, "cnstioflag", ioflag);
  507. parent.position.height = parseInt(grup_cnst1.position.height) + 50;
  508. parent.position.width = parseInt(grup_cnst1.position.width) + 24;
  509. }
  510. else if (cnstflag == "3")
  511. {
  512. grup_cnst1.position.width = 0;
  513. grup_cnst1.position.height = 0;
  514. grup_cnst3.visible = true;
  515. parent.position.height = parseInt(grup_cnst3.position.height) + 50;
  516. parent.position.width = parseInt(grup_cnst3.position.width) + 24;
  517. }
  518. ds_send.setColumn(0, "ioflag", ds_init.getColumn(0, "cnstioflag"));
  519. ds_send.setColumn(0, "cnstflag", cnstflag);
  520. var oParam = {};
  521. oParam.id = "TRMMR04902";
  522. oParam.service = "medirecapp.ExtnMediRec";
  523. oParam.method = "reqGetCnstFormList";
  524. oParam.inds = "req=ds_send";
  525. oParam.outds = "ds_cnstformlist=cnstform";
  526. oParam.async = true;
  527. oParam.callback = "cf_TRMMR04902";
  528. tranf_submit(oParam); //컨설트부서조회
  529. lf_gethardcdArrayList(new Array(
  530. "depthrcd|9902"
  531. ),
  532. new Array(
  533. "ds_depthrcd"
  534. )
  535. );
  536. }
  537. function cf_TRMMR04902(sSvcId, nErrorCode, sErrorMsg) {
  538. if(nErrorCode < 0) return;
  539. if(opener.opener.frmf_getParameter("opener_kind")=="koryo"){
  540. var nFindRow = ds_cnstformlist.findRow("cnstdeptcd", "2160000000");
  541. if( nFindRow > -1 ){
  542. ds_cnstformlist.rowposition = nFindRow;
  543. }
  544. fClickDeptList_koryo();
  545. opener.opener.frmf_clearParameter("opener_kind");
  546. }
  547. if( opener.frmf_getParameter("SPMMR03900_excnts") == "click" ){
  548. var nFindRow = ds_cnstformlist.findRow("cnstdeptcd", "2160000000");
  549. if( nFindRow > -1 ){
  550. ds_cnstformlist.rowposition = nFindRow;
  551. grup_cnst3.grd_cnstlist.vscrollbar.pos = nFindRow;
  552. }
  553. }
  554. }
  555. /**
  556. * @desc : 부서리스트 선택
  557. * @id :
  558. * @event : ondblclick
  559. * @return : void
  560. * @authur : 박종훈
  561. */
  562. function fClickDeptList()
  563. {
  564. selectedIndex = ds_cnstformlist.rowposition;
  565. //var deptcd = model.getValue("/root/main/deptlist/dept[" + grd_deptlist.row + "]deptcd");
  566. var deptcd = ds_cnstformlist.getColumn(ds_cnstformlist.rowposition, "cnstdeptcd");
  567. var cnstflag = ds_cnstformlist.getColumn(ds_cnstformlist.rowposition, "cnstflag");
  568. var fr_date = new Date();
  569. var to_date = new Date();
  570. to_date = to_date.getAddDate(29, "D");
  571. //2009-06-19 오후 8:38:58 강지훈 추가 : 특정과는 진료일정이없어도 모든 진료의를 보여주어야 한다.
  572. //lf_getHardCDList("N", 9902, null, ds_depthrcd);
  573. var cnstdeptcd = ds_cnstformlist.getColumn(ds_cnstformlist.rowposition, "cnstdeptcd");
  574. var seledtedDeptcd = ds_depthrcd.lookup("hardcd", cnstdeptcd, "hardcd");
  575. var cnstioflag = "";
  576. if(utlf_isNull(seledtedDeptcd)){
  577. cnstioflag = "O" //진료일정이 있는 의사만 보여준다.
  578. }
  579. else{
  580. cnstioflag = "I" //진료일정이 없는 의사까지 모두 보여준다.
  581. }
  582. //SR#20190627013 로 대체
  583. // if( sysf_getUserInfo("dutplceinstcd") == "032" && cnstdeptcd == "2160000000" ){
  584. // sysf_messageBox("[지원부서의뢰신규] 의 영상의학 의뢰로 진행하셔야 합니다.( 문의:3371 영상의학센터)","I");
  585. // opener.frmf_setParameter("SPMMR03900_deptnm" , "");
  586. // opener.frmf_setParameter("SPMMR03900_excnts" , "Y");
  587. // this.close();
  588. // }
  589. //alert("fr_date:"+fr_date.getDateFormat());
  590. //alert("to_date:"+to_date.getDateFormat());
  591. ds_send2.setColumn(0, "orddeptcd", deptcd);
  592. ds_send2.setColumn(0, "fromdd", fr_date.getDateFormat());
  593. ds_send2.setColumn(0, "todd", to_date.getDateFormat());
  594. ds_send2.setColumn(0, "cnstdeptcd", cnstdeptcd );
  595. ds_send2.setColumn(0, "cnstdeptnm", ds_cnstformlist.getColumn(ds_cnstformlist.rowposition, "cnstdeptnm") );
  596. ds_send2.setColumn(0, "formcd", ds_cnstformlist.getColumn(ds_cnstformlist.rowposition, "formcd") );
  597. ds_send2.setColumn(0, "cnstioflag", cnstioflag);
  598. grup_cnst1.grd_drschlist.enableredraw = false;
  599. var oParam = {};
  600. oParam.id = "TRMMR03901";
  601. oParam.service = "medirecapp.ExtnMediRec";
  602. oParam.method = "reqGetDrSchList";
  603. oParam.inds = "req=ds_send2";
  604. oParam.outds = "ds_grd_drschlist=drschlist ds_endresnlist=endresnlist";
  605. oParam.async = true;
  606. oParam.callback = "cf_TRMMR03901";
  607. tranf_submit(oParam);
  608. }
  609. function cf_TRMMR03901(sSvcId, nErrorCode, sErrorMsg) {
  610. if(nErrorCode > -1) {
  611. // grup_cnst1.grd_drschlist.setRealRowSize(0, 0);
  612. // grup_cnst1.grd_drschlist.setRealRowSize(1, 0);
  613. // grup_cnst1.grd_drschlist.setRealRowSize(2, 0);
  614. ds_grd_drschlist_header.clearData();
  615. for(var i = 0; i < 3; i++) {
  616. ds_grd_drschlist_header.addRow();
  617. ds_grd_drschlist_header.copyRow(i, ds_grd_drschlist, i);
  618. }
  619. utlf_addLog(ds_grd_drschlist_header.saveXML());
  620. ds_grd_drschlist.deleteRow(2);
  621. ds_grd_drschlist.deleteRow(1);
  622. ds_grd_drschlist.deleteRow(0);
  623. var headerCnt = grup_cnst1.grd_drschlist.getCellCount("Head");
  624. for(var i = 0; i < headerCnt; i++) {
  625. var colName = lf_getBindCellName(grup_cnst1.grd_drschlist, i);
  626. grup_cnst1.grd_drschlist.setCellProperty("head", i, "text", ds_grd_drschlist_header.getColumn(2, colName));
  627. }
  628. }
  629. grup_cnst1.grd_drschlist.enableredraw = true;
  630. }
  631. /**
  632. * @desc : 재활고려서식을 위한 함수
  633. */
  634. function fClickDeptList_koryo()
  635. {
  636. if(ds_cnstformlist.rowcount > 0) //그리드에서 데이타영역만
  637. {
  638. selectedIndex = ds_cnstformlist.rowposition;
  639. //var deptcd = model.getValue("/root/main/deptlist/dept[" + grd_deptlist.row + "]deptcd");
  640. var deptcd = ds_cnstformlist.getColumn(ds_cnstformlist.rowposition, "cnstdeptcd");
  641. var cnstflag = ds_cnstformlist.getColumn(ds_cnstformlist.rowposition, "cnstflag");
  642. var fr_date = new Date();
  643. var to_date = new Date();
  644. to_date = to_date.getAddDate(29, "D");
  645. //2009-06-19 오후 8:38:58 강지훈 추가 : 특정과는 진료일정이없어도 모든 진료의를 보여주어야 한다.
  646. //lf_getHardCDList("N", 9902, null, ds_depthrcd);
  647. var cnstdeptcd = ds_cnstformlist.getColumn(ds_cnstformlist.rowposition, "cnstdeptcd");
  648. var seledtedDeptcd = ds_depthrcd.lookup("hardcd", cnstdeptcd, "hardcd");
  649. var cnstioflag = "";
  650. if(utlf_isNull(seledtedDeptcd)){
  651. cnstioflag = "O" //진료일정이 있는 의사만 보여준다.
  652. }
  653. else{
  654. cnstioflag = "I" //진료일정이 없는 의사까지 모두 보여준다.
  655. }
  656. //alert("fr_date:"+fr_date.getDateFormat());
  657. //alert("to_date:"+to_date.getDateFormat());
  658. ds_send2.setColumn(0, "orddeptcd", deptcd);
  659. ds_send2.setColumn(0, "fromdd", fr_date.getDateFormat());
  660. ds_send2.setColumn(0, "todd", to_date.getDateFormat());
  661. ds_send2.setColumn(0, "cnstdeptcd", cnstdeptcd );
  662. ds_send2.setColumn(0, "cnstdeptnm", ds_cnstformlist.getColumn(ds_cnstformlist.rowposition, "cnstdeptnm") );
  663. ds_send2.setColumn(0, "formcd", ds_cnstformlist.getColumn(ds_cnstformlist.rowposition, "formcd") );
  664. ds_send2.setColumn(0, "cnstioflag", cnstioflag);
  665. grup_cnst1.grd_drschlist.enableredraw = false;
  666. var oParam = {};
  667. oParam.id = "TRMMR03901";
  668. oParam.service = "medirecapp.ExtnMediRec";
  669. oParam.method = "reqGetDrSchList";
  670. oParam.inds = "req=ds_send2";
  671. oParam.outds = "ds_grd_drschlist=drschlist ds_endresnlist=endresnlist";
  672. oParam.async = true;
  673. oParam.callback = "cf_TRMMR03901";
  674. tranf_submit(oParam);
  675. }
  676. }
  677. /**
  678. * @desc : 일정별 색상 설정
  679. * @id :
  680. * @event : ondblclick
  681. * @return : void
  682. * @authur : 박종훈
  683. */
  684. function fSetGrdColor(type, currow, text) {
  685. var color = "default";
  686. if(type == "font") {
  687. if(currow == HEADER_ROW) {
  688. var value = lf_getDsValue(ds_grd_drschlist_header, HEADER_ROW, text);
  689. if (value == "4")
  690. color = "#3366ff"; //토요일
  691. else if (value == "8")
  692. color = "#ff0000"; //일요일
  693. else
  694. color = "#4d4d4d";
  695. }
  696. } else {
  697. if(currow > HEADER_ROW) {
  698. var value = lf_getDsValue(ds_grd_drschlist, currow, text);
  699. if (value == "오전")
  700. color = "#ffff99";
  701. else if (value == "오후")
  702. color = "#ccffff";
  703. else if (value == "전일")
  704. color = "#ffcc99";
  705. else if (value.substr(0, 2) == "휴진")
  706. color = "#3366ff";
  707. else if (value == "마감")
  708. color = "#999999";
  709. else
  710. color = "#ffffff";
  711. } else {
  712. color = "#ffffff";
  713. }
  714. }
  715. return color;
  716. }
  717. /**
  718. * @desc : 타과의뢰 선택
  719. * @id :
  720. * @event : ondblclick
  721. * @return : void
  722. * @authur : 박종훈
  723. */
  724. function fClickCnstList(row)
  725. {
  726. var formcd = ds_cnstformlist.getColumn(row, "formcd");
  727. var formnm = ds_cnstformlist.getColumn(row, "formnm");
  728. var deptcd = ds_cnstformlist.getColumn(row, "cnstdeptcd");
  729. var deptnm = ds_cnstformlist.getColumn(row, "cnstdeptnm");
  730. var replflag = ds_cnstformlist.getColumn(row, "replflag");
  731. var cnstflag = "3";
  732. opener.frmf_setParameter("SPMMR03900_formcd" , formcd);
  733. opener.frmf_setParameter("SPMMR03900_deptcd" , deptcd);
  734. opener.frmf_setParameter("SPMMR03900_deptnm" , deptnm);
  735. opener.frmf_setParameter("SPMMR03900_cnstflag" , cnstflag);
  736. opener.frmf_setParameter("SPMMR03900_formnm" , formnm);
  737. opener.frmf_setParameter("SPMMR03900_replflag" , replflag);
  738. // 컨설트 관련 추가
  739. //opener.frmf_setParameter("SPMMR03900_mainyn" , "N");
  740. //opener.frmf_fOpenCnstForm(formcd, deptcd, deptnm, "", "", "", cnstflag, formnm, replflag);
  741. close();
  742. }
  743. /**
  744. * @desc : 다음달, 이전달
  745. * @id :
  746. * @event : ondblclick
  747. * @return : void
  748. * @authur : 박종훈
  749. */
  750. function fCalMonth(tmp)
  751. {
  752. var tmp_fr_date = ds_send2.getColumn(0, "fromdd").toDate();
  753. var tmp_to_date = ds_send2.getColumn(0, "todd").toDate();
  754. if (tmp == "prev")
  755. {
  756. var fr_date = tmp_fr_date.getAddDate(-30, "D");
  757. var to_date = tmp_to_date.getAddDate(-30, "D");
  758. }
  759. else
  760. {
  761. var fr_date = tmp_fr_date.getAddDate(30, "D");
  762. var to_date = tmp_to_date.getAddDate(30, "D");
  763. }
  764. ds_send2.setColumn(0, "fromdd", fr_date.getDateFormat());
  765. ds_send2.setColumn(0, "todd", to_date.getDateFormat());
  766. grup_cnst1.grd_drschlist.enableredraw = false;
  767. var oParam = {};
  768. oParam.id = "TRMMR03901";
  769. oParam.service = "medirecapp.ExtnMediRec";
  770. oParam.method = "reqGetDrSchList";
  771. oParam.inds = "req=ds_send2";
  772. oParam.outds = "ds_grd_drschlist=drschlist ds_endresnlist=endresnlist";
  773. oParam.async = true;
  774. oParam.callback = "cf_TRMMR03901";
  775. tranf_submit(oParam);
  776. // if(submit("TRMMR03901"))
  777. // {
  778. // grd_drschlist.rowheight(1) = 0;
  779. // fSetGrdColor();
  780. // }
  781. }
  782. /**
  783. * @desc : 의사 선택(휴진일정 셋팅)
  784. * @id :
  785. * @event : ondblclick
  786. * @return : void
  787. * @authur : 박종훈
  788. */
  789. function fClickDrNm(row)
  790. {
  791. if (row > HEADER_ROW) {
  792. var drid = ds_grd_drschlist.getColumn(row, "orddrid");
  793. var orddrnm = ds_grd_drschlist.getColumn(row, "orddrnm");
  794. grup_cnst1.caption3.text = orddrnm+" 선생님 휴진/마감 사유";
  795. ds_endresnlist.filter("orddrid == '" + drid + "' && !utlf_isNull(ordendresnnm)");
  796. ds_grd_endresn.copyData(ds_endresnlist, true);
  797. ds_endresnlist.filter("");
  798. ds_grd_endresn.rowposition = -1;
  799. }
  800. }
  801. /**
  802. * @group :
  803. * @ver : 2008.06.13
  804. * @by : snoweye
  805. * @---------------------------------------------------
  806. * @type : function
  807. * @access : private
  808. * @desc : 의뢰의사를 선택한다.
  809. * @param :
  810. * @return :
  811. * @---------------------------------------------------
  812. */
  813. function fClickSchList(row, col)
  814. {
  815. if (!fGetSuspendDiagInfo())
  816. return;
  817. if (col > 3 && row > HEADER_ROW)
  818. {
  819. var drid = ds_grd_drschlist.getColumn(row, "orddrid");
  820. var cnstflag = "1";
  821. //2013/01/23 Start 원무팀의 외래 컨설트 hopedd 사용 할 수 있도록 수정
  822. var orddd = ds_grd_drschlist_header.getColumn(1, lf_getBindCellName(grup_cnst1.grd_drschlist, col)); // var day_rowno = 1;
  823. //var orddd = getCurrentDate();
  824. //2012/01/23 End
  825. if (!utlf_isNull(orddd))
  826. {
  827. if (orddd < utlf_getCurrentDate())
  828. {
  829. sysf_messageBox("과거일로 의뢰할 수", "I004");
  830. return;
  831. }
  832. else
  833. {
  834. var deptcd = ds_send2.getColumn(0, "cnstdeptcd");
  835. var deptnm = ds_send2.getColumn(0, "cnstdeptnm");
  836. var formcd = ds_send2.getColumn(0, "formcd");
  837. var reqdeptno = ds_cnstformlist.getColumn(selectedIndex, "reqdeptno");
  838. var drnm = ds_grd_drschlist.getColumn(row, "orddrnm");
  839. //선택된 진료의 정보를 부모창에 전달한다.
  840. opener.frmf_setParameter("SPMMR03900_formcd" , formcd);
  841. opener.frmf_setParameter("SPMMR03900_deptcd" , deptcd);
  842. opener.frmf_setParameter("SPMMR03900_deptnm" , deptnm);
  843. opener.frmf_setParameter("SPMMR03900_drid" , drid);
  844. opener.frmf_setParameter("SPMMR03900_drnm" , drnm);
  845. opener.frmf_setParameter("SPMMR03900_orddd" , orddd);
  846. opener.frmf_setParameter("SPMMR03900_cnstflag" , cnstflag);
  847. opener.frmf_setParameter("SPMMR03900_reqdeptno" , reqdeptno);
  848. opener.frmf_setParameter("SPMMR03900_cnstioflag", ds_init.getColumn(0, "cnstioflag"));
  849. // 컨설트 관련 추가
  850. opener.frmf_setParameter("SPMMR03900_mainyn" , "Y");
  851. close();
  852. }
  853. }
  854. }
  855. }
  856. /**
  857. * 선택한 수신의의 휴진 정보 조회
  858. */
  859. function fGetSuspendDiagInfo() {
  860. ds_reqsuspend.clearData();
  861. ds_reqsuspend.addRow();
  862. ds_reqsuspend.setColumn(0, "orddeptcd", ds_send2.getColumn(0, "cnstdeptcd"));
  863. ds_reqsuspend.setColumn(0, "orddrid", ds_grd_drschlist.getColumn(ds_grd_drschlist.rowposition, "orddrid"));
  864. var oParam = {};
  865. oParam.id = "TRMMR04905";
  866. oParam.service = "medirecapp.ExtnMediRec";
  867. oParam.method = "reqGetSuspendDiagInfo";
  868. oParam.inds = "req=ds_reqsuspend";
  869. oParam.outds = "ds_suspendinfo=suspendinfo";
  870. oParam.async = false;
  871. oParam.callback = "cf_TRMMR04905";
  872. tranf_submit(oParam);
  873. if(arErrorCode.pop("TRMMR04905") >= 0){
  874. if (ds_suspendinfo.getColumn(0, "spndyn") == "Y") {
  875. var sDrNm = ds_grd_drschlist.getColumn(ds_grd_drschlist.rowposition, "orddrnm");
  876. if (sysf_messageBox("["+sDrNm+"] 선생님의 휴진정보입니다. \n\n"+
  877. ds_suspendinfo.getColumn(0, "description")+"\n\n의뢰하시겠습니까?", "Q", "") == 7) {
  878. return;
  879. }
  880. }
  881. }
  882. return true;
  883. }
  884. function cf_TRMMR04905(sSvcId, nErrorCode, sErrorMsg) {
  885. arErrorCode.push(sSvcId, nErrorCode);
  886. }
  887. ]]></Script>
  888. </Form>
  889. </FDL>