Local
This commit is contained in:
@@ -1266,7 +1266,7 @@ Partial Class Inventarios_EntradasSalidas
|
||||
Dim TieneError = False
|
||||
|
||||
Dim ObjConta As ClsContPAQi = Nothing
|
||||
If UsuarioActual.Empresa.UsaContabilidad Or UsuarioActual.Empresa.UsaAC Then
|
||||
If UsuarioActual.Empresa.TipoContabilidad = 2 AndAlso (UsuarioActual.Empresa.UsaContabilidad Or UsuarioActual.Empresa.UsaAC) Then
|
||||
ObjConta = New ClsContPAQi(UsuarioActual.Empresa)
|
||||
ObjConta.IniciaTransacSQL()
|
||||
End If
|
||||
@@ -1803,7 +1803,7 @@ Partial Class Inventarios_EntradasSalidas
|
||||
Case 30
|
||||
CveConceptoContable = 181
|
||||
TipoMovtoOtro = False
|
||||
tCveSubProyecto = DdlSubProyecto.SelectedValue.ToEntero
|
||||
If DdlSubProyecto.Visible = True AndAlso DdlSubProyecto.SelectedValue.ToEntero > 0 Then tCveSubProyecto = DdlSubProyecto.SelectedValue.ToEntero
|
||||
If UsuarioActual.Empresa.Funcionalidad(342).ToEntero > 0 Then
|
||||
IdCtaContableOtro = UsuarioActual.Empresa.Funcionalidad(342).ToEntero
|
||||
End If
|
||||
@@ -3350,9 +3350,8 @@ Partial Class Inventarios_EntradasSalidas
|
||||
DdlAlmacen.DataBind()
|
||||
Dim dttA As DataTable = Nothing
|
||||
dttA = GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, 14)
|
||||
If UsuarioActual.CveEmpresa = 119 Then
|
||||
dttA.Merge(GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, 1))
|
||||
End If
|
||||
dttA.Merge(GlobalDTAlmacenUsuarios(UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, 1))
|
||||
|
||||
DdlAlmacen.DataSource = dttA 'GlobalDTAlmacen(UsuarioActual.CveEmpresa)
|
||||
DdlAlmacen.Items.Insert(0, New ListItem("Seleccione", "-1"))
|
||||
' DdlAlmacen.SelectedValue = "-1"
|
||||
|
||||
@@ -355,7 +355,7 @@
|
||||
|
||||
|
||||
<asp:GridView ID="gvR" runat="server" AutoGenerateColumns="False" OnRowDataBound="gvR_RowDataBound"
|
||||
DataKeyNames="CveEntregaAlmacen,Orden,CveDireccionOrigen,CveSubProyecto,Estatus,CveTimbre"
|
||||
DataKeyNames="CveEntregaAlmacen,Orden,CveDireccionOrigen,CveSubProyecto,Estatus,CveTimbre,CveCliente,FolioReferencia,Referencia"
|
||||
EmptyDataText="No se encontraron registros"
|
||||
CssClass="table table-striped table-advance table-hover Widthall ScrollAD"
|
||||
data-sort="true"
|
||||
|
||||
@@ -738,12 +738,14 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
||||
CveEntregaAlmacen = GvRow.DataKey("CveEntregaAlmacen").ToEntero();
|
||||
int CveDireccionOrigen = GvRow.DataKey("CveDireccionOrigen").ToEntero();
|
||||
int CveClienteEnvio = -1;
|
||||
string NombreCliente = "";
|
||||
ClsClientes ObjClientes = new ClsClientes();
|
||||
DataTable DtTempDirecciones = new DataTable();
|
||||
|
||||
if (ObjClientes.DireccionEnvioGet(CveDireccionOrigen, -1, -1))
|
||||
{
|
||||
CveClienteEnvio = ObjClientes.DtResultados.FiltroPrimeroValor("CveCliente").ToEntero();
|
||||
CveClienteEnvio = ObjClientes.DtResultados.FiltroPrimeroValor("CveCliente").ToEntero();
|
||||
NombreCliente = ObjClientes.DtResultados.FiltroPrimeroValor("NombreCliente");
|
||||
|
||||
if (ObjClientes.DireccionEnvioGet(-1, CveClienteEnvio, -1))
|
||||
{
|
||||
@@ -756,8 +758,12 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
||||
DdlmodalRecoleccionDireccion.Items.Add(new ListItem("Seleccione una", "-1"));
|
||||
DdlmodalRecoleccionDireccion.SelectedValueExist(CveDireccionOrigen);
|
||||
|
||||
//DdlModalRecoleccionCliente.SelectedValueExist(CveClienteEnvio);
|
||||
DdlModalRecoleccionCliente.SelectedValue = CveClienteEnvio.ToString();
|
||||
DdlModalRecoleccionCliente.SelectedText = NombreCliente;
|
||||
|
||||
DdlSubProyectoRecoleccion.SelectedValueExist(GvRow.DataKey("CveSubProyecto"));
|
||||
TxtFolioReferencia.Text = GvRow.DataKey("FolioReferencia");
|
||||
TxtReferencia.Text = GvRow.DataKey("Referencia");
|
||||
|
||||
CargaDatosRecoleccionDetallePS();
|
||||
|
||||
@@ -778,7 +784,14 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
||||
DdlModalRecoleccionUnidad.Items.Clear();
|
||||
DdlModalRecoleccionUnidad.Items.Add(new ListItem("Seleccione una", "-1"));
|
||||
DdlProducto2.txtValue.Value = "";
|
||||
DdlProducto2.txtText.Value = "";
|
||||
DdlProducto2.txtText.Value = "";
|
||||
|
||||
DdlSubProyectoRecoleccion.SelectedValueExist("-1");
|
||||
DdlModalRecoleccionCliente.SelectedValue = "-1";
|
||||
DdlModalRecoleccionCliente.SelectedText = "Seleccione";
|
||||
|
||||
TxtFolioReferencia.Text = "";
|
||||
TxtReferencia.Text = "";
|
||||
|
||||
DTRecoleccion.Rows.Clear();
|
||||
GvModalPSRecoleccion.DataSource = DTRecoleccion;
|
||||
@@ -843,7 +856,7 @@ public partial class Inventarios_EntregaAlmacenRuta : ClsPaginas
|
||||
}
|
||||
else
|
||||
{
|
||||
ProcesoOK = ObjGenerales.UpdateInvEntregaAlmacenRuta(CveEntregaAlmacen, DdlmodalRecoleccionDireccion.SelectedValue.ToEntero(), -1, DdlChofer.SelectedValue.ToEntero(), DdlUnidadCamion.SelectedValue.ToEntero(), TxtFechaEntrega.Text.ToDate(), UsuarioActual.CveEmpresa);
|
||||
ProcesoOK = ObjGenerales.UpdateInvEntregaAlmacenRuta(CveEntregaAlmacen, DdlmodalRecoleccionDireccion.SelectedValue.ToEntero(), -1, DdlChoferRec.SelectedValue.ToEntero(), DdlUnidadRec.SelectedValue.ToEntero(), TxtFechaEntrega.Text.ToDate(), UsuarioActual.CveEmpresa,FolioReferencia:TxtFolioReferencia.Text,Referencia: TxtReferencia.Text,CveSubProyecto: DdlSubProyectoRecoleccion.SelectedValue.ToEntero());
|
||||
}
|
||||
|
||||
if (ProcesoOK)
|
||||
|
||||
Reference in New Issue
Block a user