Posts by pnet • 14,727 points
909 posts
-
0
votes0
answers16
viewsQ: How to sort a model
I am having difficulty making an ordering, because I return an object and within that object, I have a list of another object and that list needs to be ordered by a property. The point is, when I…
-
0
votes0
answers20
viewsQ: How to Record and Read Files on Android 11(API 30)
When I run the APP and at the time of reading and downloading a PDF file, I get the error of: corrupted or missing file. I know that Android 11(API 30) has problems with external files. This is my…
-
0
votes0
answers45
viewsQ: Swagger returns error when climbing the API
I’m catching this mistake: Fetch errorundefined https://localhost:44358/Swagger/v2/Swagger.json When I only had one controller, Swagger would go up normally and I could do my tests and so on. Now,…
-
-2
votes1
answer42
viewsQ: Trying a CRUD with Asp.Net Core 3.1 and gives error in connection with Sql Server
This is my connection string "ConnectionStrings": { "bdcoreconn": "Server=.\\SQLEXPRESS;Database=BdCoreCrud;Trusted_Connection=False;MultipleActiveResultSets=true;User Id=sa;Password=Simb@d123;" },…
-
0
votes0
answers32
viewsQ: Static method does not recognize fields in aspx
This method needs to be Static [WebMethod] public void ValidaSenhaAntiga(object sender, EventArgs e) { long CPF = Helper.DFrmtCPF(cpf.Value); string senhaAtual = SenhaAtual.Value; bool senhaAt =…
-
1
votes1
answer96
viewsQ: Run unit test with memory database and fromsqlraw is giving error
I’m trying to build a unit test with . Net Core 3.1 and using Xunit. It turns out I still don’t have a database and so I use the UseInMemoryDatabase. Turns out when I make the call from PROC, I get…
-
-4
votes1
answer247
viewsQ: Error while running Angular project
I installed the angler: npm install -g @angular/cli and created a project. While trying to run ng serves I caught that mistake: The serve command requires to be run in an Angular project, but a…
-
0
votes0
answers50
views -
0
votes1
answer40
viewsQ: Bring manager and employee who are on the same table
I have a table of EMPLOYEES and another call HIER_SAP. In the HIER_SAP I have two important fields for what I want, that are the fields CODSUP and CODFUNC. For each CODFUNC(official) I have a…
-
1
votes1
answer39
viewsQ: Assign date to a var date in oracle
v_data date; v_data := to_date(to_char('01/02/2020)); This approach does not work. How do I assign a date to a var date on oracle?
-
-2
votes1
answer130
viewsQ: ACCESS_DENIED when consuming API Googles Maps
Trying to do a geolocation between zip code, I have this code, downloaded <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Calcular distancia entre cidades (mapas e…
-
-2
votes1
answer58
viewsQ: I can’t build the iOS app for publication
When I try to build my App(IOS), it says it doesn’t have Provisioning Profile. I did all the step-by-step in the Apple Store, like > Appid(Profile), Certificate(Development and Production), and…
-
-6
votes1
answer52
viewsQ: Remove App from Apple Store
There is an App posted to the Apple Store. I received an order to remove this App as it will go up under another name. How do I remove the App? OBS Remove from Apple Store
-
-2
votes1
answer136
viewsQ: Positive date period validation gives Nan error
I got it on my JS var inicioFerias = new Date($("#txtInitialVacancies").val()); var fimFerias = new Date($("#txtFinalVacancies").val()); var utc1 = Date.UTC(fimFerias.getFullYear(),…
-
1
votes1
answer81
viewsQ: Return lambda value and not lambda mounted query
I did that lambda OfferUri = OfferUri.Select(s => s.Items.Where(a => a.SubscriptionId == s.Id).Select(n => n.Id).FirstOrDefault()).ToString() and when I see what she returns to me, I have…
-
0
votes1
answer37
viewsQ: Icollection property in class is not instantiated
I have the product class and in that class I have this property public virtual ICollection<CspProduct> CspItems { get; set; } Here we take the products var products =…
-
1
votes1
answer119
viewsQ: Convert Iqueryable to a type
I made that code OrderItem itens = new OrderItem(); var items = _orderService.GetItemsFromOrder(orderId); itens = items.Where(x => x.CurrencyCode == 23).Select(s => new OrderItem { ProductId =…
-
0
votes1
answer38
viewsQ: Placing disc or Circle or square markers does not work
I did that <tr class="espaco-branco table-prod-add"> <ul type="disc"> <li> <td style="white-space: nowrap;"> @mainItem.ShoppingCartMessage </td> </li> </ul>…
-
1
votes1
answer236
viewsQ: Foreach in a Viewbag is not working properly
Inside that foreach @foreach (var item in Model) { <tr> <td> <h3 id="subscription-@(item.SubscriptionId)" data-id="@item.SubscriptionId" class="item-accordion result-header">…
-
0
votes1
answer58
viewsQ: Viewbag error: does not contain a definition for field name
I got this Viewbag ViewBag.LogAlteracao = _logAlteracaoRepository.Table.Where(log => log.OrderId == id).ToList(); That is the domain public class LogAlteracao : EntityBase { public DateTime? Data…
-
1
votes1
answer100
viewsQ: Error while trying to render a partial view in a view
I have a View(cshtml) and I need to call a partialView. This Partial is a table with the logs of that Sale, which will be viewed in tabular format at the bottom of the View. The problem is that when…
-
1
votes1
answer45
viewsQ: Jquery seems not to update
I have a Customer code = 3368. I made a function jquery that takes the code from Dropdown, which may be 1 or 3368 (only has two records there in the dropdown). It turns out that when I have in…
-
-1
votes1
answer98
viewsQ: Go to the next row of a table with while. Is it possible?
I wonder if without a cursor, I have how to scroll through a table within a While. Example, I have this block: SET @CONT = 0 WHILE @cont < 3 BEGIN EXEC GP_ImprimeConsProdutosTipo ' and…
-
0
votes0
answers65
viewsQ: Changes to other branchs in tfs appear in the branch where I act
I don’t know much about TFS. But one thing is driving me crazy. Whenever I open a certain BRANCH to work, to finish and I will in PENDING CHANGES to make checkin and I see that in addition to the…
-
1
votes1
answer74
viewsQ: Error while trying to update inside a foreach
I have this foreach private void UpdateAzureDiscountGroupReseller(IQueryable<Reseller> model) { Reseller resellerObj = new Reseller(); foreach (var item in model) {…
-
-3
votes2
answers10307
viewsA: Calling modal by javascript
I resolved it that way <input type="hidden" id="md" data-toggle="modal" data-target="#myModal" /> Javascript function function MostraModal() { $("#md").click(); } And the button…
-
-5
votes2
answers10307
viewsQ: Calling modal by javascript
These are the files referring to boot and js. I inserted them in the Layout page <script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"…
-
1
votes1
answer66
viewsQ: Performance of sql server with concatenated joins
Make a INNER JOIN with the keys concatenated, as below, breaks and/or impairs the performance of the bank? INNER JOIN Totvs12.dbo.SE1010 receber ON receber.E1_FILIAL + receber.E1_NUM +…
-
1
votes1
answer170
viewsQ: Optimize query. The foreach is too slow
I have this query [Route("")] [HttpGet] [ResponseType(typeof(List<MarkupListResponse>))] public IHttpActionResult Get(int resellerId) { var catalogs =…
-
0
votes2
answers46
viewsA: Footer is repeating when I press Partialview in the dropdown change
I decided as follows In the view I left only the div where would be placed the Partialview. I pass an Index parameter to the Controller and tell if it is the first pass. Then I return to View or…
-
0
votes2
answers46
viewsQ: Footer is repeating when I press Partialview in the dropdown change
I changed the question to make it clearer, it was dirty and now I understand the problem better. When I open the list, I have a Details button. When I click on this button, I open the details screen…
-
2
votes1
answer111
viewsQ: Savechanges is truncating the decimal value
I’ll rephrase the question: I need to write to the database with four decimal places. For example. In the view I type a percentage value of 56.78%. In the bank should be recorded 0.5678. That’s why…
-
1
votes1
answer1116
viewsQ: Make a "distinct" in a query with many fields in select
In this query, can I do a sort of distinct? A Group By is very slow and there are many fields. Pure distinct does not solve, as there are several fields. How would that be? DECLARE @CodTerceiro int…
-
0
votes1
answer354
viewsQ: Doubt when mounting a Where in a Procedure
On the site, I have a filter that already works. This filter will be maintained, but the table will be another, from another bank including. The rule for the filter is, if the parameter passed is:…
-
1
votes0
answers107
viewsQ: How to put one more condition in the Join on clause in a Linq/Lambda query
This query I run in the bank and is working as it should select rci.markuppercentual from resellercatalogitem rci join [Order] od on rci.ResellerCatalogId = od.ResellerCatalogId join OrderItem oi on…
-
1
votes2
answers33
viewsA: Url in jquery is being mounted wrong
I resolved so: url: '@Url.Action("GetDados/")' + idcustomer,
-
1
votes2
answers33
viewsQ: Url in jquery is being mounted wrong
I have a View called Invoice, inside a controller named Order. If I take my jquery and leave url: '', it already mounts in the browser that: locahost:porta/dominio/order/FaturarPara I’ll go to…
-
1
votes1
answer32
viewsQ: Pass controller(action) information to a jquery function and vice versa
A jquery function will call a modal screen when changing a Dropdownlist. When I make the change, the value of id should be sent to Action there is then made a calculation and the result is sent to…
-
0
votes2
answers42
viewsQ: How to load Enum property into a Lambda
I own property like that public CustomerTypeRequest Type { get; set; } That guy(CustomerTypeRequest) is an Enum, as below public enum CustomerTypeRequest { Guest = 0, //Visitante anônimo Customer =…
-
0
votes0
answers88
viewsQ: When calling Modal, screen is displayed and disappears and the execution continues
The idea of Modal is a screen that is displayed and the screen below is disabled and the execution of the program only follows after closing the Modal. With me it looks like this. Modal is displayed…
-
0
votes1
answer354
viewsQ: Modal does not rise when called by jquery
After a few mistakes, I managed to make jquery work. Now I need to call Modal from inside jquery in the change of a Dropdownlist. Below my jquery. $(document).ready(function() {…
-
0
votes2
answers144
viewsQ: Clear html content with jquery not working
I have this jquery <script type="text/javascript"> $(document).ready(function () { $("#GrupoDescontos").change(function () { $.ajax ({ url: '' + $(this).val(), type: 'GET', success: function…
-
0
votes1
answer44
viewsQ: Enter a screen with the dropdown option already selected
I got this dropdown <div class="form-group"> @Html.Label("Grupo de Desconto", htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10">…
-
1
votes1
answer49
viewsA: List error is null but I am filling
Doing so resolved [HttpGet] public ActionResult Details(AzureDiscountGroupModel modelD) { var discount = _azureDiscountGroupService.GetAll(); var list = new List<ResellerListModel>(); var…
-
0
votes1
answer49
viewsQ: List error is null but I am filling
I have this Action in my controller [HttpGet] public ActionResult Details(AzureDiscountGroupModel modelD) { var discount = _azureDiscountGroupService.GetAll(); var list = new ResellerListModel();…
-
0
votes0
answers345
viewsQ: How to call controller method for a View
Nessa Dropdown <div class="form-group"> @Html.Label("Grupo de Desconto", htmlAttributes: new { @class = "control-label col-md-2" }) <div class="col-md-10"> @Html.DropDownList("Grupo de…
-
0
votes1
answer89
viewsA: How to browse a Viewbag and popular a cshtml table
I decided, it was not to put a @Html.Display and yes this @foreach (var item in ViewBag.DetailReseller as IEnumerable<Reseller>) { <tr> <td> @item.Name </td> <td>…
-
-1
votes1
answer89
viewsQ: How to browse a Viewbag and popular a cshtml table
This is my Viewbag public ActionResult Details(AzureDiscountGroupModel model) { var reseller = _resellerService.QueryAll(); ViewBag.DetailReseller = reseller.Where(x => x.AzureDiscountGroupId ==…
-
1
votes0
answers74
viewsQ: I can’t use two models in one with cshtml
I need to load a dropdown, but the dropdown data comes from one model and cshtml is from another model. So I created a model that was common to both of us and I decided on this model, the two models…
-
0
votes1
answer32
viewsQ: How to use Dropdownlistfor
In an archive .cshtml need to put a Dropdownlistfor<>. It would be populated by a virtual property, which is a foreign key in this Model. It would be this on .cshtml: <div…