MiniUI级联

OnCellCommitEdit: function (e) {
            var grid = e.sender;
            var record = e.record;
            var field = e.field, value = e.value;
            var param = {};
            param.facdicId = value;
            var FacDicCode = "";
            if (field == "FacDicId") {
                Em.Ajax({
                    data: param,
                    url: pageJs.Url.ListFacDicCodeUrl,
                    async: false,
                    success: function (jsonData) {
                        FacDicCode = jsonData.list;
                    }
                });
                grid.updateRow(record, { FacilityCode: FacDicCode });
            }
        },

posted @ 2014-12-05 16:28  hornet_team  阅读(525)  评论(0编辑  收藏  举报