예제 #1
0
        private void afterBusca()
        {
            string status = string.Empty;
            string virg   = string.Empty;

            bsCartaFrete.DataSource = TCN_CartaFrete.Buscar(cd_empresa.Text,
                                                            id_cartafrete.Text,
                                                            cd_transportadora.Text,
                                                            string.Empty,
                                                            nr_cartafrete.Text,
                                                            rbEmissao.Checked ? "E" : rbVencimento.Checked ? "V" : string.Empty,
                                                            dt_ini.Text,
                                                            dt_fin.Text,
                                                            string.Empty,
                                                            null);
            vl_total.Value = (bsCartaFrete.List as TList_CartaFrete).Sum(p => p.Vl_documento);
        }
예제 #2
0
        private void afterBusca()
        {
            string st   = string.Empty;
            string virg = string.Empty;

            if (cbAberto.Checked)
            {
                st   = "'A'";
                virg = ",";
            }
            if (cbProcessado.Checked)
            {
                st += virg + "'P'";
            }
            bsCartaFrete.DataSource = TCN_CartaFrete.Buscar(nr_cartafrete.Text,
                                                            cd_empresa.Text,
                                                            cd_motorista.Text,
                                                            id_acerto.Text,
                                                            dt_ini.Text,
                                                            dt_fin.Text,
                                                            st,
                                                            null);
        }