SMRSM01600_특별관리 물질접수관리.xfdl 54 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRSM1600" position="absolute 0 0 1211 804" titletext="특별관리 물질 접수 관리" oninit="SMRSM1600_oninit" onload="SMRSM1600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="특별관리 물질 접수 관리" class="tit_1" position="absolute 0 0 204 25"/>
  8. <Tab id="switch1" taborder="1" tabindex="0" position="absolute 0 29 1195 793" anchor="all">
  9. <Tabpages>
  10. <Tabpage id="case_acpt" text="접수">
  11. <Layouts>
  12. <Layout>
  13. <Static id="caption35" text="부서별 특별물질 내역" class="tit_2" position="absolute 0 75 173 96"/>
  14. <Shape id="line2" linetype="horizontal" class="line_10" position="absolute 0 93 1195 99" anchor="left top right"/>
  15. <Grid id="grd_matracptlist" taborder="22" binddataset="ds_main_matrlist" useinputpanel="false" position="absolute 0 98 1195 728" autoenter="select" cellsizingtype="col" anchor="all" selecttype="multirow" tooltiptype="hover" oncellclick="switch1_case_acpt_grd_matracptlist_oncellclick">
  16. <Formats>
  17. <Format id="default">
  18. <Columns>
  19. <Column size="22"/>
  20. <Column size="63"/>
  21. <Column size="81"/>
  22. <Column size="87"/>
  23. <Column size="58"/>
  24. <Column size="159"/>
  25. <Column size="74"/>
  26. <Column size="94"/>
  27. <Column size="91"/>
  28. <Column size="110"/>
  29. <Column size="358"/>
  30. <Column size="0"/>
  31. </Columns>
  32. <Rows>
  33. <Row size="24" band="head"/>
  34. <Row size="24" band="head"/>
  35. <Row size="80"/>
  36. <Row size="80"/>
  37. </Rows>
  38. <Band id="head">
  39. <Cell rowspan="2" taborder="undefined"/>
  40. <Cell col="1" rowspan="2" text="처리내역" taborder="undefined"/>
  41. <Cell col="2" text="진행상태"/>
  42. <Cell col="3" text="신청일자"/>
  43. <Cell col="4" text="신청번호"/>
  44. <Cell col="5" text="신청부서명 " taborder="undefined"/>
  45. <Cell col="6" text="신청자"/>
  46. <Cell col="7" colspan="3" text="작업내용" taborder="undefined"/>
  47. <Cell col="10" text="특이사항(비고)"/>
  48. <Cell col="11" text="instcd"/>
  49. <Cell row="1" col="2" text="물질코드"/>
  50. <Cell row="1" col="3" colspan="3" text="물질명" taborder="undefined"/>
  51. <Cell row="1" col="6" text="신청수량" taborder="undefined"/>
  52. <Cell row="1" col="7" text="출고,반납수량" taborder="undefined"/>
  53. <Cell row="1" col="8" text="출고일자" taborder="undefined"/>
  54. <Cell row="1" col="9" text="출고자" taborder="undefined"/>
  55. <Cell row="1" col="10" text="병리비고(CTRL+ENTER시 다음줄에 기입가능)" taborder="undefined"/>
  56. <Cell row="1" col="11" text="gubun"/>
  57. </Band>
  58. <Band id="body">
  59. <Cell rowspan="2" celltype="head" taborder="undefined"/>
  60. <Cell col="1" displaytype="combo" edittype="expr:gubun == '03'||gubun == '04' ||gubun == '05' ? 'none': 'combo'" style="align:center middle;line:1 dotted #808080ff,1 dotted #808080ff,1 solid #808080ff,1 dotted #808080ff;background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);color:fuchsia;color2:fuchsia;font:돋움,9,bold;controlbackground:EXPR(gubun == '03' || gubun == '04' ||gubun == '05' ? 'lightgrey': '');" text="bind:flag" taborder="undefined" combodataset="ds_cmb_cmfyn" combocodecol="value" combodatacol="label"/>
  61. <Cell col="2" style="align:center middle;line:1 dotted #808080ff ;background:BIND(colBack);background2:BIND(colBack);font:굴림,9,bold;" text="bind:gubunnm"/>
  62. <Cell col="3" displaytype="date" style="line:1 dotted #808080ff ;background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:reqdd"/>
  63. <Cell col="4" style="line:1 dotted #808080ff ;background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:reqno"/>
  64. <Cell col="5" style="align:center middle;padding:4 2 2 2;line:1 dotted #808080ff ;background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:reqdeptnm" wordwrap="word"/>
  65. <Cell col="6" style="align:center middle;padding:4 2 2 2;line:1 dotted #808080ff ;background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:reqnm" wordwrap="word" tooltiptext="bind:goodcntnm"/>
  66. <Cell col="7" colspan="3" style="line:1 dotted #808080ff ;background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:workcnts" taborder="undefined"/>
  67. <Cell col="10" style="align:left middle;line:1 solid #808080ff,1 solid #808080ff,1 dotted #808080ff,1 dotted #808080ff;background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:deptcmt"/>
  68. <Cell col="11" style="background2:lightgrey;" text="bind:instcd"/>
  69. <Cell row="1" col="1" style="line:1 dotted #808080ff,1 dotted #808080ff,1 solid #808080ff,1 dotted #808080ff;background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" taborder="undefined"/>
  70. <Cell row="1" col="2" style="line:1 dotted #808080ff,1 dotted #808080ff,1 solid #808080ff,1 dotted #808080ff;background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:matrcd"/>
  71. <Cell row="1" col="3" colspan="3" style="line:1 dotted #808080ff,1 dotted #808080ff,1 solid #808080ff,1 dotted #808080ff;background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:matrnm" taborder="undefined"/>
  72. <Cell row="1" col="6" style="line:1 dotted #808080ff,1 dotted #808080ff,1 solid #808080ff,1 dotted #808080ff;background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);font:굴림,9,bold;" text="bind:reqqty" taborder="undefined"/>
  73. <Cell row="1" col="7" displaytype="number" edittype="masknumber" style="align:center;line:1 dotted #808080ff,1 dotted #808080ff,1 solid #808080ff,1 dotted #808080ff;background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);color:crimson;color2:crimson;font:굴림,9,bold;" text="bind:deliveqty" mask="#,##0" taborder="undefined"/>
  74. <Cell row="1" col="8" displaytype="date" style="line:1 dotted #808080ff,1 dotted #808080ff,1 solid #808080ff,1 dotted #808080ff;background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:delivedd" taborder="undefined" calendardisplaynulltype="none"/>
  75. <Cell row="1" col="9" style="line:1 dotted #808080ff,1 dotted #808080ff,1 solid #808080ff,1 dotted #808080ff;background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:delivenm" taborder="undefined"/>
  76. <Cell row="1" col="10" displaytype="text" edittype="textarea" style="line:1 dotted #808080ff,1 solid #808080ff,1 solid #808080ff,1 dotted #808080ff;background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);color:crimson;color2:crimson;font:굴림,9,bold;" text="bind:pathcmt" taborder="undefined"/>
  77. <Cell row="1" col="11" style="background2:lightgrey;" text="bind:gubun"/>
  78. </Band>
  79. </Format>
  80. </Formats>
  81. </Grid>
  82. <Div id="grp_sea" anchor="left top right" taborder="31" class="div_SA2" position="absolute 0 0 1193 65">
  83. <Layouts>
  84. <Layout>
  85. <Button id="btn_sea" taborder="28" text="조회" onclick="switch1_case_compare_grp_sea_btn_sea_onclick" class="btn1" position="absolute 1114 19 1170 41" anchor="top right"/>
  86. <Static id="caption00" text="기관코드 :" class="search_name" position="absolute 21 8 95 25" anchor="left top" style="align:left middle;"/>
  87. <Static id="caption7" text="진행상태 :" class="search_name" position="absolute 22 36 105 53" anchor="left top"/>
  88. <Radio id="rdo_gubun" taborder="29" columncount="6" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 96 34 498 54" anchor="default">
  89. <Dataset id="innerdataset">
  90. <ColumnInfo>
  91. <Column id="codecolumn" size="256"/>
  92. <Column id="datacolumn" size="256"/>
  93. </ColumnInfo>
  94. <Rows>
  95. <Row>
  96. <Col id="codecolumn">01</Col>
  97. <Col id="datacolumn">신청</Col>
  98. </Row>
  99. <Row>
  100. <Col id="codecolumn">02</Col>
  101. <Col id="datacolumn">반납</Col>
  102. </Row>
  103. <Row>
  104. <Col id="codecolumn">03</Col>
  105. <Col id="datacolumn">예외</Col>
  106. </Row>
  107. <Row>
  108. <Col id="codecolumn">04</Col>
  109. <Col id="datacolumn">보류</Col>
  110. </Row>
  111. <Row>
  112. <Col id="codecolumn">05</Col>
  113. <Col id="datacolumn">승인</Col>
  114. </Row>
  115. </Rows>
  116. </Dataset>
  117. </Radio>
  118. <Combo id="cmb_instcd" taborder="30" class="combo_default" enable="false" position="absolute 99 7 249 26" anchor="default"/>
  119. <Static id="caption02" text="부서코드 :" class="search_name" position="absolute 284 10 360 27" anchor="default"/>
  120. <Edit id="ipt_mngtdeptcd_search" taborder="31" autoselect="true" autoskip="true" enable="false" position="absolute 365 9 440 28" anchor="default" onkillfocus="switch1_case_acpt_grp_sea_ipt_mngtdeptcd_search_onkillfocus"/>
  121. <Button id="btn_mngtdeptcd_search" taborder="32" class="icon_search" enable="false" position="absolute 444 10 460 26" anchor="default" onclick="switch1_case_acpt_grp_sea_btn_mngtdeptcd_search_onclick"/>
  122. <Edit id="ipt_mngtdeptnm_search" taborder="33" readonly="true" class="output" position="absolute 464 9 654 28" anchor="default"/>
  123. <Static id="caption14" text="조회기간 :" class="search_name" position="absolute 668 5 753 30" anchor="default"/>
  124. <Calendar id="ipt_srchchkfrdd" taborder="34" autoselect="true" autoskip="true" class="combo_default" position="absolute 745 7 848 26" anchor="default"/>
  125. <Calendar id="ipt_srchchktodd" taborder="35" autoselect="true" autoskip="true" class="combo_default" position="absolute 866 7 969 26" anchor="default"/>
  126. <Static id="caption42" text="~" position="absolute 851 8 866 28" anchor="default"/>
  127. <Edit id="opt_matrnm" taborder="36" readonly="true" class="output" position="absolute 821 35 1011 54" anchor="default"/>
  128. <Button id="btn_matrcd" taborder="37" class="icon_search" position="absolute 801 36 817 52" anchor="default" onclick="switch1_case_acpt_grp_sea_btn_matrcd_onclick"/>
  129. <Edit id="ipt_matrcd" taborder="38" autoselect="true" autoskip="true" class="input_default" position="absolute 747 35 792 54" anchor="default" onkillfocus="switch1_case_acpt_grp_sea_ipt_matrcd_onkillfocus"/>
  130. <Static id="caption01" text="물질코드 :" class="search_name" position="absolute 669 35 745 52" anchor="default"/>
  131. <Shape id="line5" linetype="vertical" class="line_4" position="absolute 1036 7 1080 57" anchor="top right"/>
  132. </Layout>
  133. </Layouts>
  134. </Div>
  135. <Button id="btn_save" taborder="32" text="처 리" onclick="switch1_case_compare_grp_sea_btn_save_onclick" class="btn5" position="absolute 1108 68 1192 90" anchor="left top right" style="align:center;font:dotum,9,bold;"/>
  136. <Static id="Static00" text="신청바코드 :" position="absolute 830 71 930 91" style="font:dotum,9,bold;" anchor="default"/>
  137. <Edit id="ipt_barcode" taborder="34" class="input_default" position="absolute 911 68 1101 91" style="background:lightpink URL('theme://images\bg_gridheadLine.png') stretch 5,5;border:1 solid #808080ff ;align:center;font:dotum,9,bold;" onkeydown="switch1_case_acpt_ipt_barcode_onkeydown" autoselect="true" oneditclick="switch1_case_acpt_ipt_barcode_oneditclick" anchor="default"/>
  138. <Static id="Static01" text="신청" position="absolute 166 70 201 91" style="background:#fef7c0ff;align:center;font:dotum,9,bold;"/>
  139. <Static id="Static02" text="반납" position="absolute 206 70 241 91" style="background:#d4d4ffff;align:center;font:dotum,9,bold;"/>
  140. <Static id="Static03" text="예외" position="absolute 246 70 281 91" style="background:#feccccff;align:center;font:dotum,9,bold;"/>
  141. <Static id="Static04" text="보류" position="absolute 286 70 321 91" style="background:paleturquoise;align:center;font:dotum,9,bold;"/>
  142. <Static id="Static05" text="승인" position="absolute 326 70 361 91" style="background:yellowgreen;align:center;font:dotum,9,bold;"/>
  143. <Div id="Div00" taborder="35" style="border:1 solid #808080ff ;font:dotum,9,bold;" position="absolute 160 67 432 93"/>
  144. <Static id="Static06" text="반납완료" position="absolute 366 70 424 91" style="background:moccasin;align:center;font:dotum,9,bold;"/>
  145. </Layout>
  146. </Layouts>
  147. </Tabpage>
  148. <Tabpage id="case_uselist" text="사용현황">
  149. <Layouts>
  150. <Layout>
  151. <Static id="caption7" text="특별관리물질 사용현황 내역" class="tit_2" position="absolute 0 72 215 95" visible="true"/>
  152. <Shape id="line3" linetype="horizontal" class="line_10" position="absolute 0 90 1195 96" anchor="left top right"/>
  153. <Static id="caption4" position="absolute 802 48 942 66" style="color:#0000ffff;font:돋움체,10,bold;"/>
  154. <Button id="btn_excel" taborder="27" text="엑셀" class="btn7" position="absolute 1130 70 1194 89" anchor="top right" onclick="switch1_case_uselist_btn_excel_onclick"/>
  155. <Div id="grp_sea" anchor="left top right" taborder="28" class="div_SA2" position="absolute 0 0 1193 65">
  156. <Layouts>
  157. <Layout>
  158. <Button id="btn_sea" taborder="39" text="조회" class="btn1" position="absolute 1114 19 1170 41" anchor="top right" onclick="switch1_case_uselist_grp_sea_btn_sea_onclick"/>
  159. <Static id="caption00" text="기관코드 :" class="search_name" position="absolute 21 8 95 25" anchor="left top" style="align:left middle;"/>
  160. <Static id="caption7" text="진행상태 :" class="search_name" position="absolute 22 36 105 53" anchor="left top"/>
  161. <Radio id="rdo_gubun" taborder="40" columncount="6" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 96 34 498 54">
  162. <Dataset id="innerdataset">
  163. <ColumnInfo>
  164. <Column id="codecolumn" size="256"/>
  165. <Column id="datacolumn" size="256"/>
  166. </ColumnInfo>
  167. <Rows>
  168. <Row>
  169. <Col id="codecolumn">01</Col>
  170. <Col id="datacolumn">신청</Col>
  171. </Row>
  172. <Row>
  173. <Col id="codecolumn">02</Col>
  174. <Col id="datacolumn">반납</Col>
  175. </Row>
  176. <Row>
  177. <Col id="codecolumn">03</Col>
  178. <Col id="datacolumn">예외</Col>
  179. </Row>
  180. <Row>
  181. <Col id="codecolumn">04</Col>
  182. <Col id="datacolumn">보류</Col>
  183. </Row>
  184. <Row>
  185. <Col id="codecolumn">05</Col>
  186. <Col id="datacolumn">승인</Col>
  187. </Row>
  188. </Rows>
  189. </Dataset>
  190. </Radio>
  191. <Combo id="cmb_instcd" taborder="41" class="combo_default" enable="false" position="absolute 99 7 249 26"/>
  192. <Static id="caption02" text="부서코드 :" class="search_name" position="absolute 284 10 360 27"/>
  193. <Edit id="ipt_mngtdeptcd_search" taborder="42" autoselect="true" autoskip="true" onkillfocus="switch1_case_acpt_grp_sea_ipt_mngtdeptcd_search_onkillfocus" enable="false" position="absolute 365 9 440 28"/>
  194. <Button id="btn_mngtdeptcd_search" taborder="43" onclick="switch1_case_acpt_grp_sea_btn_mngtdeptcd_search_onclick" class="icon_search" enable="false" position="absolute 444 10 460 26"/>
  195. <Edit id="ipt_mngtdeptnm_search" taborder="44" readonly="true" class="output" position="absolute 464 9 654 28"/>
  196. <Static id="caption14" text="조회기간 :" class="search_name" position="absolute 668 5 753 30"/>
  197. <Calendar id="ipt_srchchkfrdd" taborder="45" autoselect="true" autoskip="true" class="combo_default" position="absolute 745 7 848 26"/>
  198. <Calendar id="ipt_srchchktodd" taborder="46" autoselect="true" autoskip="true" class="combo_default" position="absolute 866 7 969 26"/>
  199. <Static id="caption42" text="~" position="absolute 851 8 866 28"/>
  200. <Edit id="opt_matrnm" taborder="47" readonly="true" class="output" position="absolute 821 35 1011 54"/>
  201. <Button id="btn_matrcd" taborder="48" class="icon_search" position="absolute 801 36 817 52" onclick="switch1_case_uselist_grp_sea_btn_matrcd_onclick"/>
  202. <Edit id="ipt_matrcd" taborder="49" autoselect="true" autoskip="true" onkillfocus="switch1_case_acpt_grp_sea_ipt_matrcd_onkillfocus" class="input_default" position="absolute 747 35 792 54"/>
  203. <Static id="caption01" text="물질코드 :" class="search_name" position="absolute 669 35 745 52"/>
  204. <Shape id="line5" linetype="vertical" class="line_4" position="absolute 1036 7 1080 57" anchor="top right"/>
  205. </Layout>
  206. </Layouts>
  207. </Div>
  208. <Grid id="grd_uselist" taborder="29" binddataset="ds_main_uselist" autoenter="select" useinputpanel="false" selecttype="multirow" cellsizingtype="col" oncellclick="switch1_case_acpt_grd_matracptlist_oncellclick" position="absolute 0 94 1195 724" anchor="all" tooltiptype="hover">
  209. <Formats>
  210. <Format id="default">
  211. <Columns>
  212. <Column size="22"/>
  213. <Column size="63"/>
  214. <Column size="81"/>
  215. <Column size="87"/>
  216. <Column size="58"/>
  217. <Column size="159"/>
  218. <Column size="59"/>
  219. <Column size="212"/>
  220. <Column size="61"/>
  221. <Column size="74"/>
  222. <Column size="94"/>
  223. <Column size="91"/>
  224. <Column size="50"/>
  225. <Column size="198"/>
  226. <Column size="0"/>
  227. <Column size="87"/>
  228. <Column size="84"/>
  229. <Column size="90"/>
  230. <Column size="186"/>
  231. <Column size="84"/>
  232. <Column size="63"/>
  233. <Column size="63"/>
  234. </Columns>
  235. <Rows>
  236. <Row size="24" band="head"/>
  237. <Row size="26"/>
  238. </Rows>
  239. <Band id="head">
  240. <Cell taborder="undefined"/>
  241. <Cell col="1" text="처리내역" taborder="undefined"/>
  242. <Cell col="2" text="진행상태"/>
  243. <Cell col="3" text="신청일자"/>
  244. <Cell col="4" text="신청번호"/>
  245. <Cell col="5" text="신청부서명 " taborder="undefined"/>
  246. <Cell col="6" text="물질코드"/>
  247. <Cell col="7" text="물질명"/>
  248. <Cell col="8" text="신청수량"/>
  249. <Cell col="9" text="신청자"/>
  250. <Cell col="10" colspan="3" text="작업내용" taborder="undefined"/>
  251. <Cell col="13" text="특이사항(비고)"/>
  252. <Cell col="14" text="instcd"/>
  253. <Cell col="15" text="출고,반납수량"/>
  254. <Cell col="16" text="출고일자"/>
  255. <Cell col="17" text="출고자"/>
  256. <Cell col="18" text="병리비고"/>
  257. <Cell col="19" text="확정일자"/>
  258. <Cell col="20" text="작성자명"/>
  259. <Cell col="21" text="확정자명"/>
  260. </Band>
  261. <Band id="body">
  262. <Cell celltype="head" text="expr:currow + 1" taborder="undefined"/>
  263. <Cell col="1" displaytype="combo" edittype="expr:gubun == '03'||gubun == '04' ||gubun == '05' ? 'none': 'combo'" style="align:center middle;background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);color:fuchsia;color2:fuchsia;font:돋움,9,bold;controlbackground:EXPR(gubun == '03' || gubun == '04' ||gubun == '05' ? 'lightgrey': '');" text="bind:flag" taborder="undefined" combodataset="ds_cmb_cmfyn" combocodecol="value" combodatacol="label"/>
  264. <Cell col="2" style="align:center middle;background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);font:굴림,9,bold;" text="bind:gubunnm"/>
  265. <Cell col="3" displaytype="date" style="background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:reqdd"/>
  266. <Cell col="4" style="background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:reqno"/>
  267. <Cell col="5" style="align:center middle;padding:4 2 2 2;background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:reqdeptnm" wordwrap="word"/>
  268. <Cell col="6" style="background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:matrcd"/>
  269. <Cell col="7" style="background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:matrnm"/>
  270. <Cell col="8" displaytype="number" edittype="masknumber" style="background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:reqqty" mask="#,##0"/>
  271. <Cell col="9" style="align:center middle;padding:4 2 2 2;background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:reqnm" wordwrap="word" tooltiptext="bind:goodcntnm"/>
  272. <Cell col="10" colspan="3" style="background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:workcnts" taborder="undefined" tooltiptext="bind:workcnts"/>
  273. <Cell col="13" style="align:left middle;background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:deptcmt" tooltiptext="bind:deptcmt"/>
  274. <Cell col="14" style="background2:lightgrey;" text="bind:instcd"/>
  275. <Cell col="15" displaytype="number" edittype="masknumber" style="background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:deliveqty" mask="#,##0"/>
  276. <Cell col="16" displaytype="date" style="background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:delivedd" calendardisplaynulltype="none"/>
  277. <Cell col="17" style="background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:delivenm"/>
  278. <Cell col="18" displaytype="text" edittype="textarea" style="background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:pathcmt" tooltiptext="bind:pathcmt"/>
  279. <Cell col="19" displaytype="date" style="background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:cnfmdt" calendardisplaynulltype="none"/>
  280. <Cell col="20" style="background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:writnm"/>
  281. <Cell col="21" style="background:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);background2:EXPR((currow%2 == 0) ? &quot;#ecebecff&quot; : &quot;#ffffffff&quot;);" text="bind:cnfmnm"/>
  282. </Band>
  283. </Format>
  284. </Formats>
  285. </Grid>
  286. </Layout>
  287. </Layouts>
  288. </Tabpage>
  289. </Tabpages>
  290. </Tab>
  291. <Div id="grp_matrinfo" anchor="top right" taborder="3" style="background:whitesmoke;bordertype:round 4 4 ;shadow:outer 4,4 4 gray;" class="div_SA3" visible="false" position="absolute 679 116 981 363">
  292. <Layouts>
  293. <Layout>
  294. <Grid id="grd_matrinfo" taborder="83" binddataset="ds_matrinfo" useinputpanel="false" cellsizingtype="col" autofittype="col" position="absolute 6 39 298 220" anchor="default" oncelldblclick="grp_matrinfo_grd_matrinfo_oncelldblclick">
  295. <Formats>
  296. <Format id="default">
  297. <Columns>
  298. <Column size="58"/>
  299. <Column size="235"/>
  300. </Columns>
  301. <Rows>
  302. <Row size="24" band="head"/>
  303. <Row size="24"/>
  304. </Rows>
  305. <Band id="head">
  306. <Cell text="물질코드"/>
  307. <Cell col="1" text="물질명"/>
  308. </Band>
  309. <Band id="body">
  310. <Cell text="bind:matrcd" tooltiptext="bind:custnm"/>
  311. <Cell col="1" text="bind:matrnm" tooltiptext="bind:cntctel"/>
  312. </Band>
  313. </Format>
  314. </Formats>
  315. </Grid>
  316. <Button id="btn_matrcancel" taborder="84" text="창닫기" onclick="grp_matrinfo_btn_matrcancel_onclick" class="btn2" position="absolute 238 223 294 245" anchor="default"/>
  317. <Static id="caption2" text="특별관리 물질" class="tit_2" position="absolute 12 8 218 24" anchor="default"/>
  318. <Shape id="line4" class="line_10" position="absolute 6 34 297 40" anchor="left top right"/>
  319. <Button id="btn_matrinfo" taborder="85" text="검색" class="btn1" visible="false" position="absolute 227 6 295 26" anchor="default" onclick="grp_matrinfo_btn_matrinfo_onclick"/>
  320. </Layout>
  321. </Layouts>
  322. </Div>
  323. <Static id="st_msg00" text="★ 전산문의 : T.4206" position="absolute 205 0 352 25" style="background:#edffceff;border:1 solid #808080ff ;color:midnightblue;align:center;font:돋움,9,bold;"/>
  324. </Layout>
  325. </Layouts>
  326. <Objects>
  327. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_oncolumnchanged">
  328. <ColumnInfo>
  329. <Column id="instcd" type="STRING" size="256"/>
  330. <Column id="mngtdeptcd_search" type="STRING" size="256"/>
  331. <Column id="reqfromdd" type="STRING" size="256"/>
  332. <Column id="reqtodd" type="STRING" size="256"/>
  333. <Column id="gubun" type="STRING" size="256"/>
  334. <Column id="matrcd" type="STRING" size="256"/>
  335. <Column id="mngtdeptnm_search" type="STRING" size="256"/>
  336. <Column id="matrnm" type="STRING" size="256"/>
  337. <Column id="barcode" type="STRING" size="256"/>
  338. </ColumnInfo>
  339. <Rows>
  340. <Row/>
  341. </Rows>
  342. </Dataset>
  343. <Dataset id="ds_popmatr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  344. <ColumnInfo>
  345. <Column id="matrcd" type="STRING" size="256"/>
  346. <Column id="matrnm" type="STRING" size="256"/>
  347. <Column id="deptcd" type="STRING" size="256"/>
  348. <Column id="prodcmpynm" type="STRING" size="256"/>
  349. <Column id="maincustlastsuplplcenm" type="STRING" size="256"/>
  350. <Column id="returntype" type="STRING" size="256"/>
  351. <Column id="selectyn" type="STRING" size="256"/>
  352. </ColumnInfo>
  353. <Rows>
  354. <Row>
  355. <Col id="matrcd"/>
  356. <Col id="matrnm"/>
  357. <Col id="deptcd"/>
  358. <Col id="prodcmpynm"/>
  359. <Col id="maincustlastsuplplcenm"/>
  360. <Col id="returntype"/>
  361. <Col id="selectyn"/>
  362. </Row>
  363. </Rows>
  364. </Dataset>
  365. <Dataset id="ds_main_matrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  366. <ColumnInfo>
  367. <Column id="instcd" type="STRING" size="256"/>
  368. <Column id="reqdd" type="STRING"/>
  369. <Column id="reqno" type="STRING" size="256"/>
  370. <Column id="gubun" type="STRING"/>
  371. <Column id="deliveqty" type="STRING" size="256"/>
  372. <Column id="delivedd" type="STRING" size="256"/>
  373. <Column id="deliveid" type="STRING" size="256"/>
  374. <Column id="pathcmt" type="STRING" size="256"/>
  375. <Column id="reqnm" type="STRING" size="256"/>
  376. <Column id="delivenm" type="STRING" size="256"/>
  377. <Column id="reqdeptcd" type="STRING" size="256"/>
  378. <Column id="reqdeptnm" type="STRING" size="256"/>
  379. <Column id="gubunnm" type="STRING" size="256"/>
  380. <Column id="status" type="STRING" size="256"/>
  381. <Column id="colBack" type="STRING" size="256"/>
  382. <Column id="reqqty" type="STRING" size="256"/>
  383. <Column id="workcnts" type="STRING" size="256"/>
  384. <Column id="deptcmt" type="STRING" size="256"/>
  385. <Column id="matrcd" type="STRING" size="256"/>
  386. <Column id="matrnm" type="STRING" size="256"/>
  387. <Column id="deliveflag" type="STRING" size="256"/>
  388. <Column id="flag" type="STRING" size="256"/>
  389. </ColumnInfo>
  390. </Dataset>
  391. <Dataset id="ds_send_save_matrlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  392. <Dataset id="ds_cmb_cmfyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  393. <ColumnInfo>
  394. <Column id="label" type="STRING" size="256"/>
  395. <Column id="value" type="STRING" size="256"/>
  396. </ColumnInfo>
  397. <Rows>
  398. <Row/>
  399. <Row>
  400. <Col id="label">승인</Col>
  401. <Col id="value">05</Col>
  402. </Row>
  403. <Row>
  404. <Col id="label">보류</Col>
  405. <Col id="value">04</Col>
  406. </Row>
  407. <Row>
  408. <Col id="value">06</Col>
  409. <Col id="label">반납완료</Col>
  410. </Row>
  411. </Rows>
  412. </Dataset>
  413. <Dataset id="ds_main_uselist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  414. <ColumnInfo>
  415. <Column id="instcd" type="STRING" size="256"/>
  416. <Column id="reqdd" type="STRING"/>
  417. <Column id="reqno" type="STRING" size="256"/>
  418. <Column id="gubun" type="STRING"/>
  419. <Column id="deliveqty" type="STRING" size="256"/>
  420. <Column id="delivedd" type="STRING" size="256"/>
  421. <Column id="deliveid" type="STRING" size="256"/>
  422. <Column id="pathcmt" type="STRING" size="256"/>
  423. <Column id="reqnm" type="STRING" size="256"/>
  424. <Column id="delivenm" type="STRING" size="256"/>
  425. <Column id="reqdeptcd" type="STRING" size="256"/>
  426. <Column id="reqdeptnm" type="STRING" size="256"/>
  427. <Column id="gubunnm" type="STRING" size="256"/>
  428. <Column id="status" type="STRING" size="256"/>
  429. <Column id="colBack" type="STRING" size="256"/>
  430. <Column id="reqqty" type="STRING" size="256"/>
  431. <Column id="workcnts" type="STRING" size="256"/>
  432. <Column id="deptcmt" type="STRING" size="256"/>
  433. <Column id="matrcd" type="STRING" size="256"/>
  434. <Column id="matrnm" type="STRING" size="256"/>
  435. <Column id="deliveflag" type="STRING" size="256"/>
  436. <Column id="flag" type="STRING" size="256"/>
  437. <Column id="writnm" type="STRING" size="256"/>
  438. <Column id="cnfmnm" type="STRING" size="256"/>
  439. <Column id="cnfmdt" type="STRING" size="256"/>
  440. </ColumnInfo>
  441. </Dataset>
  442. <Dataset id="ds_matrinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  443. <ColumnInfo>
  444. <Column id="matrcd" type="STRING" size="256"/>
  445. <Column id="matrnm" type="STRING" size="256"/>
  446. </ColumnInfo>
  447. </Dataset>
  448. </Objects>
  449. <Bind>
  450. <BindItem id="item16" compid="switch1.case_acpt.grp_sea.rdo_gubun" propid="value" datasetid="ds_send" columnid="gubun"/>
  451. <BindItem id="item18" compid="switch1.case_acpt.grp_sea.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
  452. <BindItem id="item19" compid="switch1.case_acpt.grp_sea.ipt_mngtdeptcd_search" propid="value" datasetid="ds_send" columnid="mngtdeptcd_search"/>
  453. <BindItem id="item20" compid="switch1.case_acpt.grp_sea.ipt_mngtdeptnm_search" propid="value" datasetid="ds_send" columnid="mngtdeptnm_search"/>
  454. <BindItem id="item21" compid="switch1.case_acpt.grp_sea.ipt_srchchkfrdd" propid="value" datasetid="ds_send" columnid="reqfromdd"/>
  455. <BindItem id="item22" compid="switch1.case_acpt.grp_sea.ipt_srchchktodd" propid="value" datasetid="ds_send" columnid="reqtodd"/>
  456. <BindItem id="item30" compid="switch1.case_acpt.grp_sea.opt_matrnm" propid="value" datasetid="ds_send" columnid="matrnm"/>
  457. <BindItem id="item29" compid="switch1.case_acpt.grp_sea.ipt_matrcd" propid="value" datasetid="ds_send" columnid="matrcd"/>
  458. <BindItem id="item7" compid="switch1.case_acpt.ipt_barcode" propid="value" datasetid="ds_send" columnid="barcode"/>
  459. <BindItem id="item0" compid="switch1.case_uselist.grp_sea.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
  460. <BindItem id="item1" compid="switch1.case_uselist.grp_sea.ipt_mngtdeptcd_search" propid="value" datasetid="ds_send" columnid="mngtdeptcd_search"/>
  461. <BindItem id="item2" compid="switch1.case_uselist.grp_sea.ipt_mngtdeptnm_search" propid="value" datasetid="ds_send" columnid="mngtdeptnm_search"/>
  462. <BindItem id="item3" compid="switch1.case_uselist.grp_sea.ipt_srchchkfrdd" propid="value" datasetid="ds_send" columnid="reqfromdd"/>
  463. <BindItem id="item4" compid="switch1.case_uselist.grp_sea.ipt_srchchktodd" propid="value" datasetid="ds_send" columnid="reqtodd"/>
  464. <BindItem id="item5" compid="switch1.case_uselist.grp_sea.rdo_gubun" propid="value" datasetid="ds_send" columnid="gubun"/>
  465. <BindItem id="item6" compid="switch1.case_uselist.grp_sea.ipt_matrcd" propid="value" datasetid="ds_send" columnid="matrcd"/>
  466. <BindItem id="item8" compid="switch1.case_uselist.grp_sea.opt_matrnm" propid="value" datasetid="ds_send" columnid="matrnm"/>
  467. </Bind>
  468. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  469. * System Name :
  470. * Job Name :
  471. * Creator :
  472. * Make Date : 2019-07-26
  473. * Description :
  474. ****************************************************************************************/
  475. include "com_commonxp::comm_main.xjs";
  476. include "mis_miscommonxp::MIS.xjs";
  477. include "mis_miscommonxp::RAC001.xjs";
  478. include "mis_miscommonxp::RSZ001.xjs";
  479. var arErrorCode = new HashArray();
  480. function SMRSM1600_oninit(obj:Form, e:InitEventInfo)
  481. {
  482. frmf_initForm(obj);
  483. }
  484. function SMRSM1600_onload(obj:Form, e:LoadEventInfo)
  485. {
  486. fInitialize();
  487. frmf_addComboItem( "switch1.case_acpt.grp_sea.rdo_gubun", "전체", "", "above");
  488. frmf_addComboItem( "switch1.case_uselist.grp_sea.rdo_gubun", "전체", "", "above");
  489. }
  490. function fInitialize()
  491. {
  492. misfGridInit(switch1.case_acpt.grd_matracptlist);
  493. grdf_setRowTypeIcon(switch1.case_acpt.grd_matracptlist, 0);
  494. misfComboComCdList("C0048",switch1.case_acpt.grp_sea.cmb_instcd,"Y");
  495. misfComboComCdList("C0048",switch1.case_uselist.grp_sea.cmb_instcd,"Y");
  496. ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  497. switch1.case_acpt.grp_sea.ipt_srchchkfrdd.value = utlf_getCurrentDate();
  498. switch1.case_acpt.grp_sea.ipt_srchchktodd.value = utlf_getCurrentDate();
  499. ds_send.setColumn(0, "gubun", "");
  500. ds_send.enableevent = false;
  501. if(sysf_getUserInfo("dutplcecd") == "4130100000" || sysf_getUserInfo("dutplcecd") == "4020326000" || sysf_getUserInfo("dutplcecd") == "2210000000"){ //의료정보센터, 근로복지과, 병리과
  502. switch1.case_acpt.grp_sea.ipt_mngtdeptcd_search.value = sysf_getUserInfo("dutplcecd");
  503. switch1.case_acpt.grp_sea.ipt_mngtdeptnm_search.value = sysf_getUserInfo("dutplcenm");
  504. switch1.case_acpt.grp_sea.btn_mngtdeptcd_search.enable = true;
  505. switch1.case_acpt.grp_sea.ipt_mngtdeptcd_search.enable = true;
  506. switch1.case_uselist.grp_sea.ipt_mngtdeptcd_search.value = sysf_getUserInfo("dutplcecd");
  507. switch1.case_uselist.grp_sea.ipt_mngtdeptnm_search.value = sysf_getUserInfo("dutplcenm");
  508. switch1.case_uselist.grp_sea.btn_mngtdeptcd_search.enable = true;
  509. switch1.case_uselist.grp_sea.ipt_mngtdeptcd_search.enable = true;
  510. }else{
  511. switch1.case_acpt.grp_sea.ipt_mngtdeptcd_search.value = sysf_getUserInfo("dutplcecd");
  512. switch1.case_acpt.grp_sea.ipt_mngtdeptnm_search.value = sysf_getUserInfo("dutplcenm");
  513. switch1.case_acpt.grp_sea.btn_mngtdeptcd_search.enable = false;
  514. switch1.case_acpt.grp_sea.ipt_mngtdeptcd_search.enable = false;
  515. switch1.case_uselist.grp_sea.ipt_mngtdeptcd_search.value = sysf_getUserInfo("dutplcecd");
  516. switch1.case_uselist.grp_sea.ipt_mngtdeptnm_search.value = sysf_getUserInfo("dutplcenm");
  517. switch1.case_uselist.grp_sea.btn_mngtdeptcd_search.enable = false;
  518. switch1.case_uselist.grp_sea.ipt_mngtdeptcd_search.enable = false;
  519. }
  520. ds_send.enableevent = true;
  521. // grp_sea.btn_search.click();
  522. switch1.case_acpt.ipt_barcode.setFocus();
  523. }
  524. function switch1_case_acpt_ipt_barcode_onkeydown(obj:Edit, e:KeyEventInfo)
  525. {
  526. if(e.keycode == 13)
  527. {
  528. obj.updateToDataset();
  529. }
  530. }
  531. function ds_send_oncolumnchanged(obj, e)
  532. {
  533. if( e.columnid == "mngtdeptcd_search" ){
  534. var setFocus = this.getFocus();
  535. switch1.case_acpt.grp_sea.ipt_mngtdeptcd_search.value = e.newvalue;
  536. switch1.case_acpt.grp_sea.ipt_mngtdeptcd_search.setFocus();
  537. switch1.case_acpt.grp_sea.ipt_mngtdeptnm_search.value = "";
  538. misfValidationCheck("02", "", "mngtdeptcd_search,mngtdeptnm_search" );
  539. setFocus.setFocus();
  540. }else if(e.columnid == "barcode")
  541. {
  542. if(utlf_isNull(e.newvalue))
  543. {
  544. return;
  545. }
  546. var allData = e.newvalue;
  547. if(switch1.case_acpt.grp_sea.cmb_instcd.value != allData.substr(0,3))
  548. {
  549. sysf_messageBox("신청물질의 기관코드가 일치하지 않아 처리할 수 없습니다. ", "I999", "");
  550. return;
  551. }
  552. var reqdd = allData.substr(3,8);
  553. var reqdeptcd = allData.substr(11,10)
  554. ds_send.setColumn(0, "reqfromdd", allData.substr(3,8));
  555. ds_send.setColumn(0, "reqtodd", allData.substr(3,8));
  556. ds_send.setColumn(0, "mngtdeptcd_search", allData.substr(11,10));
  557. switch1.case_acpt.grp_sea.ipt_mngtdeptcd_search.setFocus();
  558. var eInfo = new EventInfo();
  559. eInfo.columnid = "mngtdeptcd_search";
  560. eInfo.newvalue = allData.substr(11,10);
  561. ds_send_oncolumnchanged(ds_send, eInfo);
  562. ds_send.setColumn(0, "gubun", "");
  563. ds_send.setColumn(0, "matrcd", "");
  564. ds_send.setColumn(0, "matrnm", "");
  565. switch1.case_acpt.grp_sea.ipt_matrcd.setFocus();
  566. switch1.case_acpt.ipt_barcode.setFocus();
  567. switch1.case_acpt.grp_sea.btn_sea.click();
  568. }
  569. }
  570. function switch1_case_acpt_grp_sea_ipt_mngtdeptcd_search_onkillfocus(obj:Edit, e:KillFocusEventInfo)
  571. {
  572. if(utlf_isNull(ds_send.getColumn(0,"mngtdeptcd_search"))){
  573. ds_send.setColumn(0,"mngtdeptnm_search","");
  574. }
  575. }
  576. function switch1_case_acpt_grp_sea_btn_mngtdeptcd_search_onclick(obj:Button, e:ClickEventInfo)
  577. {
  578. misfOpenPopUpList("02", switch1.case_acpt.grp_sea.ipt_mngtdeptcd_search,"","mngtdeptcd_search,mngtdeptnm_search");
  579. }
  580. function switch1_case_acpt_grp_sea_ipt_matrcd_onkillfocus(obj:Edit, e:KillFocusEventInfo)
  581. {
  582. if(utlf_isNull(ds_send.getColumn(0,"matrcd"))){
  583. ds_send.setColumn(0,"matrnm","");
  584. }
  585. }
  586. function switch1_case_acpt_grp_sea_btn_matrcd_onclick(obj:Button, e:ClickEventInfo)
  587. {
  588. ds_popmatr.clearData();
  589. ds_popmatr.addRow();
  590. ds_popmatr.setColumn(0, "deptcd", switch1.case_acpt.grp_sea.ipt_mngtdeptcd_search.value);
  591. ds_popmatr.setColumn(0, "selectyn", "");
  592. var objArg = new Object();
  593. objArg.arg_ds_popdata = ds_popmatr;
  594. frmf_modal("SPRSM00100", "SPRSM00100", objArg, "", "", "", "", "", "", "", "", "", "M");
  595. if(ds_popmatr.getColumn(0, "selectyn") == "Y")
  596. {
  597. //misfGridInit(switch1.case_acpt.grd_matracptlist);
  598. ds_send.setColumn(0, "matrnm", ds_popmatr.getColumn(0, "matrnm"));
  599. ds_send.setColumn(0, "matrcd", ds_popmatr.getColumn(0, "matrcd"));
  600. }
  601. }
  602. function switch1_case_compare_grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  603. {
  604. ds_main_matrlist.clearData();
  605. if(String(ds_send.getColumn(0, "reqfromdd")).length != 8 )
  606. {
  607. sysf_messageBox("조회기간을 정확하게 입력하십시요. ", "E999", "");
  608. switch1.case_acpt.grp_sea.ipt_srchchkfrdd.setFocus();
  609. return;
  610. }
  611. if(String(ds_send.getColumn(0, "reqtodd")).length != 8 )
  612. {
  613. sysf_messageBox("조회기간을 정확하게 입력하십시요. ", "E999", "");
  614. switch1.case_acpt.grp_sea.ipt_srchchktodd.setFocus();
  615. return;
  616. }
  617. if( utlf_isNull(ds_send.getColumn(0, "mngtdeptcd_search")) ){
  618. sysf_messageBox("부서코드는", "I003");
  619. switch1.case_acpt.grp_sea.ipt_mngtdeptcd_search.setFocus();
  620. return false;
  621. }
  622. var oParam = {};
  623. oParam.id = "TRRSM01601";
  624. oParam.service = "purcbaseapp.PurcBaseMngt";
  625. oParam.method = "reqGetMatrAcptList";
  626. oParam.inds = "req=ds_send";
  627. oParam.outds = "ds_main_matrlist=matracptlist";
  628. oParam.async = false;
  629. //oParam.callback = "cf_TRRSM01601";
  630. tranf_submit(oParam);
  631. var cnt = ds_main_matrlist.rowcount;
  632. if(cnt == 0)
  633. {
  634. sysf_messageBox("리스트가 존재하지" ,"I011");
  635. }
  636. ds_main_matrlist.addColumn("colBack", "string");
  637. ds_main_matrlist.enableevent = false;
  638. ds_main_matrlist.updatecontrol = false;
  639. for(var i = 0; i < ds_main_matrlist.rowcount; i++)
  640. {
  641. var flag = ds_main_matrlist.getColumn(i, "gubunnm");
  642. var gubun = ds_main_matrlist.getColumn(i, "gubun");
  643. if(flag == "신청"){
  644. ds_main_matrlist.setColumn(i, "colBack", "#fef7c0ff");
  645. }else if(flag == "반납"){
  646. ds_main_matrlist.setColumn(i, "colBack", "#d4d4ffff");
  647. }else if(flag == "예외"){
  648. ds_main_matrlist.setColumn(i, "colBack", "#feccccff");
  649. }else if (flag == "보류"){
  650. ds_main_matrlist.setColumn(i, "colBack", "paleturquoise");
  651. }else if (flag == "승인"){
  652. ds_main_matrlist.setColumn(i, "colBack", "yellowgreen");
  653. }else {
  654. ds_main_matrlist.setColumn(i, "colBack", "moccasin");
  655. }
  656. //if(gubun == "03"){
  657. //switch1.case_acpt.grd_matracptlist.setCellProperty
  658. //}
  659. }
  660. ds_main_matrlist.updatecontrol = true;
  661. ds_main_matrlist.enableevent = true;
  662. }
  663. function switch1_case_acpt_grd_matracptlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  664. {
  665. var deliveflag = ds_main_matrlist.getColumn(ds_main_matrlist.rowposition,"deliveflag");
  666. if(deliveflag == "Y" ||deliveflag == "1" ){
  667. if(e.cell == 13){
  668. ds_main_matrlist.setColumn(ds_main_matrlist.rowposition,"deliveqty",ds_main_matrlist.getColumn(ds_main_matrlist.rowposition,"reqqty"));
  669. }
  670. }
  671. }
  672. function switch1_case_compare_grp_sea_btn_save_onclick(obj:Button, e:ClickEventInfo)
  673. {
  674. for(var i = 0; i < ds_main_matrlist.rowcount; i++){
  675. var flag = ds_main_matrlist.getColumn(i,"flag");
  676. var gubun = ds_main_matrlist.getColumn(i,"gubun");
  677. var delivenm = ds_main_matrlist.getColumn(i,"delivenm");
  678. var deliveqty = ds_main_matrlist.getColumn(i,"deliveqty");
  679. var reqqty = Number(ds_main_matrlist.getColumn(i,"reqqty"));
  680. // if(gubun == "03" || gubun == "04" || gubun == "05"){ //예외,보류,승인
  681. // if(!utlf_isNull(delivenm)){ //출고자
  682. // sysf_messageBox("이미 승인 또는 보류된 내역이 있습니다.", "I999", "");
  683. // switch1.case_acpt.grp_sea.btn_sea.click();
  684. // return;
  685. // }
  686. // }else{
  687. if(flag == '04' || flag =='05'|| flag =='06'){ //처리체크
  688. if(gubun == '02' && flag != '06'){ //반납
  689. sysf_messageBox(parseInt(i+1)+"번째 물질명 [" + ds_main_matrlist.getColumn(i, "matrnm") + "] 진행상태가 반납일경우 처리내역은 반납완료로 처리해야합니다.", "I999", "");
  690. return;
  691. }
  692. if(utlf_isNull(delivenm)){ //출고자
  693. if(utlf_isNull(deliveqty)){
  694. if(flag == "04"){ //보류
  695. ds_main_matrlist.setColumn(i, "deliveqty", "0");
  696. }else{
  697. sysf_messageBox(parseInt(i+1)+"번째 물질명 [" + ds_main_matrlist.getColumn(i, "matrnm") + "] 출고,반납수량은 필수입니다.", "I999", "");
  698. return;
  699. }
  700. }else{
  701. if( deliveqty > reqqty ){
  702. sysf_messageBox(parseInt(i+1)+"번째 물질명 [" + ds_main_matrlist.getColumn(i, "matrnm") + "] 신청수량보다 출고,반납 수량이 더 많을 수", "I004");
  703. return;
  704. }
  705. }
  706. // }else{
  707. // sysf_messageBox("이미 승인된 내역이 있습니다.", "I999", "");
  708. // switch1.case_acpt.grp_sea.btn_sea.click();
  709. // return;
  710. }
  711. }else{
  712. sysf_messageBox(parseInt(i+1)+"번째 물질명 [" + ds_main_matrlist.getColumn(i, "matrnm") + "] 처리내역을 선택해해주세요!", "I999", "");
  713. return;
  714. }
  715. // }
  716. }
  717. updtdatacnt = grdf_getGridUpdateData(switch1.case_acpt.grd_matracptlist).rowcount;
  718. if(updtdatacnt == 0)
  719. {
  720. sysf_messageBox("처리할 데이터가 ","E014");
  721. return false;
  722. }
  723. else
  724. {
  725. var updateData = grdf_getGridUpdateData(switch1.case_acpt.grd_matracptlist);
  726. grdf_setStatusColumn(updateData, "status");
  727. ds_send_save_matrlist.copyData(updateData);
  728. var oParam = {};
  729. oParam.id = "TXRSM01602";
  730. oParam.service = "purcbaseapp.PurcBaseMngt";
  731. oParam.method = "reqExeMatrCmfList";
  732. oParam.inds = "req=ds_send_save_matrlist";
  733. oParam.outds = "";
  734. oParam.async = false;
  735. oParam.callback = "cf_TXRSM01602";
  736. tranf_submit(oParam);
  737. }
  738. }
  739. function cf_TXRSM01602(sSvcId, nErrorCode, sErrorMsg)
  740. {
  741. if(nErrorCode < 0)
  742. {
  743. return;
  744. }
  745. else
  746. {
  747. switch1.case_acpt.grp_sea.btn_sea.click();
  748. sysf_messageBox("처리가", "I002");
  749. }
  750. }
  751. function switch1_case_acpt_ipt_barcode_oneditclick(obj:Edit, e:EditClickEventInfo)
  752. {
  753. switch1.case_acpt.ipt_barcode.value = "";
  754. }
  755. function switch1_case_uselist_btn_excel_onclick(obj:Button, e:ClickEventInfo)
  756. {
  757. misfSaveExcel(grd_uselist);
  758. }
  759. function switch1_case_uselist_grp_sea_btn_matrcd_onclick(obj:Button, e:ClickEventInfo)
  760. {
  761. grp_matrinfo.visible = true;
  762. grp_matrinfo.setFocus(true);
  763. var oParam = {};
  764. oParam.id = "TRRSM01502";
  765. oParam.service = "purcbaseapp.PurcBaseMngt";
  766. oParam.method = "reqGetMatrCode";
  767. oParam.inds = "req=ds_send";
  768. oParam.outds = "ds_matrinfo=matrcode";
  769. oParam.async = false;
  770. //oParam.callback = "cf_TRRSM01301";
  771. tranf_submit(oParam);
  772. }
  773. function grp_matrinfo_btn_matrinfo_onclick(obj:Button, e:ClickEventInfo)
  774. {
  775. var oParam = {};
  776. oParam.id = "TRRSM01502";
  777. oParam.service = "purcbaseapp.PurcBaseMngt";
  778. oParam.method = "reqGetMatrCode";
  779. oParam.inds = "req=ds_send";
  780. oParam.outds = "ds_matrinfo=matrcode";
  781. oParam.async = false;
  782. //oParam.callback = "cf_TRRSM01301";
  783. tranf_submit(oParam);
  784. }
  785. function grp_matrinfo_grd_matrinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  786. {
  787. if(ds_matrinfo.rowcount == 0)
  788. {
  789. return;
  790. }
  791. ds_send.setColumn(0, "matrcd", ds_matrinfo.getColumn(ds_matrinfo.rowposition, "matrcd"));
  792. ds_send.setColumn(0, "matrnm", ds_matrinfo.getColumn(ds_matrinfo.rowposition, "matrnm"));
  793. grp_matrinfo.visible = false;
  794. }
  795. function grp_matrinfo_btn_matrcancel_onclick(obj:Button, e:ClickEventInfo)
  796. {
  797. grp_matrinfo.visible = false;
  798. }
  799. function switch1_case_uselist_grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  800. {
  801. ds_main_uselist.clearData();
  802. if(String(ds_send.getColumn(0, "reqfromdd")).length != 8 )
  803. {
  804. sysf_messageBox("조회기간을 정확하게 입력하십시요. ", "E999", "");
  805. switch1.case_uselist.grp_sea.ipt_srchchkfrdd.setFocus();
  806. return;
  807. }
  808. if(String(ds_send.getColumn(0, "reqtodd")).length != 8 )
  809. {
  810. sysf_messageBox("조회기간을 정확하게 입력하십시요. ", "E999", "");
  811. switch1.case_uselist.grp_sea.ipt_srchchktodd.setFocus();
  812. return;
  813. }
  814. var oParam = {};
  815. oParam.id = "TRRSM01602";
  816. oParam.service = "purcbaseapp.PurcBaseMngt";
  817. oParam.method = "reqGetSmUseList";
  818. oParam.inds = "req=ds_send";
  819. oParam.outds = "ds_main_uselist=uselist";
  820. oParam.async = false;
  821. //oParam.callback = "cf_TRRSM01602";
  822. tranf_submit(oParam);
  823. var cnt = ds_main_uselist.rowcount;
  824. if(cnt == 0)
  825. {
  826. sysf_messageBox("리스트가 존재하지" ,"I011");
  827. }
  828. }
  829. ]]></Script>
  830. </Form>
  831. </FDL>