git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C61
This commit is contained in:
parent
cbb397e139
commit
40f87624b0
14 changed files with 339 additions and 16878 deletions
|
|
@ -7604,8 +7604,6 @@
|
|||
<None Include="Scripts\jquery.validate-vsdoc.js" />
|
||||
<Content Include="Scripts\jquery-ui-1.12.1.js" />
|
||||
<Content Include="Scripts\jquery-ui-1.12.1.min.js" />
|
||||
<Content Include="Scripts\jquery.easyui.min.js" />
|
||||
<Content Include="Scripts\jquery.easyui.mobile.js" />
|
||||
<Content Include="Scripts\jQuery.FileUpload\cors\jquery.postmessage-transport.js" />
|
||||
<Content Include="Scripts\jQuery.FileUpload\cors\jquery.xdr-transport.js" />
|
||||
<Content Include="Scripts\jQuery.FileUpload\jquery.fileupload-angular.js" />
|
||||
|
|
@ -7680,6 +7678,7 @@
|
|||
<Content Include="Sinort-Scripts\EmisorPN.js" />
|
||||
<Content Include="Sinort-Scripts\Global.js" />
|
||||
<Content Include="Sinort-Scripts\Mantenimientos.js" />
|
||||
<Content Include="Sinort-Scripts\PropuestaNormativa\DetallePropuestaNormativa.js" />
|
||||
<Content Include="Sinort-Scripts\PropuestaNormativa\PropuestaNormativa.js" />
|
||||
<Content Include="Sinort-Scripts\ProyectoNormativo.js" />
|
||||
<Content Include="Sinort-Scripts\Rol.js" />
|
||||
|
|
|
|||
|
|
@ -8,13 +8,8 @@ namespace AYA.SlnSinort
|
|||
// Para obtener más información sobre Bundles, visite http://go.microsoft.com/fwlink/?LinkId=301862
|
||||
public static void RegisterBundles(BundleCollection bundles)
|
||||
{
|
||||
bundles.Add(new ScriptBundle("~/bundles/jquery")
|
||||
.Include("~/Scripts/jquery-3.3.1.js")
|
||||
);
|
||||
|
||||
bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include(
|
||||
"~/Scripts/jquery-ui-1.12.1.js"));
|
||||
|
||||
bundles.Add(new ScriptBundle("~/bundles/jquery").Include("~/Scripts/jquery-{version}.js"));
|
||||
bundles.Add(new ScriptBundle("~/bundles/jqueryui").Include("~/Scripts/jquery-ui-{version}.js"));
|
||||
bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
|
||||
"~/Scripts/jquery.unobtrusive*",
|
||||
"~/Scripts/jquery.validate*"));
|
||||
|
|
@ -24,10 +19,13 @@ namespace AYA.SlnSinort
|
|||
bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
|
||||
"~/Scripts/modernizr-*"));
|
||||
|
||||
bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include("~/Scripts/bootstrap.min.js"));
|
||||
bundles.Add(new ScriptBundle("~/bundles/moment").Include("~/Scripts/moment.js").Include("~/Scripts/moment-with-langs.js"));
|
||||
bundles.Add(new ScriptBundle("~/bundles/toastr").Include("~/Scripts/toastr.js"));
|
||||
bundles.Add(new ScriptBundle("~/bundles/jquery-dataTables").Include("~/Scripts/DataTables-1.10.0/jquery.dataTables.js"));
|
||||
|
||||
bundles.Add(new StyleBundle("~/Content/css")
|
||||
.Include("~/Content/site.css"));
|
||||
.Include("~/Content/Site.css"));
|
||||
|
||||
bundles.Add(new StyleBundle("~/Content/themes/base/css").Include(
|
||||
"~/Content/themes/base/jquery.ui.core.css",
|
||||
|
|
@ -44,14 +42,12 @@ namespace AYA.SlnSinort
|
|||
"~/Content/themes/base/jquery.ui.theme.css"));
|
||||
|
||||
bundles.Add(new StyleBundle("~/Content/sinort-css")
|
||||
.Include("~/Content/themes/base/jquery.ui.css")
|
||||
.Include("~/Content/toastr.css")
|
||||
.Include("~/Content/DataTables-1.10.0/css/jquery.dataTables.css"));
|
||||
|
||||
bundles.Add(new ScriptBundle("~/Script-Global")
|
||||
.Include("~/Sinort-Scripts/Global.js")
|
||||
.Include("~/Scripts/toastr.min.js")
|
||||
.Include("~/Scripts/bootstrap.min.js")
|
||||
.Include("~/Scripts/jquery.validate.min.js"));
|
||||
.Include("~/Sinort-Scripts/Global.js"));
|
||||
|
||||
|
||||
//AGREGAR SIGUIENTES SCRIPTS
|
||||
|
|
|
|||
|
|
@ -14,5 +14,10 @@ namespace AYA.SlnSinort.Controllers.PropuestaNormativa
|
|||
return View();
|
||||
}
|
||||
|
||||
public ActionResult DetallePropuesta()
|
||||
{
|
||||
InitControllers();
|
||||
return View();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
16546
AYA.SlnSynor/AYA.SlnSynor/Scripts/jquery.easyui.min.js
vendored
16546
AYA.SlnSynor/AYA.SlnSynor/Scripts/jquery.easyui.min.js
vendored
File diff suppressed because it is too large
Load diff
|
|
@ -1,141 +0,0 @@
|
|||
/**
|
||||
* EasyUI for jQuery 1.5.5.2
|
||||
*
|
||||
* Copyright (c) 2009-2018 www.jeasyui.com. All rights reserved.
|
||||
*
|
||||
* Licensed under the freeware license: http://www.jeasyui.com/license_freeware.php
|
||||
* To use it on other terms please contact us: info@jeasyui.com
|
||||
*
|
||||
*/
|
||||
(function($){
|
||||
$.fn.navpanel=function(_1,_2){
|
||||
if(typeof _1=="string"){
|
||||
var _3=$.fn.navpanel.methods[_1];
|
||||
return _3?_3(this,_2):this.panel(_1,_2);
|
||||
}else{
|
||||
_1=_1||{};
|
||||
return this.each(function(){
|
||||
var _4=$.data(this,"navpanel");
|
||||
if(_4){
|
||||
$.extend(_4.options,_1);
|
||||
}else{
|
||||
_4=$.data(this,"navpanel",{options:$.extend({},$.fn.navpanel.defaults,$.fn.navpanel.parseOptions(this),_1)});
|
||||
}
|
||||
$(this).panel(_4.options);
|
||||
});
|
||||
}
|
||||
};
|
||||
$.fn.navpanel.methods={options:function(jq){
|
||||
return $.data(jq[0],"navpanel").options;
|
||||
}};
|
||||
$.fn.navpanel.parseOptions=function(_5){
|
||||
return $.extend({},$.fn.panel.parseOptions(_5),$.parser.parseOptions(_5,[]));
|
||||
};
|
||||
$.fn.navpanel.defaults=$.extend({},$.fn.panel.defaults,{fit:true,border:false,cls:"navpanel"});
|
||||
$.parser.plugins.push("navpanel");
|
||||
})(jQuery);
|
||||
(function($){
|
||||
$(function(){
|
||||
$.mobile.init();
|
||||
});
|
||||
$.mobile={defaults:{animation:"slide",direction:"left",reverseDirections:{up:"down",down:"up",left:"right",right:"left"}},panels:[],init:function(_6){
|
||||
$.mobile.panels=[];
|
||||
var _7=$(_6||"body").children(".navpanel:visible");
|
||||
if(_7.length){
|
||||
_7.not(":first").children(".panel-body").navpanel("close");
|
||||
var p=_7.eq(0).children(".panel-body");
|
||||
$.mobile.panels.push({panel:p,animation:$.mobile.defaults.animation,direction:$.mobile.defaults.direction});
|
||||
}
|
||||
$(document).unbind(".mobile").bind("click.mobile",function(e){
|
||||
var a=$(e.target).closest("a");
|
||||
if(a.length){
|
||||
var _8=$.parser.parseOptions(a[0],["animation","direction",{back:"boolean"}]);
|
||||
if(_8.back){
|
||||
$.mobile.back();
|
||||
e.preventDefault();
|
||||
}else{
|
||||
var _9=$.trim(a.attr("href"));
|
||||
if(/^#/.test(_9)){
|
||||
var to=$(_9);
|
||||
if(to.length&&to.hasClass("panel-body")){
|
||||
$.mobile.go(to,_8.animation,_8.direction);
|
||||
e.preventDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
$(window).unbind(".mobile").bind("hashchange.mobile",function(){
|
||||
var _a=$.mobile.panels.length;
|
||||
if(_a>1){
|
||||
var _b=location.hash;
|
||||
var p=$.mobile.panels[_a-2];
|
||||
if(!_b||_b=="#&"+p.panel.attr("id")){
|
||||
$.mobile._back();
|
||||
}
|
||||
}
|
||||
});
|
||||
},nav:function(_c,to,_d,_e){
|
||||
if(window.WebKitAnimationEvent){
|
||||
_d=_d!=undefined?_d:$.mobile.defaults.animation;
|
||||
_e=_e!=undefined?_e:$.mobile.defaults.direction;
|
||||
var _f="m-"+_d+(_e?"-"+_e:"");
|
||||
var p1=$(_c).panel("open").panel("resize").panel("panel");
|
||||
var p2=$(to).panel("open").panel("resize").panel("panel");
|
||||
p1.add(p2).bind("webkitAnimationEnd",function(){
|
||||
$(this).unbind("webkitAnimationEnd");
|
||||
var p=$(this).children(".panel-body");
|
||||
if($(this).hasClass("m-in")){
|
||||
p.panel("open").panel("resize");
|
||||
}else{
|
||||
p.panel("close");
|
||||
}
|
||||
$(this).removeClass(_f+" m-in m-out");
|
||||
});
|
||||
p2.addClass(_f+" m-in");
|
||||
p1.addClass(_f+" m-out");
|
||||
}else{
|
||||
$(to).panel("open").panel("resize");
|
||||
$(_c).panel("close");
|
||||
}
|
||||
},_go:function(_10,_11,_12){
|
||||
_11=_11!=undefined?_11:$.mobile.defaults.animation;
|
||||
_12=_12!=undefined?_12:$.mobile.defaults.direction;
|
||||
var _13=$.mobile.panels[$.mobile.panels.length-1].panel;
|
||||
var to=$(_10);
|
||||
if(_13[0]!=to[0]){
|
||||
$.mobile.nav(_13,to,_11,_12);
|
||||
$.mobile.panels.push({panel:to,animation:_11,direction:_12});
|
||||
}
|
||||
},_back:function(){
|
||||
if($.mobile.panels.length<2){
|
||||
return;
|
||||
}
|
||||
var p1=$.mobile.panels.pop();
|
||||
var p2=$.mobile.panels[$.mobile.panels.length-1];
|
||||
var _14=p1.animation;
|
||||
var _15=$.mobile.defaults.reverseDirections[p1.direction]||"";
|
||||
$.mobile.nav(p1.panel,p2.panel,_14,_15);
|
||||
},go:function(_16,_17,_18){
|
||||
_17=_17!=undefined?_17:$.mobile.defaults.animation;
|
||||
_18=_18!=undefined?_18:$.mobile.defaults.direction;
|
||||
location.hash="#&"+$(_16).attr("id");
|
||||
$.mobile._go(_16,_17,_18);
|
||||
},back:function(){
|
||||
history.go(-1);
|
||||
}};
|
||||
$.map(["validatebox","textbox","passwordbox","filebox","searchbox","combo","combobox","combogrid","combotree","combotreegrid","datebox","datetimebox","numberbox","spinner","numberspinner","timespinner","datetimespinner"],function(_19){
|
||||
if($.fn[_19]){
|
||||
$.extend($.fn[_19].defaults,{iconWidth:28,tipPosition:"bottom"});
|
||||
}
|
||||
});
|
||||
$.map(["spinner","numberspinner","timespinner","datetimespinner"],function(_1a){
|
||||
if($.fn[_1a]){
|
||||
$.extend($.fn[_1a].defaults,{iconWidth:56,spinAlign:"horizontal"});
|
||||
}
|
||||
});
|
||||
if($.fn.menu){
|
||||
$.extend($.fn.menu.defaults,{itemHeight:30,noline:true});
|
||||
}
|
||||
})(jQuery);
|
||||
|
||||
|
|
@ -28,14 +28,14 @@ var isMobile = {
|
|||
|
||||
//#region MOMENT CONFIGURATION (DATE AND TIME CONFIGURATION)
|
||||
|
||||
//moment.lang('es-CR', {
|
||||
// months: [
|
||||
// "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio",
|
||||
// "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"
|
||||
// ]
|
||||
//});
|
||||
moment.lang('es-CR', {
|
||||
months: [
|
||||
"Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio",
|
||||
"Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"
|
||||
]
|
||||
});
|
||||
|
||||
//moment.lang('es-CR');
|
||||
moment.lang('es-CR');
|
||||
|
||||
//#endregion
|
||||
|
||||
|
|
@ -79,6 +79,68 @@ this.DisabledToRequired = function (controlId) {
|
|||
|
||||
};
|
||||
|
||||
this.ObtenerParametros = function (url) {
|
||||
|
||||
// get query string from url (optional) or window
|
||||
var queryString = url ? url.split('?')[1] : window.location.search.slice(1);
|
||||
|
||||
// we'll store the parameters here
|
||||
var obj = {};
|
||||
|
||||
// if query string exists
|
||||
if (queryString) {
|
||||
|
||||
// stuff after # is not part of query string, so get rid of it
|
||||
queryString = queryString.split('#')[0];
|
||||
|
||||
// split our query string into its component parts
|
||||
var arr = queryString.split('&');
|
||||
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
// separate the keys and the values
|
||||
var a = arr[i].split('=');
|
||||
|
||||
// in case params look like: list[]=thing1&list[]=thing2
|
||||
var paramNum = undefined;
|
||||
var paramName = a[0].replace(/\[\d*\]/, function (v) {
|
||||
paramNum = v.slice(1, -1);
|
||||
return '';
|
||||
});
|
||||
|
||||
// set parameter value (use 'true' if empty)
|
||||
var paramValue = typeof (a[1]) === 'undefined' ? true : a[1];
|
||||
|
||||
// (optional) keep case consistent
|
||||
paramName = paramName.toLowerCase();
|
||||
paramValue = paramValue.toLowerCase();
|
||||
|
||||
// if parameter name already exists
|
||||
if (obj[paramName]) {
|
||||
// convert value to array (if still string)
|
||||
if (typeof obj[paramName] === 'string') {
|
||||
obj[paramName] = [obj[paramName]];
|
||||
}
|
||||
// if no array index number specified...
|
||||
if (typeof paramNum === 'undefined') {
|
||||
// put the value on the end of the array
|
||||
obj[paramName].push(paramValue);
|
||||
}
|
||||
// if array index number specified...
|
||||
else {
|
||||
// put the value at that index number
|
||||
obj[paramName][paramNum] = paramValue;
|
||||
}
|
||||
}
|
||||
// if param name doesn't exist yet, set it
|
||||
else {
|
||||
obj[paramName] = paramValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return obj;
|
||||
}
|
||||
|
||||
this.RequiredToDisabled = function (controlId) {
|
||||
|
||||
/// <summary>Put a control with Disabled atribute and remove Required atribute.</summary>
|
||||
|
|
@ -516,14 +578,14 @@ jQuery(document).ready(function () {
|
|||
|
||||
if (navigator.appName.indexOf("Internet Explorer") == -1) { //yeah, he's using IE
|
||||
|
||||
//if (window.matchMedia("(orientation: portrait)").matches) {
|
||||
// $('#modalMensajeMobile').modal('show');
|
||||
//}
|
||||
if (window.matchMedia("(orientation: portrait)").matches) {
|
||||
$('#modalMensajeMobile').modal('show');
|
||||
}
|
||||
|
||||
//if (window.matchMedia("(orientation: landscape)").matches) {
|
||||
// // you're in LANDSCAPE mode
|
||||
// $('#modalMensajeMobile').modal('hide');
|
||||
//}
|
||||
if (window.matchMedia("(orientation: landscape)").matches) {
|
||||
// you're in LANDSCAPE mode
|
||||
$('#modalMensajeMobile').modal('hide');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
var IDPropuesta;
|
||||
|
||||
jQuery(document).ready(function () {
|
||||
|
||||
IDPropuesta = ObtenerParametros().propuesta;
|
||||
|
||||
if (IsNullOrEmpty(IDPropuesta))
|
||||
alert("No ha seleccionado una propuesta");
|
||||
|
||||
|
||||
$("#tabs").tabs();
|
||||
|
||||
});
|
||||
|
|
@ -1,135 +1,146 @@
|
|||
//$("#formPropuestaNormativa").EnableValidationToolTip();
|
||||
// Cargando Catalogo Nacionalidad
|
||||
|
||||
var tableResultadoCatalogo = $('#tableResultadoCatalogo').DataTable();
|
||||
|
||||
|
||||
//jQuery(document).ready(function () {
|
||||
this.TableNacionalidad_OnLoad = function () {
|
||||
|
||||
var uri = 'api/SolicitudAPI/ObtenerNacionalidad/';
|
||||
|
||||
// getDataModel();
|
||||
var UI = new Ultimus.UI();
|
||||
|
||||
$.getJSON(server + uri).done(function (data) {
|
||||
|
||||
//});
|
||||
if (data != null) {
|
||||
|
||||
for (var i = 0; i <= data.length - 1; ++i) {
|
||||
|
||||
var Seleccionar = $("#ucBtnSeleccionar").html();
|
||||
Seleccionar = Seleccionar.replace("[$id]", data[i].na_codigo);
|
||||
Seleccionar = Seleccionar.replace("[$description]", data[i].na_descripcion);
|
||||
Seleccionar = Seleccionar.replace("[$controlID]", "#hiddenCodNacionalidad");
|
||||
Seleccionar = Seleccionar.replace("[$controlDescription]", "#txtNacionalidad");
|
||||
Seleccionar = Seleccionar.replace("[$modal]", "#modalAgregarDescripcion");
|
||||
Seleccionar = Seleccionar.replace("[$form]", "#formConsulta");
|
||||
|
||||
tableResultadoCatalogo.row.add([Seleccionar, data[i].na_codigo, data[i].na_descripcion]).draw();
|
||||
}
|
||||
|
||||
//this.CargarDataCatalogo = function (Direccion, filtro, model) {
|
||||
$("#formAgregarDescripcion").find('.dataTables_filter input').val('');
|
||||
tableResultadoCatalogo.search('').draw();
|
||||
|
||||
// $("#txtDescripcion").val(filtro);
|
||||
$('#modalAgregarDescripcion').modal('show');
|
||||
|
||||
// var uri = IsNullOrEmpty(Direccion) ? $("#btn" + SelectedCatalog).attr("Direccion_API") : $.trim(Direccion);
|
||||
UI.ENDREQUEST();
|
||||
}
|
||||
else {
|
||||
toastr.error("Ha ocurrido un error inesperado. Vuelva a intentarlo mas tarde", Message_Error);
|
||||
}
|
||||
|
||||
// var UseHttpPost = $("#btn" + SelectedCatalog).attr("UseHttpPost");
|
||||
}).fail(function (jqxhr, textStatus, error) {
|
||||
|
||||
// var WebApplication_Name = $("#btn" + SelectedCatalog).attr("WebApplication");
|
||||
toastr.error("Ha ocurrido un error inesperado. Vuelva a intentarlo mas tarde", Message_Error);
|
||||
|
||||
// if (IsNullOrEmpty(uri)) {
|
||||
// toastr.warning("Debe definir la dirección del WebAPI para el catálogo.", Message_Warning);
|
||||
// return;
|
||||
// }
|
||||
}).then(function (value) {
|
||||
|
||||
// var Url = IsNullOrEmpty(WebApplication_Name) ? server + uri : window.location.protocol + "//" + window.location.hostname + "/" + WebApplication_Name + "/" + uri;
|
||||
UI.ENDREQUEST();
|
||||
});
|
||||
}
|
||||
|
||||
// var parametros = arguments;
|
||||
$("#tableResultadoCatalogo tbody td").live("click", "td", function (event) {
|
||||
|
||||
// $("#btnBuscar").unbind("click");
|
||||
// $("#btnBuscar").click(function () {
|
||||
// parametros[1] = $("#txtDescripcion").val();
|
||||
// CargarDataCatalogo.apply(this, parametros);
|
||||
// });
|
||||
var data = $('#tableResultadoCatalogo').DataTable().row($(this).parents('tr')).data();
|
||||
|
||||
// if (UseHttpPost != "1") {
|
||||
// Url = Url + "?filtro=" + (filtro == null ? "" : encodeURIComponent(filtro));
|
||||
if (SelectedCatalog == "PROVINCIA") {
|
||||
if ($('#hiddenCodProvincia').val() == "10" || $('#hiddenCodProvincia').val() == "11" || $('#hiddenCodProvincia').val() == "12") {
|
||||
$('#txtDistrito').noRequired();
|
||||
$('#btnBuscarDistrito').disable();
|
||||
$('#btnBuscarCorregimiento').disable();
|
||||
}
|
||||
}
|
||||
|
||||
// //busca n extras parametros para colocar en el request del get
|
||||
// var countId = 1;
|
||||
// for (var i = 2; i < arguments.length; i++) {
|
||||
// var id = arguments[i];
|
||||
// if (countId == 1)
|
||||
// Url += (id == null ? "" : "&id=" + encodeURIComponent(id));
|
||||
// else
|
||||
// Url += (id == null ? "" : "&id" + countId + "=" + encodeURIComponent(id));
|
||||
// countId++;
|
||||
// }
|
||||
$("#formDatosResidenciales").valid();
|
||||
$("#formDatosGenerales").valid();
|
||||
|
||||
// AjaxGetData(Url, true, false, CargarTablaCatalogo);
|
||||
// }
|
||||
// else {
|
||||
$('#modalAgregarDescripcion').modal('hide');
|
||||
});
|
||||
|
||||
// model = IsNullOrEmpty(model) ? {} : model;
|
||||
// model.filtro = filtro;
|
||||
/*
|
||||
|
||||
// AjaxPostData(Url, model, true, false, CargarTablaCatalogo);
|
||||
// }
|
||||
//}
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label ControlsForms">Nacionalidad</label>
|
||||
<div class="btn-group col-sm-6">
|
||||
<input type="hidden" id="hiddenCodNacionalidad" />
|
||||
<input type="text" id="txtNacionalidad" name="txtNacionalidad" class="form-control imput-xs"
|
||||
readonly data-role="btnBuscarNacionalidad" />
|
||||
</div>
|
||||
<div class="btn-group">
|
||||
<button type="button" id="btnBuscarNacionalidad" class="btn btn-info btn-xs">
|
||||
<i class="fa fa-search"></i> Buscar
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
//this.CargarTablaCatalogo = function (data) {
|
||||
|
||||
// if (data != null) {
|
||||
|
||||
// lista = data;
|
||||
|
||||
// var Seleccionar = $("#ucBtnSeleccionar").html();
|
||||
|
||||
// var columnDefinition = [
|
||||
// { "data": null, "width": "10%", className: "center", defaultContent: Seleccionar },
|
||||
// { "data": "codigo", "width": "5%" },
|
||||
// { "data": "descripcion", "width": "85%" }
|
||||
// ];
|
||||
|
||||
// $('#tableCatalogo').TableInit(0, false, true, false, false, columnDefinition, lista);
|
||||
|
||||
// if ($.fn.DataTable.isDataTable('#tableCatalogo')) {
|
||||
|
||||
// LoadMessage();
|
||||
|
||||
// $('#tableCatalogo').DataTable().search('').draw();
|
||||
|
||||
// }
|
||||
|
||||
// }
|
||||
|
||||
// $('#divmodalCatalogo').modal('show');
|
||||
|
||||
// ENDREQUEST();
|
||||
//}
|
||||
|
||||
//$('#tableCatalogo').on('click', 'button', function () {
|
||||
|
||||
// var data = $('#tableCatalogo').DataTable().row($(this).parents('tr')).data();
|
||||
|
||||
// //verifica que no es multiple
|
||||
// if ($("#btn" + SelectedCatalog).attr("CatalogoMultiple") != 1) {
|
||||
|
||||
// $("#hidden" + SelectedCatalog).val(data.codigo);
|
||||
// $("#txt" + SelectedCatalog).val(data.descripcion);
|
||||
|
||||
// }
|
||||
// else {
|
||||
|
||||
// var existe = $.grep($("#txt" + SelectedCatalog + " option"), function (item, id) { return $(item).val() == data.codigo });
|
||||
// var MaxItems = $('#btn' + SelectedCatalog).attr("MaxItems");
|
||||
|
||||
// if (existe.length > 0)
|
||||
// toastr.warning("Esta opción ya fue agregada.", Message_Warning);
|
||||
// else if (MaxItems > 0 && MaxItems < ($("#txt" + SelectedCatalog + " option").length + 1))
|
||||
// toastr.warning("Solo se permite ingresar un máximo de <strong>" + MaxItems + "</strong> opciones.", Message_Warning);
|
||||
// else {
|
||||
// $("#txt" + SelectedCatalog)
|
||||
// .append($("<option></option>")
|
||||
// .attr("value", data.codigo)
|
||||
// .text(data.descripcion));
|
||||
|
||||
// $("#txt" + SelectedCatalog).val(-1);
|
||||
// }
|
||||
// }
|
||||
|
||||
// $("#txt" + SelectedCatalog).trigger("change");
|
||||
// $('#txt' + SelectedCatalog).closest('form').validateElement("#txt" + SelectedCatalog);
|
||||
|
||||
// $('#divmodalCatalogo').modal('hide');
|
||||
|
||||
// if (typeof DataCatalogo !== 'undefined' && $.isFunction(DataCatalogo)) {
|
||||
// DataCatalogo(SelectedCatalog, data);
|
||||
// }
|
||||
|
||||
//});
|
||||
<div id="ucBtnSeleccionar" style="display:none;">
|
||||
<button type="button" id="btnSeleccionar" class="btn btn-default btn-xs"
|
||||
onclick="javascript: SeleccionarOpcion('[$id]', '[$description]', '[$controlID]', '[$controlDescription]', '[$modal]', '[$form]'); ">
|
||||
<i class="fa fa-check"></i> ...
|
||||
</button>
|
||||
</div>
|
||||
<div id="ucBtnSeleccionarCatalogo" style="display:none;">
|
||||
<button type="button" id="btnSeleccionarCatalogo" class="btn btn-default btn-xs">
|
||||
<i id="ibtnSeleccionarCatalogo" class="fa fa-check"></i>
|
||||
</button>
|
||||
</div>
|
||||
@section Modals{
|
||||
<!-- Modal -->
|
||||
<div class="modal fade" id="modalAgregarDescripcion" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" style="display: none;">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button id="btnModalClose" type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h4 class="modal-title" id="CatalogosDatosGenerales">Catalogo</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<form id="formAgregarDescripcion" class="form-horizontal" role="form">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<table id="tableResultadoCatalogo" class="display stripe hover row-border">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Código</th>
|
||||
<th>Descripción</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal fade" id="modalCatalogo" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" style="display: none;">
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button id="btnModalClose" type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h4 class="modal-title">Catalogo</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<table id="tableCatalogo" class="display stripe hover row-border">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>Código</th>
|
||||
<th>Descripción</th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
*/
|
||||
|
|
@ -1,7 +1,91 @@
|
|||
|
||||
@{
|
||||
@{
|
||||
ViewBag.Title = "DetallePropuesta";
|
||||
Layout = "~/Views/Shared/_Layout.cshtml";
|
||||
}
|
||||
|
||||
<h2>DetallePropuesta</h2>
|
||||
<form id="formCatalogo" class="form-horizontal" role="form">
|
||||
<div class="panel-body"> <h3> <i class="fa fa-briefcase"></i> Detalle Propuesta </h3> </div>
|
||||
<div class="panel panel-success">
|
||||
|
||||
<div class="panel-body">
|
||||
<div id="tabs">
|
||||
<ul>
|
||||
<li><a href="#tabs-1">Información General</a></li>
|
||||
<li><a href="#tabs-2">Participantes</a></li>
|
||||
<li><a href="#tabs-3">Participantes Actuales</a></li>
|
||||
</ul>
|
||||
<div id="tabs-1">
|
||||
@* Informacion General *@
|
||||
<div class="panel-body">
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<label class="col-sm-4 control-label ControlsForms">Descripción</label>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<div class="panel panel-success">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title">
|
||||
<i class="fa fa-bars"></i> <label id="lbTituloAccion">Ingresar Nueva Aplicación</label>
|
||||
</h4>
|
||||
</div>
|
||||
<div class="panel-body">
|
||||
|
||||
@*Descripción*@
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-sm-4 control-label ControlsForms">Descripción</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="text" id="txtDescripcion" name="txtDescripcion" class="form-control imput-xs" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<label class="col-md-2"></label>
|
||||
<div class="col-md-4 ">
|
||||
|
||||
<button type="button" class="btn btn-default btn-sm pull-right" id="btnLimpiar">
|
||||
<span class="fa fa-eraser" aria-hidden="true"></span> Limpiar
|
||||
</button>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="col-md-4 ">
|
||||
<button type="button" class="btn btn-default btn-sm pull-right" id="btnInsertar">
|
||||
<span class="fa fa-upload" aria-hidden="true"></span> Insertar
|
||||
</button>
|
||||
<button type="button" class="btn btn-default btn-sm pull-right" id="btnGuardar">
|
||||
<span class="fa fa-floppy-o" aria-hidden="true"></span> Guardar
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div id="tabs-2">
|
||||
<p> B </p>
|
||||
</div>
|
||||
<div id="tabs-3">
|
||||
<p> C </p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@Scripts.Render("~/Sinort-Scripts/PropuestaNormativa/DetallePropuestaNormativa.js")
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -20,25 +20,31 @@
|
|||
<script src="~/bower_components/jquery/dist/jquery.min.js"></script>
|
||||
|
||||
<script src="~/dist/js/adminlte.min.js"></script>
|
||||
|
||||
<link rel="stylesheet" href="~/Content/themes/base/jquery-ui.css">
|
||||
|
||||
<!-- Google Font -->
|
||||
<link rel="stylesheet"
|
||||
href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
|
||||
|
||||
@*@Styles.Render("~/Content/dashboard")*@
|
||||
@Styles.Render("~/Content/themes/base/css")
|
||||
@Styles.Render("~/Content/sinort-css")
|
||||
|
||||
|
||||
@Scripts.Render("~/bundles/modernizr")
|
||||
@Scripts.Render("~/bundles/jquery")
|
||||
|
||||
@Scripts.Render("~/bundles/jqueryui")
|
||||
@Scripts.Render("~/bundles/jqueryval")
|
||||
@Scripts.Render("~/bundles/bootstrap")
|
||||
@Scripts.Render("~/bundles/moment")
|
||||
@Scripts.Render("~/bundles/toastr")
|
||||
@Scripts.Render("~/bundles/jquery-dataTables")
|
||||
@Styles.Render("~/Content/sinort-css")
|
||||
|
||||
@* Seccion futuros scripts *@
|
||||
<style>
|
||||
input[type=checkbox]
|
||||
{
|
||||
-webkit-appearance:checkbox;
|
||||
}
|
||||
input[type=checkbox] {
|
||||
-webkit-appearance: checkbox;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
|
|
@ -392,4 +398,4 @@
|
|||
$(document).ready(function () {
|
||||
ObtenerPantallas();
|
||||
});
|
||||
</script>*@
|
||||
</script>*@
|
||||
|
|
@ -87,7 +87,6 @@
|
|||
<Compile Include="Sinort\RolesPantallas.cs" />
|
||||
<Compile Include="Sinort\RolesUsuario.cs" />
|
||||
<Compile Include="Sinort\SinortContex.cs" />
|
||||
<Compile Include="Sinort\sysdiagrams.cs" />
|
||||
<Compile Include="Sinort\TipoAplicacion.cs" />
|
||||
<Compile Include="Sinort\TipoDocumento.cs" />
|
||||
<Compile Include="Sinort\TipoEmisor.cs" />
|
||||
|
|
|
|||
|
|
@ -8,8 +8,6 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
|
||||
public partial class SinortContex : Contex
|
||||
{
|
||||
|
||||
|
||||
public virtual DbSet<Aplicacion> Aplicacion { get; set; }
|
||||
public virtual DbSet<Categoria> Categoria { get; set; }
|
||||
public virtual DbSet<Emisor> Emisor { get; set; }
|
||||
|
|
@ -27,7 +25,6 @@ namespace AYA.SlnSinortModel.Sinort
|
|||
public virtual DbSet<TipoForo> TipoForo { get; set; }
|
||||
public virtual DbSet<TipoMatriz> TipoMatriz { get; set; }
|
||||
public virtual DbSet<Usuario> Usuario { get; set; }
|
||||
public virtual DbSet<sysdiagrams> sysdiagrams { get; set; }
|
||||
public virtual DbSet<BitacoraDocumentos> BitacoraDocumentos { get; set; }
|
||||
public virtual DbSet<Documentos> Documentos { get; set; }
|
||||
public virtual DbSet<DocumentosAdjuntos> DocumentosAdjuntos { get; set; }
|
||||
|
|
|
|||
|
|
@ -1,24 +0,0 @@
|
|||
namespace AYA.SlnSinortModel.Sinort
|
||||
{
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Data.Entity.Spatial;
|
||||
|
||||
public partial class sysdiagrams
|
||||
{
|
||||
[Required]
|
||||
[StringLength(128)]
|
||||
public string name { get; set; }
|
||||
|
||||
public int principal_id { get; set; }
|
||||
|
||||
[Key]
|
||||
public int diagram_id { get; set; }
|
||||
|
||||
public int? version { get; set; }
|
||||
|
||||
public byte[] definition { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue