extjs添加页面时间获取不到
来源:互联网 发布:python执行exe程序 编辑:程序博客网 时间:2024/06/06 08:47
controller.astudent.StudentC
addStudent : function(button){//添加保存
var me = this;var win = button.up('window'), form = win.down('form').getForm();
var grid=this.getStudentVRef().grid;
if (form.isValid()) {
form.submit({
url:win.url,
params : {
btimes : win.down('datefield[name=btimes]').getValue(),
endTimes:win.down('datefield[name=endTimes]').getValue()
},
success : function(form, action) {
Ext.Msg.alert('信息提示', action.result.data);
if(action.result.success){
win.close();
grid.store.load();
}
},
failure : function(form, action) {
Ext.Msg.alert('提示', action.result.data);
}
});
}
},
===========================
添加页面
{xtype : 'datefield',fieldLabel : '开学时间',name : 'btimes',//时间不能和实体类时间一样
format:'Y-m-d H:i:s',//altFormats: 'Y-m-d'
},
=====================
后台controller
@RequestMapping("addStudent")
@ResponseBody
public Msg addStudent(Student student,@RequestParam("btimes") String btimes,@RequestParam("endTimes") String endTimes){
try {
student.setBtime(HStringUtil.getDateFstr(btimes));
student.setEtime(HStringUtil.getDateFstr(endTimes));
student.setCreated(new Date());
student.setCreater(SystemUtils.getUserContext().getUser().getUserName());
proheadService.add(student);
} catch (Exception e) {
e.printStackTrace();
return fail(e.getMessage());
}
return success("添加成功");
}
- extjs添加页面时间获取不到
- extjs添加页面时间保存不了
- extjs状态获取不到
- extjs获取当前时间
- Extjs 解决store.getUpdatedRecordes()获取不到数据
- 页面获取不到session中值
- jsp页面获取不到servlet中添加到request中的信息问题详解
- 第三个页面获取不到session
- 页面JS获取不到控件ID
- android sqlite 获取不到数据时间
- 获取不到Extjs中分页参数start,limit的原因
- 获取页面加载时间
- 页面获取系统时间
- Extjs 为panel动态添加html页面
- ExtJs 获取其他页面的组件方式
- extjs 比较及获取当前时间
- 获取文件创建时间时获取不到的解决方法
- JSP页面添加当前时间
- OI模板·求逆序对数量
- 对于KMP算法的一点点理解(仅仅就是一点点)
- 通用栈(c实现)
- 【openjudge】符号三角形
- vue组件化挖矿之旅(一):vue-cli 项目的安装
- extjs添加页面时间获取不到
- Oracle字符串操作 、 Oracle数值操作 、 Oracle日期操作 、 空值操作
- 面对ICO乱象,这里有一份老猫的4000字投资指南
- shiro表单的验证 自定义FormAuthenticationFilter
- iOS 模拟器安装APP
- hdu2151 Worm DP
- 各类距离和python实现
- linux关机重启命令
- HTML5中获取地理位置