Код: Выделить всё
package com.action;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.List;
import com.opensymphony.xwork2.ActionSupport;
public class EmpLeavePlan extends ActionSupport{
private String bankId;
private String empName;
private String monthYear;
private String leaves;
private Map bankIds;
public String display() {
return "SUCESS";
}
public String getDefaultSearchEngine() {
return "yahoo.com";
}
public String execute() throws Exception
{
bankIds = new HashMap();
bankIds.put("1541742","h6");
bankIds.put("1541742","eft");
bankIds.put("1394842","dfd");
bankIds.put("1541742","dfee");
return "SUCCESS";}
public String getBankId() {
return bankId;
}
public Map getBankIds() {
return bankIds;
}
public void setBankIds(Map bankIds) {
this.bankIds = bankIds;
}
public void setBankId(String bankId) {
this.bankId = bankId;
}
public String getEmpName() {
return empName;
}
public void setEmpName(String empName) {
this.empName = empName;
}
public String getMonthYear() {
return monthYear;
}
public void setMonthYear(String monthYear) {
this.monthYear = monthYear;
}
public String getLeaves() {
return leaves;
}
public void setLeaves(String leaves) {
this.leaves = leaves;
}}
Код: Выделить всё
$(function() {
var currentDate = new Date();
$("#datepicker").datepicker( {
changeMonth: true,
changeYear: true,
showButtonPanel: true,
dateFormat: 'MM yy'
/* onClose: function(dateText, inst) {
$(this).datepicker('setDate', new Date(inst.selectedYear, inst.selectedMonth, 1));
} */
});
$("#datepicker").datepicker("setDate", currentDate);
});
.ui-datepicker-calendar {
display: none;
}
.ui-datepicker-year{
width: 70px !important;
height: 25px;
}
.ui-datepicker-month{
width: 60px !important;
height: 25px;
}
.ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all{
width: 213px !important;
}
Leave Plan Management!!!
Подробнее здесь: https://stackoverflow.com/questions/377 ... ext-fields