ionic-vhframeworks 10.0.5 → 10.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12468,13 +12468,16 @@ export declare class VhQueryAutoWeb {
|
|
|
12468
12468
|
* Hàm này bắt hiệu ứng mới cho object, block khi config chọn hiệu ứng khác
|
|
12469
12469
|
* example:
|
|
12470
12470
|
ngOnDestroy(){
|
|
12471
|
-
this.vhQueryAutoWeb.
|
|
12471
|
+
this.vhQueryAutoWeb.animationFromDatabase_Subscribe(this);
|
|
12472
12472
|
}
|
|
12473
12473
|
*/
|
|
12474
|
-
animationFromDatabase_Subscribe(_this: any
|
|
12474
|
+
animationFromDatabase_Subscribe(_this: any, options?: {
|
|
12475
|
+
isPage?: boolean;
|
|
12476
|
+
animationKeyToReset?: string[];
|
|
12477
|
+
}): void;
|
|
12475
12478
|
/**
|
|
12476
12479
|
* Hàm này hủy lệnh bắt hiệu ứng mới cho object, block khi config chọn hiệu ứng khác
|
|
12477
|
-
* this.vhQueryAutoWeb.
|
|
12480
|
+
* this.vhQueryAutoWeb.animationFromDatabase_Unsubscribe(this);
|
|
12478
12481
|
*/
|
|
12479
12482
|
animationFromDatabase_Unsubscribe(_this: any): void;
|
|
12480
12483
|
/**
|
|
@@ -12483,8 +12486,12 @@ export declare class VhQueryAutoWeb {
|
|
|
12483
12486
|
* @param _this
|
|
12484
12487
|
* @returns
|
|
12485
12488
|
*/
|
|
12486
|
-
animationFromDatabase(_this: any
|
|
12489
|
+
animationFromDatabase(_this: any, options?: {
|
|
12490
|
+
isPage?: boolean;
|
|
12491
|
+
animationKeyToReset?: string[];
|
|
12492
|
+
}): void;
|
|
12487
12493
|
private _animationFromDatabase;
|
|
12494
|
+
private _animationFromDatabase3;
|
|
12488
12495
|
private _animationFromDatabase2;
|
|
12489
12496
|
private _animationFromDatabase1;
|
|
12490
12497
|
/**
|
|
@@ -20386,6 +20393,120 @@ export declare class VhDevAutoWeb {
|
|
|
20386
20393
|
private vhMGDB_database;
|
|
20387
20394
|
private vhMGDB_image;
|
|
20388
20395
|
constructor(vhAlgorithm: VhAlgorithm, vhAuth: VhAuth, vhMGDB_auth: VhMGDB_auth, vhMGDB_rootdatabase: VhMGDB_rootdatabase, vhMGDB_pattern: VhMGDB_pattern, vhMGDB_database: VhMGDB_database, vhMGDB_image: VhMGDB_image);
|
|
20396
|
+
/**
|
|
20397
|
+
* @example:
|
|
20398
|
+
* this.vhDevAutoWeb.addPatternBlock({name:'Danh mục 1'})
|
|
20399
|
+
.then((block)=>{
|
|
20400
|
+
console.log('addPatternBlock', block);
|
|
20401
|
+
},(error:any)=>{
|
|
20402
|
+
console.log('error', error);
|
|
20403
|
+
})
|
|
20404
|
+
* @param data
|
|
20405
|
+
* @return Promise => rsp ={vcode, msg, data(object)} / error
|
|
20406
|
+
* vcode == 0: success
|
|
20407
|
+
* vcode == 11: 'not logged in'
|
|
20408
|
+
*/
|
|
20409
|
+
private addEmbeddingBlock;
|
|
20410
|
+
/**
|
|
20411
|
+
* @example:
|
|
20412
|
+
* this.vhDevAutoWeb.addEmbeddingBlock_byID('nvliw974854hf848ugrgh3498', {name:'camera 2', quantity:20, price:200000})
|
|
20413
|
+
.then((block)=>{
|
|
20414
|
+
console.log('addEmbeddingBlock_byID', block);
|
|
20415
|
+
}, error=>{
|
|
20416
|
+
console.log('error', error);
|
|
20417
|
+
})
|
|
20418
|
+
* @param colname
|
|
20419
|
+
* @param data
|
|
20420
|
+
* @return Promise => rsp ={vcode, msg, data(object)} / error
|
|
20421
|
+
* vcode == 0: success
|
|
20422
|
+
* vcode == 11: 'not logged in'
|
|
20423
|
+
*/
|
|
20424
|
+
addEmbeddingBlock_byID(_id: string, data: object): Promise<unknown>;
|
|
20425
|
+
/**
|
|
20426
|
+
* @example:
|
|
20427
|
+
* this.vhDevAutoWeb.updateEmbeddingBlock('5fb6780ca2148e09806c5b01', {quantity:400})
|
|
20428
|
+
.then((bool:any)=>{
|
|
20429
|
+
console.log('updateEmbeddingBlock', bool);
|
|
20430
|
+
}, error=>{
|
|
20431
|
+
console.log('error', error);
|
|
20432
|
+
})
|
|
20433
|
+
* @param colname
|
|
20434
|
+
* @param _id
|
|
20435
|
+
* @param data
|
|
20436
|
+
* @return Promise => rsp ={vcode, msg, data(true/false)} / error
|
|
20437
|
+
* vcode == 0: success
|
|
20438
|
+
* vcode == 11: 'not logged in'
|
|
20439
|
+
*/
|
|
20440
|
+
updateEmbeddingBlock(id_doc: string, value: object): Promise<unknown>;
|
|
20441
|
+
/**
|
|
20442
|
+
* @example:
|
|
20443
|
+
* this.vhDevAutoWeb.deleteEmbeddingBlock('5fb67fda87c0f21d484cbdf3')
|
|
20444
|
+
.then(bool=>{
|
|
20445
|
+
console.log('deleteEmbeddingBlock', bool);
|
|
20446
|
+
})
|
|
20447
|
+
* @param colname
|
|
20448
|
+
* @param _id
|
|
20449
|
+
* @return Promise => rsp ={vcode, msg, data(true/false)} / error
|
|
20450
|
+
* vcode == 0: success
|
|
20451
|
+
* vcode == 11: 'not logged in'
|
|
20452
|
+
*/
|
|
20453
|
+
deleteEmbeddingBlock(id_doc: string): Promise<unknown>;
|
|
20454
|
+
/**
|
|
20455
|
+
* @example
|
|
20456
|
+
* this.vhDevAutoWeb.getEmbeddingBlock('5fb67fda87c0f21d484cbdf3')
|
|
20457
|
+
.then((product)=>{
|
|
20458
|
+
console.log('getEmbeddingBlock', product);
|
|
20459
|
+
},(error:any)=>{
|
|
20460
|
+
console.log('error', error);
|
|
20461
|
+
})
|
|
20462
|
+
* @param colname
|
|
20463
|
+
* @param _id
|
|
20464
|
+
* @return Promise => rsp ={vcode, msg, data(object)} / error
|
|
20465
|
+
* vcode == 0: success
|
|
20466
|
+
* vcode == 11: 'not logged in'
|
|
20467
|
+
*/
|
|
20468
|
+
getEmbeddingBlock(id_doc: string): Promise<unknown>;
|
|
20469
|
+
/**
|
|
20470
|
+
* @example:
|
|
20471
|
+
* this.vhDevAutoWeb.getPBlocksByFields({group_type:{$eq:10}}, {})
|
|
20472
|
+
.then((pblocks)=>{
|
|
20473
|
+
console.log('getPBlocksByFields', pblocks);
|
|
20474
|
+
},error=>{
|
|
20475
|
+
console.log('error', error);
|
|
20476
|
+
})
|
|
20477
|
+
* @param colname
|
|
20478
|
+
* @param query : {}
|
|
20479
|
+
* @param projection {} đang tìm hiểu
|
|
20480
|
+
* @param sort null hoặc {}:không sắp xếp; {date:1}: sắp xếp theo ASC; {date:-1}: sắp xếp theo DESC
|
|
20481
|
+
* @param limit null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
20482
|
+
* @return Promise => rsp ={vcode, msg, data(array)} / error
|
|
20483
|
+
* vcode == 0: success
|
|
20484
|
+
* vcode == 11: 'not logged in'
|
|
20485
|
+
*/
|
|
20486
|
+
private getEmbeddingBlocks_byFields;
|
|
20487
|
+
/**
|
|
20488
|
+
* @example:
|
|
20489
|
+
* this.vhDevAutoWeb.getEmbeddingBlocks_byFields_byPages('webapp_abouts', {name:{$eq:'name abc'}}, {},{},6,1)
|
|
20490
|
+
.then(response=>{
|
|
20491
|
+
console.log('response', response);
|
|
20492
|
+
if(response.vcode === 0){
|
|
20493
|
+
//-----------your code-----------
|
|
20494
|
+
let products = response.data;
|
|
20495
|
+
}
|
|
20496
|
+
},(error:any)=>{
|
|
20497
|
+
console.log('error', error)
|
|
20498
|
+
})
|
|
20499
|
+
* @param colname
|
|
20500
|
+
* @param query
|
|
20501
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
20502
|
+
* @param sort — null hoặc {}:không sắp xếp; {date:1}: sắp xếp theo ASC; {date:-1}: sắp xếp theo DESC
|
|
20503
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
20504
|
+
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
20505
|
+
* @return Promise => rsp ={vcode, message, data(array), limit, page, totalpages} / error
|
|
20506
|
+
* vcode == 0: success
|
|
20507
|
+
* vcode == 11: 'not logged in'
|
|
20508
|
+
*/
|
|
20509
|
+
getEmbeddingBlocks_byFields_byPages(query: any, projection?: object, sort?: any, limit?: number, page?: number): Promise<unknown>;
|
|
20389
20510
|
/**
|
|
20390
20511
|
* @example:
|
|
20391
20512
|
* this.vhDevAutoWeb.addPatternBlock({name:'Danh mục 1'})
|
|
@@ -25905,6 +26026,17 @@ export declare class VhQuerySales {
|
|
|
25905
26026
|
* @return Promise => bool = true or false
|
|
25906
26027
|
*/
|
|
25907
26028
|
deleteBill_Detail(id_bill_detail: any): Promise<unknown>;
|
|
26029
|
+
/**
|
|
26030
|
+
* Hàm này chỉ áp dụng cho bill_type 1,5 và bill_detail có ptype 5
|
|
26031
|
+
* @example:
|
|
26032
|
+
* this.vhQuerySales.deleteBill_Detail_ptype_5('5fb67fda87c0f21d484cbdf3')
|
|
26033
|
+
.then((bool:any)=>{
|
|
26034
|
+
console.log('deleteBill_Detail', bool);
|
|
26035
|
+
})
|
|
26036
|
+
* @param id_bill_detail
|
|
26037
|
+
* @return Promise => bool = true or false
|
|
26038
|
+
*/
|
|
26039
|
+
deleteBill_Detail_ptype_5(id_bill_detail: any): Promise<unknown>;
|
|
25908
26040
|
/**
|
|
25909
26041
|
* hàm này chỉ dùng cho trường hợp chuyển trạng thái (bill_type) của biên nhận bảo hành (chưa xử lý 18, đang xử lý 19, hoàn thành 20, đã giao khách 21)
|
|
25910
26042
|
* @example
|