cambios de extensiones .SUM de double a decimal
This commit is contained in:
@@ -103,7 +103,7 @@ public partial class CGame_AsignacionEmpaque : ClsPaginas
|
||||
{
|
||||
ClsCGame ObjCGame = new ClsCGame();
|
||||
|
||||
Double TotalCajas = 0, TotalBins = 0;
|
||||
decimal TotalCajas = 0, TotalBins = 0;
|
||||
|
||||
if (ObjCGame.GetProduccionResultado(-1, CveEmpresa: UsuarioActual.CveEmpresa))
|
||||
{
|
||||
@@ -333,7 +333,7 @@ public partial class CGame_AsignacionEmpaque : ClsPaginas
|
||||
int CveCalidad = DdlCalidad.SelectedValue.ToEntero();
|
||||
int CveEtiqueta = DdlEtiqueta.SelectedValue.ToEntero();
|
||||
|
||||
Double TotalCajas = 0, TotalBins = 0;
|
||||
decimal TotalCajas = 0, TotalBins = 0;
|
||||
|
||||
ClsCGame ObjCGame = new ClsCGame();
|
||||
if (ObjCGame.GetProduccionResultado(-1, -1, -1, UsuarioActual.CveEmpresa, -1, CveHuerta, CveFruto, CveVariedad, CveTipoProduccion, CveTamaño, CveCalidad, CveEtiqueta, CveTipoEmpaque))
|
||||
|
||||
@@ -152,7 +152,7 @@ public partial class CGame_AsignacionEmpaque2 : ClsPaginas
|
||||
{
|
||||
ClsCGame ObjCGame = new ClsCGame();
|
||||
|
||||
Double TotalCajas = 0, TotalBins = 0;
|
||||
decimal TotalCajas = 0, TotalBins = 0;
|
||||
|
||||
int CveHuerta = DdlHuerta.SelectedValue.ToEntero();
|
||||
int CveFruto = DdlFruto.SelectedValue.ToEntero();
|
||||
|
||||
@@ -172,7 +172,7 @@ public partial class CGame_Liquidacion : ClsPaginas
|
||||
}
|
||||
if (ObjCGame.GetRepMateriales(DdlHuerta.SelectedValue.ToEntero(), txtFechaI.Text.ToDate(), txtFechaF.Text.ToDate(), UsuarioActual.CveEmpresa,Opcion:2))
|
||||
{
|
||||
DtMaterialesAgrupados = ObjCGame.DtResultados.Copy();
|
||||
DtMaterialesAgrupados = ObjCGame.DtResultados.Copy();
|
||||
}
|
||||
if (ObjCGame.GetIngresosAgrupados(DdlHuerta.SelectedValue.ToEntero(), txtFechaI.Text.ToDate(), txtFechaF.Text.ToDate(), UsuarioActual.CveEmpresa))
|
||||
{
|
||||
@@ -184,7 +184,7 @@ public partial class CGame_Liquidacion : ClsPaginas
|
||||
{
|
||||
TotIngresosPri = DtIngresos.SUM("ImportePrimera");
|
||||
TotIngresosSeg = DtIngresos.SUM("ImporteSegunda");
|
||||
TotIngresosJug = DtIngresos.SUM("ImporteJugo");
|
||||
TotIngresosJug = DtIngresos.SUM("ImporteJugo");
|
||||
TotPesoPri = DtIngresos.SUM("PesoPrimera");
|
||||
TotPesoSeg = DtIngresos.SUM("PesoSegunda");
|
||||
TotPesoJug = DtIngresos.SUM("PesoJugo");
|
||||
@@ -258,7 +258,7 @@ public partial class CGame_Liquidacion : ClsPaginas
|
||||
|
||||
protected void LnkExcel_Click(object sender, EventArgs e)
|
||||
{
|
||||
GenerarPDF("EXCEL");
|
||||
GenerarPDF("EXCEL");
|
||||
}
|
||||
|
||||
private void GenerarPDF(string Opcion)
|
||||
@@ -270,8 +270,8 @@ public partial class CGame_Liquidacion : ClsPaginas
|
||||
{
|
||||
TotIngresosPri = DtIngresos.SUM("ImportePrimera");
|
||||
TotIngresosSeg = DtIngresos.SUM("ImporteSegunda");
|
||||
TotIngresosJug = DtIngresos.SUM("ImporteJugo");
|
||||
TotPesoPri = DtIngresos.SUM("PesoPrimera");
|
||||
TotIngresosJug = DtIngresos.SUM("ImporteJugo");
|
||||
TotPesoPri = DtIngresos.SUM("PesoPrimera");
|
||||
TotPesoSeg = DtIngresos.SUM("PesoSegunda");
|
||||
TotPesoJug = DtIngresos.SUM("PesoJugo");
|
||||
TotCantidadPri = DtIngresos.SUM("CantidadPrimera");
|
||||
|
||||
@@ -1693,7 +1693,7 @@ Partial Class CGame_OrdenProduccion
|
||||
If Dt.Rows.Count > 0 Then
|
||||
params.Add(New ReportParameter("Manifiesto", Dt.Rows(0)("Manifiesto").ToString))
|
||||
params.Add(New ReportParameter("SubTotal", Dt.SUM("Importe").ToString.FormatoNumero()))
|
||||
params.Add(New ReportParameter("CantidadConLetra", Texto2Letras(Dt.SUM("Importe").ToString.ToDouble, 2)))
|
||||
params.Add(New ReportParameter("CantidadConLetra", Texto2Letras(Dt.SUM("Importe").ToString.ToDecimal, 2)))
|
||||
End If
|
||||
End If
|
||||
ImprimirPDF("Empresas/Grales/Formatos/Manifiesto.rdlc", Dt, params, String.Format("Manifiesto -{0}", NowADS().ToDateTime.ToShortDateString))
|
||||
|
||||
Reference in New Issue
Block a user