app end view a single camera picture function

function (Button, E) 
{ 
    Debugger; // interrupt debug instruction, you can remove it manually 
    var = Me the this, 
        View me.getView = (), 
        Grid view.down = ( 'List') || view.down ( 'Grid '), 
        Store grid.getStore = (), 
        Records = grid.getSelections (), 
        Record Records = [0]; 
    IF (record.get (' JianChaQiYeMenMian ') == null || record.get (' JianChaQiYeMenMian ') = = '') { 
        Alert ( 'no Photo inspectors'); 
        return to false; 
    } 
    // Ajax (the GET) request to the backend parameter 
    var the params = { 
        FuJian: record.get ( 'JianChaQiYeMenMian') 
    }; 
    var URL1 = '? / UploadManager / ViewFile ID ='; 
    var = URL2 'JPG.';

    // Ajax (GET) request. bool parameters params omitted behind (to true) 
    ajax.post ( '/ Pc / ShiPinJingYingRiChangJianChaJiLu / ShiPinBoFang', params) .then (function (Response, the opts) { 
        while // ajax request callback. Return Value response.Success == true Representative successful, otherwise an error. 
        IF (response.Success) { 
            var Ext.create win = ({ 
                xtype: 'Container', 
                plugins: 'pushnavigatemoremenu', 
                Close: function () 
                { 
                    util.closeByFullScreen (the this); 
                },                 
                title : 'facade View picture', 
                header: false, 
                Used by the Scrollable: false,  
                CLS: 'Edit-Page',
                // bodypadding: '0 0 0 0',
                layout:'fit',
                items:[{
                    xtype:'button',
                    text:'导航条菜单',
                    hidden: true,
                    menu:{
                        width: 100
                    }
                },{
                    xtype: 'container',
                    layout:'fit',
                    items:[{
                        xtype: 'image',
                        src: util.urlFillAll(url1+response.Data),
                        style: 'width: auto;height: auto;max-width: 100%;max-height: 100%;'
                    }]
                }] 
            });
            Util.showByFullScreen (win); // Full Screen 
        } the else { 
            Alert (response.Errors.join ( '')); // pop-up message box, error or failure message is returned back 
            return to false; 
        } 
    }); 
}

  

Guess you like

Origin www.cnblogs.com/jiaowoyaoshu/p/12468093.html