SMMNP00310_적출물관리.xfdl 42 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNP00310" position="absolute 0 0 1196 765" titletext="적출물관리대장" onload="SMMNP00310_onload" ontimer="SMMNP00310_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Static text="적출물관리대장" position="absolute 0 0 160 25" id="caption6" class="tit_1"/>
  8. <Div position="absolute 0 20 1195 763" id="group3" scrollbars="autoboth">
  9. <Layouts>
  10. <Layout>
  11. <Div position="absolute 0 5 1195 40" align="align:center top;" id="grp_sea" anchor="default" class="div_SA">
  12. <Layouts>
  13. <Layout>
  14. <Static text="수거일자 :" position="absolute 576 10 652 27" id="caption2" class="search_name" visible="false" anchor="default"/>
  15. <Shape position="absolute 1102 7 1108 29" linetype="vertical" id="line13" class="line_4" anchor="default"/>
  16. <Static text="~" position="absolute 747 9 759 26" id="caption7" class="search_no_b" visible="false" anchor="default"/>
  17. <Radio position="absolute 379 9 558 27" id="rdo_rdocond" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" onitemclick="group3_grp_sea_rdo_rdocond_onitemclick" onitemchanged="group3_grp_sea_rdo_rdocond_onitemchanged">
  18. <Dataset id="innerdataset">
  19. <ColumnInfo>
  20. <Column id="codecolumn"/>
  21. <Column id="datacolumn"/>
  22. </ColumnInfo>
  23. <Rows>
  24. <Row>
  25. <Col id="codecolumn">a</Col>
  26. <Col id="datacolumn">전체</Col>
  27. </Row>
  28. <Row>
  29. <Col id="codecolumn">b</Col>
  30. <Col id="datacolumn">수거</Col>
  31. </Row>
  32. <Row>
  33. <Col id="codecolumn">c</Col>
  34. <Col id="datacolumn">미수거</Col>
  35. </Row>
  36. </Rows>
  37. </Dataset>
  38. </Radio>
  39. <Calendar position="absolute 652 9 740 28" id="ipt_fromdd" class="input_search" visible="false" anchor="default" autoselect="true"/>
  40. <Calendar position="absolute 765 9 853 28" id="ipt_todd" class="input_search" visible="false" anchor="default" autoselect="true"/>
  41. <Button position="absolute 1124 7 1180 29" id="btn_srch" class="btn1" text="조회" anchor="default" onclick="group3_grp_sea_btn_srch_onclick"/>
  42. <Static text="수거구분 :" position="absolute 305 10 378 27" id="caption1" class="search_name" anchor="default"/>
  43. <Static text="수거장소 :" position="absolute 15 10 86 27" id="caption5" class="search_name" anchor="default"/>
  44. <Radio position="absolute 89 9 289 26" id="radio1" columncount="3" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" onitemchanged="group3_grp_sea_radio1_onitemchanged">
  45. <Dataset id="innerdataset">
  46. <ColumnInfo>
  47. <Column id="codecolumn"/>
  48. <Column id="datacolumn"/>
  49. </ColumnInfo>
  50. <Rows>
  51. <Row>
  52. <Col id="codecolumn">
  53. </Col>
  54. <Col id="datacolumn">전체</Col>
  55. </Row>
  56. <Row>
  57. <Col id="codecolumn">1</Col>
  58. <Col id="datacolumn">수술실</Col>
  59. </Row>
  60. <Row>
  61. <Col id="codecolumn">2</Col>
  62. <Col id="datacolumn">조직은행</Col>
  63. </Row>
  64. </Rows>
  65. </Dataset>
  66. </Radio>
  67. </Layout>
  68. </Layouts>
  69. </Div>
  70. <Button position="absolute 997 43 1061 62" id="btn_cncl" class="btn5" visible="false" text="수거취소" anchor="default" onclick="group3_btn_cncl_onclick"/>
  71. <Button position="absolute 1064 43 1128 62" id="btn_print" class="btn2" visible="false" text="선택출력" anchor="default" onclick="group3_btn_print_onclick"/>
  72. <Button position="absolute 1131 43 1195 62" id="btn_saveexcel" class="btn2" text="엑셀저장" anchor="default" onclick="group3_btn_saveexcel_onclick"/>
  73. <Shape position="absolute 0 63 1194 69" linetype="horizontal" id="line1" class="line_1" anchor="default" style="strokepen:3 solid #33bbbbff;"/>
  74. <Grid position="absolute 0 68 1194 714" id="grd_extlist" class="datagrid2" binddataset="ds_main_extinfo_extlist" anchor="default" cellsizingtype="both" oncellclick="group3_grd_extlist_oncellclick" oncloseup="group3_grd_extlist_oncloseup" onlbuttonup="group3_grd_extlist_onlbuttonup" autoenter="key" cellsizebandtype="allband" extendsizetype="row" selecttype="multirow" autosizingtype="row">
  75. <Formats>
  76. <Format id="default">
  77. <Columns>
  78. <Column size="21" band="left"/>
  79. <Column size="19"/>
  80. <Column size="62"/>
  81. <Column size="47"/>
  82. <Column size="105"/>
  83. <Column size="50"/>
  84. <Column size="42"/>
  85. <Column size="55"/>
  86. <Column size="45"/>
  87. <Column size="60"/>
  88. <Column size="55"/>
  89. <Column size="50"/>
  90. <Column size="110"/>
  91. <Column size="35"/>
  92. <Column size="40"/>
  93. <Column size="140"/>
  94. <Column size="70"/>
  95. <Column size="45"/>
  96. <Column size="70"/>
  97. <Column size="55"/>
  98. <Column size="55"/>
  99. <Column size="0"/>
  100. <Column size="0"/>
  101. <Column size="0"/>
  102. </Columns>
  103. <Rows>
  104. <Row size="32" band="head"/>
  105. <Row size="24"/>
  106. </Rows>
  107. <Band id="head">
  108. <Cell displaytype="none"/>
  109. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  110. <Cell col="2" text="수거장소"/>
  111. <Cell col="3" text="상태"/>
  112. <Cell col="4" text="적출일시"/>
  113. <Cell col="5" text="집도과"/>
  114. <Cell col="6" text="수술방"/>
  115. <Cell col="7" text="환자명"/>
  116. <Cell col="8" text="S/A"/>
  117. <Cell col="9" text="등록번호"/>
  118. <Cell col="10" text="적출의"/>
  119. <Cell col="11" text="취급 &#10;간호사"/>
  120. <Cell col="12" text="적출부위"/>
  121. <Cell col="13" text="수량"/>
  122. <Cell col="14" text="중량&#10;(g)"/>
  123. <Cell col="15" text="감염정보"/>
  124. <Cell col="16" text="감염정보&#10;기타"/>
  125. <Cell col="17" text="동의서&#10;확인"/>
  126. <Cell col="18" text="수거일자"/>
  127. <Cell col="19" text="수거자"/>
  128. <Cell col="20" text="확인자"/>
  129. <Cell col="21" text="확인자ID"/>
  130. <Cell col="22" text="적출일련번호"/>
  131. <Cell col="23" text="수술예약번호"/>
  132. </Band>
  133. <Band id="body">
  134. <Cell celltype="head" expr="currow + 1"/>
  135. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chk" expr="expr:(chk==&quot;Y&quot;||chk==1)?1:0"/>
  136. <Cell col="2" displaytype="combo" edittype="none" style="align:center middle;" text="bind:flag" combodataset="ds_init_flag" combocodecol="value" combodatacol="label" enable="false"/>
  137. <Cell col="3" style="align:center middle;" text="bind:remstat"/>
  138. <Cell col="4" text="bind:extcrdt" mask="####-##-## ##:##" maskchar=" " calendardisplaynulltype="nulltext"/>
  139. <Cell col="5" style="align:center middle;" text="bind:opdeptnm"/>
  140. <Cell col="6" style="align:center middle;" text="bind:oproomnm"/>
  141. <Cell col="7" style="align:center middle;" text="bind:hngnm"/>
  142. <Cell col="8" style="align:center middle;" text="bind:sexage"/>
  143. <Cell col="9" style="align:center middle;" text="bind:pid"/>
  144. <Cell col="10" style="align:center middle;" text="bind:opdoctnm"/>
  145. <Cell col="11" displaytype="normal" style="align:center middle;" text="bind:actnurnm" calendardisplaynulltype="default"/>
  146. <Cell col="12" style="align:left;padding:2 2 2 2;" text="bind:extcrpart" wordwrap="word" autosizerow="limitmin"/>
  147. <Cell col="13" displaytype="number" text="bind:extcrcnt" mask="#,###"/>
  148. <Cell col="14" displaytype="number" text="bind:extcrweig" mask="#,###"/>
  149. <Cell col="15" style="align:left;padding:2 2 2 2;" text="bind:infectflag" wordwrap="word"/>
  150. <Cell col="16" style="align:left;padding:2 2 2 2;" text="bind:infectetc" wordwrap="word"/>
  151. <Cell col="17" edittype="none" style="align:center middle;" text="bind:opaprvyn"/>
  152. <Cell col="18" displaytype="date" style="align:center middle;" text="bind:remvdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  153. <Cell col="19" style="align:center middle;" text="bind:remvnm"/>
  154. <Cell col="20" style="align:center middle;" text="bind:checknurnm"/>
  155. <Cell col="21" text="bind:checknurid"/>
  156. <Cell col="22" text="bind:eoseqno"/>
  157. <Cell col="23" text="bind:oprsrvno"/>
  158. </Band>
  159. </Format>
  160. </Formats>
  161. </Grid>
  162. <Static text="총 개수 :" position="absolute 0 715 75 738" align="align:left middle;" id="caption15" class="cell_1" anchor="default" style="font:Dotum,9,bold;"/>
  163. <Static text="개" position="absolute 135 718 160 737" id="caption10" anchor="default" style="font:Dotum,9,bold;"/>
  164. <Static text="총 중량 :" position="absolute 162 715 237 738" align="align:left middle;" id="caption3" class="cell_1" anchor="default" style="font:Dotum,9,bold;"/>
  165. <Static text="g" position="absolute 305 718 320 738" id="caption4" anchor="default" style="font:Dotum,9,bold;"/>
  166. <Static text="수거일자 :" position="absolute 658 715 733 738" align="align:left middle;" id="caption12" class="cell_1" anchor="default" style="font:Dotum,9,bold;"/>
  167. <Static text="수거자 :" position="absolute 836 715 896 738" align="align:left middle;" id="caption13" class="cell_1" anchor="default" style="font:Dotum,9,bold;"/>
  168. <Static text="확인자 :" position="absolute 989 715 1049 738" align="align:left middle;" id="caption11" class="cell_1" anchor="default" style="font:Dotum,9,bold;"/>
  169. <MaskEdit readonly="true" position="absolute 77 718 133 737" align="align:right middle;" id="ipt_cnt" mask="#,###" anchor="default" trimtype="both" style="background:transparent stretch 5,5;font:Dotum,9,bold;"/>
  170. <MaskEdit readonly="true" position="absolute 239 718 303 737" align="align:right middle;" id="ipt_weig" mask="#,###" anchor="default" trimtype="both" style="background:transparent stretch 5,5;font:Dotum,9,bold;"/>
  171. <Calendar position="absolute 734 717 834 736" id="ipt_remvdd" anchor="default" autoselect="true"/>
  172. <Edit position="absolute 897 717 987 736" id="ipt_remvnm" anchor="default" autoselect="true"/>
  173. <Combo position="absolute 1050 717 1150 736" id="cmb_checknurid" innerdataset="@ds_hidden_confpsninfo_confpsnlist" datacolumn="nm" codecolumn="cd" anchor="default" displayrowcount="15"/>
  174. <Button position="absolute 1153 717 1195 736" id="btn_save" class="btn5" text="저장" anchor="default" onclick="group3_btn_save_onclick"/>
  175. <Shape position="absolute 0 737 1195 743" linetype="horizontal" id="line5" class="line_3" anchor="default"/>
  176. </Layout>
  177. </Layouts>
  178. </Div>
  179. <Static id="caption9" text="적출물리스트" class="tit_2" position="absolute 0 67 111 83"/>
  180. </Layout>
  181. </Layouts>
  182. <Objects>
  183. <Dataset id="ds_grd_extlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  184. <ColumnInfo>
  185. <Column id="chk" type="STRING"/>
  186. <Column id="flag" type="STRING"/>
  187. <Column id="remstat" type="STRING"/>
  188. <Column id="extcrdt" type="STRING"/>
  189. <Column id="opdeptnm" type="STRING"/>
  190. <Column id="oproomnm" type="STRING"/>
  191. <Column id="hngnm" type="STRING"/>
  192. <Column id="sexage" type="STRING"/>
  193. <Column id="pid" type="STRING"/>
  194. <Column id="opdoctnm" type="STRING"/>
  195. <Column id="actnurnm" type="STRING"/>
  196. <Column id="extcrpart" type="STRING"/>
  197. <Column id="extcrcnt" type="STRING"/>
  198. <Column id="extcrweig" type="STRING"/>
  199. <Column id="infectflag" type="STRING"/>
  200. <Column id="infectetc" type="STRING"/>
  201. <Column id="opaprvyn" type="STRING"/>
  202. <Column id="remvdd" type="STRING"/>
  203. <Column id="remvnm" type="STRING"/>
  204. <Column id="checknurnm" type="STRING"/>
  205. <Column id="checknurid" type="STRING"/>
  206. <Column id="eoseqno" type="STRING"/>
  207. <Column id="oprsrvno" type="STRING"/>
  208. </ColumnInfo>
  209. </Dataset>
  210. <Dataset id="ds_init_cmb_checknurid" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  211. <ColumnInfo>
  212. <Column id="nm" type="STRING"/>
  213. <Column id="cd" type="STRING"/>
  214. </ColumnInfo>
  215. </Dataset>
  216. <Dataset id="ds_main_extinfo_extlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_extinfo_extlist_oncolumnchanged"/>
  217. <Dataset id="ds_main_ipt_extinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  218. <ColumnInfo>
  219. <Column id="remvdd" type="STRING" size="256"/>
  220. <Column id="remvnm" type="STRING" size="256"/>
  221. <Column id="checknurid" type="STRING" size="256"/>
  222. </ColumnInfo>
  223. <Rows>
  224. <Row>
  225. <Col id="remvdd"/>
  226. <Col id="remvnm"/>
  227. <Col id="checknurid"/>
  228. </Row>
  229. </Rows>
  230. </Dataset>
  231. <Dataset id="ds_main_totextinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  232. <ColumnInfo>
  233. <Column id="totextcrcnt" type="STRING" size="256"/>
  234. <Column id="totextcrweig" type="STRING" size="256"/>
  235. </ColumnInfo>
  236. <Rows>
  237. <Row>
  238. <Col id="totextcrcnt"/>
  239. <Col id="totextcrweig"/>
  240. </Row>
  241. </Rows>
  242. </Dataset>
  243. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  244. <Dataset id="ds_hidden_confpsninfo_confpsnlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  245. <ColumnInfo>
  246. <Column id="cd" type="STRING" size="256"/>
  247. <Column id="nm" type="STRING" size="256"/>
  248. </ColumnInfo>
  249. <Rows>
  250. <Row/>
  251. </Rows>
  252. </Dataset>
  253. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  254. <ColumnInfo>
  255. <Column id="wardcd" type="STRING" size="256"/>
  256. <Column id="fromdd" type="STRING" size="256"/>
  257. <Column id="todd" type="STRING" size="256"/>
  258. <Column id="rdocond" type="STRING" size="256"/>
  259. <Column id="flag" type="STRING" size="256"/>
  260. </ColumnInfo>
  261. <Rows>
  262. <Row>
  263. <Col id="wardcd"/>
  264. <Col id="fromdd"/>
  265. <Col id="todd"/>
  266. <Col id="rdocond"/>
  267. <Col id="flag"/>
  268. </Row>
  269. </Rows>
  270. </Dataset>
  271. <Dataset id="ds_init_M0194list_M0194" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  272. <Dataset id="ds_init_flag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  273. <ColumnInfo>
  274. <Column id="label" type="STRING" size="256"/>
  275. <Column id="value" type="STRING" size="256"/>
  276. </ColumnInfo>
  277. <Rows>
  278. <Row>
  279. <Col id="label">수술실</Col>
  280. <Col id="value">1</Col>
  281. </Row>
  282. <Row>
  283. <Col id="label">조직은행</Col>
  284. <Col id="value">2</Col>
  285. </Row>
  286. </Rows>
  287. </Dataset>
  288. <Dataset id="ds_prnt_totextinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  289. <Dataset id="ds_prnt_extinfo_extlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  290. </Objects>
  291. <Bind>
  292. <BindItem id="item0" compid="group3.grp_sea.radio1" propid="value" datasetid="ds_cond" columnid="flag"/>
  293. <BindItem id="item1" compid="group3.grp_sea.rdo_rdocond" propid="value" datasetid="ds_cond" columnid="rdocond"/>
  294. <BindItem id="item2" compid="group3.grp_sea.ipt_fromdd" propid="value" datasetid="ds_cond" columnid="fromdd"/>
  295. <BindItem id="item3" compid="group3.grp_sea.ipt_todd" propid="value" datasetid="ds_cond" columnid="todd"/>
  296. <BindItem id="item4" compid="group3.ipt_cnt" propid="value" datasetid="ds_main_totextinfo" columnid="totextcrcnt"/>
  297. <BindItem id="item5" compid="group3.ipt_weig" propid="value" datasetid="ds_main_totextinfo" columnid="totextcrweig"/>
  298. <BindItem id="item6" compid="group3.ipt_remvdd" propid="value" datasetid="ds_main_ipt_extinfo" columnid="remvdd"/>
  299. <BindItem id="item7" compid="group3.ipt_remvnm" propid="value" datasetid="ds_main_ipt_extinfo" columnid="remvnm"/>
  300. <BindItem id="item8" compid="group3.cmb_checknurid" propid="value" datasetid="ds_main_ipt_extinfo" columnid="checknurid"/>
  301. </Bind>
  302. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  303. * System Name :
  304. * Job Name :
  305. * Creator :
  306. * Make Date : 2015-11-13
  307. * Description :
  308. *---------------------------------------------------------------------------------------
  309. * Modify Date Modifier Modify Description
  310. *---------------------------------------------------------------------------------------
  311. * 2015-11-13 Live Converter TF->XP
  312. *
  313. *---------------------------------------------------------------------------------------
  314. ****************************************************************************************/
  315. include "com_commonxp::comm_main.xjs";
  316. include "com_basiccodexp::ZBC001.xjs";
  317. //include "emr_opanstxp::SMMNP00310.xjs";
  318. /*
  319. 적출물리스트관리(SMMNP00310.xfm - JScript )
  320. - Version :
  321. 1) : Ver.1.00.01
  322. */
  323. var arErrorCode = new HashArray();
  324. var xExtListPath = "_root_main_extinfo_extlist";
  325. var sFlag = "c";
  326. var chkHeadIndex = 1;
  327. /**
  328. * _group :
  329. * _ver : 2008.07.01
  330. * _by : dhkim
  331. * _---------------------------------------------------
  332. * _type : function
  333. * _access : public
  334. * _desc : 화면초기화
  335. * _param :
  336. * _param :
  337. * _return :
  338. * _---------------------------------------------------
  339. */
  340. function fInit(){
  341. //인스턴스초기화
  342. ds_send_reqdata.clearData();
  343. ds_hidden_confpsninfo_confpsnlist.clearData();
  344. ds_main_extinfo_extlist.clearData();
  345. ds_main_ipt_extinfo.clearData();
  346. ds_main_ipt_extinfo.addRow();
  347. ds_cond.clearData();
  348. ds_cond.addRow();
  349. dsf_makeValue(ds_cond, "fromdd", "string", utlf_getCurrentDate());
  350. dsf_makeValue(ds_cond, "todd", "string", utlf_getCurrentDate());
  351. dsf_makeValue(ds_cond, "rdocond", "string", sFlag);
  352. dsf_makeValue(ds_cond, "flag", "string", "")
  353. //조회조건 초기화
  354. ds_main_ipt_extinfo.setColumn(0, "remvdd", utlf_getCurrentDate());
  355. ds_main_ipt_extinfo.setColumn(0, "checknurid", sysf_getUserInfo("userid"));
  356. //**공통코드 가져오기**//
  357. // zbcfGetCodeList(
  358. // new Array ( "M0194" ) // 감염성 질환
  359. // , new Array ( "_root_init_M0194list") // 감염성 질환
  360. // );
  361. var arrParam = [{dsNm: "ds_init_M0194list_M0194", cdGrpId: "M0194"}];
  362. appf_getCodeList(arrParam);
  363. //화면 버튼 설정
  364. fValueChangedInfectRdo(sFlag);
  365. //수술실간호사리스트 조회(확인자콤보)
  366. fGetOpNrList();
  367. // 2016.09.23 kimdo3 확인필요
  368. // this.group3.grd_extlist.fixedcellcheckbox(0, this.group3.grd_extlist.colRef("chk")) = true;
  369. // this.group3.grd_extlist.fixedcellischeck(0, this.group3.grd_extlist.colRef("chk")) = true;
  370. fSearch();
  371. ////model.refresh();
  372. }
  373. /**
  374. * _group :
  375. * _ver : 2008.07.02
  376. * _by : dhkim
  377. * _---------------------------------------------------
  378. * _type : function
  379. * _access : public
  380. * _desc : 수술실간호사리스트조회
  381. * _param :
  382. * _param :
  383. * _return :
  384. * _---------------------------------------------------
  385. */
  386. function fGetOpNrList(){
  387. ds_send_reqdata.clearData();
  388. ds_send_reqdata.addRow();
  389. dsf_makeValue(ds_send_reqdata, "deptflag", "string", "015");
  390. dsf_makeValue(ds_send_reqdata, "searchdd", "string", utlf_getCurrentDate());
  391. var oParam = {};
  392. oParam.id = "TRMNP00312";
  393. oParam.service = "opanstapp.OpAnstRec";
  394. oParam.method = "reqGetOpNrList";
  395. oParam.inds = "reqdata=ds_send_reqdata";
  396. oParam.outds = "ds_hidden_confpsninfo_confpsnlist=confPsnList";
  397. oParam.async = false;
  398. oParam.callback = "cf_TRMNP00312";
  399. tranf_submit(oParam);
  400. if(arErrorCode.pop("TRMNP00312") < 0){
  401. sysf_messageBox('초기화를', 'E009');
  402. return;
  403. }
  404. }
  405. function cf_TRMNP00312(sSvcId, nErrorCode, sErrorMsg) {
  406. arErrorCode.push(sSvcId, nErrorCode);
  407. ds_hidden_confpsninfo_confpsnlist.updateColID("userid","cd");
  408. ds_hidden_confpsninfo_confpsnlist.updateColID("usernm","nm");
  409. }
  410. /**
  411. * _group :
  412. * _ver : 2008.07.01
  413. * _by : dhkim
  414. * _---------------------------------------------------
  415. * _type : function
  416. * _access : public
  417. * _desc : 회복환자조회
  418. * _param :
  419. * _param :
  420. * _return :
  421. * _---------------------------------------------------
  422. */
  423. function fSearch(){
  424. var fromdd = ds_cond.getColumn(0, "fromdd");
  425. var todd = ds_cond.getColumn(0, "todd");
  426. var rdocond = ds_cond.getColumn(0, "rdocond");
  427. var flag = ds_cond.getColumn(0, "flag");
  428. if( utlf_isNull(fromdd) ){
  429. fromdd = utlf_getCurrentDate();
  430. }
  431. if( utlf_isNull(todd) ){
  432. todd = utlf_getCurrentDate();
  433. }
  434. ds_cond.setColumn(0, "fromdd", fromdd);
  435. ds_cond.setColumn(0, "todd", todd);
  436. ds_main_totextinfo.clearData();
  437. ds_main_totextinfo.addRow();
  438. ds_main_totextinfo.setColumn( 0, "totextcrcnt", "");
  439. ds_main_totextinfo.setColumn( 0, "totextcrweig", "");
  440. //model.reset('_root_main_ipt_extinfo');
  441. ds_send_reqdata.clearData();
  442. ds_send_reqdata.addRow();
  443. dsf_makeValue( ds_send_reqdata, "fromdd", "string", fromdd);
  444. dsf_makeValue( ds_send_reqdata, "todd", "string", todd);
  445. dsf_makeValue( ds_send_reqdata, "rdocond", "string", rdocond);
  446. dsf_makeValue( ds_send_reqdata, "flag", "string", flag);
  447. var oParam = {};
  448. oParam.id = "TRMNP00311";
  449. oParam.service = "opanstapp.OpAnstRec";
  450. oParam.method = "reqGetExtInfoList";
  451. oParam.inds = "reqdata=ds_send_reqdata";
  452. oParam.outds = "ds_main_extinfo_extlist=extList";
  453. oParam.async = false;
  454. oParam.callback = "cf_TRMNP00311";
  455. tranf_submit(oParam);
  456. if(arErrorCode.pop("TRMNP00311") < 0){
  457. sysf_messageBox('적출물리스트조회를', 'E009');
  458. return;
  459. }
  460. // if(!submit('TRMNP00313', false)){
  461. // sysf_messageBox('적출물리스트조회를', 'E009');
  462. // return;
  463. // }
  464. if(ds_main_extinfo_extlist.rowcount< 1){
  465. group3.btn_print.enable = false;
  466. group3.btn_saveexcel.enable = false;
  467. group3.btn_save.enable = false;
  468. group3.btn_cncl.enable = false;
  469. group3.ipt_remvdd.enable = false;
  470. group3.ipt_remvnm.enable = false;
  471. group3.cmb_checknurid.enable = false;
  472. ds_main_totextinfo.setColumn( 0, "totextcrcnt", 0);
  473. ds_main_totextinfo.setColumn( 0, "totextcrweig", 0);
  474. group3.grd_extlist.setCellProperty("head", chkHeadIndex, "text", "0");
  475. }else{
  476. group3.btn_print.enable = true;
  477. group3.btn_saveexcel.enable = true;
  478. group3.btn_save.enable = true;
  479. group3.btn_cncl.enable = true;
  480. group3.ipt_remvdd.enable = true;
  481. group3.ipt_remvnm.enable = true;
  482. group3.cmb_checknurid.enable = true;
  483. totalCnt = 0;
  484. totalWeig = 0;
  485. for(var i = 0 ; i < ds_main_extinfo_extlist.rowcount; i++){
  486. infectInfo = "";
  487. infectArray = String(ds_main_extinfo_extlist.getColumn(i, "infectflag")).split(" ");
  488. for(var j = 0 ; j < ds_init_M0194list_M0194.rowcount; j++){
  489. for(var k = 0 ; k <= infectArray[k] ; k++){
  490. if(infectArray[k] == ds_init_M0194list_M0194.getColumn(j, "cdid")){
  491. if(infectInfo == ""){
  492. infectInfo = ds_init_M0194list_M0194.getColumn(j, "cdnm");
  493. }else{
  494. infectInfo += ", " + ds_init_M0194list_M0194.getColumn(j, "cdnm");
  495. }
  496. }
  497. }
  498. }
  499. //감염정보 입력
  500. ds_main_extinfo_extlist.setColumn( i , "infectflag", infectInfo);
  501. //총 개수, 총 중량 합계
  502. if(ds_main_extinfo_extlist.getColumn(i, "extcrcnt").isNumber()== true){
  503. totalCnt += eval(ds_main_extinfo_extlist.getColumn(i, "extcrcnt"));
  504. }
  505. if(ds_main_extinfo_extlist.getColumn(i, "extcrweig").isNumber() == true ){
  506. totalWeig += eval(ds_main_extinfo_extlist.getColumn(i, "extcrweig"));
  507. }
  508. }
  509. //총 개수, 총 중량 입력
  510. ds_main_totextinfo.setColumn( 0, "totextcrcnt", totalCnt);
  511. ds_main_totextinfo.setColumn( 0, "totextcrweig", totalWeig);
  512. if(ds_main_extinfo_extlist.getCaseCount("chk == 'Y' || chk == '1' ") > 0) {
  513. group3.grd_extlist.setCellProperty("head", chkHeadIndex, "text", "1");
  514. }
  515. else {
  516. group3.grd_extlist.setCellProperty("head", chkHeadIndex, "text", "0");
  517. for(var i = 0; i < ds_main_extinfo_extlist.rowcount; i++)
  518. {
  519. if(utlf_isNull(ds_main_extinfo_extlist.getColumn(i, "chk"))) {
  520. ds_main_extinfo_extlist.setColumn(i, "chk", "N");
  521. }
  522. }
  523. }
  524. }
  525. //model.refresh();
  526. }
  527. function cf_TRMNP00311(sSvcId, nErrorCode, sErrorMsg) {
  528. arErrorCode.push(sSvcId, nErrorCode);
  529. }
  530. /**
  531. * _group :
  532. * _ver : 2008.07.01
  533. * _by : dhkim
  534. * _---------------------------------------------------
  535. * _type : function
  536. * _access : public
  537. * _desc : 적출물리스트 수거일자, 수거자, 확인자 수정
  538. * _param :
  539. * _param :
  540. * _return :
  541. * _---------------------------------------------------
  542. */
  543. function fSave(){
  544. if(fIsValid()){
  545. ds_send_reqdata.clearData(); //model.removenode('_root_send');
  546. var detail_oDsUpdate = grdf_getGridUpdateData(group3.grd_extlist, "all");
  547. grdf_setStatusColumn(detail_oDsUpdate, "status");
  548. for(var i = 0; i < detail_oDsUpdate.rowcount; i++) {
  549. detail_oDsUpdate.setColumn(i, "status", "i");
  550. if( detail_oDsUpdate.getColumn(i, "chk") == "1" ){
  551. detail_oDsUpdate.setColumn(i, "chk", "Y");
  552. }
  553. }
  554. ds_send_reqdata.copyData(detail_oDsUpdate, true);
  555. var oParam = {};
  556. oParam.id = "TXMNP00311";
  557. oParam.service = "opanstapp.OpAnstRec";
  558. oParam.method = "reqSetExtInfoList";
  559. oParam.inds = "reqdata=ds_send_reqdata";
  560. oParam.outds = "";
  561. oParam.async = false;
  562. oParam.callback = "cf_TXMNP00311";
  563. tranf_submit(oParam);
  564. if(arErrorCode.pop("TXMNP00311") < 0){
  565. sysf_messageBox('적출물정보 수정을', 'E009');
  566. return;
  567. }else{
  568. fSearch();
  569. }
  570. }
  571. }
  572. function cf_TXMNP00311(sSvcId, nErrorCode, sErrorMsg) {
  573. arErrorCode.push(sSvcId, nErrorCode);
  574. }
  575. /**
  576. * _group :
  577. * _ver : 2008.07.01
  578. * _by : dhkim
  579. * _---------------------------------------------------
  580. * _type : function
  581. * _access : public
  582. * _desc : 적출물정보 수정하기전 유효성체크
  583. * _param :
  584. * _param :
  585. * _return :
  586. * _---------------------------------------------------
  587. */
  588. function fIsValid(){
  589. if(ds_main_extinfo_extlist.getCaseCount("chk == 'Y' || chk == '1'") <= 0){
  590. sysf_messageBox("수정 또는 저장할 내역을 선택하십시요","I");
  591. return;
  592. }
  593. //체크한 환자의 적출물은 입력된 내역으로 한꺼번에 반영하도록 한다.
  594. //입력받는 내역 : 수거일자, 수거자, 확인자
  595. var chk;
  596. var remvdd = ds_main_ipt_extinfo.getColumn(0, "remvdd"); //입력받은 수거일자
  597. var remvnm = ds_main_ipt_extinfo.getColumn(0, "remvnm"); //입력받은 수거자
  598. var checknurid = ds_main_ipt_extinfo.getColumn(0, "checknurid"); //입력받은 확인자 ID
  599. //var checknurnm = ds_main_ipt_extinfo.getColumn(0, "checknurnm"); //입력받은 확인자 이름
  600. if( utlf_isNull(remvdd) ){
  601. sysf_messageBox('수거일자를', 'C001');
  602. return false;
  603. }
  604. if( utlf_isNull(remvnm) ){
  605. sysf_messageBox('수거자를', 'C001');
  606. return false;
  607. }
  608. if( utlf_isNull(checknurid) ){
  609. sysf_messageBox('확인자를', 'C002');
  610. return;
  611. }
  612. for(var i = 0; i < ds_main_extinfo_extlist.rowcount; i++){
  613. chk = ds_main_extinfo_extlist.getColumn( i, "chk");
  614. if(chk == 'Y' || chk == '1'){
  615. //체크된 환자에게 입력한 적출물 수거 정보를 세팅한다.
  616. ds_main_extinfo_extlist.setColumn( i, "remvdd", remvdd);
  617. ds_main_extinfo_extlist.setColumn( i, "remvnm", remvnm);
  618. ds_main_extinfo_extlist.setColumn( i, "checknurid", checknurid);
  619. ds_main_extinfo_extlist.setColumn( i, "checknurnm", checknurid);
  620. }
  621. }
  622. ////model.refresh();
  623. return true;
  624. }
  625. /**
  626. * _group :
  627. * _ver : 2008.07.02
  628. * _by : dhkim
  629. * _---------------------------------------------------
  630. * _type : function
  631. * _access : public
  632. * _desc : Excel파일로 저장
  633. * _param :
  634. * _param :
  635. * _return :
  636. * _---------------------------------------------------
  637. */
  638. function fSaveExcel(){
  639. var exceldd = utlf_getCurrentDate();
  640. if(group3.grp_sea.rdo_rdocond.value == "b"){
  641. exceldd = group3.grp_sea.ipt_fromdd.value;
  642. }
  643. // var fileName = window.fileDialog("save", ",", false, "적출물리스트_"+exceldd, "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  644. // if (fileName != "") {
  645. // this.group3.grd_extlist.saveExcel(fileName, "SheetName", true, true, "", "", false);
  646. //}
  647. grdf_exportExcel(this.group3.grd_extlist, "적출물리스트_"+exceldd, "Sheet1" + exceldd, false, "" , 'user' , true);
  648. }
  649. /**
  650. * _group :
  651. * _ver : 2008.07.02
  652. * _by : dhkim
  653. * _---------------------------------------------------
  654. * _type : function
  655. * _access : public
  656. * _desc : 미수거리스트 출력물 미리보기 실행
  657. * _param :
  658. * _param :
  659. * _return :
  660. * _---------------------------------------------------
  661. */
  662. function fPrint(){
  663. if(ds_main_extinfo_extlist.getCaseCount("chk == 'Y' || chk == '1'") <= 0){
  664. sysf_messageBox("출력할 내역을 선택하십시요","I");
  665. return;
  666. }
  667. ds_prnt_extinfo_extlist.clearData();
  668. dsf_copyColInfo(ds_prnt_extinfo_extlist, ds_main_extinfo_extlist);
  669. //ds_prnt_extinfo_extlist.addRow();
  670. ds_prnt_totextinfo.clearData();
  671. dsf_copyColInfo(ds_prnt_totextinfo, ds_main_totextinfo);
  672. ds_prnt_totextinfo.addRow();
  673. totalCnt = 0;
  674. totalWeig = 0;
  675. prntyy = "";
  676. prntmm = "";
  677. prntdd = "";
  678. for(var i = 0; i < ds_main_extinfo_extlist.rowcount; i++){
  679. chk = ds_main_extinfo_extlist.getColumn( i , "chk");
  680. if(chk == 'Y' || chk == '1'){
  681. //체크된 정보 copy
  682. noderow = ds_prnt_extinfo_extlist.addRow();
  683. ds_prnt_extinfo_extlist.copyRow( noderow, ds_main_extinfo_extlist, i);
  684. //총 개수, 총 중량 합계
  685. if(ds_main_extinfo_extlist.getColumn(i, "extcrcnt").isNumber()== true){
  686. totalCnt += eval(ds_main_extinfo_extlist.getColumn(i, "extcrcnt"));
  687. }
  688. if(ds_main_extinfo_extlist.getColumn(i, "extcrweig").isNumber() == true ){
  689. totalWeig += eval(ds_main_extinfo_extlist.getColumn(i, "extcrweig"));
  690. }
  691. }
  692. }
  693. if(group3.grp_sea.rdo_rdocond.value == "a"){
  694. prntdd = ds_cond.getColumn(0, "fromdd").substr(0,4) + "-" + ds_cond.getColumn(0, "fromdd").substr(4,2) + "-" + ds_cond.getColumn(0, "fromdd").substr(6,2) + " ~ "
  695. + ds_cond.getColumn(0, "todd").substr(0,4) + "-" + ds_cond.getColumn(0, "todd").substr(4,2) + "-" + ds_cond.getColumn(0, "todd").substr(6,2)
  696. }else if(group3.grp_sea.rdo_rdocond.value == "b"){
  697. prntyy = ds_cond.getColumn(0, "fromdd").substr(0,4) + "년";
  698. prntmm = ds_cond.getColumn(0, "fromdd").substr(4,2) + "월";
  699. prntdd = ds_cond.getColumn(0, "fromdd").substr(6,2) + "일";
  700. }else if(group3.grp_sea.rdo_rdocond.value == "c"){
  701. prntyy = ds_main_ipt_extinfo.getColumn(0, "remvdd").substr(0,4) + "년";
  702. prntmm = ds_main_ipt_extinfo.getColumn(0, "remvdd").substr(4,2) + "월";
  703. prntdd = ds_main_ipt_extinfo.getColumn(0, "remvdd").substr(6,2) + "일";
  704. }
  705. dsf_makeValue( ds_prnt_totextinfo, "prntflag", "string", this.group3.grp_sea.rdo_rdocond.value);
  706. dsf_makeValue( ds_prnt_totextinfo, "prntyy", "string", prntyy);
  707. dsf_makeValue( ds_prnt_totextinfo, "prntmm", "string", prntmm);
  708. dsf_makeValue( ds_prnt_totextinfo, "prntdd", "string", prntdd);
  709. dsf_makeValue( ds_prnt_totextinfo, "totextcrcnt", "string", totalCnt);
  710. dsf_makeValue( ds_prnt_totextinfo, "totextcrweig", "string", totalWeig);
  711. var objDOM = rptf_createDOM(); // DOM 객체 설정
  712. rptf_setNodeListToDOM(objDOM, "/root/prnt/extinfo/extlist", ds_prnt_extinfo_extlist); // 데이터셋 1
  713. //rptf_setValueToDOM(objDOM, "/root/prnt/totextinfo/prntflag", group3.grp_sea.rdo_rdocond.value); // 데이터셋 2
  714. rptf_setValueToDOM(objDOM, "/root/prnt/totextinfo/prntyy", prntyy); // 데이터셋 2
  715. rptf_setValueToDOM(objDOM, "/root/prnt/totextinfo/prntmm", prntmm); // 데이터셋 2
  716. rptf_setValueToDOM(objDOM, "/root/prnt/totextinfo/prntdd", prntdd); // 데이터셋 2
  717. rptf_setValueToDOM(objDOM, "/root/prnt/totextinfo/totextcrcnt", totalCnt); // 데이터셋 2
  718. rptf_setValueToDOM(objDOM, "/root/prnt/totextinfo/totextcrweig", totalWeig); // 데이터셋 2
  719. rptf_setValueToDOM(objDOM, "/root/cond/fromdd", ds_cond.getColumn(0, "fromdd")); // 데이터셋 2
  720. rptf_setValueToDOM(objDOM, "/root/cond/todd", ds_cond.getColumn(0, "todd")); // 데이터셋 2
  721. rptf_setValueToDOM(objDOM, "/root/cond/rdocond", ds_cond.getColumn(0, "rdocond")); // 데이터셋 2
  722. var objParam = new Object();
  723. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  724. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  725. rptf_exeReportPreview30(["RPMNP00310"],[objParam], option);
  726. ds_prnt_extinfo_extlist.clearData();
  727. }
  728. /**
  729. * _group :
  730. * _ver : 2008.07.02
  731. * _by : dhkim
  732. * _---------------------------------------------------
  733. * _type : function
  734. * _access : public
  735. * _desc : 수거구분 조회 정보 변경 시 이벤트
  736. * _param :
  737. * _param :
  738. * _return :
  739. * _---------------------------------------------------
  740. */
  741. function fValueChangedInfectRdo(pParam){
  742. switch(pParam){
  743. case "a":
  744. this.group3.grp_sea.caption2.visible = true; //조회일자 caption
  745. this.group3.grp_sea.ipt_fromdd.visible = true; //from 일자
  746. this.group3.grp_sea.caption7.visible = true; //~ caption
  747. this.group3.grp_sea.ipt_todd.visible = true; //to 일자
  748. this.group3.btn_print.visible = false; //출력버튼
  749. this.group3.btn_cncl.visible = false; //수거취소버튼
  750. break;
  751. case "b":
  752. this.group3.grp_sea.caption2.visible = true; //조회일자 caption
  753. this.group3.grp_sea.ipt_fromdd.visible = true; //from 일자
  754. this.group3.grp_sea.caption7.visible = false; //~ caption
  755. this.group3.grp_sea.ipt_todd.visible = false; //to 일자
  756. this.group3.btn_print.visible = true; //출력버튼
  757. this.group3.btn_cncl.visible = true; //수거취소버튼
  758. break;
  759. case "c":
  760. this.group3.grp_sea.caption2.visible = false; //조회일자 caption
  761. this.group3.grp_sea.ipt_fromdd.visible = false; //from 일자
  762. this.group3.grp_sea.caption7.visible = false; //~ caption
  763. this.group3.grp_sea.ipt_todd.visible = false; //to 일자
  764. this.group3.btn_print.visible = true; //출력버튼
  765. this.group3.btn_cncl.visible = false; //수거취소버튼
  766. break;
  767. }
  768. }
  769. /**
  770. * _group :
  771. * _ver : 2009.01.29
  772. * _by : dhkim
  773. * _---------------------------------------------------
  774. * _type : function
  775. * _access : public
  776. * _desc : 수거취소 버튼 이벤트
  777. * _param :
  778. * _param :
  779. * _return :
  780. * _---------------------------------------------------
  781. */
  782. function fCncl(){
  783. if(ds_main_extinfo_extlist.getCaseCount("chk == 'Y' || chk == '1'") <= 0){
  784. sysf_messageBox("수거 취소할 내역을 선택하십시요.","I");
  785. return;
  786. }
  787. ds_send_reqdata.clearData();
  788. ds_send_reqdata.addRow();
  789. var detail_oDsUpdate = grdf_getGridUpdateData(group3.grd_extlist, "all");
  790. grdf_setStatusColumn(detail_oDsUpdate, "status");
  791. for(var i = 0; i < detail_oDsUpdate.rowcount; i++) {
  792. detail_oDsUpdate.setColumn(i, "status", "u");
  793. if( detail_oDsUpdate.getColumn(i, "chk") == "1" ){
  794. detail_oDsUpdate.setColumn(i, "chk", "Y");
  795. }
  796. }
  797. ds_send_reqdata.copyData(detail_oDsUpdate, true);
  798. var oParam = {};
  799. oParam.id = "TXMNP00311";
  800. oParam.service = "opanstapp.OpAnstRec";
  801. oParam.method = "reqSetExtInfoList";
  802. oParam.inds = "reqdata=ds_send_reqdata";
  803. oParam.outds = "";
  804. oParam.async = false;
  805. oParam.callback = "cf_TXMNP00311";
  806. tranf_submit(oParam);
  807. if(arErrorCode.pop("TXMNP00311") < 0){
  808. sysf_messageBox('적출물정보 수정을', 'E009');
  809. return;
  810. }else{
  811. fSearch();
  812. }
  813. }
  814. function SMMNP00310_onload(obj:Form, e:LoadEventInfo)
  815. {
  816. frmf_initForm(obj); //폼 초기화
  817. grdf_initGrid(this.group3.grd_extlist);
  818. //초기화
  819. //fInit();
  820. this.setTimer(0, 100);
  821. }
  822. function group3_grp_sea_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  823. {
  824. fSearch();
  825. }
  826. function group3_grp_sea_rdo_rdocond_onitemclick(obj:Radio, e:RadioMouseEventInfo)
  827. {
  828. group3.grp_sea.rdo_rdocond.value = e.itemvalue;
  829. fSearch();
  830. }
  831. function group3_grp_sea_rdo_rdocond_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  832. {
  833. //group3.grd_extlist.setCellProperty("head", chkHeadIndex, "text", "0");
  834. fValueChangedInfectRdo(group3.grp_sea.rdo_rdocond.value);
  835. }
  836. function group3_grp_sea_btn_srch_onclick(obj:Button, e:ClickEventInfo)
  837. {
  838. fSearch();
  839. }
  840. function group3_btn_cncl_onclick(obj:Button, e:ClickEventInfo)
  841. {
  842. fCncl();
  843. }
  844. function group3_btn_print_onclick(obj:Button, e:ClickEventInfo)
  845. {
  846. fPrint();
  847. }
  848. function group3_btn_saveexcel_onclick(obj:Button, e:ClickEventInfo)
  849. {
  850. fSaveExcel();
  851. }
  852. function group3_btn_save_onclick(obj:Button, e:ClickEventInfo)
  853. {
  854. fSave();
  855. }
  856. function ds_main_extinfo_extlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  857. {
  858. if(e.col >0) {
  859. if(e.columnid=="chk") {
  860. if(utlf_isNull(e.newvalue)) {
  861. obj.setColumn(e.row,e.columnid,"N");
  862. }
  863. else {
  864. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  865. }
  866. }
  867. }
  868. }
  869. function SMMNP00310_ontimer(obj:Form, e:TimerEventInfo)
  870. {
  871. if( e.timerid == 0 ){
  872. this.killTimer( 0 );
  873. fInit();
  874. }
  875. }
  876. var lastrow1 = -1;
  877. var lastcol1 = -1;
  878. var bDrop1 = false;
  879. function group3_grd_extlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  880. {
  881. lastrow1 = -1;
  882. lastcol1 = -1;
  883. }
  884. function group3_grd_extlist_oncloseup(obj:Grid, e:GridEditEventInfo)
  885. {
  886. var dsGridBind = eval(obj.binddataset);
  887. var preVal = utlf_transNullToEmpty(dsGridBind.getColumn(e.row, e.col));
  888. var posVal = utlf_transNullToEmpty(e.value);
  889. if( bDrop1 == true && (!utlf_isNull(posVal) || preVal != posVal) ){
  890. obj.showEditor(false);
  891. }
  892. bDrop1 = false;
  893. lastrow1 = e.row;
  894. lastcol1 = e.col;
  895. }
  896. function group3_grd_extlist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
  897. {
  898. grdf_setSelectedCell(obj, e);
  899. var dsGridBind = eval(obj.binddataset);
  900. // Combo DropDown Click 처리
  901. obj.autoenter = "key";
  902. if( e.fromreferenceobject.name == "dropbutton" ){
  903. bDrop1 = true;
  904. }
  905. if( e.row > -1 && obj.getCellProperty("body", e.col, "edittype") == "combo" ){
  906. // Combo 선택시 활성화 및 combodatacol 변경
  907. if( grdf_getSelectedCols(obj).length == 0 && grdf_getSelectedRows(obj).length == 0 && obj.getEditText() == undefined ){
  908. obj.showEditor(true);
  909. }else{
  910. if(!obj.isDropdownCombo() && (lastrow1 != e.row || lastcol1 != e.col)) {
  911. obj.setCellPos(e.col);
  912. dsGridBind.rowposition = e.row;
  913. obj.showEditor(true);
  914. if(bDrop1) {
  915. obj.dropdownCombo();
  916. }
  917. }
  918. }
  919. }else{
  920. obj.autoenter = "key";
  921. }
  922. }
  923. ]]></Script>
  924. </Form>
  925. </FDL>