Пример #1
0
        protected override bool bSalvaIdRelatorio()
        {
            try
            {
                System.Collections.ArrayList arlCondicaoCampo = new System.Collections.ArrayList();
                System.Collections.ArrayList arlCondicaoTipo  = new System.Collections.ArrayList();
                System.Collections.ArrayList arlCondicaoValor = new System.Collections.ArrayList();

                arlCondicaoCampo.Add("idExportador");
                arlCondicaoTipo.Add(mdlDataBaseAccess.Comparador.Igual);
                arlCondicaoValor.Add(m_nIdExportador);

                arlCondicaoCampo.Add("idPE");
                arlCondicaoTipo.Add(mdlDataBaseAccess.Comparador.Igual);
                arlCondicaoValor.Add(m_strIdCodigo);

                m_cls_dba_ConnectionDB.FonteDosDados = mdlDataBaseAccess.FonteDados.DataBase;
                mdlDataBaseAccess.Tabelas.XsdTbPes typDatSetTbPe = m_cls_dba_ConnectionDB.GetTbPes(arlCondicaoCampo, arlCondicaoTipo, arlCondicaoValor, null, null);
                if (typDatSetTbPe.tbPEs.Rows.Count > 0)
                {
                    mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPe = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)typDatSetTbPe.tbPEs.Rows[0];
                    dtrwPe.nIdRelatorioIndefinido = m_nIdRelatorio;
                    m_cls_dba_ConnectionDB.SetTbPes(typDatSetTbPe);
                }
            }
            catch (Exception err)
            {
                Object erro = err;
                m_cls_ter_tratadorErro.trataErro(ref erro);
            }
            return(false);
        }
Пример #2
0
 protected override void carregaDadosBD()
 {
     mdlDataBaseAccess.Tabelas.XsdTbPes typDatSetPes = GetTypDatSetPes();
     if (typDatSetPes.tbPEs.Rows.Count > 0)
     {
         mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPe = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)typDatSetPes.tbPEs.Rows[0];
         if (!dtrwPe.IsbTransbordoNull())
         {
             m_bValorBooleano = dtrwPe.bTransbordo;
             if (!dtrwPe.IsmstrLocalTransbordoNull() && (dtrwPe.mstrLocalTransbordo.Trim() != ""))
             {
                 m_bValorBooleano = true;
             }
         }
         else
         {
             mdlDataBaseAccess.Tabelas.XsdTbInstrucoesEmbarque typDatSetInstrucoesEmbarque = GetTypDatSetInstrucoesEmbarque();
             if (typDatSetInstrucoesEmbarque.tbInstrucoesEmbarque.Rows.Count > 0)
             {
                 mdlDataBaseAccess.Tabelas.XsdTbInstrucoesEmbarque.tbInstrucoesEmbarqueRow dtrwTbInstrucoesEmbarque = (mdlDataBaseAccess.Tabelas.XsdTbInstrucoesEmbarque.tbInstrucoesEmbarqueRow)typDatSetInstrucoesEmbarque.tbInstrucoesEmbarque.Rows[0];
                 if (!dtrwTbInstrucoesEmbarque.IsbPermitirTransbordoNull())
                 {
                     m_bValorBooleano = dtrwTbInstrucoesEmbarque.bPermitirTransbordo;
                 }
             }
         }
     }
 }
Пример #3
0
 private void carregaDadosBD()
 {
     try
     {
         mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwTbPes = null;
         if (m_typDatSetTbPes.tbPEs.Rows.Count > 0)
         {
             dtrwTbPes = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)m_typDatSetTbPes.tbPEs.Rows[0];
             #region Seguro
             m_strIdentificacaoSeguro = (dtrwTbPes.IsstrIdSeguroNull() ? "" : dtrwTbPes.strIdSeguro);
             m_dtEmissaoSeguro        = (dtrwTbPes.IsdtEmissaoSeguroNull() ? System.DateTime.Now : dtrwTbPes.dtEmissaoSeguro);
             #endregion
             #region Fitossanitario
             m_strIdentificacaoFito = (dtrwTbPes.IsstrIdFitossanitarioNull() ? "" : dtrwTbPes.strIdFitossanitario);
             m_dtEmissaoFito        = (dtrwTbPes.IsdtEmissaoFitoSanitarioNull() ? System.DateTime.Now : dtrwTbPes.dtEmissaoFitoSanitario);
             #endregion
             #region Peso
             m_strIdentificacaoPeso = (dtrwTbPes.IsstrIdCertificadoPesoNull() ? "" : dtrwTbPes.strIdCertificadoPeso);
             m_dtEmissaoPeso        = (dtrwTbPes.IsdtEmissaoCertificadoPesoNull() ? System.DateTime.Now : dtrwTbPes.dtEmissaoCertificadoPeso);
             #endregion
             #region Analise
             m_strIdentificacaoAnalise = (dtrwTbPes.IsstrIdCertificadoAnaliseNull() ? "" : dtrwTbPes.strIdCertificadoAnalise);
             m_dtEmissaoAnalise        = (dtrwTbPes.IsdtEmissaoCertificadoAnaliseNull() ? System.DateTime.Now : dtrwTbPes.dtEmissaoCertificadoAnalise);
             #endregion
         }
     }
     catch (Exception err)
     {
         Object erro = err;
         m_cls_ter_tratadorErro.trataErro(ref erro);
     }
 }
Пример #4
0
 protected void carregaDadosBD()
 {
     try
     {
         if (m_typDatSetTbPEs.tbPEs.Rows.Count > 0)
         {
             mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwTbPEs = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)m_typDatSetTbPEs.tbPEs.Rows[0];
             m_strRE     = (dtrwTbPEs.IsmstrRENull() ? "" : dtrwTbPEs.mstrRE);
             m_dtDataRE  = (!dtrwTbPEs.IsdtEmissaoRENull() ? dtrwTbPEs.dtEmissaoRE : System.DateTime.Now);
             m_strSD     = (dtrwTbPEs.IsmstrSDNull() ? "" : dtrwTbPEs.mstrSD);
             m_dtDataSD  = (!dtrwTbPEs.IsdtEmissaoSDNull() ? dtrwTbPEs.dtEmissaoSD : System.DateTime.Now);
             m_strDSE    = (dtrwTbPEs.IsmstrDSENull() ? "" : dtrwTbPEs.mstrDSE);
             m_dtDataDSE = (!dtrwTbPEs.IsdtEmissaoDSENull() ? dtrwTbPEs.dtEmissaoDSE : System.DateTime.Now);
             if (m_strRE.Trim() != "")
             {
                 m_bRE = true;
             }
         }
     }
     catch (Exception err)
     {
         Object erro = err;
         m_cls_ter_tratadorErro.trataErro(ref erro);
     }
 }
Пример #5
0
 protected void setaPEConcluido(ref mdlComponentesGraficos.ListView lvPEs, bool bConcluido)
 {
     try
     {
         System.DateTime dtConclusao = System.DateTime.Now;
         mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwTbPEs = null;
         foreach (System.Windows.Forms.ListViewItem lvItemPE in lvPEs.SelectedItems)
         {
             dtrwTbPEs = m_typDatSetTbPes.tbPEs.FindByidExportadoridPE(m_nIdExportador, lvItemPE.Text);
             if (dtrwTbPEs != null)
             {
                 dtrwTbPEs.bConcluido = bConcluido;
                 if (bConcluido)
                 {
                     dtrwTbPEs.dtDataConclusao = dtConclusao;
                 }
                 else
                 {
                     dtrwTbPEs.SetdtDataConclusaoNull();
                 }
             }
         }
         salvaDadosBD(true);
         carregaTypDatSet();
     }
     catch (Exception err)
     {
         m_cls_ter_tratadorErro.trataErro(ref err);
     }
 }
Пример #6
0
        private mdlDataBaseAccess.Tabelas.XsdTbPes GetTbPes()
        {
            if (m_strIdPe == "")
            {
                return(null);
            }
            System.Collections.ArrayList arlCondicaoCampo      = new System.Collections.ArrayList();
            System.Collections.ArrayList arlCondicaoComparador = new System.Collections.ArrayList();
            System.Collections.ArrayList arlCondicaoValor      = new System.Collections.ArrayList();

            arlCondicaoCampo.Add("idExportador");
            arlCondicaoComparador.Add(mdlDataBaseAccess.Comparador.Igual);
            arlCondicaoValor.Add(m_nIdExportador);

            arlCondicaoCampo.Add("idPE");
            arlCondicaoComparador.Add(mdlDataBaseAccess.Comparador.Igual);
            arlCondicaoValor.Add(m_strIdPe);

            m_cls_dba_ConnectionDB.FonteDosDados = mdlDataBaseAccess.FonteDados.DataBase;
            mdlDataBaseAccess.Tabelas.XsdTbPes typDatSetPE = m_cls_dba_ConnectionDB.GetTbPes(arlCondicaoCampo, arlCondicaoComparador, arlCondicaoValor, null, null);
            if (typDatSetPE.tbPEs.Rows.Count > 0)
            {
                mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPE = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)typDatSetPE.tbPEs.Rows[0];
                if (!dtrwPE.IsmstrDSENull())
                {
                    m_strPersonalizavel = dtrwPE.mstrDSE;
                }
            }
            return(typDatSetPE);
        }
Пример #7
0
        private void vGeraPersonalizavel()
        {
            System.Text.StringBuilder     strbPersonalizavel = new System.Text.StringBuilder();
            System.Collections.SortedList sortLstDSEPE       = new System.Collections.SortedList(new mdlComponentesColecoes.clsComparerNumbersTexts());
            // Ordenando
            for (int i = 0; i < m_typDatSetDSEsPEs.tbDSEsPEs.Rows.Count; i++)
            {
                mdlDataBaseAccess.Tabelas.XsdTbDSEsPEs.tbDSEsPEsRow dtrwDSEPE = (mdlDataBaseAccess.Tabelas.XsdTbDSEsPEs.tbDSEsPEsRow)m_typDatSetDSEsPEs.tbDSEsPEs.Rows[i];
                if ((dtrwDSEPE.RowState != System.Data.DataRowState.Deleted) && (dtrwDSEPE.nIdExportador == m_nIdExportador) && (dtrwDSEPE.strIdPE == m_strIdPe))
                {
                    sortLstDSEPE.Add(GetDSENumero(dtrwDSEPE.nIdDSE), dtrwDSEPE);
                }
            }

            // Inserindo
            for (int i = 0; i < sortLstDSEPE.Count; i++)
            {
                mdlDataBaseAccess.Tabelas.XsdTbDSEsPEs.tbDSEsPEsRow dtrwDSEPE = (mdlDataBaseAccess.Tabelas.XsdTbDSEsPEs.tbDSEsPEsRow)sortLstDSEPE.GetByIndex(i);
                if (strbPersonalizavel.ToString() != "")
                {
                    strbPersonalizavel.Append(" , ");
                }
                strbPersonalizavel.Append(sortLstDSEPE.GetKey(i).ToString());
            }
            m_strPersonalizavel = strbPersonalizavel.ToString();
            if (m_typDatSetPes.tbPEs.Rows.Count > 0)
            {
                mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPE = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)m_typDatSetPes.tbPEs.Rows[0];
                dtrwPE.mstrDSE = m_strPersonalizavel;
            }
        }
        private mdlDataBaseAccess.Tabelas.XsdTbCartasCredito GetTbCartasCredito()
        {
            mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPE = GetDtrwPE();
            if ((dtrwPE == null) || (dtrwPE.IsnIdCartaCreditoNull()))
            {
                return(null);
            }
            mdlDataBaseAccess.Tabelas.XsdTbFaturasComerciais.tbFaturasComerciaisRow dtrwFaturaComercial = GetDtrwFaturaComerical();
            if ((dtrwFaturaComercial == null) || (dtrwFaturaComercial.IsidImportadorNull()))
            {
                return(null);
            }

            System.Collections.ArrayList arlCondicaoCampo      = new System.Collections.ArrayList();
            System.Collections.ArrayList arlCondicaoComparador = new System.Collections.ArrayList();
            System.Collections.ArrayList arlCondicaoValor      = new System.Collections.ArrayList();

            arlCondicaoCampo.Add("nIdExportador");
            arlCondicaoComparador.Add(mdlDataBaseAccess.Comparador.Igual);
            arlCondicaoValor.Add(m_nIdExportador);

            arlCondicaoCampo.Add("nIdCartaCredito");
            arlCondicaoComparador.Add(mdlDataBaseAccess.Comparador.Igual);
            arlCondicaoValor.Add(dtrwPE.nIdCartaCredito);

            arlCondicaoCampo.Add("nIdImportador");
            arlCondicaoComparador.Add(mdlDataBaseAccess.Comparador.Igual);
            arlCondicaoValor.Add(dtrwFaturaComercial.idImportador);

            m_cls_dba_ConnectionBD.FonteDosDados = mdlDataBaseAccess.FonteDados.DataBase;
            return(m_cls_dba_ConnectionBD.GetTbCartasCredito(arlCondicaoCampo, arlCondicaoComparador, arlCondicaoValor, null, null));
        }
Пример #9
0
        private string strReturnMessageMountedDeadlineOutro(int nIdExportador, string strIdPe)
        {
            System.Collections.ArrayList arlCondicaoCampo      = new System.Collections.ArrayList();
            System.Collections.ArrayList arlCondicaoComparador = new System.Collections.ArrayList();
            System.Collections.ArrayList arlCondicaoValor      = new System.Collections.ArrayList();

            arlCondicaoCampo.Add("idExportador");
            arlCondicaoComparador.Add(mdlDataBaseAccess.Comparador.Igual);
            arlCondicaoValor.Add(nIdExportador);
            arlCondicaoCampo.Add("idPE");
            arlCondicaoComparador.Add(mdlDataBaseAccess.Comparador.Igual);
            arlCondicaoValor.Add(strIdPe);

            m_cls_dba_ConnectionDB.FonteDosDados = mdlDataBaseAccess.FonteDados.DataBase;
            mdlDataBaseAccess.Tabelas.XsdTbPes typDatSetPes = m_cls_dba_ConnectionDB.GetTbPes(arlCondicaoCampo, arlCondicaoComparador, arlCondicaoValor, null, null);
            if (typDatSetPes.tbPEs.Rows.Count > 0)
            {
                mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwProcesso = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)typDatSetPes.tbPEs.Rows[0];
                if (!dtrwProcesso.IsstrDeadlineOutroNull())
                {
                    return(dtrwProcesso.strDeadlineOutro);
                }
                else
                {
                    return("");
                }
            }
            else
            {
                return("");
            }
        }
Пример #10
0
 private void vSalvaDadosTerminalContatoSelecionado(int nIdContato)
 {
     if ((m_typDatSetPes != null) && (m_typDatSetPes.tbPEs.Rows.Count > 0))
     {
         mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPe = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)m_typDatSetPes.tbPEs.Rows[0];
         dtrwPe.nIdTerminalContato = nIdContato;
     }
 }
Пример #11
0
 private void vSalvaDadosDespachanteSelecionado(int nIdDespachante)
 {
     if ((m_typDatSetPes != null) && (m_typDatSetPes.tbPEs.Rows.Count > 0))
     {
         mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPe = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)m_typDatSetPes.tbPEs.Rows[0];
         dtrwPe.nIdDespachante = nIdDespachante;
     }
 }
Пример #12
0
 private void vSalvaDadosArmadorSelecionado(int nIdArmador)
 {
     if ((m_typDatSetPes != null) && (m_typDatSetPes.tbPEs.Rows.Count > 0))
     {
         mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPe = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)m_typDatSetPes.tbPEs.Rows[0];
         dtrwPe.nIdArmador = nIdArmador;
     }
 }
 protected override void salvaDadosBDEspecifico()
 {
     if (m_typDatSetPes.tbPEs.Rows.Count > 0)
     {
         mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwRowPe = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)m_typDatSetPes.tbPEs.Rows[0];;
         dtrwRowPe.strDeadlineOutro = m_strObservacoes;
         m_cls_dba_ConnectionBD.SetTbPes(m_typDatSetPes);
     }
 }
Пример #14
0
 protected override void salvaDadosBDEspecifico()
 {
     if (m_typDatSetProcessos.tbPEs.Rows.Count > 0)
     {
         mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwProcesso = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)m_typDatSetProcessos.tbPEs.Rows[0];
         dtrwProcesso.mstrViagem = m_strObservacoes;
         m_cls_dba_ConnectionBD.SetTbPes(m_typDatSetProcessos);
     }
 }
Пример #15
0
 protected override string CarregaDataMultipla()
 {
     mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPE = GetDtrwPE();
     if ((dtrwPE == null) || (dtrwPE.IsmstrDataEmissaoDSENull()))
     {
         return(CarregaDataMultiplaDefault());
     }
     return(dtrwPE.mstrDataEmissaoDSE);
 }
Пример #16
0
 protected override void salvaDadosBDEspecificos()
 {
     mdlDataBaseAccess.Tabelas.XsdTbPes typDatSetPes = GetTypDatSetPes();
     if (typDatSetPes.tbPEs.Rows.Count > 0)
     {
         mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPe = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)typDatSetPes.tbPEs.Rows[0];
         dtrwPe.bTransbordo = m_bValorBooleano;
         m_cls_dba_ConnectionDB.SetTbPes(typDatSetPes);
     }
 }
Пример #17
0
 protected override void salvaDadosBDEspecifico()
 {
     mdlDataBaseAccess.Tabelas.XsdTbPes typDatSetPEs = GetTbPEs();
     if (typDatSetPEs.tbPEs.Rows.Count > 0)
     {
         mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPE = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)typDatSetPEs.tbPEs.Rows[0];
         dtrwPE.mstrObservacoes = m_strObservacoes;
         m_cls_dba_ConnectionBD.SetTbPes(typDatSetPEs);
     }
 }
Пример #18
0
 private void carregaDadosBDPEs()
 {
     if ((m_typDatSetTbPes != null) && (m_typDatSetTbPes.tbPEs.Rows.Count > 0))
     {
         mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwTbPes = null;
         dtrwTbPes = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)m_typDatSetTbPes.tbPEs.Rows[0];
         if ((dtrwTbPes != null) && (!dtrwTbPes.IsnIdConsignatarioNull()))
         {
             m_nIdConsignatario = dtrwTbPes.nIdConsignatario;
         }
     }
 }
Пример #19
0
 private void vCarregaDadosTerminalContatoSelecionado(out int nIdContato)
 {
     nIdContato = -1;
     if ((m_typDatSetPes != null) && (m_typDatSetPes.tbPEs.Rows.Count > 0))
     {
         mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPe = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)m_typDatSetPes.tbPEs.Rows[0];
         if (!dtrwPe.IsnIdTerminalContatoNull())
         {
             nIdContato = dtrwPe.nIdTerminalContato;
         }
     }
 }
Пример #20
0
 protected override bool SalvaDataMultipla(string strDataMultipla)
 {
     mdlDataBaseAccess.Tabelas.XsdTbPes typDatSetPE = GetTbPE();
     if (typDatSetPE.tbPEs.Rows.Count == 0)
     {
         return(false);
     }
     mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPE = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)typDatSetPE.tbPEs.Rows[0];
     dtrwPE.mstrDataEmissaoDSE = strDataMultipla;
     m_cls_dba_ConnectionBD.SetTbPes(typDatSetPE);
     return(m_cls_dba_ConnectionBD.Erro == null);
 }
Пример #21
0
 protected override void carregaDadosBDEspecifico()
 {
     mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPE = GetDtrwPE();
     if ((dtrwPE == null) || (dtrwPE.IsmstrObservacoesNull()))
     {
         m_strObservacoes = "";
     }
     else
     {
         m_strObservacoes = dtrwPE.mstrObservacoes;
     }
 }
Пример #22
0
 private void vCarregaDadosArmadorSelecionado(out int nIdArmador)
 {
     nIdArmador = -1;
     if ((m_typDatSetPes != null) && (m_typDatSetPes.tbPEs.Rows.Count > 0))
     {
         mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPe = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)m_typDatSetPes.tbPEs.Rows[0];
         if (!dtrwPe.IsnIdArmadorNull())
         {
             nIdArmador = dtrwPe.nIdArmador;
         }
     }
 }
Пример #23
0
 private void vCarregaDadosDespachanteSelecionado(out int nIdDespachante)
 {
     nIdDespachante = -1;
     if ((m_typDatSetPes != null) && (m_typDatSetPes.tbPEs.Rows.Count > 0))
     {
         mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPe = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)m_typDatSetPes.tbPEs.Rows[0];
         if (!dtrwPe.IsnIdDespachanteNull())
         {
             nIdDespachante = dtrwPe.nIdDespachante;
         }
     }
 }
Пример #24
0
 protected override void vCarregaDados(out string strLocal)
 {
     strLocal = "";
     mdlDataBaseAccess.Tabelas.XsdTbPes typDatSetPes = GetTypDatSetPes();
     if (typDatSetPes.tbPEs.Rows.Count > 0)
     {
         mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPes = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)typDatSetPes.tbPEs.Rows[0];
         if (!dtrwPes.IsmstrLocalTransbordoNull())
         {
             strLocal = dtrwPes.mstrLocalTransbordo;
         }
     }
 }
Пример #25
0
 protected override bool bSalvaDados(string strLocal)
 {
     mdlDataBaseAccess.Tabelas.XsdTbPes typDatSetPes = GetTypDatSetPes();
     if (typDatSetPes.tbPEs.Rows.Count > 0)
     {
         mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPes = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)typDatSetPes.tbPEs.Rows[0];
         dtrwPes.mstrLocalTransbordo = strLocal;
         m_cls_dba_ConectionDB.SetTbPes(typDatSetPes);
         return(m_bModificado = (m_cls_dba_ConectionDB.Erro == null));
     }
     else
     {
         return(false);
     }
 }
Пример #26
0
 private void vSalvaDadosDespachanteContatoSelecionado(int nIdContato)
 {
     if (!m_bContatosDespachantes)
     {
         if ((m_typDatSetPes != null) && (m_typDatSetPes.tbPEs.Rows.Count > 0))
         {
             mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPe = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)m_typDatSetPes.tbPEs.Rows[0];
             dtrwPe.nIdDespachanteContato = nIdContato;
         }
     }
     else
     {
         vSalvaDadosDespachanteContatoDespachanteSelecionado(nIdContato);
     }
 }
Пример #27
0
 private bool ShowDialogVincular(int nIdSD)
 {
     Formularios.frmFSDVincular formFVincular = new Formularios.frmFSDVincular(m_strEnderecoExecutavel, nIdSD);
     InitializeEvents(ref formFVincular);
     formFVincular.ShowDialog();
     if (formFVincular.Modificado)
     {
         if ((m_typDatSetPEs != null) && (m_typDatSetPEs.tbPEs.Rows.Count > 0))
         {
             mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPE = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)m_typDatSetPEs.tbPEs.Rows[0];
             dtrwPE.mstrSD = m_strPersonalizavel;
         }
         return(true);
     }
     return(false);
 }
Пример #28
0
 protected override void salvaDadosBDEspecifico()
 {
     try
     {
         if ((m_typDatSetTbPes != null) && (m_typDatSetTbPes.tbPEs.Rows.Count > 0))
         {
             mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwTbPes = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)m_typDatSetTbPes.tbPEs.Rows[0];
             dtrwTbPes.nIdCartaCredito = m_nIdCartaCredito;
             m_cls_dba_ConnectionDB.SetTbPes(m_typDatSetTbPes);
         }
     }
     catch (Exception err)
     {
         Object erro = err;
         m_cls_ter_tratadorErro.trataErro(ref erro);
     }
 }
Пример #29
0
 protected override void salvaDadosBDEspecifico()
 {
     try
     {
         if (m_typDatSetTbPes.tbPEs.Rows.Count > 0)
         {
             mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPe = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)m_typDatSetTbPes.tbPEs.Rows[0];
             dtrwPe.dtDeadlineRetiradaContainerTerminal = m_dtData;
         }
         m_cls_dba_ConnectionBD.SetTbPes(m_typDatSetTbPes);
         vSiscoMensagemUpdate();
     }
     catch (Exception err)
     {
         Object erro = err;
         m_cls_ter_tratadorErro.trataErro(ref erro);
     }
 }
Пример #30
0
 public bool ShowDialogVincular()
 {
     Formularios.frmFDSEVincular formFVincular = new Formularios.frmFDSEVincular(m_strEnderecoExecutavel);
     InitializeEvents(ref formFVincular);
     formFVincular.Personalizavel = this.Personalizavel;
     formFVincular.Editavel       = (bDSEVinculado(m_strIdPe)) && (!bReVinculado(m_strIdPe));
     formFVincular.ShowDialog();
     if (formFVincular.Modificado)
     {
         if (m_typDatSetPes.tbPEs.Rows.Count > 0)
         {
             mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow dtrwPE = (mdlDataBaseAccess.Tabelas.XsdTbPes.tbPEsRow)m_typDatSetPes.tbPEs.Rows[0];
             dtrwPE.mstrDSE = formFVincular.Personalizavel;
         }
         return(bSalvaDados());
     }
     return(formFVincular.Modificado);
 }