0% found this document useful (0 votes)
6 views10 pages

V04

Uploaded by

Aarón Rodas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views10 pages

V04

Uploaded by

Aarón Rodas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 10

using System;

using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using System.Windows.Forms;
using ADODB;
using Microsoft.VisualBasic;
using Microsoft.VisualBasic.CompilerServices;

namespace CAFETERIA
{
// Token: 0x02000023 RID: 35
[DesignerGenerated]
public partial class frmGeneraPartida : Form
{
// Token: 0x0600046F RID: 1135
private void cmdImprimir_Click(object sender, EventArgs e)
{
string value = this.dtpFecha1.Value.ToString("yyyy/MM/dd");
string value2 = this.dtpFecha2.Value.ToString("yyyy/MM/dd");
double venta = 0.0;
ModuloGeneral.cadSql = "SELECT SUM(IMPORTE) FROM ORDENESVTA WHERE
FECHA >= @FechaInicio AND FECHA <= @FechaFin AND ESTADO ='IMPRESA'";
using (SqlCommand sqlCommand5 = new
SqlCommand(ModuloGeneral.cadSql, this.MyCon2Tempo))
{
sqlCommand5.Parameters.AddWithValue("@FechaInicio", value);
sqlCommand5.Parameters.AddWithValue("@FechaFin", value2);
object result = sqlCommand5.ExecuteScalar();
if (result != null && result != DBNull.Value)
{
venta = Convert.ToDouble(result);
}
}
this.parIngresos += venta;
double ventcr = 0.0;
string text23 = "SELECT SUM(A.IMPORTE) AS TOTAL ";
text23 += "FROM ORDENESVTA AS A INNER JOIN ";
text23 += "ORDENESENC AS B ON A.SERIE = B.SERIE AND A.NUMERO =
B.NUMERO AND A.FECHA = B.FECHA AND A.NITCARNE = B.NITCARNE AND ";
text23 += "A.NOMBRECLIENTE = B.NOMBRECLIENTE AND A.DIRECCION =
B.DIRECCION AND A.NIVEL = B.NIVEL AND A.USUARIO = B.USUARIO AND A.ESTADO = B.ESTADO
AND ";
text23 += "B.FORMADEPAGO = 'CREDITO' AND A.ESTADO <> 'ANULADA'
AND B.ESTADO <> 'ANULADA' AND ";
text23 = string.Concat(new string[]
{
text23,
"B.FECHA>='",
ModuloGeneral.strFecha1,
"' AND B.FECHA <='",
ModuloGeneral.strFecha2,
"'"
});
SqlCommand sqlCommand6 = new SqlCommand(text23,
this.MyCon2Tempo);
if (!
Information.IsDBNull(RuntimeHelpers.GetObjectValue(sqlCommand6.ExecuteScalar())))
{

Convert.ToDouble(RuntimeHelpers.GetObjectValue(sqlCommand6.ExecuteScalar()));
}
double recibo = 0.0;
ModuloGeneral.cadSql = "SELECT SUM(MONTO) FROM RECIBOS WHERE
FECHA >= @FechaInicio AND FECHA <= @FechaFin AND ESTADO ='IMPRESA'";
using (SqlCommand sqlCommand7 = new
SqlCommand(ModuloGeneral.cadSql, this.MyCon2Tempo))
{
sqlCommand7.Parameters.AddWithValue("@FechaInicio", value);
sqlCommand7.Parameters.AddWithValue("@FechaFin", value2);
object result2 = sqlCommand7.ExecuteScalar();
if (result2 != null && result2 != DBNull.Value)
{
recibo = Convert.ToDouble(result2);
}
}
double bolet = 0.0;
ModuloGeneral.cadSql = "SELECT SUM(MONTO) FROM EGRESOS WHERE
FECHA >= @FechaInicio AND FECHA <= @FechaFin";
using (SqlCommand sqlCommand8 = new
SqlCommand(ModuloGeneral.cadSql, this.MyCon2Tempo))
{
sqlCommand8.Parameters.AddWithValue("@FechaInicio", value);
sqlCommand8.Parameters.AddWithValue("@FechaFin", value2);
object result3 = sqlCommand8.ExecuteScalar();
if (result3 != null && result3 != DBNull.Value)
{
bolet = Convert.ToDouble(result3);
}
}
this.parEgresos += bolet;
string cmdText = "\n SELECT \n
LOWER(CONVERT(VARCHAR(10), FECHA, 105)) + ', Ingresos del día, ' + \n
STUFF(\n (\n SELECT ', Interno ' + UPPER(SERIE) + ', del
' + CAST(MIN(NUMERO) AS VARCHAR) + \n ' al ' + CAST(MAX(NUMERO) AS
VARCHAR)\n FROM (\n SELECT SERIE, MIN(NUMERO) AS
Min_Numero, MAX(NUMERO) AS Max_Numero \n FROM dbo.ORDENESENC\n
WHERE FECHA BETWEEN @FechaInicio AND @FechaFin\n GROUP BY SERIE\
n ) AS SubQuery \n FOR XML PATH('')\n ),
1, 2, '') + \n CASE \n WHEN EXISTS (SELECT 1 FROM dbo.RECIBOS
WHERE FECHA BETWEEN @FechaInicio AND @FechaFin) \n THEN ', no recibo, '
+ \n (SELECT \n 'Primer: ' + CAST(MIN(NRECIBO) AS
VARCHAR) + ', Último: ' + CAST(MAX(NRECIBO) AS VARCHAR) \n FROM \n
dbo.RECIBOS \n WHERE \n FECHA BETWEEN
@FechaInicio AND @FechaFin) \n ELSE '' \n END + ', No depositos,
' + \n STUFF(\n (\n SELECT ', ' + CAST(NODEPOSITO
AS VARCHAR)\n FROM dbo.EGRESOS\n WHERE FECHA BETWEEN
@FechaInicio AND @FechaFin \n FOR XML PATH('')\n ), 1, 2,
'') + ', Interbanco, ' + \n CAST(" + (bolet + ventcr - venta -
recibo).ToString("F2") + " AS VARCHAR) AS Excedente\n FROM \n (\n
SELECT \n dbo.ORDENESENC.FECHA, \n dbo.ORDENESENC.SERIE, \n
dbo.ORDENESENC.NUMERO, \n dbo.RECIBOS.NRECIBO, \n
dbo.EGRESOS.NODEPOSITO\n FROM \n dbo.ORDENESENC \n RIGHT
JOIN dbo.EGRESOS ON dbo.ORDENESENC.FECHA = dbo.EGRESOS.FECHA \n LEFT JOIN
dbo.RECIBOS ON dbo.ORDENESENC.FECHA = dbo.RECIBOS.FECHA\n WHERE \n
dbo.ORDENESENC.FECHA BETWEEN @FechaInicio AND @FechaFin\n ) AS SourceTable\n
GROUP BY FECHA;";
using (SqlConnection sqlConnection2 = new
SqlConnection(ModuloGeneral.cadCon2))
{
using (SqlCommand sqlCommand9 = new SqlCommand(cmdText,
sqlConnection2))
{
sqlCommand9.Parameters.AddWithValue("@FechaInicio",
value);
sqlCommand9.Parameters.AddWithValue("@FechaFin",
value2);
sqlCommand9.Parameters.AddWithValue("@CtaExcedente",
this.tCtaExcedente.Text);
try
{
sqlConnection2.Open();
object obj = sqlCommand9.ExecuteScalar();
if (obj != null)
{
this.tDescripcion.Text = obj.ToString();
}
else
{
this.tDescripcion.Text = "No se
encontraron resultados.";
}
}
catch (Exception ex)
{
MessageBox.Show("Error al ejecutar la consulta:
" + ex.Message);
}
}
}
double num = 0.0;
this.parIngresos = 0.0;
this.parEgresos = 0.0;
SqlCommand sqlCommand13 = new SqlCommand("DELETE FROM PARTIDAS",
this.MyCon2Tempo);
sqlCommand13.ExecuteNonQuery();
sqlCommand13.Dispose();
ModuloGeneral.strFecha1 =
Conversions.ToString(this.dtpFecha1.Value.Date);
ModuloGeneral.strFecha1 = string.Concat(new string[]
{
Strings.Mid(ModuloGeneral.strFecha1, 7, 4),
"/",
Strings.Mid(ModuloGeneral.strFecha1, 4, 2),
"/",
Strings.Mid(ModuloGeneral.strFecha1, 1, 2)
});
ModuloGeneral.strFecha2 =
Conversions.ToString(this.dtpFecha2.Value.Date);
ModuloGeneral.strFecha2 = string.Concat(new string[]
{
Strings.Mid(ModuloGeneral.strFecha2, 7, 4),
"/",
Strings.Mid(ModuloGeneral.strFecha2, 4, 2),
"/",
Strings.Mid(ModuloGeneral.strFecha2, 1, 2)
});
this.nNum1 =
Strings.Mid(Conversions.ToString(this.dtpFecha1.Value), 7, 4) +
Strings.Mid(Conversions.ToString(this.dtpFecha1.Value), 4, 2) +
Strings.Mid(Conversions.ToString(this.dtpFecha1.Value), 1, 2);
this.nNum2 =
Strings.Mid(Conversions.ToString(this.dtpFecha2.Value), 7, 4) +
Strings.Mid(Conversions.ToString(this.dtpFecha2.Value), 4, 2) +
Strings.Mid(Conversions.ToString(this.dtpFecha2.Value), 1, 2);
ModuloGeneral.cadSql = "SELECT CATEGORIA, SUM(IMPORTE) AS
TOTALCATEGORIA ";
ModuloGeneral.cadSql += "FROM ORDENESVTA ";
ModuloGeneral.cadSql = string.Concat(new string[]
{
ModuloGeneral.cadSql,
"WHERE FECHA >='",
ModuloGeneral.strFecha1,
"' AND FECHA <='",
ModuloGeneral.strFecha2,
"' AND ESTADO ='IMPRESA' "
});
ModuloGeneral.cadSql += "GROUP BY CATEGORIA ";
ModuloGeneral.cadSql += "ORDER BY CATEGORIA ";
SqlConnection sqlConnection3 = new
SqlConnection(ModuloGeneral.cadCon2);
SqlCommand sqlCommand10 = new SqlCommand(ModuloGeneral.cadSql,
sqlConnection3);
sqlCommand10.Connection.Open();
SqlDataReader sqlDataReader =
sqlCommand10.ExecuteReader(CommandBehavior.CloseConnection);
while (sqlDataReader.Read())
{
SqlCommand sqlCommand11 = new SqlCommand("SELECT
CTACONTABLE FROM CATEGORIAS WHERE CATEGORIA='" +
Strings.Trim(sqlDataReader.GetString(0)) + "'", this.MyCon2Tempo);
string text24;
if
(Information.IsDBNull(RuntimeHelpers.GetObjectValue(sqlCommand11.ExecuteScalar())))
{
text24 = "";
}
else
{
text24 =
Convert.ToString(RuntimeHelpers.GetObjectValue(sqlCommand11.ExecuteScalar()));
}
sqlCommand11.Dispose();
if (Strings.Len(Strings.Trim(text24)) > 0)
{
double num2 =
Math.Round(Convert.ToDouble(sqlDataReader.GetDecimal(1)) / 1.12, 2,
MidpointRounding.AwayFromZero);
num += Math.Round(num2 * 12.0 / 100.0, 2,
MidpointRounding.AwayFromZero);
this.cadGraba = "INSERT INTO
PARTIDAS(DEL,AL,NUM1,NUM2,CUENTA,DEBE,HABER,DH,DESCRIPCION) VALUES('";
this.cadGraba = this.cadGraba +
ModuloGeneral.strFecha1 + "','";
this.cadGraba = this.cadGraba +
ModuloGeneral.strFecha2 + "','";
this.cadGraba = this.cadGraba + this.nNum1 + "','";
this.cadGraba = this.cadGraba + this.nNum2 + "','";
this.cadGraba = this.cadGraba + text24 + "',";
this.cadGraba = this.cadGraba +
Conversions.ToString(Conversions.ToDouble("0.00")) + ",";
this.cadGraba = this.cadGraba +
Conversions.ToString(num2) + ",'";
this.cadGraba += "H','";
this.cadGraba += " ')";
this.parIngresos += num2;
SqlCommand sqlCommand14 = new
SqlCommand(this.cadGraba, this.MyCon2Tempo);
sqlCommand14.ExecuteNonQuery();
sqlCommand14.Dispose();
}
}
sqlDataReader.Close();
sqlConnection3.Close();
sqlCommand10.Dispose();
ModuloGeneral.cmd = new SqlCommand(string.Concat(new string[]
{
"SELECT SUM(MONTO) FROM RECIBOS WHERE FECHA >='",
ModuloGeneral.strFecha1,
"' AND FECHA <='",
ModuloGeneral.strFecha2,
"' AND ESTADO='IMPRESO' "
}), this.MyCon2Tempo);
double num3;
if
(Information.IsDBNull(RuntimeHelpers.GetObjectValue(ModuloGeneral.cmd.ExecuteScalar
())))
{
num3 = 0.0;
}
else
{
num3 =
Convert.ToDouble(RuntimeHelpers.GetObjectValue(ModuloGeneral.cmd.ExecuteScalar()));
}
ModuloGeneral.cmd.Dispose();
if (num3 > 0.0)
{
this.cadGraba = "INSERT INTO
PARTIDAS(DEL,AL,NUM1,NUM2,CUENTA,DEBE,HABER,DH,DESCRIPCION) VALUES('";
this.cadGraba = this.cadGraba + ModuloGeneral.strFecha1 +
"','";
this.cadGraba = this.cadGraba + ModuloGeneral.strFecha2 +
"','";
this.cadGraba = this.cadGraba + this.nNum1 + "','";
this.cadGraba = this.cadGraba + this.nNum2 + "','";
this.cadGraba = this.cadGraba +
Strings.Trim(this.tCtaContable.Text) + "',";
this.cadGraba = this.cadGraba +
Conversions.ToString(Conversions.ToDouble("0.00")) + ",";
this.cadGraba = this.cadGraba + Conversions.ToString(num3)
+ ",'";
this.cadGraba += "H','";
this.cadGraba += " ')";
this.parIngresos += num3;
SqlCommand sqlCommand15 = new SqlCommand(this.cadGraba,
this.MyCon2Tempo);
sqlCommand15.ExecuteNonQuery();
sqlCommand15.Dispose();
}
if (num > 0.0)
{
this.cadGraba = "INSERT INTO
PARTIDAS(DEL,AL,NUM1,NUM2,CUENTA,DEBE,HABER,DH,DESCRIPCION) VALUES('";
this.cadGraba = this.cadGraba + ModuloGeneral.strFecha1 +
"','";
this.cadGraba = this.cadGraba + ModuloGeneral.strFecha2 +
"','";
this.cadGraba = this.cadGraba + this.nNum1 + "','";
this.cadGraba = this.cadGraba + this.nNum2 + "','";
this.cadGraba = this.cadGraba +
Strings.Trim(this.tIvaPorPagar.Text) + "',";
this.cadGraba = this.cadGraba +
Conversions.ToString(Conversions.ToDouble("0.00")) + ",";
this.cadGraba = this.cadGraba + Conversions.ToString(num) +
",'";
this.cadGraba += "H','";
this.cadGraba += " ')";
this.parIngresos += num;
SqlCommand sqlCommand16 = new SqlCommand(this.cadGraba,
this.MyCon2Tempo);
sqlCommand16.ExecuteNonQuery();
sqlCommand16.Dispose();
}
string text25 = "SELECT SUM(A.IMPORTE) AS TOTAL ";
text25 += "FROM ORDENESVTA AS A INNER JOIN ";
text25 += "ORDENESENC AS B ON A.SERIE = B.SERIE AND A.NUMERO =
B.NUMERO AND A.FECHA = B.FECHA AND A.NITCARNE = B.NITCARNE AND ";
text25 += "A.NOMBRECLIENTE = B.NOMBRECLIENTE AND A.DIRECCION =
B.DIRECCION AND A.NIVEL = B.NIVEL AND A.USUARIO = B.USUARIO AND A.ESTADO = B.ESTADO
AND ";
text25 += "B.FORMADEPAGO = 'CREDITO' AND A.ESTADO <> 'ANULADA'
AND B.ESTADO <> 'ANULADA' AND ";
text25 = string.Concat(new string[]
{
text25,
"B.FECHA>='",
ModuloGeneral.strFecha1,
"' AND B.FECHA <='",
ModuloGeneral.strFecha2,
"'"
});
SqlCommand sqlCommand12 = new SqlCommand(text25,
this.MyCon2Tempo);
double num4;
if
(Information.IsDBNull(RuntimeHelpers.GetObjectValue(sqlCommand12.ExecuteScalar())))
{
num4 = 0.0;
}
else
{
num4 =
Convert.ToDouble(RuntimeHelpers.GetObjectValue(sqlCommand12.ExecuteScalar()));
}
sqlCommand12.Dispose();
if (num4 > 0.0)
{
this.cadGraba = "INSERT INTO
PARTIDAS(DEL,AL,NUM1,NUM2,CUENTA,DEBE,HABER,DH,DESCRIPCION) VALUES('";
this.cadGraba = this.cadGraba + ModuloGeneral.strFecha1 +
"','";
this.cadGraba = this.cadGraba + ModuloGeneral.strFecha2 +
"','";
this.cadGraba = this.cadGraba + this.nNum1 + "','";
this.cadGraba = this.cadGraba + this.nNum2 + "','";
this.cadGraba = this.cadGraba +
Strings.Trim(this.tCtaVtasCredito.Text) + "',";
this.cadGraba = this.cadGraba + Conversions.ToString(num4)
+ ",";
this.cadGraba = this.cadGraba +
Conversions.ToString(Conversions.ToDouble("0.00")) + ",'";
this.cadGraba += "D','";
this.cadGraba += " ')";
this.parEgresos += num4;
SqlCommand sqlCommand17 = new SqlCommand(this.cadGraba,
this.MyCon2Tempo);
sqlCommand17.ExecuteNonQuery();
sqlCommand17.Dispose();
}
if (ModuloGeneral.rsChk.State == 1)
{
ModuloGeneral.rsChk.Close();
}
ModuloGeneral.rsChk.Open(string.Concat(new string[]
{
"SELECT CTACONTABLE,MONTO AS TOTAL FROM EGRESOS WHERE FECHA
>='",
ModuloGeneral.strFecha1,
"' AND FECHA <='",
ModuloGeneral.strFecha2,
"' ORDER BY CTACONTABLE"
}), ModuloGeneral.MyConAdodb, CursorTypeEnum.adOpenKeyset,
LockTypeEnum.adLockBatchOptimistic, -1);
if (!ModuloGeneral.RsVacio(ModuloGeneral.rsChk))
{
ModuloGeneral.rsChk.MoveFirst();
while (!ModuloGeneral.rsChk.EOF)
{
if (!
Information.IsDBNull(RuntimeHelpers.GetObjectValue(ModuloGeneral.rsChk.Fields["CTAC
ONTABLE"].Value)) & !
Information.IsDBNull(RuntimeHelpers.GetObjectValue(ModuloGeneral.rsChk.Fields["TOTA
L"].Value)))
{
this.cadGraba = "INSERT INTO
PARTIDAS(DEL,AL,NUM1,NUM2,CUENTA,DEBE,HABER,DH,DESCRIPCION) VALUES('";
this.cadGraba = this.cadGraba +
ModuloGeneral.strFecha1 + "','";
this.cadGraba = this.cadGraba +
ModuloGeneral.strFecha2 + "','";
this.cadGraba = this.cadGraba + this.nNum1 +
"','";
this.cadGraba = this.cadGraba + this.nNum2 +
"','";
this.cadGraba = this.cadGraba +
Strings.Trim(Conversions.ToString(ModuloGeneral.rsChk.Fields["CTACONTABLE"].Value))
+ "',";
this.cadGraba = this.cadGraba +
Conversions.ToString(Conversions.ToDouble(ModuloGeneral.rsChk.Fields["TOTAL"].Value
)) + ",";
this.cadGraba = this.cadGraba +
Conversions.ToString(Conversions.ToDouble("0.00")) + ",'";
this.cadGraba += "D','";
this.cadGraba += " ')";
this.parEgresos +=
Conversions.ToDouble(ModuloGeneral.rsChk.Fields["TOTAL"].Value);
SqlCommand sqlCommand18 = new
SqlCommand(this.cadGraba, this.MyCon2Tempo);
sqlCommand18.ExecuteNonQuery();
sqlCommand18.Dispose();
}
ModuloGeneral.rsChk.MoveNext();
}
}
ModuloGeneral.rsChk.Close();
if (this.parEgresos > this.parIngresos)
{
this.cadGraba = "INSERT INTO
PARTIDAS(DEL,AL,NUM1,NUM2,CUENTA,DEBE,HABER,DH,DESCRIPCION) VALUES('";
this.cadGraba = this.cadGraba + ModuloGeneral.strFecha1 +
"','";
this.cadGraba = this.cadGraba + ModuloGeneral.strFecha2 +
"','";
this.cadGraba = this.cadGraba + this.nNum1 + "','";
this.cadGraba = this.cadGraba + this.nNum2 + "','";
this.cadGraba = this.cadGraba +
Strings.Trim(this.tCtaExcedente.Text) + "',";
this.cadGraba = this.cadGraba +
Conversions.ToString(Conversions.ToDouble("0.00")) + ",";
this.cadGraba = this.cadGraba +
Conversions.ToString(this.parEgresos - this.parIngresos) + ",'";
this.cadGraba += "H','";
this.cadGraba += " ')";
SqlCommand sqlCommand19 = new SqlCommand(this.cadGraba,
this.MyCon2Tempo);
sqlCommand19.ExecuteNonQuery();
sqlCommand19.Dispose();
}
this.cadGraba = "INSERT INTO
PARTIDAS(DEL,AL,NUM1,NUM2,CUENTA,DEBE,HABER,DH,DESCRIPCION) VALUES('";
this.cadGraba = this.cadGraba + ModuloGeneral.strFecha1 + "','";
this.cadGraba = this.cadGraba + ModuloGeneral.strFecha2 + "','";
this.cadGraba = this.cadGraba + this.nNum1 + "','";
this.cadGraba = this.cadGraba + this.nNum2 + "','";
this.cadGraba += "DESCRIPCION',";
this.cadGraba = this.cadGraba +
Conversions.ToString(Conversions.ToDouble("0.00")) + ",";
this.cadGraba = this.cadGraba +
Conversions.ToString(Conversions.ToDouble("0.00")) + ",'";
this.cadGraba += "X','";
this.cadGraba = this.cadGraba +
Strings.Trim(this.tDescripcion.Text) + "')";
SqlCommand sqlCommand20 = new SqlCommand(this.cadGraba,
this.MyCon2Tempo);
sqlCommand20.ExecuteNonQuery();
sqlCommand20.Dispose();
this.cmdImprimir.Enabled = false;
this.cmdGraba.Enabled = true;
this.tNombreArchivo.Text = string.Concat(new string[]
{
"CASAGANIA_DEL_",
Strings.Trim(this.nNum1),
"_AL_",
Strings.Trim(this.nNum2),
".RST"
});
if (Operators.CompareString(this.tCtaContable.Text, "", false) ==
0)
{
ModuloGeneral.resp = (VariantType)Interaction.MsgBox("Es
necesario que seleccione una cuenta para ingresos por abonos...",
MsgBoxStyle.Critical, null);
return;
}
if (Operators.CompareString(this.tIvaPorPagar.Text, "", false) ==
0)
{
ModuloGeneral.resp = (VariantType)Interaction.MsgBox("Es
necesario que seleccione una cuenta para iva por pagar...", MsgBoxStyle.Critical,
null);
return;
}
if (Operators.CompareString(this.tCtaVtasCredito.Text, "", false)
== 0)
{
ModuloGeneral.resp = (VariantType)Interaction.MsgBox("Es
necesario que seleccione una cuenta para las ventas al credito...",
MsgBoxStyle.Critical, null);
return;
}
if (Operators.CompareString(this.tCtaExcedente.Text, "", false)
== 0)
{
ModuloGeneral.resp = (VariantType)Interaction.MsgBox("Es
necesario que seleccione una cuenta para los excedentes...", MsgBoxStyle.Critical,
null);
return;
}
if (Operators.CompareString(this.tDescripcion.Text, "", false) ==
0)
{
ModuloGeneral.resp = (VariantType)Interaction.MsgBox("Es
necesario que ingrese la descripción de la partida...", MsgBoxStyle.Critical,
null);
return;
}
ModuloGeneral.resp = (VariantType)Interaction.MsgBox("Genera la
Partida", MsgBoxStyle.YesNo | MsgBoxStyle.Question | MsgBoxStyle.DefaultButton2,
null);
if (ModuloGeneral.resp != VariantType.Date)
{
ModuloGeneral.resp =
(VariantType)Interaction.MsgBox("PARTIDA GENERADA CON ÉXITO...",
MsgBoxStyle.Information, null);
}
}
}
}

You might also like