Merge branch 'master' of http://192.168.10.111:8383/SIG
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
tr[hide="1"] {
|
tr[hide="1"] {
|
||||||
display: none;
|
display: none;
|
||||||
background-color: rgb(4,71,103);
|
background-color: rgb(4,71,103)
|
||||||
}
|
}
|
||||||
|
|
||||||
.portlet {
|
.portlet {
|
||||||
@@ -180,24 +180,6 @@
|
|||||||
<asp:RequiredFieldValidator ID="RfvTxtLugar" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtLugar" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Lugar''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
<asp:RequiredFieldValidator ID="RfvTxtLugar" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtLugar" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Lugar''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
||||||
<asp:Label runat="server" Text="Lugar:" AssociatedControlID="TxtLugar"></asp:Label>
|
<asp:Label runat="server" Text="Lugar:" AssociatedControlID="TxtLugar"></asp:Label>
|
||||||
</div>
|
</div>
|
||||||
<div class="row" style="width:100%">
|
|
||||||
<div class="col-sm-6" style="width:50%">
|
|
||||||
<div class="input-group form-group form-md-line-input date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block;">
|
|
||||||
<asp:TextBox ID="txtFechaI" runat="server" autocomplete="false" CssClass="form-control ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px "></asp:TextBox>
|
|
||||||
<asp:RequiredFieldValidator ID="RFVtxtFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Inicio''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
|
||||||
<asp:Label AssociatedControlID="txtFechaI" runat="server" Text="Fecha"></asp:Label>
|
|
||||||
<%--<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999 99:99" MaskType="DateTime" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>--%>
|
|
||||||
<ajax:ValidatorCalloutExtender ID="VcoFechaI" runat="server" HighlightCssClass="vco" TargetControlID="RFVtxtFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-sm-6" style="width:50%">
|
|
||||||
<div class="form-group form-md-line-input input-iconright">
|
|
||||||
<asp:TextBox ID="TxtDuracion" runat="server" CssClass="form-control " CausesValidation="true"></asp:TextBox>
|
|
||||||
<asp:RequiredFieldValidator ID="RFVTxtDuracion" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtDuracion" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
|
||||||
<asp:Label runat="server" Text="Duración:" AssociatedControlID="TxtDuracion"></asp:Label>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<asp:Panel ID="pnlmiembrosvista" Visible="false" runat="server">
|
<asp:Panel ID="pnlmiembrosvista" Visible="false" runat="server">
|
||||||
<div class="pnlCorreo" style="margin-bottom: 5px;">
|
<div class="pnlCorreo" style="margin-bottom: 5px;">
|
||||||
<div class="headerCorreo ">
|
<div class="headerCorreo ">
|
||||||
@@ -217,13 +199,26 @@
|
|||||||
</div>
|
</div>
|
||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
|
|
||||||
|
<div class="form-group form-md-line-input input-iconright">
|
||||||
|
<asp:TextBox ID="TxtDuracion" runat="server" CssClass="form-control " CausesValidation="true"></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVTxtDuracion" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtDuracion" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Asunto''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
||||||
|
<asp:Label runat="server" Text="Duración:" AssociatedControlID="TxtDuracion"></asp:Label>
|
||||||
|
</div>
|
||||||
<div class="form-group form-md-line-input">
|
<div class="form-group form-md-line-input">
|
||||||
<asp:TextBox ID="TxtCorreoExterno" runat="server" CssClass="form-control TxtCorreoExterno" CausesValidation="true" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
<asp:TextBox ID="TxtCorreoExterno" runat="server" CssClass="form-control TxtCorreoExterno" CausesValidation="true" TextMode="MultiLine" Rows="2"></asp:TextBox>
|
||||||
<%--<asp:RequiredFieldValidator ID="RfvCorreoExterno" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtCorreoExterno" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Correo Externo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>--%>
|
<%--<asp:RequiredFieldValidator ID="RfvCorreoExterno" runat="server" CssClass="help-block errorimput" ControlToValidate="TxtCorreoExterno" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Correo Externo''</b> es necesario, por favor ingréselo." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>--%>
|
||||||
<asp:Label runat="server" Text="Correos Externos" AssociatedControlID="TxtCorreoExterno"></asp:Label>
|
<asp:Label runat="server" Text="Correos Externos" AssociatedControlID="TxtCorreoExterno"></asp:Label>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
<div class="col-sm-6">
|
||||||
|
<div class="input-group form-group form-md-line-input date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block;">
|
||||||
|
<asp:TextBox ID="txtFechaI" runat="server" autocomplete="false" CssClass="form-control ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px "></asp:TextBox>
|
||||||
|
<asp:RequiredFieldValidator ID="RFVtxtFechaI" runat="server" ControlToValidate="txtFechaI" Display="None" ErrorMessage="<b><span style='text-decoration: underline'>ERROR:</span></b><br />El campo <b>''Fecha Inicio''</b> es necesario, por favor seleccione uno." ValidationGroup="GrpTarea"></asp:RequiredFieldValidator>
|
||||||
|
<asp:Label AssociatedControlID="txtFechaI" runat="server" Text="Fecha Inicio"></asp:Label>
|
||||||
|
<%--<ajax:MaskedEditExtender ID="MEEFechaI" runat="server" TargetControlID="txtFechaI" Mask="99/99/9999 99:99" MaskType="DateTime" DisplayMoney="Left" AcceptNegative="Left"></ajax:MaskedEditExtender>--%>
|
||||||
|
<ajax:ValidatorCalloutExtender ID="VcoFechaI" runat="server" HighlightCssClass="vco" TargetControlID="RFVtxtFechaI" Width="350px"></ajax:ValidatorCalloutExtender>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="col-sm-6" style="display: none;">
|
<div class="col-sm-6" style="display: none;">
|
||||||
<div class="input-group form-group form-md-line-input date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block;">
|
<div class="input-group form-group form-md-line-input date date-picker " data-date-format="dd/mm/yyyy hh:mm" style="display: inline-block;">
|
||||||
<asp:TextBox ID="txtFechaF" runat="server" autocomplete="false" CssClass="form-control ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px " placeholder=""></asp:TextBox>
|
<asp:TextBox ID="txtFechaF" runat="server" autocomplete="false" CssClass="form-control ADDateTimePicker" CausesValidation="true" MaxLength="18" Width="132px " placeholder=""></asp:TextBox>
|
||||||
@@ -299,7 +294,6 @@
|
|||||||
<ItemStyle HorizontalAlign="Center" Width="50px" />
|
<ItemStyle HorizontalAlign="Center" Width="50px" />
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
C. C. Para
|
C. C. Para
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
<%--<a id="chkAll" onclick="chkAll_OncLick(1);" class="linkCorreo" data-toggle="tooltip" title="Seleccionar todos(Visibles)"><i class="fa fa-check-square-o"></i></a>
|
<%--<a id="chkAll" onclick="chkAll_OncLick(1);" class="linkCorreo" data-toggle="tooltip" title="Seleccionar todos(Visibles)"><i class="fa fa-check-square-o"></i></a>
|
||||||
<a id="UnchkAll" onclick="chkAll_OncLick(0);" class="linkCorreo" data-toggle="tooltip" title="Quitar seleccion todos(Visibles)"><i class="fa fa-square-o"></i></a>--%>
|
<a id="UnchkAll" onclick="chkAll_OncLick(0);" class="linkCorreo" data-toggle="tooltip" title="Quitar seleccion todos(Visibles)"><i class="fa fa-square-o"></i></a>--%>
|
||||||
@@ -419,7 +413,6 @@
|
|||||||
<ItemStyle HorizontalAlign="Center" Width="50px" />
|
<ItemStyle HorizontalAlign="Center" Width="50px" />
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
C. C. Para
|
C. C. Para
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
<%--<a id="chkAll" onclick="chkAll_OncLick(1);" class="linkCorreo" data-toggle="tooltip" title="Seleccionar todos(Visibles)"><i class="fa fa-check-square-o"></i></a>
|
<%--<a id="chkAll" onclick="chkAll_OncLick(1);" class="linkCorreo" data-toggle="tooltip" title="Seleccionar todos(Visibles)"><i class="fa fa-check-square-o"></i></a>
|
||||||
<a id="UnchkAll" onclick="chkAll_OncLick(0);" class="linkCorreo" data-toggle="tooltip" title="Quitar seleccion todos(Visibles)"><i class="fa fa fa-square-o"></i></a>--%>
|
<a id="UnchkAll" onclick="chkAll_OncLick(0);" class="linkCorreo" data-toggle="tooltip" title="Quitar seleccion todos(Visibles)"><i class="fa fa fa-square-o"></i></a>--%>
|
||||||
@@ -475,7 +468,6 @@
|
|||||||
<ItemStyle HorizontalAlign="Center" Width="50px" />
|
<ItemStyle HorizontalAlign="Center" Width="50px" />
|
||||||
<HeaderTemplate>
|
<HeaderTemplate>
|
||||||
Asistió
|
Asistió
|
||||||
|
|
||||||
</HeaderTemplate>
|
</HeaderTemplate>
|
||||||
<ItemTemplate>
|
<ItemTemplate>
|
||||||
<asp:CheckBox ID="ChkAsistio" CssClass="ChkOk" Checked='<%# Eval("Asistencia").ToString()=="1" %>' runat="server" />
|
<asp:CheckBox ID="ChkAsistio" CssClass="ChkOk" Checked='<%# Eval("Asistencia").ToString()=="1" %>' runat="server" />
|
||||||
@@ -517,7 +509,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function download(filename, text) {
|
||||||
|
var element = document.createElement('a');
|
||||||
|
element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));
|
||||||
|
element.setAttribute('download', filename);
|
||||||
|
|
||||||
|
element.style.display = 'none';
|
||||||
|
document.body.appendChild(element);
|
||||||
|
|
||||||
|
element.click();
|
||||||
|
|
||||||
|
document.body.removeChild(element);
|
||||||
|
}
|
||||||
|
|
||||||
let CveRol = -1;
|
let CveRol = -1;
|
||||||
let CveSucursal = -1;
|
let CveSucursal = -1;
|
||||||
|
|||||||
@@ -401,7 +401,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
|||||||
ruta = string.Format("{0}{1}", ruta, archivoname);//, ArchivoExtencion);
|
ruta = string.Format("{0}{1}", ruta, archivoname);//, ArchivoExtencion);
|
||||||
System.IO.File.Move(rutaarchivoOri, ruta);
|
System.IO.File.Move(rutaarchivoOri, ruta);
|
||||||
}
|
}
|
||||||
this.Alert("Se ha agregadó la nueva convocatoria", ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/ConvocatoriaDetalle.aspx?CveEvento={0}\");", CveEvento));
|
this.Alert(string.Format("Se ha agregadó la nueva convocatoria.<br/><a href=\"data:text/plain;charset=utf-8,{0}\" download=\"Agendar.ics\" class=\"btn btn-default\">⏰ Agendar</a>", HttpUtility.UrlEncode(ICString)), ModExtensiones.TipoMensaje.MsgInformacion, string.Format("location.replace(\"/OI/ConvocatoriaDetalle.aspx?CveEvento={0}\");", CveEvento));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -422,7 +422,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
|||||||
{
|
{
|
||||||
objOI.Commit();
|
objOI.Commit();
|
||||||
enviarConvocatoria(RCveEvento);
|
enviarConvocatoria(RCveEvento);
|
||||||
Alert("Convocatoria actualizada");
|
Alert(string.Format("Convocatoria actualizada.<br/><a href=\"data:text/plain;charset=utf-8,{0}\" download=\"Agendar.ics\" class=\"btn btn-default\">⏰ Agendar</a>", HttpUtility.UrlEncode(ICString)));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -586,13 +586,20 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
|||||||
return string.Format("{0}/{1}", HttpContext.Current.Request.Url.ToString().Replace(HttpContext.Current.Request.Url.PathAndQuery, ""), addstr);
|
return string.Format("{0}/{1}", HttpContext.Current.Request.Url.ToString().Replace(HttpContext.Current.Request.Url.PathAndQuery, ""), addstr);
|
||||||
}
|
}
|
||||||
string UsuarioDemail = "";
|
string UsuarioDemail = "";
|
||||||
private string MailgetBodyConvocatoria(int RCveEvento)
|
string ICString = "";
|
||||||
|
private void enviarConvocatoria(int RCveEvento)
|
||||||
{
|
{
|
||||||
|
|
||||||
int Folio = 0; string Link = ""; string Asunto = ""; string Acuerdos = ""; string Descripcion = ""; DateTime DFechai = DateTime.MinValue; DateTime DFechaf = DateTime.MinValue;
|
string Body;
|
||||||
string UsuarioDe = "";
|
string UsuarioDe = "";
|
||||||
|
|
||||||
|
#region "Body"
|
||||||
|
int Folio = 0; string Link = ""; string Asunto = ""; string Acuerdos = ""; string Descripcion = ""; DateTime DFechai = DateTime.MinValue; DateTime DFechaf = DateTime.MinValue;
|
||||||
|
UsuarioDe = "";
|
||||||
string UsuarioPara = "";
|
string UsuarioPara = "";
|
||||||
string UsuarioDeAbr = "";
|
string UsuarioDeAbr = "";
|
||||||
|
string CorreoRegistro = "";
|
||||||
|
|
||||||
System.Data.DataTable dttareas;
|
System.Data.DataTable dttareas;
|
||||||
using (ClsOIEventos ObjOI_E = new ClsOIEventos())
|
using (ClsOIEventos ObjOI_E = new ClsOIEventos())
|
||||||
{
|
{
|
||||||
@@ -601,6 +608,7 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
|||||||
System.Data.DataRow drow = ObjOI_E.DtResultados.Rows[0];
|
System.Data.DataRow drow = ObjOI_E.DtResultados.Rows[0];
|
||||||
UsuarioDe = drow["NombreRegistro"].ToString();
|
UsuarioDe = drow["NombreRegistro"].ToString();
|
||||||
UsuarioDemail = drow["NombreRegistro"].ToString();
|
UsuarioDemail = drow["NombreRegistro"].ToString();
|
||||||
|
CorreoRegistro = drow["CorreoRegistro"].ToString().Split(',')[0].Split(';')[0];
|
||||||
Folio = drow["Folio"].ToString().ToEntero();
|
Folio = drow["Folio"].ToString().ToEntero();
|
||||||
Link = GetDominio(string.Format("OI/ConvocatoriaDetalle.aspx?CveEvento={0}", RCveEvento));
|
Link = GetDominio(string.Format("OI/ConvocatoriaDetalle.aspx?CveEvento={0}", RCveEvento));
|
||||||
Asunto = drow["Asunto"].ToString();
|
Asunto = drow["Asunto"].ToString();
|
||||||
@@ -700,13 +708,12 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
|||||||
StrMail.Append(" </div>");
|
StrMail.Append(" </div>");
|
||||||
StrMail.Append(" </div>");
|
StrMail.Append(" </div>");
|
||||||
StrMail.Append("</html></body>");
|
StrMail.Append("</html></body>");
|
||||||
return StrMail.ToString();
|
|
||||||
}
|
|
||||||
private void enviarConvocatoria(int RCveEvento)
|
|
||||||
{
|
|
||||||
|
|
||||||
string Body;
|
#endregion
|
||||||
Body = MailgetBodyConvocatoria(RCveEvento);
|
|
||||||
|
|
||||||
|
|
||||||
|
Body = StrMail.ToString();//MailgetBodyConvocatoria(RCveEvento);
|
||||||
string ArrayCC = "";
|
string ArrayCC = "";
|
||||||
//ViewState("Para") = GlobalDTUsuarios(CveUsuarioIng)(0)("correo").ToString;
|
//ViewState("Para") = GlobalDTUsuarios(CveUsuarioIng)(0)("correo").ToString;
|
||||||
//ViewState("Asunto") = string.Format("SIG - Minuta {0}", TxtAsunto.Text);
|
//ViewState("Asunto") = string.Format("SIG - Minuta {0}", TxtAsunto.Text);
|
||||||
@@ -729,6 +736,10 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
|||||||
List<ClsSisMail.ArchivoMail> LSRutasMail = new List<ClsSisMail.ArchivoMail>();
|
List<ClsSisMail.ArchivoMail> LSRutasMail = new List<ClsSisMail.ArchivoMail>();
|
||||||
ClsSisMail.ArchivoMail mailfile = new ClsSisMail.ArchivoMail { Ruta = string.Format("{0}Imagenes\\Bell.png", ModExtensiones.DirectorioBaseEmpresas), NombreArchivo = "Bell.png" };
|
ClsSisMail.ArchivoMail mailfile = new ClsSisMail.ArchivoMail { Ruta = string.Format("{0}Imagenes\\Bell.png", ModExtensiones.DirectorioBaseEmpresas), NombreArchivo = "Bell.png" };
|
||||||
LSRutasMail.Add(mailfile);
|
LSRutasMail.Add(mailfile);
|
||||||
|
ICString = GenerateIcsContent(string.Format("{0:yyyy/MM/dd} 00:00", txtFechaI.Text.ToDateTime()).ToDateTime(), string.Format("{0:yyyy/MM/dd} 23:59", txtFechaI.Text.ToDateTime()).ToDateTime(),
|
||||||
|
UsuarioDe, CorreoRegistro, TxtLugar.Text, Asunto,Descripcion,string.Format("Convocatoria_{0}",RCveEvento) );
|
||||||
|
ClsSisMail.ArchivoMail ICSFile = new ClsSisMail.ArchivoMail { Ruta = "",ArchivoBinario= Encoding.ASCII.GetBytes(ICString), NombreArchivo = "Agendar.ics" };
|
||||||
|
LSRutasMail.Add(ICSFile);
|
||||||
ClsSisMail.ArchivoMail itemMail = new ClsSisMail.ArchivoMail();
|
ClsSisMail.ArchivoMail itemMail = new ClsSisMail.ArchivoMail();
|
||||||
|
|
||||||
|
|
||||||
@@ -742,31 +753,44 @@ public partial class OI_ConvocatoriaDetalle : ClsPaginas
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public string GenerateIcsContent(DateTime dateStart,
|
public string GenerateIcsContent(DateTime FechaInicio, DateTime FechaFin, string Nombreorganizador, string Correoorganizador, string Ubicacion, string Asunto, string descripcion, string uuid)
|
||||||
DateTime dateEnd, string email, string location,
|
|
||||||
string summary, string description)
|
|
||||||
{
|
{
|
||||||
string DateFormat = "yyyyMMddTHHmmssZ";
|
var DTSTART = FechaInicio.ToUniversalTime().ToString("yyyyMMddTHHmmssZ");
|
||||||
var s = dateStart.ToUniversalTime().ToString(DateFormat);
|
var DTEND = FechaFin.ToUniversalTime().ToString("yyyyMMddTHHmmssZ");
|
||||||
var e = dateEnd.ToUniversalTime().ToString(DateFormat);
|
|
||||||
var iCal = string.Format(@"BEGIN:VCALENDAR
|
/*
|
||||||
|
BEGIN:VCALENDAR
|
||||||
VERSION:2.0
|
VERSION:2.0
|
||||||
METHOD:PUBLISH
|
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
|
||||||
BEGIN:VEVENT
|
BEGIN:VEVENT
|
||||||
ORGANIZER:MAILTO:{0}
|
UID:uid1@example.com
|
||||||
DTSTART:{1}
|
DTSTAMP:19970714T170000Z
|
||||||
DTEND:{2}
|
ORGANIZER;CN=John Doe:MAILTO:john.doe@example.com
|
||||||
LOCATION:{3}
|
DTSTART:19970714T170000Z
|
||||||
UID:{4}
|
DTEND:19970715T035959Z
|
||||||
DTSTAMP:{4}
|
SUMMARY:Bastille Day Party
|
||||||
SUMMARY:{5}
|
|
||||||
DESCRIPTION:{6}
|
|
||||||
PRIORITY:5
|
|
||||||
CLASS:PUBLIC
|
|
||||||
END:VEVENT
|
END:VEVENT
|
||||||
END:VCALENDAR", email, s, e, location,
|
END:VCALENDAR
|
||||||
DateTime.Now.ToUniversalTime().ToString(DateFormat),
|
*/
|
||||||
summary, description);
|
StringBuilder strICS = new StringBuilder();
|
||||||
return iCal;
|
strICS.AppendLine("BEGIN:VCALENDAR");
|
||||||
|
strICS.AppendLine("VERSION:2.0");
|
||||||
|
strICS.AppendLine("METHOD:PUBLISH");
|
||||||
|
strICS.AppendLine("BEGIN:VEVENT");
|
||||||
|
strICS.AppendLine(string.Format("ORGANIZER;CN={0}:MAILTO:{1}", Nombreorganizador.Replace(":", "").Replace(";", ""), Correoorganizador));
|
||||||
|
strICS.AppendLine(string.Format("DTSTART:{0}", DTSTART));
|
||||||
|
strICS.AppendLine(string.Format("DTEND:{0}", DTEND));
|
||||||
|
strICS.AppendLine(string.Format("LOCATION:{0}", Ubicacion));
|
||||||
|
strICS.AppendLine(string.Format("UID:{0}", uuid));
|
||||||
|
strICS.AppendLine(string.Format("DTSTAMP:{0}", DateTime.Now.ToUniversalTime().ToString("yyyyMMddTHHmmssZ")));
|
||||||
|
strICS.AppendLine(string.Format("SUMMARY:{0}", Asunto));
|
||||||
|
strICS.AppendLine(string.Format("DESCRIPTION:{0}", descripcion));
|
||||||
|
strICS.AppendLine("PRIORITY:5");
|
||||||
|
strICS.AppendLine("CLASS:PUBLIC");
|
||||||
|
strICS.AppendLine("END:VEVENT");
|
||||||
|
strICS.AppendLine("END:VCALENDAR");
|
||||||
|
return strICS.ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -164,7 +164,7 @@
|
|||||||
<asp:TextBox ID="TxtArchivoPropuesta" CssClass="ADSdropzone hidden" runat="server" Style="height: 100px"></asp:TextBox>
|
<asp:TextBox ID="TxtArchivoPropuesta" CssClass="ADSdropzone hidden" runat="server" Style="height: 100px"></asp:TextBox>
|
||||||
<br />
|
<br />
|
||||||
<asp:Label runat="server" ID="Label2" Text="Comentarios:" style="font-size:15px"/>
|
<asp:Label runat="server" ID="Label2" Text="Comentarios:" style="font-size:15px"/>
|
||||||
<textarea runat="server" id="TxtComentarios" class="form-control" style="border: 1px solid #e5e5e5" rows="2"></textarea>
|
<textarea runat="server" id="TxtComentarios" class="form-control" style="border: 1px solid #e5e5e5" rows="2" maxlength="300"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<asp:Button ID="BtnAgregarPropuesta" OnClick="BtnAgregarPropuesta_Click" runat="server" class="btn btn-success" Text="Agregar" ValidationGroup="GrpTiposD" />
|
<asp:Button ID="BtnAgregarPropuesta" OnClick="BtnAgregarPropuesta_Click" runat="server" class="btn btn-success" Text="Agregar" ValidationGroup="GrpTiposD" />
|
||||||
|
|||||||
@@ -746,25 +746,31 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
|||||||
protected void LnkTerminarMinuta_Click(object sender, EventArgs e)
|
protected void LnkTerminarMinuta_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
// Cambiar el estatus a Terminada para inabilitarla y que no se pueda modificar
|
// Cambiar el estatus a Terminada para inabilitarla y que no se pueda modificar
|
||||||
ClsOIEventos objOI = new ClsOIEventos();
|
|
||||||
int tCveSeguimiento;
|
int tCveSeguimiento;
|
||||||
bool HuboError = false;
|
bool HuboError = false;
|
||||||
|
using (ClsOIEventos objOI = new ClsOIEventos())
|
||||||
|
{
|
||||||
objOI.IniciaTransacSQL();
|
objOI.IniciaTransacSQL();
|
||||||
|
|
||||||
tCveSeguimiento = objOI.AddEventoComentario2(RCveEvento, "Termino minuta.", "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa);
|
tCveSeguimiento = objOI.AddEventoComentario2(RCveEvento, "Termino minuta.", "", UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa);
|
||||||
|
|
||||||
if (tCveSeguimiento > 0)
|
if (tCveSeguimiento > 0)
|
||||||
{
|
{
|
||||||
if (!objOI.UpdateEstatusEvento2(4, tCveSeguimiento, RCveEvento, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
if (!objOI.UpdateEstatusEvento2(4, tCveSeguimiento, RCveEvento, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa))
|
||||||
HuboError = true;
|
HuboError = true;
|
||||||
}
|
}
|
||||||
|
else { HuboError = true; }
|
||||||
|
if (HuboError == false)
|
||||||
|
{
|
||||||
|
objOI.Commit();
|
||||||
|
}
|
||||||
else
|
else
|
||||||
HuboError = true;
|
{
|
||||||
|
objOI.RollBack();
|
||||||
|
}
|
||||||
// 'Envia minuta si es modificada
|
}
|
||||||
|
if (HuboError == false)
|
||||||
|
{
|
||||||
|
if (!EnviarMinuta()) { HuboError = true; Alert("Ocurrió un error al terminar la minuta. no se pudo enviar el correo.", ModExtensiones.TipoMensaje.MsgError); }
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (HuboError == false)
|
if (HuboError == false)
|
||||||
@@ -775,22 +781,6 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
|||||||
script = string.Format("location.replace(\"/OI/ConvocatoriaDetalle.aspx?CveEventoPadre={0}\");", RCveEvento);
|
script = string.Format("location.replace(\"/OI/ConvocatoriaDetalle.aspx?CveEventoPadre={0}\");", RCveEvento);
|
||||||
}
|
}
|
||||||
Alert("La minuta ha finalizado.", ModExtensiones.TipoMensaje.MsgInformacion, script);
|
Alert("La minuta ha finalizado.", ModExtensiones.TipoMensaje.MsgInformacion, script);
|
||||||
objOI.Commit();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Alert("Ocurrió un error al terminar la minuta. Por favor vuelva a intentar.", ModExtensiones.TipoMensaje.MsgError);
|
|
||||||
objOI.RollBack();
|
|
||||||
}
|
|
||||||
|
|
||||||
objOI.Dispose();
|
|
||||||
|
|
||||||
|
|
||||||
if (HuboError == false)
|
|
||||||
{
|
|
||||||
if (!EnviarMinuta())
|
|
||||||
HuboError = true;
|
|
||||||
Alert("La minuta se termino con exito.", ModExtensiones.TipoMensaje.MsgInformacion);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
LnkEnviarMinuta.Visible = true;
|
LnkEnviarMinuta.Visible = true;
|
||||||
@@ -1378,8 +1368,44 @@ public partial class OI_MinutaDetalle : ClsPaginas
|
|||||||
LnkTerminarMinuta_Click(null, null);
|
LnkTerminarMinuta_Click(null, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string GenerateIcsContent(DateTime FechaInicio, DateTime FechaFin, string Nombreorganizador, string Correoorganizador, string Ubicacion, string Asunto, string descripcion, string uuid)
|
||||||
|
{
|
||||||
|
var DTSTART = FechaInicio.ToUniversalTime().ToString("yyyyMMddTHHmmssZ");
|
||||||
|
var DTEND = FechaFin.ToUniversalTime().ToString("yyyyMMddTHHmmssZ");
|
||||||
|
|
||||||
|
/*
|
||||||
|
BEGIN:VCALENDAR
|
||||||
|
VERSION:2.0
|
||||||
|
PRODID:-//hacksw/handcal//NONSGML v1.0//EN
|
||||||
|
BEGIN:VEVENT
|
||||||
|
UID:uid1@example.com
|
||||||
|
DTSTAMP:19970714T170000Z
|
||||||
|
ORGANIZER;CN=John Doe:MAILTO:john.doe@example.com
|
||||||
|
DTSTART:19970714T170000Z
|
||||||
|
DTEND:19970715T035959Z
|
||||||
|
SUMMARY:Bastille Day Party
|
||||||
|
END:VEVENT
|
||||||
|
END:VCALENDAR
|
||||||
|
*/
|
||||||
|
StringBuilder strICS = new StringBuilder();
|
||||||
|
strICS.Append("BEGIN:VCALENDAR");
|
||||||
|
strICS.Append("VERSION:2.0");
|
||||||
|
strICS.Append("METHOD:PUBLISH");
|
||||||
|
strICS.Append("BEGIN:VEVENT");
|
||||||
|
strICS.AppendFormat("ORGANIZER;CN={0}:MAILTO:{1}", Nombreorganizador.Replace(":", "").Replace(";", ""), Correoorganizador);
|
||||||
|
strICS.AppendFormat("DTSTART:{0}", DTSTART);
|
||||||
|
strICS.AppendFormat("DTEND:{0}", DTEND);
|
||||||
|
strICS.AppendFormat("LOCATION:{0}", Ubicacion);
|
||||||
|
strICS.AppendFormat("UID:{0}", uuid);
|
||||||
|
strICS.AppendFormat("DTSTAMP:{0}", DateTime.Now.ToUniversalTime().ToString("yyyyMMddTHHmmssZ"));
|
||||||
|
strICS.AppendFormat("SUMMARY:{0}", Asunto);
|
||||||
|
strICS.AppendFormat("DESCRIPTION:{0}", descripcion);
|
||||||
|
strICS.Append("PRIORITY:5");
|
||||||
|
strICS.Append("CLASS:PUBLIC");
|
||||||
|
strICS.Append("END:VEVENT");
|
||||||
|
strICS.Append("END:VCALENDAR");
|
||||||
|
return strICS.ToString();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
protected void LnkOpenModalAsistencia_Click(object sender, EventArgs e)
|
protected void LnkOpenModalAsistencia_Click(object sender, EventArgs e)
|
||||||
|
|||||||
@@ -31,12 +31,17 @@
|
|||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
line-height: 25px;
|
line-height: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.gantt-samples-banner_controls_bar.controls_bar, .gantt_scale_line .gantt_scale_cell, .gantt_grid_scale .gantt_grid_head_cell, .gantt_grid_scale .gantt_grid_head_cell a, .gantt_grid_scale .gantt_grid_head_cell a:hover {
|
||||||
|
background-color: #95a5a6 !important;
|
||||||
|
color: #FFF !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<%--<link href="/Metronic/assets/global/plugins/GantJS/jsgantt.css" rel="stylesheet" type="text/css" />--%>
|
<%--<link href="/Metronic/assets/global/plugins/GantJS/jsgantt.css" rel="stylesheet" type="text/css" />--%>
|
||||||
<link rel="stylesheet" href="/Metronic/assets/global/plugins/dhtmlxgantt/dhtmlxgantt.css" type="text/css">
|
<link rel="stylesheet" href="/Metronic/assets/global/plugins/dhtmlxgantt/dhtmlxgantt.css" type="text/css">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
Proyecto:
|
Proyecto:<asp:Label ID="LblAsunto" runat="server" Text=""></asp:Label>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
<asp:Content ID="Content4" ContentPlaceHolderID="HB" runat="Server">
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
@@ -70,6 +75,9 @@
|
|||||||
<label>
|
<label>
|
||||||
<input name="scales" onclick="zoom_tasks(this)" type="radio" value="year">
|
<input name="scales" onclick="zoom_tasks(this)" type="radio" value="year">
|
||||||
<span>Mes</span></label>
|
<span>Mes</span></label>
|
||||||
|
<label>
|
||||||
|
<input name="scales" onclick="zoom_tasks(this)" type="radio" value="yearyear">
|
||||||
|
<span>año</span></label>
|
||||||
|
|
||||||
<div id="filter_hours" style="display: none;">
|
<div id="filter_hours" style="display: none;">
|
||||||
|
|
||||||
@@ -204,6 +212,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
let RCveEvento =<%= RCveEvento %>;
|
||||||
function NuevoEvento(CveEvento) {
|
function NuevoEvento(CveEvento) {
|
||||||
$('.txtCveEvento').val(CveEvento);
|
$('.txtCveEvento').val(CveEvento);
|
||||||
$('.BtnopenmodalClickGant').click();
|
$('.BtnopenmodalClickGant').click();
|
||||||
@@ -249,6 +258,16 @@
|
|||||||
{ unit: "week", step: 1, date: "#%W" }
|
{ unit: "week", step: 1, date: "#%W" }
|
||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
|
case "yearyear":
|
||||||
|
gantt.config.min_column_width = 70;
|
||||||
|
gantt.config.scale_unit = "month";
|
||||||
|
gantt.config.date_scale = "%y %M";
|
||||||
|
gantt.config.scale_height = 60;
|
||||||
|
show_scale_options();
|
||||||
|
gantt.config.subscales = [
|
||||||
|
{ unit: "month", step: 1, date: "#%M" }
|
||||||
|
];
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
set_scale_units();
|
set_scale_units();
|
||||||
gantt.render();
|
gantt.render();
|
||||||
@@ -313,15 +332,16 @@
|
|||||||
var datosGant = [];
|
var datosGant = [];
|
||||||
function loadGant() {
|
function loadGant() {
|
||||||
gantt.config.date_format = "%Y-%m-%d %H:%i";
|
gantt.config.date_format = "%Y-%m-%d %H:%i";
|
||||||
|
gantt.config.order_branch = true;
|
||||||
gantt.i18n.setLocale("es");
|
gantt.i18n.setLocale("es");
|
||||||
gantt.init("gantt_here");
|
gantt.init("gantt_here");
|
||||||
gantt.config.columns = [
|
gantt.config.columns = [
|
||||||
{ name: "text", label: "Proyecto ", width: "*", min_width: 350, tree: true, resize: true, template: function (obj) { return "<a href=\"/OI/TareaDetalle.aspx?CveEvento=" + obj.id + "\" target=\"_Blank\">" + obj.text + " </a>" } },
|
{ name: "text", label: "Proyecto ", width: "*", min_width: 350, tree: true, resize: true, template: function (obj) { return "<a href=\"/OI/TareaDetalle.aspx?CveEvento=" + obj.id + "\" target=\"_Blank\">" + obj.text + " </a>" } },
|
||||||
{ name: "start_date", label: "Inicio", min_width: 90, align: "center" },
|
{ name: "start_date", label: "Inicio", min_width: 90, align: "center" },
|
||||||
{ name: "end_date", label: "Fin", min_width: 90, align: "center" },
|
{ name: "end_date", label: "Fin", min_width: 90, align: "center" },
|
||||||
{ name: "progress", label: "Avance", align: "center", template: function (obj) { return "" + (obj.progress * 100) + " %" } },
|
{ name: "progress", label: "Avance", align: "center", template: function (obj) { return "" + (obj.progress * 100).toFixed(2) + " %" } },
|
||||||
{ name: "duration", label: "Duracion", align: "center" },
|
{ name: "duration", label: "Duración", align: "center" },
|
||||||
{ name: "new", label: "<i class='fa fa-plus'></i>", align: "center",template: function (obj) { return "<a onclick=\"NuevoEvento("+obj.id+");\" target=\"_Blank\"><i class='fa fa-plus'></i> </a>" } }
|
{ name: "new", label: "<a onclick=\"NuevoEvento(" + RCveEvento + ");\" target=\"_Blank\"><i class='fa fa-plus'></i></a>", align: "center", template: function (obj) { return "<a onclick=\"NuevoEvento(" + obj.id + ");\" target=\"_Blank\"><i class='fa fa-plus'></i> </a>" } }
|
||||||
/*{name:"staff", label:"Holder(s)", template:function(obj){return obj.holder+"("+obj.progress+")"} },*/
|
/*{name:"staff", label:"Holder(s)", template:function(obj){return obj.holder+"("+obj.progress+")"} },*/
|
||||||
//{ name: "add", label: "" }
|
//{ name: "add", label: "" }
|
||||||
];
|
];
|
||||||
@@ -358,7 +378,23 @@
|
|||||||
]*/
|
]*/
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
gantt.attachEvent("onBeforeTaskMove", function (id, parent, tindex) {
|
||||||
|
console.log(tindex)
|
||||||
|
var task = gantt.getTask(id);
|
||||||
|
if (task.parent != parent)
|
||||||
|
return false;
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
|
||||||
|
gantt.attachEvent("onRowDragEnd", function (id, target,tindex) {
|
||||||
|
console.log(tindex)
|
||||||
|
debugger;
|
||||||
|
drag_id = null;
|
||||||
|
gantt.render();
|
||||||
|
});
|
||||||
loadGant();
|
loadGant();
|
||||||
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<%--<script>
|
<%--<script>
|
||||||
|
|||||||
@@ -50,6 +50,13 @@ public partial class OI_Proyecto : ClsPaginas
|
|||||||
str.AppendLine("datosGant=[");
|
str.AppendLine("datosGant=[");
|
||||||
using (ClsOIEventos oieve = new ClsOIEventos())
|
using (ClsOIEventos oieve = new ClsOIEventos())
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
if (oieve.GetEventos2(RCveEvento, UsuarioActual.CveEmpresa) && oieve.DtResultados.Rows.Count > 0)
|
||||||
|
{
|
||||||
|
System.Data.DataRow drow = oieve.DtResultados.Rows[0];
|
||||||
|
LblAsunto.Text = drow["Asunto"].ToString();
|
||||||
|
}
|
||||||
if (oieve.GetTareaConHijos(RCveEvento,UsuarioActual.CveEmpresa))
|
if (oieve.GetTareaConHijos(RCveEvento,UsuarioActual.CveEmpresa))
|
||||||
{
|
{
|
||||||
foreach (System.Data.DataRow dr in oieve.DtResultados.Select("Nivel > 0"))
|
foreach (System.Data.DataRow dr in oieve.DtResultados.Select("Nivel > 0"))
|
||||||
|
|||||||
@@ -5,17 +5,17 @@
|
|||||||
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
<asp:Content ID="Content2" ContentPlaceHolderID="Css" runat="Server">
|
||||||
<style>
|
<style>
|
||||||
.sortableList h4 {
|
.sortableList h4 {
|
||||||
background-color: #EEE;
|
background-color: #ccc;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sortableList {
|
.sortableList {
|
||||||
border: 1px solid #eee;
|
border: 1px solid #eee;
|
||||||
width: 250px;
|
width: 258px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -31,7 +31,9 @@
|
|||||||
min-height: 20px;
|
min-height: 20px;
|
||||||
width: 250px;
|
width: 250px;
|
||||||
padding: 5px 0 0 0;
|
padding: 5px 0 0 0;
|
||||||
margin: 0;
|
background-color: #eee;
|
||||||
|
border: dotted #ccc;
|
||||||
|
margin: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sortableList ul li {
|
.sortableList ul li {
|
||||||
@@ -56,6 +58,11 @@
|
|||||||
right: 5px;
|
right: 5px;
|
||||||
top: 4px;
|
top: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bootomadd {
|
||||||
|
padding: 4px;
|
||||||
|
padding-bottom: 8px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
<asp:Content ID="Content3" ContentPlaceHolderID="E" runat="Server">
|
||||||
@@ -99,7 +106,7 @@
|
|||||||
</ItemTemplate>
|
</ItemTemplate>
|
||||||
</asp:Repeater>
|
</asp:Repeater>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="text-center">
|
<div class="text-center bootomadd">
|
||||||
|
|
||||||
<%# String.Format("<a class=\"btn btn-default\" onclick=\"OpenModalNewTareaUserControl(1,-1,{{CveTableroLista:{0}}});\"> <i class=\"fa fa-plus\"'></i> </a>",Eval("CveTableroLista")) %>
|
<%# String.Format("<a class=\"btn btn-default\" onclick=\"OpenModalNewTareaUserControl(1,-1,{{CveTableroLista:{0}}});\"> <i class=\"fa fa-plus\"'></i> </a>",Eval("CveTableroLista")) %>
|
||||||
</div>
|
</div>
|
||||||
@@ -170,15 +177,42 @@
|
|||||||
<asp:UpdatePanel runat="server" ID="Uppositionevento" UpdateMode="Conditional">
|
<asp:UpdatePanel runat="server" ID="Uppositionevento" UpdateMode="Conditional">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<asp:Button ID="BtnUpPosition" OnClick="BtnUpPosition_Click" runat="server" Text="Agregar" CssClass="btn btn-primary hidden BtnUpPosition" UseSubmitBehavior="false" ValidationGroup="VGMTablzxczxc" />
|
<asp:Button ID="BtnUpPosition" OnClick="BtnUpPosition_Click" runat="server" Text="Agregar" CssClass="btn btn-primary hidden BtnUpPosition" UseSubmitBehavior="false" ValidationGroup="VGMTablzxczxc" />
|
||||||
<asp:TextBox ID="Txtcvetablerolista" CssClass=" hidden Txtcvetablerolista" runat="server"></asp:TextBox><asp:TextBox ID="txtCveEvento" CssClass="txtCveEvento hidden" runat="server"></asp:TextBox>
|
<asp:TextBox ID="TxtCveOrdeList" CssClass=" hidden TxtCveOrdeList" runat="server"></asp:TextBox>
|
||||||
|
<asp:Button ID="BtnOrderList" runat="server" OnClick="BtnOrderList_Click" CssClass="btn btn-primary hidden BtnOrderList" UseSubmitBehavior="false" ValidationGroup="VGMTablzxczxzc" />
|
||||||
|
<asp:TextBox ID="Txtcvetablerolista" CssClass=" hidden Txtcvetablerolista" runat="server"></asp:TextBox>
|
||||||
|
<asp:TextBox ID="txtCveEvento" CssClass="txtCveEvento hidden" runat="server"></asp:TextBox>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
<asp:Content ID="Content8" ContentPlaceHolderID="JS" runat="Server">
|
||||||
<script>
|
<script>
|
||||||
|
let CurrentorderList = ''
|
||||||
|
function GetOrderList() {
|
||||||
|
|
||||||
|
let OrdeList = '';
|
||||||
|
let separator = '';
|
||||||
|
let Orden = 1;
|
||||||
|
$('.ListSorter > li').each(function () {
|
||||||
|
OrdeList = OrdeList + separator + Orden + ':' + $(this).data('cvetablerolista');
|
||||||
|
separator = ',';
|
||||||
|
Orden = Orden + 1;
|
||||||
|
});
|
||||||
|
return OrdeList;
|
||||||
|
}
|
||||||
|
function GetOrderListEvento(ulelement) {
|
||||||
|
|
||||||
|
let OrdeList = '';
|
||||||
|
let separator = '';
|
||||||
|
let Orden = 1;
|
||||||
|
ulelement.find(' li').each(function () {
|
||||||
|
OrdeList = OrdeList + separator + Orden + ':' + $(this).data('cveevento');
|
||||||
|
separator = ',';
|
||||||
|
Orden = Orden + 1;
|
||||||
|
});
|
||||||
|
return OrdeList;
|
||||||
|
}
|
||||||
function ADSReady() {
|
function ADSReady() {
|
||||||
|
CurrentorderList = GetOrderList();
|
||||||
var cvetablerolistaold = 0;
|
var cvetablerolistaold = 0;
|
||||||
var cvetablerolistanew = 0;
|
var cvetablerolistanew = 0;
|
||||||
|
|
||||||
@@ -190,7 +224,16 @@
|
|||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
cvetablerolistanew = $(event.srcElement).data('cvetablerolista');
|
cvetablerolistanew = $(event.srcElement).data('cvetablerolista');
|
||||||
//let cveevento = $(event.srcElement).data('cveevento');
|
//let cveevento = $(event.srcElement).data('cveevento');
|
||||||
//$('.Txtcvetablerolista').val(cvetablerolistanew);
|
|
||||||
|
setTimeout(function () {
|
||||||
|
let OrdeList = GetOrderList();
|
||||||
|
$('.TxtCveOrdeList').val(OrdeList);
|
||||||
|
console.log(OrdeList);
|
||||||
|
if (CurrentorderList != OrdeList) {
|
||||||
|
$('.BtnOrderList').click();
|
||||||
|
}
|
||||||
|
CurrentorderList = OrdeList;
|
||||||
|
}, 20);
|
||||||
//$('.txtCveEvento').val(cveevento);
|
//$('.txtCveEvento').val(cveevento);
|
||||||
//$('.BtnUpPosition').click();
|
//$('.BtnUpPosition').click();
|
||||||
}, 20);
|
}, 20);
|
||||||
@@ -202,8 +245,11 @@
|
|||||||
start: function (event, ui) { cvetablerolistaold = $(event.srcElement).closest('ul').data('cvetablerolista'); },
|
start: function (event, ui) { cvetablerolistaold = $(event.srcElement).closest('ul').data('cvetablerolista'); },
|
||||||
stop: function (event, ui) {
|
stop: function (event, ui) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
cvetablerolistanew = $(event.srcElement).closest('ul').data('cvetablerolista');
|
let ulelement = $(event.srcElement).closest('ul');
|
||||||
|
cvetablerolistanew = ulelement.data('cvetablerolista');
|
||||||
let cveevento = $(event.srcElement).data('cveevento');
|
let cveevento = $(event.srcElement).data('cveevento');
|
||||||
|
let OrdeList = GetOrderListEvento(ulelement);
|
||||||
|
$('.TxtCveOrdeList').val(OrdeList);
|
||||||
$('.Txtcvetablerolista').val(cvetablerolistanew);
|
$('.Txtcvetablerolista').val(cvetablerolistanew);
|
||||||
$('.txtCveEvento').val(cveevento);
|
$('.txtCveEvento').val(cveevento);
|
||||||
$('.BtnUpPosition').click();
|
$('.BtnUpPosition').click();
|
||||||
|
|||||||
@@ -164,9 +164,42 @@ public partial class OI_TableroDetalle : ClsPaginas
|
|||||||
|
|
||||||
protected void BtnUpPosition_Click(object sender, EventArgs e)
|
protected void BtnUpPosition_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
bool continuar = false;
|
||||||
using (ClsOIEventos eveobj = new ClsOIEventos())
|
using (ClsOIEventos eveobj = new ClsOIEventos())
|
||||||
{
|
{
|
||||||
eveobj.UpEventoLista(Txtcvetablerolista.Text.ToEntero(), txtCveEvento.Text.ToEntero());
|
eveobj.IniciaTransacSQL();
|
||||||
|
continuar =eveobj.UpEventoLista(Txtcvetablerolista.Text.ToEntero(), txtCveEvento.Text.ToEntero());
|
||||||
|
if (continuar)
|
||||||
|
{
|
||||||
|
List<string> orderlist = TxtCveOrdeList.Text.Split(',').ToList<string>();
|
||||||
|
continuar = eveobj.OrdenaTareas(orderlist, UsuarioActual.CveEmpresa, UsuarioActual.CveUsuario);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (continuar)
|
||||||
|
{
|
||||||
|
eveobj.Commit();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
eveobj.RollBack();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void BtnOrderList_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
List<string> orderlist = TxtCveOrdeList.Text.Split(',').ToList<string>();
|
||||||
|
using (ClsOIEventos eveobj = new ClsOIEventos())
|
||||||
|
{
|
||||||
|
eveobj.IniciaTransacSQL();
|
||||||
|
if(eveobj.OrdenaListas(orderlist,UsuarioActual.CveEmpresa,UsuarioActual.CveUsuario))
|
||||||
|
{
|
||||||
|
eveobj.Commit();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
eveobj.RollBack();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
10
vwd.webinfo
10
vwd.webinfo
@@ -86,6 +86,16 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user