mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
add search
This commit is contained in:
@@ -29,6 +29,13 @@ export class DeplomasService {
|
||||
diplomasGerarListNewCount = []
|
||||
diplomasParaAssinarNewCount = []
|
||||
|
||||
callbacks: {
|
||||
[key: string]: {
|
||||
funx: Function
|
||||
id: string
|
||||
}
|
||||
} = {}
|
||||
|
||||
constructor() {
|
||||
this.keyNameDiplomasAssinado = (SHA1("DeplomasService"+"diplomasAssinado")).toString()
|
||||
this.keyNameDiplomasReview = (SHA1("DeplomasService"+"diplomasReview")).toString()
|
||||
@@ -58,6 +65,15 @@ export class DeplomasService {
|
||||
|
||||
}
|
||||
|
||||
registerCallback({funx, id}) {
|
||||
this.callbacks[id] = { funx, id}
|
||||
}
|
||||
|
||||
runCallback() {
|
||||
for (const [key, value] of Object.entries(this.callbacks)) {
|
||||
value.funx()
|
||||
}
|
||||
}
|
||||
|
||||
get deplomasReviewCount() {
|
||||
return this._diplomasReviewCount
|
||||
|
||||
@@ -15,6 +15,13 @@ export class DespachoStoreService {
|
||||
private keyName: string;
|
||||
private _count = 0
|
||||
|
||||
callbacks: {
|
||||
[key: string]: {
|
||||
funx: Function
|
||||
id: string
|
||||
}
|
||||
} = {}
|
||||
|
||||
ObjectQueryService = new ObjectQueryService()
|
||||
|
||||
newList = []
|
||||
@@ -72,6 +79,17 @@ export class DespachoStoreService {
|
||||
|
||||
}
|
||||
|
||||
registerCallback({funx, id}) {
|
||||
this.callbacks[id] = { funx, id}
|
||||
}
|
||||
|
||||
|
||||
runCallback() {
|
||||
for (const [key, value] of Object.entries(this.callbacks)) {
|
||||
value.funx()
|
||||
}
|
||||
}
|
||||
|
||||
Query() {
|
||||
return {
|
||||
Update: (select:Function, update:Function) => {
|
||||
|
||||
@@ -13,6 +13,13 @@ private _list = []
|
||||
private keyName: string;
|
||||
newList = [];
|
||||
|
||||
callbacks: {
|
||||
[key: string]: {
|
||||
funx: Function
|
||||
id: string
|
||||
}
|
||||
} = {}
|
||||
|
||||
constructor() {
|
||||
|
||||
this.keyName = (SHA1("DespachosprStoreService")).toString()
|
||||
@@ -25,6 +32,17 @@ constructor() {
|
||||
|
||||
}
|
||||
|
||||
registerCallback({funx, id}) {
|
||||
this.callbacks[id] = { funx, id}
|
||||
}
|
||||
|
||||
runCallback() {
|
||||
for (const [key, value] of Object.entries(this.callbacks)) {
|
||||
value.funx()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
get list() {
|
||||
return this._list || []
|
||||
}
|
||||
|
||||
@@ -19,6 +19,13 @@ export class EventoaprovacaoStoreService {
|
||||
private _countsAll = 0
|
||||
|
||||
|
||||
callbacks: {
|
||||
[key: string]: {
|
||||
funx: Function
|
||||
id: string
|
||||
}
|
||||
} = {}
|
||||
|
||||
newList = []
|
||||
|
||||
constructor() {
|
||||
@@ -36,6 +43,18 @@ export class EventoaprovacaoStoreService {
|
||||
|
||||
}
|
||||
|
||||
|
||||
registerCallback({funx, id}) {
|
||||
this.callbacks[id] = { funx, id}
|
||||
}
|
||||
|
||||
runCallback() {
|
||||
for (const [key, value] of Object.entries(this.callbacks)) {
|
||||
value.funx()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
get countAll() {
|
||||
return this._countsAll
|
||||
}
|
||||
|
||||
@@ -16,6 +16,13 @@ export class ExpedientegdStoreService {
|
||||
|
||||
newList = []
|
||||
|
||||
callbacks: {
|
||||
[key: string]: {
|
||||
funx: Function
|
||||
id: string
|
||||
}
|
||||
} = {}
|
||||
|
||||
constructor() {
|
||||
|
||||
this.keyName = (SHA1("EventoaprovacaoStoreService")).toString()
|
||||
@@ -28,6 +35,17 @@ export class ExpedientegdStoreService {
|
||||
|
||||
}
|
||||
|
||||
registerCallback({funx, id}) {
|
||||
this.callbacks[id] = { funx, id}
|
||||
}
|
||||
|
||||
runCallback() {
|
||||
for (const [key, value] of Object.entries(this.callbacks)) {
|
||||
value.funx()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
get list() {
|
||||
return this._list
|
||||
}
|
||||
|
||||
@@ -18,6 +18,13 @@ export class PedidosStoreService {
|
||||
|
||||
listParecerCount: Event[] = []
|
||||
listDeferimentoCount: Event[] = []
|
||||
|
||||
callbacks: {
|
||||
[key: string]: {
|
||||
funx: Function
|
||||
id: string
|
||||
}
|
||||
} = {}
|
||||
|
||||
constructor() {
|
||||
|
||||
@@ -36,6 +43,17 @@ export class PedidosStoreService {
|
||||
}, 10)
|
||||
|
||||
}
|
||||
|
||||
registerCallback({funx, id}) {
|
||||
this.callbacks[id] = { funx, id}
|
||||
}
|
||||
|
||||
runCallback() {
|
||||
for (const [key, value] of Object.entries(this.callbacks)) {
|
||||
value.funx()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
get listparecer(): any[] {
|
||||
return this._listParecer || []
|
||||
|
||||
@@ -15,6 +15,13 @@ export class PendestesStoreService {
|
||||
|
||||
newList = []
|
||||
|
||||
callbacks: {
|
||||
[key: string]: {
|
||||
funx: Function
|
||||
id: string
|
||||
}
|
||||
} = {}
|
||||
|
||||
constructor() {
|
||||
|
||||
this.keyName = (SHA1("PendestesStoreService")).toString()
|
||||
@@ -28,6 +35,17 @@ export class PendestesStoreService {
|
||||
|
||||
}
|
||||
|
||||
registerCallback({funx, id}) {
|
||||
this.callbacks[id] = { funx, id}
|
||||
}
|
||||
|
||||
runCallback() {
|
||||
for (const [key, value] of Object.entries(this.callbacks)) {
|
||||
value.funx()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
get list() {
|
||||
return this._list
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user