SMMNE05700.js 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
  1. /*
  2. 권역외상센터 당직 전문의 스케줄 관리(SMMNE05700.xfm - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. - Create : 2012.08.01
  6. */
  7. //당직스케줄 그리드의 수정상태값
  8. var isEdited = 'N';
  9. //화면초기화
  10. function fInit(){
  11. /*var instcd = getUserInfo("dutplceinstcd");
  12. if (instcd == "031") {
  13. caption3.value = "* 위 당직 전문의는 환자 및 보호자의 요청이 아닌 응급실 근무의사의 의학적 판단에 따른 요청으로 직접진료 여부가 결정됩니다.";
  14. } else {
  15. caption3.value = "* 칠곡경북대학교병원은 특정질환 전문병원으로서 응급실에 내원하는 환자분의 증상(진단) 또는 병원의 의료인력과 시설에 따라 필요시 진료가 가능한 상급의료기관으로 전원할 수 있음을 양해해 주시기 바랍니다.";
  16. }*/
  17. var curym = getCurrentDate().substring(0, 6);
  18. var worktitle = curym.substring(0, 4) + '년 ' + curym.substring(4, 6) + '월 전문의 당직리스트 (권역외상센터)';
  19. cpt_worktitle.text = worktitle;
  20. model.makeValue("/root/cond/srchym", curym);
  21. model.refresh();
  22. model.removenode("/root/send");
  23. model.makeValue("/root/send/srchym", curym);
  24. model.makeValue("/root/send/gbn", model.getValue("/root/cond/gbn"));
  25. // 당직 기준 진료과 가져오기
  26. submit("TRMNE05401");
  27. // var gbn = model.getValue("/root/cond/gbn");
  28. // if (gbn == "O") {
  29. // grd_workerlistDN.visible = false;
  30. // grd_workerlistOC.visible = true;
  31. // } else {
  32. // grd_workerlistDN.visible = true;
  33. // grd_workerlistOC.visible = false;
  34. // }
  35. grd_workerlistDN.visible = true;
  36. grd_workerlistOC.visible = false;
  37. // 외상당직 superuser 여부
  38. model.makeValue("/root/send/userid", getUserInfo("userid"));
  39. model.makeValue("/root/send/dutplcecd", getUserInfo("dutplcecd"));
  40. model.makeValue("/root/send/workdd", getCurrentDate());
  41. submit("TRMNE05805");
  42. //model.setValue("/root/main/userinfo/superuser", "Y");
  43. var sSuperUser = model.getValue("/root/main/userinfo/superuser");
  44. if (sSuperUser == "Y") {
  45. btn_cnfm.disabled = false;
  46. } else {
  47. btn_cnfm.disabled = true;
  48. }
  49. }
  50. //당직대상자리스트를 조회한다
  51. function fGetWorkScheduleList(orddeptcd, callopt){
  52. var srchym = model.getValue("/root/cond/srchym");
  53. var gbn = model.getValue("/root/cond/gbn");
  54. var worktitle = srchym.substring(0, 4) + '년 ' + srchym.substring(4, 6) + '월 전문의 당직리스트 (권역외상센터)';
  55. cpt_worktitle.text = worktitle;
  56. cpt_worktitle.refresh();
  57. if(orddeptcd == null || orddeptcd == ''){
  58. orddept = cmb_orddeptcd.value;
  59. }
  60. model.removenode("/root/send");
  61. model.makeValue("/root/send/srchym", srchym);
  62. model.makeValue("/root/send/gbn", gbn);
  63. model.makeValue("/root/send/orddeptcd", orddeptcd);
  64. model.makeValue("/root/send/monthcnt", getDayCountForMonth(srchym.substring(0, 4), srchym.substring(4, 6)));//조회년월의 마지막일
  65. var rslt = "";
  66. // if (gbn == "O") {
  67. // rslt = submit("TRMNE05403");
  68. // grd_temp = grd_workerlistOC;
  69. // } else {
  70. // rslt = submit("TRMNE05701");
  71. // grd_temp = grd_workerlistDN;
  72. // }
  73. rslt = submit("TRMNE05702");
  74. grd_temp = grd_workerlistDN;
  75. if( rslt ){
  76. //글로벌변수 초기화
  77. isEdited = 'N';
  78. //당직대상자의 선택제거
  79. if(callopt != "save") {
  80. grd_drlist.row = 0;
  81. }
  82. //당직리스트의 선택제거
  83. grd_temp.row = 0;
  84. //당직리스트색깔 초기화
  85. for(var i = 2; i <= grd_temp.rows; i++){
  86. grd_temp.cellstyle("background-color", i, 0, i, 6) = '#ffffff';
  87. grd_temp.cellStyle("background-image", i, 0, i, 6) = '';
  88. }
  89. }
  90. }
  91. //그리드가 변경상태인지 조회한다.
  92. function isScheduleRefresh(isClose){
  93. var gbn = model.getValue("/root/cond/gbn");
  94. // if (gbn == "O") {
  95. // grd_temp = grd_workerlistOC;
  96. // } else {
  97. // grd_temp = grd_workerlistDN;
  98. // }
  99. grd_temp = grd_workerlistDN;
  100. var drStr;
  101. for(var i = 1 ; i < grd_temp.rows; i++){
  102. if(instance1.selectSingleNode("/root/orgscheinfo/workinfo/workerinfolist[" + i + "]") != null){
  103. if(instance1.selectSingleNode("/root/orgscheinfo/workinfo/workerinfolist[" + i + "]").xml
  104. != instance1.selectSingleNode("/root/main/workerinfo/workerinfolist[" + i + "]").xml){
  105. isEdited = 'Y';
  106. drStr += model.getValue('/root/main/workerinfo/workerinfolist[' + i + ']/workdd') + '일자 변경';
  107. break;
  108. }
  109. }
  110. }
  111. if(isEdited == 'Y'){
  112. //20090703 dhkim 창을 닫을때와 새로 조회할때의 메세지를 다르게 구성 Q003(계속진행하시겠습니까?)
  113. if(isClose){
  114. var saveYn = messageBox('수정하신 스케줄을 저장하지 않고 창을 닫으시겠습니까?', 'Q');//Q: 6:예, 7:아니오.
  115. } else{
  116. var saveYn = messageBox('수정하신 스케줄을 저장하지 않고 새로운 내역을', 'Q005');//Q005:조회하시겠습니까? 6:예, 7:아니오.
  117. }
  118. if(saveYn == 6){
  119. return 'Y';
  120. } else{
  121. return 'N';
  122. }
  123. }
  124. }
  125. function fGetDrInfo(orddeptcd) {
  126. if(orddeptcd == null || orddeptcd == ""){
  127. messageBox("선택된 진료과가 없습니다.", "E999");
  128. }
  129. model.removenode('/root/send');
  130. model.makeValue('/root/send/drinfo/orddeptcd', orddeptcd);
  131. model.makeValue('/root/send/drinfo/srchym', model.getValue('/root/cond/srchym'));
  132. model.makeValue('/root/send/drinfo/gbn', model.getValue('/root/cond/gbn'));
  133. if(!submit("TRMNE05402")){
  134. messageBox("진료과별 당직대상자 조회를 실패하였습니다.", "E999");
  135. return false;
  136. }
  137. }
  138. /**
  139. * @desc : 이전 년버튼 클릭시 - 전년도+월로 세팅
  140. * @
  141. * @param :
  142. * @return :
  143. * @author : dhkim 20090610
  144. * @---------------------------------------------------
  145. */
  146. function fClkBfYear(srchym){
  147. var yyear = srchym.substring(0, 4);
  148. var mmont = srchym.substring(4, 6);
  149. yyear--;
  150. srchym = yyear + mmont;
  151. model.setValue('/root/cond/srchym', srchym);
  152. model.refresh();
  153. }
  154. /**
  155. * @desc : 다음 년버튼 클릭시 - 다음년도+월로 세팅
  156. * @
  157. * @param :
  158. * @return :
  159. * @author : dhkim 20090610
  160. * @---------------------------------------------------
  161. */
  162. function fClkAfYear(srchym){
  163. var yyear = srchym.substring(0, 4);
  164. var mmont = srchym.substring(4, 6);
  165. yyear++;
  166. srchym = yyear + mmont;
  167. model.setValue('/root/cond/srchym', srchym);
  168. model.refresh();
  169. }
  170. /**
  171. * @desc : 이전 달버튼 클릭시 - 년도+전월 세팅
  172. * @
  173. * @param :
  174. * @return :
  175. * @author : dhkim 20090610
  176. * @---------------------------------------------------
  177. */
  178. function fClkBfMonth(srchym){
  179. var yyear = srchym.substring(0, 4);
  180. var mmont = srchym.substring(4, 6);
  181. mmont = mmont.toDate('MM').getAddDate(-1, "M").getDateFormat('MM');
  182. if(mmont == '12'){
  183. yyear--;
  184. }
  185. srchym = yyear + mmont;
  186. model.setValue('/root/cond/srchym', srchym);
  187. model.refresh();
  188. }
  189. /**
  190. * @desc : 다음 달버튼 클릭시 - 년도+다음월 세팅
  191. * @
  192. * @param :
  193. * @return :
  194. * @author : dhkim 20090610
  195. * @---------------------------------------------------
  196. */
  197. function fClkAfMonth(srchym){
  198. var yyear = srchym.substring(0, 4);
  199. var mmont = srchym.substring(4, 6);
  200. mmont = mmont.toDate('MM').getAddDate(+1, "M").getDateFormat('MM');
  201. if(mmont == '01'){
  202. yyear++;
  203. }
  204. srchym = yyear + mmont;
  205. model.setValue('/root/cond/srchym', srchym);
  206. model.refresh();
  207. }
  208. //셀색상을 선택색으로 변경되지 않도록 원래색상으로 유지한다
  209. function fSetCellColor(clickRow, clickCol, clickColNm){
  210. // var gbn = model.getValue("/root/cond/gbn");
  211. // if ( gbn == "O" ) {
  212. // grd_temp = grd_workerlistOC;
  213. // } else {
  214. // grd_temp = grd_workerlistDN;
  215. // }
  216. grd_temp = grd_workerlistDN;
  217. var curColor = grd_temp.cellstyle("background-color", clickRow, clickCol, clickRow, clickCol);
  218. grd_temp.cellstyle("background-color", clickRow, clickCol, clickRow, clickCol) = curColor;
  219. }
  220. /**
  221. * @group :
  222. * @ver : 2009.06.11
  223. * @by : dhkim
  224. * @---------------------------------------------------
  225. * @type : function
  226. * @access : public
  227. * @desc : 당직대상자 마우스 오른쪽메뉴 mouse down
  228. * @param :
  229. * @return :
  230. * @---------------------------------------------------
  231. */
  232. function fMouseDownGridRow(){
  233. // var gbn = model.getValue("/root/cond/gbn");
  234. // if ( gbn == "O" ) {
  235. // grd_temp = grd_workerlistOC;
  236. // } else {
  237. // grd_temp = grd_workerlistDN;
  238. // }
  239. grd_temp = grd_workerlistDN;
  240. var rows = grd_temp.rows;
  241. var row = grd_temp.mouseRow-1;
  242. var col = grd_temp.mouseCol;
  243. if(row + 1 <= rows && rows > 2 && row > 0){
  244. if(event.button == 3){
  245. window.setPopupMenu(true, "/root/init/menu/item", "name", "func", false);
  246. }
  247. }else{
  248. window.setPopupMenu(false);
  249. }
  250. }
  251. function fSetWorkDr(setFlag, grd_temp){
  252. //선택된 당직대상자정보(id, nm)
  253. var drid = model.getValue('/root/main/drinfo/drinfolist[' + grd_drlist.row + ']/drid');
  254. var drnm = model.getValue('/root/main/drinfo/drinfolist[' + grd_drlist.row + ']/drnm');
  255. var orddeptcd = model.getValue('/root/main/drinfo/drinfolist[' + grd_drlist.row + ']/orddeptcd');
  256. var nzone = model.getValue('/root/main/drinfo/drinfolist[' + grd_drlist.row + ']/nzone');
  257. var hpno = model.getValue('/root/main/drinfo/drinfolist[' + grd_drlist.row + ']/hpno');
  258. var gbn = model.getValue('/root/cond/gbn');
  259. //현재날짜+시간(yyyymmddhhss)
  260. var currentDD = getCurrentDateTime().replace(" ", "").substring(0, 12);
  261. var errYn = 'N'; //과거일자 선택여부
  262. var cells = grd_temp.selectedCells; //선택된 쎌의 배열
  263. var sRow, sCol, sColNm; //선택된 쎌의 row, col 값, 선택된 col의 필드명
  264. var selDD; //선택된일자
  265. var confirm_d = "", confirm_n = "";
  266. var sSuperUser = model.getValue("/root/main/userinfo/superuser");
  267. for(var i = 0; i < cells.length; i++){
  268. sRowI = cells.item(i).row - 1;
  269. sRow = cells.item(i).row;
  270. sCol = cells.item(i).col;
  271. sColNm = grd_temp.colAttribute(sCol, "ref");
  272. selDD = model.getValue('/root/main/workerinfo/workerinfolist[' + sRowI + ']/workdd');
  273. confirm_d = model.getValue('/root/main/workerinfo/workerinfolist[' + sRowI + ']/confirm_d');
  274. confirm_n = model.getValue('/root/main/workerinfo/workerinfolist[' + sRowI + ']/confirm_n');
  275. if (((sColNm == "drnm_d" && confirm_d == "Y") || (sColNm == "drnm_n" && confirm_n == "Y")) && sSuperUser != "Y") {
  276. messageBox('최종저장된 자료는 수정할 수 없습니다.\r\n권역외상센터 담당자에게 연락바랍니다.', 'E999');
  277. return false;
  278. }
  279. //현재일자보다 이전일자의 스케줄을 변경하지 못하게 blocking한다.
  280. // if(selectedDD < currentDD){
  281. // errYn = 'Y';
  282. // }else{
  283. if(sCol != 0){//일자셀 선택의 경우는 변경하지 않음
  284. //의사추가의경우
  285. if(setFlag == 'ADD'){
  286. //점검로직 추가
  287. if (fCheckValid(selDD, "T", "-", sColNm, drid)) {
  288. //선택된 쎌에 의사이름 쎄팅
  289. model.setValue('/root/main/workerinfo/workerinfolist['+ sRowI + ']/gbn', gbn);
  290. if (sColNm == "drnm_d") {
  291. model.setValue('/root/main/workerinfo/workerinfolist['+ sRowI + ']/drnm_d', drnm);
  292. model.setValue('/root/main/workerinfo/workerinfolist['+ sRowI + ']/drid_d', drid);
  293. } else if (sColNm == "drnm_n") {
  294. model.setValue('/root/main/workerinfo/workerinfolist['+ sRowI + ']/drnm_n', drnm);
  295. model.setValue('/root/main/workerinfo/workerinfolist['+ sRowI + ']/drid_n', drid);
  296. }
  297. model.setValue('/root/main/workerinfo/workerinfolist['+ sRowI + ']/orddeptcd', orddeptcd);
  298. grd_temp.rowStatus(sRow) = "2";
  299. //선택된 쎌 색상 변경
  300. grd_temp.cellStyle('background-color', sRow, sCol) = "#F4A6EE";
  301. //지우개 이미지 삭제
  302. grd_temp.cellStyle("background-image", sRow, sCol) = '';
  303. }
  304. }
  305. //의사삭제의경우
  306. else{
  307. //셀에 데이터가 세팅되어 있는경우만 삭제되게
  308. var drnm = model.getValue('/root/main/workerinfo/workerinfolist['+ sRowI + ']/' + sColNm);
  309. if(drnm != ''){
  310. //선택된 쎌에 의사이름 쎄팅
  311. //model.setValue('/root/main/workerinfo/workerinfolist['+ sRow + ']/' + sColNm, '');
  312. model.setValue('/root/main/workerinfo/workerinfolist['+ sRowI + ']/drid' + sColNm.substring(4), '-');
  313. //선택된 쎌에 삭제 이미지 세팅
  314. //grd_workerlist.cellStyle("background-image", 1, 1) = '../../../emr/ercareweb/img/icon_close.gif';
  315. grd_temp.cellStyle("background-image", sRow, sCol) = '../../../com/commonweb/images/icon_eraser.gif';
  316. grd_temp.cellStyle("background-position", sRow, sCol) = 'center';
  317. //배경색을 흰색으로 초기화
  318. grd_temp.cellStyle('background-color', sRow, sCol) = "#ffffff";
  319. }
  320. // }
  321. }
  322. }
  323. }
  324. //과거일자만 빼고 나머지 일자는 변경가능하도록 한다
  325. if(errYn == 'Y'){
  326. messageBox('과거일자의 스케줄은 변경하실 수 없습니다.', 'E999');
  327. return false;
  328. }
  329. }
  330. function fSaveWorkDr(param){
  331. model.removeNodeset("/root/send");
  332. var orddeptcd = model.getValue("/root/main/workerinfo/workerinfolist[1]/orddeptcd");
  333. var drid = "";
  334. var gbn = model.getValue("/root/cond/gbn");
  335. var duty = "";
  336. var confirmyn = "N";
  337. // if (gbn == "O") {
  338. // grd_temp = grd_workerlistOC;
  339. // } else {
  340. // grd_temp = grd_workerlistDN;
  341. // }
  342. grd_temp = grd_workerlistDN;
  343. sHeader = "gbn▦workdd▦duty▦drid▦orddeptcd▦confirmyn▩";
  344. sData = "";
  345. for(i = grd_temp.fixedRows; i < grd_temp.rows; i++) {
  346. // if (gbn == "O") {
  347. // duty = 'A';
  348. // drid = grd_temp.ValueMatrix(i, grd_temp.colRef("drid"));
  349. // } else {
  350. // duty = 'D';
  351. // drid = grd_temp.ValueMatrix(i, grd_temp.colRef("drid_d"));
  352. // }
  353. duty = 'D';
  354. drid = grd_temp.ValueMatrix(i, grd_temp.colRef("drid_d"));
  355. if (drid == null || drid == "") {
  356. drid = '-';
  357. }
  358. if (param == "cnfm") {
  359. confirmyn = "Y";
  360. } else {
  361. confirmyn = grd_temp.ValueMatrix(i, grd_temp.colRef("confirm_d"));
  362. }
  363. sData += grd_temp.ValueMatrix(i, grd_temp.colRef("gbn")) + "▦"
  364. + grd_temp.ValueMatrix(i, grd_temp.colRef("workdd")) + "▦"
  365. + duty + "▦"
  366. + drid + "▦"
  367. + grd_temp.ValueMatrix(i, grd_temp.colRef("orddeptcd")) + "▦"
  368. + confirmyn + "▩" ;
  369. }
  370. confirmyn = "N";
  371. //if (gbn != "O") { // OnCall 스케줄일 때는 제외
  372. for(i = grd_temp.fixedRows; i < grd_temp.rows; i++) {
  373. duty = 'N';
  374. drid = grd_temp.ValueMatrix(i, grd_temp.colRef("drid_n"));
  375. if (drid == null || drid == "") {
  376. drid = '-';
  377. }
  378. if (param == "cnfm") {
  379. confirmyn = "Y";
  380. } else {
  381. confirmyn = grd_temp.ValueMatrix(i, grd_temp.colRef("confirm_n"));
  382. }
  383. sData += grd_temp.ValueMatrix(i, grd_temp.colRef("gbn")) + "▦"
  384. + grd_temp.ValueMatrix(i, grd_temp.colRef("workdd")) + "▦"
  385. + duty + "▦"
  386. + drid + "▦"
  387. + grd_temp.ValueMatrix(i, grd_temp.colRef("orddeptcd"))+ "▦"
  388. + confirmyn + "▩" ;
  389. }
  390. //}
  391. model.makeValue("/root/send/workerlist", sHeader + sData);
  392. if(submit("TXMNE05401")){
  393. //당직리스트색깔 초기화
  394. for(var i = 2; i <= grd_temp.rows; i++){
  395. grd_temp.cellstyle("background-color", i, 0, i, 6) = '#ffffff';
  396. grd_temp.cellStyle("background-image", i, 0, i, 6) = '';
  397. }
  398. //fGetWorkScheduleList(orddeptcd);//당직자리스트를 조회한다
  399. btn_search.dispatch('DOMActivate');
  400. }
  401. }
  402. function fDelWorkDr(workdd, orddeptcd, duty) {
  403. model.makeValue("/root/send/deldata/workdd", workdd);
  404. model.makeValue("/root/send/deldata/orddeptcd", orddeptcd);
  405. model.makeValue("/root/send/deldata/gbn", model.getValue("/root/cond/gbn"));
  406. model.makeValue("/root/send/deldata/duty", duty);
  407. if(submit("TXMNE05402")){
  408. btn_search.dispatch('DOMActivate');
  409. }
  410. }
  411. function fCheckValid(selDD, selGbn, selPlc, sColNm, drid) {
  412. // 시작/종료일시 기준자료 조회
  413. model.removenodeset("/root/send/basicinfo");
  414. model.makeValue("/root/send/basicinfo/workdd", selDD);
  415. model.makeValue("/root/send/basicinfo/hugbn", 'N');
  416. model.makeValue("/root/send/basicinfo/cdgrupid", 'P16');
  417. if (sColNm == "drnm_d") {
  418. model.makeValue("/root/send/basicinfo/duty", 'D');
  419. } else {
  420. model.makeValue("/root/send/basicinfo/duty", 'N');
  421. }
  422. submit("TRMNE05404");
  423. var fromtm = model.getValue("/root/init/basicinfo/stime");
  424. var totm = model.getValue("/root/init/basicinfo/etime");
  425. // 휴진내역이 있는지 점검
  426. var selDuty = sColNm.substr(5, 1).toUpperCase();
  427. var fromdt, todt;
  428. model.removenodeset("/root/send/validinfo");
  429. model.makeValue("/root/send/validinfo/workdd", selDD);
  430. model.makeValue("/root/send/validinfo/gbn", selGbn);
  431. model.makeValue("/root/send/validinfo/placecd", selPlc);
  432. model.makeValue("/root/send/validinfo/duty", selDuty);
  433. model.makeValue("/root/send/validinfo/drid", drid);
  434. model.makeValue("/root/send/validinfo/fromtm", fromtm);
  435. model.makeValue("/root/send/validinfo/totm", totm);
  436. submit("TRMNE09002");
  437. var sValidYn = model.getValue("/root/temp/validinfo/validyn");
  438. var sScheYn = model.getValue("/root/temp/validinfo/scheyn");
  439. var sHoliYn = model.getValue("/root/temp/validinfo/holiyn");
  440. if (sValidYn == "N") {
  441. if (sScheYn == "Y" && sHoliYn == "N") {
  442. messageBox("같은 일자에 등록된 당직 정보가 있습니다.", "E999");
  443. }
  444. if (sScheYn == "N" && sHoliYn == "Y") {
  445. messageBox("해당 일자에 등록된 휴진 정보가 있습니다.", "E999");
  446. }
  447. if (sScheYn == "Y" && sHoliYn == "Y") {
  448. messageBox("같은 일자에 등록된 당직정보와 해당 일자에 등록된 휴진 정보가 있습니다.", "E999");
  449. }
  450. return false;
  451. }
  452. return true;
  453. }
  454. /**
  455. * @group :
  456. * @ver : 2016.08.30
  457. * @by : 엄영만
  458. * @---------------------------------------------------
  459. * @type : function
  460. * @access : public
  461. * @desc : 근무정보 설정
  462. * @param : sActGubun 처리구분(I:입력, D:삭제)
  463. * @param : sGbn 당직구분(M0762)
  464. * @param : sWorkDd 근무일자
  465. * @param : sDuty 근무타입(D:주간, N:야간)
  466. * @param : sDeptcd 근무의사 부서
  467. * @param : sDrid 근무의사 사번
  468. * @return :
  469. * @---------------------------------------------------
  470. */
  471. function fSetWorkInfo(sActGubun, sGbn, sWorkDd, sDuty, sOrdDeptcd, sDrid, sConfirmYn) {
  472. model.removenode("/root/send");
  473. model.makeValue("/root/send/actgubun", sActGubun);
  474. model.makeValue("/root/send/gbn", sGbn);
  475. model.makeValue("/root/send/workdd", sWorkDd);
  476. model.makeValue("/root/send/duty", sDuty);
  477. model.makeValue("/root/send/orddeptcd", sOrdDeptcd);
  478. model.makeValue("/root/send/drid", sDrid);
  479. model.makeValue("/root/send/fromtm", sWorkDd);
  480. model.makeValue("/root/send/totm", sWorkDd);
  481. model.makeValue("/root/send/confirmyn", sConfirmYn);
  482. if(submit("TXMNE05403")){
  483. fGetWorkScheduleList(sOrdDeptcd, "save");
  484. } else {
  485. messageBox("당직의 저장에 실패 하였습니다..", "E999");
  486. }
  487. }