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
| {"_type":"export","__export_format":4,"__export_date":"2020-06-18T01:16:09.978Z","__export_source":"insomnia.desktop.app:v2020.2.2","resources":[{"_id":"req_d7e35e2c5b88438e9daf9980bb62688d","authentication":{},"body":{"mimeType":"application/json","text":""},"created":1592282724575,"description":"","headers":[{"id":"pair_d7b6599aa76649f5b463163fc3b8d78c","name":"Content-Type","value":"application/json"}],"isPrivate":false,"metaSortKey":-1592282724576,"method":"GET","modified":1592441510193,"name":"List","parameters":[],"parentId":"fld_157be7ffb3e74facb95e53e07c9f19c2","settingDisableRenderRequestBody":false,"settingEncodeUrl":true,"settingFollowRedirects":"global","settingRebuildPath":true,"settingSendCookies":true,"settingStoreCookies":true,"url":"{{ base_url }}/projects","_type":"request"},{"_id":"fld_157be7ffb3e74facb95e53e07c9f19c2","created":1592282645683,"description":"","environment":{},"environmentPropertyOrder":null,"metaSortKey":-1592282645683,"modified":1592282645683,"name":"Projetos","parentId": |
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
| public with sharing class ClienteFloricultura2Controller { | |
| public ClienteFloricultura2Controller() { | |
| } | |
| @AuraEnabled | |
| public static ClienteFloricultura2 sendCliente(Id clienteId, String nome, String cpf, Double rg, String endereco, Decimal telefone){ | |
| return new ClienteFloricultura2(clienteId, nome, ); | |
| } | |
| } |
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
| ({ | |
| enviar : function(component, event) { | |
| let action = component.get('c.sendCliente'); | |
| //attributes | |
| let nome = component.get('v.cliente.nome'); | |
| let cpf = component.get('v.cliente.cpf'); | |
| let rg = component.get('v.cliente.rg'); | |
| let endereco = component.get('v.cliente.endereco'); | |
| let telefone = component.get('v.cliente.telefone'); |
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
| public with sharing class ProdutoFloricultura2 { | |
| public Id ProdutoId{get; set;} | |
| private String Produto {get; set;} | |
| private String categoriaItem{get; set;} | |
| private Integer Estoque {get; set;} | |
| private Double Preco {get; set;} | |
| public ProdutoFloricultura2(String prod, String cat, Integer est, Double precoProd ){ | |
| Produto = prod; |
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
| public with sharing class ItemCompra2 { | |
| public Id itemCompraId{get; set;} | |
| private Integer quantidadeItem{get; set;} | |
| private Double valorTotal{get; set;} | |
| public ProdutoFloricultura2 produto = new ProdutoFloricultura2(); | |
| public ItemCompra2(Integer quantidade, ProdutoFloricultura2 prod){ | |
| produto = prod; | |
| quantidadeItem = quantidade; | |
| } |
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
| public with sharing class Compra2 { | |
| public ClienteFloricultura2 Cliente = new ClienteFloricultura2(); | |
| public List<ItemCompra2> Itens = new List<ItemCompra2>(); | |
| public Id CompraId{get; set;} | |
| private Date DataCompra {get; set;} | |
| private String StatusCompra {get; set;} | |
| private Double TicketMedio {get; set;} | |
| private Double ValorTotalCompras {get; set;} | |
| public Compra2(Date dataCompra, ClienteFloricultura2 cliente, List<ItemCompra2> itens){ |
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
| public with sharing class ClienteFloricultura2 | |
| { | |
| public static Id clienteId {get; set;} | |
| public static String nome {get; set;} | |
| public static String cpf {get; set;} | |
| public static Double rg {get; set;} | |
| public static String endereco {get; set;} | |
| public static Decimal telefone {get; set;} | |
| public static String categoriaCliente {get; set;} |
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
| from django import forms | |
| from .models import Product | |
| class ProductForm(forms.ModelForm): | |
| title = forms.CharField(label='Título') | |
| price = forms.IntegerField(label='Preço') | |
| summary = forms.CharField(label='Resumo', widget=forms.Textarea(attrs={'cols':15, 'rows': 2})) | |
| class Meta: | |
| model = Product |
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
| from subprocess import Popen, PIPE | |
| from docx import opendocx, getdocumenttext | |
| #http://stackoverflow.com/questions/5725278/python-help-using-pdfminer-as-a-library | |
| from pdfminer.pdfinterp import PDFResourceManager, PDFPageInterpreter | |
| from pdfminer.converter import TextConverter | |
| from pdfminer.layout import LAParams | |
| from pdfminer.pdfpage import PDFPage | |
| from cStringIO import StringIO |
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
| let data1 = new Date('2019-12-31 08:00'); | |
| let data2 = new Date('2019-12-31 08:10'); | |
| let diff_in_time = data2.getTime() - data1.getTime(); | |
| let dataInt = data2. getTime(); | |
| diff_in_hours = diff_in_time /60000; | |
| //diff_in_hours = parseFloat(diff_in_hours); | |
| console.log(dataInt); | |
| console.log(typeof(dataInt)); |