Cambios para el guardado de la opcion OTros. KLB

git-tfs-id: [http://192.168.1.10:8080/tfs/AyA]$/SINORT;C531
This commit is contained in:
kledezma 2021-02-09 04:44:03 +00:00
parent a33001d8f5
commit e03be1597b
10 changed files with 830 additions and 705 deletions

View file

@ -137,12 +137,13 @@ namespace AyABL.Tran
try try
{ {
this.NombreTabla = Modulos.t_dis_.ToString() + Tablas.observacionescritec.ToString(); this.NombreTabla = Modulos.t_dis_.ToString() + Tablas.observacionescritec.ToString();
this.CamposTabla = t_dis_observacionescritec.DESCRIPCION.ToString() + Tablas.observacionescritec.ToString() + ", " + t_dis_observacionescritec.FKTIPOINSPECCION.ToString() + ", " + t_dis_observacionescritec.FKINSPECCIONAPAS.ToString() + ", " + Auditoria.ASTATE.ToString() + Tablas.observacionescritec.ToString() + " "; this.CamposTabla = t_dis_observacionescritec.DESCRIPCION.ToString() + Tablas.observacionescritec.ToString() + ", " + t_dis_observacionescritec.FKTIPOINSPECCION.ToString() + ", " + t_dis_observacionescritec.FKINSPECCIONAPAS.ToString() + ", " + t_dis_observacionescritec.DESCRIPCIONOTROMOTIVONEGACIONDISPONIBILIDAD + ", " + Auditoria.ASTATE.ToString() + Tablas.observacionescritec.ToString() + " ";
this.ValoresCampos = new object[4] this.ValoresCampos = new object[5]
{ {
(object) this.objinspeccionapEL.OBSERVACION, (object) this.objinspeccionapEL.OBSERVACION,
(object) this.objinspeccionapEL.FKTIPOINSPECCION, (object) this.objinspeccionapEL.FKTIPOINSPECCION,
(object) this.objinspeccionapEL.FKINSPECCIONAPAS, (object) this.objinspeccionapEL.FKINSPECCIONAPAS,
(object) this.objinspeccionapEL.DESCRIPCIONOTROMOTIVONEGACIONDISPONIBILIDAD,
(object) this.objinspeccionapEL.ASTATE (object) this.objinspeccionapEL.ASTATE
}; };
return this.baseDAL.Insertar(this.NombreTabla, this.CamposTabla, this.ValoresCampos, this.NombreConeccionBD, p_tdlTransaccion); return this.baseDAL.Insertar(this.NombreTabla, this.CamposTabla, this.ValoresCampos, this.NombreConeccionBD, p_tdlTransaccion);

View file

@ -296,6 +296,7 @@ namespace AyABL
DESCRIPCION, DESCRIPCION,
FKTIPOINSPECCION, FKTIPOINSPECCION,
FKINSPECCIONAPAS, FKINSPECCIONAPAS,
DESCRIPCIONOTROMOTIVONEGACIONDISPONIBILIDAD
} }
public enum t_dis_documento public enum t_dis_documento
{ {

View file

@ -131,5 +131,7 @@ namespace AyAEL.TRA
public int PKOBSERVACIONESCRITEC { get; set; } public int PKOBSERVACIONESCRITEC { get; set; }
public string OBSERVACION { get; set; } public string OBSERVACION { get; set; }
public string DESCRIPCIONOTROMOTIVONEGACIONDISPONIBILIDAD { get; set; }
} }
} }

Binary file not shown.

Binary file not shown.

View file

@ -783,7 +783,7 @@
</tr> </tr>
<tr> <tr>
<td colspan="5">Caudal reservado &nbsp; <asp:TextBox ID="txtCaudalReservado" Enabled="false" runat="server" ></asp:TextBox>&nbsp; m&#179;</td> <td colspan="5">Caudal reservado &nbsp; <asp:TextBox ID="txtCaudalReservado" Enabled="false" runat="server" ></asp:TextBox>&nbsp; m&#179;/Día</td>
</tr> </tr>
@ -1155,6 +1155,8 @@
<asp:ListItem Text="Sistemas de agua potable" Value="4"></asp:ListItem> <asp:ListItem Text="Sistemas de agua potable" Value="4"></asp:ListItem>
<asp:ListItem Text="Otro" Value="5"></asp:ListItem> <asp:ListItem Text="Otro" Value="5"></asp:ListItem>
<asp:ListItem Text="No aplica" Value="6"></asp:ListItem> <asp:ListItem Text="No aplica" Value="6"></asp:ListItem>
<asp:ListItem Text="No es posible de verificar" Value="7"></asp:ListItem>
</asp:RadioButtonList> </td> </asp:RadioButtonList> </td>
<td colspan="2"> <td colspan="2">
<div id="Div2" runat="server" > <div id="Div2" runat="server" >
@ -1166,7 +1168,7 @@
</tr> </tr>
<tr> <tr>
<td colspan="5"><strong>Nuevo servicio:</strong>&nbsp;</td> <td colspan="5"><strong>Acometida estará en vía con material de:(asfalto,lastre, etc)</strong>&nbsp;</td>
</tr> </tr>
@ -1181,7 +1183,7 @@
</asp:RadioButtonList> </td> </asp:RadioButtonList> </td>
<td colspan="2" class="auto-style1"> <td colspan="2" class="auto-style1">
<div id="dvDiametroNuevoServicio" runat="server" > <div id="dvDiametroNuevoServicio" runat="server" >
Diametro:&nbsp;<asp:RadioButtonList ID="rblDiametroNuevoServicio" runat="server" RepeatDirection="Horizontal" RepeatLayout="Table"> Diámetro propuesto de la conexión Aguas Residuales:&nbsp;<asp:RadioButtonList ID="rblDiametroNuevoServicio" runat="server" RepeatDirection="Horizontal" RepeatLayout="Table">
<asp:ListItem Text="100" Value="100"></asp:ListItem> <asp:ListItem Text="100" Value="100"></asp:ListItem>
<asp:ListItem Text="150" Value="150"></asp:ListItem> <asp:ListItem Text="150" Value="150"></asp:ListItem>
</asp:RadioButtonList> </asp:RadioButtonList>

File diff suppressed because it is too large Load diff

View file

@ -56,7 +56,6 @@ public partial class Forms_Trans_frwCriterioPA : General
try try
{ {
base.OnInit(e); base.OnInit(e);
InicializarFormulario(); InicializarFormulario();
} }
catch (Exception ex) catch (Exception ex)
@ -813,6 +812,9 @@ public partial class Forms_Trans_frwCriterioPA : General
} }
} }
protected void btnEnviarRevision_Click(object sender, EventArgs e) protected void btnEnviarRevision_Click(object sender, EventArgs e)
{ {
int nValorRetornado = 0; int nValorRetornado = 0;
@ -1116,6 +1118,7 @@ public partial class Forms_Trans_frwCriterioPA : General
public void habilitarCampos() public void habilitarCampos()
{ {
if (!Request.UrlReferrer.ToString().Contains("frwBusquedaSolicitud")) if (!Request.UrlReferrer.ToString().Contains("frwBusquedaSolicitud"))
{ {
//rblExisteNis.ClearSelection(); //rblExisteNis.ClearSelection();
@ -1137,13 +1140,16 @@ public partial class Forms_Trans_frwCriterioPA : General
txtOtroDiametro.Enabled = true; txtOtroDiametro.Enabled = true;
rblDisponibilidadAP.Enabled = true; rblDisponibilidadAP.Enabled = true;
chkId18.Enabled = true; chkId18.Enabled = true;
chkId19.Enabled = true; //chkId19.Enabled = true;
chkId21.Enabled = true; chkId21.Enabled = true;
chkId22.Enabled = true; chkId22.Enabled = true;
chkId23.Enabled = true; chkId23.Enabled = true;
chkId25.Enabled = true; chkId25.Enabled = true;
chkId26.Enabled = true; chkId26.Enabled = true;
chkId27.Enabled = true; chkId27.Enabled = true;
chkId30.Enabled = true;
chkId31.Enabled = true;
chkId32.Enabled = true;
rblExisteCCH.Enabled = true; rblExisteCCH.Enabled = true;
txtObservacionesExtensionRamal.Enabled = true; txtObservacionesExtensionRamal.Enabled = true;
rblUbicacionMedidor.Enabled = true; rblUbicacionMedidor.Enabled = true;
@ -1182,13 +1188,16 @@ public partial class Forms_Trans_frwCriterioPA : General
txtOtroDiametro.Enabled = false; txtOtroDiametro.Enabled = false;
rblDisponibilidadAP.Enabled = false; rblDisponibilidadAP.Enabled = false;
chkId18.Enabled = false; chkId18.Enabled = false;
chkId19.Enabled = false; //chkId19.Enabled = false;
chkId21.Enabled = false; chkId21.Enabled = false;
chkId22.Enabled = false; chkId22.Enabled = false;
chkId23.Enabled = false; chkId23.Enabled = false;
chkId25.Enabled = false; chkId25.Enabled = false;
chkId26.Enabled = false; chkId26.Enabled = false;
chkId27.Enabled = false; chkId27.Enabled = false;
chkId30.Enabled = false;
chkId31.Enabled = false;
chkId32.Enabled = false;
rblExisteCCH.Enabled = false; rblExisteCCH.Enabled = false;
txtObservacionesExtensionRamal.Enabled = false; txtObservacionesExtensionRamal.Enabled = false;
rblUbicacionMedidor.Enabled = false; rblUbicacionMedidor.Enabled = false;
@ -1228,13 +1237,16 @@ public partial class Forms_Trans_frwCriterioPA : General
txtOtroDiametro.Text = string.Empty; txtOtroDiametro.Text = string.Empty;
rblDisponibilidadAP.ClearSelection(); rblDisponibilidadAP.ClearSelection();
chkId18.Checked = false; chkId18.Checked = false;
chkId19.Checked = false; //chkId19.Checked = false;
chkId21.Checked = false; chkId21.Checked = false;
chkId22.Checked = false; chkId22.Checked = false;
chkId23.Checked = false; chkId23.Checked = false;
chkId25.Checked = false; chkId25.Checked = false;
chkId26.Checked = false; chkId26.Checked = false;
chkId27.Checked = false; chkId27.Checked = false;
chkId30.Checked = false;
chkId31.Checked = false;
chkId32.Checked = false;
rblExisteCCH.ClearSelection(); rblExisteCCH.ClearSelection();
txtObservacionesExtensionRamal.Text = string.Empty; txtObservacionesExtensionRamal.Text = string.Empty;
rblUbicacionMedidor.ClearSelection(); rblUbicacionMedidor.ClearSelection();
@ -1391,13 +1403,17 @@ public partial class Forms_Trans_frwCriterioPA : General
if (rblDisponibilidadAP.SelectedValue == "false") if (rblDisponibilidadAP.SelectedValue == "false")
{ {
if (chkId18.Checked == false && if (chkId18.Checked == false &&
chkId19.Checked == false && //chkId19.Checked == false &&
chkId21.Checked == false && chkId21.Checked == false &&
chkId22.Checked == false && chkId22.Checked == false &&
chkId23.Checked == false && chkId23.Checked == false &&
chkId25.Checked == false && chkId25.Checked == false &&
chkId26.Checked == false && chkId26.Checked == false &&
chkId27.Checked == false) chkId27.Checked == false &&
chkId30.Checked == false &&
chkId31.Checked == false &&
chkId32.Checked == false
)
{ {
rblDisponibilidadAP.Focus(); rblDisponibilidadAP.Focus();
EjecutarScript("inicializaTab('formulario','Mensaje','Motivos de la negación.');"); EjecutarScript("inicializaTab('formulario','Mensaje','Motivos de la negación.');");
@ -1906,7 +1922,7 @@ public partial class Forms_Trans_frwCriterioPA : General
objInspeccionBL.objinspeccionapEL.OBSERVACION = txtObservacionesCritec.Text; objInspeccionBL.objinspeccionapEL.OBSERVACION = txtObservacionesCritec.Text;
objInspeccionBL.objinspeccionapEL.FKINSPECCIONAPAS = p_nPK; objInspeccionBL.objinspeccionapEL.FKINSPECCIONAPAS = p_nPK;
objInspeccionBL.objinspeccionapEL.FKTIPOINSPECCION = 1;// int.Parse(Session["PKTIPOINSPECCION"].ToString());//AGUA POTABLE objInspeccionBL.objinspeccionapEL.FKTIPOINSPECCION = 1;// int.Parse(Session["PKTIPOINSPECCION"].ToString());//AGUA POTABLE
objInspeccionBL.objinspeccionapEL.DESCRIPCIONOTROMOTIVONEGACIONDISPONIBILIDAD = txtOtraRazon.Text;
objInspeccionBL.objinspeccionapEL.ASTATE = true; objInspeccionBL.objinspeccionapEL.ASTATE = true;
pkResult = objInspeccionBL.insertarObservacionCritec(p_tdlTransaccion); pkResult = objInspeccionBL.insertarObservacionCritec(p_tdlTransaccion);
@ -1932,11 +1948,11 @@ public partial class Forms_Trans_frwCriterioPA : General
pkResult = objInspeccionBL.insertarNegaciondisponibilidad(p_tdlTransaccion); pkResult = objInspeccionBL.insertarNegaciondisponibilidad(p_tdlTransaccion);
} }
if (chkId19.Checked) //if (chkId19.Checked)
{ //{
objInspeccionBL.objinspeccionapEL.FKTIPONEGACIONDISPONIBILIDAD = 19; // objInspeccionBL.objinspeccionapEL.FKTIPONEGACIONDISPONIBILIDAD = 19;
pkResult = objInspeccionBL.insertarNegaciondisponibilidad(p_tdlTransaccion); // pkResult = objInspeccionBL.insertarNegaciondisponibilidad(p_tdlTransaccion);
} //}
if (chkId21.Checked) if (chkId21.Checked)
{ {
objInspeccionBL.objinspeccionapEL.FKTIPONEGACIONDISPONIBILIDAD = 21; objInspeccionBL.objinspeccionapEL.FKTIPONEGACIONDISPONIBILIDAD = 21;
@ -1967,6 +1983,21 @@ public partial class Forms_Trans_frwCriterioPA : General
objInspeccionBL.objinspeccionapEL.FKTIPONEGACIONDISPONIBILIDAD = 27; objInspeccionBL.objinspeccionapEL.FKTIPONEGACIONDISPONIBILIDAD = 27;
pkResult = objInspeccionBL.insertarNegaciondisponibilidad(p_tdlTransaccion); pkResult = objInspeccionBL.insertarNegaciondisponibilidad(p_tdlTransaccion);
} }
if (chkId30.Checked)
{
objInspeccionBL.objinspeccionapEL.FKTIPONEGACIONDISPONIBILIDAD = 30;
pkResult = objInspeccionBL.insertarNegaciondisponibilidad(p_tdlTransaccion);
}
if (chkId31.Checked)
{
objInspeccionBL.objinspeccionapEL.FKTIPONEGACIONDISPONIBILIDAD = 31;
pkResult = objInspeccionBL.insertarNegaciondisponibilidad(p_tdlTransaccion);
}
if (chkId32.Checked)
{
objInspeccionBL.objinspeccionapEL.FKTIPONEGACIONDISPONIBILIDAD = 32;
pkResult = objInspeccionBL.insertarNegaciondisponibilidad(p_tdlTransaccion);
}
} }
catch (Exception ex) catch (Exception ex)
@ -2206,11 +2237,11 @@ public partial class Forms_Trans_frwCriterioPA : General
} }
if (chkId19.Checked) //if (chkId19.Checked)
{ //{
objInspeccionBL.objinspeccionapEL.FKTIPONEGACIONDISPONIBILIDAD = 19; // objInspeccionBL.objinspeccionapEL.FKTIPONEGACIONDISPONIBILIDAD = 19;
pkResult = objInspeccionBL.insertarNegaciondisponibilidad(p_tdlTransaccion); // pkResult = objInspeccionBL.insertarNegaciondisponibilidad(p_tdlTransaccion);
} //}
if (chkId21.Checked) if (chkId21.Checked)
{ {
@ -2247,6 +2278,24 @@ public partial class Forms_Trans_frwCriterioPA : General
objInspeccionBL.objinspeccionapEL.FKTIPONEGACIONDISPONIBILIDAD = 27; objInspeccionBL.objinspeccionapEL.FKTIPONEGACIONDISPONIBILIDAD = 27;
pkResult = objInspeccionBL.insertarNegaciondisponibilidad(p_tdlTransaccion); pkResult = objInspeccionBL.insertarNegaciondisponibilidad(p_tdlTransaccion);
} }
if (chkId30.Checked)
{
objInspeccionBL.objinspeccionapEL.FKTIPONEGACIONDISPONIBILIDAD = 30;
pkResult = objInspeccionBL.insertarNegaciondisponibilidad(p_tdlTransaccion);
}
if (chkId31.Checked)
{
objInspeccionBL.objinspeccionapEL.FKTIPONEGACIONDISPONIBILIDAD = 31;
pkResult = objInspeccionBL.insertarNegaciondisponibilidad(p_tdlTransaccion);
}
if (chkId32.Checked)
{
objInspeccionBL.objinspeccionapEL.FKTIPONEGACIONDISPONIBILIDAD = 32;
pkResult = objInspeccionBL.insertarNegaciondisponibilidad(p_tdlTransaccion);
}
} }
@ -2749,6 +2798,8 @@ public partial class Forms_Trans_frwCriterioPA : General
} }
} }
/// <summary> /// <summary>
/// LLena el listado /// LLena el listado
/// </summary> /// </summary>
@ -2860,8 +2911,8 @@ public partial class Forms_Trans_frwCriterioPA : General
{ {
if (int.Parse(row["FKTIPONEGACIONDISPONIBILIDAD"].ToString()) == 18) if (int.Parse(row["FKTIPONEGACIONDISPONIBILIDAD"].ToString()) == 18)
chkId18.Checked = true; chkId18.Checked = true;
if (int.Parse(row["FKTIPONEGACIONDISPONIBILIDAD"].ToString()) == 19) //if (int.Parse(row["FKTIPONEGACIONDISPONIBILIDAD"].ToString()) == 19)
chkId19.Checked = true; // chkId19.Checked = true;
if (int.Parse(row["FKTIPONEGACIONDISPONIBILIDAD"].ToString()) == 21) if (int.Parse(row["FKTIPONEGACIONDISPONIBILIDAD"].ToString()) == 21)
chkId21.Checked = true; chkId21.Checked = true;
if (int.Parse(row["FKTIPONEGACIONDISPONIBILIDAD"].ToString()) == 22) if (int.Parse(row["FKTIPONEGACIONDISPONIBILIDAD"].ToString()) == 22)
@ -2874,9 +2925,18 @@ public partial class Forms_Trans_frwCriterioPA : General
chkId26.Checked = true; chkId26.Checked = true;
if (int.Parse(row["FKTIPONEGACIONDISPONIBILIDAD"].ToString()) == 27) if (int.Parse(row["FKTIPONEGACIONDISPONIBILIDAD"].ToString()) == 27)
chkId27.Checked = true; chkId27.Checked = true;
if (int.Parse(row["FKTIPONEGACIONDISPONIBILIDAD"].ToString()) == 30)
chkId30.Checked = true;
if (int.Parse(row["FKTIPONEGACIONDISPONIBILIDAD"].ToString()) == 31)
chkId31.Checked = true;
if (int.Parse(row["FKTIPONEGACIONDISPONIBILIDAD"].ToString()) == 32)
chkId32.Checked = true;
txtOtraRazon.Text = dsInspeccion.Tables[0].Rows[0]["DESCRIPCIONOTROMOTIVONEGACIONDISPONIBILIDAD"].ToString();
} }
} }
txtOtraRazon.Visible = true;
} }
if (rblDisponibilidadAP.SelectedValue.ToString().ToLower() == "false") if (rblDisponibilidadAP.SelectedValue.ToString().ToLower() == "false")
{ {
@ -2943,6 +3003,8 @@ public partial class Forms_Trans_frwCriterioPA : General
} }
} }
/// <summary> /// <summary>
/// Carga el grid principal /// Carga el grid principal
/// </summary> /// </summary>

View file

@ -912,20 +912,20 @@ public partial class Forms_TRA_frwRequisitos : General
System.IO.File.Copy(strResult, pdfPath + @"\" + strNombreArchivo, true); System.IO.File.Copy(strResult, pdfPath + @"\" + strNombreArchivo, true);
System.IO.File.Copy(strResult, ConfigurationManager.AppSettings["RutaPdfAdjuntosSql"].ToString() + @"\" + strNombreArchivo, true); System.IO.File.Copy(strResult, ConfigurationManager.AppSettings["RutaPdfAdjuntosSql"].ToString() + @"\" + strNombreArchivo, true);
Documento oDoc = new Documento(); //Documento oDoc = new Documento();
//se transaforma el archivo a un arreglo de bytes ////se transaforma el archivo a un arreglo de bytes
byte[] bDoc = System.IO.File.ReadAllBytes(pdfPath + @"\" + strNombreArchivo.Replace(" ", "_")); //byte[] bDoc = System.IO.File.ReadAllBytes(pdfPath + @"\" + strNombreArchivo.Replace(" ", "_"));
string nombreAdjunto = pdfPath + @"\" + strNombreArchivo.Replace(".pdf", ""); //string nombreAdjunto = pdfPath + @"\" + strNombreArchivo.Replace(".pdf", "");
//se carga el archivo y el registro a vision 2020 ////se carga el archivo y el registro a vision 2020
string strResultado = oDoc.Archivar_Documento(lblNumSolicitud.Text.Trim() + "|" + "Requisito", strNombreArchivo.Replace(" ", "_"), bDoc); //string strResultado = oDoc.Archivar_Documento(lblNumSolicitud.Text.Trim() + "|" + "Requisito", strNombreArchivo.Replace(" ", "_"), bDoc);
if (strResultado == string.Empty) //if (strResultado == string.Empty)
{ //{
File.Delete(nombreAdjunto + ".pdf"); // File.Delete(nombreAdjunto + ".pdf");
} //}
AyABL.TRA.documentoBL objdocumentoBL = new AyABL.TRA.documentoBL(); AyABL.TRA.documentoBL objdocumentoBL = new AyABL.TRA.documentoBL();
objdocumentoBL.objdocumentoEL.Descripcion = "Respuesta al cliente de documentos incompletos"; objdocumentoBL.objdocumentoEL.Descripcion = "Respuesta al cliente de documentos incompletos";

View file

@ -32,11 +32,11 @@
<add key="LLAVEAPCR" value="7007B685-6BA9-4014-BE40-C486F61FEAE6"/> <add key="LLAVEAPCR" value="7007B685-6BA9-4014-BE40-C486F61FEAE6"/>
<add key="DocumentosMachote" value="\\fileproyectos\FileDesarrollo\SIGDD\DocumentosMachote"/> <add key="DocumentosMachote" value="\\fileproyectos\FileDesarrollo\SIGDD\DocumentosMachote"/>
<add key="DocumentosODT" value="\\fileproyectos\FileDesarrollo\SIGDD\DocumentosODT"/> <add key="DocumentosODT" value="\\fileproyectos\FileDesarrollo\SIGDD\DocumentosODT"/>
<add key="DocumentosPDF" value="\\fileproyectos\FileDesarrollo\SIGDD\DocumentosPDF"/> <add key="DocumentosPDF" value="C:\Raiz2\SIGDD\DocumentosPDF"/>
<add key="AspPDF_RegKey" value="GYlbhSTuhBzuSEXhSunif/sB0qIibkxtJd/XgRDVhDEKPMKsIFKCREnORVOu1TlBySzUm0d1PTA/"/> <add key="AspPDF_RegKey" value="GYlbhSTuhBzuSEXhSunif/sB0qIibkxtJd/XgRDVhDEKPMKsIFKCREnORVOu1TlBySzUm0d1PTA/"/>
<add key="Imagenes" value="\\fileproyectos\FileDesarrollo\SIGDD\Images\Logos\logoAyA.png"/> <add key="Imagenes" value="\\fileproyectos\FileDesarrollo\SIGDD\Images\Logos\logoAyA.png"/>
<add key="TamañoArchivosBytes" value="20971520"/> <add key="TamañoArchivosBytes" value="20971520"/>
<add key="RutaPdfAdjuntosSql" value="\\fileproyectos\FileDesarrollo\SIGDD\DocumentosPDF"/> <add key="RutaPdfAdjuntosSql" value="C:\Raiz2\SIGDD\DocumentosPDF"/>
<add key="SIGLAS" value="SIGDD"/> <add key="SIGLAS" value="SIGDD"/>
<!--CREDENCIALES PARA ACCESAR EL DIRECTORIO ASTATE--> <!--CREDENCIALES PARA ACCESAR EL DIRECTORIO ASTATE-->
<add key="pActiveDirectory" value="disponibilidad"/> <add key="pActiveDirectory" value="disponibilidad"/>