Empresas Zona Horaria
This commit is contained in:
@@ -372,7 +372,7 @@ public partial class CGame_AsignacionEmpaque : ClsPaginas
|
||||
|
||||
para.Add(new ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa));
|
||||
para.Add(new ReportParameter("UsuarioImprimio", UsuarioActual.Nombre));
|
||||
para.Add(new ReportParameter("FechaImpresion", DateTime.Now.ToString()));
|
||||
para.Add(new ReportParameter("FechaImpresion", NowADS().ToString()));
|
||||
|
||||
para.Add(new ReportParameter("Huerta", DdlHuerta.SelectedItem.Text));
|
||||
para.Add(new ReportParameter("Fruto", DdlFruto.SelectedItem.Text));
|
||||
|
||||
@@ -518,7 +518,7 @@ public partial class CGame_AsignacionEmpaque2 : ClsPaginas
|
||||
|
||||
para.Add(new ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa));
|
||||
para.Add(new ReportParameter("UsuarioImprimio", UsuarioActual.Nombre));
|
||||
para.Add(new ReportParameter("FechaImpresion", DateTime.Now.ToString()));
|
||||
para.Add(new ReportParameter("FechaImpresion", NowADS().ToString()));
|
||||
|
||||
para.Add(new ReportParameter("Huerta", DdlHuerta.SelectedItem.Text));
|
||||
para.Add(new ReportParameter("Fruto", DdlFruto.SelectedItem.Text));
|
||||
|
||||
@@ -132,7 +132,7 @@ Partial Class CGame_CatCGameClientes
|
||||
|
||||
Dim cliente As String = TxtCGamcliente.Text
|
||||
Dim estatus As Boolean = ChkCGamestatus.Checked
|
||||
Dim fechaIng As DateTime = Now
|
||||
Dim fechaIng As DateTime = NowADS()
|
||||
Dim cveUsuario As Int32 = UsuarioActual.CveUsuario
|
||||
Dim cveEmpresa As Int32 = UsuarioActual.CveEmpresa
|
||||
Dim ObjCGam As New ClsCGame()
|
||||
@@ -159,7 +159,7 @@ Partial Class CGame_CatCGameClientes
|
||||
Dim cveUsuario As Int32 = UsuarioActual.CveUsuario
|
||||
Dim ObjCGam As New ClsCGame()
|
||||
ObjCGam.IniciaTransacSQL()
|
||||
Dim Continuar As Boolean = ObjCGam.UpdateCliente(CveCliente, cliente, estatus, DateTime.Now, cveUsuario, UsuarioActual.CveEmpresa)
|
||||
Dim Continuar As Boolean = ObjCGam.UpdateCliente(CveCliente, cliente, estatus, NowADS(), cveUsuario, UsuarioActual.CveEmpresa)
|
||||
Continuar = ObjCGam.RemoveCargoFijoCliente(CveCliente)
|
||||
For Each Dr As DataRow In DtCargosFijos.Rows
|
||||
Continuar = ObjCGam.AddCargoFijoCliente(Dr("CveCargoFijo").ToString.ToEntero, CveCliente, Dr("Importe").ToString.ToDouble)
|
||||
|
||||
@@ -104,7 +104,7 @@ Partial Class CGame_CatTipoEmpaque
|
||||
|
||||
Dim tipoEmpaque As String = TxtCGamtipoEmpaque.Text
|
||||
Dim estatus As Boolean = ChkCGamestatus.Checked
|
||||
Dim fechaIng As DateTime = Now
|
||||
Dim fechaIng As DateTime = NowADS()
|
||||
Dim cveUsuario As Int32 = UsuarioActual.CveUsuario
|
||||
Dim cveEmpresa As Int32 = UsuarioActual.CveEmpresa
|
||||
Dim ObjCGam As New ClsCGame()
|
||||
@@ -122,7 +122,7 @@ Partial Class CGame_CatTipoEmpaque
|
||||
|
||||
Dim tipoEmpaque As String = TxtCGamtipoEmpaque.Text
|
||||
Dim estatus As Boolean = ChkCGamestatus.Checked
|
||||
Dim fechaIng As DateTime = Now
|
||||
Dim fechaIng As DateTime = NowADS()
|
||||
Dim cveUsuario As Int32 = UsuarioActual.CveUsuario
|
||||
Dim cveEmpresa As Int32 = UsuarioActual.CveEmpresa
|
||||
Dim ObjCGam As New ClsCGame()
|
||||
|
||||
@@ -111,7 +111,7 @@ Partial Class CGame_CatTipoMaduracion
|
||||
|
||||
Dim tipoMaduracion As String = TxtCGamtipoMaduracion.Text
|
||||
Dim estatus As Boolean = ChkCGamestatus.Checked
|
||||
Dim fechaIng As DateTime = Now
|
||||
Dim fechaIng As DateTime = NowADS()
|
||||
Dim cveUsuario As Int32 = UsuarioActual.CveUsuario
|
||||
Dim cveEmpresa As Int32 = UsuarioActual.CveEmpresa
|
||||
Dim ObjCGam As New ClsCGame()
|
||||
@@ -129,7 +129,7 @@ Partial Class CGame_CatTipoMaduracion
|
||||
|
||||
Dim tipoMaduracion As String = TxtCGamtipoMaduracion.Text
|
||||
Dim estatus As Boolean = ChkCGamestatus.Checked
|
||||
Dim fechaIng As DateTime = Now
|
||||
Dim fechaIng As DateTime = NowADS()
|
||||
Dim cveUsuario As Int32 = UsuarioActual.CveUsuario
|
||||
Dim cveEmpresa As Int32 = UsuarioActual.CveEmpresa
|
||||
Dim ObjCGam As New ClsCGame()
|
||||
|
||||
@@ -59,8 +59,8 @@ public partial class CGame_CorteGasto : ClsPaginas
|
||||
else
|
||||
{
|
||||
|
||||
TxtFechaRegistro.Text = DateTime.Now.ToShortDateString();
|
||||
txtFechaI.Text = DateTime.Now.ToShortDateString();
|
||||
TxtFechaRegistro.Text = NowADS().ToShortDateString();
|
||||
txtFechaI.Text = NowADS().ToShortDateString();
|
||||
lblNombreUsuario.Text = UsuarioActual.Usuario;
|
||||
UpDatosCorteGasto.Update();
|
||||
UpDatosRegistro.Update();
|
||||
@@ -139,9 +139,9 @@ public partial class CGame_CorteGasto : ClsPaginas
|
||||
|
||||
protected void Limpia()
|
||||
{
|
||||
TxtFechaRegistro.Text = DateTime.Now.ToShortDateString();
|
||||
TxtFechaRegistro.Text = NowADS().ToShortDateString();
|
||||
lblNombreUsuario.Text = UsuarioActual.Usuario;
|
||||
TxtFechaRegistro.Text = DateTime.Now.ToShortDateString();
|
||||
TxtFechaRegistro.Text = NowADS().ToShortDateString();
|
||||
DdlOrdenCorte.SelectedIndex = 0;
|
||||
UpDatosCorteGasto.Update();
|
||||
UpDatosRegistro.Update();
|
||||
|
||||
@@ -704,7 +704,7 @@ public partial class Empaque : ClsPaginas
|
||||
DdlTipoEmpaque.SelectedIndex = 0;
|
||||
CargaTipoMaduracion(DdlPS.SelectedValue.ToEntero());
|
||||
DdlTipoProducto.SelectedIndex = 0;
|
||||
TxtFecha.Text = DateTime.Now.ToString();
|
||||
TxtFecha.Text = NowADS().ToString();
|
||||
TxtPeso.Text = "";
|
||||
TxtCantidad.Text = "";
|
||||
DdlCalidad.SelectedIndex = 0;
|
||||
@@ -717,8 +717,8 @@ public partial class Empaque : ClsPaginas
|
||||
{
|
||||
DdlHuerta.SelectedValue = "-1";
|
||||
lblNombreUsuario.Text = UsuarioActual.Nombre;
|
||||
TxtFechaRegistro.Text = DateTime.Now.ToShortDateString();
|
||||
TxtFecha.Text = DateTime.Now.ToString();
|
||||
TxtFechaRegistro.Text = NowADS().ToShortDateString();
|
||||
TxtFecha.Text = NowADS().ToString();
|
||||
CargaFolio();
|
||||
LimpiarGvCorteShowHeader();
|
||||
LimpiarGvResultadoShowHeader();
|
||||
@@ -959,7 +959,7 @@ public partial class Empaque : ClsPaginas
|
||||
ClsInventarios ObjInv = new ClsInventarios(ObjProd.IniciaTransacSQL());
|
||||
var CveAlmacen = DdlAlmacen.SelectedValue.ToEntero();
|
||||
var Concepto = 3;
|
||||
var Fecha = DateTime.Now;
|
||||
var Fecha = NowADS();
|
||||
var CveCorte = 0;
|
||||
StringBuilder MensajeExistencias = new StringBuilder();
|
||||
var ExistenciaActual = 0.0;
|
||||
@@ -1284,7 +1284,7 @@ public partial class Empaque : ClsPaginas
|
||||
List<ReportParameter> para = new List<ReportParameter>();
|
||||
para.Add(new ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa));
|
||||
para.Add(new ReportParameter("UsuarioImprimio", UsuarioActual.Nombre));
|
||||
para.Add(new ReportParameter("FechaImpresion", DateTime.Now.ToString()));
|
||||
para.Add(new ReportParameter("FechaImpresion", NowADS().ToString()));
|
||||
para.Add(new ReportParameter("Folio", Folio));
|
||||
para.Add(new ReportParameter("Huerta", DdlHuerta.SelectedItem.Text));
|
||||
para.Add(new ReportParameter("Observaciones", TxtObservacion.Text));
|
||||
|
||||
@@ -31,8 +31,8 @@ public partial class CATCorte : ClsPaginas
{
|
||||
}
|
||||
private String Adjunto
|
||||
{
|
||||
get { return (ViewState["Adjunto"] == null) ? "-1" : (String)(ViewState["Adjunto"]); }
|
||||
set { ViewState["Adjunto"] = value; }
|
||||
get { return (ViewState["Adjunto"] == null) ? "-1" : (String)(ViewState["Adjunto"]); }
|
||||
set { ViewState["Adjunto"] = value; }
|
||||
}
|
||||
private int CveHuerta
|
||||
{
|
||||
@@ -143,7 +143,7 @@ public partial class CATCorte : ClsPaginas
{
|
||||
if (ObjCGame.GetBitacora(UsuarioActual.CveEmpresa))
|
||||
{
|
||||
GvBitacora.DataSource = ObjCGame.DtResultados;
|
||||
}
|
||||
}
|
||||
ObjCGame.Dispose();
|
||||
GvBitacora.DataBind();
|
||||
UpBitacora.Update();
|
||||
@@ -413,7 +413,7 @@ public partial class CATCorte : ClsPaginas
{
|
||||
{
|
||||
Alert("Tiene que seleccionar una orden de corte", ModExtensiones.TipoMensaje.MsgAdvertencia);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (DdlMotivo.SelectedValue == "-1")
|
||||
{
|
||||
Alert("Tiene que seleccionar un motivo", ModExtensiones.TipoMensaje.MsgAdvertencia);
|
||||
|
||||
@@ -88,8 +88,8 @@ public partial class CGame_Fletes : ClsPaginas
|
||||
|
||||
protected void InicializaValores()
|
||||
{
|
||||
TxtFiltrosFechaInicio.Text = DateTime.Now.FirstDayOfMonth().ToShortDateString();
|
||||
TxtFiltrosFechaFin.Text = DateTime.Now.ToShortDateString();
|
||||
TxtFiltrosFechaInicio.Text = NowADS().FirstDayOfMonth().ToShortDateString();
|
||||
TxtFiltrosFechaFin.Text = NowADS().ToShortDateString();
|
||||
CveOrdenCorteOpcion = Request["CveOrdenCorte"] == null ? 0 : Request["CveOrdenCorte"].ToString().ToEntero();
|
||||
CveOrdenProduccionOpcion = Request["CveOrdenProduccion"] == null ? 0 : Request["CveOrdenProduccion"].ToString().ToEntero();
|
||||
CveHuerta = Request["CveHuerta"] == null ? 0 : Request["CveHuerta"].ToString().ToEntero();
|
||||
@@ -275,7 +275,7 @@ public partial class CGame_Fletes : ClsPaginas
|
||||
TxtChofer.Text = "";
|
||||
TxtColor.Text = "";
|
||||
TxtPlaca.Text = "";
|
||||
TxtFecha.Text = DateTime.Now.ToString();
|
||||
TxtFecha.Text = NowADS().ToString();
|
||||
ChkConCruce.Checked = false;
|
||||
ChkCalculaImporte.Checked = false;
|
||||
UpModalFleteAdd.Update();
|
||||
@@ -475,7 +475,7 @@ public partial class CGame_Fletes : ClsPaginas
|
||||
if (DdlTipo.SelectedValue == "1" && DdlTipoFlete.SelectedValue == "2")
|
||||
{
|
||||
int CveCorteGasto = 0;
|
||||
if (ObjCGame.AddCorteGasto(CveOrdenCorte, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, DateTime.Now, 0.0))
|
||||
if (ObjCGame.AddCorteGasto(CveOrdenCorte, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, NowADS(), 0.0))
|
||||
{
|
||||
CveCorteGasto = ObjCGame.CveCorteGasto;
|
||||
if (ObjCGame.AddCorteGastoDetalle(CveCorteGasto, 16, 1, TxtImporte.Text.ToDouble()) == false)
|
||||
@@ -1002,7 +1002,7 @@ public partial class CGame_Fletes : ClsPaginas
|
||||
worksheet.Rows[IndexEndTable + 1].Cells[2].Value = Usuario.Nombre;
|
||||
|
||||
worksheet.Rows[IndexEndTable].Cells[6].Value = "Fecha Impresión";
|
||||
worksheet.Rows[IndexEndTable + 1].Cells[6].Value = DateTime.Now.ToString("dd/MM/yyyy");
|
||||
worksheet.Rows[IndexEndTable + 1].Cells[6].Value = NowADS().ToString("dd/MM/yyyy");
|
||||
}
|
||||
}
|
||||
htw.Dispose();
|
||||
|
||||
@@ -109,7 +109,7 @@ public partial class CGame_GenerarOrdenCorte : ClsPaginas
|
||||
|
||||
protected void LimpiaModal()
|
||||
{
|
||||
TxtFechaCorte.Text = DateTime.Now.ToShortDateString();
|
||||
TxtFechaCorte.Text = NowADS().ToShortDateString();
|
||||
DdlHuerta.SelectedIndex = 0;
|
||||
TxtCuadro.Text = "";
|
||||
TxtPeso.Text = "";
|
||||
|
||||
@@ -227,8 +227,8 @@ public partial class CGame_Liquidacion : ClsPaginas
|
||||
GvGastos.DataSource = DtGastosTotales;
|
||||
GvGastos.DataBind();
|
||||
UpDatosGenerales.Update();
|
||||
UpGastos.Update();
|
||||
UpUtilidad.Update();
|
||||
UpGastos.Update();
|
||||
UpUtilidad.Update();
|
||||
}
|
||||
|
||||
private void InicializaValores()
|
||||
@@ -279,7 +279,7 @@ public partial class CGame_Liquidacion : ClsPaginas
|
||||
TotCantidadJug = DtIngresos.SUM("CantidadJugo");
|
||||
Merma = DtIngresos.Rows[0]["Merma"].ToString().ToDouble();
|
||||
PesoNeto = DtIngresos.Rows[0]["PesoNeto"].ToString().ToDouble();
|
||||
}
|
||||
}
|
||||
|
||||
System.IO.FileInfo Imagen = new System.IO.FileInfo($"{UsuarioActual.Empresa.Ruta}/Logo.png");
|
||||
String logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa);
|
||||
|
||||
@@ -226,7 +226,7 @@ Partial Class CGame_OrdenProduccion
|
||||
#Region "CARGAS"
|
||||
|
||||
Protected Sub CargaDatos()
|
||||
TxtFechaFlete.Text = Now.AddDays(0).ToShortDateString
|
||||
TxtFechaFlete.Text = NowADS().AddDays(0).ToShortDateString
|
||||
If CveOrdenProduccion > -1 Then
|
||||
Dim ObjOP As New ClsCGame()
|
||||
If ObjOP.GetOrdenProduccion(CveOrdenProduccion, UsuarioActual.CveEmpresa, -1, "-1", MinFecha, MaxFecha, -1) Then
|
||||
@@ -918,7 +918,7 @@ Partial Class CGame_OrdenProduccion
|
||||
|
||||
Protected Sub LnkEditarMasivo_Click(sender As Object, e As EventArgs)
|
||||
RegistraScript("$('#DivUpdateMasivo').modal()")
|
||||
TxtFechaUpdate.Text = Now.ToShortDateString()
|
||||
TxtFechaUpdate.Text = NowADS().ToShortDateString()
|
||||
UpMasivo.Update()
|
||||
End Sub
|
||||
|
||||
@@ -982,8 +982,8 @@ Partial Class CGame_OrdenProduccion
|
||||
|
||||
Protected Sub LimpiaPagina()
|
||||
lblNombreUsuario.Text = UsuarioActual.Nombre
|
||||
TxtFecha.Text = Now.AddDays(0).ToShortDateString
|
||||
TxtFechaEntrega.Text = Now.AddDays(0).ToShortDateString
|
||||
TxtFecha.Text = NowADS().AddDays(0).ToShortDateString
|
||||
TxtFechaEntrega.Text = NowADS().AddDays(0).ToShortDateString
|
||||
TxtObservacion.Text = ""
|
||||
DdlCliente.SelectedValue = "-1"
|
||||
UPDatosOrden.Update()
|
||||
@@ -1117,7 +1117,7 @@ Partial Class CGame_OrdenProduccion
|
||||
'Protected Sub GvOrdenCorte_RowDataBound(sender As Object, e As GridViewRowEventArgs)
|
||||
' If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
' If CveOrdenProduccion > 0 Then
|
||||
' e.Row.FCTextBox("TxtFechaCorte").Text = Date.Now.ToShortDateString()
|
||||
' e.Row.FCTextBox("TxtFechaCorte").Text = NowADS().ToShortDateString()
|
||||
' Dim ObjCGame As New ClsCGame
|
||||
' If ObjCGame.GetHuerta(UsuarioActual.CveEmpresa) Then
|
||||
' e.Row.FCDropDownList("DdlHuerta").DataSource = ObjCGame.DtResultados
|
||||
@@ -1176,8 +1176,8 @@ Partial Class CGame_OrdenProduccion
|
||||
Private Sub BtnCreaPartir_Click(sender As Object, e As EventArgs) Handles BtnCreaPartir.Click
|
||||
CargaFolio()
|
||||
lblNombreUsuario.Text = UsuarioActual.Nombre
|
||||
TxtFecha.Text = Now.AddDays(0).ToShortDateString
|
||||
TxtFechaEntrega.Text = Now.AddDays(0).ToShortDateString
|
||||
TxtFecha.Text = NowADS().AddDays(0).ToShortDateString
|
||||
TxtFechaEntrega.Text = NowADS().AddDays(0).ToShortDateString
|
||||
TrEstatus.Visible = False
|
||||
CveOrdenProduccion = -1
|
||||
LnkEliminarOrdenProduccion.Visible = False
|
||||
@@ -1251,7 +1251,7 @@ Partial Class CGame_OrdenProduccion
|
||||
' DrNew("Peso") = 0.0
|
||||
' DrNew("Cuadro") = 0
|
||||
' DrNew("Observacion") = ""
|
||||
' DrNew("FechaCorte") = Date.Now.ToShortDateString
|
||||
' DrNew("FechaCorte") = NowADS().ToShortDateString
|
||||
' DtDetalleCorte.Rows.InsertAt(DrNew, Index)
|
||||
' DtDetalleCorte.AcceptChanges()
|
||||
|
||||
@@ -1660,7 +1660,7 @@ Partial Class CGame_OrdenProduccion
|
||||
TxtNombreManifiesto.Text = ""
|
||||
TxtDireccionManifiesto.Text = ""
|
||||
TxtCiudadManifiesto.Text = ""
|
||||
TxtFechaManifiesto.Text = Now.ToShortDateString()
|
||||
TxtFechaManifiesto.Text = NowADS().ToShortDateString()
|
||||
UpManifiesto.Update()
|
||||
End Sub
|
||||
|
||||
@@ -1681,7 +1681,7 @@ Partial Class CGame_OrdenProduccion
|
||||
Dim params As New List(Of ReportParameter)
|
||||
params.Add(New ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa))
|
||||
params.Add(New ReportParameter("UsuarioImprimio", UsuarioActual.Nombre))
|
||||
params.Add(New ReportParameter("FechaImpresion", Now.ToDateTime.ToShortDateString))
|
||||
params.Add(New ReportParameter("FechaImpresion", NowADS().ToDateTime.ToShortDateString))
|
||||
params.Add(New ReportParameter("Folio", ObjCGame.DtResultados.Rows(0)("Folio").ToString))
|
||||
params.Add(New ReportParameter("Nombre", ObjCGame.DtResultados.Rows(0)("Nombre").ToString))
|
||||
params.Add(New ReportParameter("Direccion", ObjCGame.DtResultados.Rows(0)("Direccion").ToString))
|
||||
@@ -1696,7 +1696,7 @@ Partial Class CGame_OrdenProduccion
|
||||
params.Add(New ReportParameter("CantidadConLetra", Texto2Letras(Dt.SUM("Importe").ToString.ToDouble, 2)))
|
||||
End If
|
||||
End If
|
||||
ImprimirPDF("Empresas/Grales/Formatos/Manifiesto.rdlc", Dt, params, String.Format("Manifiesto -{0}", Now.ToDateTime.ToShortDateString))
|
||||
ImprimirPDF("Empresas/Grales/Formatos/Manifiesto.rdlc", Dt, params, String.Format("Manifiesto -{0}", NowADS().ToDateTime.ToShortDateString))
|
||||
Else
|
||||
Alert("No se encontraron resultados", TipoMensaje.MsgAdvertencia)
|
||||
End If
|
||||
|
||||
@@ -14,8 +14,8 @@ public partial class CGame_PopUpBuscarProduccion :ClsPaginas
|
||||
if (!IsPostBack)
|
||||
{
|
||||
((BaseMasterPage) this.Master).EsPopup = true;
|
||||
TxtFechaEntregaI.Text = DateTime.Now.ToString();
|
||||
TxtFechaEntregaF.Text = DateTime.Now.ToString();
|
||||
TxtFechaEntregaI.Text = NowADS().ToString();
|
||||
TxtFechaEntregaF.Text = NowADS().ToString();
|
||||
CargaHuerta();
|
||||
}
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ public partial class CGame_PopUpBuscarProduccion :ClsPaginas
|
||||
using System.Data;
|
||||
using static Extensiones.ModExtensiones;
|
||||
|
||||
public partial class CGame_PopUpBuscarProduccion :ClsPaginas
|
||||
{
|
||||
public partial class CGame_PopUpBuscarProduccion :ClsPaginas
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
|
||||
@@ -8,8 +8,8 @@ Partial Class CGame_PopUpBuscarOrdenProduccion
|
||||
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
|
||||
If Not IsPostBack Then
|
||||
CType(Me.Master, BaseMasterPage).EsPopup = True
|
||||
TxtFechaEntregaI.Text = Now.AddDays(0).ToShortDateString
|
||||
TxtFechaEntregaF.Text = Now.AddDays(0).ToShortDateString
|
||||
TxtFechaEntregaI.Text = NowADS().AddDays(0).ToShortDateString
|
||||
TxtFechaEntregaF.Text = NowADS().AddDays(0).ToShortDateString
|
||||
CargaCliente()
|
||||
CargaEstatus()
|
||||
End If
|
||||
|
||||
@@ -221,7 +221,7 @@ public partial class CGame_RepAvance : ClsPaginas
|
||||
// double TotIngresosPrimera = 0, TotIngresosSegunda = 0, TotGastosPrimera = 0, TotGastosSegunda = 0, TotPesoPrimera = 0, TotPesoSegunda = 0, MermaPrimera = 0, MermaSegunda = 0, TotCantidadPrimera=0, TotCantidadSegunda=0;
|
||||
// if (DtIngresosPrimera.Rows.Count > 0) { TotIngresosPrimera = DtIngresosPrimera.SUM("Importe"); TotPesoPrimera = DtIngresosPrimera.SUM("Peso"); MermaPrimera = DtIngresosPrimera.SUM("Merma"); TotCantidadPrimera = DtIngresosPrimera.SUM("Cantidad"); }
|
||||
// if (DtIngresosSegunda.Rows.Count > 0) { TotIngresosSegunda = DtIngresosSegunda.SUM("Importe"); TotPesoSegunda = DtIngresosSegunda.SUM("Peso"); MermaSegunda = DtIngresosSegunda.SUM("Merma"); TotCantidadSegunda = DtIngresosSegunda.SUM("Cantidad"); }
|
||||
// if (DtGastosPrimera.Rows.Count > 0) { TotGastosPrimera = DtGastosPrimera.Rows[0]["Importe"].ToString().ToDouble(); }
|
||||
// if (DtGastosPrimera.Rows.Count > 0) { TotGastosPrimera = DtGastosPrimera.Rows[0]["Importe"].ToString().ToDouble(); }
|
||||
// if (DtGastosSegunda.Rows.Count > 0) { TotGastosSegunda = DtGastosSegunda.Rows[0]["Importe"].ToString().ToDouble(); }
|
||||
// System.IO.FileInfo Imagen = new System.IO.FileInfo($"{UsuarioActual.Empresa.Ruta}/Logo.png");
|
||||
// String logouri = String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa);
|
||||
|
||||
@@ -18,8 +18,8 @@ public partial class CGame_RepCorte : ClsPaginas
|
||||
set { ViewState["DtCorte"] = value; }
|
||||
}
|
||||
#endregion
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
@@ -27,8 +27,8 @@ public partial class CGame_RepCorte : ClsPaginas
|
||||
DdlHuerta.SelectedValueExist(Request["CveHuerta"] == null ? "-1" : Request["CveHuerta"].ToString());
|
||||
txtFechaI.Text = Request["FechaI"] == null ? NowADS().ToString() : Request["FechaI"].ToString();
|
||||
txtFechaF.Text = Request["FechaF"] == null ? NowADS().ToString() : Request["FechaF"].ToString();
|
||||
if (DdlHuerta.SelectedValue.ToEntero() > 0) { Consulta(); }
|
||||
}
|
||||
if (DdlHuerta.SelectedValue.ToEntero() > 0) { Consulta(); }
|
||||
}
|
||||
}
|
||||
|
||||
private void InicializaValores()
|
||||
|
||||
@@ -29,8 +29,8 @@ public partial class CGame_RepCorteGasto : ClsPaginas
|
||||
if (!IsPostBack)
|
||||
{
|
||||
InicializaValores();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void InicializaValores()
|
||||
{
|
||||
|
||||
@@ -26,12 +26,12 @@ public partial class CGame_RepEmpaque : ClsPaginas
|
||||
{
|
||||
get { return (ViewState["Modalidad"] == null) ? 0 : Convert.ToInt32(ViewState["Modalidad"]); }
|
||||
set { ViewState["Modalidad"] = value; }
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
txtFechaI.Text = NowADS().ToString();
|
||||
txtFechaF.Text = NowADS().ToString();
|
||||
@@ -125,7 +125,7 @@ public partial class CGame_RepEmpaque : ClsPaginas
|
||||
if (DtDatos.Rows.Count > 0)
|
||||
{
|
||||
DtDatos.Columns.Add("EnPiso");
|
||||
foreach (DataRow Dt in DtDatos.Rows)
|
||||
foreach (DataRow Dt in DtDatos.Rows)
|
||||
{
|
||||
Dt["EnPiso"] = (Dt["Corte"].ToString().ToDouble() - Dt["Unidades"].ToString().ToDouble() - Dt["Merma"].ToString().ToDouble()).FormatoNumero();
|
||||
}
|
||||
|
||||
@@ -23,8 +23,8 @@ public partial class CGame_RepEmpaque : ClsPaginas
|
||||
set { ViewState["CveProduccion"] = value; }
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
|
||||
@@ -8,8 +8,8 @@ public partial class CGame_RepFletes : ClsPaginas
|
||||
using static Extensiones.ModExtensiones;
|
||||
using Microsoft.Reporting.WebForms;
|
||||
public partial class CGame_RepFletes : ClsPaginas
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
@@ -18,8 +18,8 @@ public partial class CGame_RepFletes : ClsPaginas
|
||||
txtFechaI.Text = Request["FechaI"] == null ? NowADS().ToString() : Request["FechaI"].ToString();
|
||||
txtFechaF.Text = Request["FechaF"] == null ? NowADS().ToString() : Request["FechaF"].ToString();
|
||||
DdlTipo.SelectedValueExist(Request["Tipo"] == null ? "-1" : Request["Tipo"].ToString());
|
||||
if (DdlHuerta.SelectedValue.ToEntero() > 0) { Consulta(); }
|
||||
}
|
||||
if (DdlHuerta.SelectedValue.ToEntero() > 0) { Consulta(); }
|
||||
}
|
||||
}
|
||||
|
||||
private void InicializaValores()
|
||||
|
||||
@@ -8,8 +8,8 @@ public partial class CGame_RepIngresos : ClsPaginas
|
||||
using static Extensiones.ModExtensiones;
|
||||
using Microsoft.Reporting.WebForms;
|
||||
public partial class CGame_RepIngresos : ClsPaginas
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
@@ -17,8 +17,8 @@ public partial class CGame_RepIngresos : ClsPaginas
|
||||
DdlHuerta.SelectedValueExist(Request["CveHuerta"] == null ? "-1" : Request["CveHuerta"].ToString());
|
||||
txtFechaI.Text = Request["FechaI"] == null ? NowADS().ToString() : Request["FechaI"].ToString();
|
||||
txtFechaF.Text = Request["FechaF"] == null ? NowADS().ToString() : Request["FechaF"].ToString();
|
||||
if (DdlHuerta.SelectedValue.ToEntero() > 0) { Consulta(); }
|
||||
}
|
||||
if (DdlHuerta.SelectedValue.ToEntero() > 0) { Consulta(); }
|
||||
}
|
||||
}
|
||||
|
||||
private void InicializaValores()
|
||||
|
||||
@@ -8,8 +8,8 @@ public partial class CGame_RepMaquila : ClsPaginas
|
||||
using static Extensiones.ModExtensiones;
|
||||
using Microsoft.Reporting.WebForms;
|
||||
public partial class CGame_RepMaquila : ClsPaginas
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
@@ -17,8 +17,8 @@ public partial class CGame_RepMaquila : ClsPaginas
|
||||
DdlHuerta.SelectedValueExist(Request["CveHuerta"] == null ? "-1" : Request["CveHuerta"].ToString());
|
||||
txtFechaI.Text = Request["FechaI"] == null ? NowADS().ToString() : Request["FechaI"].ToString();
|
||||
txtFechaF.Text = Request["FechaF"] == null ? NowADS().ToString() : Request["FechaF"].ToString();
|
||||
if (DdlHuerta.SelectedValue.ToEntero() > 0) { Consulta(); }
|
||||
}
|
||||
if (DdlHuerta.SelectedValue.ToEntero() > 0) { Consulta(); }
|
||||
}
|
||||
}
|
||||
|
||||
private void InicializaValores()
|
||||
|
||||
@@ -9,8 +9,8 @@ public partial class CGame_RepMateriales : ClsPaginas
|
||||
using Microsoft.Reporting.WebForms;
|
||||
|
||||
public partial class CGame_RepMateriales : ClsPaginas
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
@@ -18,8 +18,8 @@ public partial class CGame_RepMateriales : ClsPaginas
|
||||
DdlHuerta.SelectedValueExist(Request["CveHuerta"] == null ? "-1" : Request["CveHuerta"].ToString());
|
||||
txtFechaI.Text = Request["FechaI"] == null ? NowADS().ToString() : Request["FechaI"].ToString();
|
||||
txtFechaF.Text = Request["FechaF"] == null ? NowADS().ToString() : Request["FechaF"].ToString();
|
||||
if (DdlHuerta.SelectedValue.ToEntero() > 0) { Consulta(); }
|
||||
}
|
||||
if (DdlHuerta.SelectedValue.ToEntero() > 0) { Consulta(); }
|
||||
}
|
||||
}
|
||||
|
||||
private void InicializaValores()
|
||||
|
||||
@@ -18,12 +18,12 @@ public partial class CGame_RepOrdenCorte : ClsPaginas
|
||||
set { ViewState["DtDatos"] = value; }
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
txtFechaI.Text = NowADS().ToString();
|
||||
txtFechaF.Text = NowADS().ToString();
|
||||
@@ -76,7 +76,7 @@ public partial class CGame_RepOrdenCorte : ClsPaginas
|
||||
String FechaI;
|
||||
if (txtFechaI.Text == "" || txtFechaI.Text == "__/__/____") { FechaI = "-1"; } else { FechaI = $" <b>Fecha Entrega Inicial:</b> {txtFechaI.Text}"; }
|
||||
String Huerta;
|
||||
if (DdlHuerta.SelectedValue != "-1") { Huerta = $" <b>Huerta:</b> {DdlHuerta.SelectedItem.Text}"; } else { Huerta = ""; }
|
||||
if (DdlHuerta.SelectedValue != "-1") { Huerta = $" <b>Huerta:</b> {DdlHuerta.SelectedItem.Text}"; } else { Huerta = ""; }
|
||||
String Folio;
|
||||
if (TxtFolioOC.Text != "") { Folio = $" <b>Folio:</b> {TxtFolioOC.Text}"; } else { Folio = ""; }
|
||||
if (DtDatos.Rows.Count > 0)
|
||||
|
||||
@@ -32,7 +32,7 @@ public partial class CGame_RepOrdenCorteDetalle : ClsPaginas
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
TxtFechaFlete.Text = DateTime.Now.ToShortDateString();
|
||||
TxtFechaFlete.Text = NowADS().ToShortDateString();
|
||||
CveOrdenCorte = Request["CveOrdenCorte"] == null ? 0 : Request["CveOrdenCorte"].ToString().ToEntero();
|
||||
CargaDatos();
|
||||
}
|
||||
@@ -383,7 +383,7 @@ public partial class CGame_RepOrdenCorteDetalle : ClsPaginas
|
||||
}
|
||||
EnviarCorreo(CveOrdenCorte, Body, Descripcion);
|
||||
Alert("La fecha del flete se asigno correctamente");
|
||||
TxtFechaFlete.Text = DateTime.Now.ToShortDateString();
|
||||
TxtFechaFlete.Text = NowADS().ToShortDateString();
|
||||
DdlEmpaque.SelectedIndex = 0;
|
||||
LnkFletes.Visible = true;
|
||||
UpAcciones.Update();
|
||||
|
||||
@@ -42,8 +42,8 @@ public partial class CGame_RepOrdenProduccion :ClsPaginas
|
||||
}
|
||||
else
|
||||
{
|
||||
txtFechaI.Text = DateTime.Now.ToString();
|
||||
txtFechaF.Text = DateTime.Now.ToString();
|
||||
txtFechaI.Text = NowADS().ToString();
|
||||
txtFechaF.Text = NowADS().ToString();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -128,7 +128,7 @@ public partial class CGame_RepOrdenProduccion :ClsPaginas
|
||||
List<ReportParameter> para = new List<ReportParameter>();
|
||||
para.Add(new ReportParameter("NombreEmpresa", UsuarioActual.Empresa.Empresa));
|
||||
para.Add(new ReportParameter("UsuarioImprimio", UsuarioActual.Nombre));
|
||||
para.Add(new ReportParameter("FechaImpresion", DateTime.Now.ToString()));
|
||||
para.Add(new ReportParameter("FechaImpresion", NowADS().ToString()));
|
||||
para.Add(new ReportParameter("AgrupadoPor", $"<b>Agrupado Por:</b> {Folio}{Estatus}{Cliente}{FechaI}{FechaF}"));
|
||||
if (Imagen.Exists)
|
||||
{
|
||||
|
||||
@@ -15,8 +15,8 @@ public partial class CGame_RepOrdenProduccionXHuerta : ClsPaginas
|
||||
if (!IsPostBack)
|
||||
{
|
||||
InicializaValores();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void InicializaValores()
|
||||
|
||||
@@ -9,8 +9,8 @@ public partial class CGame_RepOtrosGastos : ClsPaginas
|
||||
using Microsoft.Reporting.WebForms;
|
||||
|
||||
public partial class CGame_RepOtrosGastos : ClsPaginas
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
@@ -18,8 +18,8 @@ public partial class CGame_RepOtrosGastos : ClsPaginas
|
||||
DdlHuerta.SelectedValueExist(Request["CveHuerta"] == null ? "-1" : Request["CveHuerta"].ToString());
|
||||
txtFechaI.Text = Request["FechaI"] == null ? NowADS().ToString() : Request["FechaI"].ToString();
|
||||
txtFechaF.Text = Request["FechaF"] == null ? NowADS().ToString() : Request["FechaF"].ToString();
|
||||
if (DdlHuerta.SelectedValue.ToEntero() > 0) { Consulta(); }
|
||||
}
|
||||
if (DdlHuerta.SelectedValue.ToEntero() > 0) { Consulta(); }
|
||||
}
|
||||
}
|
||||
|
||||
private void InicializaValores()
|
||||
|
||||
@@ -9,8 +9,8 @@ public partial class CGame_RepPreEnfriado : ClsPaginas
|
||||
using Microsoft.Reporting.WebForms;
|
||||
|
||||
public partial class CGame_RepPreEnfriado : ClsPaginas
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
@@ -19,8 +19,8 @@ public partial class CGame_RepPreEnfriado : ClsPaginas
|
||||
txtFechaI.Text = Request["FechaI"] == null ? NowADS().ToString() : Request["FechaI"].ToString();
|
||||
txtFechaF.Text = Request["FechaF"] == null ? NowADS().ToString() : Request["FechaF"].ToString();
|
||||
ChkLiquidado.Checked= Convert.ToBoolean(Request["Liquidado"] == null ? 0 : Request["Liquidado"].ToString().ToEntero());
|
||||
if (DdlHuerta.SelectedValue.ToEntero() > 0) { Consulta(); }
|
||||
}
|
||||
if (DdlHuerta.SelectedValue.ToEntero() > 0) { Consulta(); }
|
||||
}
|
||||
}
|
||||
|
||||
private void InicializaValores()
|
||||
|
||||
Reference in New Issue
Block a user