Esempio n. 1
0
 private void BtnConfirmar_Click(object sender, RoutedEventArgs e)
 {
     dto.Partnumber = txtPartnumber.Text.ToUpper().Trim(' ').Replace("'", "''");
     dto.Ncm        = txtNCM.Text.ToUpper().Trim(' ').Replace("'", "''");
     dto.Custo      = Convert.ToDouble(txtCusto.Text.ToUpper().Trim(' '));
     dto.Ipi        = (Convert.ToDouble(txtIPI.Text.ToUpper().Trim('%')) / 100);
     dto.Icms       = (Convert.ToDouble(txtICMS.Text.ToUpper().Trim('%')) / 100);
     dto.Status_Id  = Convert.ToInt32(cbxStatus.IsChecked).ToString();
     dto.Anotacoes  = txtAnotacoes.Text.Replace("'", "''").Replace("\n", "\r\n").ToUpper();
     bll.UpdateProduto(dto);
     DialogResult = true;
     this.Close();
 }