master plan 功能修改
来源:互联网 发布:淘宝买蔬菜种子 编辑:程序博客网 时间:2024/06/05 15:45
功能要求:在master plan系统中,copy一个新的masterplan时,添加一个有输入框的提示框,使项目名称可编辑 如图所示:
思路:在form中添加一个隐藏字段,然后将用户输入的项目名称设置到隐藏字段中,提交后台….
添加隐藏字段:
this.fields.add("project_hidden",new Ext.form.Hidden ({xtype: "hidden",name:"project_hidden",id:"project_hidden",width:150,allowBlank:false,labelSeparator:":*" ,fieldLabel: "project_hidden",insert_allowed:true,update_allowed:true}));提示框
Ext.Msg.show({ title:'Copy',msg: '您將copy一個新的master plan,是否修改項目名('+project_id+')?',buttons: Ext.Msg.YESNO,modal:false,scope:this,icon: Ext.MessageBox.QUESTION ,fn: function(btn,txt){ if (btn=='yes') { if (this.fields.get('MP_ID_manipulate').getValue() != this.fields.get('MP_ID').getValue()){ Ext.Msg.alert('操作不成功,請重試!'); }else{ this.fields.get('project_hidden').setValue(txt); //将输入值设置到虚拟字段中 console.log("the test value is :==="+this.fields.get('project_hidden').getValue()+"-----txt is -----"+txt); if (!MasterWriteAccess && !this.getCommitAllowVariable()) this.commitForm(); } } },prompt:true//显示输入框 });
- master plan 功能修改
- 总体规划 master plan
- Secrete Master Plan HDU
- HDU5540-Secrete Master Plan
- UESTC 1215 Secrete Master Plan
- A - Secrete Master Plan【ccpc】
- HDU 5540 Secrete Master Plan
- 2015 CCPC Secrete Master Plan
- hdu 5540/Secrete Master Plan
- Secrete Master Plan (模拟)
- HDU5540 Secrete Master Plan(模拟)
- HDU 5540 Secrete Master Plan
- CDOJ 1215--Secrete Master Plan【水题】
- ccpc Secrete Master Plan(水模拟)
- 2015南阳CCPC A - Secrete Master Plan
- 杭电5540 Secrete Master Plan
- hdu5540 Secrete Master Plan--矩阵旋转
- HDU 5540 Secrete Master Plan(水)
- Android事务操作(操作sqlite导入大量数据耗时的解决方法)
- 解决Jquery $("#main").html($("#main").html()+data);在Firefox中无效
- Python中globals和locals的区别-pybatis的准备阶段(六)
- [IO]如何列出某个目录下的所有子目录
- 从用户空间传递到内核中字符串的长度
- master plan 功能修改
- 用Bitmap加载图片资源时,报错java.lang.OutOfMemoryError: bitmap size exceeds VM budget的解决办法
- WebView加载网络PDF(一)
- SO_REUSEADDR例解
- 自己写shell 解释器
- Androidpn大汇总
- Quartz.NET--AdoJobStore作业存储
- Android开发_如何调用系统默认浏览器访问
- CarParts2