Exemplo n.º 1
0
 public TRegistro_CadFatDireto()
 {
     this.cd_empresa      = string.Empty;
     this.id_orcamento    = null;
     this.id_orcamentostr = string.Empty;
     this.nr_versao       = null;
     this.nr_versaostr    = string.Empty;
     this.id_projeto      = null;
     this.id_projetostr   = string.Empty;
     id_faturamento       = decimal.Zero;
     id_faturamentostr    = string.Empty;
     ds_empresa           = string.Empty;
     id_faturamento       = decimal.Zero;
     cd_fornecedor        = string.Empty;
     cd_endereco          = string.Empty;
     nr_nota          = string.Empty;
     dt_emissao       = null;
     Dt_emissao       = null;
     dt_emissaostring = string.Empty;
     Dt_emissaostring = string.Empty;
     descricao        = string.Empty;
     lFicha           = new CamadaDados.Empreendimento.TList_FichaTec();
     Cd_clifor        = string.Empty;
     id_registro      = decimal.Zero;
     Nm_clifor        = string.Empty;
     Cd_endereco      = string.Empty;
     cd_endereco      = string.Empty;
     Ds_endereco      = string.Empty;
     lFatDireto_Item  = new TList_CadFatDireto_item();
 }
Exemplo n.º 2
0
        private void bbOtimizar_Click(object sender, EventArgs e)
        {
            if (bsOrcamento.Current == null)
            {
                return;
            }
            else if (bsFicha.Current == null)
            {
                return;
            }

            CamadaDados.Empreendimento.TList_FichaTec lficha2 = new CamadaDados.Empreendimento.TList_FichaTec();
            lficha2.Add(bsFicha.Current as CamadaDados.Empreendimento.TRegistro_FichaTec);

            try
            {
                CamadaNegocio.Empreendimento.TCN_Orcamento.GravarOrcReq((bsOrcamento.Current as CamadaDados.Empreendimento.TRegistro_Orcamento), lficha2, null);
                MessageBox.Show("Gerado requisição de compra para o item selecionado.", "Informativo", MessageBoxButtons.OK, MessageBoxIcon.Information);
                bsFicha.RemoveCurrent();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Erro", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }