extjs-EXTJS页面设计,请各位大神来给看看,谢谢,在线等......

问题描述

EXTJS页面设计,请各位大神来给看看,谢谢,在线等......

现在要用EXTJS设计一个页面,但是刚接触两天,好多东西都不是很懂,所以页面写不出来....
请各位大神抽空帮写一个页面... 很着急..因为样式都是一样的.所以出一个我能拿来照着改就行,页面样子如图:

请大神帮忙写一个这个页面..谢谢了..

解决方案

这个是我自己写的...但是和原型设计的页面有出入.

 Ext.define('Forestry.app.environmentMonitor.ForestryAlarm', {
    extend : 'Ext.panel.Panel',
    initComponent : function() {
        var me = this;
        Ext.apply(this, {
            layout : 'border',
            items : [ Ext.create('Forestry.app.environmentMonitor.ForestryAlarmLeaflet'), Ext.create('Forestry.app.environmentMonitor.ForestryAlarmGrid', {
                cButtons : me.cButtons,
                cName : me.cName
            }) ]
        });
        this.callParent(arguments);
    }
});

//添加按钮弹框
Ext.define('App.WorkFlowConfigurationWindow', {
    extend : 'Ext.window.Window',
    constructor : function(config) {
        config = config || {};
        Ext.apply(config, {
            title : '流程配置管理信息',
            width : 350,
            height : 250,
            bodyPadding : '10 5',
            layout : 'fit',
            modal : true,
            items : [ {
                xtype : 'form',
                fieldDefaults : {
                    labelAlign : 'left',
                    labelWidth : 90,
                    anchor : '100%'
                },
                items : [ {
                    xtype : 'textfield',
                    name : 'orderNumber',
                    fieldLabel : '序号'
                }, {
                    xtype : 'textfield',
                    name : 'workFlowName',
                    fieldLabel : '流程名称'
                }, {
                    xtype : 'textfield',
                    name : 'sourceApplicationSystem',
                    fieldLabel : '源应用系统'
                }, {
                    xtype : 'textfield',
                    name : 'sourceDataSource',
                    fieldLabel : '源数据源'
                }, {
                    xtype : 'textfield',
                    fieldLabel : '目标系统',
                    name : 'targetSystem'
                } ,{
                    xtype : 'textfield',
                    fieldLabel : '目标数据源',
                    name : 'targetDateSource'
                },{
                    xtype : 'textfield',
                    fieldLabel : '状态',
                    name : 'status'
                }],
                buttons : [ '->', {
                    id : 'workflowwindow-save',
                    text : '确定',
                    iconCls : 'icon-accept',
                    width : 80,
                    handler : function() {
                        this.up('window').close();
                    }
                },{
                    id : 'workflowwindow-cancel',
                    text : '取消',
                    iconCls : 'icon-cancel',
                    width : 80,
                    handler : function() {
                           this.up('window').close();
                    }
                },{
                    id : 'workflowwindow-accept',
                    text : '确定',
                    hidden : true,
                    iconCls : 'icon-accept',
                    width : 80,
                    handler : function() {
                        this.up('window').close();
                    }
                },'->']
        }]
        });
        App.WorkFlowConfigurationWindow.superclass.constructor.call(this, config);
    }
});

//查询
Ext.define('Forestry.app.environmentMonitor.ForestryAlarmLeaflet',{
    extend : 'Ext.panel.Panel',
    region : 'north',
    height : '50%',
    split : true,
    initComponent : function() {
        this.callParent(arguments);
    }
});

//信息列表
Ext.define('Forestry.app.environmentMonitor.ForestryAlarmGrid', {
    extend : 'Ext.grid.Panel',
    plain : true,
    border : true,
    region : 'center',
    autoScroll : true,
    split : true,
    initComponent : function() {
        var me = this;

        var forestryTypeNameStore = Ext.create('Ext.data.JsonStore', {
            proxy : {
                type : 'ajax',
                url : appBaseUri + '',
                reader : {
                    type : 'json',
                    root : 'list',
                    idProperty : 'ItemValue'
                }
            },
            fields : [ 'ItemText', 'ItemValue' ]
        });

        Ext.define('ModelList', {
            extend : 'Ext.data.Model',
            idProperty : 'id',
            fields : ['orderNumber', 'workFlowName','sourceApplicationSystem','sourceDataSource','targetSystem','targetDateSource','status' ]
        });

        var store = Ext.create('Ext.data.Store', {
            model : 'ModelList',
            // autoDestroy: true,
            autoLoad : true,
            remoteSort : true,
            pageSize : globalPageSize,
            proxy : {
                type : 'ajax',
                url : appBaseUri + '/changeservice/workFlowConfiguration/searchWorkFlowConfiguration',
                extraParams : me.extraParams || null,
                reader : {
                    type : 'json',
                    root : 'data',
                    totalProperty : 'totalRecord',
                    successProperty : "success"
                }
            },
            sorters : [ {
                property : 'orderNumber',
                direction : 'DESC'
            } ]
        });

        var columns = [ {
            text : "序号",
            dataIndex : 'orderNumber',
            width : '5%'
        }, {
            text : "流程名称1",
            dataIndex : 'workFlowName',
            width : '10%'
        }, {
            text : "源应用系统",
            dataIndex : 'sourceApplicationSystem',
            width : '17%'
        }, {
            text : "源数据源",
            dataIndex : 'sourceDataSource',
            width : '17%'
        }, {
            text : "目标系统",
            dataIndex : 'targetSystem',
            width : '10%',
        }, {
            text : "目标数据源",
            dataIndex : 'targetDateSource',
            width : '17%',
        }, {
            text : "状态",
            dataIndex : 'status',
            width : '5%',
        } ];

        Ext.apply(this, {
            id : 'ForestryAlarmGrid',
            store : store,
            columns : columns,
            selModel : Ext.create('Ext.selection.CheckboxModel'),
            bbar : Ext.create('Ext.PagingToolbar', {
                store : store,
                displayInfo : true
            }),
            tbar : [ {
                xtype : 'button',
                itemId : 'btnAdd',
                iconCls : 'icon-add',
                text : '添加',
                hidden : !globalObject.haveActionMenu(me.cButtons, 'Add'),
                handler : me.onAddClick
            }, {
                xtype : 'button',
                itemId : 'btnDelete',
                iconCls : 'icon-delete',
                text : '删除',
                hidden : !globalObject.haveActionMenu(me.cButtons, 'Delete'),
                handler : me.onDeleteClick
            } ],
            listeners : {
                itemdblclick : function(dataview, record, item, index, e) {
                    var grid = this;
                    var id = grid.getSelectionModel().getSelection()[0].get('id');
                    var gridRecord = grid.getStore().findRecord('id', id);
                    var win = new App.WorkFlowConfigurationWindow({
                        hidden : true
                    });
                    var form = win.down('form').getForm();
                    form.loadRecord(gridRecord);
                    form.findField('workFlowName').setReadOnly(true);
                    form.findField('sourceApplicationSystem').setReadOnly(true);
                    form.findField('sourceDataSource').setReadOnly(true);
                    form.findField('targetSystem').setReadOnly(true);
                    form.findField('targetDateSource').setReadOnly(true);
                    form.findField('status').setReadOnly(true);
                    Ext.getCmp('workflowwindow-save').hide();
                    Ext.getCmp('workflowwindow-cancel').hide();
                    Ext.getCmp('workflowwindow-accept').show();
                    win.show();
                }
            }
        });

        store.loadPage(1);

        this.callParent(arguments);
    },
    onAddClick : function() {
        Ext.Msg.alert('提示','操作已经成功');
    },
    onDeleteClick : function() {
        globalObject.confirmTip('删除的记录不可恢复,继续吗?', function(btn) {
            if (btn == 'yes') {
                var s = Ext.getCmp("ForestryAlarmGrid").getSelectionModel().getSelection();
                if (s == "") {
                    globalObject.errTip('请先点击选择删除项!');
                } else {
                    var ids = [];
                    var idProperty = this.idProperty || 'id';
                    for (var i = 0, r; r = s[i]; i++) {
                        ids.push(r.get(idProperty));
                    }
                    Ext.Ajax.request({
                        url : appBaseUri + '',
                        params : {
                            ids : ids.join(',')
                        },
                        success : function(response) {
                            if (response.responseText != '') {
                                var res = Ext.JSON.decode(response.responseText);
                                if (res.success) {
                                    globalObject.msgTip('操作成功!');
                                    Ext.getCmp("ForestryAlarmGrid").getStore().reload();
                                } else {
                                    globalObject.errTip('操作失败!' + res.msg);
                                }
                            }
                        }
                    });
                }
            }
        });
    }
});

解决方案二:

大神们求助啊.... 真的很着急....

解决方案三:

这种直接发项目要求找人干活的建议去软件外包网站。顺便好奇问下,你的老板给你薪水也是发的“C币”?

解决方案四:

SENCHA ARCHITECT
用这个软件 可视化开发起来很快

时间: 2024-08-02 00:57:35

extjs-EXTJS页面设计,请各位大神来给看看,谢谢,在线等......的相关文章

应用-EXTJS页面设计,请教各位大神

问题描述 EXTJS页面设计,请教各位大神 我现在要做一个页面,如图 可是中间的那一排按钮.我添加不上去了. 第一次使用EXT.. 麻烦各位大神帮忙看看. // 流程配置管理信息添加 Ext.define('App.WorkFlowConfigurationWindow', { extend : 'Ext.window.Window', constructor : function(config) { config = config || {}; Ext.apply(config, { titl

ios-IOS项目中遇到问题,请各位大神帮帮忙,在线急等!!谢谢

问题描述 IOS项目中遇到问题,请各位大神帮帮忙,在线急等!!谢谢 "list={{q="gggggg",a="rrrrrrrr"},{q="gggggg",a="rrrrrrrr"},{q="gggggg",a="rrrrrrrr"}}"有这种样式的一组数据,我放在data中,怎么样才能取出,每个q,a相对应的值!请各位大神帮忙,在线等! 解决方案 先解析出list

请MFC大神给予指导 谢谢各位了 没有C币了 不好意思

问题描述 请MFC大神给予指导 谢谢各位了 没有C币了 不好意思 switch(judgedep) { case 0:if(str_curpos=="蔚蓝都市花园") m_curPosition=mynode[1]; case 1:if(str_curpos=="如海超市") m_curPosition=mynode[2]; case 2:if(str_curpos=="养生乐") m_curPosition=mynode[3]; ... } 这

问下关于rest的方式转页面的问题,求各位大神来看下~~谢谢

问题描述 @GET@Path("/pay")@Consumes("application/json;charset=UTF-8")@Produces("application/json;charset=UTF-8")publicvoidservice(final@ContextHttpServletResponseresponse){ 然后使用responseresponse.getWriter().write(html);这个方法画界面跳转,为

数据-Asp.net个人信息提交页面设计

问题描述 Asp.net个人信息提交页面设计 10C 求大神指点:利用Asp.Net中的服务器控件完成一个Web个人信息页面的设计,当用户输入的信息不符合要求,会提示错误信息,用户输入的信息符合要求,把输入的数据提交到服务器端的火速据库保存,(环境:IIS6.0以上,SQL Server 2008 ,vs随便)方便的话发有个邮箱:1067812912@qq.com 解决方案 就是一个作业题,简单的很,有不懂的来问就是了.简单点就用webform服务器端控件+ado.net实现,要求高点的话用mv

1排序-c#中的字母冒泡排序 请各位大神指导

问题描述 c#中的字母冒泡排序 请各位大神指导 如何完成字母的冒泡排序 例如 ab abc等相比 那个在先 该怎么写 请各位大神指导下 谢谢

计算机科学-请大家帮我看看 我的extjs 注册页面的 排版问题

问题描述 请大家帮我看看 我的extjs 注册页面的 排版问题 他的对齐特别恶心 这是为什么啊 怎么调整一下代码啊 var re = Ext.create('Ext.form.Panel', { bodyCls: 'bgimage', border : true, bodyPadding:5, width:350, height:500, defaults:{ margin:'58 0' }, items:[ { xtype:'textfield', fieldLabel:'用户名', name

js-利用DWR实现自动补全,请会的大神来看看?

问题描述 利用DWR实现自动补全,请会的大神来看看? 利用DWR实现自动补全,我现在在自己的笔记本上已经实现了去后台数据库访问并实现下拉框.但现在去公司的电脑上实现,而我并不知道公司的数据库,公司要求我做一个假的,然后直接调用接口替换掉我写的假的内容,这个我还没理清思路,请问怎么做? 解决方案 可以利用js dwr jquery插件来完成,我现在差的是一个思路 解决方案二: dwr和后台交互的是json格式的吧.那你手动写一个json的文件.然后让dwr去访问就好啦.如果能出来就说明dwr的方法

一个android展示页面布局设计,求大神解答....

问题描述 一个android展示页面布局设计,求大神解答.... D区域是一个ListView,也可一不是. 当D区域上下滑动的时候,ABC区域都要跟着滑动,相当与listview的HeadView ,但是D区域要左右滑动,左右滑动的时候B C的选中状态要跟着变化 这个怎么做啊,控件该怎么写,求指导,有Demo链接也行 解决方案 实现不是很难,如果你不考虑直接从底层实现的话,主要就是上下左右滑动,问度娘:github的开源项目,参考一下 解决方案二: viewpager,bc是vipager的t