This commit is contained in:
rrene
2020-05-18 18:21:21 -07:00
parent 1edbfcb48a
commit 27041f8587
718 changed files with 6 additions and 96367 deletions

View File

@@ -1,840 +0,0 @@
Option Explicit On
Option Strict On
Imports Extensiones
Imports System.Data
Partial Class ProductosyServicios
Inherits ClsPaginas
#Region " Propiedades "
Private ReadOnly Property CvePS As Integer
Get
Return ViewState("CvePS").ToString.ToEntero
End Get
End Property
Private Property Ret As String
Get
Return ViewState("Ret").ToString
End Get
Set(value As String)
ViewState("Ret") = value
End Set
End Property
Public Property dtPaqueteDetalles() As DataTable
Get
Return CType(ViewState("dtPaqueteDetalles"), DataTable)
End Get
Set(value As DataTable)
ViewState("dtPaqueteDetalles") = value
End Set
End Property
Public Property dtFamily() As DataTable
Get
Return CType(ViewState("dtFamily"), DataTable)
End Get
Set(value As DataTable)
ViewState("dtFamily") = value
End Set
End Property
#End Region
Protected Sub Page_Load(sender As Object, e As System.EventArgs) Handles Me.Load
If Not IsPostBack Then
ViewState("OrdenO") = ""
ViewState("OrdenC") = ""
ViewState("DTProductosServiciosCaracteristicas") = Nothing
ViewState("DTProductosServiciosCaracteristicasOpciones") = Nothing
ViewState("CveSubFamilia") = "-1"
Ret = "-1"
'CType(Me.Master, BaseMasterPage).EsPopup = True
'CType(Me.Master, BaseMasterPage).PopupWidth = 700
'RegistraScript("$get('tdContenido').style.height='350px'")
CargaClasificaciones()
CargaUnidadesMedida()
CargarMetodosInv()
If UsuarioActual.Empresa.UsaContabilidad Then
CargaCuentasContables()
End If
If Request("CvePS") IsNot Nothing AndAlso IsNumeric(Request("CvePS")) AndAlso Request("CvePS").ToEntero > 0 Then
ViewState("CvePS") = Request("CvePS")
CargaDatos()
'Configuración de Modalidad Update
BtnGuardar.Text = "Guardar Cambios"
LoadCaracteristicas()
CargarAlias()
Else
'Configuración de Modalidad Insert
ViewState("CvePS") = -1
ChkEstado.Enabled = False
ChkEstado.Checked = True
LblFechaCaptura.Text = Now.ToShortDateString()
LblUsuarioCapturo.Text = UsuarioActual.Usuario
BtnEliminar.Visible = False
End If
If Request("Ret") IsNot Nothing AndAlso Request("Ret").ToString <> "" Then
Ret = Request("Ret")
End If
CargaFamilia(ViewState("CveSubFamilia").ToString.ToEntero)
CargaDefault()
CargaSucursaless()
If UsuarioActual.TienePermisoProceso(122) Then
BtnEliminar.Visible = False
BtnGuardar.Visible = False
End If
End If
End Sub
#Region "S U C U R S A L E S"
Private Sub CargaSucursaless()
'Dim dtSuc As DataTable = GlobalDTSucursales().FiltraParametros("CveEmpresa = " + UsuarioActual.CveEmpresa.ToString)
'dtSuc.AcceptChanges()
'dtSuc.Columns.Add("Importe")
'dtSuc.Columns.Add("Activo")
'For Each row As DataRow In dtSuc.Rows
' row("Activo") = False
'Next
'dtSuc.AcceptChanges()
'If Not ViewState("CvePS") Is Nothing Then
' Dim ObjPS As New ClsProductosServicios
' If ObjPS.GetPSSucursales(CvePS) Then
' Dim dtSucP As DataTable = ObjPS.DtResultados
' For Each Row As DataRow In dtSucP.Rows
' Dim rowsToUpdate = dtSuc.AsEnumerable().Where(Function(r) r.Field(Of Integer)("CveSucursal") = Row("CveSucursal").ToString.ToEntero AndAlso r!CveSucursal.ToString.ToEntero > 0)
' For Each roww As DataRow In rowsToUpdate
' roww.SetField("Importe", Row("Importe"))
' roww.SetField("Activo", True)
' Next
' 'For Each drtt As DataRow In TmpDT.Select(String.Format("PS='{0}' AND CvePS=0", Row("PS")))
' ' drtt("CvePS") = tCve
' 'Next
' dtSuc.AcceptChanges()
' Next
' End If
' ObjPS.Dispose()
'End If
'gvSucursal.DataSource = dtSuc
'gvSucursal.DataBind()
Dim ObjPS As New ClsProductosServicios
If ObjPS.GetPSSucursales(CvePS, UsuarioActual.CveEmpresa) Then
gvSucursal.DataSource = ObjPS.DtResultados
gvSucursal.DataBind()
End If
ObjPS.Dispose()
End Sub
Protected Sub gvSucursal_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles gvSucursal.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
If e.Row.RowIndex = 0 Then
e.Row.Cells(0).Width = Unit.Pixel(50)
e.Row.Cells(1).Width = Unit.Pixel(100)
e.Row.Cells(2).Width = Unit.Pixel(100)
End If
' If e.Row.FCCheckBox("chkSucursal").Checked = True Then e.Row.Cells(0).BackColor = Drawing.Color.Yellow
End If
End Sub
#End Region
#Region "C A R A C T E R I S T I C A S"
Private Sub LoadCaracteristicas()
ViewState("OrdenC") = ""
CargaDatosC()
CargaProductosServiciosCaracteristicas()
CargaDatosO()
End Sub
Public Sub CargaDefault()
Dim ObjCaracteristicas As New ClsGralProductosServiciosCaracteristicas
If ObjCaracteristicas.GetProductosServiciosCaracteristicas() Then
ViewState("DTProductosServiciosCaracteristicas") = ObjCaracteristicas.DtResultados.Clone
End If
If ObjCaracteristicas.GetProductosServiciosCaracteristicasOpciones() Then
ViewState("DTProductosServiciosCaracteristicasOpciones") = ObjCaracteristicas.DtResultados.Clone
End If
ObjCaracteristicas.Dispose()
End Sub
Public Sub CargaDatosC()
Dim ObjCaracteristicas As New ClsGralProductosServiciosCaracteristicas
If ObjCaracteristicas.GetProductosServiciosCaracteristicas() Then
ViewState("DTProductosServiciosCaracteristicas") = ObjCaracteristicas.DtResultados.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
GlobalDTProductosServiciosCaracteristicas(UsuarioActual.CveEmpresa) = ObjCaracteristicas.DtResultados
Else
Me.GvDatosCaracteristicas.DataSource = Nothing
End If
If ViewState("OrdenC").ToString() <> String.Empty Then
CargaGrid(ViewState("OrdenC").ToString(), 0)
Else
CargaGrid("", 0)
End If
End Sub
Public Sub CargaDatosO()
Dim ObjOpciones As New ClsGralProductosServiciosCaracteristicas
If ObjOpciones.GetProductosServiciosCaracteristicasOpciones() Then
ViewState("DTProductosServiciosCaracteristicasOpciones") = ObjOpciones.DtResultados.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
GlobalDTProductosServiciosCaracteristicasOpciones(UsuarioActual.CveEmpresa) = ObjOpciones.DtResultados
Else
GvDatosOpciones.DataSource = Nothing
End If
If ViewState("OrdenO").ToString() <> String.Empty Then
CargaGrid(ViewState("OrdenO").ToString(), 1)
Else
CargaGrid("", 1)
End If
End Sub
Protected Sub LbAgregarC_Click(sender As Object, e As System.EventArgs) Handles LbAgregarC.Click
Dim ObjCaracteristicas As New ClsGralProductosServiciosCaracteristicas
If ObjCaracteristicas.AddProductosServiciosCaracteristicas(TxtCaracteristica.Text.Trim, CvePS, ChkEsOpcion.Checked, UsuarioActual.CveUsuario) Then
TxtCaracteristica.Text = ""
Alert("La nueva Característica de Producto o Servicio se guardó correctamente.", TipoMensaje.MsgInformacion)
ViewState("DTProductosServiciosCaracteristicas") = ObjCaracteristicas.DtResultados.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
GlobalDTProductosServiciosCaracteristicas(UsuarioActual.CveEmpresa) = ObjCaracteristicas.DtResultados
CambioProductosServiciosCaracteristicas()
End If
ObjCaracteristicas.Dispose()
End Sub
Protected Sub LbAgregarO_Click(sender As Object, e As System.EventArgs) Handles LbAgregarO.Click
Dim ObjOpciones As New ClsGralProductosServiciosCaracteristicas
If ObjOpciones.AddProductosServiciosCaracteristicasOpciones(TxtOpcion.Text.Trim, DdlCaracteristica.SelectedValue.ToEntero, UsuarioActual.CveUsuario) Then
TxtOpcion.Text = ""
Alert("La nueva Opción para Característica de Producto o Servicio se guardó correctamente.", TipoMensaje.MsgInformacion)
ViewState("DTProductosServiciosCaracteristicasOpciones") = ObjOpciones.DtResultados.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
GlobalDTProductosServiciosCaracteristicasOpciones(UsuarioActual.CveEmpresa) = ObjOpciones.DtResultados
CambioProductosServiciosCaracteristicasOpciones()
End If
ObjOpciones.Dispose()
End Sub
Private Sub CargaProductosServiciosCaracteristicas()
DdlCaracteristica.Items.Clear()
DdlCaracteristica.DataSource = GlobalDTProductosServiciosCaracteristicas(UsuarioActual.CveEmpresa).FiltraParametros("EsOpcion = 'Sí' AND CvePS = " + CvePS.ToString)
DdlCaracteristica.DataBind()
End Sub
Protected Sub DdlCaracteristica_SelectedIndexChanged(sender As Object, e As EventArgs) Handles DdlCaracteristica.SelectedIndexChanged
If ViewState("OrdenO").ToString() <> String.Empty Then
CargaGrid(ViewState("OrdenO").ToString(), 1)
Else
CargaGrid("", 1)
End If
End Sub
Protected Sub CambioProductosServiciosCaracteristicas()
CargaProductosServiciosCaracteristicas()
UpTitulosC.Update()
CargaDatosC()
CambioProductosServiciosCaracteristicasOpciones()
End Sub
Protected Sub CambioProductosServiciosCaracteristicasOpciones()
UpTitulosO.Update()
CargaDatosO()
End Sub
#End Region
#Region "G V C A R A C T E R I S T I C A S"
Protected Sub GvDatosCaracteristicas_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvDatosCaracteristicas.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
If e.Row.RowIndex = 0 Then
e.Row.Cells(0).Width = Unit.Pixel(150)
e.Row.Cells(1).Width = Unit.Pixel(100)
e.Row.Cells(2).Width = Unit.Pixel(100)
e.Row.Cells(3).Width = Unit.Pixel(100)
e.Row.Cells(4).Width = Unit.Pixel(50)
e.Row.Cells(5).Width = Unit.Pixel(50)
End If
e.Row.Cells(0).HorizontalAlign = HorizontalAlign.Left
If e.Row.RowState = DataControlRowState.Edit OrElse e.Row.RowState = 5 Then
'e.Row.FCDropDownList("DdlPSEdit").DataSource = ViewState("DTPS")
'e.Row.FCDropDownList("DdlPSEdit").DataBind()
'e.Row.FCDropDownList("DdlPSEdit").SelectedValue = e.Row.DBCampo("CvePS")
End If
End If
End Sub
Protected Sub GvDatosCaracteristicas_RowDeleting(sender As Object, e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles GvDatosCaracteristicas.RowDeleting
Dim ObjCaracteristicas As New ClsGralProductosServiciosCaracteristicas
If ObjCaracteristicas.RemoveProductosServiciosCaracteristica(GvDatosCaracteristicas.DataKeys(e.RowIndex).Value.ToString.ToEntero) Then
GvDatosCaracteristicas.EditIndex = -1
ViewState("DTProductosServiciosCaracteristicas") = ObjCaracteristicas.DtResultados.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
GlobalDTProductosServiciosCaracteristicas(UsuarioActual.CveEmpresa) = ObjCaracteristicas.DtResultados
Alert("La Característica del Producto o Servicio se eliminó correctamente.", TipoMensaje.MsgInformacion)
CambioProductosServiciosCaracteristicas()
End If
ObjCaracteristicas.Dispose()
End Sub
Protected Sub GvDatosCaracteristicas_RowCancelingEdit(sender As Object, e As System.Web.UI.WebControls.GridViewCancelEditEventArgs) Handles GvDatosCaracteristicas.RowCancelingEdit
GvDatosCaracteristicas.EditIndex = -1
If ViewState("OrdenC").ToString() <> String.Empty Then
CargaGrid(ViewState("OrdenC").ToString(), 0)
Else
CargaGrid("", 0)
End If
End Sub
Protected Sub GvDatosCaracteristicas_RowUpdating(sender As Object, e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GvDatosCaracteristicas.RowUpdating
Dim ObjCaracteristicas As New ClsGralProductosServiciosCaracteristicas
Dim CveCaracteristica As Integer = GvDatosCaracteristicas.DataKeys(e.RowIndex).Value.ToString.ToEntero
Dim Caracteristica As String = DirectCast(GvDatosCaracteristicas.Rows(e.RowIndex).FindControl("TxtCaracteristica"), TextBox).Text.Trim
Dim EsOpcion As Boolean = GvDatosCaracteristicas.Rows(e.RowIndex).FCCheckBox("ChkEsOpcion").Checked
If ObjCaracteristicas.UpdateProductosServiciosCaracteristica(Caracteristica, CvePS, EsOpcion, CveCaracteristica) Then
GvDatosCaracteristicas.EditIndex = -1
ViewState("DTProductosServiciosCaracteristicas") = ObjCaracteristicas.DtResultados.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
GlobalDTProductosServiciosCaracteristicas(UsuarioActual.CveEmpresa) = ObjCaracteristicas.DtResultados
Alert("Los cambios se guardaron correctamente.", TipoMensaje.MsgInformacion)
CambioProductosServiciosCaracteristicas()
End If
ObjCaracteristicas.Dispose()
End Sub
Protected Sub GvDatosCaracteristicas_RowEditing(sender As Object, e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles GvDatosCaracteristicas.RowEditing
GvDatosCaracteristicas.EditIndex = e.NewEditIndex
If ViewState("OrdenC").ToString() <> String.Empty Then
CargaGrid(ViewState("OrdenC").ToString(), 0)
Else
CargaGrid("", 0)
End If
End Sub
#End Region
#Region "G V O P C I O N E S"
Protected Sub GvDatosOpciones_RowDataBound(sender As Object, e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GvDatosOpciones.RowDataBound
If e.Row.RowType = DataControlRowType.DataRow Then
If e.Row.RowIndex = 0 Then
e.Row.Cells(0).Width = Unit.Pixel(150)
e.Row.Cells(1).Width = Unit.Pixel(150)
e.Row.Cells(2).Width = Unit.Pixel(100)
e.Row.Cells(3).Width = Unit.Pixel(100)
e.Row.Cells(4).Width = Unit.Pixel(50)
e.Row.Cells(5).Width = Unit.Pixel(50)
End If
e.Row.Cells(0).HorizontalAlign = HorizontalAlign.Left
If e.Row.RowState = DataControlRowState.Edit OrElse e.Row.RowState = 5 Then
e.Row.FCDropDownList("DdlCaracteristicaEdit").DataSource = GlobalDTProductosServiciosCaracteristicas(UsuarioActual.CveEmpresa).FiltraParametros("CvePS = " + CvePS.ToString)
e.Row.FCDropDownList("DdlCaracteristicaEdit").DataBind()
e.Row.FCDropDownList("DdlCaracteristicaEdit").SelectedValue = e.Row.DBCampo("CvePS")
End If
End If
End Sub
Protected Sub GvDatosOpciones_RowDeleting(sender As Object, e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles GvDatosOpciones.RowDeleting
Dim ObjOpciones As New ClsGralProductosServiciosCaracteristicas
If ObjOpciones.RemoveProductosServiciosCaracteristicasOpciones(GvDatosOpciones.DataKeys(e.RowIndex).Value.ToString.ToEntero) Then
GvDatosOpciones.EditIndex = -1
ViewState("DTProductosServiciosCaracteristicasOpciones") = ObjOpciones.DtResultados.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
GlobalDTProductosServiciosCaracteristicasOpciones(UsuarioActual.CveEmpresa) = ObjOpciones.DtResultados
Alert("La Opción para Caracteristica del Producto o Servicio se eliminó correctamente.", TipoMensaje.MsgInformacion)
CambioProductosServiciosCaracteristicasOpciones()
End If
ObjOpciones.Dispose()
End Sub
Protected Sub GvDatosOpciones_RowCancelingEdit(sender As Object, e As System.Web.UI.WebControls.GridViewCancelEditEventArgs) Handles GvDatosOpciones.RowCancelingEdit
GvDatosOpciones.EditIndex = -1
If ViewState("OrdenO").ToString() <> String.Empty Then
CargaGrid(ViewState("OrdenO").ToString(), 1)
Else
CargaGrid("", 1)
End If
End Sub
Protected Sub GvDatosOpciones_RowUpdating(sender As Object, e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles GvDatosOpciones.RowUpdating
Dim ObjOpciones As New ClsGralProductosServiciosCaracteristicas
Dim CveCaracteristica As Integer = DirectCast(GvDatosOpciones.Rows(e.RowIndex).FindControl("DdlCaracteristicaEdit"), DropDownList).SelectedValue.ToEntero
Dim CveOpcion As Integer = GvDatosOpciones.DataKeys(e.RowIndex).Value.ToString.ToEntero
Dim Opcion As String = DirectCast(GvDatosOpciones.Rows(e.RowIndex).FindControl("TxtOpcion"), TextBox).Text.Trim
If ObjOpciones.UpdateProductosServiciosCaracteristicasOpciones(Opcion, CveCaracteristica, CveOpcion) Then
GvDatosOpciones.EditIndex = -1
ViewState("DTProductosServiciosCaracteristicasOpciones") = ObjOpciones.DtResultados.FiltraParametros("CveEmpresa = " & UsuarioActual.CveEmpresa)
GlobalDTProductosServiciosCaracteristicasOpciones(UsuarioActual.CveEmpresa) = ObjOpciones.DtResultados
Alert("Los cambios se guardaron correctamente.", TipoMensaje.MsgInformacion)
CambioProductosServiciosCaracteristicasOpciones()
End If
ObjOpciones.Dispose()
End Sub
Protected Sub GvDatosOpciones_RowEditing(sender As Object, e As System.Web.UI.WebControls.GridViewEditEventArgs) Handles GvDatosOpciones.RowEditing
GvDatosOpciones.EditIndex = e.NewEditIndex
If ViewState("OrdenO").ToString() <> String.Empty Then
CargaGrid(ViewState("OrdenO").ToString(), 1)
Else
CargaGrid("", 1)
End If
End Sub
#End Region
#Region "O R D E N A M I E N T O"
Protected Sub LbOrden_Click(ByVal sender As Object, ByVal e As EventArgs)
Dim Orden As String = ""
Dim Campo As String = ""
Dim gvi As Integer = 0
Dim Literal As Literal = Nothing
Const OrdenInicial As String = ""
Dim Arg(2) As String
Arg = CType(sender, LinkButton).CommandArgument().ToString.Split(";"c)
Campo = Arg(0)
gvi = Arg(1).ToEntero
Literal = CType(CType(sender, LinkButton).NamingContainer.FindControl("Img" & Campo.Replace(",", "_")), Literal)
Campo = Campo.Substring(0, Campo.Length - 1)
If ViewState(String.Format("O{0}", Campo, gvi)) IsNot Nothing AndAlso ViewState(String.Format("O{0}", Campo, gvi)).ToString = String.Format("{0} DESC", Campo) Then
ViewState(String.Format("O{0}", Campo)) = String.Format("{0} ASC", Campo)
Literal.Text = String.Format("<i class='fa fa-sort-asc' style='color:#999' ></i>")
Else
ViewState(String.Format("O{0}", Campo, gvi)) = String.Format("{0} DESC", Campo)
Literal.Text = String.Format("<i class='fa fa-sort-desc' style='color:#999' ></i>")
End If
Orden = OrdenInicial & ViewState(String.Format("O{0}", Campo, gvi)).ToString
ViewState("Orden") = Orden
CargaGrid(Orden, gvi)
End Sub
Private Sub CargaGrid(Orden As String, gvi As Integer)
Dim Filtro As String = ""
If gvi = 0 Then
Filtro = "CvePS = " + CvePS.ToString
If Orden <> String.Empty Then
Dim DV As New DataView(CType(ViewState("DTProductosServiciosCaracteristicas"), DataTable), Filtro, Orden, DataViewRowState.CurrentRows)
GvDatosCaracteristicas.DataSource = DV.ToTable()
DV.Dispose()
Else
GvDatosCaracteristicas.DataSource = New DataView(GlobalDTProductosServiciosCaracteristicas(UsuarioActual.CveEmpresa), Filtro, "", DataViewRowState.CurrentRows)
End If
ViewState("OrdenC") = Orden
GvDatosCaracteristicas.DataBind()
UpDatosC.Update()
ElseIf gvi = 1 Then
If Not DdlCaracteristica.SelectedItem Is Nothing Then
Filtro = "CvePSCaracteristica = " + DdlCaracteristica.SelectedItem.Value.ToString
Else
Filtro = "1 = 2"
End If
If Orden <> String.Empty Then
Dim DV As New DataView(CType(ViewState("DTProductosServiciosCaracteristicasOpciones"), DataTable), Filtro, Orden, DataViewRowState.CurrentRows)
GvDatosOpciones.DataSource = DV.ToTable()
DV.Dispose()
Else
GvDatosOpciones.DataSource = New DataView(GlobalDTProductosServiciosCaracteristicasOpciones(UsuarioActual.CveEmpresa), Filtro, "", DataViewRowState.CurrentRows)
End If
ViewState("OrdenO") = Orden
GvDatosOpciones.DataBind()
UpDatosO.Update()
End If
End Sub
#End Region
Private Sub CargaClasificaciones()
DdlClasificacion.DataSource = GlobalDTClasificaciones(UsuarioActual.CveEmpresa)
DdlClasificacion.DataBind()
DdlClasificacion.Items.Insert(1, New ListItem("Sin Clasificacion", "0"))
DdlClasificacion.SelectedValueExist("0")
'BLOQUEA DDL CLASIFICACION
If UsuarioActual.Empresa.Funcionalidad(121) = "1" Then
If Not UsuarioActual.TienePermisoProceso(147) Then
DdlClasificacion.Enabled = False
End If
End If
End Sub
Private Sub CargarMetodosInv()
'Dim ps As New ClsProductosServicios
'ps.GetMetodosInv()
'ddlMetodos.DataSource = ps.DtResultados
' ps.Dispose()
ddlMetodos.DataSource = GlobalDTInvMetodosInventario
ddlMetodos.DataBind()
ddlMetodos.Items.Insert(0, New ListItem("Seleccione", "-1"))
End Sub
Private Sub CargaUnidadesMedida()
DdlUnidadMedida.DataSource = GlobalDTUnidadesMedida(UsuarioActual.CveEmpresa)
DdlUnidadMedida.DataBind()
End Sub
Private Sub CargaCuentasContables()
'Dim ObjContabilidad As New ClsContPAQi(UsuarioActual.Empresa.ServerContPAQi, UsuarioActual.Empresa.BDContPAQi, UsuarioActual.Empresa.UsrContPAQi, UsuarioActual.Empresa.PwdContPAQi)
'If ObjContabilidad.GetCuentas(-1, "-1", -1) Then
' DdlCtaContableVentas.DataSource = ObjContabilidad.DtResultados
' DdlCtaContableCompras.DataSource = ObjContabilidad.DtResultados
' DdlCtaContableInventarios.DataSource = ObjContabilidad.DtResultados
'Else
' DdlCtaContableVentas.DataSource = Nothing
' DdlCtaContableCompras.DataSource = Nothing
' DdlCtaContableInventarios.DataSource = Nothing
'End If
'DdlCtaContableVentas.DataBind()
'DdlCtaContableCompras.DataBind()
'DdlCtaContableInventarios.DataBind()
'ObjContabilidad.Dispose()
End Sub
#Region "Familias"
Protected Sub DdlFamilia_SelectedIndexChanged(sender As Object, e As System.EventArgs) Handles DdlFamilia.SelectedIndexChanged
CargaDdlSubFamilia()
DdlSubFamilia.SelectedValue = "-1"
End Sub
Public Sub CargaFamilia(Optional CveSubFamilia As Integer = 0)
dtFamily = GlobalDTSubFamilias(UsuarioActual.CveEmpresa)
CargaDdlFamilia()
If dtFamily.FiltraParametros(String.Format("CveClasificacion={0}", CveSubFamilia)).Rows.Count > 0 Then
DdlFamilia.SelectedValue = dtFamily.FiltraParametros(String.Format("CveClasificacion={0}", CveSubFamilia)).Rows(0)("CveCategoria").ToString
End If
CargaDdlSubFamilia()
If CveSubFamilia > 0 Then
DdlSubFamilia.SelectedValue = CveSubFamilia.ToString
End If
End Sub
Public Sub CargaDdlFamilia()
' Alert( GlobalDTFamilias(UsuarioActual.CveEmpresa).Rows.Count.ToString())
DdlFamilia.DataSource = GlobalDTFamilias(UsuarioActual.CveEmpresa)
DdlFamilia.DataBind()
End Sub
Public Sub CargaDdlSubFamilia()
DdlSubFamilia.DataSource = dtFamily.FiltraParametros(String.Format("CveCategoria={0}", DdlFamilia.SelectedValue), "CveClasificacion")
DdlSubFamilia.DataBind()
DdlSubFamilia.Items.Insert(0, New ListItem("----", "-1"))
End Sub
#End Region
Private Sub CargaDatos()
Dim ObjProductosServicios As New ClsProductosServicios()
If ObjProductosServicios.GetPS(CvePS, -1, UsuarioActual.CveEmpresa) Then
If ObjProductosServicios.DtResultados.Rows.Count > 0 Then
'SI NO TIENE VALOR Y NO TIENE EL PROCESO MUESTRA SIN CLASIFICACION
If ObjProductosServicios.CveClasificacion.ToString.Equals("-1") And Not UsuarioActual.TienePermisoProceso(147) And UsuarioActual.Empresa.Funcionalidad(121) = "1" Then
DdlClasificacion.SelectedValueExist("0")
Else
DdlClasificacion.SelectedValueExist(ObjProductosServicios.CveClasificacion.ToString)
End If
DdlUnidadMedida.SelectedValue = ObjProductosServicios.CveUnidadMedida.ToString
DdlTipoPS.SelectedValue = ObjProductosServicios.CveTipoPS.ToString
DdlCtaContableVentas.SelectedValue = ObjProductosServicios.IdCtaContVentas.ToString
DdlCtaContableCompras.SelectedValue = ObjProductosServicios.IdCtaContCompras.ToString
DdlCtaContableInventarios.SelectedValue = ObjProductosServicios.IdCtaContInventarios.ToString
DdlAsientoContVentas.SelectedValue = ObjProductosServicios.AsientoContableVentas.ToString
DdlAsientoContCompras.SelectedValue = ObjProductosServicios.AsientoContableCompras.ToString
TxtCodigo.Text = ObjProductosServicios.Codigo
TxtCodigo2.Text = ObjProductosServicios.Codigo2
TxtCodigoBarras.Text = ObjProductosServicios.CodigoBarras
TxtPS.Text = ObjProductosServicios.PS
TxtPrecio.Text = ObjProductosServicios.Precio.ToString("F4") 'no usa N4, porque pone comma
DdlIVA.SelectedValue = ObjProductosServicios.IVA.ToString
TxtRetIVA.Text = (ObjProductosServicios.RetIVA * 100).ToString
TxtMG.Text = ObjProductosServicios.MargenGanancia.ToString
ChkEstado.Checked = ObjProductosServicios.Estado
LblFechaCaptura.Text = ObjProductosServicios.Fecha.ToShortDateString
LblUsuarioCapturo.Text = ObjProductosServicios.Usuario
ChkAplicaParaConcepto.Checked = ObjProductosServicios.AplicaParaConcepto
ChkAplicaParaVenta.Checked = ObjProductosServicios.AplicaParaVenta
lbTitulo.Text = lbTitulo.Text & ObjProductosServicios.PS
ddlMetodos.SelectedValue = ObjProductosServicios.CveMetodoInventario.ToString
If ObjProductosServicios.CveMetodoInventario = 0 Then ddlMetodos.SelectedValue = UsuarioActual.Empresa.CveMetodoInventario.ToString
ViewState("CveSubFamilia") = ObjProductosServicios.DtResultados.Rows(0)("CveSubFamilia")
Else
Alert("El Producto o Servicio Solicitado no existe, por favor revise su búsqueda.", TipoMensaje.MsgAdvertencia)
BtnGuardar.Enabled = False
End If
End If
If UsuarioActual.Empresa.Funcionalidad(105) = "" Then
ddlProducto.DataSource = GlobalDTProductosServicios(UsuarioActual.CveEmpresa).FiltraParametros("CvePS <>" & CvePS, "PS")
ddlProducto.DataBind()
DdlProductows.Visible = False
Else
ddlProducto.Visible = False
End If
If ObjProductosServicios.GetPaqueteDetalle(CvePS) Then
gvPaqueteDetalle.DataSource = ObjProductosServicios.DtResultados
dtPaqueteDetalles = ObjProductosServicios.DtResultados
gvPaqueteDetalle.DataBind()
End If
ddlUnidad.DataSource = GlobalDTUnidadesMedida()
ddlUnidad.DataBind()
ObjProductosServicios.Dispose()
End Sub
Protected Sub BtnGuardar_Click(sender As Object, e As System.EventArgs) Handles BtnGuardar.Click
'Dim CerrarVentana As String = "opener.location.reload();window.close();"
'If Request("Popup") IsNot Nothing Then CerrarVentana = "self.parent.tb_remove();self.parent.location.reload();window.close();"
If (TxtCodigo.Text = TxtCodigo2.Text AndAlso TxtCodigo.Text <> "") Or
(TxtCodigo2.Text = TxtCodigoBarras.Text AndAlso TxtCodigo2.Text <> "") Or (TxtCodigo.Text = TxtCodigoBarras.Text AndAlso TxtCodigo.Text <> "") Then
Alert("Los codigos no pueden ser iguales. Por favor rectifique y vuelva a intentar.", TipoMensaje.MsgAdvertencia)
Return
End If
If DdlSubFamilia.SelectedValue = "-1" AndAlso UsuarioActual.TienePermisoProceso(138) Then
Alert("Se debe especificar Familia y Subfamilia de Costos. Por favor rectifique y vuelva a intentar.", TipoMensaje.MsgAdvertencia)
Exit Sub
End If
Dim ObjProductosServicios As New ClsProductosServicios()
Dim EsPaquete As Integer = If(gvPaqueteDetalle.Rows.Count = 0, 0, 1)
Dim CveMetodoInv As Integer = If(UsuarioActual.Empresa.UsaInventarios, ddlMetodos.SelectedValue.ToEntero, -1)
If CvePS = -1 Then
If ObjProductosServicios.AddPS(DdlClasificacion.SelectedValue.ToEntero, DdlSubFamilia.SelectedValue.ToEntero, DdlUnidadMedida.SelectedValue.ToEntero, TxtCodigo.Text.Trim, TxtCodigo2.Text.Trim, TxtCodigoBarras.Text.Trim, TxtPS.Text.Trim, TxtPrecio.Text.Trim.ToDouble, DdlIVA.SelectedValue.ToDouble, (TxtRetIVA.Text.Trim.ToDouble / 100), TxtMG.Text.Trim.ToDouble, DdlCtaContableVentas.SelectedValue.ToEntero, DdlCtaContableCompras.SelectedValue.ToEntero, DdlCtaContableInventarios.SelectedValue.ToEntero, DdlAsientoContVentas.SelectedValue.ToEntero, DdlAsientoContCompras.SelectedValue.ToEntero, ChkAplicaParaConcepto.Checked, ChkAplicaParaVenta.Checked, UsuarioActual.CveUsuario, UsuarioActual.CveEmpresa, CveMetodoInv, EsPaquete, CveTipoPS:=DdlTipoPS.SelectedValue.ToEntero, FuePorXML:=False) > 0 Then
'Alert("El Producto o Servicio se guardó correctamente.", TipoMensaje.MsgInformacion, "document.location.href=""/ProductosServicios.aspx?CvePS=" & ObjProductosServcios.CvePS.ToString & """;")
Alert("El Producto o Servicio se guardó correctamente.", TipoMensaje.MsgInformacion, "document.location.href=""/Ventas/CatPS.aspx"";")
Else
Alert("Ocurrió un error al agregar el Producto o Servicio. Por favor vuelva a intentar.", TipoMensaje.MsgError)
End If
Else
If ObjProductosServicios.UpdatePS(DdlClasificacion.SelectedValue.ToEntero, DdlSubFamilia.SelectedValue.ToEntero, DdlUnidadMedida.SelectedValue.ToEntero, TxtCodigo.Text.Trim, TxtCodigo2.Text.Trim, TxtCodigoBarras.Text.Trim, TxtPS.Text.Trim, TxtPrecio.Text.Trim.ToDouble, DdlIVA.SelectedValue.ToDouble, (TxtRetIVA.Text.Trim.ToDouble / 100), TxtMG.Text.Trim.ToDouble, DdlCtaContableVentas.SelectedValue.ToEntero, DdlCtaContableCompras.SelectedValue.ToEntero, DdlCtaContableInventarios.SelectedValue.ToEntero, DdlAsientoContVentas.SelectedValue.ToEntero, DdlAsientoContCompras.SelectedValue.ToEntero, ChkAplicaParaConcepto.Checked, ChkAplicaParaVenta.Checked, ChkEstado.Checked, UsuarioActual.CveUsuario, CvePS, CveMetodoInv, EsPaquete, CveTipoPS:=DdlTipoPS.SelectedValue.ToEntero) Then
'CargaDatos()
UpDatos.Update()
Dim AccionJS = If(Ret = "Comp", "ircompras();", "document.location.href=""/Ventas/CatPS.aspx"";")
Alert("Los cambios se guardaron correctamente.", TipoMensaje.MsgInformacion, AccionJS)
Else
Alert("Ocurrió un error al actualizar el Producto o Servicio. Por favor vuelva a intentar.", TipoMensaje.MsgError)
End If
ObjProductosServicios.CvePS = CvePS
End If
If ObjProductosServicios.CvePS > 0 Then
For i As Integer = 0 To gvSucursal.Rows.Count - 1
If gvSucursal.Rows(i).FCCheckBox("chkSucursal").Checked = False Then
ObjProductosServicios.RemovePSSucursales(ObjProductosServicios.CvePS, gvSucursal.Rows(i).DataKey("CveSucursal").ToEntero)
Else
If gvSucursal.Rows(i).FCHiddenField("hdnEnBD").Value.ToEntero = 1 Then
'Actualizarlo
ObjProductosServicios.UpdatePSSucursales(ObjProductosServicios.CvePS, gvSucursal.Rows(i).DataKey("CveSucursal").ToEntero, gvSucursal.Rows(i).FCTextBox("txtImporte").Text.ToDouble, UsuarioActual.CveUsuario)
'ObjProductosServicios.UpdatePSSucursales(ObjProductosServicios.CvePS, gvSucursal.Rows(i).FCHiddenField("hdnCveSucursal").Value.ToEntero, gvSucursal.Rows(i).FCTextBox("txtImporte").Text.ToDouble, UsuarioActual.CveUsuario)
Else
'Insertarlo
'ObjProductosServicios.AddPSSucursales(ObjProductosServicios.CvePS, gvSucursal.Rows(i).FCHiddenField("hdnCveSucursal").Value.ToEntero, gvSucursal.Rows(i).FCTextBox("txtImporte").Text.ToDouble, UsuarioActual.CveUsuario)
ObjProductosServicios.AddPSSucursales(ObjProductosServicios.CvePS, gvSucursal.Rows(i).DataKey("CveSucursal").ToEntero, gvSucursal.Rows(i).FCTextBox("txtImporte").Text.ToDouble, UsuarioActual.CveUsuario)
End If
End If
Next
End If
ObjProductosServicios.Dispose()
RecargaGlobal()
End Sub
Private Sub RecargaGlobal()
Dim Hilo As New System.Threading.Thread(AddressOf GeneraGlobalDT)
Hilo.Start()
End Sub
Private Sub GeneraGlobalDT()
Dim ObjPS As New ClsProductosServicios
If (ObjPS.GetPS(-1, -1, -1)) Then
GlobalDTProductosServicios(-1) = ObjPS.DtResultados
End If
If ObjPS.GetPSAlias(-1, -1) Then
GlobalDTProductosServiciosAlias(-1) = ObjPS.DtResultados
End If
If ObjPS.GetPSEquivalencias(-1, -1) Then
GlobalDTProductosServiciosEquivalencias(-1, -1) = ObjPS.DtResultados
End If
ObjPS.Dispose()
End Sub
Protected Sub BtnEliminar_Click(sender As Object, e As System.EventArgs) Handles BtnEliminar.Click
'Dim CerrarVentana As String = "opener.location.reload();window.close();"
'If Request("Popup") IsNot Nothing Then CerrarVentana = "self.parent.tb_remove();self.parent.location.reload();window.close();"
Dim ObjProductosServcios As New ClsProductosServicios()
If ObjProductosServcios.RemovePS(CvePS) Then
RecargaGlobal()
Alert("El Producto o Servicio se eliminó correctamente.", TipoMensaje.MsgInformacion, "document.location.href=""/Ventas/CatPS.aspx"";")
Else
Alert("Ocurrió un error al elimiar el Producto o Servicio. Por favor vuelva a intentar.", TipoMensaje.MsgError)
End If
ObjProductosServcios.Dispose()
End Sub
Protected Sub btguardar_Click(sender As Object, e As EventArgs) Handles btguardar.Click
Dim ObjProductosServicios As New ClsProductosServicios
If ObjProductosServicios.AddPaqueteDetalle(CvePS, HFProducto.Value.ToString.ToEntero,
txtCantidad.Text.ToDouble,
ddlTipo.SelectedValue.ToEntero,
ddlUnidad.SelectedValue.ToEntero) Then
If ObjProductosServicios.GetPaqueteDetalle(CvePS) Then
gvPaqueteDetalle.EditIndex = -1
gvPaqueteDetalle.DataSource = ObjProductosServicios.DtResultados
gvPaqueteDetalle.DataBind()
End If
End If
ObjProductosServicios.Dispose()
End Sub
Protected Sub HFProducto_ValueChanged(sender As Object, e As EventArgs) Handles HFProducto.ValueChanged
ddlUnidad.DataSource = GlobalDTProductosServiciosEquivalencias(HFProducto.Value.ToEntero, -1)
ddlUnidad.DataBind()
End Sub
Protected Sub gvPaqueteDetalle_RowDeleting(sender As Object, e As GridViewDeleteEventArgs) Handles gvPaqueteDetalle.RowDeleting
Dim ObjProductosServicios As New ClsProductosServicios
Dim tipo As Integer = 0
If dtPaqueteDetalles.Rows.Item(e.RowIndex)("Tipo").ToString = "Paquete" Then
tipo = 1
Else
tipo = 2
End If
If ObjProductosServicios.DeletePaqueteDetalle(dtPaqueteDetalles.Rows.Item(e.RowIndex)("CvePSPaquete").ToString.ToEntero,
dtPaqueteDetalles.Rows.Item(e.RowIndex)("CvePS").ToString.ToEntero,
dtPaqueteDetalles.Rows.Item(e.RowIndex)("Cantidad").ToString.ToDouble,
tipo,
dtPaqueteDetalles.Rows.Item(e.RowIndex)("CveUnidadMedida").ToString.ToEntero) Then
If ObjProductosServicios.GetPaqueteDetalle(CvePS) Then
gvPaqueteDetalle.EditIndex = -1
gvPaqueteDetalle.DataSource = ObjProductosServicios.DtResultados
dtPaqueteDetalles = ObjProductosServicios.DtResultados
gvPaqueteDetalle.DataBind()
End If
End If
ObjProductosServicios.Dispose()
End Sub
Protected Sub gvPaqueteDetalle_RowEditing(sender As Object, e As GridViewEditEventArgs) Handles gvPaqueteDetalle.RowEditing
gvPaqueteDetalle.EditIndex = e.NewEditIndex
gvPaqueteDetalle.DataSource = dtPaqueteDetalles
gvPaqueteDetalle.DataBind()
End Sub
Protected Sub gvPaqueteDetalle_RowCancelingEdit(sender As Object, e As GridViewCancelEditEventArgs) Handles gvPaqueteDetalle.RowCancelingEdit
gvPaqueteDetalle.EditIndex = -1
gvPaqueteDetalle.DataSource = dtPaqueteDetalles
gvPaqueteDetalle.DataBind()
End Sub
Protected Sub gvPaqueteDetalle_RowUpdating(sender As Object, e As GridViewUpdateEventArgs) Handles gvPaqueteDetalle.RowUpdating
Dim ObjProductosServicios As New ClsProductosServicios
If ObjProductosServicios.UpdatePaqueteDetalle(CvePS,
dtPaqueteDetalles.Rows.Item(e.RowIndex)("CvePS").ToString.ToEntero,
DirectCast(gvPaqueteDetalle.Rows(e.RowIndex).FindControl("txtECantidad"), TextBox).Text.ToDouble,
DirectCast(gvPaqueteDetalle.Rows(e.RowIndex).FindControl("ddlETipo"), DropDownList).SelectedValue.ToEntero,
DirectCast(gvPaqueteDetalle.Rows(e.RowIndex).FindControl("ddlEUnidad"), DropDownList).SelectedValue.ToEntero) Then
If ObjProductosServicios.GetPaqueteDetalle(CvePS) Then
gvPaqueteDetalle.EditIndex = -1
gvPaqueteDetalle.DataSource = ObjProductosServicios.DtResultados
dtPaqueteDetalles = ObjProductosServicios.DtResultados
gvPaqueteDetalle.DataBind()
End If
End If
ObjProductosServicios.Dispose()
End Sub
Protected Sub gvEquivalencias_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles gvPaqueteDetalle.RowDataBound
If e.Row.RowState = DataControlRowState.Edit OrElse e.Row.RowState = 5 Then
e.Row.FCDropDownList("ddlEUnidad").DataSource = GlobalDTUnidadesMedida()
e.Row.FCDropDownList("ddlEUnidad").SelectedValue = e.Row.DBCampo("CveUnidadMedida")
e.Row.FCDropDownList("ddlEUnidad").DataBind()
End If
End Sub
Protected Sub LbAgregar_Click(sender As Object, e As System.EventArgs) Handles LbAgregar.Click
Dim ObjAliasAdd As New ClsProductosServicios
If ObjAliasAdd.AddPSAlias(TxtAlias.Text.ToString, CvePS) Then
GlobalDTProductosServiciosAlias(-1) = ObjAliasAdd.DtResultados
CargarAlias()
UPGVAlias.Update()
Alert("Alias " + TxtAlias.Text + " agregado.", TipoMensaje.MsgInformacion)
TxtAlias.Text = ""
End If
ObjAliasAdd.Dispose()
End Sub
Protected Sub CargarAlias()
Dim ObjAlias As New ClsProductosServicios
ObjAlias.GetPSAlias(CvePS, UsuarioActual.CveEmpresa)
GVAlias.DataSource = ObjAlias.DtResultados
ObjAlias.Dispose()
GVAlias.DataBind()
End Sub
Protected Sub GVAlias_RowDeleting(sender As Object, e As System.Web.UI.WebControls.GridViewDeleteEventArgs) Handles GVAlias.RowDeleting
Dim ObjAliasDelete As New ClsProductosServicios
If ObjAliasDelete.RemovePSAlias(GVAlias.Rows(e.RowIndex).DataKey("CvePS").ToString.ToEntero, GVAlias.Rows(e.RowIndex).DataKey("PSAlias").ToString) Then
GlobalDTProductosServiciosAlias(-1) = ObjAliasDelete.DtResultados
GVAlias.EditIndex = -1
CargarAlias()
UPGVAlias.Update()
Alert("El Alias ha sido Eliminado", TipoMensaje.MsgInformacion)
Else
Alert("Error al Eliminar", TipoMensaje.MsgError)
End If
ObjAliasDelete.Dispose()
End Sub
End Class

View File

@@ -1,77 +0,0 @@
<LanguagePackTable>
<Product ProductName="Crystal Reports XI Release 3.1">
<LanguagePack LangCode="sr" Lcid="2074"/>
<LanguagePack LangCode="ar" Lcid="1025"/>
<LanguagePack LangCode="bg" Lcid="1026"/>
<LanguagePack LangCode="ca" Lcid="1027"/>
<LanguagePack LangCode="zh_TW" Lcid="1028"/>
<LanguagePack LangCode="zh_CN" Lcid="2052"/>
<LanguagePack LangCode="cs" Lcid="1029"/>
<LanguagePack LangCode="da" Lcid="1030"/>
<LanguagePack LangCode="de" Lcid="1031"/>
<LanguagePack LangCode="el" Lcid="1032"/>
<LanguagePack LangCode="en" Lcid="1033"/>
<LanguagePack LangCode="es" Lcid="3082"/>
<LanguagePack LangCode="fi" Lcid="1035"/>
<LanguagePack LangCode="fr" Lcid="1036"/>
<LanguagePack LangCode="he" Lcid="1037"/>
<LanguagePack LangCode="hu" Lcid="1038"/>
<LanguagePack LangCode="is" Lcid="1039"/>
<LanguagePack LangCode="it" Lcid="1040"/>
<LanguagePack LangCode="ja" Lcid="1041"/>
<LanguagePack LangCode="ko" Lcid="1042"/>
<LanguagePack LangCode="nl" Lcid="1043"/>
<LanguagePack LangCode="nb" Lcid="1044"/>
<LanguagePack LangCode="nn" Lcid="2068"/>
<LanguagePack LangCode="pl" Lcid="1045"/>
<LanguagePack LangCode="pt" Lcid="1046"/>
<LanguagePack LangCode="ro" Lcid="1048"/>
<LanguagePack LangCode="ru" Lcid="1049"/>
<LanguagePack LangCode="hr" Lcid="1050"/>
<LanguagePack LangCode="sk" Lcid="1051"/>
<LanguagePack LangCode="sq" Lcid="1052"/>
<LanguagePack LangCode="sv" Lcid="1053"/>
<LanguagePack LangCode="th" Lcid="1054"/>
<LanguagePack LangCode="tr" Lcid="1055"/>
<LanguagePack LangCode="id" Lcid="1057"/>
<LanguagePack LangCode="uk" Lcid="1058"/>
<LanguagePack LangCode="be" Lcid="1059"/>
<LanguagePack LangCode="sl" Lcid="1060"/>
<LanguagePack LangCode="et" Lcid="1061"/>
<LanguagePack LangCode="lv" Lcid="1062"/>
<LanguagePack LangCode="lt" Lcid="1063"/>
<LanguagePack LangCode="fa" Lcid="1065"/>
<LanguagePack LangCode="vi" Lcid="1066"/>
<LanguagePack LangCode="hy" Lcid="1067"/>
<LanguagePack LangCode="eu" Lcid="1069"/>
<LanguagePack LangCode="mk" Lcid="1071"/>
<LanguagePack LangCode="af" Lcid="1078"/>
<LanguagePack LangCode="fo" Lcid="1080"/>
<LanguagePack LangCode="hi" Lcid="1081"/>
<LanguagePack LangCode="sw" Lcid="1089"/>
<LanguagePack LangCode="gu" Lcid="1095"/>
<LanguagePack LangCode="ta" Lcid="1097"/>
<LanguagePack LangCode="te" Lcid="1098"/>
<LanguagePack LangCode="kn" Lcid="1099"/>
<LanguagePack LangCode="mr" Lcid="1102"/>
<LanguagePack LangCode="gl" Lcid="1110"/>
<LanguagePack LangCode="kok" Lcid="1111"/>
<LanguagePack LangCode="az" Lcid="1068"/>
<LanguagePack LangCode="bn" Lcid="1093"/>
<LanguagePack LangCode="bs" Lcid="5146"/>
<LanguagePack LangCode="ka" Lcid="1079"/>
<LanguagePack LangCode="kk" Lcid="1087"/>
<LanguagePack LangCode="ms" Lcid="1086"/>
<LanguagePack LangCode="ml" Lcid="1100"/>
<LanguagePack LangCode="mt" Lcid="1082"/>
<LanguagePack LangCode="mn" Lcid="1104"/>
<LanguagePack LangCode="pa" Lcid="1094"/>
<LanguagePack LangCode="se" Lcid="1083"/>
<LanguagePack LangCode="syr" Lcid="1114"/>
<LanguagePack LangCode="tn" Lcid="1074"/>
<LanguagePack LangCode="uz" Lcid="1091"/>
<LanguagePack LangCode="cy" Lcid="1106"/>
<LanguagePack LangCode="xh" Lcid="1076"/>
<LanguagePack LangCode="zu" Lcid="1077"/>
</Product>
</LanguagePackTable>

View File

@@ -1,202 +0,0 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View File

@@ -1,42 +0,0 @@
; ------------------------------------------------------------------------------
; Dependency file for setup wizards.
[Version]
Version=12.0.0.88
; ------------------------------------------------------------------------------
; Dependencies for CRViewer.DLL
[CRViewer.DLL]
Dest=$(CommonFiles)\Business Objects\4.0\crystalreportviewers120\ActiveXControls
Register=$(DLLSelfRegister)
Version=12.0.0.88
Uses1=CRAXDRT.DLL
Uses2=COMCAT.DLL
Uses3=OLEPRO32.DLL
Uses4=gdiplus.dll
Uses5=usp10.dll
Uses6=
[gdiplus.dll]
Dest=$(CommonFiles)\Business Objects\4.0\bin
Uses1=
[usp10.dll]
Dest=$(WinSysPath)
Uses1=
[COMCAT.DLL]
Dest=$(WinSysPathSysFile)
Register=$(DLLSelfRegister)
Uses1=
[OLEPRO32.DLL]
Dest=$(WinSysPath)
Uses1=
[CRAXDRT.DLL]
Dest=$(CommonFiles)\Business Objects\4.0\bin
Register=$(dllSelfRegister)
Uses1=

Some files were not shown because too many files have changed in this diff Show More