Inventario en programacion de recursos
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -342,7 +342,9 @@ Partial Class Bancos_RepProgramarRecursos
|
||||
LblPesosTotal.Text = String.Format("$ {0}", DtDatos.SUM("SaldoPesos", "CveCompra > 0").ToString.FormatoNumero())
|
||||
|
||||
LblAcumulado.Text = String.Format("$ {0}", DtDatos.MAX("TotalProgramado", "CveCompra > 0").ToString.FormatoNumero())
|
||||
End If
|
||||
End If
|
||||
|
||||
Gv.Columns(6).Visible = (UsuarioActual.Empresa.Funcionalidad(131).ToEntero > 0 Or UsuarioActual.Empresa.Funcionalidad(134).ToEntero > 0)
|
||||
|
||||
Mov.Dispose()
|
||||
CargaGrid(Orden)
|
||||
@@ -434,19 +436,41 @@ Partial Class Bancos_RepProgramarRecursos
|
||||
e.Row.FCCheckBox("Chk").Attributes.Add("onclick", String.Format(" $get('{0}').readOnly = !this.checked;", e.Row.FCTextBox("TxtS").ClientID))
|
||||
'cuando estan programado, el saldo es el importe programado, para saber el total que se limite el rango, debe de ser el saldo real, saldo + importeprogramado
|
||||
e.Row.FCTextBox("TxtS").Attributes.Add("onkeyup", String.Format("FnMonedaRango(this,{0});", e.Row.DBCampo("Original").ToDouble + e.Row.DBCampo("Abonado").ToDouble))
|
||||
End If
|
||||
|
||||
|
||||
'If UsuarioActual.Empresa.GralSoloProyecto Then ' solo muestar el subproyecto
|
||||
' e.Row.FCDropDownList("DdlCuenta").Visible = True
|
||||
' e.Row.FCDropDownList("DdlCuenta").DataSource = DtCuentas
|
||||
' e.Row.FCDropDownList("DdlCuenta").DataBind()
|
||||
|
||||
' e.Row.FCDropDownList("DdlMov").Visible = True
|
||||
' e.Row.FCDropDownList("DdlMov").DataSource = DtTipoTransaccion
|
||||
' e.Row.FCDropDownList("DdlMov").DataBind()
|
||||
|
||||
'End If
|
||||
|
||||
If UsuarioActual.Empresa.Funcionalidad(131).ToEntero > 0 Or UsuarioActual.Empresa.Funcionalidad(134).ToEntero > 0 Then
|
||||
Dim Str As New StringBuilder
|
||||
Str.AppendFormat("Importe Almacen: ${0} ({1}%) <br/>", e.Row.DBCampo("ImporteAlmacen").FormatoNumero, e.Row.DBCampo("ImporteAlmacenPorcentaje"))
|
||||
If e.Row.DBCampo("ImporteServicios").ToDouble > 0 Then Str.AppendFormat("Importe Servicios: ${0} ({1}%) <br/>", e.Row.DBCampo("ImporteServicios").FormatoNumero, e.Row.DBCampo("ImporteServiciosPorcentaje"))
|
||||
If e.Row.DBCampo("ImporteDevolucion").ToDouble > 0 Then Str.AppendFormat("Importe Devuelto: ${0} ({1}%) <br/>", e.Row.DBCampo("ImporteDevolucion").FormatoNumero, e.Row.DBCampo("ImporteDevolucionPorcentaje"))
|
||||
Str.AppendFormat(" <i> Importes <b> SIN</b> IVA</i>")
|
||||
|
||||
e.Row.FCLabel("LbEstatusInv").Attributes.Add("title", Str.ToString)
|
||||
Select Case e.Row.DBCampo("EstatusInventario").ToEntero
|
||||
Case 1
|
||||
e.Row.FCLabel("LbEstatusInv").Text = "<i Class='fa fa-flag-o' aria-hidden='true'></i>"
|
||||
e.Row.FCLabel("LbEstatusInv").ForeColor = Drawing.Color.Red
|
||||
Case 2
|
||||
e.Row.FCLabel("LbEstatusInv").Text = "<i Class='fa fa-flag-checkered' aria-hidden='true'></i>"
|
||||
e.Row.FCLabel("LbEstatusInv").ForeColor = Drawing.Color.DarkOrange
|
||||
Case 3
|
||||
e.Row.FCLabel("LbEstatusInv").Text = "<i Class='fa fa-flag' aria-hidden='true'></i>"
|
||||
e.Row.FCLabel("LbEstatusInv").ForeColor = Drawing.Color.Green
|
||||
End Select
|
||||
End If
|
||||
|
||||
|
||||
'If UsuarioActual.Empresa.GralSoloProyecto Then ' solo muestar el subproyecto
|
||||
' e.Row.FCDropDownList("DdlCuenta").Visible = True
|
||||
' e.Row.FCDropDownList("DdlCuenta").DataSource = DtCuentas
|
||||
' e.Row.FCDropDownList("DdlCuenta").DataBind()
|
||||
|
||||
' e.Row.FCDropDownList("DdlMov").Visible = True
|
||||
' e.Row.FCDropDownList("DdlMov").DataSource = DtTipoTransaccion
|
||||
' e.Row.FCDropDownList("DdlMov").DataBind()
|
||||
|
||||
'End If
|
||||
End If
|
||||
|
||||
If e.Row.DBCampo("Saldo").ToDouble < 0 Then e.Row.Cells(1).ForeColor = Drawing.Color.Red
|
||||
|
||||
Reference in New Issue
Block a user