SMMNE05502_진료보고체계수정.xfdl 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNE05502" position="absolute 0 0 728 551" titletext="응급진료보고수정" onload="SPMMI00400_onload" oninit="SPMMI00400_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Grid position="absolute 256 72 712 488" id="grd_userlist" binddataset="ds_main_worklist" cellclickbound="cell" extendsizetype="none" autofittype="col" cellsizingtype="none" onkeydown="grd_userlist_onkeydown" ontextchange="grd_userlist_ontextchange" autoenter="select">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="23"/>
  12. <Column size="0"/>
  13. <Column size="0"/>
  14. <Column size="0"/>
  15. <Column size="0"/>
  16. <Column size="94"/>
  17. <Column size="295"/>
  18. </Columns>
  19. <Rows>
  20. <Row size="24" band="head"/>
  21. <Row size="24"/>
  22. </Rows>
  23. <Band id="head">
  24. <Cell/>
  25. <Cell col="1"/>
  26. <Cell col="2" text="진료과코드"/>
  27. <Cell col="3" text="진료과명"/>
  28. <Cell col="4" displaytype="normal" style="align:center;" text="구분"/>
  29. <Cell col="5" text="사번"/>
  30. <Cell col="6" text="의사명"/>
  31. </Band>
  32. <Band id="body">
  33. <Cell text="bind:iudflag"/>
  34. <Cell col="1" text="bind:workno"/>
  35. <Cell col="2" text="bind:orddeptcd"/>
  36. <Cell col="3" text="bind:deptnm"/>
  37. <Cell col="4" displaytype="combo" style="align:center;" text="bind:dutycd" suppress="1" suppressalign="middle,over" combodataset="ds_init_dutycd" combocodecol="cdid" combodatacol="cdnm"/>
  38. <Cell col="5" text="bind:doc1"/>
  39. <Cell col="6" edittype="text" text="bind:docname1" editautoselect="true" editautoskip="false"/>
  40. </Band>
  41. </Format>
  42. </Formats>
  43. </Grid>
  44. <Div id="grp_sea" taborder="3" position="absolute 0 25 712 64" class="div_SA">
  45. <Layouts>
  46. <Layout>
  47. <Calendar id="ipt_date" taborder="19" class="input_essential" position="absolute 89 10 179 29" anchor="default" enable="false"/>
  48. <Shape id="line2" linetype="vertical" class="line_4" position="absolute 602 7 607 33" anchor="default"/>
  49. <Button id="btn_srch" taborder="20" text="조회" class="btn1" position="absolute 641 8 702 30" anchor="default" onclick="grp_sea_btn_srch_onclick"/>
  50. <Static id="caption11" text="조회일자" class="search_name" position="absolute 15 11 85 28" anchor="default"/>
  51. <Static id="caption2" text="진료과" class="search_name" position="absolute 197 11 259 28" anchor="default"/>
  52. <Combo id="cmb_orddept" taborder="23" innerdataset="ds_init_orddept" codecolumn="deptcd" datacolumn="depthngnm" class="combo_search" position="absolute 258 9 403 28" anchor="default" onitemchanged="grp_sea_cmb_orddept_onitemchanged" enable="false"/>
  53. <Static id="caption7" text="구분" class="search_name" position="absolute 415 11 450 28" anchor="default"/>
  54. <Combo id="cmb_dutycd" taborder="25" innerdataset="@ds_init_dutycd" codecolumn="cdid" datacolumn="cdnm" onitemchanged="grp_sea_cmb_userid_onitemchanged" class="combo_search" position="absolute 457 9 594 28" anchor="default"/>
  55. </Layout>
  56. </Layouts>
  57. </Div>
  58. <Static id="caption6" text="응급진료보고수정" class="tit_1" position="absolute 0 0 137 24"/>
  59. <Shape id="line8" class="line_1" position="absolute 0 65 719 72" style="strokepen:3 solid #33bbbbff;"/>
  60. <Button id="button8" taborder="8" text="추가" onclick="button8_onclick" class="btn2" position="absolute 560 490 602 510" anchor="top right"/>
  61. <Button id="button9" taborder="9" text="삭제" onclick="button9_onclick" class="btn2" position="absolute 604 490 646 510" anchor="top right"/>
  62. <Button id="btn_SaveDhrcd" taborder="10" text="저장" onclick="btn_SaveDhrcd_onclick" class="btn4" position="absolute 652 490 708 510" anchor="top right"/>
  63. <Grid id="grd_drlist" taborder="11" binddataset="ds_main_drinfolist" useinputpanel="false" autofittype="col" position="absolute 0 72 250 490" oncelldblclick="grd_drlist_oncelldblclick">
  64. <Formats>
  65. <Format id="default">
  66. <Columns>
  67. <Column size="312"/>
  68. <Column size="0"/>
  69. <Column size="0"/>
  70. <Column size="0"/>
  71. <Column size="0"/>
  72. <Column size="0"/>
  73. </Columns>
  74. <Rows>
  75. <Row size="24" band="head"/>
  76. <Row size="24"/>
  77. </Rows>
  78. <Band id="head">
  79. <Cell text="의사 Call 대상자"/>
  80. <Cell col="1" text="userid"/>
  81. <Cell col="2" text="userdeptcd"/>
  82. <Cell col="3" text="phone"/>
  83. <Cell col="4" text="bbtel"/>
  84. <Cell col="5" text="saveyn"/>
  85. </Band>
  86. <Band id="body">
  87. <Cell style="selectbackground:#7fef0fff;" text="bind:drnm"/>
  88. <Cell col="1" text="bind:drid"/>
  89. <Cell col="2" text="bind:deptcd"/>
  90. <Cell col="3" text="bind:phone"/>
  91. <Cell col="4" text="bind:bbtel"/>
  92. <Cell col="5" text="bind:saveyn"/>
  93. </Band>
  94. </Format>
  95. </Formats>
  96. </Grid>
  97. </Layout>
  98. </Layouts>
  99. <Objects>
  100. <Dataset id="ds_init_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  101. <ColumnInfo>
  102. <Column id="depthngnm" type="STRING"/>
  103. <Column id="deptcd" type="STRING"/>
  104. </ColumnInfo>
  105. </Dataset>
  106. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  107. <ColumnInfo>
  108. <Column id="instcd" type="STRING" size="256"/>
  109. <Column id="workdd" type="STRING" size="256"/>
  110. <Column id="orddeptcd" type="STRING" size="256"/>
  111. <Column id="dutycd" type="STRING" size="256"/>
  112. <Column id="dutycdnm" type="STRING" size="256"/>
  113. </ColumnInfo>
  114. <Rows>
  115. <Row/>
  116. </Rows>
  117. </Dataset>
  118. <Dataset id="ds_init_dutycd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  119. <ColumnInfo>
  120. <Column id="cdnm" type="STRING"/>
  121. <Column id="cdid" type="STRING"/>
  122. </ColumnInfo>
  123. <Rows>
  124. <Row>
  125. <Col id="cdnm">과장</Col>
  126. <Col id="cdid">0</Col>
  127. </Row>
  128. <Row>
  129. <Col id="cdnm">1차정규</Col>
  130. <Col id="cdid">10</Col>
  131. </Row>
  132. <Row>
  133. <Col id="cdnm">1차 야간 공휴</Col>
  134. <Col id="cdid">11</Col>
  135. </Row>
  136. <Row>
  137. <Col id="cdnm">2차 정규</Col>
  138. <Col id="cdid">20</Col>
  139. </Row>
  140. <Row>
  141. <Col id="cdnm">2차 야간 공휴</Col>
  142. <Col id="cdid">21</Col>
  143. </Row>
  144. <Row>
  145. <Col id="cdnm">3차</Col>
  146. <Col id="cdid">30</Col>
  147. </Row>
  148. <Row>
  149. <Col id="cdnm">비고</Col>
  150. <Col id="cdid">99</Col>
  151. </Row>
  152. </Rows>
  153. </Dataset>
  154. <Dataset id="ds_main_worklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  155. <Dataset id="ds_main_drinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  156. <ColumnInfo>
  157. <Column id="drnm" type="STRING" size="256" sumtext="당직대상자명"/>
  158. <Column id="drid" type="STRING" size="256" sumtext="당직대상자코드"/>
  159. <Column id="deptcd" type="STRING" size="256" sumtext="당직대상자부서코드"/>
  160. <Column id="phone" type="STRING" size="256" sumtext="핸드폰번호"/>
  161. <Column id="bbtel" type="STRING" size="256" sumtext="beeper"/>
  162. <Column id="saveyn" type="STRING" size="256" sumtext="근무자저장여부"/>
  163. <Column id="mespclyn" type="STRING" size="256" sumtext="주치의 여부 "/>
  164. </ColumnInfo>
  165. </Dataset>
  166. </Objects>
  167. <Bind>
  168. <BindItem id="item2" compid="grp_sea.cmb_dutycd" propid="value" datasetid="ds_main_cond" columnid="dutycd"/>
  169. <BindItem id="item0" compid="grp_sea.ipt_date" propid="value" datasetid="ds_main_cond" columnid="workdd"/>
  170. <BindItem id="item1" compid="grp_sea.cmb_orddept" propid="value" datasetid="ds_main_cond" columnid="orddeptcd"/>
  171. </Bind>
  172. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  173. * System Name : KNUH2.0
  174. * Job Name : EMR
  175. * Creator :
  176. * Make Date : 2014-08-29
  177. * Description :
  178. *---------------------------------------------------------------------------------------
  179. * Modify Date Modifier Modify Description
  180. *---------------------------------------------------------------------------------------
  181. * 2014-08-29 Live Converter TF->XP
  182. *
  183. *---------------------------------------------------------------------------------------
  184. ****************************************************************************************/
  185. //=======================================================================================
  186. // Lib Include
  187. //---------------------------------------------------------------------------------------
  188. include "com_commonxp::comm_main.xjs";
  189. include "emr_prcpmngtxp::MMO001.xjs";
  190. include "emr_prcpmngtxp::SPMMO00100.xjs";
  191. //include "emr_commonxp::EMRCommon.xjs"
  192. var arErrorCode = new HashArray();
  193. //=======================================================================================
  194. // Event
  195. //---------------------------------------------------------------------------------------
  196. /****************************************************************************************
  197. * Components : Form
  198. * Components ID : SPMMO00800
  199. * Event : onload
  200. * Argument : 01.obj : Object Event has occurred
  201. * : 02.e : Event Object
  202. * Description : 화면 로드
  203. ****************************************************************************************/
  204. function SPMMI00400_oninit(obj:Form, e:InitEventInfo)
  205. {
  206. frmf_initForm(obj);
  207. grdf_initGrid(grd_userlist);
  208. }
  209. function SPMMI00400_onload(obj:Form, e:LoadEventInfo)
  210. {
  211. grdf_setRowTypeIcon(grd_userlist, 0);
  212. //grdf_setToolTipBind(grd_userlist);
  213. if (frmf_checkOpener()) {
  214. try {
  215. ds_main_cond.copyRow(0, arg_cond, 0);
  216. grp_sea.btn_srch.click();
  217. }
  218. catch (err) {
  219. }
  220. }
  221. lf_mmbfGetDeptCodeComboList(ds_init_orddept , "D",""); //부서코드 콤보
  222. dsf_addDsItem( ds_init_orddept, "deptcd", "depthngnm", "전체", "-", "above" ); //부서콤보 Item '전체'추가
  223. }
  224. // function grp_sea_btn_srch_onclick(obj:Button, e:ClickEventInfo)
  225. // {
  226. // fGetUserSrch();
  227. // }
  228. //
  229. // /****************************************************************************************
  230. // * Function : fGetUserSrch
  231. // * Description : 파견의검색
  232. // * Argument :
  233. // * :
  234. // * return type :
  235. // * Creator :
  236. // ****************************************************************************************/
  237. // function fGetUserSrch() {
  238. // var oParam = {};
  239. // oParam.id = "TRMMI00401";
  240. // oParam.service = "prcpinfoapp.PrcpInfoEtcMngt";
  241. // oParam.method = "reqGetResidentUserList";
  242. // oParam.inds = "req=" + "ds_main_cond";
  243. // oParam.outds = "ds_userlist=userlist";
  244. // oParam.async = false;
  245. // //oParam.callback = "cf_TRMMO00801";
  246. //
  247. // tranf_submit(oParam);
  248. // }
  249. //
  250. // function grp_sea_cmb_orddept_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  251. // {
  252. // ds_init_userlist.clearData();
  253. // lf_mmbfGetUserComboList(ds_init_userlist , grp_sea.cmb_orddept.value, "0330");
  254. // dsf_addDsItem( ds_init_userlist , "userid", "usernm", "전체", "-", "above");
  255. // ds_main_cond.setColumn(0,"userid", "-");
  256. //
  257. // fGetUserSrch();
  258. // }
  259. //
  260. //
  261. // function grp_sea_cmb_userid_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  262. // {
  263. // fGetUserSrch();
  264. // }
  265. //
  266. // function grp_sea_Edit00_onkeydown(obj:Edit, e:KeyEventInfo)
  267. // {
  268. // if(e.keycode == 13) {
  269. // obj.updateToDataset();
  270. // fGetUserSrch();
  271. // }
  272. // }
  273. //
  274. //
  275. // function button8_onclick(obj:Button, e:ClickEventInfo)
  276. // {
  277. // ds_userlist.addRow();
  278. // var nRow = ds_userlist.rowposition;
  279. // ds_userlist.setColumn(nRow, "fromdd", utlf_getCurrentDate());
  280. // ds_userlist.setColumn(nRow, "todd", utlf_getCurrentDate());
  281. // ds_userlist.setColumn(nRow, "edittodd", utlf_getCurrentDate());
  282. // ds_userlist.setColumn(nRow, "tempyn", "N");
  283. // }
  284. //
  285. // function button9_onclick(obj:Button, e:ClickEventInfo)
  286. // {
  287. // fDeleteRow();
  288. // }
  289. //
  290. // function fDeleteRow() {
  291. // var nRow = ds_userlist.rowposition;
  292. // var iStatus = ds_userlist.getRowType(nRow);
  293. //
  294. // if(nRow < 0) {
  295. // alert("삭제할 행을 선택해주세요.");
  296. // return;
  297. // }
  298. //
  299. // if (iStatus == 2) { // 새로 삽입된 행이면
  300. // ds_userlist.deleteRow(nRow);
  301. // } else if (iStatus == 8){ // 삭제 상태 이면
  302. // grdf_setStatus(grd_userlist, "", [nRow]);
  303. // } else {
  304. // var sFstRgstrId = ds_userlist.getColumn(nRow, "fstrgstrid");
  305. // var sFstRgstDt = ds_userlist.getColumn(nRow, "fstrgstdt");
  306. // if(sFstRgstDt.length > 8) {
  307. // sFstRgstDt = sFstRgstDt.substring(0, 8);
  308. // }
  309. //
  310. // trace("sFstRgstrId : " + sFstRgstrId );
  311. // trace("getUserInfo : " + sysf_getUserInfo("userid") );
  312. //
  313. // trace("sFstRgstDt : " + sFstRgstDt );
  314. // trace("CurrentDate : " + utlf_getCurrentDate() );
  315. //
  316. // if(sFstRgstrId != sysf_getUserInfo("userid") || sFstRgstDt != utlf_getCurrentDate()) {
  317. // sysf_messageBox("로그인 사용자가 당일 등록한 정보만 삭제 가능 합니다.", "E");
  318. // return;
  319. // } else {
  320. // grdf_setStatus(grd_userlist, "D", [nRow]);
  321. // }
  322. // }
  323. // }
  324. //
  325. // function btn_SaveDhrcd_onclick(obj:Button, e:ClickEventInfo)
  326. // {
  327. // var oDsUpdate = grdf_getGridUpdateData(grd_userlist);
  328. // if(oDsUpdate.rowcount < 1){
  329. // sysf_messageBox("입력 또는 수정 할 ", "E013");// 입력, 수정, 삭제 데이터가 없으면 "입력된 데이터가 없습니다."는 메시지 출력
  330. // return;
  331. // }
  332. //
  333. // grdf_setStatusColumn(oDsUpdate, "status");//각 행의 status에 rowType 값에 따라 i, u, d로 업데이트 시켜줌
  334. // ds_send_save.copyData(oDsUpdate, true);
  335. //
  336. // if( sysf_messageBox("파견의사 정보를","Q002") == 6 ){
  337. //
  338. // var oParam = {};
  339. // oParam.id = "TXMMI00401";
  340. // oParam.service = "prcpinfoapp.PrcpInfoEtcMngt";
  341. // oParam.method = "reqExeSaveResidentUserInfo";
  342. // oParam.inds = "req=ds_send_save";
  343. // oParam.outds = "";
  344. // oParam.async = false;
  345. //
  346. // var bRtn = tranf_submit(oParam);
  347. //
  348. // if(bRtn) {
  349. // fGetUserSrch();
  350. // }
  351. // }
  352. // }
  353. //
  354. // function btn_excel01_onclick(obj:Button, e:ClickEventInfo)
  355. // {
  356. // grdf_exportExcel(grd_userlist, "파견의사목록", "파견의사목록", false, "", "user", true);
  357. // }
  358. //
  359. // function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  360. // {
  361. // grdf_exportExcel(grd_sampleexcel, "파견의사등록", "파견의사등록", false, "", "user", true);
  362. // }
  363. //
  364. // function btn_excel00_onclick(obj:Button, e:ClickEventInfo)
  365. // {
  366. // var nRow = 0;
  367. // var sDutPlceCd = "";
  368. // var sDutPlceNm = "";
  369. // var sUserNm = "";
  370. // var sUserId = "";
  371. // var sFromDd = "";
  372. // var sToDd = "";
  373. //
  374. // ds_uploadexcel.clearData();
  375. // if( grdf_ImportExcel("ds_uploadexcel", 1, "") != false){
  376. // var rows = ds_uploadexcel.rowcount;
  377. //
  378. // if( rows <= 0 ){
  379. // sysf_messageBox("등록된 사용자 정보가 없습니다","");
  380. // return;
  381. // }
  382. //
  383. // for (i = 0; i < rows; i++){
  384. // sDutPlceNm = ds_uploadexcel.getColumn(i, "dutplcenm");
  385. // sUserNm = ds_uploadexcel.getColumn(i, "usernm");
  386. // sUserId = ds_uploadexcel.getColumn(i, "userid");
  387. // sFromDd = ds_uploadexcel.getColumn(i, "fromdd");
  388. // sToDd = ds_uploadexcel.getColumn(i, "todd");
  389. //
  390. // if ( utlf_isNull(sUserId)) {
  391. // continue;
  392. // }
  393. // if(sDutPlceNm == "진료과" || sUserNm == "성명" || sUserId == "사번" || sFromDd == "시작일" || sToDd == "종료일") {
  394. // continue;
  395. // }
  396. //
  397. // if(sFromDd.length > 8) {
  398. // sFromDd = sFromDd.substring(0, 8);
  399. // }
  400. // if(sToDd.length > 8) {
  401. // sToDd = sToDd.substring(0, 8);
  402. // }
  403. //
  404. // if(sDutPlceNm == "내과" || sDutPlceNm == "외과" || sDutPlceNm == "소아청소년과") { // 세부부서 처리
  405. // var sMainDeptNm = sDutPlceNm;
  406. // var deptrows = 0;
  407. // if(sMainDeptNm == "내과") {
  408. // deptrows = ds_hardcd568.rowcount; //내과 세부부서
  409. // } else if(sMainDeptNm == "외과") {
  410. // deptrows = ds_hardcd569.rowcount; //외과 세부부서
  411. // } else if(sMainDeptNm == "소아청소년과") {
  412. // deptrows = ds_hardcd570.rowcount; //소아청소년과 세부부서
  413. // }
  414. //
  415. // for (j = 0; j< deptrows; j++){
  416. // if(sMainDeptNm == "내과") {
  417. // sDutPlceCd = ds_hardcd568.getColumn(j, "hardcd");
  418. // } else if(sMainDeptNm == "외과") {
  419. // sDutPlceCd = ds_hardcd569.getColumn(j, "hardcd");
  420. // } else if(sMainDeptNm == "소아청소년과") {
  421. // sDutPlceCd = ds_hardcd570.getColumn(j, "hardcd");
  422. // }
  423. //
  424. // sDutPlceNm = ds_init_orddept.getColumn(ds_init_orddept.findRow("deptcd", sDutPlceCd), "depthngnm");
  425. //
  426. // ds_userlist.addRow();
  427. // nRow = ds_userlist.rowposition;
  428. //
  429. // ds_userlist.setColumn(nRow, "dutplcecd", sDutPlceCd);
  430. // ds_userlist.setColumn(nRow, "dutplcenm", sDutPlceNm);
  431. // ds_userlist.setColumn(nRow, "usernm", sUserNm);
  432. // ds_userlist.setColumn(nRow, "userid", sUserId);
  433. // ds_userlist.setColumn(nRow, "fromdd", sFromDd);
  434. // ds_userlist.setColumn(nRow, "todd", sToDd);
  435. // ds_userlist.setColumn(nRow, "edittodd", sToDd);
  436. // ds_userlist.setColumn(nRow, "tempyn", "N");
  437. // }
  438. // } else {
  439. // sDutPlceCd = ds_init_orddept.getColumn(ds_init_orddept.findRow("depthngnm", sDutPlceNm), "deptcd");
  440. //
  441. // ds_userlist.addRow();
  442. // nRow = ds_userlist.rowposition;
  443. //
  444. // ds_userlist.setColumn(nRow, "dutplcecd", sDutPlceCd);
  445. // ds_userlist.setColumn(nRow, "dutplcenm", sDutPlceNm);
  446. // ds_userlist.setColumn(nRow, "usernm", sUserNm);
  447. // ds_userlist.setColumn(nRow, "userid", sUserId);
  448. // ds_userlist.setColumn(nRow, "fromdd", sFromDd);
  449. // ds_userlist.setColumn(nRow, "todd", sToDd);
  450. // ds_userlist.setColumn(nRow, "edittodd", sToDd);
  451. // ds_userlist.setColumn(nRow, "tempyn", "N");
  452. // }
  453. // }
  454. // }
  455. // }
  456. //
  457. //
  458. //
  459. // function grd_userlist_onkeydown(obj:Grid, e:KeyEventInfo)
  460. // {
  461. // if(e.keycode == 46) { // delete 키 입력시
  462. // fDeleteRow();
  463. // }
  464. // }
  465. function grp_sea_btn_srch_onclick(obj:Button, e:ClickEventInfo)
  466. {
  467. var oParam = {};
  468. oParam.id = "TRMNE05504";
  469. oParam.service = "ercareapp.ERPatMngt";
  470. oParam.method = "reqGetReportWorkScheList2";
  471. oParam.inds = "req=ds_main_cond";
  472. oParam.outds = "ds_main_worklist=workerinfolist";
  473. oParam.async = false;
  474. //oParam.callback = "cf_TRMNE05501";
  475. tranf_submit(oParam);
  476. dsf_makeValue(ds_main_worklist, "iudflag", "string");
  477. // 진료과 정보가 변경 되었는지 체크. end
  478. if (ds_main_cond.getColumn(0,"dutycd") != "99") {
  479. var oParam = {};
  480. oParam.id = "TRMMO30001";
  481. oParam.service = "prcpmngtapp.ErMngt";
  482. oParam.method = "reqGetDrInfo";
  483. oParam.inds = "searchinfo=ds_main_cond";
  484. oParam.outds = "ds_main_drinfolist=drinfolist";
  485. oParam.async = false;
  486. //oParam.callback = "cf_TRMMO30001";
  487. tranf_submit(oParam);
  488. if(arErrorCode.pop("TRMMO30001") < 0){
  489. sysf_messageBox("진료과별 당직대상자 조회를 실패하였습니다.", "E999");
  490. return false;
  491. }
  492. }
  493. }
  494. function button8_onclick(obj:Button, e:ClickEventInfo)
  495. {
  496. fInsertRow();
  497. }
  498. function button9_onclick(obj:Button, e:ClickEventInfo)
  499. {
  500. fDeleteRow();
  501. }
  502. function fDeleteRow() {
  503. var nRow = ds_main_worklist.rowposition;
  504. var iStatus = ds_main_worklist.getRowType(nRow);
  505. if(nRow < 0) {
  506. alert("삭제할 행을 선택해주세요.");
  507. return;
  508. }
  509. if (iStatus == 2) { // 새로 삽입된 행이면
  510. ds_main_worklist.deleteRow(nRow);
  511. } else if (iStatus == 8){ // 삭제 상태 이면
  512. grdf_setStatus(grd_userlist, "", [nRow]);
  513. } else {
  514. grdf_setStatus(grd_userlist, "D", [nRow]);
  515. }
  516. }
  517. function grp_sea_cmb_userid_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  518. {
  519. grp_sea.btn_srch.click();
  520. }
  521. function btn_SaveDhrcd_onclick(obj:Button, e:ClickEventInfo)
  522. {
  523. dsf_createDs("ds_send_workerinfolist");
  524. //ds_send_workerinfolist.copyData(grdf_getGridUpdateData(grd_userlist,"all"),true);
  525. var updategrid = grdf_getGridUpdateData(grd_userlist);
  526. grdf_setStatusColumn(updategrid, "iudflag");
  527. ds_send_workerinfolist.copyData(updategrid, true);
  528. var oParam = {};
  529. oParam.id = "TRMNE05505";
  530. oParam.service = "ercareapp.ERPatMngt";
  531. oParam.method = "reqGetReportWorkScheList3";
  532. oParam.inds = "req=ds_send_workerinfolist";
  533. oParam.outds = "";
  534. oParam.async = false;
  535. //oParam.callback = "cf_TRMNE05501";
  536. tranf_submit(oParam);
  537. if(arErrorCode.pop("TRMNE05505") < 0){
  538. sysf_messageBox(" 저장을 실패하였습니다.", "E999");
  539. }else{
  540. //trace('AAAA :'+arErrorCode.pop("TRMNE05505"));
  541. grp_sea.btn_srch.click();
  542. }
  543. }
  544. function fInsertRow() {
  545. ds_main_worklist.addRow();
  546. var nRow = ds_main_worklist.rowposition;
  547. ds_main_worklist.setColumn(nRow, "workdd", ds_main_cond.getColumn(0,"workdd"));
  548. ds_main_worklist.setColumn(nRow, "orddeptcd", ds_main_cond.getColumn(0,"orddeptcd"));
  549. ds_main_worklist.setColumn(nRow, "deptnm", ds_main_worklist.getColumn(0,"deptnm"));
  550. ds_main_worklist.setColumn(nRow, "dutycd", ds_main_cond.getColumn(0,"dutycd"));
  551. ds_main_worklist.setColumn(nRow, "dutycdnm", ds_main_cond.getColumn(0,"dutycdnm"));
  552. ds_main_worklist.setColumn(nRow, "doc1", ds_main_drinfolist.getColumn(ds_main_drinfolist.rowposition,"drid"));
  553. ds_main_worklist.setColumn(nRow, "docname1", ds_main_drinfolist.getColumn(ds_main_drinfolist.rowposition,"drnm"));
  554. }
  555. function grd_drlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  556. {
  557. if (ds_main_cond.getColumn(0,"dutycd") == "99"){ //비교
  558. }else{
  559. fInsertRow();
  560. }
  561. }
  562. function grd_userlist_ontextchange(obj:Grid, e:GridEditTextChangeEventInfo)
  563. {
  564. obj.updateToDataset();
  565. }
  566. ]]></Script>
  567. </Form>
  568. </FDL>