Exemplo n.º 1
0
        private void CierreZFrm_Load(object sender, EventArgs e)
        {
            IPrinterFIOperaciones IP = new ImpresionBematech();
            var aux     = IP.NumerodeCierresZ().Replace("\0", "");
            var numeroc = Convert.ToInt16(aux);

            label8.Text = string.Format("{0:0000000}", numeroc);
            string numero = "      ";


            fechalabel.Text = DateTime.Today.ToShortDateString();

            Totales(ref total);
            ParametrosManager p = new ParametrosManager();
            Global            g = new Global();

            Seriallabel.Text = g.GetParametros().Serial;
            //if (this.txttotal.Text == "0")
            //return;
            DialogResult resp = MessageBox.Show("Esta seguro de efectuar el Cierre Z?", "Confirmación", MessageBoxButtons.YesNo);

            if (resp == DialogResult.No)
            {
                return;
            }
            txtNeto.Text      = string.Format("{0:0.00}", total[1].ToString());
            txtxIva.Text      = string.Format("{0:0.00}", total[2].ToString());
            txttotal.Text     = string.Format("{0:0.00}", total[3].ToString());
            txtxnrofacts.Text = string.Format("{0:0.00}", total[0].ToString());
            txtApertura.Text  = string.Format("{0:0.00}", total[6].ToString());

            desdelabel.Text = string.Format("{0:000000}", total[4]);
            hastalabel.Text = string.Format("{0:000000}", total[5]);
        }
Exemplo n.º 2
0
        public Parametro GetParametros()
        {
            ParametrosManager parametrosController = new ParametrosManager();
            var p = parametrosController.getParams();

            return(p);
        }
Exemplo n.º 3
0
        public void SetParametros(ParametroDTO parametros)
        {
            ParametrosManager parametrosController = new ParametrosManager();

            parametrosController.Insert(parametros);
        }