ionic-vhframeworks 8.6.7 → 8.6.9
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.
|
@@ -918,7 +918,7 @@ export declare class VhAuth {
|
|
|
918
918
|
* @param projectname
|
|
919
919
|
* @param dbstorage: 'firebase' or 'firebase-mongo'
|
|
920
920
|
* @param imgstorage: 'firebase' or 'viethas'
|
|
921
|
-
* @param cssstorage : nơi css sẽ được lưu trữ 'local', '
|
|
921
|
+
* @param cssstorage : nơi css sẽ được lưu trữ 'local', 'database', or 'file'
|
|
922
922
|
* @param dbserverversion
|
|
923
923
|
* @param camserverversion
|
|
924
924
|
* @param fwcode
|
|
@@ -937,7 +937,7 @@ export declare class VhAuth {
|
|
|
937
937
|
* @param projectname
|
|
938
938
|
* @param dbstorage: 'firebase', 'firebase-mongo', or 'mongo'
|
|
939
939
|
* @param imgstorage: 'firebase' or 'viethas'
|
|
940
|
-
* @param cssstorage : nơi css sẽ được lưu trữ 'local', '
|
|
940
|
+
* @param cssstorage : nơi css sẽ được lưu trữ 'local', 'database', or 'file'
|
|
941
941
|
* @param dbserverversion
|
|
942
942
|
* @param camserverversion
|
|
943
943
|
* @param fwcode
|
|
@@ -13894,6 +13894,106 @@ export declare class VhQueryAutoWeb {
|
|
|
13894
13894
|
* vcode == 11: 'not logged in
|
|
13895
13895
|
*/
|
|
13896
13896
|
deleteSubFood(id_subfood: string): Promise<unknown>;
|
|
13897
|
+
/**
|
|
13898
|
+
* Hàm này tạo thông tin sản phẩm để tra cứu nguồn gốc & bảo hành sản phẩm
|
|
13899
|
+
* @example:
|
|
13900
|
+
let data = {
|
|
13901
|
+
name: "Máy in nhiệt Xprinter XP-420B USB",
|
|
13902
|
+
lookup_group: 1,
|
|
13903
|
+
serial_number:"123456",
|
|
13904
|
+
imei: "1r2r5f2g4h5vf2g5",
|
|
13905
|
+
brand_name: "XPRINTER",
|
|
13906
|
+
model_number: "XP-420B-USB",
|
|
13907
|
+
material: "ABS",
|
|
13908
|
+
Certification: "CCC, CE, FCC, RoHS, KC, SAA, BIS, BSMI",
|
|
13909
|
+
place_of_origin: "Vietnam",
|
|
13910
|
+
made_by: "Vietnam",
|
|
13911
|
+
made_in: "Vietnam" ,
|
|
13912
|
+
paper_width: "80mm",
|
|
13913
|
+
print_speed: "230mm/s",
|
|
13914
|
+
power_input: "220v/2.5A",
|
|
13915
|
+
interface: "USB+LAN"
|
|
13916
|
+
}
|
|
13917
|
+
* this.vhQueryAutoWeb.addSNIMEI(data)
|
|
13918
|
+
.then((rsp:any)=>{
|
|
13919
|
+
if(rsp.vcode === 0){
|
|
13920
|
+
let branch = rsp.data;
|
|
13921
|
+
}
|
|
13922
|
+
}, error=>{
|
|
13923
|
+
reject(error)
|
|
13924
|
+
})
|
|
13925
|
+
* @param data
|
|
13926
|
+
* @return Promise => rsp ={vcode, message, data(object)} / error
|
|
13927
|
+
* @notice : hàm này chỉ add được dữ liệu sau khi khách hàng hoặc nhân viên đã đăng nhập
|
|
13928
|
+
* vcode == 0: success
|
|
13929
|
+
* vcode == 11: 'not logged in
|
|
13930
|
+
*/
|
|
13931
|
+
addSNIMEI(data: any): Promise<unknown>;
|
|
13932
|
+
/**
|
|
13933
|
+
* @example:
|
|
13934
|
+
* this.vhQueryAutoWeb.updateSNIMEI('5fb6780ca2148e09806c5b01', {hidden:true})
|
|
13935
|
+
.then((rsp:any)=>{
|
|
13936
|
+
if(rsp.vcode === 0){
|
|
13937
|
+
console.log('updateSNIMEI succeed');
|
|
13938
|
+
}
|
|
13939
|
+
}, error=>{
|
|
13940
|
+
console.log('error', error);
|
|
13941
|
+
})
|
|
13942
|
+
* @param id_snimei
|
|
13943
|
+
* @param data
|
|
13944
|
+
* @return Promise object => rsp ={vcode, message, data(undefined)} / error
|
|
13945
|
+
* @notice : hàm này chỉ add được dữ liệu sau khi khách hàng hoặc nhân viên đã đăng nhập
|
|
13946
|
+
* vcode == 0: success
|
|
13947
|
+
* vcode == 11: 'not logged in
|
|
13948
|
+
*/
|
|
13949
|
+
updateSNIMEI(id_snimei: string, data: object): Promise<unknown>;
|
|
13950
|
+
/**
|
|
13951
|
+
* @example:
|
|
13952
|
+
* this.vhQueryAutoWeb.deleteSNIMEI('5fb67fda87c0f21d484cbdf3')
|
|
13953
|
+
.then((rsp:any)=>{
|
|
13954
|
+
if(rsp.vcode === 0){
|
|
13955
|
+
console.log('deleteSNIMEI succeed');
|
|
13956
|
+
}
|
|
13957
|
+
}, error=>{
|
|
13958
|
+
reject(error)
|
|
13959
|
+
})
|
|
13960
|
+
* @param id_snimei
|
|
13961
|
+
* @return Promise => rsp ={vcode, message} / error
|
|
13962
|
+
* @notice : hàm này chỉ add được dữ liệu sau khi khách hàng hoặc nhân viên đã đăng nhập
|
|
13963
|
+
* vcode == 0: success
|
|
13964
|
+
* vcode == 11: 'not logged in
|
|
13965
|
+
*/
|
|
13966
|
+
deleteSNIMEI(id_snimei: string): Promise<unknown>;
|
|
13967
|
+
/**
|
|
13968
|
+
* @example
|
|
13969
|
+
* this.vhQueryAutoWeb.getSNIMEI('5fb67fda87c0f21d484cbdf3')
|
|
13970
|
+
.then((snimei)=>{
|
|
13971
|
+
console.log('getSNIMEI', snimei);
|
|
13972
|
+
})
|
|
13973
|
+
* @param id_snimei
|
|
13974
|
+
* @return Promise => obj ={} or null
|
|
13975
|
+
*/
|
|
13976
|
+
getSNIMEI(id_snimei: string): Promise<unknown>;
|
|
13977
|
+
/**
|
|
13978
|
+
* @example:
|
|
13979
|
+
* this.vhQueryAutoWeb.getSNIMEIs_byFields_byPages({name:{$eq:'name abc'}}, {},{},6,1)
|
|
13980
|
+
.then(rsp=>{
|
|
13981
|
+
console.log('rsp', rsp);
|
|
13982
|
+
if(rsp.vcode === 0){
|
|
13983
|
+
//-----------your code-----------
|
|
13984
|
+
let products = rsp.data;
|
|
13985
|
+
}
|
|
13986
|
+
},(error:any)=>{
|
|
13987
|
+
console.log('error', error)
|
|
13988
|
+
})
|
|
13989
|
+
* @param query
|
|
13990
|
+
* @param projection — đang tìm hiểu, tạm thời để giá trị là {}
|
|
13991
|
+
* @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
|
|
13992
|
+
* @param limit — null hoặc 0: không giới hạn record get về; 2: get về 2 record
|
|
13993
|
+
* @param page — null hoặc 0 hoặc 1: get về trang đầu tiên; 2: get về trang thứ 2
|
|
13994
|
+
* @return Promise object => rsp = {vcode, message, data(array), limit, page, totalpages}
|
|
13995
|
+
*/
|
|
13996
|
+
getSNIMEIs_byFields_byPages(query: object, projection?: object, sort?: object, limit?: number, page?: number): Promise<unknown>;
|
|
13897
13997
|
/**
|
|
13898
13998
|
* Hàm này tạo services (type=1), blog (type=2),.....
|
|
13899
13999
|
* @example:
|
|
@@ -13937,14 +14037,14 @@ export declare class VhQueryAutoWeb {
|
|
|
13937
14037
|
}, error=>{
|
|
13938
14038
|
console.log('error', error);
|
|
13939
14039
|
})
|
|
13940
|
-
* @param
|
|
14040
|
+
* @param id_service
|
|
13941
14041
|
* @param data
|
|
13942
14042
|
* @return Promise object => rsp ={vcode, message, data(undefined)} / error
|
|
13943
14043
|
* @notice : hàm này chỉ add được dữ liệu sau khi khách hàng hoặc nhân viên đã đăng nhập
|
|
13944
14044
|
* vcode == 0: success
|
|
13945
14045
|
* vcode == 11: 'not logged in
|
|
13946
14046
|
*/
|
|
13947
|
-
updateService(
|
|
14047
|
+
updateService(id_service: string, data: object): Promise<unknown>;
|
|
13948
14048
|
/**
|
|
13949
14049
|
* @example:
|
|
13950
14050
|
* this.vhQueryAutoWeb.deleteService('5fb67fda87c0f21d484cbdf3')
|
|
@@ -18944,6 +19044,7 @@ export declare class VhDesignAutoWeb {
|
|
|
18944
19044
|
private findLimitBottomBlock;
|
|
18945
19045
|
private findLimitLeftBlock;
|
|
18946
19046
|
private findLimitRightBlock;
|
|
19047
|
+
/****************************************************************************************/
|
|
18947
19048
|
/**
|
|
18948
19049
|
*Hàm này thực hiện tăng hoặc giảm z-index của object, frame được chọn
|
|
18949
19050
|
*/
|
|
@@ -18977,6 +19078,7 @@ export declare class VhDesignAutoWeb {
|
|
|
18977
19078
|
* @returns
|
|
18978
19079
|
*/
|
|
18979
19080
|
private updateZindexOfElementAllInBlockOrObject;
|
|
19081
|
+
/****************************************************************************************/
|
|
18980
19082
|
/**
|
|
18981
19083
|
* object trong block, object trong object, và có thể qua rất nhiều cấp, do đó cần hàm này để tìm ra object đó,
|
|
18982
19084
|
* cách tìm là duyệt qua từng block đến từng object
|