Posts by Mariana • 2,512 points
256 posts
-
2
votes0
answers41
viewsQ: WCF error time - Await Jquery Post
I have this method, which until then works well: $('#modelEditar').submit(function (e) { $.post($(this).attr('EnvioLote'), $(this).serialize(), function (json) { if (json.sucesso == false) {…
-
-2
votes1
answer128
viewsQ: Select days comparison with current date does not work
I have this select which brings back the data as follows, if DataCobranca for 10, and today is day 05, it will pick up all customers that is day 10, as it will be generated 5 days before, or case…
-
0
votes1
answer104
viewsQ: Entity Framework Mapping - Area Code
I’m starting to work on a DDD project. I happen to be having a lot of doubts, and as much as I research, it gets more and more confused. I created this classe: public class Teste { public int Id {…
-
2
votes1
answer69
viewsQ: Function to check if the year changes
I have this code that almost works perfectly. I went to do a test, and when it arrives to generate in January, it generates for the same year, example it generated an invoice for 15/12/2019 and has…
-
1
votes3
answers101
viewsQ: Operator ?: does not work
I’m doing the union, in one of select i need to make a condition to appear in the correct way. To not keep appearing blank values. I tried to do it this way: Documento =…
-
2
votes1
answer30
viewsQ: Focus on a field with tabpage
I am using this code, to put the embroidery in red when a field of the tab is not filled correctly, and it then gives the Focus on the nearest tab, and so on.…
-
1
votes1
answer158
viewsQ: Function to generate fixed day-to-day launch
I have this function that when starting with T it will generate invoice for every day, example: if you have T10 will generate every day 10 as specified in the form of payment. Currently being done…
-
0
votes1
answer63
viewsQ: Change Coin Mask Function - Different Erase Way
I have this mask function: function MascaraMoeda(objTextBox, SeparadorMilesimo, SeparadorDecimal, e) { var sep = 0; var key = ''; var i = j = 0; var len = len2 = 0; var strCheck = '0123456789'; var…
-
3
votes1
answer145
viewsQ: Left Join with a table does not return null value
I have this select: var pesquisa = (from p in db.Produtos join pe in db.ProdutosEmpresas on p.Id equals pe.ProdutoID into peph from pe_ph in peph.DefaultIfEmpty() select new { p.Codigo, p.nome,…
-
3
votes0
answers136
viewsQ: Update all View data via Ajax
I need to update all my data View, i call this function to update, passing the company parameter: function CarregaCaixa() { var Empresa = $("#EmpresaFiltroId").val(); var url =…
-
0
votes1
answer281
viewsQ: Error while trying to popular a List
I’m trying to create a table with Union, I made a class to popular on ViewModel, in this way: public class ListVencimentos { public int Id { get; set; } public DateTime Data { get; set; } public…
-
0
votes1
answer72
viewsQ: Float field conversion problems
I have a problem that at first, is silly, but I am not able to solve, I have this function in ajax, that takes the values of input, and sends it to the controler: var url =…
-
0
votes1
answer1027
viewsQ: Mask accepting letters and numbers
I wear a mask Jquery thus, but fills only numbers: $("#FormaCalculosVencimentos").mask("000,000,000"); The need arose to type letters and numbers only in the first item, of each comma, would look…
-
3
votes1
answer44
viewsQ: Play list in an array
I created these two variables to be one array public static string[] doc { get; set; } public static string[] doc1 { get; set; } And I have these two items, where is a list var xDoc =…
-
2
votes1
answer60
viewsQ: Error picking web service return variable
I have a variable that I return that is of the type x509Certificate2, But once you get back into the system, it always comes null, but from the webserver, it returns perfectly, I’m not sure how to…
-
6
votes0
answers272
viewsQ: Fetch the certificate from the client, not from the server
I need to get the certificate, and I would like you to search the client, not the server, I try to do this way: public static X509Certificate2 EscolherCertificado(string serial) { var store = new…
-
0
votes0
answers44
viewsQ: Save xml file directly to the client and not to the server
I have an XML file, which can be created, is altered, and can be deleted, but wanted to save it on the machine the client is using, and not on the server, it is possible ? This is one of the ways I…
asp.net-mvcasked Mariana 2,512 -
0
votes1
answer106
viewsQ: Read XML with equal tag (nodes)
I have this xml, and I need to get the tag <ns2:InfNfse Id="24030TZYKNKKIPZM4PU7XGAZJ0UA84O6"> But in xml there are several tags with equal names. I tried to do this way below: XmlElement…
-
0
votes1
answer47
viewsQ: Failure return on Submit
I have a Ubmit, which before I perform this function: $('#modelEditar').submit(function (e) { var cancelada = $("#Cancelada").val(); if (cancelada == "False") { e.preventDefault(); var id =…
-
0
votes2
answers646
viewsQ: Select folder in directory in input
I need to put a input where the user selects the folder he wants to save the notes, but only select. I tried to do it this way: <input asp-for="Caminho" class="form-control" type="file" multiple…
asp.net-mvcasked Mariana 2,512 -
-1
votes1
answer85
viewsQ: Viewbag does not receive the value correctly
I’m trying to pass a figure on Controller for View, here is how it is in the View: <div class="alert alert-danger alert-dismissable" role="alert" id="alerta"> <button type="button"…
-
1
votes1
answer438
viewsQ: Get data return xml
I am trying to return the data of this xml: <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?> <GerarNfseResposta xmlns="http://www.betha.com.br/e-nota-contribuinte-ws">…
-
0
votes1
answer385
viewsQ: Webservice does not accept xml file
I am generating an XML, and sending to webservice, and it always returns me the same error, Error 500, however this error is vague, I managed to get the following error return: :Servercould not…
-
0
votes1
answer54
viewsQ: Error when serializing with namespace in if
I was creating a file and it worked normal, but now, when serialize appears Q1 in all tags, I’m doing this way: StringWriter sw = new StringWriter(); XmlTextWriter tw = new XmlTextWriter(sw);…
-
0
votes1
answer1087
viewsQ: Serialize XML for special characters
I get an Nfse XML, but I need to handle the special characters, example: ´^~Ç etc, I serializo it this way: StringWriter sw = new StringWriter(); XmlTextWriter tw = new XmlTextWriter(sw);…
-
0
votes2
answers781
viewsQ: Load select city after selecting state
I have this HTML, and would like when the user selects the state, it loads the city data of the selected state: <label asp-for="Cidade" class="col-md-1 control-label"…
-
3
votes1
answer968
viewsQ: Invalidcastexception: Unable to cast Object of type 'System.Security.Cryptography.Rsacng'
I am trying to pass the PIN through the code, so that the user does not need to enter it always, it is returning me this error: Invalidcastexception: Unable to cast Object of type…
-
0
votes1
answer125
viewsA: Choosing Certificate through CNPJ
I managed to solve by changing this line: X509Certificate2Collection fcollection = collection.Find(X509FindType.FindBySerialNumber, "serialcertificadoaqui", false); for this:…
-
0
votes1
answer125
viewsQ: Choosing Certificate through CNPJ
I have this function which searches the certificate by serial: public static X509Certificate2 EscolherCertificado() { var store = new X509Store("MY", StoreLocation.CurrentUser); X509Certificate2…
-
0
votes1
answer34
viewsQ: Serialize everything in a single line
I am generating an xml of an Nfse, but I need everything generated in a single line, even when generating the signature. When I serialize, I do it this way: StringWriter sw = new StringWriter();…
-
1
votes1
answer192
viewsQ: Save XML without formatting
I need to generate the xml, but without skipping line, the way I Gero he is all identado, as I do to save without skipping the line? document.LoadXml(soapEnvelope); document.Save(@"E:\nota.xml"); I…
-
1
votes0
answers115
viewsQ: Signing an xml with digital certificate
I’m trying to sign an xml file from an NFS-e. These are the functions that I’ve been assigned: public static MemoryStream stringToStream(string dados) { MemoryStream memoryStream; try { byte[]…
-
3
votes0
answers163
viewsQ: Function to validate xml
I have this function to validate an xml: public static bool ValidarXML(string pathXML, string pathSchema, ref string retorno) { bool falhou; // Define o tipo de validação XmlReaderSettings settings…
-
0
votes1
answer272
viewsQ: Return list to ajax
I have this function to load some data, but the need to load a list and include in a table the function was thus: [HttpPost] public ActionResult CarregaProduto(string id) { try { var item =…
-
-1
votes1
answer443
viewsQ: Readonly does not work
By dynamically including an item in table, I want to leave the field cbempresa with the readonly=true and when there are no items in the table he needs to be readonly=false , logic works when I use…
-
3
votes2
answers1074
viewsQ: Inner Join no entityframework
I need to do an Inner Join on Entity frameworkm in the bank, I can do normally this way: select * from Produtos inner join ProdutosEmpresas on ProdutoID = Produtos.Id But in the Entity framework I…
-
0
votes0
answers105
viewsQ: Field ? null is not sending if empty
I have this field: <label asp-for="TransportadorID" class="col-md-3 control-label" style="text-align:left;"></label> <div class="col-md-2"> <input type="text"…
-
1
votes2
answers376
viewsQ: Add table column with javascript and condition
I have this function which sums the fields of a column of table and works perfectly: let result = 0; let columns = $("#tablepesquisaprodutos tr td:nth-child(" + 8 + ")"); columns.each(i => {…
-
0
votes1
answer51
viewsQ: Validation javascript field with Split
I need to do a javascript validation, which picks up how many are filled, the mask is like this: 000,000,000,000 etc, in case it should pick up 4, as it is the sequence of 4, each thousand account…
-
1
votes1
answer31
viewsQ: Check if dynamic table is with data
I have a table which I fill out this way below, I would like to know how I can check if you have data in it. $("#tablepesquisaprodutos").append("<tr class='item'>" + "<td>" + "<input…
-
0
votes0
answers145
viewsQ: Not stopping Ubmit with e.preventDefault();
I have this function below, but it’s not stopping at e.preventDefault();, it performs and performs the submit on the page. Go on like I’m doing: $('#ClienteEditar').submit(function (e) {…
-
1
votes2
answers148
viewsQ: Validate all required dataannotations fields in the tabs
I am using tabs from bootstrap and use the dataannotations to include the required. However it does not validate all fields, I need it to validate the required, and if it is not validated, it…
-
0
votes1
answer271
viewsQ: Catch tab id - jquery
I’m trying to get the id of the tab in this way: var id = $('.tab-pane').find(':required:invalid').closest('.tab-pane').attr('id'); Now I’m trying this way: $('#FornecedorNovo').on('submit',…
-
1
votes1
answer32
viewsQ: Div when passing mouse on field does not work
I have this function, which worked well, now I don’t know why it doesn’t work, I think I’m missing some detail. This is the CSS: #mostrar { display: none; }…
-
0
votes1
answer68
viewsQ: Return not working on Function
I have this function, but the return does not work in it, I do not want it to leave it, until it conforms to the function: if ($('#FreteComprador').prop("checked") == true) { var id =…
-
1
votes2
answers99
viewsQ: Compare a column’s value with the checkbox
I’m trying to compare the value of a column of a table, so that depending on what is selected, show or hide the field, I arrived in this code: td = tr[i].getElementsByTagName("td")[3];…
-
0
votes1
answer311
viewsQ: Filter jquery list with checkbox
I have this function that filters a table, as the selected field and what was typed in the input, and works. function myFunction2() { var input, filter, table, tr, td, i, filtro; input =…
-
1
votes1
answer38
viewsQ: Checkbox field is not recognized marked
I have these two fields checkbox <label class="control-label col-md-3" style="text-align:left;">Tipo de Pedido</label> <div class="col-sm-3" style="text-align:left;"> <input…
-
0
votes1
answer70
viewsQ: Serialize form does not take the table
I have this function to check if something has changed in formulário, apparently it worked perfectly: $(function () { var init_form = $('#editarproduto').serialize(); $(':submit').click(function ()…
-
0
votes0
answers57
viewsQ: Function window.onbeforeunload
I have this function in my form But I don’t have one button submit, but I have a button that sends the data, and when clicking on it, it appears this Function message below, how can I put an…