SMAYA05600.js 8.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /* --------------------------------------------------------
  2. 회의별 참석현황(SMAYA05600.xfm - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. : Create By 임여원
  6. : 2015.05.02
  7. -------------------------------------------------------- */
  8. var CurrentDate=getCurrentDate(); // 사업년도 올해 날짜로 CurrentDate에 저장
  9. /**
  10. * @group :
  11. * @ver : 2008.03.04
  12. * @by : Lim YeoWon
  13. * @-----------------------------------------------------------
  14. * @type : function
  15. * @access : public
  16. * @desc : 회의별 참석현황 초기화 함수
  17. * @-----------------------------------------------------------
  18. */
  19. function fInit() {
  20. ipt_fromdd.attribute("width") = "80"; // 조회 시작 기간 width 80
  21. ipt_todd.attribute("width") = "80"; // 조회 종료 기간 width 80
  22. ipt_fromdd.attribute('format') = 'yyyy-dd'; // 조회 시작 기간 포맷(년-월)
  23. ipt_todd.attribute('format') = 'yyyy-dd'; // 조회 종료 기간 포맷(년-월)
  24. var CurrentYY=CurrentDate.substr(0,4); // 현재 날짜의 년을 CurrentYY에 저장
  25. var CurrentYM=CurrentDate.substr(0,6); // 현재 날짜의 년과 월을 CurrentYM 저장
  26. model.setValue("/root/workinit/searchinfo/fromdd",CurrentYY+"01"); // 화면뜰때 조회시작기간 그해의 첫달로 셋팅
  27. model.setValue("/root/workinit/searchinfo/todd",CurrentYM); // 화면뜰때 조회종료기간 현재 달로 셋팅
  28. model.refresh();
  29. }
  30. /* --------------------------------------------------------------------------*/
  31. /* type : function */
  32. /* access : public */
  33. /* desc : 회의별 참석현황 조회 함수 */
  34. /* --------------------------------------------------------------------------*/
  35. function fConfAttdListRef()
  36. {
  37. if(model.getValue("/root/workinit/searchinfo/fromdd")=='')
  38. {
  39. messageBox("조회시작일자는","I003");
  40. model.setFocus("ipt_fromdd");
  41. return;
  42. }
  43. else if(model.getValue("/root/workinit/searchinfo/todd")=='')
  44. {
  45. messageBox("조회종료일자는","I003");
  46. model.setFocus("ipt_todd");
  47. return;
  48. }
  49. else if(model.getValue("/root/workinit/searchinfo/fromdd")>model.getValue("/root/workinit/searchinfo/todd"))
  50. {
  51. messageBox("조회종료일자가 조회시작일자 보다 클 수","I004");
  52. //model.setFocus("ipt_fromdd");
  53. return;
  54. }
  55. model.removenode("/root/send/reqdata"); // 조회 서브미션 보낼 데이터 리셋
  56. model.makeNode("/root/send/reqdata");
  57. model.makeValue("/root/send/reqdata/fromdd",model.getValue("/root/workinit/searchinfo/fromdd"));
  58. model.makeValue("/root/send/reqdata/todd",model.getValue("/root/workinit/searchinfo/todd"));
  59. submit("TRAYA05601");
  60. model.refresh();
  61. }