Exemple #1
0
 private void OnComandaECFAbreVinculadoCallback(string COO, string IndiceECF, double Valor, ref int RetornoECF)
 {
     if (onComandaECFAbreVinculado.IsAssigned)
     {
         var e = new ComandaECFAbreVinculadoEventArgs(COO, IndiceECF, Convert.ToDecimal(Valor));
         onComandaECFAbreVinculado.Raise(e);
         RetornoECF = e.RetornoECF ? 1 : 0;
     }
 }
 private void acBrTEFD_OnComandaECFAbreVinculado(object sender, ACBrFramework.TEFD.ComandaECFAbreVinculadoEventArgs e)
 {
     try
     {
         DataModule.ACBrECF.AbreCupomVinculado(e.COO, e.IndiceECF, e.Valor);
         e.RetornoECF = true;
     }
     catch (Exception eError)
     {
         Log.write(eError.ToString());
         e.RetornoECF = false;
     }
 }
Exemple #3
0
		private void tef_OnComandaECFAbreVinculado(object sender, ComandaECFAbreVinculadoEventArgs e)
		{
            try
            {
                WriteResp(string.Format("ECF - AbreVinculado, COO: {0} IndiceECF: {1} Valor: {2}", e.COO, e.IndiceECF, e.Valor));
                acBrECF1.AbreCupomVinculado(e.COO, e.IndiceECF, e.Valor);
                e.RetornoECF = true;
            }
            catch (Exception)
            {
                e.RetornoECF = false;
            }
		}
Exemple #4
0
		private void OnComandaECFAbreVinculadoCallback(string COO, string IndiceECF, double Valor, ref int RetornoECF)
		{
			if (onComandaECFAbreVinculado.IsAssigned)
			{
				var e = new ComandaECFAbreVinculadoEventArgs(COO, IndiceECF, Convert.ToDecimal(Valor));
				onComandaECFAbreVinculado.Raise(e);
				RetornoECF = e.RetornoECF ? 1 : 0;
			}
		}