-
Notifications
You must be signed in to change notification settings - Fork 0
/
Config Tecno Watt.txt
351 lines (267 loc) · 11.1 KB
/
Config Tecno Watt.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
//////////////////////////////////// SERVIDOR ///////////////////////////////
https://wattinvoice.com/login
https://quality.wattinvoice.com/login
watt-app =================> ( SITIO DEL fRONTEND + bACKEND)
backup ====================> (BD EN SERVER)
* PARA SERVIDOR =========> Con REMOTE ACCESS DESKTOP (RDP: ip)
* PARA DB SERVER ========> OpenVpn + ip interna
---------------
///////////////////////////////// SQL SERVER LOCAL ///////////////////////////
COPIAR DB De SERVIDOR A LOCAL
sql server ==========> Database (boton derecho) ====> RESTAURAR DB
https://www.mythicsoft.com/agentransack/
ERRROR EN RESTAURAR DB:
eN Files: activar=========> Relocated...... (https://www.youtube.com/watch?v=YHBSPl7Uf5w&ab_channel=DeepakPant)
* Sino da con lo otro, activar todos privilegios de la Unidad
****************** SQL SERVER- CONIG PORT ********************************
CONNECT BD A NODEJS
1 Em SQL SERVER CONFIGURATION :
1.1 Ir, SQL Server Network Configuration ===> Protocols for SQLEXPRESS
1.1 Depois, Em TCP/IP (ativar ENABLE )<, Botao direito Propiedades:
1.1.1 Por em: IPADDRESS ===> IMAPII ===> TCP/Port 1433
2. Reiniciar SQL SERVER (Em Sql sql services)
---------------------------------------------------------------
USER (SQL SERVER) SIN AUTENTICATION WINDOWS EN LOCAL (USER EXTERNO LOCAL)
*https://www.youtube.com/watch?v=FVUEC_XVM5Y&ab_channel=KEYENetworking
Local server es : localhost
Segurity => Login New Login ==>....
**********************************************************************
//////////////////////////////// OpEN VPN /////////////////////////////////
OPEN VPN PARA =============> SERVIDORES DB SHORTCUT
En config: pegar los 3 archivos:
- ca
- ovpn_clinte1
- ovpn_clinte1.key
***************************************************
/////////////////////////////// REQUISITOS PROYECT WATT //////////////////////////////
Node -- version 10.15
Python 2.7.6 ===================> (install python + variable entorno )
Y node_modules de Angular
-------------
/////////////////// TOOLS /////////////////////////////
CONTROL DE VERSIONES (Muvhas versiones) NODE:JS ===========> NVM
*( NVM DONWLOAD ===> https://github.com/coreybutler/nvm-windows, https://github.com/coreybutler/nvm-windows/releases)
* COMANDOS NVM =====> https://www.loginradius.com/blog/async/run-multiple-nodejs-version-on-the-same-machine/
>> nvm ===================================> Version
>> nvm list ==============================> Todas las Version
>> nvm install 10.15.0 =====================> Ejemplo Install version 10.15.0
>> nvm use 8.11.1 //To enable 8.11.1 ============> CAMBIA PARA ACTIVA
-------------
* https://www.python.org/downloads/release/python-2716/
* Colocar variable de entorno (https://dicasdepython.com.br/resolvido-python-nao-e-reconhecido-como-um-comando-interno/)
python - 2.7.16
C:\Python27
-------------------------
AGENT RANSACK
Buscador windows
-------------------------
CLIENT SQL SERVER
ToadforSQLServer_Freeware_6.1.0.1759
dbeaver CE ==========> https://www.microsoft.com/pt-pt/p/dbeaver-ce/9pnkdr50694p?rtc=1&activetab=pivot:overviewtab
VPN
OpenVPN
FORTINET ======> https://www.fortinet.com/br/support/product-downloads
**********************************************************************************************
git hystory
git flow
***********************************************************************************************
/////////////////////////// BITBUCKET ////////////////////////////////
ERROR DE LOGIN CLONE REPOSITORY:
https://exerror.com/remote-bitbucket-cloud-recently-stopped-supporting-account-passwords-for-git-authentication/
>> git clone https://lpauperio2:***********@bitbucket.org/shortcutwatt/watt.git
***********************************************************************************************
///////////////////// WHATT LOCAL ///////////////////
WATT - NODE
>> npm run start-www
WATT - NG
ng config -g cli ==================> INSTALLAR
>> npm run start / npm run build
TODO (dentro de pasta node) ==========> >> npm run-script start-www ( Frontnted tiene que tener dist(>>npm run build)) / npm run-script start-operations / npm run start-operations
===========> npm run-script start-www ( ES ESTE )
localhost:420
RUN (Cambios Instataneos con SAVE) :
(Dentro Node ) ========= >>> npm run-script start-www (dejarlo Prendido)
(Dentro De Angular) =====> >>> npm run build (dejarlo Prendido)
WEB:
watt_albufeira
password: dantos ou .)cOJ?6C
----------------------
>> npm install --global --production windows-build-tools
INSTALAR ANGULAR WATT
>> npm i ====================================================> (Dentro de pasta)
-(en package.json====> napa: instalar las dependencias):
- Ver path si e igual no punto A* (em angular-cli.json); Sim nao ==========> MUDAR
>>> npm i flot
>>> npm i jquery.flot.spline
>>> npm i ika.jvectormap
* Si hay Error:
- Copiar pasta ======> "/node_modules/jquery.flot.spline",
A* Si hay Error (en ANGULAR-CLI.JSON).Ver path:
"../node_modules/jquery.flot/jquery.flot.js",
"../node_modules/jquery.flot/jquery.flot.resize.js",
"../node_modules/jquery.flot/jquery.flot.pie.js",
"../node_modules/jquery.flot/jquery.flot.time.js",
"../node_modules/jquery.flot/jquery.flot.categories.js",
----------------------
INSTALAR NODE WATT
>> npm i ====================================================> (Dentro de pasta)
******************************
DBbeared =======> 192.168.148.237
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
**********************************************************************************
============================================= TOOLS WATT/ PROGRAMA IMPORT =====================================================
//////// WATT_ MONITOR ( PROGRAMAS XML para CLIENTE DB) ///////
- En, config ===> Mudar mi DB local
- En WATT_Monitor: ( Sql =====> invoice_la ='' / clinete_id = 3)
***********************************************************************************
//////// WATT IMPOT UTIL 2102 ( Cargar XML) ////////
>> npm run-script start-www
- En WATT IMPORT UTILS 2.1.0.2 :
Facturas xml
cliente:
Comercial: EDP
:local
************************
ELECTRICIDAD ======> Tarifas Plans ========> Script
************************
================== CONFIGURA PARA LOS PROGRAMAS WATT USTIS ( en my PC windows) ===================
WINDOWS ----> ODB DATA drivers (Origem D Dados ODBC (332bits)) ======> ODBC drivers 17Sql ======> Adicionar =========>
watt_qa ==========> En config: tiene este nombre y produccion (watt_prod)
Watt_Local
localhost / ...126
----------------
3 Option (Wth Sql Server autenticate....
external
external
---------------
*********************************************
WATT
Ativar Change the defaultt ( Ver BDS)
================================================================================================================
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
======================================== INDAGUA ========================================
Indawater
PROGRAMS:
Playground ========> Busca Archivos Xml
ImportSevices ======> Mete a Xml en BD
stremReder
Program
************* PROCESSO AUTOMATICO ---- SIMULAR AMBIENTE para CORREGIR ERRORES ************
1- BUSCAR EN BD por; exyernal_id
contract_count , exxtern code 712
contarct where contarct_acout Id 27954
function:
sp contract...
sp import contract
----------------------------------------------
Visual Studio:
PROGRAMA 1:
PLAYGROUND SERVICES (BUSCADOR)
Buscar Con PLayground el CONTADOR. Que esta en tu pasta los archivos Zip de tu PC
*********************************************
PROGRAMA 2:
MODO 1 : ************** IMPORT SERVICES (Update BD con datos coregidos) ********************
2- Sacar La ROW Completa ( Excel 2021 contract ) para saber e Importar
2.1 Guarda (con separador por tabulacion Txt (con UFT8)) y despues convertir a Zip
separado por tabulacion TXT
convert ZIP
2.2 Run import services =========> en Visual Studio
3. Ir A BD y ver si esta solucionado
MODO 2: ********** PROCESSO MANUAL (ImportService) ****************
En DbBeaver:
1- Sql Script ========> Merter Un CALL con datos para llamar SP(Procedure)
2- En Sp_contract : poner raise cada metodo para sabar Hasta donde llega
3. Enter el CALL y ves hasta donde llega( con raise), Y ves el siguiente cual es problerma
call cache_contratcts(null, null)
------------
ULTIMO : ======> RUN ( Cache Contrats) =============> CORRER para UI
4 - ACTIVAR CONTRAT ( Cache Contrats ) =============> PARA ACTUALIZAR UI (INTEFAZ)
* cache contract ======= Sp cache Contrats ======> UPdate Contrat UI ====> con CALL
================================================================================
- Services EN Windows =======> Task Manager ====> Services
***********************************************************
CONTATOS NOVOS DE NAZARE EJEMPLO
WATT
. Con al Aplicacion WATT IMPORT , copiar el excel (En cvs) y pegar en la aplicacion e importar ( botoners ===> Criar contactos e criar CPE). (Y inserta BD automatic)
*******************************************************/****
Gliese - R. Veloso Salgado 1001, 4450-801 Leça da Palmeira (próximo mar shopping)
************************************************************
NUEVOS DADOS i2WaTERMETERS
GUardar en .txt ( con separcion de de virgulas . txt + UTF8)
COn .... ImportSevise (VisualStudio) ==========>(Correr)
verificar ======> select* form import process_log
**************************************************
enermet
1100305
6
1100037
FSTARMO
Vila do Conde
*************************************
vila
6
101
------
vila
5
63
*************************************
TRON
FLODIS
==============1100853
================= > C040MM
Vila do Conde
6
63
3.2487
0.1587
0.254
0
10
12.5
-----------------------------
5
1.312
-----------------------------
*********************************
Vila do Conde
6
315
----
itron
1100489
C065MM
********************************
Q1 =====> 0.04
q4 ======> 5
*************************************
38
ABB
ABB
1100543
C100MM
Vila do Conde
7
0
0
0
0
0
0
0
****************************************
Agua_N_Serie_Contador
*************************************************
CREAR UN INVOICE / FACTURA
UTilizar:
* WATT-Utils IM PORT =======: Cargar el Invoice al NODE BACKEND
* >> npm run start-oprations ( en NODE) (Mantener en RUN) =======> Para Procesar
- ver primeiro en CONFIG.JSON( em Node) el camino de las carpetas==========> Ver as path
- abril xml
- buscar el ID y ponerle un Con ID el invoice
-luego, com WATT-Utils IM PORT =======: Cargar el Invoice al NODE
-en DB:
select * cli-invpoice
-* Depois RUn >> npm run start-oprations ( en NODE) =======> Para Procesar
- en DB:
select * from Operations queue.....