- mejora
This commit is contained in:
@@ -529,7 +529,6 @@
|
|||||||
<asp:LinkButton ID="LnkEdit" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
<asp:LinkButton ID="LnkEdit" runat="server" AlternateText="Actualizar" CausesValidation="True" CommandName="Update" CssClass="btn btn-circle btn-sm green" Text="<i class='fa fa-pencil'></i>" />
|
||||||
<asp:LinkButton ID="LnkEliminar" OnClick="LnkGvPrePolizaEliminar_Click" runat="server" AlternateText="Eliminar" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>"
|
<asp:LinkButton ID="LnkEliminar" OnClick="LnkGvPrePolizaEliminar_Click" runat="server" AlternateText="Eliminar" CssClass="btn btn-circle btn-sm red" Text="<i class='icon-trash'></i>"
|
||||||
data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
data-toggle="confirmation" data-popout="true" data-original-title="Confirmar" data-btn-ok-label="si" />
|
||||||
<asp:CheckBox runat="server" ID="chkModificado" Checked="false" Visible="false"/>
|
|
||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
<ItemStyle Width="75px" />
|
<ItemStyle Width="75px" />
|
||||||
</asp:TemplateField>
|
</asp:TemplateField>
|
||||||
|
|||||||
@@ -558,9 +558,6 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
If CveConceptoContable.Contiene(68) Then e.Row.FCHyperLink("HlReferencia").NavigateUrl = String.Format("/Inventarios/EntradasSalidas.aspx?CveMovimiento={0}", e.Row.DBCampo("CveMovimientoAlmacen"))
|
If CveConceptoContable.Contiene(68) Then e.Row.FCHyperLink("HlReferencia").NavigateUrl = String.Format("/Inventarios/EntradasSalidas.aspx?CveMovimiento={0}", e.Row.DBCampo("CveMovimientoAlmacen"))
|
||||||
If CveConceptoContable.Contiene(30, 204, 66, 92, 202, 10, 21, 48, 56, 338, 339, 340, 345, 346, 347) Then e.Row.FCHyperLink("HlReferencia").NavigateUrl = String.Format("/Bancos/IE.aspx?CveIE={0}", e.Row.DBCampo("CveIE"))
|
If CveConceptoContable.Contiene(30, 204, 66, 92, 202, 10, 21, 48, 56, 338, 339, 340, 345, 346, 347) Then e.Row.FCHyperLink("HlReferencia").NavigateUrl = String.Format("/Bancos/IE.aspx?CveIE={0}", e.Row.DBCampo("CveIE"))
|
||||||
|
|
||||||
If e.Row.DBCampo("Modificado") = "True" Then
|
|
||||||
e.Row.FCCheckBox("chkModificado").Checked = True
|
|
||||||
End If
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
If e.Row.RowType = DataControlRowType.Header Then
|
If e.Row.RowType = DataControlRowType.Header Then
|
||||||
@@ -1188,10 +1185,10 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
Exit For
|
Exit For
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
Dim tTipoMovto As Boolean = If(row.DataKey("TipoMovto") = "True", True, False)
|
||||||
If Not ObjContabilidad.AddPrePolizasDetalle(CvePrePoliza, If(row.DataKey("TipoMovto") = "True", True, False),
|
If Not ObjContabilidad.AddPrePolizasDetalle(CvePrePoliza, tTipoMovto,
|
||||||
row.DataKey("Cargo").ToDecimal,
|
If(Not tTipoMovto, row.DataKey("Cargo").ToDecimal, row.DataKey("Abono").ToDecimal),
|
||||||
row.DataKey("Abono").ToDecimal,
|
If(Not tTipoMovto, row.DataKey("Cargo").ToDecimal, row.DataKey("Abono").ToDecimal),
|
||||||
row.DataKey("CveConceptoContable").ToEntero, row.DataKey("Referencia").ToString, row.FCLiteral("TxtConcepto").Text,
|
row.DataKey("CveConceptoContable").ToEntero, row.DataKey("Referencia").ToString, row.FCLiteral("TxtConcepto").Text,
|
||||||
CveSubProyecto:=row.DataKey("CveSubProyecto").ToEntero,
|
CveSubProyecto:=row.DataKey("CveSubProyecto").ToEntero,
|
||||||
CveTipoGasto:=If(DdlTipoGasto.Visible, row.DataKey("CveTipoGasto").ToEntero, row.DataKey("CveTipoGasto").ToEntero),
|
CveTipoGasto:=If(DdlTipoGasto.Visible, row.DataKey("CveTipoGasto").ToEntero, row.DataKey("CveTipoGasto").ToEntero),
|
||||||
@@ -1726,7 +1723,6 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
GvPrePoliza.DataBind()
|
GvPrePoliza.DataBind()
|
||||||
UpPrePoliza.Update()
|
UpPrePoliza.Update()
|
||||||
GvPrePoliza.Visible = True
|
GvPrePoliza.Visible = True
|
||||||
If IndiceGrid >= 0 Then GvPrePoliza.Rows(IndiceGrid).FCCheckBox("chkModificado").Checked = True
|
|
||||||
|
|
||||||
TxtTotalCargos.Text = DtMovimientos.SUMD("Cargo").ToString.FormatoNumero
|
TxtTotalCargos.Text = DtMovimientos.SUMD("Cargo").ToString.FormatoNumero
|
||||||
TxtTotalAbonos.Text = DtMovimientos.SUMD("Abono").ToString.FormatoNumero
|
TxtTotalAbonos.Text = DtMovimientos.SUMD("Abono").ToString.FormatoNumero
|
||||||
@@ -1993,7 +1989,6 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
Protected Sub DdlTipoGasto_SelectedIndexChanged(sender As Object, e As EventArgs)
|
Protected Sub DdlTipoGasto_SelectedIndexChanged(sender As Object, e As EventArgs)
|
||||||
If UpPrePoliza.Visible Then
|
If UpPrePoliza.Visible Then
|
||||||
|
|
||||||
|
|
||||||
For Each dRow As DataRow In DtMovimientos.Rows
|
For Each dRow As DataRow In DtMovimientos.Rows
|
||||||
dRow("CveTipoGasto") = DdlTipoGasto.SelectedValue
|
dRow("CveTipoGasto") = DdlTipoGasto.SelectedValue
|
||||||
dRow("TipoGasto") = DdlTipoGasto.SelectedItem.Text
|
dRow("TipoGasto") = DdlTipoGasto.SelectedItem.Text
|
||||||
@@ -2003,12 +1998,6 @@ Partial Class ContabilidadC_RegPrePolizaS
|
|||||||
DtMovimientos.AcceptChanges()
|
DtMovimientos.AcceptChanges()
|
||||||
GvPrePoliza.DataSource = DtMovimientos
|
GvPrePoliza.DataSource = DtMovimientos
|
||||||
GvPrePoliza.DataBind()
|
GvPrePoliza.DataBind()
|
||||||
|
|
||||||
For Each Gvr As GridViewRow In GvPrePoliza.Rows
|
|
||||||
'Gvr.FCDropDownList("DdlTipoGasto").SelectedValueExist(DdlTipoGasto.SelectedValue)
|
|
||||||
Gvr.FCCheckBox("chkModificado").Checked = True
|
|
||||||
Next
|
|
||||||
|
|
||||||
UpPrePoliza.Update()
|
UpPrePoliza.Update()
|
||||||
End If
|
End If
|
||||||
If divMovtos.Visible Then
|
If divMovtos.Visible Then
|
||||||
|
|||||||
Reference in New Issue
Block a user