terça-feira, 28 de junho de 2016

USERLGI USERLGA Descriptografar usuário

Abaixo o script, para verificar quem foi o usuário que incluiu ou efetuou a última alteração em algum registro sem a necessidade de acessar o log no configurador do Protheus:

SELECT
SUBSTRING(RA_USERLGI, 3, 1)+SUBSTRING(RA_USERLGI, 7, 1)+
SUBSTRING(RA_USERLGI, 11,1)+SUBSTRING(RA_USERLGI, 15,1)+
SUBSTRING(RA_USERLGI, 2, 1)+SUBSTRING(RA_USERLGI, 6, 1)+
SUBSTRING(RA_USERLGI, 10,1)+SUBSTRING(RA_USERLGI, 14,1)+
SUBSTRING(RA_USERLGI, 1, 1)+SUBSTRING(RA_USERLGI, 5, 1)+
SUBSTRING(RA_USERLGI, 9, 1)+SUBSTRING(RA_USERLGI, 13,1)+
SUBSTRING(RA_USERLGI, 17,1)+SUBSTRING(RA_USERLGI, 4, 1)+
SUBSTRING(RA_USERLGI, 8, 1) Usuario_CRIAÇÃO
FROM SRA010
WHERE RA_FILIAL = '02' AND RA_MAT = '032109'

SELECT
SUBSTRING(RA_USERLGA, 3, 1)+SUBSTRING(RA_USERLGA, 7, 1)+
SUBSTRING(RA_USERLGA, 11,1)+SUBSTRING(RA_USERLGA, 15,1)+
SUBSTRING(RA_USERLGA, 2, 1)+SUBSTRING(RA_USERLGA, 6, 1)+
SUBSTRING(RA_USERLGA, 10,1)+SUBSTRING(RA_USERLGA, 14,1)+
SUBSTRING(RA_USERLGA, 1, 1)+SUBSTRING(RA_USERLGA, 5, 1)+
SUBSTRING(RA_USERLGA, 9, 1)+SUBSTRING(RA_USERLGA, 13,1)+
SUBSTRING(RA_USERLGA, 17,1)+SUBSTRING(RA_USERLGA, 4, 1)+
SUBSTRING(RA_USERLGA, 8, 1) Usuario_ALTERAÇÃO
FROM SRA010
WHERE RA_FILIAL = '02' AND RA_MAT = '032109'

segunda-feira, 20 de junho de 2016

INI P12 Base Local C/ Ctree Local Files

[TESTEP12]
SourcePath=C:\PROTHEUS12\apo
RootPath=C:\PROTHEUS12\protheus_data
ctreerootpath=C:\PROTHEUS12\protheus_data
StartPath=\system\
x2_path=
RpoDb=TOP
RpoLanguage=portuguese
RpoVersion=120
Cisasync=0
LocalFiles=CTREE
Trace=0
localdbextension=.dtc
PictFormat=DEFAULT
DateFormat=DEFAULT
RegionalLanguage=BRA
TOPDataBase=MSSQL
TOPServer=localhost
TOPALIAS=P12

[Drivers]
Active=TCP

[TCP]
TYPE=TCPIP
Port=5050

[General]
InstallPatch=C:\PROTHEUS12
consolelog=1
consolemaxsize=100000
consolefile=C:\PROTHEUS12\bin\console.log
ctreemode=server

[ctreeserver]
ctuserid=ADMIN
ctuserpass=ADMIN
ctservername=FAIRCOMS@127.0.0.1

;[licenseserver]
;enable=0
;EnableNumber=0
;port=5555
;ShowStatus=0

;[licenseclient]
;server=127.0.0.1
;port=5555

[SERVICE]
name=AppServerP12

displayname=.AppServerP12

quinta-feira, 16 de junho de 2016

Documento Processo P12 RH



Abaixo itens documentados no TDS perante as mudanças do GPE no Protheus V12:
    GPE00112_Calculo_de_Rescisão_Como_Fazer_?Página: GPE00212_Cadastro_Tabela_INSSPágina: GPE00312_Como_calcular_periculosidade_?Página: GPE00412_Calculo_de_Periculosidade_sobre_Salario_ e_FaltasPágina: GPE00512_Calculo_de_Periculosidade_sobre_salario_e_hora_extraPágina: GPE00612_Cálculo_Folha_de_AutonomoPágina: GPE00712_Mensagem_Não_foi_possível_compor_o_RoteiroPágina: GPE00812_Recibo_de_férias_com_abonoPágina: GPE00912_Atualização_Protheus_12Página: GPE01012_Cadastro_PeriodosPágina: GPE01112_Cadastro_RoteiroPágina: GPE01212_Cadastro_VerbasPágina: GPE01312_Importação_de_VariaveisPágina: GPE01412_Cadastro_FuncionárioPágina: GPE01512_TransferênciasPágina: GPE01612_Controle_Dias_de_DireitoPágina: GPE01712_Cadastros_AusênciasPágina: GPE01812_IRRF_AdiantamentoPágina: GPE01912_Transferência_entre_Filiais_em_lotePágina: GPE02012_Tabelas_P12_RHPágina: GPE02112_Adicional_por_tempo_serviço_fevereiroPágina: GPE02212_Calculo_Folha_para_autonomosPágina: GPE02312_Fechamento_Gerando_ids_0106_0107_data_29/01/1900Página: GPE02412_Vídeos_Protheus_RHPágina: GPE02512_Não_leva_para_folha_INSS _férias_mês_seguintePágina: GPE02612_Fluxo_de_calculos_e_processosPágina: GPE02712_Como_calcular_benefícios_?Página: GPE02812_Cadastro_de_processosPágina: GPE02912_Como calcular_férias_?Página: GPE03012_Como_calcular_adiantamento_?Página: GPE03112_Integração_dos_roteiros_com_a_folhaPágina: GPE03212_Fechamento_do_adiantamentoPágina: GPE03312_Como_calcular_folha_?Página: GPE03412_Insuficiência_de_saldo_descontoPágina: GPE03512_Cadastro_de_Ausência_Licença_MaternidadePágina: GPE03612_Vale_transporte_na_rescisãoPágina: GPE03712_Calculo_de_Insalubridade_Incorreto_P12Página: GPE03812_Facilitador_de_Busca_da_Consulta_Padrão_P12Página: GPE03912_Cálculo_Insalubridade_Salário_MinimoPágina: GPE04012_Cálculo_Insalubridade_sobre_salário_basePágina: GPE04112_Cálculo_Insalubridade_salário_base_+_verbasPágina: GPE04212_Cálculo_Insalubridade_salário_minimo_+_verbasPágina: GPE04312_Erro_cannot_find_function_GP040WRAISPágina: GPE04412_Como_fazer_importação_de_variáveis?Página: GPE04512_Cancelamento_verbas_do_pontoPágina: GPE04612_Cancelamento_de_integraçãoPágina: GPE04712_Cancelamento_de_integração_para_calculo_de_rescisão_no_final_do_mêsPágina: GPE04812_Manutenção_acumulados_P12Página: GPE04912_Verbas_férias_e_férias_mês_seguinte_como_configurar?Página: GPE05012_Calculo_periculosidade_proporcional_admissãoPágina: GPE05112_Como_calcular_a_diferença_de_férias?Página: GPE05212_Geracao_TurnosPágina: GPE05312_Folha_complementarPágina: Mudanças - P11 X P12 - em ConstruçãoPágina: Perguntas e Respostas versão 12



REF:
http://tdn.totvs.com/pages/releaseview.action?pageId=223935327
http://tdn.totvs.com/display/public/PROT/Videos+Protheus+12+-+Recursos+Humanos

terça-feira, 7 de junho de 2016

Compilando Classe ADVPL

Compilando Classe.

http://www.helpfacil.com.br/forum/display_topic_threads.asp?ForumID=1&TopicID=20898

Atualização automática SmartClient Protheus CFG

Após atualização do binário, caso a rede esteja com um tráfego considerado bom, é possível atualizar a pasta smartclient de forma automática, com a seguinte configuração no appserver.ini:

[UPDATE]
Enable=1
PathWindows=C:\Protheus\bin\smartclient

Exemplo de ambiente:

[xxxxx]
SourcePath=C:\Protheus\apo\erp\
RootPath=C:\Protheus\Protheus_Data
StartPath=\system\
x2_path=
RpoDb=Top
RpoLanguage=portuguese
RpoVersion=110
LocalFiles=ads
Trace=0
localdbextension=.dbf
PictFormat=DEFAULT
DateFormat=DEFAULT
RegionalLanguage=BRA
helpserver=help.outsourcing.com.br/P11
TOPDataBase=MSSQL
TOPServer=xxx.xxx.xx.x
TOPALIAS=xxx
InactiveTimeout=420

[Drivers]
Active=TCP

[TCP]
TYPE=TCPIP
Port=xxxx

[UPDATE]
Enable=1
PathWindows=C:\Protheus\bin\smartclient

[General]
InstallPath=C:\Protheus
;Segmento=xxxx
;Serie===xx

[LICENSESERVER]
Enable=0
Port=5555
ShowStatus=1
EnableNumber=0

[LICENSECLIENT]
enable=1
server=localhost
port=5555
ShowStatus=1

[SERVICE]
name=Slave1
displayname=.Slave1

[MAIL]
Protocol=POP3