Reembolsos yu comprobaciones, PopIEVentas, OI Documentos
This commit is contained in:
@@ -45,6 +45,7 @@ public partial class OI_CatDocumentoCategoria : ClsPaginas
|
||||
protected void BtnAgregarCategoria_Click(object sender, EventArgs e)
|
||||
{
|
||||
BtnAgregarCategoriaDoc.Text = "Agregar";
|
||||
LtlTituloModalTiposD.Text = "Agregar Categoría de Documentos";
|
||||
TxtCategoria.Text = "";
|
||||
ChkEstatus.Checked = true;
|
||||
UpModalTiposD.Update();
|
||||
@@ -54,6 +55,7 @@ public partial class OI_CatDocumentoCategoria : ClsPaginas
|
||||
protected void LnkEditar_Click(object sender, EventArgs e)
|
||||
{
|
||||
BtnAgregarCategoriaDoc.Text = "Actualizar";
|
||||
LtlTituloModalTiposD.Text = "Actualizar Categoría de Documentos";
|
||||
GridViewRow GvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
||||
CveCategoria = GvRow.DataKey("CveCategoria").ToEntero();
|
||||
TxtCategoria.Text = GvRow.DataKey("Categoria");
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
|
||||
<div class="form-group form-md-line-input input-iconright">
|
||||
<asp:TextBox ID="TxtSubCategoria" CssClass="form-control " runat="server" MaxLength="70" CausesValidation="true"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="RfvTxtSubCategoria" runat="server" ControlToValidate="TxtSubCategoria" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Categoría''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTiposD"></asp:RequiredFieldValidator>
|
||||
<asp:RequiredFieldValidator ID="RfvTxtSubCategoria" runat="server" ControlToValidate="TxtSubCategoria" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''SubCategoría''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTiposD"></asp:RequiredFieldValidator>
|
||||
<label for="TxtSubCategoria">Subcategoría:</label>
|
||||
<i></i>
|
||||
</div>
|
||||
@@ -58,6 +58,8 @@
|
||||
<div>
|
||||
<label for="TxtSubCategoria">Categoría:</label><br />
|
||||
<asp:DropDownList ID="DdlCategorias" CssClass="form-control select2me" runat="server" DataTextField="Categoria" Width="100%" DataValueField="CveCategoria"></asp:DropDownList>
|
||||
<asp:RequiredFieldValidator ID="RFVDdlCategorias" runat="server" ControlToValidate="DdlCategorias" InitialValue="-1" CssClass="help-block errorimput" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Categoría''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTiposD"></asp:RequiredFieldValidator>
|
||||
<i></i>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
@@ -49,6 +49,7 @@ public partial class OI_CatDocumentoSubCategoria : ClsPaginas
|
||||
{
|
||||
DdlCategorias.DataSource = ObjOI.DtResultados.FiltraParametros("Estado = 1");
|
||||
DdlCategorias.DataBind();
|
||||
DdlCategorias.Items.Insert(0, new ListItem("Seleccione una","-1"));
|
||||
}
|
||||
ObjOI.Dispose();
|
||||
}
|
||||
@@ -56,6 +57,7 @@ public partial class OI_CatDocumentoSubCategoria : ClsPaginas
|
||||
protected void BtnAgregarSubCategoria_Click(object sender, EventArgs e)
|
||||
{
|
||||
BtnAgregarSubCategoriaDoc.Text = "Agregar";
|
||||
LtlTituloModalTiposD.Text = "Agregar Subcategoría de Documentos";
|
||||
TxtSubCategoria.Text = "";
|
||||
UpModalTiposD.Update();
|
||||
RegistraScript(String.Format("$('#{0}').modal();", "DivAgregarTiposD"));
|
||||
@@ -64,9 +66,14 @@ public partial class OI_CatDocumentoSubCategoria : ClsPaginas
|
||||
protected void LnkEditar_Click(object sender, EventArgs e)
|
||||
{
|
||||
BtnAgregarSubCategoriaDoc.Text = "Actualizar";
|
||||
LtlTituloModalTiposD.Text = "Actualizar Subcategoría de Documentos";
|
||||
|
||||
GridViewRow GvRow = (GridViewRow)(((LinkButton)sender).NamingContainer);
|
||||
CveSubCategoria = GvRow.DataKey("CveSubCategoria").ToEntero();
|
||||
TxtSubCategoria.Text = GvRow.DataKey("SubCategoria");
|
||||
|
||||
DdlCategorias.SelectedValueExist(GvRow.DataKey("CveCategoria"));
|
||||
|
||||
UpModalTiposD.Update();
|
||||
RegistraScript(String.Format("$('#{0}').modal();", "DivAgregarTiposD"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user