SPMMO07300_응급실심정지대상자검색.xfdl 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMO07300" position="absolute 0 0 1051 700" titletext="심정지 입력대상자 조회" oninit="SPMMO07300_oninit" onload="SPMMO07300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Shape position="absolute 0 89 1051 95" linetype="horizontal" id="line1" class="line_10" anchor="left top right"/>
  8. <Grid position="absolute 0 94 1051 700" id="datagrid2" binddataset="ds_rscpiptlist_rscpiptinfo" oncelldblclick="datagrid2_oncelldblclick" onkeydown="datagrid2_onkeydown" autoenter="select" oncloseup="datagrid2_oncloseup" oncellclick="datagrid2_oncellclick" onlbuttonup="datagrid2_onlbuttonup" anchor="all">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="29"/>
  13. <Column size="0"/>
  14. <Column size="0"/>
  15. <Column size="65"/>
  16. <Column size="58"/>
  17. <Column size="60"/>
  18. <Column size="55"/>
  19. <Column size="99"/>
  20. <Column size="66"/>
  21. <Column size="101"/>
  22. <Column size="150"/>
  23. <Column size="33"/>
  24. <Column size="64"/>
  25. <Column size="58"/>
  26. <Column size="66"/>
  27. <Column size="0"/>
  28. <Column size="56"/>
  29. <Column size="61"/>
  30. <Column size="65"/>
  31. <Column size="0"/>
  32. <Column size="0"/>
  33. <Column size="0"/>
  34. <Column size="0"/>
  35. <Column size="100"/>
  36. </Columns>
  37. <Rows>
  38. <Row size="24" band="head"/>
  39. <Row size="24"/>
  40. </Rows>
  41. <Band id="head">
  42. <Cell text="선택"/>
  43. <Cell col="1" text="indd"/>
  44. <Cell col="2" text="cretno"/>
  45. <Cell col="3" text="환자번호"/>
  46. <Cell col="4" text="환자명"/>
  47. <Cell col="5" text="내원일시"/>
  48. <Cell col="6" text="내원시간"/>
  49. <Cell col="7" text="조건구분"/>
  50. <Cell col="8" text="입력여부"/>
  51. <Cell col="9" text="입력불가사유"/>
  52. <Cell col="10" text="기타입력불가사유"/>
  53. <Cell col="11" text="기록"/>
  54. <Cell col="12" text="병원전"/>
  55. <Cell col="13" text="내원후"/>
  56. <Cell col="14" text="생존여부"/>
  57. <Cell col="15" text="formrecseq"/>
  58. <Cell col="16" text="입력상태"/>
  59. <Cell col="17" text="G/W전송"/>
  60. <Cell col="18" text="최종전송"/>
  61. <Cell col="19" text="genrdd"/>
  62. <Cell col="20" text="genrno"/>
  63. <Cell col="21" text="histno"/>
  64. <Cell col="22" text="rscpemcd"/>
  65. <Cell col="23" text="저장에러내용"/>
  66. </Band>
  67. <Band id="body">
  68. <Cell displaytype="checkbox" edittype="checkbox" text="bind:chkyn"/>
  69. <Cell col="1" text="bind:indd"/>
  70. <Cell col="2" text="bind:cretno"/>
  71. <Cell col="3" text="bind:pid"/>
  72. <Cell col="4" text="bind:pathngnm"/>
  73. <Cell col="5" text="bind:chosdd"/>
  74. <Cell col="6" text="bind:chostm"/>
  75. <Cell col="7" text="bind:srchkind"/>
  76. <Cell col="8" displaytype="combo" edittype="combo" text="bind:rscprgyn" combodataset="ds_combo_rscprgyn" combocodecol="code" combodatacol="name"/>
  77. <Cell col="9" displaytype="combo" edittype="combo" text="bind:rscprgcd" combodataset="ds_combo_rscprgcd" combocodecol="code" combodatacol="name" combotype="dropdown"/>
  78. <Cell col="10" displaytype="text" edittype="text" text="bind:rscprgtt"/>
  79. <Cell col="11" text="bind:recyn"/>
  80. <Cell col="12" displaytype="combo" edittype="combo" text="bind:bfhospexeccpr" combodataset="ds_combo_bfhospexeccpr" combocodecol="code" combodatacol="name"/>
  81. <Cell col="13" displaytype="combo" edittype="combo" text="bind:inhospexeccpr" combodataset="ds_combo_bfhospexeccpr" combocodecol="code" combodatacol="name"/>
  82. <Cell col="14" displaytype="combo" edittype="combo" text="bind:doayn" combodataset="ds_combo_doayn" combocodecol="code" combodatacol="name"/>
  83. <Cell col="15" text="bind:formrecseq"/>
  84. <Cell col="16" displaytype="combo" edittype="combo" text="bind:inptstat" combodataset="ds_combo_inptstat" combocodecol="code" combodatacol="name"/>
  85. <Cell col="17" text="bind:transtat"/>
  86. <Cell col="18" text="bind:rscpstat"/>
  87. <Cell col="19" text="bind:genrdd"/>
  88. <Cell col="20" text="bind:genrno"/>
  89. <Cell col="21" text="bind:histno"/>
  90. <Cell col="22" text="bind:rscpemcd"/>
  91. <Cell col="23" text="bind:errmsg"/>
  92. </Band>
  93. </Format>
  94. </Formats>
  95. </Grid>
  96. <Button position="absolute 995 69 1051 89" id="button1" class="btn3" text="전송" onclick="button1_onclick" anchor="top right"/>
  97. <Button position="absolute 861 69 989 89" id="button2" class="btn3" text="전송전데이터저장" onclick="button2_onclick" anchor="top right"/>
  98. <Static text="심정지 입력대상자 조회" position="absolute 0 0 173 25" id="caption6" class="tit_1"/>
  99. <Static text="심정지 입력대상자 List" position="absolute 0 72 170 88" id="caption2" class="tit_2"/>
  100. <Div id="Div00" taborder="6" position="absolute 0 25 1051 65" class="div_SA" anchor="left top right">
  101. <Layouts>
  102. <Layout>
  103. <Static id="caption8" text="검색조건 :" class="search_name" position="absolute 12 11 87 31" anchor="default"/>
  104. <Combo id="combo3" taborder="1" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 92 11 172 31" anchor="default">
  105. <Dataset id="innerdataset">
  106. <ColumnInfo>
  107. <Column id="codecolumn"/>
  108. <Column id="datacolumn"/>
  109. </ColumnInfo>
  110. <Rows>
  111. <Row>
  112. <Col id="codecolumn">0</Col>
  113. <Col id="datacolumn">내원일</Col>
  114. </Row>
  115. </Rows>
  116. </Dataset>
  117. </Combo>
  118. <Calendar id="input3" taborder="2" class="input_search" position="absolute 182 11 279 31" anchor="default" autoselect="true" autoskip="true"/>
  119. <Calendar id="input1" taborder="3" class="input_search" position="absolute 300 11 397 31" anchor="default" autoselect="true"/>
  120. <Static id="caption1" text="~" position="absolute 285 12 298 32" anchor="default"/>
  121. <Shape id="line2" linetype="vertical" position="absolute 939 11 945 31" anchor="top right"/>
  122. <Button id="btn_req" taborder="4" text="조회" onclick="btn_req_onclick" class="btn1" position="absolute 967 11 1023 31" anchor="top right"/>
  123. </Layout>
  124. </Layouts>
  125. </Div>
  126. </Layout>
  127. </Layouts>
  128. <Objects>
  129. <Dataset id="ds_rscpiptlist_rscpiptinfo" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_rscpiptlist_rscpiptinfo_oncolumnchanged">
  130. <ColumnInfo>
  131. <Column id="chkyn" type="STRING" size="256" sumtext="입원일"/>
  132. <Column id="indd" type="STRING" size="256" sumtext="입원일"/>
  133. <Column id="cretno" type="STRING" size="256" sumtext="cretno"/>
  134. <Column id="pid" type="STRING" size="256" sumtext="환자번호"/>
  135. <Column id="pathngnm" type="STRING" size="256" sumtext="환자명"/>
  136. <Column id="chosdd" type="STRING" size="256" sumtext="내원일자"/>
  137. <Column id="chostm" type="STRING" size="256" sumtext="내원시간"/>
  138. <Column id="srchkind" type="STRING" size="256" sumtext="조건구분"/>
  139. <Column id="rscprgyn" type="STRING" size="256" sumtext="입력여부"/>
  140. <Column id="rscprgcd" type="STRING" size="256" sumtext="입력불가사유"/>
  141. <Column id="rscprgtt" type="STRING" size="256" sumtext="불가사유"/>
  142. <Column id="recyn" type="STRING" size="256" sumtext="기록여부"/>
  143. <Column id="bfhospexeccpr" type="STRING" size="256" sumtext="병원전CPR여부"/>
  144. <Column id="inhospexeccpr" type="STRING" size="256" sumtext="내원후CPR여부"/>
  145. <Column id="doayn" type="STRING" size="256" sumtext="생존여부"/>
  146. <Column id="formrecseq" type="STRING" size="256" sumtext="기록번호"/>
  147. <Column id="inptstat" type="STRING" size="256" sumtext="입력상태"/>
  148. <Column id="transtat" type="STRING" size="256" sumtext="G/W전송"/>
  149. <Column id="rscpstat" type="STRING" size="256" sumtext="최종전송"/>
  150. <Column id="genrdd" type="STRING" size="256" sumtext="발생일자"/>
  151. <Column id="genrno" type="STRING" size="256" sumtext="발생번호"/>
  152. <Column id="histno" type="STRING" size="256" sumtext="이력번호"/>
  153. <Column id="rscpemcd" type="STRING" size="256" sumtext="응급의료기관코드"/>
  154. <Column id="errmsg" type="STRING" size="256" sumtext="에러사항"/>
  155. </ColumnInfo>
  156. </Dataset>
  157. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  158. <ColumnInfo>
  159. <Column id="srch_kind" type="STRING" size="256"/>
  160. <Column id="srch_startdd" type="DATE" size="256"/>
  161. <Column id="srch_enddd" type="DATE" size="256"/>
  162. </ColumnInfo>
  163. <Rows>
  164. <Row>
  165. <Col id="srch_startdd"/>
  166. <Col id="srch_enddd"/>
  167. </Row>
  168. </Rows>
  169. </Dataset>
  170. <Dataset id="ds_combo_rscprgyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  171. <ColumnInfo>
  172. <Column id="code" type="STRING" size="256"/>
  173. <Column id="name" type="STRING" size="256"/>
  174. </ColumnInfo>
  175. <Rows>
  176. <Row>
  177. <Col id="code">Y</Col>
  178. <Col id="name">입력대상임</Col>
  179. </Row>
  180. <Row>
  181. <Col id="code">N</Col>
  182. <Col id="name">제외대상임</Col>
  183. </Row>
  184. </Rows>
  185. </Dataset>
  186. <Dataset id="ds_combo_rscprgcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  187. <ColumnInfo>
  188. <Column id="code" type="STRING" size="256"/>
  189. <Column id="name" type="STRING" size="256"/>
  190. </ColumnInfo>
  191. <Rows>
  192. <Row>
  193. <Col id="code">1</Col>
  194. <Col id="name">병원내 심정지</Col>
  195. </Row>
  196. <Row>
  197. <Col id="code">8</Col>
  198. <Col id="name">모름</Col>
  199. </Row>
  200. <Row>
  201. <Col id="code">9</Col>
  202. <Col id="name">기타</Col>
  203. </Row>
  204. </Rows>
  205. </Dataset>
  206. <Dataset id="ds_combo_bfhospexeccpr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  207. <ColumnInfo>
  208. <Column id="code" type="STRING" size="256"/>
  209. <Column id="name" type="STRING" size="256"/>
  210. </ColumnInfo>
  211. <Rows>
  212. <Row>
  213. <Col id="code">0</Col>
  214. <Col id="name">미시행</Col>
  215. </Row>
  216. <Row>
  217. <Col id="code">1</Col>
  218. <Col id="name">시행</Col>
  219. </Row>
  220. </Rows>
  221. </Dataset>
  222. <Dataset id="ds_combo_doayn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  223. <ColumnInfo>
  224. <Column id="code" type="STRING" size="256"/>
  225. <Column id="name" type="STRING" size="256"/>
  226. </ColumnInfo>
  227. <Rows>
  228. <Row>
  229. <Col id="code">0</Col>
  230. <Col id="name">DOA</Col>
  231. </Row>
  232. <Row>
  233. <Col id="code">1</Col>
  234. <Col id="name">생존</Col>
  235. </Row>
  236. <Row>
  237. <Col id="code">2</Col>
  238. <Col id="name">CPR후사망</Col>
  239. </Row>
  240. </Rows>
  241. </Dataset>
  242. <Dataset id="ds_combo_inptstat" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  243. <ColumnInfo>
  244. <Column id="code" type="STRING" size="256"/>
  245. <Column id="name" type="STRING" size="256"/>
  246. </ColumnInfo>
  247. <Rows>
  248. <Row>
  249. <Col id="code">0</Col>
  250. <Col id="name">미입력</Col>
  251. </Row>
  252. <Row>
  253. <Col id="code">1</Col>
  254. <Col id="name">입력</Col>
  255. </Row>
  256. </Rows>
  257. </Dataset>
  258. <Dataset id="ds_orddept_hardcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  259. <Dataset id="ds_cond1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  260. <Dataset id="ds_cond2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  261. </Objects>
  262. <Bind>
  263. <BindItem id="item0" compid="Div00.combo3" propid="value" datasetid="ds_init" columnid="srch_kind"/>
  264. <BindItem id="item1" compid="Div00.input3" propid="value" datasetid="ds_init" columnid="srch_startdd"/>
  265. <BindItem id="item2" compid="Div00.input1" propid="value" datasetid="ds_init" columnid="srch_enddd"/>
  266. </Bind>
  267. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  268. * System Name :
  269. * Job Name :
  270. * Creator :
  271. * Make Date : 2015-11-13
  272. * Description :
  273. *---------------------------------------------------------------------------------------
  274. * Modify Date Modifier Modify Description
  275. *---------------------------------------------------------------------------------------
  276. * 2015-11-13 Live Converter TF->XP
  277. *
  278. *---------------------------------------------------------------------------------------
  279. ****************************************************************************************/
  280. include "com_commonxp::comm_main.xjs";
  281. include "emr_prcpmngtxp::MMOCommon.xjs";
  282. function SPMMO07300_oninit(obj:Form, e:InitEventInfo)
  283. {
  284. frmf_initForm(obj);
  285. }
  286. function SPMMO07300_onload(obj:Form, e:LoadEventInfo)
  287. {
  288. ds_rscpiptlist_rscpiptinfo.clearData();
  289. lf_getHardCDList("N", 1, null, ds_orddept_hardcd);
  290. }
  291. function btn_req_onclick(obj:Button, e:ClickEventInfo)
  292. {
  293. var oParam = {};
  294. oParam.id = "TRMMO07301";
  295. oParam.service = "prcpmngtapp.ErMngt";
  296. oParam.method = "reqGetSCPRInputList";
  297. oParam.inds = "req=ds_init";
  298. oParam.outds = "ds_rscpiptlist_rscpiptinfo=rscpiptlist";
  299. oParam.async = false;
  300. //oParam.callback = "cf_TRMMO07301";
  301. tranf_submit(oParam);
  302. }
  303. function datagrid2_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  304. {
  305. var formrecseq = ds_rscpiptlist_rscpiptinfo.getColumn(ds_rscpiptlist_rscpiptinfo.rowposition, "formrecseq");
  306. var pid = ds_rscpiptlist_rscpiptinfo.getColumn(ds_rscpiptlist_rscpiptinfo.rowposition, "pid");
  307. var indd = ds_rscpiptlist_rscpiptinfo.getColumn(ds_rscpiptlist_rscpiptinfo.rowposition, "indd");
  308. var hardcd = ds_orddept_hardcd.getColumn(0, "hardcd");
  309. var cretno = ds_rscpiptlist_rscpiptinfo.getColumn(ds_rscpiptlist_rscpiptinfo.rowposition, "cretno");
  310. frmf_setParameter("scrnflag", formrecseq);
  311. frmf_setParameter("pid", pid);
  312. frmf_setParameter("orddd", indd);
  313. frmf_setParameter("orddeptcd", hardcd);
  314. frmf_setParameter("cretno", cretno);
  315. frmf_setParameter("ioflag", "E");
  316. frmf_setParameter("orddrid", sysf_getUserInfo("userid"));
  317. frmf_setParameter("disppatinfo", "");
  318. frmf_setParameter("oprsrvno", "");
  319. frmf_setParameter("opcnfmdd", "");
  320. frmf_setParameter("openmode", "newform");
  321. frmf_setParameter("formcd", "0900006350");
  322. frmf_setParameter("SSMMR01100_getTopYn", "N");
  323. frmf_open("SPMMO07800", "SPMMO07800", "", null, "1", "0", "0", null, null, null, null, null, "M");
  324. }
  325. function button2_onclick(obj:Button, e:ClickEventInfo)
  326. {
  327. dsf_makeValue(ds_cond1, "srch_kind", "string", ds_init.getColumn(0, "srch_kind"));
  328. dsf_makeValue(ds_cond1, "srch_startdd", "string", ds_init.getColumn(0, "srch_startdd"));
  329. dsf_makeValue(ds_cond1, "srch_enddd", "string", ds_init.getColumn(0, "srch_enddd"));
  330. ds_rscpiptlist_rscpiptinfo.filter("chkyn == '1'");
  331. ds_cond2.copyData(ds_rscpiptlist_rscpiptinfo,true);
  332. ds_rscpiptlist_rscpiptinfo.filter("");
  333. var rowcount = ds_cond2.rowcount;
  334. var chkyngubun = false;
  335. if(rowcount < 1)
  336. {
  337. sysf_messageBox("먼저 저장할 건을 선택하시기 바랍니다.", "I");
  338. return;
  339. }
  340. var oParam = {};
  341. oParam.id = "TXMMO07301";
  342. oParam.service = "prcpmngtapp.ErMngt";
  343. oParam.method = "reqExeSaveSCPRInfo";
  344. oParam.inds = "req1=ds_cond1 req2=ds_cond2";
  345. oParam.outds = "ds_rscpiptlist_rscpiptinfo=rscpiptlist";
  346. oParam.async = false;
  347. tranf_submit(oParam);
  348. }
  349. function button1_onclick(obj:Button, e:ClickEventInfo)
  350. {
  351. dsf_makeValue(ds_cond1, "srch_kind", "string", ds_init.getColumn(0, "srch_kind"));
  352. dsf_makeValue(ds_cond1, "srch_startdd", "string", ds_init.getColumn(0, "srch_startdd"));
  353. dsf_makeValue(ds_cond1, "srch_enddd", "string", ds_init.getColumn(0, "srch_enddd"));
  354. ds_rscpiptlist_rscpiptinfo.filter("chkyn == '1'");
  355. ds_cond2.copyData(ds_rscpiptlist_rscpiptinfo,true);
  356. ds_rscpiptlist_rscpiptinfo.filter("");
  357. var rowcount = ds_cond2.rowcount;
  358. var chkyngubun = false;
  359. if(rowcount < 1)
  360. {
  361. sysf_messageBox("먼저 저장할 건을 선택하시기 바랍니다.", "I");
  362. return;
  363. }
  364. ds_cond2.filter("inptstat == '0'")
  365. if (ds_cond2.rowcount > 0) {
  366. messageBox("선택된 항목중 전송전데이터가 없는 건이 있습니다. 전송전데이터를 먼저 저장하세요.", "I");
  367. return;
  368. }
  369. ds_cond2.filter("");
  370. ds_cond2.clearData();
  371. ds_rscpiptlist_rscpiptinfo.filter("chkyn == '1'");
  372. ds_cond2.copyData(ds_rscpiptlist_rscpiptinfo,true);
  373. ds_rscpiptlist_rscpiptinfo.filter("");
  374. var oParam = {};
  375. oParam.id = "TXMMO07302";
  376. oParam.service = "prcpmngtapp.ErMngt";
  377. oParam.method = "reqExeTransSCPRInfo";
  378. oParam.inds = "req1=ds_cond1 req2=ds_cond2";
  379. oParam.outds = "ds_rscpiptlist_rscpiptinfo=rscpiptlist";
  380. oParam.async = false;
  381. tranf_submit(oParam);
  382. }
  383. function datagrid2_onkeydown(obj:Grid, e:KeyEventInfo)
  384. {
  385. if (ds_rscpiptlist_rscpiptinfo.getColumn(ds_rscpiptlist_rscpiptinfo.rowposition, "rscprgcd") != "9" )
  386. {
  387. sysf_messageBox("입력불가사유가 기타가 아닙니다.", "I");
  388. obj.showEditor(false);
  389. ds_rscpiptlist_rscpiptinfo.setColumn(ds_rscpiptlist_rscpiptinfo.rowposition, "rscprgtt", "");
  390. return;
  391. }
  392. if( e.keycode == 13 )
  393. {
  394. //obj.moveToNextCell();
  395. obj.showEditor(false);
  396. }
  397. }
  398. function ds_rscpiptlist_rscpiptinfo_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  399. {
  400. var row = ds_rscpiptlist_rscpiptinfo.rowposition;
  401. if(datagrid2.getBindCellIndex("body", "rscprgcd") == e.col)//9
  402. {
  403. if (ds_rscpiptlist_rscpiptinfo.getColumn(row, "rscprgyn") != "N" )
  404. {
  405. ds_rscpiptlist_rscpiptinfo.setColumn(row, "rscprgcd", "-");
  406. sysf_messageBox("제외대상일 경우에만 선택하시기 바랍니다.", "I");
  407. obj.showEditor(false);
  408. return;
  409. }
  410. if (ds_rscpiptlist_rscpiptinfo.getColumn(row, "rscprgcd") != "9" )
  411. {
  412. ds_rscpiptlist_rscpiptinfo.setColumn(row, "rscprgtt", "");
  413. return;
  414. }
  415. }
  416. else if (datagrid2.getBindCellIndex("body", "rscprgyn") == e.col) //8
  417. {
  418. if (ds_rscpiptlist_rscpiptinfo.getColumn(row, "rscprgyn") != "N" )
  419. {
  420. ds_rscpiptlist_rscpiptinfo.setColumn(row, "rscprgcd", "-");
  421. ds_rscpiptlist_rscpiptinfo.setColumn(row, "rscprgtt", "");
  422. return;
  423. }
  424. }
  425. }
  426. function datagrid2_oncloseup(obj:Grid, e:GridEditEventInfo)
  427. {
  428. var dsGridBind = eval(obj.binddataset);
  429. var preVal = utlf_transNullToEmpty(dsGridBind.getColumn(e.row, e.col));
  430. var posVal = utlf_transNullToEmpty(e.value);
  431. if( bDrop1 == true && (!utlf_isNull(posVal) || preVal != posVal) ){
  432. obj.showEditor(false);
  433. }
  434. bDrop1 = false;
  435. lastrow1 = e.row;
  436. lastcol1 = e.col;
  437. }
  438. var lastrow1 = -1;
  439. var lastcol1 = -1;
  440. var bDrop1 = false;
  441. function datagrid2_oncellclick(obj:Grid, e:GridClickEventInfo)
  442. {
  443. lastrow1 = -1;
  444. lastcol1 = -1;
  445. }
  446. function datagrid2_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
  447. {
  448. grdf_setSelectedCell(obj, e);
  449. var dsGridBind = eval(obj.binddataset);
  450. // Combo DropDown Click 처리
  451. obj.autoenter = "select";
  452. if( e.fromreferenceobject.name == "dropbutton" ){
  453. bDrop1 = true;
  454. }
  455. if( e.row > -1 && obj.getCellProperty("body", e.col, "edittype") == "combo" ){
  456. // Combo 선택시 활성화 및 combodatacol 변경
  457. if( grdf_getSelectedCols(obj).length == 0 && grdf_getSelectedRows(obj).length == 0 && obj.getEditText() == undefined ){
  458. obj.showEditor(true);
  459. }else{
  460. if(!obj.isDropdownCombo() && (lastrow1 != e.row || lastcol1 != e.col)) {
  461. obj.setCellPos(e.col);
  462. dsGridBind.rowposition = e.row;
  463. obj.showEditor(true);
  464. if(bDrop1) {
  465. obj.dropdownCombo();
  466. }
  467. }
  468. }
  469. }else{
  470. obj.autoenter = "select";
  471. }
  472. }
  473. ]]></Script>
  474. </Form>
  475. </FDL>