CRM Ventas mostrar ocultar controles
This commit is contained in:
@@ -404,7 +404,8 @@
|
|||||||
<div class="caption font-green">
|
<div class="caption font-green">
|
||||||
|
|
||||||
<i class="icon-pin font-green"></i>
|
<i class="icon-pin font-green"></i>
|
||||||
<span class="caption-subject bold uppercase"><a id="HlCliente" href="javascript:void(0);" runat="server" class="Texto" onclick="javascript:AbrirVentana('/Ventas/PopUpBuscarClientes.aspx?Opt=Fact', 800, 547, 'N', 'PopUpBuscar')">Cliente: </a></span>
|
<span class="caption-subject bold uppercase"><a id="HlCliente" href="javascript:void(0);" runat="server" class="Texto" onclick="javascript:AbrirVentana('/Ventas/PopUpBuscarClientes.aspx?Opt=Fact', 800, 547, 'N', 'PopUpBuscar')">
|
||||||
|
<asp:Label runat="server" id="LblTituloPorletCliente" Text ="Cliente:"> </asp:Label></a></span>
|
||||||
<asp:LinkButton ID="LnkAgregarCliente" runat="server" AlternateText="Agregar Cliente" Text="<i class='fa fa-plus-square'></i>" />
|
<asp:LinkButton ID="LnkAgregarCliente" runat="server" AlternateText="Agregar Cliente" Text="<i class='fa fa-plus-square'></i>" />
|
||||||
<asp:TextBox ID="TxtCodigo" runat="server" AutoPostBack="true" BorderStyle="None" Width="65px"></asp:TextBox>
|
<asp:TextBox ID="TxtCodigo" runat="server" AutoPostBack="true" BorderStyle="None" Width="65px"></asp:TextBox>
|
||||||
<asp:HiddenField ID="HdnCveCliente" runat="server" ClientIDMode="Static" Value="-1" />
|
<asp:HiddenField ID="HdnCveCliente" runat="server" ClientIDMode="Static" Value="-1" />
|
||||||
@@ -424,7 +425,8 @@
|
|||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
|
|
||||||
<table border="0" width="463px">
|
<table border="0" width="463px">
|
||||||
<tr align="left">
|
|
||||||
|
<tr align="left" runat="server" id="trNombreCliente">
|
||||||
<td width="95px"><b>Nombre:</b> </td>
|
<td width="95px"><b>Nombre:</b> </td>
|
||||||
<td width="200px">
|
<td width="200px">
|
||||||
<asp:Label ID="LblCliente" runat="server" Text="Cliente"></asp:Label></td>
|
<asp:Label ID="LblCliente" runat="server" Text="Cliente"></asp:Label></td>
|
||||||
@@ -432,12 +434,6 @@
|
|||||||
<td width="135px">
|
<td width="135px">
|
||||||
<asp:CheckBox ID="ChkEnviarFactura" runat="server" /></td>
|
<asp:CheckBox ID="ChkEnviarFactura" runat="server" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<%-- <tr runat="server" id="trFacturacionSucursal" visible="false">
|
|
||||||
<td><b>Facturar Sucursal :</b></td>
|
|
||||||
<td>
|
|
||||||
<asp:CheckBox ID="ChkFacturarSucursal" runat="server" OnCheckedChanged="ChkFacturarSucursal_CheckedChanged" />
|
|
||||||
</td>
|
|
||||||
</tr>--%>
|
|
||||||
<tr runat="server" id="trsucursalciente" visible="false">
|
<tr runat="server" id="trsucursalciente" visible="false">
|
||||||
<td align="left"><b>
|
<td align="left"><b>
|
||||||
<asp:Label ID="LblSucursal" runat="server" Text="Sucursal"></asp:Label>
|
<asp:Label ID="LblSucursal" runat="server" Text="Sucursal"></asp:Label>
|
||||||
@@ -510,6 +506,26 @@
|
|||||||
</table>
|
</table>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
<%--CRM--%>
|
||||||
|
<tr align="left" runat="server" id="trCRM1" visible="false">
|
||||||
|
<td width="95px"><b>Empresa:</b> </td>
|
||||||
|
<td width="200px">
|
||||||
|
<asp:Label ID="LblEmpresaCRM" runat="server" Text="Cliente"></asp:Label></td>
|
||||||
|
</tr>
|
||||||
|
<tr align="left" runat="server" id="trCRM2" visible="false" >
|
||||||
|
<td><b>RFC:</b> </td>
|
||||||
|
<td>
|
||||||
|
<asp:Label ID="LblRFCCRM" runat="server" Text="AAA010101AAA"></asp:Label></td>
|
||||||
|
</tr>
|
||||||
|
<tr align="left" runat="server" id="trCRM3" visible="false" >
|
||||||
|
<td><b>Medio de Captación::</b> </td>
|
||||||
|
<td>
|
||||||
|
<asp:Label ID="LblMedioCaptacionCRM" runat="server" Text=""></asp:Label></td>
|
||||||
|
</tr>
|
||||||
|
<%--CRM--%>
|
||||||
|
|
||||||
|
|
||||||
<tr runat="server" id="TrAtencionA" visible="false">
|
<tr runat="server" id="TrAtencionA" visible="false">
|
||||||
<td><b>Atención A:</b></td>
|
<td><b>Atención A:</b></td>
|
||||||
<td>
|
<td>
|
||||||
@@ -536,16 +552,20 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>
|
||||||
|
|
||||||
<asp:UpdatePanel ID="UpEmpresaCRM" runat="server" Visible="false" UpdateMode="Conditional" class="portlet light xspadding bordered whitoutcol" style="width: 473px;">
|
<%-- <asp:UpdatePanel ID="UpEmpresaCRM" runat="server" Visible="false" UpdateMode="Conditional" class="portlet light xspadding bordered whitoutcol" style="width: 473px;">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
<div class="portlet-title">
|
<div class="portlet-title">
|
||||||
<div class="caption font-green">
|
<div class="caption font-green" >
|
||||||
<i class="icon-pin font-green"></i>
|
<i class="icon-pin font-green"></i>
|
||||||
<span class="caption-subject bold uppercase">EMPRESA CRM </span>
|
<span class="caption-subject bold uppercase">EMPRESA CRM </span>
|
||||||
</div>
|
</div>
|
||||||
@@ -557,26 +577,15 @@
|
|||||||
<div class="form-body">
|
<div class="form-body">
|
||||||
|
|
||||||
<table border="0" width="463px">
|
<table border="0" width="463px">
|
||||||
<tr align="left">
|
|
||||||
<td width="95px"><b>Empresa:</b> </td>
|
|
||||||
<td width="200px">
|
|
||||||
<asp:Label ID="LblEmpresaCRM" runat="server" Text="Cliente"></asp:Label></td>
|
|
||||||
</tr>
|
|
||||||
<tr align="left">
|
|
||||||
<td><b>RFC:</b> </td>
|
|
||||||
<td>
|
|
||||||
<asp:Label ID="LblRFCCRM" runat="server" Text="AAA010101AAA"></asp:Label></td>
|
|
||||||
</tr>
|
|
||||||
<tr align="left">
|
|
||||||
<td><b>Medio de Captación::</b> </td>
|
|
||||||
<td>
|
|
||||||
<asp:Label ID="LblMedioCaptacionCRM" runat="server" Text=""></asp:Label></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ContentTemplate>
|
</ContentTemplate>
|
||||||
</asp:UpdatePanel>
|
</asp:UpdatePanel>--%>
|
||||||
|
|
||||||
<asp:UpdatePanel ID="UpParametros" runat="server" UpdateMode="Conditional" class="portlet light xspadding .nolineheight bordered whitoutcol" style="width: 310px;">
|
<asp:UpdatePanel ID="UpParametros" runat="server" UpdateMode="Conditional" class="portlet light xspadding .nolineheight bordered whitoutcol" style="width: 310px;">
|
||||||
<ContentTemplate>
|
<ContentTemplate>
|
||||||
|
|||||||
@@ -2512,7 +2512,13 @@ Partial Class Ventas
|
|||||||
TrObsAlmacen.Visible = False
|
TrObsAlmacen.Visible = False
|
||||||
TrTxtObsAlmacen.Visible = False
|
TrTxtObsAlmacen.Visible = False
|
||||||
TrPedido.Visible = False
|
TrPedido.Visible = False
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
TrOC.Visible = False
|
TrOC.Visible = False
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
DdlTipoComprobante.SelectedValue = "Op"
|
DdlTipoComprobante.SelectedValue = "Op"
|
||||||
Else
|
Else
|
||||||
Opcion = "Ing"
|
Opcion = "Ing"
|
||||||
@@ -6165,7 +6171,8 @@ Partial Class Ventas
|
|||||||
TxtCodigo.ReadOnly = True
|
TxtCodigo.ReadOnly = True
|
||||||
|
|
||||||
UpCliente.Visible = True
|
UpCliente.Visible = True
|
||||||
UpEmpresaCRM.Visible = False
|
|
||||||
|
'UpEmpresaCRM.Visible = False
|
||||||
Else
|
Else
|
||||||
LblEmpresaCRM.Text = ObjCRM.DtResultados.Rows(0)("Empresa").ToString()
|
LblEmpresaCRM.Text = ObjCRM.DtResultados.Rows(0)("Empresa").ToString()
|
||||||
LblRFCCRM.Text = ObjCRM.DtResultados.Rows(0)("RFC").ToString()
|
LblRFCCRM.Text = ObjCRM.DtResultados.Rows(0)("RFC").ToString()
|
||||||
@@ -6175,8 +6182,24 @@ Partial Class Ventas
|
|||||||
LblEnviarMail.Visible = False
|
LblEnviarMail.Visible = False
|
||||||
|
|
||||||
UPCondicionesPago.Visible = True
|
UPCondicionesPago.Visible = True
|
||||||
UpCliente.Visible = False
|
'UpCliente.Visible = False
|
||||||
UpEmpresaCRM.Visible = True
|
'UpEmpresaCRM.Visible = True
|
||||||
|
|
||||||
|
trNombreCliente.Visible = False
|
||||||
|
trsucursalciente.Visible = False
|
||||||
|
TrDireccion.Visible = False
|
||||||
|
TrCiudad.Visible = False
|
||||||
|
TrRFC.Visible = False
|
||||||
|
TrOP.Visible = False
|
||||||
|
trDireccionEnvio.Visible = False
|
||||||
|
|
||||||
|
TrAtencionA.Visible = True
|
||||||
|
trCRM1.Visible = True
|
||||||
|
trCRM2.Visible = True
|
||||||
|
trCRM3.Visible = True
|
||||||
|
|
||||||
|
LblTituloPorletCliente.Text = "EMPRESA CRM"
|
||||||
|
|
||||||
|
|
||||||
End If
|
End If
|
||||||
Me.CveVendedorEmpresaCRM = ObjCRM.DtResultados.Rows(0)("CveVendedorAsignado").ToString().ToEntero()
|
Me.CveVendedorEmpresaCRM = ObjCRM.DtResultados.Rows(0)("CveVendedorAsignado").ToString().ToEntero()
|
||||||
@@ -6184,6 +6207,10 @@ Partial Class Ventas
|
|||||||
DdlVendedor.SelectedValueExist(ObjCRM.DtResultados.Rows(0)("CveVendedorAsignado").ToString())
|
DdlVendedor.SelectedValueExist(ObjCRM.DtResultados.Rows(0)("CveVendedorAsignado").ToString())
|
||||||
DdlVendedor.Enabled = False
|
DdlVendedor.Enabled = False
|
||||||
LbAgregar.Enabled = True
|
LbAgregar.Enabled = True
|
||||||
|
|
||||||
|
'TrAtencionA.Visible = True
|
||||||
|
TrOC.Visible = True
|
||||||
|
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user