SMAYA02600.js 5.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. /* --------------------------------------------------------
  2. 교직원신앙교육현황조회 (SMAYA02600.xfm - JScript )
  3. - Version :
  4. 1) : Ver.1.00.01
  5. : Create By 임여원
  6. : 2015.05.02
  7. -------------------------------------------------------- */
  8. /**
  9. * @group :
  10. * @ver : 2008.01.09
  11. * @by : Lim YeoWon
  12. * @---------------------------------------------------
  13. * @type : function
  14. * @access : public
  15. * @desc : 교직원신앙교육현황조회 화면의 초기화 함수
  16. * @---------------------------------------------------
  17. */
  18. function fInit() {
  19. var CurrentDate=getCurrentDate(); //현재 일자 변수 CurrentDate에 저장
  20. model.setValue("/root/workinit/searchinfo/fromdd",CurrentDate.substr(0,6)+"01"); //현재 달의 시작일 셋팅
  21. model.setValue("/root/workinit/searchinfo/todd",CurrentDate); //현재 날짜 셋팅
  22. model.removeNodeset("/root/init/clsnmlist/clsnmlistinfo");
  23. submit("TRAYA02602"); //교육명 콤보박스
  24. addComboItem("cmb_clsnm","","","above"); //콤보박스 상단에 아이템(전체)를 추가하는 함수
  25. model.refresh();
  26. }
  27. /* --------------------------------------------------*/
  28. /* type : function */
  29. /* access : public */
  30. /* desc : 교직원 신앙 교육 현항 조회 함수 */
  31. /* --------------------------------------------------*/
  32. function fEmpRelignEduc(){
  33. model.setValue("/root/workinit/searchinfo/attntrnm",ipt_attntrnm.currentText); //교직원명에 현재 입력한 텍스트를 노드에 저장
  34. var attntrnm=getStringLength(ipt_attntrnm.currentText); //입력한 교직원 문자열의 길이를 변수 attntrnm에 저장
  35. // if(attntrnm<"4") //교직원 명을 2자리 미만 입력 했을 때 오류 메시지
  36. // {
  37. // messageBox("교직원명을 2자리 이상" , "C001");
  38. // model.setFocus("ipt_attntrnm");
  39. // return;
  40. // }
  41. model.removenode("/root/send");
  42. model.makeValue("/root/send/fromdd", model.getValue("/root/workinit/searchinfo/fromdd")); // 조회시작일자
  43. model.makeValue("/root/send/todd" , model.getValue("/root/workinit/searchinfo/todd" )); // 조회종료일자
  44. model.makeValue("/root/send/clscd" , model.getValue("/root/workinit/searchinfo/clscd" )); // 분류코드
  45. model.makeValue("/root/send/usernm", model.getValue("/root/workinit/searchinfo/attntrnm")); // 교직원id
  46. submit("TRAYA02601"); //조회 서브미션
  47. model.refresh();
  48. }
  49. /* ------------------------------------------------- */
  50. /* ------End Of List ------------------------------- */
  51. /* -------------------------------------------------- */