This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "data": [ | |
| { | |
| "id": 15, | |
| "tipo": "venda", | |
| "obs_interna": "teste", | |
| "obs_pedido": "asdlsadlsaka", | |
| "created_at": "30-01-2015 11:59:50", | |
| "updated_at": "30-01-2015 11:59:50", | |
| "entidade": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $scope.removeItem = function(index){ | |
| if(!$scope.pedido.itens.data[index].id){ | |
| $scope.pedido.itens.data.splice(index, 1); | |
| }else{ | |
| $scope.pedido.itens.data[index]._destroy = true; | |
| } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <tr ng-repeat=item in pedido.itens.data | notViewDestroy"> | |
| <td>{{$index +1}}</td> | |
| <td>{{item.produto.data.cod}}</td> | |
| <td>{{item.produto.data.desc}}</td> | |
| <td>{{item.dt_ini | date:'shortDate'}}</td> | |
| <td>{{item.dt_fim | date:'shortDate'}}</td> | |
| <td>{{item.tes.data.cod}}</td> | |
| <td>{{item.produto.data.um}}</td> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Habilita o gzip | |
| gzip on; | |
| gzip_http_version 1.1; | |
| gzip_vary on; | |
| gzip_comp_level 6; | |
| gzip_proxied any; | |
| # Mime-types que serão compactados | |
| gzip_types text/html text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .directive('pfComobox', ["$timeout", function ($timeout) { | |
| 'use strict'; | |
| return { | |
| restrict: 'A', | |
| require: '?ngModel', | |
| scope: { | |
| selectPickerOptions: '=pfCombobox' | |
| }, | |
| link: function (scope, element, attrs, ngModel) { | |
| var optionCollectionList, optionCollection, $render = ngModel.$render; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| angular | |
| .module('app.directives') | |
| .directive('selectEntidade',['$uibModal','$http',function($uibModal,$http) { | |
| return { | |
| restrict: 'E', | |
| require: 'ngModel', | |
| scope:{ | |
| result:"=", | |
| ngModel: '=', | |
| }, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Core.Repository | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Linq.Expressions; | |
| public interface IRepository<T> where T : class | |
| { | |
| bool Add(T entity); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Linq.Expressions; | |
| using NHibernate; | |
| using NHibernate.Linq; | |
| public interface IEntity<TIdentity> |
OlderNewer