Exemplo n.º 1
0
        private void vCarregaDados(out string strSimboloMoeda, out double dValorFatura, out double dValorAntecipado, out double dValorSaque)
        {
            int    nTemp;
            string strTemp;
            bool   bTemp;

            mdlMoeda.clsMoeda objMoeda = new mdlMoeda.clsMoedaComercial(ref m_cls_ter_tratadorErro, ref m_cls_dba_ConnectionDB, m_strEnderecoExecutavel, m_nIdExportador, m_strIdPE);
            objMoeda.retornaValores(out nTemp, out strTemp, out strSimboloMoeda, out bTemp);
            mdlIncoterm.clsManipuladorValor objManValor = new mdlIncoterm.clsManipuladorValor(ref m_cls_ter_tratadorErro, ref m_cls_dba_ConnectionDB, m_nIdExportador, m_strIdPE);
            dValorSaque = objManValor.dCarregaValorSaque();
            objManValor.vRetornaValores(out dValorFatura);
            dValorAntecipado = objManValor.dValorFaturaSomenteAntecipado();
        }
Exemplo n.º 2
0
        private void vCaregaDadosValorExtensoDefault()
        {
            mdlDataBaseAccess.Tabelas.XsdTbSaques typDatSetSaque = XsdDatSetSaque();
            if (typDatSetSaque.tbSaques.Rows.Count > 0)
            {
                mdlDataBaseAccess.Tabelas.XsdTbSaques.tbSaquesRow dtrwSaque = (mdlDataBaseAccess.Tabelas.XsdTbSaques.tbSaquesRow)typDatSetSaque.tbSaques.Rows[0];

                // Idioma
                int nIdIdioma = 3;
                if (!dtrwSaque.IsnIdIdiomaNull())
                {
                    nIdIdioma = dtrwSaque.nIdIdioma;
                }
                // Moeda
                int               nIdMoeda = 28;
                string            strTemp;
                bool              bTemp;
                mdlMoeda.clsMoeda objMoeda = new mdlMoeda.clsMoedaComercial(ref m_cls_ter_tratadorErro, ref m_cls_dba_ConnectionDB, m_strEnderecoExecutavel, m_nIdExportador, m_strIdPE);
                objMoeda.retornaValores(out nIdMoeda, out strTemp, out strTemp, out bTemp);
                m_strValorExtensoDefault = mdlConversao.clsValorExtenso.strRetornaValorExtenso(this.Valor, nIdIdioma, nIdMoeda);
            }
        }
Exemplo n.º 3
0
        private void m_btComercial_Click(object sender, System.EventArgs e)
        {
            int    nIdMoeda;
            string strDescricao;
            string strSimbolo;
            bool   bMostrarSimboloMoeda;

            CreateDataBase();
            mdlMoeda.clsMoeda modMoeda = new mdlMoeda.clsMoedaComercial(ref m_cls_tre_tratadorErro, ref m_cls_dba_ConnectionBD, m_txtPath.Text, Int32.Parse(m_txtIdExportador.Text), m_txtIdCodigo.Text);
            modMoeda.retornaValores(out nIdMoeda, out strDescricao, out strSimbolo, out bMostrarSimboloMoeda);
            this.m_txtRetorno.Text = nIdMoeda + " " + strDescricao + " " + strSimbolo + " Testando esta merda: " + mdlMoeda.clsMoeda.strReturnCurrencyFormated(nIdMoeda, (double)50.60, bMostrarSimboloMoeda);
            modMoeda.ShowDialog();
            if (modMoeda.m_bModificado)
            {
                modMoeda.retornaValores(out nIdMoeda, out strDescricao, out strSimbolo, out bMostrarSimboloMoeda);
                this.m_txtRetorno.Text = nIdMoeda + " " + strDescricao + " " + strSimbolo;
            }
            else
            {
                this.m_txtRetorno.Text = "";
            }
        }