Posts by Rafael Passos • 527 points
59 posts
-
0
votes2
answers112
viewsQ: Search with Jquery filter
I have a Select, and a search field, which searches everything within a table. <select class="custom-select col-12" id="selecionarOrgao"> <option value="">Escolha o órgão</option>…
-
1
votes1
answer205
viewsQ: search by ID for each item in the list
I have a class called Attending. in it I have the following attributes: public class Atendimento { public Guid AtendimentoId { get; set; } public Guid? ResponsavelPorAtender { get; set; } public…
-
1
votes2
answers256
viewsQ: Close Load when opening modal
How do I stop the one gif, when my modal opens? When I click on the icon FA-SEARCH carries my modal, and the gif becomes infinite. <script type="text/javascript"> $(document).ready(function ()…
-
0
votes0
answers62
viewsQ: Modelstate invalida
I have a class called, Colaborador. and the collaborator has a bank. public class Colaborador { public virtual Banco Banco { get; set; } public Guid? BancoId { get; set; } } my problem, is that even…
-
3
votes1
answer89
viewsQ: Convert all strings to lowercase
There is a way to configure the modelBuider, to lower my strings? For example, when I want all my data of type string, be at my bank a varchar, i make the following configuration:…
-
0
votes0
answers47
viewsQ: Remove(item) Not working Asp.Net Mvc
I have a method that uses remove to remove from the list. but not for sure, not from the error, and neither does it remove. first I go on the bench to get the object. var ctrl =…
-
1
votes1
answer32
viewsQ: Code First Generating a foreign key
I have the following classes public class ControleDeVisitas { public virtual ICollection<TipoDeSistemas> TipoDeSistemas { get; set; } } public class TipoDeSistemas { public Guid…
-
0
votes0
answers21
viewsQ: Select Loading without AJAX data
I have ajax, which is coming with the blank data, as you can see in the images below, this arriving the data, except that at the time of loading in select, the value, and text, are empty…
ajaxasked Rafael Passos 527 -
2
votes2
answers557
viewsQ: Divide in equal parts c#
I have a class called customer, a call returns, and another call technicians. in a certain month period, I create returns for these customers. after creating the returns, I want to split for the…
c#asked Rafael Passos 527 -
0
votes1
answer123
viewsQ: Mascara Doesn’t Work
my mask doesn’t work when I wear a variable. for example: Projeto.Aplicacao.ViewModel.Clientes.ClienteViewModel cliente = (Projeto.Aplicacao.ViewModel.Clientes.ClienteViewModel)(ViewBag.Clientes);…
-
-1
votes1
answer148
viewsQ: Pick only one item from an ASP.NET MVC list
How do I pick up only one item from a list? for example: I have a class called Cliente, my client has a collection of Contatos Public class Cliente { public Int Id {get ;set;} public…
asp.net-mvcasked Rafael Passos 527 -
1
votes1
answer567
viewsQ: Complex HTML table with bootstrap
How to make more complex tables in html and use bootstrap? I searched the web, but I couldn’t understand it very well. how can I create this table in HTML, and use bootstrap. Someone would have to…
-
0
votes1
answer46
viewsQ: TR data-id coming Null Jquery
I am unable to capture the data-id of my TR. <script> function EditarContato() { var id = $(this).attr("data-id"); debugger; var url = '@Url.Action("EditarContato","ContatoG", new{area=…
-
0
votes1
answer146
viewsQ: Ajax request with data from another Ajax
I have an Ajax. that seeks information from receitaws this ajax brings the address and tbm the zip code. And I have another Ajax, who relays address information, through the zip code, one in…
-
0
votes2
answers821
viewsQ: CPF Mask | CNPJ. when loading
I have a script that masks CPF or CNPJ, is working perfectly. but it uses the method onKeyPress, then it only works, when I’m typing. when I bring an object that is CNPJ to show, the field CPF/CNPJ…
-
0
votes0
answers60
viewsQ: Lambda, add new item from the MVC 5 list
I have a model where a client has one or many Systems, and a System has one or many Customers: N:M I’m having a problem adding a new one SISTEMA, for my cliente My Model looks like this: public…
-
0
votes2
answers524
viewsQ: Validate Form Jquery
I have a form, that the button that makes his Submit, stays outside the tag <form>. then I send it via Script. The problem is he’s not validating the Form, before sending. I always only used…
-
1
votes1
answer32
viewsQ: blank option @htm.Enumdropdownlistfor MVC5
I’m having a problem in my Razor, I want the option that comes selected is a blank. my Razor is like this: @Html.EnumDropDownListFor(m => m.Endereco.Zona, string.Empty ,new { @class =…
-
1
votes0
answers77
viewsQ: Two Ajax requests
I need to make two Ajax requests. one for my own database. the other is via API. the first is to query in my database, if the CNPJ, informed is already registered, the second is for an external URL.…
-
0
votes1
answer110
viewsQ: Generate Unico Code in Sequence without Repeating MVC
I want to generate a registration code for each registered client. As ID I use the GUID, however, it is for ID(as it is extensive), I need a small code, not just a digit, for example: cód: 0001 , It…
-
0
votes1
answer209
viewsQ: Open Popup over another Popup
Can you open a popup over another popup? I have a window that opens in a popup, to register client, in this window I need to open another popup, to register or pull additional information. but every…
-
1
votes1
answer26
viewsQ: dropdow list MVC, with selected item
I have a dropdowlist that carries RamosDeAtidade, want to know how I do to my Edit view, already be selected the branch I registered, in my Controller, at Action Edit It’s like this: var cliente =…
-
0
votes0
answers162
viewsQ: The INSERT statement conflicted with the FOREIGN KEY constraint "Fk_dbo.Counter_dbo.Addresse_addressacoid"
I have two problems. I have the entity Accountant, Address and City. Every time I register a new one accountant, I have a dropdowlist who carries the cities so I can choose, the problem is that…
-
0
votes0
answers312
viewsQ: Converting a datetime2 data type into a datetime data type resulted in a value outside the range. The instruction has been completed
I have a class, a client who has a record date. public class ClienteViewModel: Pessoa { [ScaffoldColumn(false)] public DateTime? DataCancelamento { get; set; } [ScaffoldColumn(false)] public…
-
5
votes2
answers441
viewsQ: Show and hide button with jQuery
I have the following buttons: Below the button INCLUDE, has a button ETCH, that is set as HIDE():, when I click the button INCLUDE, I want the include button to be set as HIDE();, and the button…
jqueryasked Rafael Passos 527 -
0
votes1
answer24
viewsQ: Mapper.Map Addressmodel.Citysmodel Endereco.City
I have the class Addressee public class Endereco { public virtual Cidade Cidade { get; set; } public int CidadeId { get; set; } } And I got the Viewmodel Of That Class: public class…
-
0
votes1
answer113
viewsQ: MVC DDD Project
I’m creating an application, using the DDD standard, so in my Presentation layer, I create viewModel, and in the controller I use the Mapper.Map<Entidade, EntidadeViewModel> . i would like to…
-
0
votes0
answers83
viewsQ: Show Difenrentes Div with Foreach
I have a Home page that lists Projects, each div has a different class from the other, for example, the first project, shows an image, which is in a div that has a class col-lg-6 col-md-12…
-
0
votes1
answer597
viewsQ: Complex Form Bootstrap
I am creating a customer registration form. I am using the Bootstrap v:3.3.7 framework my client registration template, will open in a new pop-up: width=1300, height=630. When my form is at this…
-
1
votes2
answers208
viewsQ: Dropdown menu superimposing
I created a menu dropdown, submenu dropdown, The problem is that when I click one submenu and then another, the first one doesn’t close. What could be? <script…
-
0
votes1
answer229
viewsA: connectionString Local Network Asp.Net MVC SQL SERVER
It was just MSSQL SERVER configuration. If someone goes through the same problem, follow a tutorial that helped me http://www.systematiza.com.br/site/? page_id=837…
-
0
votes1
answer229
viewsQ: connectionString Local Network Asp.Net MVC SQL SERVER
I am trying to connect a bank in my application, which is networked, so I have put the following path: <connectionStrings> <add name="smc" connectionString="Data Source=192.168.0.29;…
-
0
votes1
answer186
viewsQ: Aspnet Mvc Automated Routine
I have the class Clientefirm and the class Archivists one client has a list of tax files (a maximum of 12 per year, one per month) and one Archivist has a Client. public class ArquivosFiscais {…
-
0
votes1
answer311
viewsA: Optimize Datatable
I solved the following command: #tableClientes { max-width: 1237px !important; display: block; overflow-x: scroll; white-space: nowrap; } the problem with this method is that I had to assign a limit…
answered Rafael Passos 527 -
0
votes1
answer57
viewsQ: Datatable bootstrap Options
I have a table, I want it to have a scrollX, when it reaches a maximum size limit. the problem is that it is giving reboot error. Then I researched the saw, that the problem was that I was starting…
jqueryasked Rafael Passos 527 -
0
votes1
answer168
viewsQ: Change View of Table
There is the possibility that I can create a menu, where I can choose which fields to show in my table? for example, I have a class with the following attributes: Name, Colour, Dating, Cpf, Rg, Id.…
-
0
votes1
answer118
viewsQ: return to a specific Nav tab
I have a controller, which after saved, it needs to be given to a specific tab, so I use as a retainer the following parameters. return Redirect(Url.Action("Editar/" + resultado.Id,…
-
0
votes0
answers45
viewsQ: Count number of Users
I have a Client class, and a Systems Class. A customer has one or more systems: public class ClienteEmpresa : Pessoa { public virtual ICollection<TipoDeSistemas> TipoDeSistemas { get; set; } }…
-
0
votes0
answers26
viewsQ: Font icon does not show
I created a font using the Inkscape app. and then converted it into a site that I don’t remember at the time... while I am using this font in visual studio, the font shows perfectly, as shown in the…
-
2
votes1
answer1035
viewsQ: Select Multiple with jQuery Chosen
I have a class Client, and a class System Man client may have more than one system, and a system, may have more than one client. I have a select Multiple capo, in my edit view, which loads the…
-
0
votes1
answer44
viewsQ: Calculate, Javascrips, Jquery
I have a script, which is calculating, only that it brings me an integer, ie, if I calculate the values: 15,20 + 2,36 + 20,36 it will calculate only the integers, will bring me the result without…
-
0
votes2
answers327
viewsQ: Receive List in View. Asp.Net Mvc
I’m having trouble with Action Edit. I have a class called Clientefirm this class has a System collection. For Example: The Customer X uses the systems To, C and F. My problem is how to present…
-
0
votes1
answer72
viewsA: Treat and Save List in Asp.Net MVC Controller
I managed to solve it, as follows. (if anyone else goes through the msm thing). public ActionResult Create(ClienteEmpresaViewModel clienteEmpresaviewmodel,List<int> SistemaComercial) {…
-
0
votes1
answer72
viewsQ: Treat and Save List in Asp.Net MVC Controller
I have a Customer Class, which uses 1 or several systems. public class ClienteEmpresa : Pessoa { public virtual ICollection<TipoDeSistemas> TipoDeSistemas { get; set; } } In my Action Get…
-
2
votes1
answer63
viewsQ: Save Object to another object’s controller
I have a class Collaborator, and a class Addressee. the collaborator has an address. In my collaborator class I have a: public virtual Endereco Endereco { get; set; } [ForeignKey("Endereco")] public…
-
1
votes2
answers43
viewsQ: Object attributes coming null in Query
Would anyone like to tell me why in my query, the attributes of the COR object, are coming null? I make that same appointment for Sizes, and you bring me the result waiting. however, when making the…
-
1
votes2
answers548
viewsQ: Send object list to View, by Viewbag Asp.net
I’d like to get some data: Class: public class Produto { public Produto() { this.Categoria = new HashSet<Categoria>().ToList(); } #region Atributos [Key] public int ProdutoId { get; set; }…
-
2
votes1
answer282
viewsQ: Upload Image, and Create a Thumb of the same Asp.Net Mvc Image?
I have a class called image, where I have two attributes, UrlDaImagem, and UrlDoThumb, I can save the image, normal only I would like to create a Thumb for that same image, without having to do a…
-
0
votes0
answers107
viewsQ: Images for the Asp.Net MVC Product
I have a problem, I don’t know how to save more than one image for a product. For example, an X product has a Highlight image (which is the one that will appear in the window), and 4 more images,…
-
1
votes1
answer322
viewsQ: Save Image Path to the database and call in View Asp.Net MVC
I’m trying to save the image path in the bank, and then call in the view, but it’s saving the entire physical path. and at the time of calling, does not appear the image. My Controller: public…
asp.net-mvcasked Rafael Passos 527