1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- /* --------------------------------------------------------
-
- 회의별 참석현황(SMAYA05600.xfm - JScript )
-
- - Version :
- 1) : Ver.1.00.01
- : Create By 임여원
- : 2015.05.02
- -------------------------------------------------------- */
-
- var CurrentDate=getCurrentDate(); // 사업년도 올해 날짜로 CurrentDate에 저장
-
- /**
- * @group :
- * @ver : 2008.03.04
- * @by : Lim YeoWon
- * @-----------------------------------------------------------
- * @type : function
- * @access : public
- * @desc : 회의별 참석현황 초기화 함수
- * @-----------------------------------------------------------
- */
-
- function fInit() {
-
- ipt_fromdd.attribute("width") = "80"; // 조회 시작 기간 width 80
- ipt_todd.attribute("width") = "80"; // 조회 종료 기간 width 80
- ipt_fromdd.attribute('format') = 'yyyy-dd'; // 조회 시작 기간 포맷(년-월)
- ipt_todd.attribute('format') = 'yyyy-dd'; // 조회 종료 기간 포맷(년-월)
-
-
- var CurrentYY=CurrentDate.substr(0,4); // 현재 날짜의 년을 CurrentYY에 저장
- var CurrentYM=CurrentDate.substr(0,6); // 현재 날짜의 년과 월을 CurrentYM 저장
- model.setValue("/root/workinit/searchinfo/fromdd",CurrentYY+"01"); // 화면뜰때 조회시작기간 그해의 첫달로 셋팅
- model.setValue("/root/workinit/searchinfo/todd",CurrentYM); // 화면뜰때 조회종료기간 현재 달로 셋팅
-
- model.refresh();
-
- }
-
- /* --------------------------------------------------------------------------*/
- /* type : function */
- /* access : public */
- /* desc : 회의별 참석현황 조회 함수 */
- /* --------------------------------------------------------------------------*/
-
- function fConfAttdListRef()
- {
- if(model.getValue("/root/workinit/searchinfo/fromdd")=='')
- {
- messageBox("조회시작일자는","I003");
- model.setFocus("ipt_fromdd");
- return;
- }
- else if(model.getValue("/root/workinit/searchinfo/todd")=='')
- {
- messageBox("조회종료일자는","I003");
- model.setFocus("ipt_todd");
- return;
- }
- else if(model.getValue("/root/workinit/searchinfo/fromdd")>model.getValue("/root/workinit/searchinfo/todd"))
- {
- messageBox("조회종료일자가 조회시작일자 보다 클 수","I004");
- //model.setFocus("ipt_fromdd");
- return;
- }
-
- model.removenode("/root/send/reqdata"); // 조회 서브미션 보낼 데이터 리셋
- model.makeNode("/root/send/reqdata");
-
- model.makeValue("/root/send/reqdata/fromdd",model.getValue("/root/workinit/searchinfo/fromdd"));
- model.makeValue("/root/send/reqdata/todd",model.getValue("/root/workinit/searchinfo/todd"));
-
- submit("TRAYA05601");
- model.refresh();
- }
-
-
-
-
|