Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Compass
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zong
Compass
Commits
2eecc3b6
Commit
2eecc3b6
authored
Jan 12, 2020
by
biao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a992e7a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
102 additions
and
0 deletions
+102
-0
SystemConstDat.inc
src/cn/compass/entity/SystemConstDat.inc
+101
-0
compass_include.inc
src/settings/compass_include.inc
+1
-0
No files found.
src/cn/compass/entity/SystemConstDat.inc
0 → 100644
View file @
2eecc3b6
<?php
/**
* SystemConstDat Entity
* $Id: SystemConstDat.inc,v 1.1 2016/9/21 12:59:25 AIMS Exp $
* @author wanggb
* @package jp.fishow.entity
* @access public
*/
class
SystemConstDat
extends
CompassDynamicData
{
var
$name
;
var
$title
;
var
$constant_value
;
var
$delete_flg
;
/**
*
*
* @access public
* @param mixed system_const_dat
*/
function
constructor
(
$record
)
{
parent
::
constructor
(
$record
);
$this
->
name
=
$record
[
"name"
];
$this
->
title
=
$record
[
"title"
];
$this
->
constant_value
=
$record
[
"constant_value"
];
$this
->
delete_flg
=
$record
[
"delete_flg"
];
}
/**
*
* @access public
* @static
* @param array
* @return array Entity
*/
public
static
function
getList
(
$w_param
=
null
,
$orderkey
=
null
,
$direction
=
"ASC"
,
$offset
=
null
,
$limit
=
null
)
{
if
(
$w_param
==
null
)
{
$w_param
=
array
();
$w_param
[
"delete_flg"
]
=
"false"
;
}
return
CompassDBHandler
::
getList
(
"SystemConstDat"
,
"system_const_dat"
,
$w_param
,
$orderkey
,
$direction
,
$offset
,
$limit
);
}
/**
*
* @access public
* @static
* @param array
* @return array Entity
*/
public
static
function
getListCount
(
$w_param
=
null
)
{
if
(
$w_param
==
null
)
{
$w_param
=
array
();
$w_param
[
"delete_flg"
]
=
"false"
;
}
$db
=
CompassDBManager
::
getInstance
();
$result
=
$db
->
doSelect
(
"system_const_dat"
,
$w_param
,
null
,
null
,
null
,
null
,
"count(*) as count"
);
return
$result
[
0
][
"count"
];
}
/**
*
*/
public
static
function
getById
(
$id
)
{
// delete_flg
$param
=
array
();
$param
[
"delete_flg"
]
=
false
;
return
CompassDBHandler
::
getById
(
"SystemConstDat"
,
"system_const_dat"
,
$id
,
$param
);
}
/**
*
* DynamicData
* @access public
* @return int
*/
public
function
save
()
{
$v_param
=
array
();
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"name"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"title"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"constant_value"
);
ParamUtil
::
copyObj2Array
(
$v_param
,
$this
,
"delete_flg"
);
// 保存
parent
::
_save
(
"system_const_dat"
,
$v_param
);
}
}
\ No newline at end of file
src/settings/compass_include.inc
View file @
2eecc3b6
...
@@ -13,6 +13,7 @@ require_once(COMPASS_LIB_ROOT . "/cn/compass/handler/CompassDBHandler.inc");
...
@@ -13,6 +13,7 @@ require_once(COMPASS_LIB_ROOT . "/cn/compass/handler/CompassDBHandler.inc");
// entity
// entity
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/EntityBase.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/EntityBase.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/CompassDynamicData.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/CompassDynamicData.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/SystemConstDat.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/AccountMst.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/AccountMst.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/GradeMst.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/GradeMst.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/ClassMst.inc"
);
require_once
(
COMPASS_LIB_ROOT
.
"/cn/compass/entity/ClassMst.inc"
);
...
...
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