SMAEB00100_검사치료실관리.xfdl 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAEB00100" position="absolute 0 0 1197 796" titletext="검사/치료실 관리" onload="SMAEB00100_onload" oninit="SMAEB00100_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_srch" taborder="1" position="absolute 0 27 1195 67" class="div_SA" anchor="left top right"/>
  8. <Shape position="absolute 1108 37 1114 59" linetype="vertical" id="line13" class="line_4" anchor="top right"/>
  9. <Button position="absolute 1127 38 1183 59" id="btn_sea" class="btn1" text="조회" onclick="btn_sea_onclick" anchor="top right"/>
  10. <Static text="실 코드 :" position="absolute 16 38 102 55" id="caption2" class="search_name"/>
  11. <Button position="absolute 238 38 254 55" id="button61" class="icon_search" text="" onclick="button61_onclick"/>
  12. <Edit position="absolute 98 37 233 56" id="ipt_basecd" class="input_search" autoselect="true" onkeyup="ipt_basecd_onkeyup"/>
  13. <Radio position="absolute 289 39 389 58" id="rdo_roomflag" visible="false" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn">
  14. <Dataset id="innerdataset">
  15. <ColumnInfo>
  16. <Column id="codecolumn" size="256"/>
  17. <Column id="datacolumn" size="256"/>
  18. </ColumnInfo>
  19. <Rows>
  20. <Row>
  21. <Col id="codecolumn">R</Col>
  22. <Col id="datacolumn">일반</Col>
  23. </Row>
  24. <Row>
  25. <Col id="codecolumn">Z</Col>
  26. <Col id="datacolumn">보류</Col>
  27. </Row>
  28. </Rows>
  29. </Dataset>
  30. </Radio>
  31. <Static text="검사/치료실 현황" position="absolute 0 78 152 96" id="caption1" class="tit_2"/>
  32. <Button position="absolute 1086 72 1139 94" id="btn_grdadd" class="btn2" text="행추가" onclick="btn_grdadd_onclick" anchor="top right"/>
  33. <Button position="absolute 1142 72 1195 94" id="btn_grddel" class="btn2" enable="true" text="행삭제" onclick="btn_grddel_onclick" anchor="top right"/>
  34. <Grid position="absolute 0 99 1195 762" id="grd_examcureroom" class="datagrid2" binddataset="ds_main_examcurelist_item" autosizingtype="row" cellsizingtype="both" extendsizetype="row" selecttype="multirow" autoenter="key" onexpandup="grd_examcureroom_onexpandup" anchor="all">
  35. <Formats>
  36. <Format id="default">
  37. <Columns>
  38. <Column size="25" band="left"/>
  39. <Column size="41"/>
  40. <Column size="80"/>
  41. <Column size="187"/>
  42. <Column size="79"/>
  43. <Column size="39"/>
  44. <Column size="88"/>
  45. <Column size="89"/>
  46. <Column size="57"/>
  47. <Column size="67"/>
  48. <Column size="81"/>
  49. <Column size="81"/>
  50. <Column size="57"/>
  51. <Column size="58"/>
  52. <Column size="60"/>
  53. <Column size="75"/>
  54. <Column size="104"/>
  55. <Column size="100"/>
  56. <Column size="100"/>
  57. <Column size="0"/>
  58. <Column size="166"/>
  59. <Column size="150"/>
  60. <Column size="0"/>
  61. <Column size="0"/>
  62. </Columns>
  63. <Rows>
  64. <Row size="35" band="head"/>
  65. <Row size="24"/>
  66. </Rows>
  67. <Band id="head">
  68. <Cell/>
  69. <Cell col="1" text="순번"/>
  70. <Cell col="2" text="검사실코드"/>
  71. <Cell col="3" text="검사실명"/>
  72. <Cell col="4" text="실 그룹"/>
  73. <Cell col="5" text="개폐&#10;여부"/>
  74. <Cell col="6" text="검사장비&#10;가능코드"/>
  75. <Cell col="7" text="실 구분"/>
  76. <Cell col="8" text="접수화면&#10;표시여부"/>
  77. <Cell col="9" text="자동방배정&#10;여부"/>
  78. <Cell col="10" text="예약시간변경&#10;통제여부"/>
  79. <Cell col="11" text="예약가용인원&#10;통제여부"/>
  80. <Cell col="12" text="검통응급&#10;표시여부"/>
  81. <Cell col="13" text="검통건진&#10;표시여부"/>
  82. <Cell col="14" text="나이제한&#10;연령"/>
  83. <Cell col="15" text="담당자"/>
  84. <Cell col="16" text="담당부서"/>
  85. <Cell col="17" text="집계부서"/>
  86. <Cell col="18" text="집계부서코드"/>
  87. <Cell col="19" text="SEQ"/>
  88. <Cell col="20" text="환자 가야할 곳"/>
  89. <Cell col="21" text="전광판 표시명칭"/>
  90. <Cell col="22" text="rbasecdflag"/>
  91. <Cell col="23" text="basesuppdeptcd"/>
  92. </Band>
  93. <Band id="body">
  94. <Cell celltype="head" text="expr:currow+1"/>
  95. <Cell col="1" displaytype="text" edittype="text" text="bind:sortno" editautoselect="true"/>
  96. <Cell col="2" displaytype="text" edittype="text" text="bind:basecd" editautoselect="true"/>
  97. <Cell col="3" displaytype="text" edittype="text" text="bind:basecdflagdesc" editautoselect="true"/>
  98. <Cell col="4" displaytype="text" edittype="text" text="bind:basecdcnts" editautoselect="true"/>
  99. <Cell col="5" displaytype="combo" edittype="combo" style="align:center;" text="bind:baseroomopenyn" combodataset="ds_init_yn" combocodecol="label" combodatacol="value"/>
  100. <Cell col="6" displaytype="text" edittype="expand" text="bind:excuposseqcd" expandshow="show"/>
  101. <Cell col="7" displaytype="combo" edittype="combo" style="align:center;" text="bind:baseroomflag" combodataset="ds_init_baseinfo_initexecbaseflag_A0074" combocodecol="cdid" combodatacol="cdnm" combodisplayrowcount="20"/>
  102. <Cell col="8" displaytype="combo" edittype="combo" style="align:center;" text="bind:rcptscrndispyn" combodataset="ds_init_yn" combocodecol="label" combodatacol="value"/>
  103. <Cell col="9" celltype="none" displaytype="combo" edittype="combo" style="align:center;" text="bind:autroomassgyn" combodataset="ds_init_yn" combocodecol="label" combodatacol="value"/>
  104. <Cell col="10" displaytype="combo" edittype="combo" style="align:center;" text="bind:rsrvtmcntlyn" combodataset="ds_init_yn" combocodecol="label" combodatacol="value"/>
  105. <Cell col="11" displaytype="combo" edittype="combo" style="align:center;" text="bind:rsrvpsnnocntlyn" combodataset="ds_init_yn" combocodecol="label" combodatacol="value"/>
  106. <Cell col="12" displaytype="combo" edittype="combo" style="align:center;" text="bind:sytserdispyn" combodataset="ds_init_yn" combocodecol="label" combodatacol="value"/>
  107. <Cell col="13" displaytype="combo" edittype="combo" style="align:center;" text="bind:sytshealdispyn" combodataset="ds_init_yn" combocodecol="label" combodatacol="value"/>
  108. <Cell col="14" edittype="normal" editfilter="number" text="bind:sonoage" editlimit="3" editautoselect="true"/>
  109. <Cell col="15" displaytype="text" edittype="text" text="bind:userid" editautoselect="true"/>
  110. <Cell col="16" displaytype="text" edittype="text" text="bind:nextexcuroomcd" editautoselect="true"/>
  111. <Cell col="17" displaytype="text" edittype="expand" text="bind:execdeptnm" wordwrap="word" expandshow="show" autosizerow="limitmin" enable="true"/>
  112. <Cell col="18" text="bind:execdeptcd"/>
  113. <Cell col="19" text="bind:seq"/>
  114. <Cell col="20" displaytype="text" edittype="text" text="bind:smlstandnm" wordwrap="word" editautoselect="true" autosizerow="limitmin"/>
  115. <Cell col="21" displaytype="text" edittype="text" text="bind:dispnm" wordwrap="word" editautoselect="true" autosizerow="limitmin"/>
  116. <Cell col="22" displaytype="text" edittype="text" text="bind:rbasecdflag"/>
  117. <Cell col="23" displaytype="text" edittype="text" text="bind:basesuppdeptcd"/>
  118. </Band>
  119. </Format>
  120. </Formats>
  121. </Grid>
  122. <Static text="검사/치료실 관리" position="absolute 0 0 140 27" id="caption6" class="tit_1"/>
  123. <Shape id="line32" class="line_10" position="absolute 0 94 1195 100" anchor="left top right"/>
  124. <Button id="btn_selcalcscorcd" taborder="2" text="부서코드조회" class="btn2" position="absolute 995 72 1083 94" onclick="btn_selcalcscorcd_onclick" anchor="top right"/>
  125. <Shape id="line00" class="line_1" position="absolute 0 763 1195 769" anchor="left right bottom"/>
  126. <Button id="btn_save" taborder="3" text="저장" class="btn4" position="absolute 1139 769 1195 791" anchor="right bottom" onclick="btn_save_onclick"/>
  127. </Layout>
  128. </Layouts>
  129. <Objects>
  130. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  131. <ColumnInfo>
  132. <Column id="basecd" type="STRING" size="256"/>
  133. <Column id="roomflag" type="STRING" size="256"/>
  134. <Column id="basesuppdeptcd" type="STRING" size="256"/>
  135. <Column id="gb" type="STRING" size="256"/>
  136. <Column id="suppdeptcd" type="STRING" size="256"/>
  137. </ColumnInfo>
  138. <Rows>
  139. <Row>
  140. <Col id="roomflag">R</Col>
  141. </Row>
  142. </Rows>
  143. </Dataset>
  144. <Dataset id="ds_main_examcurelist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  145. <ColumnInfo>
  146. <Column id="sortno" type="STRING" size="256" sumtext="정렬번호"/>
  147. <Column id="basecd" type="STRING" size="256" sumtext="기본코드"/>
  148. <Column id="basecdflagdesc" type="STRING" size="256" sumtext="코드설명"/>
  149. <Column id="basecdcnts" type="STRING" size="256" sumtext="코드내용"/>
  150. <Column id="orddrid" type="STRING" size="256" sumtext="진료의"/>
  151. <Column id="baseroomopenyn" type="STRING" size="256" sumtext="개폐여부"/>
  152. <Column id="excuposseqcd" type="STRING" size="256" sumtext="검사장비가능코드"/>
  153. <Column id="baseroomflag" type="STRING" size="256" sumtext="실구분"/>
  154. <Column id="rcptscrndispyn" type="STRING" size="256" sumtext="화면표시여부"/>
  155. <Column id="basesuppdeptcd" type="STRING" size="256" sumtext="지원부서코드"/>
  156. <Column id="userid" type="STRING" size="256" sumtext="검사실코드"/>
  157. <Column id="autroomassgyn" type="STRING" size="256" sumtext="자동방배정여부"/>
  158. <Column id="rsrvtmcntlyn" type="STRING" size="256" sumtext="예약시간변경여부"/>
  159. <Column id="rsrvpsnnocntlyn" type="STRING" size="256" sumtext="예약인원통제여부"/>
  160. <Column id="sytserdispyn" type="STRING" size="256" sumtext="검통응급표시여부"/>
  161. <Column id="sytshealdispyn" type="STRING" size="256" sumtext="검통건진여부"/>
  162. <Column id="nextexcuroomcd" type="STRING" size="256" sumtext="다음치료실"/>
  163. <Column id="execdeptcd" type="STRING" size="256" sumtext="집계부서"/>
  164. <Column id="execdeptnm" type="STRING" size="256" sumtext="집계부서코드"/>
  165. <Column id="sonoage" type="STRING" size="256" sumtext="나이제한연령"/>
  166. <Column id="seq" type="STRING" size="256" sumtext="순번"/>
  167. <Column id="smlstandnm" type="STRING" size="256" sumtext="소대기명"/>
  168. <!-- 2010.11.27 c y w -->
  169. <Column id="dispnm" type="STRING" size="256" sumtext="전광판표시명칭"/>
  170. </ColumnInfo>
  171. </Dataset>
  172. <Dataset id="ds_init_baseinfo_initexecbaseflag_A0074" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  173. <Dataset id="ds_req" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  174. <ColumnInfo>
  175. <Column id="cdgrupid" type="STRING" size="256" sumtext="기초코드 그룹 ID"/>
  176. <Column id="cdid" type="STRING" size="256" sumtext="코드ID"/>
  177. <Column id="cdnm" type="STRING" size="256" sumtext="코드명"/>
  178. <Column id="sortfield" type="STRING" size="256" sumtext="정렬필드"/>
  179. <Column id="sortmethod" type="STRING" size="256" sumtext="정렬방법"/>
  180. <Column id="basedd" type="STRING" size="256" sumtext="기준일자(yyyymmdd)"/>
  181. </ColumnInfo>
  182. </Dataset>
  183. <Dataset id="ds_init_cmb_info_initexcuroom" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  184. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  185. <ColumnInfo>
  186. <Column id="prestdeptcd" type="STRING" size="256"/>
  187. <Column id="prestdeptnm" type="STRING" size="256"/>
  188. </ColumnInfo>
  189. <Rows>
  190. <Row/>
  191. </Rows>
  192. </Dataset>
  193. <Dataset id="ds_init_yn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  194. <ColumnInfo>
  195. <Column id="label" type="STRING" size="256"/>
  196. <Column id="value" type="STRING" size="256"/>
  197. </ColumnInfo>
  198. <Rows>
  199. <Row>
  200. <Col id="label">Y</Col>
  201. <Col id="value">Y</Col>
  202. </Row>
  203. <Row>
  204. <Col id="label">N</Col>
  205. <Col id="value">N</Col>
  206. </Row>
  207. </Rows>
  208. </Dataset>
  209. <Dataset id="ds_send_req_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  210. </Objects>
  211. <Bind>
  212. <BindItem id="item0" compid="rdo_roomflag" propid="value" datasetid="ds_send" columnid="rbasecdflag"/>
  213. <BindItem id="item1" compid="ipt_basecd" propid="value" datasetid="ds_send" columnid="basecd"/>
  214. </Bind>
  215. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  216. * System Name :
  217. * Job Name :
  218. * Creator :
  219. * Make Date : 2015-11-13
  220. * Description :
  221. *---------------------------------------------------------------------------------------
  222. * Modify Date Modifier Modify Description
  223. *---------------------------------------------------------------------------------------
  224. * 2015-11-13 Live Converter TF->XP
  225. *
  226. *---------------------------------------------------------------------------------------
  227. ****************************************************************************************/
  228. include "com_commonxp::comm_main.xjs";
  229. include "ast_examcurexp::AEZ0001.xjs";
  230. include "com_departmentcodexp::ZSD001.xjs";
  231. var vSuppdeptcd;
  232. function SMAEB00100_oninit(obj:Form, e:InitEventInfo)
  233. {
  234. frmf_initForm(obj);
  235. }
  236. function SMAEB00100_onload(obj:Form, e:LoadEventInfo)
  237. {
  238. grdf_initGrid(grd_examcureroom);
  239. grdf_setRowTypeIcon(grd_examcureroom, 0);
  240. var suppdeptcd = "";
  241. //suppdeptcd = frmf_getMenuParam();
  242. //trace( "1.suppdeptcd = " +suppdeptcd);
  243. // lf_aezfSetSuppDeptcd_main();
  244. lf_aezfSetSuppDeptcd(); //AEZ0001.xjs
  245. suppdeptcd = frmf_getParameter("AST_DEPTCD");
  246. //20180822 진료과 설정
  247. if (utlf_transNullToEmpty(suppdeptcd) =="") {
  248. suppdeptcd = sysf_getUserInfo( "dutplcecd" );
  249. }
  250. if (utlf_isNull(suppdeptcd) || suppdeptcd == "" || suppdeptcd == " ")
  251. {
  252. lf_aezfSetSuppDeptcd();
  253. vSuppdeptcd = frmf_getPrestDeptCd();
  254. ds_send.setColumn(0, "basesuppdeptcd", vSuppdeptcd);
  255. ds_send.setColumn(0, "suppdeptcd", vSuppdeptcd);
  256. }
  257. else
  258. {
  259. ds_send.setColumn(0, "basesuppdeptcd", suppdeptcd);
  260. ds_send.setColumn(0, "suppdeptcd", suppdeptcd);
  261. }
  262. var arrParam = [{dsNm: "ds_init_baseinfo_initexecbaseflag_A0074", cdGrpId: "A0074"}]
  263. appf_getCodeList(arrParam);
  264. //submit("TRZBC00101", false);
  265. dsf_createDs("ds_cmd");
  266. ds_cmd.addColumn("minimum", "string");
  267. ds_cmd.addColumn("join", "string");
  268. dsf_setFixVal(ds_cmd, "minimum:true,join:false");
  269. ds_main_examcurelist_item.clearData();
  270. var oParam = {};
  271. oParam.id = "TRAEB00102";
  272. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  273. oParam.method = "reqGetInitExcureRoomList";
  274. oParam.inds = "reqparam=ds_send";
  275. oParam.outds = "ds_init_cmb_info_initexcuroom=initexcuroom";
  276. oParam.async = false;
  277. //oParam.callback = "cf_TRAEB00102";
  278. tranf_submit(oParam);
  279. ipt_basecd.setFocus();
  280. }
  281. function ipt_basecd_onkeyup(obj:Edit, e:KeyEventInfo)
  282. {
  283. if(e.keycode == 13)
  284. {
  285. obj.updateToDataset();
  286. btn_sea.click();
  287. }
  288. }
  289. function button61_onclick(obj:Button, e:ClickEventInfo)
  290. {
  291. //이벤트없음
  292. }
  293. function btn_sea_onclick(obj:Button, e:ClickEventInfo)
  294. {
  295. dsf_setFixVal(ds_send, "gb:1");
  296. dsf_makeValue(ds_send, "rbasecdflag", "string", ds_send.getColumn(0, "roomflag"));
  297. //20190419
  298. dsf_makeValue(ds_send, "basesuppdeptcd", "string", ds_send.getColumn(0, "basesuppdeptcd"));
  299. var oParam = {};
  300. oParam.id = "TRAEB00101";
  301. oParam.service = "examcurebaseapp.ExamCureRoom";
  302. oParam.method = "reqGetExamCureRoomGrpList";
  303. oParam.inds = "req=ds_send";
  304. oParam.outds = "ds_main_examcurelist_item=item";
  305. oParam.async = false;
  306. //oParam.callback = "cf_TRAEB00101";
  307. tranf_submit(oParam);
  308. }
  309. function btn_selcalcscorcd_onclick(obj:Button, e:ClickEventInfo)
  310. {
  311. var iRow = ds_main_examcurelist_item.rowposition;
  312. var search_condition = "deptnm";
  313. var search_term = "";
  314. ds_temp.setColumn(0, "prestdeptcd", "");
  315. ds_temp.setColumn(0, "prestdeptnm", "");
  316. var standard_yn = null;
  317. var ord_deptflag = null;
  318. var objDept = appf_openInstDeptCodeList(search_condition, search_term, standard_yn, ord_deptflag, "deptcd depthngnm")
  319. ds_temp.setColumn(0,"prestdeptcd",objDept.deptcd);
  320. ds_temp.setColumn(0,"prestdeptnm",objDept.depthngnm);
  321. var addRow = ds_main_examcurelist_item.addRow();
  322. ds_main_examcurelist_item.setColumn(addRow, "basecd", ds_temp.getColumn(0, "prestdeptcd"));
  323. ds_main_examcurelist_item.setColumn(addRow, "basecdflagdesc", ds_temp.getColumn(0, "prestdeptnm"));
  324. ds_main_examcurelist_item.setColumn(addRow, "basesuppdeptcd", ds_send.getColumn(0, "basesuppdeptcd"));
  325. ds_main_examcurelist_item.setColumn(addRow, "rsrvtmcntlyn", "N");
  326. ds_main_examcurelist_item.setColumn(addRow, "rsrvpsnnocntlyn", "N");
  327. ds_main_examcurelist_item.setColumn(addRow, "autroomassgyn", "N");
  328. ds_main_examcurelist_item.setColumn(addRow, "sytserdispyn", "N");
  329. ds_main_examcurelist_item.setColumn(addRow, "sytshealdispyn", "N");
  330. }
  331. function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  332. {
  333. var addRow = ds_main_examcurelist_item.addRow();
  334. ds_main_examcurelist_item.setColumn(addRow, "basesuppdeptcd", ds_send.getColumn(0, "basesuppdeptcd"));
  335. ds_main_examcurelist_item.setColumn(addRow, "rsrvtmcntlyn", "N");
  336. ds_main_examcurelist_item.setColumn(addRow, "rsrvpsnnocntlyn", "N");
  337. ds_main_examcurelist_item.setColumn(addRow, "autroomassgyn", "N");
  338. ds_main_examcurelist_item.setColumn(addRow, "sytserdispyn", "N");
  339. ds_main_examcurelist_item.setColumn(addRow, "sytshealdispyn", "N");
  340. }
  341. function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  342. {
  343. var rows = grdf_getSelectedRows(grd_examcureroom);
  344. for(var i = rows.length-1; i >= 0; i--)
  345. {
  346. var m_row = rows[i];
  347. if(ds_main_examcurelist_item.getRowType(m_row) == 2)
  348. {
  349. ds_main_examcurelist_item.deleteRow(m_row);
  350. }
  351. else
  352. {
  353. ds_main_examcurelist_item.updatecontrol = false;
  354. ds_main_examcurelist_item.setRowType(m_row, "d");
  355. ds_main_examcurelist_item.updatecontrol = true;
  356. }
  357. }
  358. }
  359. function grd_examcureroom_onexpandup(obj:Grid, e:GridMouseEventInfo)
  360. {
  361. var colidx = e.cell;
  362. // 검사가능장비코드 가져오기.
  363. if( colidx == obj.getBindCellIndex("Body", "excuposseqcd"))
  364. {
  365. frmf_setParameter("SPAEB00101_param_srcXpath1", "ds_main_examcurelist_item");
  366. frmf_setParameter("SPAEB00101_param_srcXgrid1", "grd_examcureroom");
  367. frmf_setParameter("SPAEB00101_param_srcXrow1", ds_main_examcurelist_item.rowposition);
  368. frmf_setParameter("SPAEB00101_param_srcXnode1", "excuposseqcd");
  369. frmf_modal("SPAEB00101", "SPAEB00101", "", "", "", "", "", "", "", "", "", "", "M");
  370. ds_main_examcurelist_item.updatecontrol = false;
  371. ds_main_examcurelist_item.setRowType(ds_main_examcurelist_item.rowposition, "u");
  372. ds_main_examcurelist_item.updatecontrol = true;
  373. }
  374. //집계부서 가져오기.
  375. else if( colidx == obj.getBindCellIndex("Body", "execdeptnm"))
  376. {
  377. var iRow = ds_main_examcurelist_item.rowposition;
  378. var search_condition = "deptnm";
  379. var search_term = "";
  380. ds_temp.setColumn(0, "prestdeptcd", "");
  381. ds_temp.setColumn(0, "prestdeptnm", "");
  382. var standard_yn = null;
  383. var ord_deptflag = null;
  384. var objDept = appf_openInstDeptCodeList(search_condition, search_term, standard_yn, ord_deptflag, "deptcd depthngnm")
  385. ds_temp.setColumn(0,"prestdeptcd",objDept.deptcd);
  386. ds_temp.setColumn(0,"prestdeptnm",objDept.depthngnm);
  387. ds_main_examcurelist_item.setColumn(ds_main_examcurelist_item.rowposition, "execdeptcd", ds_temp.getColumn(0, "prestdeptcd"));
  388. ds_main_examcurelist_item.setColumn(ds_main_examcurelist_item.rowposition, "execdeptnm", ds_temp.getColumn(0, "prestdeptnm"));
  389. if ( ds_main_examcurelist_item.getRowType(ds_main_examcurelist_item.rowposition) == 1)
  390. {
  391. ds_main_examcurelist_item.updatecontrol = false;
  392. ds_main_examcurelist_item.setRowType(ds_main_examcurelist_item.rowposition, "u");
  393. ds_main_examcurelist_item.updatecontrol = true;
  394. }
  395. }
  396. }
  397. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  398. {
  399. if ( sysf_messageBox("","Q002")==6 )
  400. {
  401. if ( ds_send.getColumn(0, "roomflag") == "R" || ds_send.getColumn(0, "roomflag") == "Z" )
  402. {
  403. }
  404. else
  405. {
  406. sysf_messageBox("검사실종류를 선택하여 주십시요", "E999", "");
  407. return;
  408. }
  409. var update = grdf_getGridUpdateData(grd_examcureroom);
  410. if(update.rowcount == 0)
  411. {
  412. sysf_messageBox("업데이트 정보가 없습니다.", "I");
  413. }
  414. else
  415. {
  416. grdf_setStatusColumn(update, "m");
  417. ds_send_req_data.copyData(update, true);
  418. dsf_setDefaultVal(ds_send_req_data, "execdeptcd:-,sonoage:0");
  419. dsf_setTypeFormat(ds_send_req_data, "sortno:INT");
  420. dsf_setFixVal(ds_send_req_data, "rbasecdflag:R");
  421. var oParam = {};
  422. oParam.id = "TXAEB00101";
  423. oParam.service = "examcurebaseapp.ExamCureRoom";
  424. oParam.method = "reqExeExamCureRoomGrpList";
  425. oParam.inds = "req=ds_send_req_data";
  426. oParam.outds = "ds_=item";
  427. oParam.async = false;
  428. //oParam.callback = "cf_TXAEB00101";
  429. tranf_submit(oParam);
  430. }
  431. }
  432. //20161110 kya 통계테이블에 insert
  433. if(ds_send.getColumn(0, "basesuppdeptcd") == "2160000000" )
  434. {
  435. var oParam = {};
  436. oParam.id = "TXAEB00102";
  437. oParam.service = "examcurebaseapp.ExamCureRoom";
  438. oParam.method = "reqInsAesmexcuroomList";
  439. oParam.inds = "req=ds_send";
  440. oParam.outds = "ds_=item";
  441. oParam.async = false;
  442. //oParam.callback = "cf_TXAEB00102";
  443. tranf_submit(oParam);
  444. }
  445. dsf_setFixVal(ds_send, "gb:1");
  446. dsf_makeValue(ds_send, "rbasecdflag", "string", ds_send.getColumn(0, "roomflag"));
  447. var oParam = {};
  448. oParam.id = "TRAEB00101";
  449. oParam.service = "examcurebaseapp.ExamCureRoom";
  450. oParam.method = "reqGetExamCureRoomGrpList";
  451. oParam.inds = "req=ds_send";
  452. oParam.outds = "ds_main_examcurelist_item=item";
  453. oParam.async = false;
  454. //oParam.callback = "cf_TRAEB00101";
  455. tranf_submit(oParam);
  456. var oParam = {};
  457. oParam.id = "TRAEB00102";
  458. oParam.service = "examcureacptexecapp.ExamCureAcpt";
  459. oParam.method = "reqGetInitExcureRoomList";
  460. oParam.inds = "reqparam=ds_send";
  461. oParam.outds = "ds_init_cmb_info_initexcuroom=initexcuroom";
  462. oParam.async = false;
  463. //oParam.callback = "cf_TRAEB00102";
  464. tranf_submit(oParam);
  465. }
  466. ]]></Script>
  467. </Form>
  468. </FDL>