Foramtos 4.0 Commit 1
This commit is contained in:
@@ -295,10 +295,10 @@
|
||||
<Columns>
|
||||
<asp:TemplateField>
|
||||
<HeaderTemplate>
|
||||
<input type="checkbox" class="form-check-input" id="ChkSelector" onclick="SelectorNotas(this)" checked="checked" disabled >
|
||||
<input type="checkbox" class="form-check-input" id="ChkSelector" onclick="SelectorNotas(this)" runat="server" />
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<asp:CheckBox ID="ChkFactura" CssClass="CssSelector" runat="server" Checked="true" Enabled="false" />
|
||||
<asp:CheckBox ID="ChkFactura" CssClass="CssSelector" runat="server" />
|
||||
</ItemTemplate>
|
||||
</asp:TemplateField>
|
||||
<asp:TemplateField HeaderText="Factura">
|
||||
|
||||
@@ -97,12 +97,16 @@ Partial Class Bancos_DepositosCaja
|
||||
ObjBancos.GetPagosCajaChica(FechaI, FechaF, UsuarioActual.CveEmpresa, DdlCajaChica.SelectedValue.ToEntero, DdlTipoPago.SelectedValue.ToEntero, CveSubProyecto:=DdlSubProyectos.SelectedValue.ToEntero, MSI:=MSI)
|
||||
|
||||
GvFacturas.DataSource = ObjBancos.DtResultados
|
||||
lblValorTotal.Text = ObjBancos.DtResultados.SUM("Importe").ToString("###,###,###.00")
|
||||
|
||||
ObjBancos.Dispose()
|
||||
|
||||
|
||||
GvFacturas.DataBind()
|
||||
If UsuarioActual.Empresa.Funcionalidad(531) = "1" Then
|
||||
lblValorTotal.Text = ObjBancos.DtResultados.SUM("Importe").ToString("###,###,###.00")
|
||||
End If
|
||||
|
||||
ObjBancos.Dispose()
|
||||
|
||||
|
||||
GvFacturas.DataBind()
|
||||
ChkFaltante.Checked = False
|
||||
ChkDescuento.Checked = False
|
||||
ChkIntermediario.Checked = False
|
||||
@@ -365,11 +369,34 @@ Partial Class Bancos_DepositosCaja
|
||||
End Sub
|
||||
|
||||
Protected Sub GvFacturas_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvFacturas.RowDataBound
|
||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
If e.Row.RowType = DataControlRowType.DataRow Then
|
||||
|
||||
|
||||
If UsuarioActual.Empresa.Funcionalidad(531) = "1" Then
|
||||
e.Row.FCCheckBox("ChkFactura").Checked = True
|
||||
e.Row.FCCheckBox("ChkFactura").Enabled = False
|
||||
|
||||
'Dim checkbox As HtmlControl = DirectCast(e.Row.FindControl("checkbox"), HtmlControl)
|
||||
'checkbox.Attributes.Add("chequed", "cheked")
|
||||
|
||||
End If
|
||||
|
||||
|
||||
|
||||
e.Row.FCCheckBox("ChkFactura").Attributes.Add("onclick", String.Format("FnSuma(this,{0});", e.Row.DBCampo("Importe")))
|
||||
e.Row.FCCheckBox("ChkFactura").InputAttributes.Add("Value", e.Row.DBCampo("Importe"))
|
||||
|
||||
End If
|
||||
|
||||
If e.Row.RowType = DataControlRowType.Header Then
|
||||
|
||||
If UsuarioActual.Empresa.Funcionalidad(531) = "1" Then
|
||||
RegistraScript("$('#C_GvFacturas_ChkSelector').attr('checked', true); $('#C_GvFacturas_ChkSelector').prop('disabled', 'disabled');")
|
||||
'RegistraScript("$('#C_GvFacturas_ChkSelector').prop('disabled', 'disabled');")
|
||||
End If
|
||||
|
||||
End If
|
||||
|
||||
End Sub
|
||||
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<asp:Content ID="Content7" ContentPlaceHolderID="C" runat="Server">
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-8">
|
||||
<div class="portlet box blue-hoki">
|
||||
<div class="portlet-title">
|
||||
<div class="caption">
|
||||
@@ -253,7 +253,7 @@
|
||||
|
||||
<asp:UpdatePanel runat="server" >
|
||||
<ContentTemplate>
|
||||
<div class="col-md-6" runat="server" id="DvComprobante">
|
||||
<div class="col-md-2" runat="server" id="DvComprobante">
|
||||
<asp:TextBox ID="Anexo" CssClass="ADSdropzone hidden" data-maxFile="1" Text="" runat="server"></asp:TextBox>
|
||||
</div>
|
||||
</ContentTemplate>
|
||||
|
||||
Reference in New Issue
Block a user