92 lines
2.7 KiB
TypeScript
92 lines
2.7 KiB
TypeScript
/*
|
|
* Copyright (c) 2022 Huawei Device Co., Ltd.
|
|
* Licensed under the Apache License,Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
export default class
|
|
CommonConstants {
|
|
/**
|
|
* Rdb database config.
|
|
*/
|
|
static readonly STORE_CONFIG = { name: 'CommonConstants.db' };
|
|
|
|
/**
|
|
* Account table config.
|
|
*/
|
|
static readonly ACCOUNT_TABLE = {
|
|
tableName: 'accountTable',
|
|
sqlCreate: 'CREATE TABLE IF NOT EXISTS accountTable(sfzmhm TEXT,lsh TEXT, xm TEXT)',
|
|
columns: [ 'sfzmhm', 'xm','lsh']
|
|
};
|
|
// sqlCreate: 'CREATE TABLE IF NOT EXISTS accountTable(id INTEGER PRIMARY KEY AUTOINCREMENT,kaoShengXinXi TEXT, lsh TEXT, ' +
|
|
// 'zkzmbh TEXT, sfzmhm TEXT,xm TEXT,xb TEXT,kszp TEXT,ksmjzp TEXT,ykxm TEXT,kslx TEXT,kscx TEXT,jxmc TEXT,ksy1 TEXT,ksy1sfzmhm TEXT,kssycs TEXT,kchp TEXT,ksxl TEXT,kszt TEXT,xh TEXT,filedId TEXT)',
|
|
// columns: ['id', 'kaoShengXinXi', 'lsh', 'sfzmhm', 'xm', 'xb', 'kszp', 'ksmjzp','ykxm','kslx','kscx','jxmc','ksy1','ksy1sfzmhm','ksy2','ksy2sfzmhm','kssycs','kchp','ksxl','kszt','xh','filedId']
|
|
// {
|
|
// sfzmhm: '',
|
|
// xm: '',
|
|
// lsh: '',
|
|
// ksy1: '',
|
|
// id: '',
|
|
// kszp:'',
|
|
// ksmjzp:'',
|
|
// bz1:'',
|
|
// jxmc:'',
|
|
// kchp:'',
|
|
// kscx:'',
|
|
// ksdd:'',
|
|
// kssycs:'',
|
|
// ksxl:'',
|
|
// ksy1sfzmhm:'',
|
|
// kszt:'',
|
|
// xb:'',
|
|
// xh:'',
|
|
// xldm:'',
|
|
// yycs:''
|
|
// }
|
|
/**
|
|
* Search text of Search component.
|
|
*/
|
|
// static readonly SEARCH_TEXT = '搜索';
|
|
|
|
/**
|
|
* toast text of prompt component.
|
|
*/
|
|
// static readonly TOAST_TEXT_1 = '账目类型不能为空';
|
|
// static readonly TOAST_TEXT_2 = '账目金额不为正整数';
|
|
|
|
/**
|
|
* Component size.
|
|
*/
|
|
// static readonly FULL_WIDTH = '100%';
|
|
// static readonly FULL_HEIGHT = '100%';
|
|
// static readonly DIALOG_HEIGHT = '55%';
|
|
// static readonly TABS_HEIGHT = '45%';
|
|
// static readonly MINIMUM_SIZE = 0;
|
|
// static readonly FULL_SIZE = 1;
|
|
// static readonly PROMPT_BOTTOM = '70vp';
|
|
|
|
/**
|
|
* Component location.
|
|
*/
|
|
// static readonly EDIT_POSITION_X = '80%';
|
|
// static readonly EDIT_POSITION_Y = '90%';
|
|
// static readonly DELETE_POSITION_X = '50%';
|
|
// static readonly DELETE_POSITION_Y = '90%';
|
|
|
|
/**
|
|
* Log tag.
|
|
*/
|
|
static readonly RDB_TAG = '[Debug.Rdb]';
|
|
static readonly TABLE_TAG = '[Debug.AccountTable]';
|
|
static readonly INDEX_TAG = '[Debug.Index]';
|
|
} |