Posts by novato • 519 points
31 posts
-
5
votes2
answers2900
viewsQ: Customize Messagebox in C#
I got the following MessageBox MessageBox.Show("Deseja iniciar a forma automática?", "Atenção", MessageBoxButtons.YesNo, MessageBoxIcon.Question) I can personalize it? Instead of being the buttons…
-
2
votes1
answer1272
viewsA: How to delete datagridview line?
The solution was as follows: I populated differently and managed to exclude. var bindingList = new BindingList<ProdutosModel>(produtos); var source = new BindingSource(bindingList, null);…
-
2
votes1
answer1272
viewsQ: How to delete datagridview line?
Populo the datagridView thus: dgvProdutosErp.DataSource = produtos; // produtos é uma lista I try to remove as follows: foreach (DataGridViewRow row in dgvProdutosErp.Rows) {…
-
0
votes3
answers76
viewsA: Error using HAVING in date/time query
I believe the nickname is missing from IS_NULL. For example: a.IS_NULL
-
1
votes1
answer592
viewsQ: Scroll bars of the dataGridView c#
The option ScrollBars is as Both, but they’re not showing up at all. I don’t even have the code to exemplify it. Someone’s been there before? I’m carrying a datagridview, but there are appearing the…
-
0
votes1
answer207
views -
0
votes0
answers83
viewsQ: Special string character deletion does not work. c#
I have this string: EM RECUPERA�?�?O This string comes to me in a XML and I use the following code to treat that: byte[] bytes = Encoding.Default.GetBytes(xmlRetorno); xmlRetorno =…
-
1
votes2
answers113
viewsQ: Denied file deletion on C#
I am using the following line to create and record: File.WriteAllText(caminho + cliente, xml); In it I write an XML and then I deal with it as follows: if (File.Exists(caminho + cliente)) {…
-
0
votes0
answers1061
viewsQ: Send XML via POST
I have the following example to send XML via POST: public string EnviarXmlSoap(string methodName, string body) { WebRequest webRequest =…
-
3
votes1
answer3497
viewsQ: Display data in modal by angular ui
Hello By clicking on the link: <a href="" class="btn btn-info btn-block" ng-click="editarCliente(cliente)"> opens a modal (bootstrap) and shall display the data contained in cliente. I’m using…
-
2
votes2
answers3542
viewsQ: Compare with earlier date in oracle
Hello, I need to check which purchases were made in the last 7 days select * from carros car where to_date(to_char(to_date(car.datacompra,'yyyymmdd'),'dd-mm-yyyy')) = trunc(sysdate - 7) returns me…
-
2
votes1
answer3127
viewsQ: Call another controller function at the angle
I have this controller: myApp.controller('listarClientesController', function($scope, $http){ $scope.lista = listarClientes(); function listarClientes() { $http({ method: 'GET', url: baseUrl +…
-
0
votes2
answers449
viewsQ: php cadastre with angular js
Hello! I have the following controller at the angle: myApp.controller('cadastrarClienteController', function($scope, $http){ $scope.cadastrarCliente = function () { $cliente = { CliNome:…
-
1
votes2
answers795
viewsQ: Display date formatted in datagridview
In the datagridview has a date field in the format yyyyMMdd and need to display formatted in the correct form. tried this: dgvRequisicao.Columns["data"].DefaultCellStyle.Format = "dd/MM/yyyy"; But…
-
0
votes1
answer1460
viewsQ: Colorize line in datagridview c#
I’m trying to use the following method: for (int i = 0; i < dgvRequisicao.Rows.Count; i++) { valor = Convert.ToDouble(dgvRequisicao.Rows[i].Cells["valor"].Value); if (valor > 20000.01…
-
0
votes0
answers1073
viewsQ: Report Viewer with parameters. C#
Hello! The report (.rdlc) is successfully returning data with the help of a datatable, but I need to put parameters and it doesn’t work. Follows the code: private void frmReportTeste_Load(object…
-
0
votes1
answer905
viewsQ: Return name by id in view. PHP and Codeigniter
Hello! In the controller I have the following: public function index() { $data['demandas'] = $this->demandas_model->get_demandas(); $data['main_view'] = 'demandas/index';…
-
2
votes1
answer199
viewsQ: problems validating password hash in php
When creating a user, I do the following to criptografar the password: $options = ['cost' => 12]; $encripted = password_hash($this->input->post('senha'), PASSWORD_BCRYPT, $options); When…
-
0
votes0
answers275
viewsQ: inserting data into web api
I have a SPA application and it consumes a REST API made in ASP.NET Webapi. When trying to accomplish a Insert in the API, the following error is returned: Response for preflight has invalid HTTP…
-
1
votes0
answers848
viewsQ: Update cell value in Datagridview in C#
Hello! When clicking a button, I need you to update the value of a cell in the datagridview. follows the code I tried but didn’t work. private void btnAcesso_Click(object sender, EventArgs e) {…
-
2
votes1
answer2048
viewsQ: Load form_dropdown into codeigniter
In the controller have this method: <?php class Projetos extends CI_Controller { public function index() { $data['dados_clientes'] = $this->clientes_model->get_clientes();…
-
1
votes1
answer422
viewsQ: When clicking on link perform Reload in div with Angular. ng-click, ng-include, controller
Hello! I have this link: <ul class="nav child_menu"> <li><a href="graficos.html">Gráficos</a></li> </ul> When clicking on the link you should display the…
-
1
votes1
answer429
viewsQ: Chart.js with Angular using ng-include. Charts do not appear
Hello. In my index.html I have this <div ng-include="'graficos.html'"> </div> in graficost.html I have this: <div class="row"> <div class="col-md-6 col-sm-6 col-xs-12">…
-
1
votes2
answers1512
viewsQ: Send data through Angular
Hello! In the form of html I’ll tell you what: <div class="container jumbotron" ng-controller="crudCtrl"> <form role="form"> <div class="form-group"> <label…
-
1
votes1
answer241
viewsQ: $Conditional Room at Angle
Hello! I got these radio Buttons: <div class="row" ng-controller="GetDados"> <div class="col-lg-10 col-lg-offset-5"> <label class="radio-inline"> <input type="radio"…
-
3
votes1
answer1981
viewsQ: Consume REST service from Angular - Return JSON
I have the following angular Function consuming a service: function GetDados($scope, $http) { $http.get('http://localhost/api/v1/index.php/dados').success(function(data){ $scope.dados = data; }); }…
-
2
votes2
answers412
viewsQ: graphic with data from a REST service
I have a REST service done in PHP and this returns me data in JSON. When consuming the API url in REST, I need to display the data in javascript-based graphics. Does anyone know of a JS framework…
-
0
votes2
answers212
viewsQ: Help with json and adodb in PHP
good afternoon, the following code returns me in json... but is in Pdo.. as would be in adodb? $users = $stmt->fetchAll(PDO::FETCH_OBJ); echo '{"users": ' . json_encode($users) . '}'; Edit: I…
-
0
votes1
answer851
views -
0
votes2
answers505
viewsQ: Leave XML in a single line
My c# application gets the idented xml. I need to leave this xml all in one line. How can I do this?
-
1
votes1
answer2775
viewsQ: Sign XML Nfse
I need to sign the following XML: <?xml version="1.0" encoding="utf-8"?> <EnviarLoteRpsEnvio xmlns="http://www.abrasf.org.br/nfse.xsd"> <LoteRps Id="Id1" versao="Token1">…