Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
supplier
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王宇航
supplier
Commits
bdae41ef
Commit
bdae41ef
authored
Jul 17, 2020
by
Wyh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
printCurrency文件提交
parent
4c931510
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
399 additions
and
13 deletions
+399
-13
base-module/src/main/java/com/gingersoft/gsa/cloud/bean/PublicBean.java
+31
-0
base-module/src/main/java/com/gingersoft/gsa/cloud/database/bean/PrintCurrencyBean.java
+230
-0
base-module/src/main/java/com/gingersoft/gsa/cloud/database/greendao/LanguageDao.java
+135
-0
base-module/src/main/java/com/gingersoft/gsa/cloud/database/greendao/PrintCurrencyBeanDao.java
+0
-0
other_order_mode/release/2020-06-23_GSA-Cloud_1.0.6_正式版_.apk
+0
-0
other_order_mode/release/2020-07-11_GSA-Cloud_1.2.3_正式版_.apk
+0
-0
other_order_mode/release/output.json
+2
-0
other_order_mode/src/main/java/com/gingersoft/gsa/other_order_mode/ui/activity/aaa.kt
+1
-13
No files found.
base-module/src/main/java/com/gingersoft/gsa/cloud/bean/PublicBean.java
0 → 100644
View file @
bdae41ef
package
com
.
gingersoft
.
gsa
.
cloud
.
bean
;
public
class
PublicBean
{
private
boolean
success
;
private
long
sysTime
;
private
Object
data
;
public
boolean
isSuccess
()
{
return
success
;
}
public
void
setSuccess
(
boolean
success
)
{
this
.
success
=
success
;
}
public
long
getSysTime
()
{
return
sysTime
;
}
public
void
setSysTime
(
long
sysTime
)
{
this
.
sysTime
=
sysTime
;
}
public
Object
getData
()
{
return
data
;
}
public
void
setData
(
Object
data
)
{
this
.
data
=
data
;
}
}
base-module/src/main/java/com/gingersoft/gsa/cloud/database/bean/PrintCurrencyBean.java
0 → 100644
View file @
bdae41ef
package
com
.
gingersoft
.
gsa
.
cloud
.
database
.
bean
;
import
org.greenrobot.greendao.annotation.Entity
;
import
org.greenrobot.greendao.annotation.Generated
;
import
org.greenrobot.greendao.annotation.Id
;
import
org.greenrobot.greendao.annotation.Property
;
import
java.io.Serializable
;
@Entity
public
class
PrintCurrencyBean
implements
Serializable
{
private
static
final
long
serialVersionUID
=
-
5006055119272879097L
;
private
Long
id
;
@Property
(
nameInDb
=
"_id"
)
@Id
(
autoincrement
=
true
)
private
Long
dbid
;
private
String
name
;
private
Integer
restaurantId
;
private
int
type
;
//1堂食,2外賣
private
int
foodComplexion
;
//食品顔色 0 黑色 2 紅色
private
int
modifierComplexion
;
//細項顔色 0 黑色 2 紅色
private
Integer
uid
;
private
Long
createTime
;
private
Long
updateTime
;
private
Long
fontId
;
private
int
foodIsBold
;
//食品是否加粗 1是 2否
private
String
foodFont
;
//食品字號
private
int
foodIsItalic
;
//食品是否斜體 1是 2否
private
int
modifierIsBold
;
//細項是否加粗1是 2否
private
String
modifierFont
;
//細項字號
private
int
modifierIsItalic
;
//細項是否斜體 1是 2否
private
int
numberIsFlip
;
//數量大於1顔色是否翻轉 1是 2否
@Generated
(
hash
=
2078142457
)
public
PrintCurrencyBean
()
{
}
public
PrintCurrencyBean
(
Long
id
,
String
name
,
Integer
restaurantId
,
int
type
,
int
foodComplexion
,
int
modifierComplexion
,
Integer
uid
,
Long
createTime
,
Long
updateTime
,
Long
fontId
,
int
foodIsBold
,
String
foodFont
,
int
foodIsItalic
,
int
modifierIsBold
,
String
modifierFont
,
int
modifierIsItalic
,
int
numberIsFlip
)
{
this
.
id
=
id
;
this
.
name
=
name
;
this
.
restaurantId
=
restaurantId
;
this
.
type
=
type
;
this
.
foodComplexion
=
foodComplexion
;
this
.
modifierComplexion
=
modifierComplexion
;
this
.
uid
=
uid
;
this
.
createTime
=
createTime
;
this
.
updateTime
=
updateTime
;
this
.
fontId
=
fontId
;
this
.
foodIsBold
=
foodIsBold
;
this
.
foodFont
=
foodFont
;
this
.
foodIsItalic
=
foodIsItalic
;
this
.
modifierIsBold
=
modifierIsBold
;
this
.
modifierFont
=
modifierFont
;
this
.
modifierIsItalic
=
modifierIsItalic
;
this
.
numberIsFlip
=
numberIsFlip
;
}
@Generated
(
hash
=
2001960487
)
public
PrintCurrencyBean
(
Long
id
,
Long
dbid
,
String
name
,
Integer
restaurantId
,
int
type
,
int
foodComplexion
,
int
modifierComplexion
,
Integer
uid
,
Long
createTime
,
Long
updateTime
,
Long
fontId
,
int
foodIsBold
,
String
foodFont
,
int
foodIsItalic
,
int
modifierIsBold
,
String
modifierFont
,
int
modifierIsItalic
,
int
numberIsFlip
)
{
this
.
id
=
id
;
this
.
dbid
=
dbid
;
this
.
name
=
name
;
this
.
restaurantId
=
restaurantId
;
this
.
type
=
type
;
this
.
foodComplexion
=
foodComplexion
;
this
.
modifierComplexion
=
modifierComplexion
;
this
.
uid
=
uid
;
this
.
createTime
=
createTime
;
this
.
updateTime
=
updateTime
;
this
.
fontId
=
fontId
;
this
.
foodIsBold
=
foodIsBold
;
this
.
foodFont
=
foodFont
;
this
.
foodIsItalic
=
foodIsItalic
;
this
.
modifierIsBold
=
modifierIsBold
;
this
.
modifierFont
=
modifierFont
;
this
.
modifierIsItalic
=
modifierIsItalic
;
this
.
numberIsFlip
=
numberIsFlip
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
}
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
Integer
getRestaurantId
()
{
return
restaurantId
;
}
public
void
setRestaurantId
(
Integer
restaurantId
)
{
this
.
restaurantId
=
restaurantId
;
}
public
int
getType
()
{
return
type
;
}
public
void
setType
(
int
type
)
{
this
.
type
=
type
;
}
public
int
getFoodComplexion
()
{
return
foodComplexion
;
}
public
void
setFoodComplexion
(
int
foodComplexion
)
{
this
.
foodComplexion
=
foodComplexion
;
}
public
int
getModifierComplexion
()
{
return
modifierComplexion
;
}
public
void
setModifierComplexion
(
int
modifierComplexion
)
{
this
.
modifierComplexion
=
modifierComplexion
;
}
public
Integer
getUid
()
{
return
uid
;
}
public
void
setUid
(
Integer
uid
)
{
this
.
uid
=
uid
;
}
public
Long
getCreateTime
()
{
return
createTime
;
}
public
void
setCreateTime
(
Long
createTime
)
{
this
.
createTime
=
createTime
;
}
public
Long
getUpdateTime
()
{
return
updateTime
;
}
public
void
setUpdateTime
(
Long
updateTime
)
{
this
.
updateTime
=
updateTime
;
}
public
Long
getFontId
()
{
return
fontId
;
}
public
void
setFontId
(
Long
fontId
)
{
this
.
fontId
=
fontId
;
}
public
static
long
getSerialVersionUID
()
{
return
serialVersionUID
;
}
public
int
getFoodIsBold
()
{
return
foodIsBold
;
}
public
void
setFoodIsBold
(
int
foodIsBold
)
{
this
.
foodIsBold
=
foodIsBold
;
}
public
String
getFoodFont
()
{
return
foodFont
;
}
public
void
setFoodFont
(
String
foodFont
)
{
this
.
foodFont
=
foodFont
;
}
public
int
getFoodIsItalic
()
{
return
foodIsItalic
;
}
public
void
setFoodIsItalic
(
int
foodIsItalic
)
{
this
.
foodIsItalic
=
foodIsItalic
;
}
public
int
getModifierIsBold
()
{
return
modifierIsBold
;
}
public
void
setModifierIsBold
(
int
modifierIsBold
)
{
this
.
modifierIsBold
=
modifierIsBold
;
}
public
String
getModifierFont
()
{
return
modifierFont
;
}
public
void
setModifierFont
(
String
modifierFont
)
{
this
.
modifierFont
=
modifierFont
;
}
public
int
getModifierIsItalic
()
{
return
modifierIsItalic
;
}
public
void
setModifierIsItalic
(
int
modifierIsItalic
)
{
this
.
modifierIsItalic
=
modifierIsItalic
;
}
public
int
getNumberIsFlip
()
{
return
numberIsFlip
;
}
public
void
setNumberIsFlip
(
int
numberIsFlip
)
{
this
.
numberIsFlip
=
numberIsFlip
;
}
public
Long
getDbid
()
{
return
this
.
dbid
;
}
public
void
setDbid
(
Long
dbid
)
{
this
.
dbid
=
dbid
;
}
public
Long
getId
()
{
return
this
.
id
;
}
}
base-module/src/main/java/com/gingersoft/gsa/cloud/database/greendao/LanguageDao.java
0 → 100644
View file @
bdae41ef
package
com
.
gingersoft
.
gsa
.
cloud
.
database
.
greendao
;
import
android.database.Cursor
;
import
android.database.sqlite.SQLiteStatement
;
import
org.greenrobot.greendao.AbstractDao
;
import
org.greenrobot.greendao.Property
;
import
org.greenrobot.greendao.internal.DaoConfig
;
import
org.greenrobot.greendao.database.Database
;
import
org.greenrobot.greendao.database.DatabaseStatement
;
import
com.gingersoft.gsa.cloud.database.bean.Language
;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
* DAO for table "LANGUAGE".
*/
public
class
LanguageDao
extends
AbstractDao
<
Language
,
Long
>
{
public
static
final
String
TABLENAME
=
"LANGUAGE"
;
/**
* Properties of entity Language.<br/>
* Can be used for QueryBuilder and for referencing column names.
*/
public
static
class
Properties
{
public
final
static
Property
Id
=
new
Property
(
0
,
Long
.
class
,
"id"
,
true
,
"_id"
);
public
final
static
Property
FunctionName
=
new
Property
(
1
,
String
.
class
,
"functionName"
,
false
,
"FUNCTION_NAME"
);
public
final
static
Property
LanguageName
=
new
Property
(
2
,
String
.
class
,
"languageName"
,
false
,
"LANGUAGE_NAME"
);
}
public
LanguageDao
(
DaoConfig
config
)
{
super
(
config
);
}
public
LanguageDao
(
DaoConfig
config
,
DaoSession
daoSession
)
{
super
(
config
,
daoSession
);
}
/** Creates the underlying database table. */
public
static
void
createTable
(
Database
db
,
boolean
ifNotExists
)
{
String
constraint
=
ifNotExists
?
"IF NOT EXISTS "
:
""
;
db
.
execSQL
(
"CREATE TABLE "
+
constraint
+
"\"LANGUAGE\" ("
+
//
"\"_id\" INTEGER PRIMARY KEY AUTOINCREMENT ,"
+
// 0: id
"\"FUNCTION_NAME\" TEXT NOT NULL ,"
+
// 1: functionName
"\"LANGUAGE_NAME\" TEXT);"
);
// 2: languageName
}
/** Drops the underlying database table. */
public
static
void
dropTable
(
Database
db
,
boolean
ifExists
)
{
String
sql
=
"DROP TABLE "
+
(
ifExists
?
"IF EXISTS "
:
""
)
+
"\"LANGUAGE\""
;
db
.
execSQL
(
sql
);
}
@Override
protected
final
void
bindValues
(
DatabaseStatement
stmt
,
Language
entity
)
{
stmt
.
clearBindings
();
Long
id
=
entity
.
getId
();
if
(
id
!=
null
)
{
stmt
.
bindLong
(
1
,
id
);
}
stmt
.
bindString
(
2
,
entity
.
getFunctionName
());
String
languageName
=
entity
.
getLanguageName
();
if
(
languageName
!=
null
)
{
stmt
.
bindString
(
3
,
languageName
);
}
}
@Override
protected
final
void
bindValues
(
SQLiteStatement
stmt
,
Language
entity
)
{
stmt
.
clearBindings
();
Long
id
=
entity
.
getId
();
if
(
id
!=
null
)
{
stmt
.
bindLong
(
1
,
id
);
}
stmt
.
bindString
(
2
,
entity
.
getFunctionName
());
String
languageName
=
entity
.
getLanguageName
();
if
(
languageName
!=
null
)
{
stmt
.
bindString
(
3
,
languageName
);
}
}
@Override
public
Long
readKey
(
Cursor
cursor
,
int
offset
)
{
return
cursor
.
isNull
(
offset
+
0
)
?
null
:
cursor
.
getLong
(
offset
+
0
);
}
@Override
public
Language
readEntity
(
Cursor
cursor
,
int
offset
)
{
Language
entity
=
new
Language
(
//
cursor
.
isNull
(
offset
+
0
)
?
null
:
cursor
.
getLong
(
offset
+
0
),
// id
cursor
.
getString
(
offset
+
1
),
// functionName
cursor
.
isNull
(
offset
+
2
)
?
null
:
cursor
.
getString
(
offset
+
2
)
// languageName
);
return
entity
;
}
@Override
public
void
readEntity
(
Cursor
cursor
,
Language
entity
,
int
offset
)
{
entity
.
setId
(
cursor
.
isNull
(
offset
+
0
)
?
null
:
cursor
.
getLong
(
offset
+
0
));
entity
.
setFunctionName
(
cursor
.
getString
(
offset
+
1
));
entity
.
setLanguageName
(
cursor
.
isNull
(
offset
+
2
)
?
null
:
cursor
.
getString
(
offset
+
2
));
}
@Override
protected
final
Long
updateKeyAfterInsert
(
Language
entity
,
long
rowId
)
{
entity
.
setId
(
rowId
);
return
rowId
;
}
@Override
public
Long
getKey
(
Language
entity
)
{
if
(
entity
!=
null
)
{
return
entity
.
getId
();
}
else
{
return
null
;
}
}
@Override
public
boolean
hasKey
(
Language
entity
)
{
return
entity
.
getId
()
!=
null
;
}
@Override
protected
final
boolean
isEntityUpdateable
()
{
return
true
;
}
}
base-module/src/main/java/com/gingersoft/gsa/cloud/database/greendao/PrintCurrencyBeanDao.java
0 → 100644
View file @
bdae41ef
This diff is collapsed.
Click to expand it.
other_order_mode/release/2020-06-23_GSA-Cloud_1.0.6_正式版_.apk
0 → 100644
View file @
bdae41ef
File added
other_order_mode/release/2020-07-11_GSA-Cloud_1.2.3_正式版_.apk
0 → 100644
View file @
bdae41ef
File added
other_order_mode/release/output.json
0 → 100644
View file @
bdae41ef
[{
"outputType"
:{
"type"
:
"APK"
},
"apkData"
:{
"type"
:
"MAIN"
,
"splits"
:[],
"versionCode"
:
18
,
"versionName"
:
"1.2.3"
,
"enabled"
:
true
,
"outputFile"
:
"2020-07-11_GSA-Cloud_1.2.3_ʽ_.apk"
,
"fullName"
:
"release"
,
"baseName"
:
"release"
},
"path"
:
"2020-07-11_GSA-Cloud_1.2.3_ʽ_.apk"
,
"properties"
:{}}]
\ No newline at end of file
other_order_mode/src/main/java/com/gingersoft/gsa/other_order_mode/ui/activity/aaa.kt
View file @
bdae41ef
...
@@ -2,18 +2,7 @@ package com.gingersoft.gsa.other_order_mode.ui.activity
...
@@ -2,18 +2,7 @@ package com.gingersoft.gsa.other_order_mode.ui.activity
fun
main
()
{
fun
main
()
{
var
aaa
=
"1234567891023456789"
var
aaa
=
"1234567891023456789"
var
cd
=
aaa
.
length
/
2
var
str
=
"asdf sdafas saf"
var
buffer
=
StringBuffer
()
if
(
cd
>=
5
)
{
cd
=
aaa
.
length
-
5
}
repeat
(
cd
)
{
buffer
.
append
(
"*"
)
}
var
bbb
=
aaa
.
substring
(
0
,
1
)
var
ccc
=
aaa
.
substring
(
cd
+
1
,
aaa
.
length
)
print
(
bbb
+
buffer
.
toString
()
+
ccc
)
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment