commit
75ede2d9d7
@ -0,0 +1,26 @@
|
||||
*.class
|
||||
**/target
|
||||
**/webapp/userfiles
|
||||
**/WEB-INF/classes
|
||||
**/logs/*.log*
|
||||
|
||||
.classpath
|
||||
.project
|
||||
|
||||
.idea
|
||||
*.ipr
|
||||
*.iml
|
||||
*.iws
|
||||
*.lic
|
||||
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
*.epoch
|
||||
|
||||
**/.settings/*.prefs
|
||||
**/.settings/*.component
|
||||
**/.settings/*.core.xml
|
||||
**/.settings/*.superType.*
|
||||
**/.settings/.jsdtscope
|
||||
|
||||
@ -0,0 +1,12 @@
|
||||
.mymetadata
|
||||
.checkstyle
|
||||
.classpath
|
||||
.project
|
||||
.class
|
||||
/src/main/webapp/WEB-INF/classes/*
|
||||
/src/main/java/cn/jflow/ccmobile/*
|
||||
/target/*
|
||||
/target
|
||||
/bin
|
||||
/jflow-core.iml
|
||||
/.settings/
|
||||
@ -0,0 +1,284 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>jflow</groupId>
|
||||
<artifactId>jflow</artifactId>
|
||||
<version>1.1.0-SNAPSHOT</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<groupId>jflow-core</groupId>
|
||||
<artifactId>jflow-core</artifactId>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-logging</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-jdbc</artifactId>
|
||||
</dependency>
|
||||
<!-- SpringBoot Reids 依赖 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- Spring session 依赖 -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.session</groupId>
|
||||
<artifactId>spring-session-data-redis</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-pool2</artifactId>
|
||||
<version>${commons-pool2.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!--Shiro核心框架 -->
|
||||
<dependency>
|
||||
<groupId>org.apache.shiro</groupId>
|
||||
<artifactId>shiro-core</artifactId>
|
||||
<version>${shiro.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Shiro使用Srping框架 -->
|
||||
<dependency>
|
||||
<groupId>org.apache.shiro</groupId>
|
||||
<artifactId>shiro-spring</artifactId>
|
||||
<version>${shiro.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Shiro使用EhCache缓存框架 -->
|
||||
<dependency>
|
||||
<groupId>org.apache.shiro</groupId>
|
||||
<artifactId>shiro-ehcache</artifactId>
|
||||
<version>${shiro.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- XML文件读取 -->
|
||||
<dependency>
|
||||
<groupId>dom4j</groupId>
|
||||
<artifactId>dom4j</artifactId>
|
||||
<version>${dom4j.version}</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>xml-apis</groupId>
|
||||
<artifactId>xml-apis</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<!-- 拼音 -->
|
||||
<dependency>
|
||||
<groupId>com.belerweb</groupId>
|
||||
<artifactId>pinyin4j</artifactId>
|
||||
<version>${pinyin4j.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Apache Commons BEGIN-->
|
||||
<dependency>
|
||||
<groupId>commons-codec</groupId>
|
||||
<artifactId>commons-codec</artifactId>
|
||||
<version>${commons-codec.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-lang3</artifactId>
|
||||
<version>${commons-lang3.version}</version>
|
||||
</dependency>
|
||||
<!-- org.apache.commons.net.ftp -->
|
||||
<dependency>
|
||||
<groupId>commons-net</groupId>
|
||||
<artifactId>commons-net</artifactId>
|
||||
<version>${commons-net.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 文件写入/上传-->
|
||||
<dependency>
|
||||
<groupId>commons-fileupload</groupId>
|
||||
<artifactId>commons-fileupload</artifactId>
|
||||
<version>${commons-fileupload.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-io</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
<version>${commons-io.version}</version>
|
||||
</dependency>
|
||||
<!-- Apache Commons END -->
|
||||
|
||||
<!-- JSON -->
|
||||
<dependency>
|
||||
<groupId>net.sf.json-lib</groupId>
|
||||
<artifactId>json-lib</artifactId>
|
||||
<version>${json-lib.version}</version>
|
||||
<classifier>jdk15</classifier>
|
||||
</dependency>
|
||||
<!-- JSON -->
|
||||
|
||||
<!-- 生成excel -->
|
||||
<dependency>
|
||||
<groupId>org.apache.poi</groupId>
|
||||
<artifactId>poi-ooxml</artifactId>
|
||||
<version>${org.apache.poi.version}</version>
|
||||
</dependency>
|
||||
<!-- 文件打成压缩包 -->
|
||||
<dependency>
|
||||
<groupId>org.apache.ant</groupId>
|
||||
<artifactId>ant</artifactId>
|
||||
<version>${org.apache.ant.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 上传文件到FTP/SFTP -->
|
||||
<dependency>
|
||||
<groupId>com.jcraft</groupId>
|
||||
<artifactId>jsch</artifactId>
|
||||
<version>${com.jcraft.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 条形码、二维码生成 -->
|
||||
<dependency>
|
||||
<groupId>com.google.zxing</groupId>
|
||||
<artifactId>core</artifactId>
|
||||
<version>${com.google.zxing.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.zxing</groupId>
|
||||
<artifactId>javase</artifactId>
|
||||
<version>${com.google.zxing.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!--多个PDF文件合并-->
|
||||
<dependency>
|
||||
<groupId>org.apache.pdfbox</groupId>
|
||||
<artifactId>pdfbox</artifactId>
|
||||
<version>${pdfbox.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!--开发者表单后台打印-->
|
||||
<dependency>
|
||||
<groupId>org.jsoup</groupId>
|
||||
<artifactId>jsoup</artifactId>
|
||||
<version>${jsoup.version}</version>
|
||||
</dependency>
|
||||
<!--阿里云文件上传-->
|
||||
<dependency>
|
||||
<groupId>com.aliyun.oss</groupId>
|
||||
<artifactId>aliyun-sdk-oss</artifactId>
|
||||
<version>${aliyun.sdk.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- JUnit Test -->
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
</dependency>
|
||||
|
||||
<!-- 数据库驱动 -->
|
||||
<!--<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<scope>runtime</scope>
|
||||
</dependency>-->
|
||||
<dependency>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>8.0.27</version>
|
||||
</dependency>
|
||||
|
||||
<!--瀚高数据库-->
|
||||
<dependency>
|
||||
<groupId>com.highgo</groupId>
|
||||
<artifactId>HgdbJdbc</artifactId>
|
||||
<version>6.0.4.jre8</version>
|
||||
</dependency>
|
||||
<!--postgresql数据库-->
|
||||
<dependency>
|
||||
<groupId>org.postgresql</groupId>
|
||||
<artifactId>postgresql</artifactId>
|
||||
<version>42.1.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>net.sourceforge.jtds</groupId>
|
||||
<artifactId>jtds</artifactId>
|
||||
<version>1.3.1</version>
|
||||
</dependency>
|
||||
<!-- 钉钉服务API -->
|
||||
<dependency>
|
||||
<groupId>com.aliyun</groupId>
|
||||
<artifactId>alibaba-dingtalk-service-sdk</artifactId>
|
||||
<version>2.0.0</version>
|
||||
</dependency>
|
||||
<!--<dependency>
|
||||
<groupId>com.oracle</groupId>
|
||||
<artifactId>ojdbc14</artifactId>
|
||||
<version>10.2</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>-->
|
||||
|
||||
|
||||
|
||||
<!-- <dependency>
|
||||
<groupId>com.kingbase8</groupId>
|
||||
<artifactId>kingbase8</artifactId>
|
||||
<version>8.6</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>-->
|
||||
|
||||
<!--<dependency>
|
||||
<groupId>com.oracle</groupId>
|
||||
<artifactId>ojdbc6</artifactId>
|
||||
<version>12.1.0.1</version>
|
||||
<scope>runtime</scope>
|
||||
</dependency>-->
|
||||
<dependency>
|
||||
<groupId>com.squareup.okhttp3</groupId>
|
||||
<artifactId>okhttp</artifactId>
|
||||
<version>${okhttp.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>1.8</source>
|
||||
<target>1.8</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifest>
|
||||
<mainClass>kpmg.thrift.scenario.task</mainClass>
|
||||
</manifest>
|
||||
</archive>
|
||||
<descriptorRefs>
|
||||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||||
</descriptorRefs>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>make-assembly</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
@ -0,0 +1,64 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.wf.*;
|
||||
import bp.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
单据状态
|
||||
*/
|
||||
public enum BillState
|
||||
{
|
||||
/**
|
||||
空白
|
||||
*/
|
||||
None(0),
|
||||
/**
|
||||
草稿
|
||||
*/
|
||||
Draft(1),
|
||||
/**
|
||||
编辑中
|
||||
*/
|
||||
Editing(2),
|
||||
/**
|
||||
归档
|
||||
*/
|
||||
Over(100);
|
||||
|
||||
public static final int SIZE = java.lang.Integer.SIZE;
|
||||
|
||||
private int intValue;
|
||||
private static java.util.HashMap<Integer, BillState> mappings;
|
||||
private static java.util.HashMap<Integer, BillState> getMappings()
|
||||
{
|
||||
if (mappings == null)
|
||||
{
|
||||
synchronized (BillState.class)
|
||||
{
|
||||
if (mappings == null)
|
||||
{
|
||||
mappings = new java.util.HashMap<Integer, BillState>();
|
||||
}
|
||||
}
|
||||
}
|
||||
return mappings;
|
||||
}
|
||||
|
||||
private BillState(int value)
|
||||
{
|
||||
intValue = value;
|
||||
getMappings().put(value, this);
|
||||
}
|
||||
|
||||
public int getValue()
|
||||
{
|
||||
return intValue;
|
||||
}
|
||||
|
||||
public static BillState forValue(int value)
|
||||
{
|
||||
return getMappings().get(value);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
package bp.ccbill;
|
||||
|
||||
|
||||
/**
|
||||
数据源实体 - Attr
|
||||
*/
|
||||
public class DBListAttr extends FrmAttr
|
||||
{
|
||||
public static final String MainTable = "MainTable";
|
||||
public static final String MainTablePK = "MainTablePK";
|
||||
}
|
||||
@ -0,0 +1,88 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.en.Map;
|
||||
import bp.sys.*;
|
||||
|
||||
/**
|
||||
数据源实体
|
||||
*/
|
||||
public class DBListDBSrc extends EntityNoName
|
||||
{
|
||||
|
||||
///#region 权限控制.
|
||||
@Override
|
||||
public UAC getHisUAC()
|
||||
{
|
||||
UAC uac = new UAC();
|
||||
uac.OpenForAppAdmin();
|
||||
uac.IsDelete = false;
|
||||
uac.IsInsert = false;
|
||||
return uac;
|
||||
}
|
||||
///#endregion 权限控制.
|
||||
///#region 属性
|
||||
///#endregion
|
||||
///#region 构造方法
|
||||
/**
|
||||
数据源实体
|
||||
*/
|
||||
public DBListDBSrc()
|
||||
{
|
||||
}
|
||||
/**
|
||||
数据源实体
|
||||
|
||||
@param no 映射编号
|
||||
*/
|
||||
public DBListDBSrc(String no) throws Exception
|
||||
{
|
||||
super(no);
|
||||
}
|
||||
public final int getDBType() {
|
||||
return this.GetValIntByKey(MapDataAttr.DBType);
|
||||
}
|
||||
/**
|
||||
* EnMap
|
||||
*/
|
||||
@Override
|
||||
public Map getEnMap() {
|
||||
if (this.get_enMap() != null)
|
||||
{
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
Map map = new Map("Sys_MapData", "数据源实体");
|
||||
|
||||
map.setCodeStruct( "4");
|
||||
|
||||
///#region 基本属性.
|
||||
map.AddTBStringPK(MapDataAttr.No, null, "表单编号", true, true, 1, 190, 20);
|
||||
map.AddTBString(MapDataAttr.Name, null, "名称", true, true, 1, 190, 20);
|
||||
|
||||
///#endregion 基本属性.
|
||||
///#region 数据源.
|
||||
map.AddDDLSysEnum(MapDataAttr.DBType, 0, "数据源类型", true, true, "DBListDBType", "@0=数据库查询SQL@1=执行Url返回Json@2=执行存储过程");
|
||||
map.AddDDLEntities(MapDataAttr.DBSrc, null, "数据源", new SFDBSrcs(), true);
|
||||
map.SetHelperAlert(MapDataAttr.DBSrc, "您可以在系统管理中新建SQL数据源.");
|
||||
///#endregion 数据源.
|
||||
|
||||
this.set_enMap(map);
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
///#endregion
|
||||
@Override
|
||||
protected boolean beforeUpdate() throws Exception
|
||||
{
|
||||
DBList db = new DBList(this.getNo());
|
||||
if (db.getDBType() != this.getDBType())
|
||||
{
|
||||
db.setExpEn("");
|
||||
db.setExpList("");
|
||||
db.setExpCount("");
|
||||
db.Update();
|
||||
}
|
||||
return super.beforeUpdate();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,59 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.sys.*;
|
||||
import bp.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
数据源实体s
|
||||
*/
|
||||
public class DBListDBSrcs extends EntitiesNoName
|
||||
{
|
||||
|
||||
///#region 构造
|
||||
/**
|
||||
数据源实体s
|
||||
*/
|
||||
public DBListDBSrcs()
|
||||
{
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new DBListDBSrc();
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<DBListDBSrc> ToJavaList()
|
||||
{
|
||||
return (java.util.List<DBListDBSrc>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<DBListDBSrc> Tolist()
|
||||
{
|
||||
ArrayList<DBListDBSrc> list = new ArrayList<DBListDBSrc>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((DBListDBSrc)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,50 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.en.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
数据源实体s
|
||||
*/
|
||||
public class DBLists extends EntitiesNoName
|
||||
{
|
||||
|
||||
///#region 构造
|
||||
/**
|
||||
数据源实体s
|
||||
*/
|
||||
public DBLists()
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public Entity getNewEntity() {
|
||||
return new DBList();
|
||||
}
|
||||
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<DBList> ToJavaList()
|
||||
{
|
||||
return (java.util.List<DBList>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<DBList> Tolist()
|
||||
{
|
||||
ArrayList<DBList> list = new ArrayList<DBList>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((DBList)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,50 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.*;
|
||||
|
||||
/**
|
||||
表单活动类型
|
||||
*/
|
||||
public class FrmActionType
|
||||
{
|
||||
/**
|
||||
创建
|
||||
*/
|
||||
public static final String Create = "Create";
|
||||
/**
|
||||
保存
|
||||
*/
|
||||
public static final String Save = "Save";
|
||||
/**
|
||||
提交
|
||||
*/
|
||||
public static final String Submit = "Submit";
|
||||
/**
|
||||
评论
|
||||
*/
|
||||
public static final String BBS = "BBS";
|
||||
/**
|
||||
打开
|
||||
*/
|
||||
public static final String View = "View";
|
||||
/**
|
||||
回滚数据
|
||||
*/
|
||||
public static final String DataVerReback = "DataVerReback";
|
||||
/**
|
||||
发起流程
|
||||
*/
|
||||
public static final String StartFlow = "StartFlow";
|
||||
/**
|
||||
发起注册流程
|
||||
*/
|
||||
public static final String StartRegFlow = "StartRegFlow";
|
||||
/**
|
||||
流程修改实体数据
|
||||
*/
|
||||
public static final String FlowBaseData = "FlowBaseData";
|
||||
/**
|
||||
其他
|
||||
*/
|
||||
public static final String Etc = "Etc";
|
||||
}
|
||||
@ -0,0 +1,209 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.*;
|
||||
|
||||
/**
|
||||
实体表单 - Attr
|
||||
*/
|
||||
public class FrmAttr extends bp.en.EntityOIDNameAttr
|
||||
{
|
||||
|
||||
///#region 基本属性
|
||||
/**
|
||||
工作模式
|
||||
*/
|
||||
public static final String FrmDictWorkModel = "FrmDictWorkModel";
|
||||
/**
|
||||
实体类型
|
||||
*/
|
||||
public static final String EntityType = "EntityType";
|
||||
/**
|
||||
展示模式
|
||||
*/
|
||||
public static final String EntityShowModel = "EntityShowModel";
|
||||
/**
|
||||
单据编号生成规则
|
||||
*/
|
||||
public static final String BillNoFormat = "BillNoFormat";
|
||||
/**
|
||||
单据编号生成规则
|
||||
*/
|
||||
public static final String TitleRole = "TitleRole";
|
||||
/**
|
||||
排序字段
|
||||
*/
|
||||
public static final String SortColumns = "SortColumns";
|
||||
/**
|
||||
字段颜色设置
|
||||
*/
|
||||
public static final String ColorSet = "ColorSet";
|
||||
/**
|
||||
按照指定字段的颜色显示表格行的颜色
|
||||
*/
|
||||
public static final String RowColorSet = "RowColorSet";
|
||||
/**
|
||||
字段求和求平均设置
|
||||
*/
|
||||
public static final String FieldSet = "FieldSet";
|
||||
/**
|
||||
关联单据
|
||||
*/
|
||||
public static final String RefBill = "RefBill";
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 隐藏属性.
|
||||
/**
|
||||
要显示的列
|
||||
*/
|
||||
public static final String ShowCols = "ShowCols";
|
||||
|
||||
///#endregion 隐藏属性
|
||||
|
||||
|
||||
///#region 按钮信息.
|
||||
/**
|
||||
按钮New标签
|
||||
*/
|
||||
public static final String BtnNewLable = "BtnNewLable";
|
||||
/**
|
||||
按钮New启用规则
|
||||
*/
|
||||
public static final String BtnNewModel = "BtnNewModel";
|
||||
/**
|
||||
按钮Save标签
|
||||
*/
|
||||
public static final String BtnSaveLable = "BtnSaveLable";
|
||||
/**
|
||||
按钮save启用规则
|
||||
*/
|
||||
public static final String BtnSaveEnable = "BtnSaveEnable";
|
||||
|
||||
public static final String BtnSubmitLable = "BtnSubmitLable";
|
||||
public static final String BtnSubmitEnable = "BtnSubmitEnable";
|
||||
|
||||
|
||||
/**
|
||||
保存andclose
|
||||
*/
|
||||
public static final String BtnSaveAndCloseLable = "BtnSaveAndCloseLable";
|
||||
/**
|
||||
保存并关闭.
|
||||
*/
|
||||
public static final String BtnSaveAndCloseEnable = "BtnSaveAndCloseEnable";
|
||||
|
||||
/**
|
||||
按钮del标签
|
||||
*/
|
||||
public static final String BtnDelLable = "BtnDelLable";
|
||||
/**
|
||||
数据版本
|
||||
*/
|
||||
public static final String BtnDataVer = "BtnDataVer";
|
||||
/**
|
||||
按钮del启用规则
|
||||
*/
|
||||
public static final String BtnDelEnable = "BtnDelEnable";
|
||||
/**
|
||||
按钮del标签
|
||||
*/
|
||||
public static final String BtnStartFlowLable = "BtnStartFlowLable";
|
||||
/**
|
||||
按钮del启用规则
|
||||
*/
|
||||
public static final String BtnStartFlowEnable = "BtnStartFlowEnable";
|
||||
/**
|
||||
查询
|
||||
*/
|
||||
public static final String BtnSearchLabel = "BtnSearchLabel";
|
||||
/**
|
||||
查询
|
||||
*/
|
||||
public static final String BtnSearchEnable = "BtnSearchEnable";
|
||||
/**
|
||||
分析
|
||||
*/
|
||||
public static final String BtnGroupLabel = "BtnGroupLabel";
|
||||
/**
|
||||
分析
|
||||
*/
|
||||
public static final String BtnGroupEnable = "BtnGroupEnable";
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 打印
|
||||
public static final String BtnPrintHtml = "BtnPrintHtml";
|
||||
public static final String BtnPrintHtmlEnable = "BtnPrintHtmlEnable";
|
||||
|
||||
public static final String BtnPrintPDF = "BtnPrintPDF";
|
||||
public static final String BtnPrintPDFEnable = "BtnPrintPDFEnable";
|
||||
|
||||
public static final String BtnPrintRTF = "BtnPrintRTF";
|
||||
public static final String BtnPrintRTFEnable = "BtnPrintRTFEnable";
|
||||
|
||||
public static final String BtnPrintCCWord = "BtnPrintCCWord";
|
||||
public static final String BtnPrintCCWordEnable = "BtnPrintCCWordEnable";
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 按钮.
|
||||
/**
|
||||
导出zip文件
|
||||
*/
|
||||
public static final String BtnExpZip = "BtnExpZip";
|
||||
/**
|
||||
是否可以启用?
|
||||
*/
|
||||
public static final String BtnExpZipEnable = "BtnExpZipEnable";
|
||||
/**
|
||||
关联单据
|
||||
*/
|
||||
public static final String BtnRefBill = "BtnRefBill";
|
||||
/**
|
||||
关联单据是否可用
|
||||
*/
|
||||
public static final String RefBillRole = "RefBillRole";
|
||||
|
||||
///#endregion 按钮.
|
||||
|
||||
|
||||
///#region 集合的操作.
|
||||
/**
|
||||
导入Excel
|
||||
*/
|
||||
public static final String BtnImpExcel = "BtnImpExcel";
|
||||
/**
|
||||
是否启用导入
|
||||
*/
|
||||
public static final String BtnImpExcelEnable = "BtnImpExcelEnable";
|
||||
/**
|
||||
导出Excel
|
||||
*/
|
||||
public static final String BtnExpExcel = "BtnExpExcel";
|
||||
/**
|
||||
导出excel
|
||||
*/
|
||||
public static final String BtnExpExcelEnable = "BtnExpExcelEnable";
|
||||
|
||||
///#endregion 集合的操作.
|
||||
|
||||
/**
|
||||
行打开模式
|
||||
*/
|
||||
public static final String RowOpenModel = "RowOpenModel";
|
||||
public static final String PopHeight = "PopHeight";
|
||||
public static final String PopWidth = "PopWidth";
|
||||
public static final String Tag0 = "Tag0";
|
||||
public static final String Tag1 = "Tag1";
|
||||
public static final String Tag2 = "Tag2";
|
||||
/**
|
||||
实体编辑模式
|
||||
*/
|
||||
public static final String EntityEditModel = "EntityEditModel";
|
||||
|
||||
public static final String SearchDictOpenType = "SearchDictOpenType";
|
||||
|
||||
}
|
||||
@ -0,0 +1,203 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
评论组件
|
||||
*/
|
||||
public class FrmBBS extends EntityNoName
|
||||
{
|
||||
|
||||
///#region 字段属性.
|
||||
/**
|
||||
参数数据.
|
||||
*/
|
||||
public final String getDocs() {
|
||||
return this.GetValStringByKey(FrmBBSAttr.Docs);
|
||||
}
|
||||
public final void setDocs(String value) {
|
||||
this.SetValByKey(FrmBBSAttr.Docs, value);
|
||||
}
|
||||
/**
|
||||
表单ID
|
||||
*/
|
||||
public final String getFrmID() {
|
||||
return this.GetValStringByKey(FrmBBSAttr.FrmID);
|
||||
}
|
||||
public final void setFrmID(String value) {
|
||||
this.SetValByKey(FrmBBSAttr.FrmID, value);
|
||||
}
|
||||
/**
|
||||
表单名称
|
||||
*/
|
||||
public final String getFrmName() {
|
||||
return this.GetValStringByKey(FrmBBSAttr.FrmName);
|
||||
}
|
||||
public final void setFrmName(String value) {
|
||||
this.SetValByKey(FrmBBSAttr.FrmName, value);
|
||||
}
|
||||
/**
|
||||
记录日期
|
||||
*/
|
||||
public final String getRDT() {
|
||||
return this.GetValStringByKey(FrmBBSAttr.RDT);
|
||||
}
|
||||
public final void setRDT(String value) {
|
||||
this.SetValByKey(FrmBBSAttr.RDT, value);
|
||||
}
|
||||
|
||||
/**
|
||||
工作ID
|
||||
*/
|
||||
public final long getWorkID() {
|
||||
return this.GetValInt64ByKey(FrmBBSAttr.WorkID);
|
||||
}
|
||||
public final void setWorkID(long value) {
|
||||
this.SetValByKey(FrmBBSAttr.WorkID, value);
|
||||
}
|
||||
|
||||
/**
|
||||
活动名称
|
||||
*/
|
||||
public final String getActionTypeText() {
|
||||
return this.GetValStringByKey(FrmBBSAttr.ActionTypeText);
|
||||
}
|
||||
public final void setActionTypeText(String value) {
|
||||
this.SetValByKey(FrmBBSAttr.ActionTypeText, value);
|
||||
}
|
||||
/**
|
||||
记录人
|
||||
*/
|
||||
public final String getRec() {
|
||||
return this.GetValStringByKey(FrmBBSAttr.Rec);
|
||||
}
|
||||
public final void setRec(String value) {
|
||||
this.SetValByKey(FrmBBSAttr.Rec, value);
|
||||
}
|
||||
/**
|
||||
记录人名字
|
||||
*/
|
||||
public final String getRecName() {
|
||||
return this.GetValStringByKey(FrmBBSAttr.RecName);
|
||||
}
|
||||
public final void setRecName(String value) {
|
||||
this.SetValByKey(FrmBBSAttr.RecName, value);
|
||||
}
|
||||
/**
|
||||
消息
|
||||
*/
|
||||
public final String getMsg() {
|
||||
return this.GetValStringByKey(FrmBBSAttr.Msg);
|
||||
}
|
||||
public final void setMsg(String value) {
|
||||
this.SetValByKey(FrmBBSAttr.Msg, value);
|
||||
}
|
||||
/**
|
||||
消息
|
||||
*/
|
||||
public final String getMsgHtml() throws Exception {
|
||||
return this.GetValHtmlStringByKey(FrmBBSAttr.Msg);
|
||||
}
|
||||
|
||||
///#endregion attrs
|
||||
|
||||
|
||||
///#region 流程属性.
|
||||
public final String getDeptNo() {
|
||||
return this.GetValStringByKey(FrmBBSAttr.DeptNo);
|
||||
}
|
||||
public final void setDeptNo(String value) {
|
||||
this.SetValByKey(FrmBBSAttr.DeptNo, value);
|
||||
}
|
||||
public final String getDeptName() {
|
||||
return this.GetValStringByKey(FrmBBSAttr.DeptName);
|
||||
}
|
||||
public final void setDeptName(String value) {
|
||||
this.SetValByKey(FrmBBSAttr.DeptName, value);
|
||||
}
|
||||
|
||||
///#endregion 流程属性.
|
||||
|
||||
|
||||
///#region 构造.
|
||||
/**
|
||||
表单评论组件表
|
||||
*/
|
||||
@Override
|
||||
public Map getEnMap() {
|
||||
if (this.get_enMap() != null)
|
||||
{
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
Map map = new Map("Frm_BBS", "表单评论组件表");
|
||||
|
||||
|
||||
///#region 基本字段.
|
||||
|
||||
map.AddTBStringPK(FrmBBSAttr.No, null, "No", true, false, 0, 50, 200);
|
||||
|
||||
map.AddTBString(FrmBBSAttr.Name, null, "标题", true, false, 0, 4000, 200);
|
||||
map.AddTBString(FrmBBSAttr.ParentNo, null, "父节点", true, false, 0, 50, 200);
|
||||
map.AddTBString(FrmBBSAttr.WorkID, null, "工作ID/OID", true, false, 0, 50, 200);
|
||||
|
||||
map.AddTBString(FrmBBSAttr.Docs, null, "内容", true, false, 0, 50, 200);
|
||||
|
||||
//map.AddTBInt(FrmBBSAttr.ActionType, 0, "类型", true, false);
|
||||
// map.AddTBString(FrmBBSAttr.ActionTypeText, null, "类型(名称)", true, false, 0, 30, 100);
|
||||
|
||||
map.AddTBString(FrmBBSAttr.Rec, null, "记录人", true, false, 0, 200, 100);
|
||||
map.AddTBString(FrmBBSAttr.RecName, null, "名称", true, false, 0, 200, 100);
|
||||
map.AddTBDateTime(FrmBBSAttr.RDT, null, "记录日期时间", true, false);
|
||||
|
||||
map.AddTBString(FrmBBSAttr.DeptNo, null, "部门编号", true, false, 0, 200, 100);
|
||||
map.AddTBString(FrmBBSAttr.DeptName, null, "名称", true, false, 0, 200, 100);
|
||||
|
||||
///#endregion 基本字段
|
||||
|
||||
|
||||
map.AddTBString(FrmBBSAttr.FrmID, null, "表单ID", true, false, 0, 50, 200);
|
||||
map.AddTBString(FrmBBSAttr.FrmName, null, "表单名称(可以为空)", true, false, 0, 200, 200);
|
||||
map.AddMyFile(null, null, null);
|
||||
this.set_enMap(map);
|
||||
return this.get_enMap();
|
||||
}
|
||||
/**
|
||||
评论组件
|
||||
*/
|
||||
public FrmBBS()
|
||||
{
|
||||
}
|
||||
public FrmBBS(String no) throws Exception
|
||||
{
|
||||
this.setNo(no);
|
||||
this.Retrieve();
|
||||
}
|
||||
|
||||
///#endregion 构造.
|
||||
|
||||
@Override
|
||||
protected boolean beforeInsert() throws Exception
|
||||
{
|
||||
this.setNo(DBAccess.GenerGUID(0, null, null));
|
||||
|
||||
this.SetValByKey(FrmBBSAttr.Rec, bp.web.WebUser.getNo());
|
||||
this.SetValByKey(FrmBBSAttr.RecName, bp.web.WebUser.getName());
|
||||
this.SetValByKey(FrmBBSAttr.RDT, DataType.getCurrentDateTime());
|
||||
|
||||
this.SetValByKey(FrmBBSAttr.DeptNo, bp.web.WebUser.getDeptNo());
|
||||
this.SetValByKey(FrmBBSAttr.DeptName, bp.web.WebUser.getDeptName());
|
||||
|
||||
return super.beforeInsert();
|
||||
}
|
||||
@Override
|
||||
protected void afterDelete() throws Exception
|
||||
{
|
||||
FrmBBSs ens = new FrmBBSs();
|
||||
ens.Delete(FrmBBSAttr.ParentNo, this.getNo());
|
||||
super.afterDelete();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
评论组件-属性
|
||||
*/
|
||||
public class FrmBBSAttr extends EntityTreeAttr
|
||||
{
|
||||
/**
|
||||
记录日期
|
||||
*/
|
||||
public static final String RDT = "RDT";
|
||||
/**
|
||||
WorkID
|
||||
*/
|
||||
public static final String WorkID = "WorkID";
|
||||
/**
|
||||
活动类型
|
||||
*/
|
||||
public static final String ActionType = "ActionType";
|
||||
/**
|
||||
活动类型名称
|
||||
*/
|
||||
public static final String ActionTypeText = "ActionTypeText";
|
||||
/**
|
||||
记录人
|
||||
*/
|
||||
public static final String Rec = "Rec";
|
||||
/**
|
||||
记录人名称
|
||||
*/
|
||||
public static final String RecName = "RecName";
|
||||
/**
|
||||
部门No
|
||||
*/
|
||||
public static final String DeptNo = "DeptNo";
|
||||
/**
|
||||
部门名称
|
||||
*/
|
||||
public static final String DeptName = "DeptName";
|
||||
/**
|
||||
参数信息
|
||||
*/
|
||||
public static final String Tag = "Tag";
|
||||
/**
|
||||
表单数据
|
||||
*/
|
||||
public static final String FrmDB = "FrmDB";
|
||||
/**
|
||||
消息
|
||||
*/
|
||||
public static final String Msg = "Msg";
|
||||
/**
|
||||
表单ID
|
||||
*/
|
||||
public static final String FrmID = "FrmID";
|
||||
/**
|
||||
表单名称
|
||||
*/
|
||||
public static final String FrmName = "FrmName";
|
||||
|
||||
public static final String Docs = "Docs";
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
评论组件集合s
|
||||
*/
|
||||
public class FrmBBSs extends EntitiesNoName
|
||||
{
|
||||
|
||||
///#region 构造方法.
|
||||
/**
|
||||
评论组件集合
|
||||
*/
|
||||
public FrmBBSs()
|
||||
{
|
||||
}
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new FrmBBS();
|
||||
}
|
||||
|
||||
///#endregion 构造方法.
|
||||
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<FrmBBS> ToJavaList()
|
||||
{
|
||||
return (java.util.List<FrmBBS>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<FrmBBS> Tolist()
|
||||
{
|
||||
ArrayList<FrmBBS> list = new ArrayList<FrmBBS>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((FrmBBS)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,21 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.wf.*;
|
||||
import bp.wf.template.*;
|
||||
import bp.sys.*;
|
||||
import bp.ccbill.template.*;
|
||||
import bp.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
实体表单 - Attr
|
||||
*/
|
||||
public class FrmBillAttr extends FrmAttr
|
||||
{
|
||||
/**
|
||||
单据关联的实体
|
||||
*/
|
||||
public static final String RefDict = "RefDict";
|
||||
}
|
||||
@ -0,0 +1,63 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.wf.*;
|
||||
import bp.wf.template.*;
|
||||
import bp.sys.*;
|
||||
import bp.ccbill.template.*;
|
||||
import bp.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
单据属性s
|
||||
*/
|
||||
public class FrmBills extends EntitiesNoName
|
||||
{
|
||||
|
||||
///#region 构造
|
||||
/**
|
||||
单据属性s
|
||||
*/
|
||||
public FrmBills()
|
||||
{
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new FrmBill();
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<FrmBill> ToJavaList()
|
||||
{
|
||||
return (java.util.List<FrmBill>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<FrmBill> Tolist()
|
||||
{
|
||||
ArrayList<FrmBill> list = new ArrayList<FrmBill>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((FrmBill)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,9 @@
|
||||
package bp.ccbill;
|
||||
|
||||
/**
|
||||
实体表单 - Attr
|
||||
*/
|
||||
public class FrmDictAttr extends FrmAttr
|
||||
{
|
||||
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.en.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
实体表单s
|
||||
*/
|
||||
public class FrmDicts extends EntitiesNoName
|
||||
{
|
||||
|
||||
///#region 构造
|
||||
/**
|
||||
实体表单s
|
||||
*/
|
||||
public FrmDicts()
|
||||
{
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new FrmDict();
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<FrmDict> ToJavaList()
|
||||
{
|
||||
return (java.util.List<FrmDict>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<FrmDict> Tolist()
|
||||
{
|
||||
ArrayList<FrmDict> list = new ArrayList<FrmDict>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((FrmDict)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,406 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.wf.*;
|
||||
import bp.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
单据控制表
|
||||
*/
|
||||
public class GenerBill extends Entity
|
||||
{
|
||||
|
||||
///#region 属性
|
||||
/**
|
||||
主键
|
||||
*/
|
||||
@Override
|
||||
public String getPK()
|
||||
{
|
||||
return GenerBillAttr.WorkID;
|
||||
}
|
||||
/**
|
||||
备注
|
||||
*/
|
||||
public final String getFlowNote() {
|
||||
return this.GetValStrByKey(GenerBillAttr.FlowNote);
|
||||
}
|
||||
public final void setFlowNote(String value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.FlowNote, value);
|
||||
}
|
||||
|
||||
/**
|
||||
BillNo
|
||||
*/
|
||||
public final String getBillNo() {
|
||||
return this.GetValStrByKey(GenerBillAttr.BillNo);
|
||||
}
|
||||
public final void setBillNo(String value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.BillNo, value);
|
||||
}
|
||||
/**
|
||||
单据ID
|
||||
*/
|
||||
public final String getFrmID() {
|
||||
return this.GetValStrByKey(GenerBillAttr.FrmID);
|
||||
}
|
||||
public final void setFrmID(String value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.FrmID, value);
|
||||
}
|
||||
/**
|
||||
单据单据
|
||||
*/
|
||||
public final String getFrmName() {
|
||||
return this.GetValStrByKey(GenerBillAttr.FrmName);
|
||||
}
|
||||
public final void setFrmName(String value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.FrmName, value);
|
||||
}
|
||||
/**
|
||||
优先级
|
||||
*/
|
||||
public final int getPRI() {
|
||||
return this.GetValIntByKey(GenerBillAttr.PRI);
|
||||
}
|
||||
public final void setPRI(int value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.PRI, value);
|
||||
}
|
||||
/**
|
||||
待办人员数量
|
||||
*/
|
||||
public final int getTodoEmpsNum() {
|
||||
return this.GetValIntByKey(GenerBillAttr.TodoEmpsNum);
|
||||
}
|
||||
public final void setTodoEmpsNum(int value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.TodoEmpsNum, value);
|
||||
}
|
||||
/**
|
||||
待办人员列表
|
||||
*/
|
||||
public final String getTodoEmps() {
|
||||
return this.GetValStrByKey(GenerBillAttr.TodoEmps);
|
||||
}
|
||||
public final void setTodoEmps(String value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.TodoEmps, value);
|
||||
}
|
||||
/**
|
||||
参与人
|
||||
*/
|
||||
public final String getEmps() {
|
||||
return this.GetValStrByKey(GenerBillAttr.Emps);
|
||||
}
|
||||
public final void setEmps(String value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.Emps, value);
|
||||
}
|
||||
/**
|
||||
状态
|
||||
*/
|
||||
public final TaskSta getTaskSta() {
|
||||
return TaskSta.forValue(this.GetValIntByKey(GenerBillAttr.TaskSta));
|
||||
}
|
||||
public final void setTaskSta(TaskSta value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.TaskSta, value.getValue());
|
||||
}
|
||||
/**
|
||||
类别编号
|
||||
*/
|
||||
public final String getFrmTreeNo() {
|
||||
return this.GetValStrByKey(GenerBillAttr.FK_FrmTree);
|
||||
}
|
||||
public final void setFrmTreeNo(String value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.FK_FrmTree, value);
|
||||
}
|
||||
/**
|
||||
部门编号
|
||||
*/
|
||||
public final String getDeptNo() {
|
||||
return this.GetValStrByKey(GenerBillAttr.FK_Dept);
|
||||
}
|
||||
public final void setDeptNo(String value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.FK_Dept, value);
|
||||
}
|
||||
/**
|
||||
标题
|
||||
*/
|
||||
public final String getTitle() {
|
||||
return this.GetValStrByKey(GenerBillAttr.Title);
|
||||
}
|
||||
public final void setTitle(String value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.Title, value);
|
||||
}
|
||||
/**
|
||||
客户编号
|
||||
*/
|
||||
public final String getGuestNo() {
|
||||
return this.GetValStrByKey(GenerBillAttr.GuestNo);
|
||||
}
|
||||
public final void setGuestNo(String value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.GuestNo, value);
|
||||
}
|
||||
/**
|
||||
客户名称
|
||||
*/
|
||||
public final String getGuestName() {
|
||||
return this.GetValStrByKey(GenerBillAttr.GuestName);
|
||||
}
|
||||
public final void setGuestName(String value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.GuestName, value);
|
||||
}
|
||||
/**
|
||||
产生时间
|
||||
*/
|
||||
public final String getRDT() {
|
||||
return this.GetValStrByKey(GenerBillAttr.RDT);
|
||||
}
|
||||
public final void setRDT(String value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.RDT, value);
|
||||
}
|
||||
/**
|
||||
节点应完成时间
|
||||
*/
|
||||
public final String getSDTOfNode() {
|
||||
return this.GetValStrByKey(GenerBillAttr.SDTOfNode);
|
||||
}
|
||||
public final void setSDTOfNode(String value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.SDTOfNode, value);
|
||||
}
|
||||
/**
|
||||
单据应完成时间
|
||||
*/
|
||||
public final String getSDTOfFlow() {
|
||||
return this.GetValStrByKey(GenerBillAttr.SDTOfFlow);
|
||||
}
|
||||
public final void setSDTOfFlow(String value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.SDTOfFlow, value);
|
||||
}
|
||||
/**
|
||||
单据ID
|
||||
*/
|
||||
public final long getWorkID() {
|
||||
return this.GetValInt64ByKey(GenerBillAttr.WorkID);
|
||||
}
|
||||
public final void setWorkID(long value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.WorkID, value);
|
||||
}
|
||||
/**
|
||||
主线程ID
|
||||
*/
|
||||
public final long getFID() {
|
||||
return this.GetValInt64ByKey(GenerBillAttr.FID);
|
||||
}
|
||||
public final void setFID(long value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.FID, value);
|
||||
}
|
||||
/**
|
||||
父节点单据编号.
|
||||
*/
|
||||
public final long getPWorkID() {
|
||||
return this.GetValInt64ByKey(GenerBillAttr.PWorkID);
|
||||
}
|
||||
public final void setPWorkID(long value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.PWorkID, value);
|
||||
}
|
||||
/**
|
||||
父单据调用的节点
|
||||
*/
|
||||
public final int getPNodeID() {
|
||||
return this.GetValIntByKey(GenerBillAttr.PNodeID);
|
||||
}
|
||||
public final void setPNodeID(int value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.PNodeID, value);
|
||||
}
|
||||
/**
|
||||
PFrmID
|
||||
*/
|
||||
public final String getPFrmID() {
|
||||
return this.GetValStrByKey(GenerBillAttr.PFrmID);
|
||||
}
|
||||
public final void setPFrmID(String value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.PFrmID, value);
|
||||
}
|
||||
/**
|
||||
吊起子单据的人员
|
||||
*/
|
||||
public final String getPEmp() {
|
||||
return this.GetValStrByKey(GenerBillAttr.PEmp);
|
||||
}
|
||||
public final void setPEmp(String value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.PEmp, value);
|
||||
}
|
||||
/**
|
||||
发起人
|
||||
*/
|
||||
public final String getStarter() {
|
||||
return this.GetValStrByKey(GenerBillAttr.Starter);
|
||||
}
|
||||
public final void setStarter(String value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.Starter, value);
|
||||
}
|
||||
/**
|
||||
发起人名称
|
||||
*/
|
||||
public final String getStarterName() {
|
||||
return this.GetValStrByKey(GenerBillAttr.StarterName);
|
||||
}
|
||||
public final void setStarterName(String value) {
|
||||
this.SetValByKey(GenerBillAttr.StarterName, value);
|
||||
}
|
||||
/**
|
||||
发起人部门名称
|
||||
*/
|
||||
public final String getDeptName() {
|
||||
return this.GetValStrByKey(GenerBillAttr.DeptName);
|
||||
}
|
||||
public final void setDeptName(String value) {
|
||||
this.SetValByKey(GenerBillAttr.DeptName, value);
|
||||
}
|
||||
/**
|
||||
当前节点名称
|
||||
*/
|
||||
public final String getNDStepName() {
|
||||
return this.GetValStrByKey(GenerBillAttr.NDStepName);
|
||||
}
|
||||
public final void setNDStepName(String value) {
|
||||
this.SetValByKey(GenerBillAttr.NDStepName, value);
|
||||
}
|
||||
/**
|
||||
当前工作到的节点
|
||||
*/
|
||||
public final int getNDStep() {
|
||||
return this.GetValIntByKey(GenerBillAttr.NDStep);
|
||||
}
|
||||
public final void setNDStep(int value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.NDStep, value);
|
||||
}
|
||||
/**
|
||||
工作单据状态
|
||||
*/
|
||||
public final BillState getBillState() {
|
||||
return BillState.forValue(this.GetValIntByKey(GenerBillAttr.BillState));
|
||||
}
|
||||
public final void setBillState(BillState value) throws Exception {
|
||||
//if (value == BillState.)
|
||||
// SetValByKey(GenerBillAttr.BillSta, (int)BillSta.Complete);
|
||||
//else if (value == bp.wf.BillState.Delete)
|
||||
// SetValByKey(GenerBillAttr.BillSta, (int)BillSta.Etc);
|
||||
//else
|
||||
// SetValByKey(GenerBillAttr.BillSta, (int)BillSta.Runing);
|
||||
|
||||
SetValByKey(GenerBillAttr.BillState, value.getValue());
|
||||
}
|
||||
/**
|
||||
单据状态
|
||||
*/
|
||||
public final String getBillStateText() {
|
||||
return this.GetValRefTextByKey(GenerBillAttr.BillState);
|
||||
}
|
||||
/**
|
||||
GUID
|
||||
*/
|
||||
public final String getGUID() {
|
||||
return this.GetValStrByKey(GenerBillAttr.GUID);
|
||||
}
|
||||
public final void setGUID(String value) throws Exception {
|
||||
SetValByKey(GenerBillAttr.GUID, value);
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 权限控制.
|
||||
@Override
|
||||
public UAC getHisUAC()
|
||||
{
|
||||
UAC uac = new UAC();
|
||||
if (bp.web.WebUser.getNo().equals("admin") == true)
|
||||
{
|
||||
uac.IsDelete = false;
|
||||
uac.IsUpdate = true;
|
||||
return uac;
|
||||
}
|
||||
uac.Readonly();
|
||||
return uac;
|
||||
}
|
||||
|
||||
///#endregion 权限控制.
|
||||
|
||||
|
||||
///#region 构造方法
|
||||
/**
|
||||
单据控制表
|
||||
*/
|
||||
public GenerBill()
|
||||
{
|
||||
}
|
||||
/**
|
||||
单据控制表
|
||||
|
||||
@param workid workID
|
||||
*/
|
||||
public GenerBill(long workid) throws Exception {
|
||||
this.setWorkID(workid);
|
||||
this.Retrieve();
|
||||
}
|
||||
/**
|
||||
EnMap
|
||||
*/
|
||||
@Override
|
||||
public Map getEnMap()
|
||||
{
|
||||
if (this.get_enMap() != null)
|
||||
{
|
||||
return this.get_enMap();
|
||||
}
|
||||
Map map = new Map("Frm_GenerBill", "单据控制表");
|
||||
|
||||
map.AddTBIntPK(GenerBillAttr.WorkID, 0, "WorkID", true, true);
|
||||
|
||||
map.AddTBString(GenerBillAttr.FK_FrmTree, null, "单据类别", true, false, 0, 100, 10);
|
||||
map.AddTBString(GenerBillAttr.FrmID, null, "单据ID", true, false, 0, 100, 10);
|
||||
map.AddTBString(GenerBillAttr.FrmName, null, "单据名称", true, false, 0, 200, 10);
|
||||
|
||||
map.AddTBString(GenerBillAttr.BillNo, null, "单据编号", true, false, 0, 100, 10);
|
||||
map.AddTBString(GenerBillAttr.Title, null, "标题", true, false, 0, 1000, 10);
|
||||
map.AddDDLSysEnum(GenerBillAttr.BillSta, 0, "状态(简)", true, false, GenerBillAttr.BillSta, "@0=运行中@1=已完成@2=其他");
|
||||
map.AddDDLSysEnum(GenerBillAttr.BillState, 0, "单据状态", true, false, GenerBillAttr.BillState, "@0=空白@1=草稿@2=编辑中@100=归档");
|
||||
|
||||
map.AddTBString(GenerBillAttr.Starter, null, "创建人", true, false, 0, 200, 10);
|
||||
map.AddTBString(GenerBillAttr.StarterName, null, "创建人名称", true, false, 0, 200, 10);
|
||||
map.AddTBString(GenerBillAttr.Sender, null, "发送人", true, false, 0, 200, 10);
|
||||
|
||||
map.AddTBDateTime(GenerBillAttr.RDT, "记录日期", true, true);
|
||||
map.AddTBDateTime(GenerBillAttr.SendDT, "单据活动时间", true, true);
|
||||
map.AddTBInt(GenerBillAttr.NDStep, 0, "步骤", true, false);
|
||||
map.AddTBString(GenerBillAttr.NDStepName, null, "步骤名称", true, false, 0, 100, 10);
|
||||
|
||||
map.AddTBString(GenerBillAttr.FK_Dept, null, "部门", true, false, 0, 100, 10);
|
||||
map.AddTBString(GenerBillAttr.DeptName, null, "部门名称", true, false, 0, 100, 10);
|
||||
map.AddTBInt(GenerBillAttr.PRI, 1, "优先级", true, true);
|
||||
|
||||
map.AddTBDateTime(GenerBillAttr.SDTOfNode, "节点应完成时间", true, true);
|
||||
map.AddTBDateTime(GenerBillAttr.SDTOfFlow, "单据应完成时间", true, true);
|
||||
|
||||
//父子单据信息.
|
||||
map.AddTBString(GenerBillAttr.PFrmID, null, "父单据编号", true, false, 0, 3, 10);
|
||||
map.AddTBInt(GenerBillAttr.PWorkID, 0, "父单据ID", true, true);
|
||||
map.AddDDLSysEnum(GenerBillAttr.TSpan, 0, "时间段", true, false, GenerBillAttr.TSpan, "@0=本周@1=上周@2=上上周@3=更早");
|
||||
|
||||
//参数.
|
||||
map.AddTBString(GenerBillAttr.AtPara, null, "参数(单据运行设置临时存储的参数)", true, false, 0, 2000, 10);
|
||||
map.AddTBString(GenerBillAttr.Emps, null, "参与人", true, false, 0, 4000, 10);
|
||||
map.AddTBString(GenerBillAttr.GUID, null, "GUID", false, false, 0, 36, 10);
|
||||
map.AddTBString(GenerBillAttr.FK_NY, null, "年月", false, false, 0, 7, 7);
|
||||
|
||||
|
||||
this.set_enMap(map);
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 方法操作.
|
||||
|
||||
///#endregion 方法操作.
|
||||
}
|
||||
@ -0,0 +1,164 @@
|
||||
package bp.ccbill;
|
||||
|
||||
/**
|
||||
单据控制表 - Attr
|
||||
*/
|
||||
public class GenerBillAttr
|
||||
{
|
||||
|
||||
///#region 基本属性1
|
||||
/**
|
||||
工作ID
|
||||
*/
|
||||
public static final String WorkID = "WorkID";
|
||||
/**
|
||||
表单ID
|
||||
*/
|
||||
public static final String FrmID = "FrmID";
|
||||
/**
|
||||
关联的单据号
|
||||
*/
|
||||
public static final String FrmName = "FrmName";
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 基本属性
|
||||
/**
|
||||
TSpan
|
||||
*/
|
||||
public static final String TSpan = "TSpan";
|
||||
/**
|
||||
单据状态
|
||||
*/
|
||||
public static final String BillState = "BillState";
|
||||
/**
|
||||
单据状态(简单)
|
||||
*/
|
||||
public static final String BillSta = "BillSta";
|
||||
/**
|
||||
标题
|
||||
*/
|
||||
public static final String Title = "Title";
|
||||
/**
|
||||
发起人
|
||||
*/
|
||||
public static final String Starter = "Starter";
|
||||
/**
|
||||
产生时间
|
||||
*/
|
||||
public static final String RDT = "RDT";
|
||||
/**
|
||||
完成时间
|
||||
*/
|
||||
public static final String CDT = "CDT";
|
||||
/**
|
||||
当前步骤.
|
||||
*/
|
||||
public static final String NDStep = "NDStep";
|
||||
/**
|
||||
步骤名称
|
||||
*/
|
||||
public static final String NDStepName = "NDStepName";
|
||||
/**
|
||||
部门
|
||||
*/
|
||||
public static final String FK_Dept = "FK_Dept";
|
||||
/**
|
||||
部门名称
|
||||
*/
|
||||
public static final String DeptName = "DeptName";
|
||||
/**
|
||||
年月
|
||||
*/
|
||||
public static final String FK_NY = "FK_NY";
|
||||
/**
|
||||
单据ID
|
||||
*/
|
||||
public static final String FID = "FID";
|
||||
/**
|
||||
发起人名称
|
||||
*/
|
||||
public static final String StarterName = "StarterName";
|
||||
/**
|
||||
单据类别
|
||||
*/
|
||||
public static final String FK_FrmTree = "FK_FrmTree";
|
||||
/**
|
||||
优先级
|
||||
*/
|
||||
public static final String PRI = "PRI";
|
||||
/**
|
||||
单据应完成时间
|
||||
*/
|
||||
public static final String SDTOfFlow = "SDTOfFlow";
|
||||
/**
|
||||
节点应完成时间
|
||||
*/
|
||||
public static final String SDTOfNode = "SDTOfNode";
|
||||
/**
|
||||
父单据ID
|
||||
*/
|
||||
public static final String PWorkID = "PWorkID";
|
||||
/**
|
||||
父单据编号
|
||||
*/
|
||||
public static final String PFrmID = "PFrmID";
|
||||
/**
|
||||
父单据节点
|
||||
*/
|
||||
public static final String PNodeID = "PNodeID";
|
||||
/**
|
||||
子单据的调用人.
|
||||
*/
|
||||
public static final String PEmp = "PEmp";
|
||||
/**
|
||||
客户编号(对于客户发起的单据有效)
|
||||
*/
|
||||
public static final String GuestNo = "GuestNo";
|
||||
/**
|
||||
客户名称
|
||||
*/
|
||||
public static final String GuestName = "GuestName";
|
||||
/**
|
||||
单据编号
|
||||
*/
|
||||
public static final String BillNo = "BillNo";
|
||||
/**
|
||||
备注
|
||||
*/
|
||||
public static final String FlowNote = "FlowNote";
|
||||
/**
|
||||
待办人员
|
||||
*/
|
||||
public static final String TodoEmps = "TodoEmps";
|
||||
/**
|
||||
待办人员数量
|
||||
*/
|
||||
public static final String TodoEmpsNum = "TodoEmpsNum";
|
||||
/**
|
||||
任务状态
|
||||
*/
|
||||
public static final String TaskSta = "TaskSta";
|
||||
/**
|
||||
临时存放的参数
|
||||
*/
|
||||
public static final String AtPara = "AtPara";
|
||||
/**
|
||||
参与人
|
||||
*/
|
||||
public static final String Emps = "Emps";
|
||||
/**
|
||||
GUID
|
||||
*/
|
||||
public static final String GUID = "GUID";
|
||||
|
||||
public static final String Sender = "Sender";
|
||||
public static final String SendDT = "SendDT";
|
||||
/**
|
||||
待办状态
|
||||
*/
|
||||
public static final String TodoSta = "TodoSta";
|
||||
|
||||
///#endregion
|
||||
}
|
||||
@ -0,0 +1,59 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.wf.*;
|
||||
import bp.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
单据控制表s
|
||||
*/
|
||||
public class GenerBills extends Entities
|
||||
{
|
||||
|
||||
///#region 构造
|
||||
/**
|
||||
单据控制表s
|
||||
*/
|
||||
public GenerBills()
|
||||
{
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new GenerBill();
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<GenerBill> ToJavaList()
|
||||
{
|
||||
return (java.util.List<GenerBill>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<GenerBill> Tolist()
|
||||
{
|
||||
ArrayList<GenerBill> list = new ArrayList<GenerBill>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((GenerBill)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,34 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.*;
|
||||
|
||||
/**
|
||||
方法类型模式
|
||||
*/
|
||||
public class MethodModelClass
|
||||
{
|
||||
/**
|
||||
链接或者按钮
|
||||
*/
|
||||
public static final String LinkButton = "LinkButton";
|
||||
/**
|
||||
方法
|
||||
*/
|
||||
public static final String Func = "Func";
|
||||
/**
|
||||
修改实体数据流程
|
||||
*/
|
||||
public static final String FlowBaseData = "FlowBaseData";
|
||||
/**
|
||||
新建实体流程
|
||||
*/
|
||||
public static final String FlowNewEntity = "FlowNewEntity";
|
||||
/**
|
||||
实体批量发起流程
|
||||
*/
|
||||
public static final String FlowEntityBatchStart = "FlowEntityBatchStart";
|
||||
/**
|
||||
新建实体流程
|
||||
*/
|
||||
public static final String FlowEtc = "FlowEtc";
|
||||
}
|
||||
@ -0,0 +1,50 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.*;
|
||||
|
||||
public enum SearchDataRoleByDeptStation
|
||||
{
|
||||
/**
|
||||
只查询自己创建的
|
||||
*/
|
||||
ByOnlySelf(0),
|
||||
/**
|
||||
查询本部门创建的包含兼职部门
|
||||
*/
|
||||
ByDept(1);
|
||||
|
||||
public static final int SIZE = java.lang.Integer.SIZE;
|
||||
|
||||
private int intValue;
|
||||
private static java.util.HashMap<Integer, SearchDataRoleByDeptStation> mappings;
|
||||
private static java.util.HashMap<Integer, SearchDataRoleByDeptStation> getMappings()
|
||||
{
|
||||
if (mappings == null)
|
||||
{
|
||||
synchronized (SearchDataRoleByDeptStation.class)
|
||||
{
|
||||
if (mappings == null)
|
||||
{
|
||||
mappings = new java.util.HashMap<Integer, SearchDataRoleByDeptStation>();
|
||||
}
|
||||
}
|
||||
}
|
||||
return mappings;
|
||||
}
|
||||
|
||||
private SearchDataRoleByDeptStation(int value)
|
||||
{
|
||||
intValue = value;
|
||||
getMappings().put(value, this);
|
||||
}
|
||||
|
||||
public int getValue()
|
||||
{
|
||||
return intValue;
|
||||
}
|
||||
|
||||
public static SearchDataRoleByDeptStation forValue(int value)
|
||||
{
|
||||
return getMappings().get(value);
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,310 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.*;
|
||||
import bp.en.Map;
|
||||
import bp.*;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 轨迹
|
||||
*/
|
||||
public class Track extends EntityMyPK {
|
||||
|
||||
///#region 字段属性.
|
||||
|
||||
/**
|
||||
* 参数数据.
|
||||
*/
|
||||
public final String getTag() throws Exception {
|
||||
return this.GetValStringByKey(TrackAttr.Tag);
|
||||
}
|
||||
|
||||
public final void setTag(String value) throws Exception {
|
||||
this.SetValByKey(TrackAttr.Tag, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* 表单ID
|
||||
*/
|
||||
public final String getFrmID() throws Exception {
|
||||
return this.GetValStringByKey(TrackAttr.FrmID);
|
||||
}
|
||||
|
||||
public final void setFrmID(String value) throws Exception {
|
||||
this.SetValByKey(TrackAttr.FrmID, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* 表单名称
|
||||
*/
|
||||
public final String getFrmName() throws Exception {
|
||||
return this.GetValStringByKey(TrackAttr.FrmName);
|
||||
}
|
||||
|
||||
public final void setFrmName(String value) throws Exception {
|
||||
this.SetValByKey(TrackAttr.FrmName, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* 记录日期
|
||||
*/
|
||||
public final String getRDT() throws Exception {
|
||||
return this.GetValStringByKey(TrackAttr.RDT);
|
||||
}
|
||||
|
||||
public final void setRDT(String value) throws Exception {
|
||||
this.SetValByKey(TrackAttr.RDT, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* fid
|
||||
*/
|
||||
public final long getFID() throws Exception {
|
||||
return this.GetValInt64ByKey(TrackAttr.FID);
|
||||
}
|
||||
|
||||
public final void setFID(long value) throws Exception {
|
||||
this.SetValByKey(TrackAttr.FID, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* 工作ID
|
||||
*/
|
||||
public final String getWorkID() throws Exception {
|
||||
return this.GetValStringByKey(TrackAttr.WorkID);
|
||||
}
|
||||
|
||||
public final void setWorkID(String value) throws Exception {
|
||||
this.SetValByKey(TrackAttr.WorkID, value);
|
||||
}
|
||||
|
||||
public final String getActionType() throws Exception {
|
||||
return this.GetValStringByKey(TrackAttr.ActionType);
|
||||
}
|
||||
|
||||
public final void setActionType(String value) throws Exception {
|
||||
this.SetValByKey(TrackAttr.ActionType, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取动作文本
|
||||
*
|
||||
* @param at
|
||||
* @return
|
||||
*/
|
||||
public static String GetActionTypeT(String at) {
|
||||
switch (at) {
|
||||
case bp.ccbill.FrmActionType.Save:
|
||||
return "保存";
|
||||
case bp.ccbill.FrmActionType.Create:
|
||||
return "提交";
|
||||
case bp.ccbill.FrmActionType.BBS:
|
||||
return "评论";
|
||||
case bp.ccbill.FrmActionType.View:
|
||||
return "打开";
|
||||
default:
|
||||
return "信息" + at.toString();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 活动名称
|
||||
*/
|
||||
public final String getActionTypeText() throws Exception {
|
||||
return this.GetValStringByKey(TrackAttr.ActionTypeText);
|
||||
}
|
||||
|
||||
public final void setActionTypeText(String value) throws Exception {
|
||||
this.SetValByKey(TrackAttr.ActionTypeText, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* 记录人
|
||||
*/
|
||||
public final String getRec() throws Exception {
|
||||
return this.GetValStringByKey(TrackAttr.Rec);
|
||||
}
|
||||
|
||||
public final void setRec(String value) throws Exception {
|
||||
this.SetValByKey(TrackAttr.Rec, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* 记录人名字
|
||||
*/
|
||||
public final String getRecName() throws Exception {
|
||||
return this.GetValStringByKey(TrackAttr.RecName);
|
||||
}
|
||||
|
||||
public final void setRecName(String value) throws Exception {
|
||||
this.SetValByKey(TrackAttr.RecName, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* 消息
|
||||
*/
|
||||
public final String getMsg() throws Exception {
|
||||
return this.GetValStringByKey(TrackAttr.Msg);
|
||||
}
|
||||
|
||||
public final void setMsg(String value) throws Exception {
|
||||
this.SetValByKey(TrackAttr.Msg, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* 消息
|
||||
*/
|
||||
public final String getMsgHtml() throws Exception {
|
||||
return this.GetValHtmlStringByKey(TrackAttr.Msg);
|
||||
}
|
||||
|
||||
public final long getWorkIDOfFlow() throws Exception {
|
||||
return this.GetValInt64ByKey(TrackAttr.WorkIDOfFlow);
|
||||
}
|
||||
|
||||
public final void setWorkIDOfFlow(long value) throws Exception {
|
||||
this.SetValByKey(TrackAttr.WorkIDOfFlow, value);
|
||||
}
|
||||
|
||||
///#endregion attrs
|
||||
|
||||
|
||||
///#region 流程属性.
|
||||
|
||||
/**
|
||||
* 流程编号
|
||||
*/
|
||||
public final String getFuncNo() throws Exception {
|
||||
return this.GetValStringByKey(TrackAttr.FlowNo);
|
||||
}
|
||||
|
||||
public final void setFuncNo(String value) throws Exception {
|
||||
this.SetValByKey(TrackAttr.FlowNo, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* 流程名称
|
||||
*/
|
||||
public final String getFuncName() throws Exception {
|
||||
return this.GetValStringByKey(TrackAttr.FlowName);
|
||||
}
|
||||
|
||||
public final void setFuncName(String value) throws Exception {
|
||||
this.SetValByKey(TrackAttr.FlowName, value);
|
||||
}
|
||||
|
||||
public final int getNodeID() {
|
||||
return this.GetValIntByKey(TrackAttr.NodeID);
|
||||
}
|
||||
|
||||
public final void setNodeID(int value) throws Exception {
|
||||
this.SetValByKey(TrackAttr.NodeID, value);
|
||||
}
|
||||
|
||||
/**
|
||||
* 节点名称
|
||||
*/
|
||||
public final String getNodeName() throws Exception {
|
||||
return this.GetValStringByKey(TrackAttr.NodeName);
|
||||
}
|
||||
|
||||
public final void setNodeName(String value) throws Exception {
|
||||
this.SetValByKey(TrackAttr.NodeName, value);
|
||||
}
|
||||
|
||||
public final String getDeptNo() throws Exception {
|
||||
return this.GetValStringByKey(TrackAttr.FK_Dept);
|
||||
}
|
||||
|
||||
public final void setDeptNo(String value) throws Exception {
|
||||
this.SetValByKey(TrackAttr.FK_Dept, value);
|
||||
}
|
||||
|
||||
public final String getDeptName() throws Exception {
|
||||
return this.GetValStringByKey(TrackAttr.DeptName);
|
||||
}
|
||||
|
||||
public final void setDeptName(String value) throws Exception {
|
||||
this.SetValByKey(TrackAttr.DeptName, value);
|
||||
}
|
||||
|
||||
///#endregion 流程属性.
|
||||
|
||||
|
||||
///#region 构造.
|
||||
|
||||
/**
|
||||
* 表单轨迹表
|
||||
*/
|
||||
@Override
|
||||
public Map getEnMap() {
|
||||
if (this.get_enMap() != null) {
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
Map map = new Map("Frm_Track", "表单轨迹表");
|
||||
|
||||
|
||||
///#region 基本字段.
|
||||
map.AddMyPK(true); //组合主键.
|
||||
|
||||
map.AddTBString(TrackAttr.FrmID, null, "表单ID", true, false, 0, 50, 200);
|
||||
map.AddTBString(TrackAttr.FrmName, null, "表单名称(可以为空)", true, false, 0, 200, 200);
|
||||
|
||||
// map.AddTBInt(TrackAttr.ActionType, 0, "类型", true, false);
|
||||
map.AddTBString(TrackAttr.ActionType, null, "类型", true, false, 0, 30, 100);
|
||||
map.AddTBString(TrackAttr.ActionTypeText, null, "类型(名称)", true, false, 0, 30, 100);
|
||||
|
||||
// map.AddTBInt(TrackAttr.WorkID, 0, "工作ID/OID", true, false);
|
||||
map.AddTBString(TrackAttr.WorkID, null, "工作ID/OID", true, false, 0, 100, 100);
|
||||
|
||||
map.AddTBString(TrackAttr.Msg, null, "消息", true, false, 0, 300, 3000);
|
||||
|
||||
map.AddTBString(TrackAttr.Rec, null, "记录人", true, false, 0, 200, 100);
|
||||
map.AddTBString(TrackAttr.RecName, null, "名称", true, false, 0, 200, 100);
|
||||
map.AddTBDateTime(TrackAttr.RDT, null, "记录日期时间", true, false);
|
||||
|
||||
map.AddTBString(TrackAttr.FK_Dept, null, "部门编号", true, false, 0, 200, 100);
|
||||
map.AddTBString(TrackAttr.DeptName, null, "名称", true, false, 0, 200, 100);
|
||||
|
||||
///#endregion 基本字段
|
||||
|
||||
|
||||
///#region 流程信息.
|
||||
//流程信息.
|
||||
map.AddTBInt(TrackAttr.FID, 0, "FID", true, false);
|
||||
|
||||
map.AddTBString(TrackAttr.FlowNo, null, "流程ID", true, false, 0, 20, 20);
|
||||
map.AddTBString(TrackAttr.FlowName, null, "流程名称", true, false, 0, 200, 200);
|
||||
|
||||
map.AddTBInt(TrackAttr.NodeID, 0, "节点ID", true, false);
|
||||
map.AddTBString(TrackAttr.NodeName, null, "节点名称", true, false, 0, 200, 200);
|
||||
map.AddTBInt(TrackAttr.WorkIDOfFlow, 0, "工作ID/OID", true, false);
|
||||
|
||||
|
||||
///#endregion 流程信息.
|
||||
|
||||
map.AddTBAtParas(3999); //参数.
|
||||
|
||||
this.set_enMap(map);
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
/**
|
||||
* 轨迹
|
||||
*/
|
||||
public Track() {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean beforeInsert() throws Exception {
|
||||
if (DataType.IsNullOrEmpty(this.getMyPK()) == true) {
|
||||
this.setMyPK(DBAccess.GenerGUID(0, null, null));
|
||||
}
|
||||
return super.beforeInsert();
|
||||
}
|
||||
|
||||
///#endregion 构造.
|
||||
}
|
||||
@ -0,0 +1,94 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
轨迹-属性
|
||||
*/
|
||||
public class TrackAttr extends EntityMyPKAttr
|
||||
{
|
||||
/**
|
||||
记录日期
|
||||
*/
|
||||
public static final String RDT = "RDT";
|
||||
/**
|
||||
WorkID
|
||||
*/
|
||||
public static final String WorkID = "WorkID";
|
||||
/**
|
||||
活动类型
|
||||
*/
|
||||
public static final String ActionType = "ActionType";
|
||||
/**
|
||||
活动类型名称
|
||||
*/
|
||||
public static final String ActionTypeText = "ActionTypeText";
|
||||
/**
|
||||
记录人
|
||||
*/
|
||||
public static final String Rec = "Rec";
|
||||
/**
|
||||
记录人名称
|
||||
*/
|
||||
public static final String RecName = "RecName";
|
||||
/**
|
||||
部门No
|
||||
*/
|
||||
public static final String FK_Dept = "FK_Dept";
|
||||
/**
|
||||
部门名称
|
||||
*/
|
||||
public static final String DeptName = "DeptName";
|
||||
/**
|
||||
参数信息
|
||||
*/
|
||||
public static final String Tag = "Tag";
|
||||
/**
|
||||
表单数据
|
||||
*/
|
||||
public static final String FrmDB = "FrmDB";
|
||||
/**
|
||||
消息
|
||||
*/
|
||||
public static final String Msg = "Msg";
|
||||
/**
|
||||
表单ID
|
||||
*/
|
||||
public static final String FrmID = "FrmID";
|
||||
/**
|
||||
表单名称
|
||||
*/
|
||||
public static final String FrmName = "FrmName";
|
||||
|
||||
|
||||
///#region 流程相关信息.
|
||||
/**
|
||||
FID
|
||||
*/
|
||||
public static final String FID = "FID";
|
||||
/**
|
||||
流程ID
|
||||
*/
|
||||
public static final String FlowNo = "FlowNo";
|
||||
/**
|
||||
流程名称
|
||||
*/
|
||||
public static final String FlowName = "FlowName";
|
||||
/**
|
||||
节点ID
|
||||
*/
|
||||
public static final String NodeID = "NodeID";
|
||||
/**
|
||||
节点名字
|
||||
*/
|
||||
public static final String NodeName = "NodeName";
|
||||
/**
|
||||
流程的WorkID.
|
||||
*/
|
||||
public static final String WorkIDOfFlow = "WorkIDOfFlow";
|
||||
|
||||
///#endregion 流程相关信息.
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
轨迹集合s
|
||||
*/
|
||||
public class Tracks extends EntitiesMyPK
|
||||
{
|
||||
|
||||
///#region 构造方法.
|
||||
/**
|
||||
轨迹集合
|
||||
*/
|
||||
public Tracks()
|
||||
{
|
||||
}
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new Track();
|
||||
}
|
||||
|
||||
///#endregion 构造方法.
|
||||
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<Track> ToJavaList()
|
||||
{
|
||||
return (java.util.List<Track>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<Track> Tolist()
|
||||
{
|
||||
ArrayList<Track> list = new ArrayList<Track>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((Track)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,355 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.sys.*;
|
||||
import bp.ccbill.template.*;
|
||||
import bp.difference.*;
|
||||
|
||||
/**
|
||||
页面功能实体
|
||||
*/
|
||||
public class WF_CCBill_Admin extends bp.difference.handler.DirectoryPageBase
|
||||
{
|
||||
|
||||
/**
|
||||
工具栏按钮
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String ToolbarSetting_Init() throws Exception {
|
||||
ToolbarBtns btns = new ToolbarBtns();
|
||||
int i = btns.Retrieve(GroupMethodAttr.FrmID, this.getFrmID(), "Idx");
|
||||
if (i == 0)
|
||||
{
|
||||
FrmBill bill = new FrmBill(this.getFrmID());
|
||||
ToolbarBtn btn = new ToolbarBtn();
|
||||
if (bill.getEntityType() != EntityType.DBList)
|
||||
{
|
||||
btn.setFrmID(this.getFrmID());
|
||||
btn.setBtnID("New");
|
||||
btn.setBtnLab("新建");
|
||||
btn.setMyPK(btn.getFrmID() + "_" + btn.getBtnID());
|
||||
btn.SetValByKey("Idx", 0);
|
||||
btn.Insert();
|
||||
|
||||
|
||||
btn = new ToolbarBtn();
|
||||
btn.setFrmID(this.getFrmID());
|
||||
btn.setBtnID("Save");
|
||||
btn.setBtnLab("保存");
|
||||
btn.setMyPK(btn.getFrmID() + "_" + btn.getBtnID());
|
||||
btn.SetValByKey("Idx", 1);
|
||||
btn.Insert();
|
||||
|
||||
|
||||
if (bill.getEntityType() == EntityType.FrmBill)
|
||||
{
|
||||
//单据增加提交的功能
|
||||
btn = new ToolbarBtn();
|
||||
btn.setFrmID(this.getFrmID());
|
||||
btn.setBtnID("Submit");
|
||||
btn.setBtnLab("提交");
|
||||
btn.setMyPK(btn.getFrmID() + "_" + btn.getBtnID());
|
||||
btn.SetValByKey("Idx", 1);
|
||||
btn.Insert();
|
||||
}
|
||||
|
||||
btn = new ToolbarBtn();
|
||||
btn.setFrmID(this.getFrmID());
|
||||
btn.setBtnID("Delete");
|
||||
btn.setBtnLab("删除");
|
||||
btn.setMyPK(btn.getFrmID() + "_" + btn.getBtnID());
|
||||
btn.SetValByKey("Idx", 2);
|
||||
btn.Insert();
|
||||
}
|
||||
|
||||
|
||||
btn = new ToolbarBtn();
|
||||
btn.setFrmID(this.getFrmID());
|
||||
btn.setBtnID("PrintHtml");
|
||||
btn.setBtnLab("打印Html");
|
||||
btn.setMyPK(btn.getFrmID() + "_" + btn.getBtnID());
|
||||
btn.setItIsEnable(false);
|
||||
btn.SetValByKey("Idx", 3);
|
||||
btn.Insert();
|
||||
|
||||
btn = new ToolbarBtn();
|
||||
btn.setFrmID(this.getFrmID());
|
||||
btn.setBtnID("PrintPDF");
|
||||
btn.setBtnLab("打印PDF");
|
||||
btn.setMyPK(btn.getFrmID() + "_" + btn.getBtnID());
|
||||
btn.setItIsEnable(false);
|
||||
btn.SetValByKey("Idx", 4);
|
||||
btn.Insert();
|
||||
|
||||
btn = new ToolbarBtn();
|
||||
btn.setFrmID(this.getFrmID());
|
||||
btn.setBtnID("PrintRTF");
|
||||
btn.setBtnLab("打印RTF");
|
||||
btn.setMyPK(btn.getFrmID() + "_" + btn.getBtnID());
|
||||
btn.setItIsEnable(false);
|
||||
btn.SetValByKey("Idx", 5);
|
||||
btn.Insert();
|
||||
|
||||
btn = new ToolbarBtn();
|
||||
btn.setFrmID(this.getFrmID());
|
||||
btn.setBtnID("PrintCCWord");
|
||||
btn.setBtnLab("打印CCWord");
|
||||
btn.setMyPK(btn.getFrmID() + "_" + btn.getBtnID());
|
||||
btn.setItIsEnable(false);
|
||||
btn.SetValByKey("Idx", 6);
|
||||
btn.Insert();
|
||||
|
||||
btn = new ToolbarBtn();
|
||||
btn.setFrmID(this.getFrmID());
|
||||
btn.setBtnID("ExpZip");
|
||||
btn.setBtnLab("导出Zip包");
|
||||
btn.setMyPK(btn.getFrmID() + "_" + btn.getBtnID());
|
||||
btn.setItIsEnable(false);
|
||||
btn.SetValByKey("Idx", 7);
|
||||
btn.Insert();
|
||||
|
||||
btns.Retrieve(GroupMethodAttr.FrmID, this.getFrmID(), "Idx");
|
||||
}
|
||||
return btns.ToJson("dt");
|
||||
}
|
||||
/**
|
||||
实体、单据工具栏操作按钮的顺序移动
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String ToolbarSetting_Mover()
|
||||
{
|
||||
String[] ens = this.GetRequestVal("MyPKs").split("[,]", -1);
|
||||
for (int i = 0; i < ens.length; i++)
|
||||
{
|
||||
String enMyPK = ens[i];
|
||||
if (DataType.IsNullOrEmpty(enMyPK) == true)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
String sql = "UPDATE Frm_ToolbarBtn SET Idx=" + i + " WHERE MyPK='" + enMyPK + "'";
|
||||
DBAccess.RunSQL(sql);
|
||||
}
|
||||
return "顺序移动成功..";
|
||||
}
|
||||
|
||||
|
||||
|
||||
///#region 方法的操作.
|
||||
/**
|
||||
方法的初始化
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String Method_Init() throws Exception {
|
||||
GroupMethod gnn = new GroupMethod();
|
||||
|
||||
GroupMethods gms = new GroupMethods();
|
||||
int i = gms.Retrieve(GroupMethodAttr.FrmID, this.getFrmID(), "Idx");
|
||||
if (i == 0)
|
||||
{
|
||||
GroupMethod gm = new GroupMethod();
|
||||
gm.setFrmID(this.getFrmID());
|
||||
gm.setName("相关操作");
|
||||
gm.setMethodType("Home");
|
||||
gm.setIcon("icon-home");
|
||||
gm.Insert();
|
||||
gms.Retrieve(GroupMethodAttr.FrmID, this.getFrmID(), "Idx");
|
||||
}
|
||||
|
||||
DataTable dtGroups = gms.ToDataTableField("Groups");
|
||||
dtGroups.setTableName("Groups");
|
||||
|
||||
Methods methods = new Methods();
|
||||
// methods.Retrieve(MethodAttr.FrmID, this.FrmID, MethodAttr.IsEnable, 1, "Idx");
|
||||
methods.Retrieve(MethodAttr.FrmID, this.getFrmID(), "Idx");
|
||||
|
||||
DataTable dtMethods = methods.ToDataTableField("Methods");
|
||||
dtMethods.setTableName("Methods");
|
||||
|
||||
DataSet ds = new DataSet();
|
||||
ds.Tables.add(dtGroups);
|
||||
ds.Tables.add(dtMethods);
|
||||
|
||||
return bp.tools.Json.ToJson(ds);
|
||||
|
||||
}
|
||||
/**
|
||||
移动分组
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String Method_MoverGroup()
|
||||
{
|
||||
String[] ens = this.GetRequestVal("GroupIDs").split("[,]", -1);
|
||||
String frmID = this.getFrmID();
|
||||
for (int i = 0; i < ens.length; i++)
|
||||
{
|
||||
String en = ens[i];
|
||||
|
||||
String sql = "UPDATE Frm_GroupMethod SET Idx=" + i + " WHERE No='" + en + "' AND FrmID='" + frmID + "'";
|
||||
DBAccess.RunSQL(sql);
|
||||
}
|
||||
return "目录移动成功..";
|
||||
}
|
||||
/**
|
||||
移动方法.
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String Method_MoverMethod()
|
||||
{
|
||||
String sortNo = this.GetRequestVal("GroupID");
|
||||
|
||||
String[] ens = this.GetRequestVal("MethodIDs").split("[,]", -1);
|
||||
for (int i = 0; i < ens.length; i++)
|
||||
{
|
||||
String enNo = ens[i];
|
||||
String sql = "UPDATE Frm_Method SET GroupID ='" + sortNo + "',Idx=" + i + " WHERE No='" + enNo + "'";
|
||||
DBAccess.RunSQL(sql);
|
||||
}
|
||||
return "方法顺序移动成功..";
|
||||
}
|
||||
|
||||
///#endregion 方法的操作.
|
||||
|
||||
/**
|
||||
构造函数
|
||||
*/
|
||||
public WF_CCBill_Admin()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
列表集合初始化
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String Collection_Init() throws Exception {
|
||||
Collections collections = new Collections();
|
||||
int i = collections.Retrieve(GroupMethodAttr.FrmID, this.getFrmID(), "Idx");
|
||||
if (i == 0)
|
||||
{
|
||||
FrmBill bill = new FrmBill(this.getFrmID());
|
||||
//查询
|
||||
Collection collection = new Collection();
|
||||
collection.setFrmID(this.getFrmID());
|
||||
collection.setMethodID("Search");
|
||||
collection.setName("查询");
|
||||
collection.setMethodModel("Search");
|
||||
collection.setMark("Search");
|
||||
collection.setNo(collection.getFrmID() + "_" + collection.getMethodID());
|
||||
collection.SetValByKey("Idx", 0);
|
||||
collection.Insert();
|
||||
|
||||
if (bill.getEntityType() != EntityType.DBList)
|
||||
{
|
||||
//新建
|
||||
collection = new Collection();
|
||||
collection.setFrmID(this.getFrmID());
|
||||
collection.setMethodID("New");
|
||||
collection.setName("新建");
|
||||
collection.setMethodModel("New");
|
||||
collection.setMark("New");
|
||||
collection.setNo(collection.getFrmID() + "_" + collection.getMethodID());
|
||||
collection.SetValByKey("Idx", 1);
|
||||
collection.Insert();
|
||||
|
||||
//删除
|
||||
collection = new Collection();
|
||||
collection.setFrmID(this.getFrmID());
|
||||
collection.setMethodID("Delete");
|
||||
collection.setName("删除");
|
||||
collection.setMethodModel("Delete");
|
||||
collection.setMark("Delete");
|
||||
collection.setNo(collection.getFrmID() + "_" + collection.getMethodID());
|
||||
collection.SetValByKey("Idx", 2);
|
||||
collection.Insert();
|
||||
|
||||
//导入
|
||||
collection = new Collection();
|
||||
collection.setFrmID(this.getFrmID());
|
||||
collection.setMethodID("ImpExcel");
|
||||
collection.setName("导入Excel");
|
||||
collection.setMethodModel("ImpExcel");
|
||||
collection.setMark("ImpExcel");
|
||||
collection.setNo(collection.getFrmID() + "_" + collection.getMethodID());
|
||||
collection.SetValByKey("Idx", 5);
|
||||
collection.Insert();
|
||||
}
|
||||
|
||||
|
||||
collection = new Collection();
|
||||
collection.setFrmID(this.getFrmID());
|
||||
collection.setMethodID("Group");
|
||||
collection.setName("分析");
|
||||
collection.setMethodModel("Group");
|
||||
collection.setMark("Group");
|
||||
collection.setNo(collection.getFrmID() + "_" + collection.getMethodID());
|
||||
collection.SetValByKey("Idx", 3);
|
||||
collection.SetValByKey("IsEnable", false);
|
||||
collection.Insert();
|
||||
|
||||
//导出
|
||||
collection = new Collection();
|
||||
collection.setFrmID(this.getFrmID());
|
||||
collection.setMethodID("ExpExcel");
|
||||
collection.setName("导出Excel");
|
||||
collection.setMethodModel("ExpExcel");
|
||||
collection.setMark("ExpExcel");
|
||||
collection.setNo(collection.getFrmID() + "_" + collection.getMethodID());
|
||||
collection.SetValByKey("Idx", 4);
|
||||
collection.Insert();
|
||||
|
||||
|
||||
collections.Retrieve(GroupMethodAttr.FrmID, this.getFrmID(), "Idx");
|
||||
}
|
||||
return collections.ToJson("dt");
|
||||
}
|
||||
|
||||
/**
|
||||
集合方法的移动.
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String Collection_Mover()
|
||||
{
|
||||
String[] ens = this.GetRequestVal("MyPKs").split("[,]", -1);
|
||||
for (int i = 0; i < ens.length; i++)
|
||||
{
|
||||
String enNo = ens[i];
|
||||
if (DataType.IsNullOrEmpty(enNo) == true)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
String sql = "UPDATE Frm_Collection SET Idx=" + i + " WHERE No='" + enNo + "'";
|
||||
DBAccess.RunSQL(sql);
|
||||
}
|
||||
return "顺序移动成功..";
|
||||
}
|
||||
|
||||
|
||||
///#region 执行父类的重写方法.
|
||||
/**
|
||||
默认执行的方法
|
||||
|
||||
@return
|
||||
*/
|
||||
@Override
|
||||
protected String DoDefaultMethod()
|
||||
{
|
||||
switch (this.getDoType())
|
||||
{
|
||||
case "DtlFieldUp": //字段上移
|
||||
return "执行成功.";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
//找不不到标记就抛出异常.
|
||||
throw new RuntimeException("@标记[" + this.getDoType() + "]DoMethod=[" + this.GetRequestVal("DoMethod") + "],没有找到. @RowURL:" + ContextHolderUtils.getRequest().getRequestURI());
|
||||
}
|
||||
|
||||
///#endregion 执行父类的重写方法.
|
||||
}
|
||||
@ -0,0 +1,322 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.ccbill.template.Method;
|
||||
import bp.da.*;
|
||||
import bp.sys.*;
|
||||
import bp.en.*;
|
||||
import bp.wf.*;
|
||||
import bp.wf.Glo;
|
||||
import bp.wf.httphandler.*;
|
||||
import bp.ccbill.template.*;
|
||||
|
||||
/**
|
||||
实体集合的处理
|
||||
*/
|
||||
public class WF_CCBill_Admin_Collection extends bp.difference.handler.DirectoryPageBase
|
||||
{
|
||||
|
||||
///#region 属性.
|
||||
/**
|
||||
模块编号
|
||||
*/
|
||||
public final String getModuleNo()
|
||||
{
|
||||
String str = this.GetRequestVal("ModuleNo");
|
||||
return str;
|
||||
}
|
||||
/**
|
||||
菜单ID.
|
||||
*/
|
||||
public final String getMenuNo()
|
||||
{
|
||||
String str = this.GetRequestVal("MenuNo");
|
||||
return str;
|
||||
}
|
||||
|
||||
public final String getGroupID()
|
||||
{
|
||||
String str = this.GetRequestVal("GroupID");
|
||||
return str;
|
||||
}
|
||||
|
||||
///#endregion 属性.
|
||||
|
||||
/**
|
||||
构造函数
|
||||
*/
|
||||
public WF_CCBill_Admin_Collection()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
新建实体流程
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String FlowNewEntity_Save() throws Exception {
|
||||
//当前表单的信息
|
||||
MapData mapData = new MapData(this.getFrmID());
|
||||
|
||||
///#region 第1步: 创建一个流程.
|
||||
//首先创建流程. 参数都通过 httrp传入了。
|
||||
WF_Admin_CCBPMDesigner_FlowDevModel handler = new WF_Admin_CCBPMDesigner_FlowDevModel();
|
||||
String flowNo = handler.FlowDevModel_Save();
|
||||
|
||||
//执行更新. 设置为不能独立启动.
|
||||
Flow fl = new Flow(flowNo);
|
||||
fl.setItIsCanStart(false);
|
||||
fl.setTitleRole("@WebUser.No 在@RDT 发起【@DictName】");
|
||||
fl.Update();
|
||||
|
||||
//更新开始节点.
|
||||
Node nd = new Node(Integer.parseInt(flowNo + "01"));
|
||||
nd.setName(this.getName());
|
||||
if (mapData.getHisFrmType() == FrmType.Develop)
|
||||
{
|
||||
nd.setFormType(NodeFormType.Develop);
|
||||
MapData map = new MapData(nd.getNodeFrmID());
|
||||
map.setHisFrmType(FrmType.Develop);
|
||||
map.Update();
|
||||
}
|
||||
nd.Update();
|
||||
|
||||
|
||||
///#endregion 创建一个流程.
|
||||
|
||||
|
||||
///#region 第2步 把表单导入到流程上去.
|
||||
//如果是发起流程的方法,就要表单的字段复制到,流程的表单上去.
|
||||
WF_Admin_FoolFormDesigner_ImpExp handlerFrm = new WF_Admin_FoolFormDesigner_ImpExp();
|
||||
// handler.AddPara
|
||||
String ndFrmID = "ND" + Integer.parseInt(flowNo + "01");
|
||||
handlerFrm.Imp_CopyFrm(ndFrmID, this.getFrmID());
|
||||
|
||||
MapAttr attr = new MapAttr(ndFrmID + "_Title");
|
||||
attr.setUIVisible(false);
|
||||
attr.setName("流程标题");
|
||||
attr.Update();
|
||||
|
||||
//生成名称字段.
|
||||
attr.setKeyOfEn("DictName");
|
||||
attr.setName("名称");
|
||||
attr.setUIVisible(true);
|
||||
attr.setMyPK(attr.getFrmID() + "_" + attr.getKeyOfEn());
|
||||
attr.DirectInsert();
|
||||
|
||||
|
||||
|
||||
///#endregion 把表单导入到流程上去.
|
||||
|
||||
|
||||
//创建查询菜单.放入到与该实体平行的位置.
|
||||
bp.ccfast.ccmenu.Menu menu = new bp.ccfast.ccmenu.Menu();
|
||||
menu.setModuleNo(this.getModuleNo()); //隶属与实体一个模块.
|
||||
menu.setName(this.getName());
|
||||
menu.setIdx(0);
|
||||
menu.setMenuModel(MethodModelClass.FlowNewEntity); //新建实体流程..
|
||||
|
||||
//menu.MenuModel = menuModel "FlowEtc"; //其他类型的业务流程.
|
||||
menu.setMark("Search"); //流程查询.
|
||||
menu.setTag1(flowNo); //流程编号.
|
||||
menu.setNo(this.getFrmID() + "_" + flowNo);
|
||||
menu.setIcon("icon-paper-plane");
|
||||
menu.Insert();
|
||||
|
||||
|
||||
//处理启动此流程后与实体的关系设计.
|
||||
MethodFlowNewEntity en = new MethodFlowNewEntity(menu.getNo());
|
||||
en.setFlowNo(flowNo);
|
||||
en.setFrmID(this.getFrmID());
|
||||
en.setDTSWhenFlowOver(true); // 是否在流程结束后同步?
|
||||
en.setDTSDataWay(1); // 同步所有相同的字段.
|
||||
en.setUrlExt("/WF/CCBill/Opt/StartFlowByNewEntity.htm?FlowNo=" + en.getFlowNo() + "&FrmID=" + this.getFrmID() + "&MenuNo=" + menu.getNo());
|
||||
en.Update();
|
||||
|
||||
//增加一个集合链接.
|
||||
Collection enColl = new Collection();
|
||||
enColl.setFrmID(this.getFrmID());
|
||||
enColl.setMethodID(MethodModelClass.FlowNewEntity);
|
||||
enColl.setMark(MethodModelClass.FlowNewEntity);
|
||||
enColl.setName(this.getName());
|
||||
|
||||
enColl.setFlowNo(flowNo);
|
||||
enColl.setTag1(flowNo);
|
||||
|
||||
enColl.setMethodModel(MethodModelClass.FlowNewEntity); //方法模式.
|
||||
// enColl.UrlExt = "../CCBill/Opt/StartFlowByNewEntity.htm?FlowNo=" + en.FlowNo + "&FrmID=" + this.getFrmID() + "&MenuNo=" + menu.No;
|
||||
enColl.setIcon("icon-drop");
|
||||
enColl.setIdx(100);
|
||||
enColl.SetPara("EnName", "TS.CCBill.CollectionFlowNewEntity");
|
||||
enColl.setNo(enColl.getFrmID() + "_" + enColl.getFlowNo());
|
||||
enColl.Insert();
|
||||
|
||||
return menu.getNo(); //返回的方法ID;
|
||||
}
|
||||
/**
|
||||
单据批量发起流程
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String Bill_Save() throws Exception {
|
||||
String fromFrmID = this.GetRequestVal("DictFrmID");
|
||||
String toFrmID = this.GetRequestVal("BillFrmID");
|
||||
|
||||
//创建从表
|
||||
MapDtl mapDtl = new MapDtl();
|
||||
mapDtl.setFrmID(toFrmID);
|
||||
mapDtl.setNo(toFrmID + "Dtl1");
|
||||
mapDtl.setNodeID(0);
|
||||
mapDtl.setName("从表");
|
||||
mapDtl.setPTable(mapDtl.getNo());
|
||||
mapDtl.setH(300);
|
||||
mapDtl.Insert();
|
||||
mapDtl.IntMapAttrs();
|
||||
|
||||
//这里仅仅复制主表的字段.
|
||||
MapAttrs attrsFrom = new MapAttrs();
|
||||
attrsFrom.Retrieve(MapAttrAttr.FK_MapData, fromFrmID, null);
|
||||
for (MapAttr attr : attrsFrom.ToJavaList())
|
||||
{
|
||||
if (attr.IsExit(MapAttrAttr.FK_MapData, mapDtl.getNo(), MapAttrAttr.KeyOfEn, attr.getKeyOfEn()) == true)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (attr.IsExit(MapAttrAttr.FK_MapData, mapDtl.getNo(), MapAttrAttr.KeyOfEn, attr.getKeyOfEn()) == true)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
attr.setFrmID( mapDtl.getNo());
|
||||
attr.setMyPK(attr.getFrmID() + "_" + attr.getKeyOfEn());
|
||||
attr.Insert();
|
||||
}
|
||||
//增加一个关联的实体字段的OID
|
||||
MapAttr mapAttr = new MapAttr();
|
||||
mapAttr.setFrmID(mapDtl.getNo());
|
||||
mapAttr.setEditType(EditType.Readonly);
|
||||
mapAttr.setKeyOfEn("DictOID");
|
||||
mapAttr.setName("关联实体的OID");
|
||||
mapAttr.setMyDataType(DataType.AppInt);
|
||||
mapAttr.setUIContralType(UIContralType.TB);
|
||||
mapAttr.setLGType(FieldTypeS.Normal);
|
||||
mapAttr.setUIVisible(false);
|
||||
mapAttr.setUIIsEnable(false);
|
||||
mapAttr.setDefVal("0");
|
||||
mapAttr.Insert();
|
||||
return "复制成功.";
|
||||
|
||||
|
||||
}
|
||||
/**
|
||||
实体批量发起流程
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String FlowEntityBatchStart_Save() throws Exception {
|
||||
|
||||
|
||||
///#region 第1步: 创建一个流程.
|
||||
//首先创建流程. 参数都通过 httrp传入了。
|
||||
WF_Admin_CCBPMDesigner_FlowDevModel handler = new WF_Admin_CCBPMDesigner_FlowDevModel();
|
||||
String flowNo = handler.FlowDevModel_Save();
|
||||
|
||||
//执行更新. 设置为不能独立启动.
|
||||
Flow fl = new bp.wf.Flow(flowNo);
|
||||
fl.setItIsCanStart(false);
|
||||
fl.Update();
|
||||
|
||||
///#endregion 创建一个流程.
|
||||
|
||||
|
||||
///#region 第2步 把表单导入到流程的从表中去.
|
||||
//如果是发起流程的方法,就要表单的字段复制到,流程的表单上去.
|
||||
String frmID = "ND" + Integer.parseInt(fl.getNo()) + "01";
|
||||
MapDtl mapDtl = new MapDtl();
|
||||
mapDtl.setFrmID(frmID);
|
||||
mapDtl.setNo(frmID + "Dtl1");
|
||||
mapDtl.setNodeID(0);
|
||||
mapDtl.setName("从表");
|
||||
mapDtl.setPTable(mapDtl.getNo());
|
||||
mapDtl.setH(300);
|
||||
mapDtl.Insert();
|
||||
mapDtl.IntMapAttrs();
|
||||
|
||||
//这里仅仅复制主表的字段.
|
||||
MapAttrs attrsFrom = new MapAttrs();
|
||||
attrsFrom.Retrieve(MapAttrAttr.FK_MapData, this.getFrmID(), null);
|
||||
for (MapAttr attr : attrsFrom.ToJavaList())
|
||||
{
|
||||
//是否包含,系统字段?
|
||||
if (bp.wf.Glo.getFlowFields().contains("," + attr.getKeyOfEn() + ",") == true)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (attr.IsExit(MapAttrAttr.FK_MapData, mapDtl.getNo(), MapAttrAttr.KeyOfEn, attr.getKeyOfEn()) == true)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
attr.setFrmID( mapDtl.getNo());
|
||||
attr.setMyPK(attr.getFrmID() + "_" + attr.getKeyOfEn());
|
||||
attr.Insert();
|
||||
}
|
||||
//增加一个关联的实体字段的OID
|
||||
MapAttr mapAttr = new MapAttr();
|
||||
mapAttr.setFrmID(mapDtl.getNo());
|
||||
mapAttr.setEditType(EditType.Readonly);
|
||||
mapAttr.setKeyOfEn("DictOID");
|
||||
mapAttr.setName("关联实体的OID");
|
||||
mapAttr.setMyDataType(DataType.AppInt);
|
||||
mapAttr.setUIContralType(UIContralType.TB);
|
||||
mapAttr.setLGType(FieldTypeS.Normal);
|
||||
mapAttr.setUIVisible(false);
|
||||
mapAttr.setUIIsEnable(false);
|
||||
mapAttr.setDefVal("0");
|
||||
mapAttr.Insert();
|
||||
//更新开始节点.
|
||||
Node nd = new Node(Integer.parseInt(flowNo + "01"));
|
||||
nd.setName(this.getName());
|
||||
nd.Update();
|
||||
|
||||
///#endregion 把表单导入到流程上去.
|
||||
|
||||
|
||||
//创建方法.
|
||||
Method en = new Method();
|
||||
en.setFrmID(this.getFrmID());
|
||||
en.setNo(en.getFrmID() + "_" + flowNo);
|
||||
en.setName(this.getName());
|
||||
en.setGroupID(this.getGroupID()); //分组的编号.
|
||||
en.setFlowNo(flowNo);
|
||||
en.setIcon("icon-paper-plane");
|
||||
en.setRefMethodType(RefMethodType.LinkeWinOpen); // = 1;
|
||||
en.setMethodModel(MethodModelClass.FlowEntityBatchStart); //类型.
|
||||
en.setMark("Search"); //发起流程.
|
||||
en.setTag1(flowNo); //标记为空.
|
||||
en.SetValByKey("IsCanBatch", 1);
|
||||
en.setMethodID(flowNo); // 就是流程编号.
|
||||
|
||||
en.setFlowNo(flowNo);
|
||||
en.Insert();
|
||||
|
||||
|
||||
//增加一个集合链接.
|
||||
Collection enColl = new Collection();
|
||||
enColl.setFrmID(this.getFrmID());
|
||||
enColl.setMethodID(MethodModelClass.FlowEntityBatchStart);
|
||||
enColl.setMark(MethodModelClass.FlowEntityBatchStart);
|
||||
enColl.setName(this.getName());
|
||||
|
||||
enColl.setFlowNo(flowNo);
|
||||
enColl.setTag1(flowNo);
|
||||
|
||||
enColl.setMethodModel(MethodModelClass.FlowEntityBatchStart); //方法模式.
|
||||
enColl.setIcon("icon-drop");
|
||||
enColl.Insert();
|
||||
//返回方法编号。
|
||||
return en.getNo();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,249 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.sys.*;
|
||||
import bp.wf.httphandler.*;
|
||||
import bp.difference.*;
|
||||
import java.net.URLDecoder;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 页面功能实体
|
||||
*/
|
||||
public class WF_CCBill_Admin_DBList extends bp.difference.handler.DirectoryPageBase {
|
||||
|
||||
///#region 属性.
|
||||
|
||||
/**
|
||||
* 模块编号
|
||||
*/
|
||||
public final String getModuleNo() {
|
||||
String str = this.GetRequestVal("ModuleNo");
|
||||
return str;
|
||||
}
|
||||
|
||||
/**
|
||||
* 菜单ID.
|
||||
*/
|
||||
public final String getMenuNo() {
|
||||
String str = this.GetRequestVal("MenuNo");
|
||||
return str;
|
||||
}
|
||||
|
||||
public final String getGroupID() {
|
||||
String str = this.GetRequestVal("GroupID");
|
||||
return str;
|
||||
}
|
||||
|
||||
///#endregion 属性.
|
||||
|
||||
/**
|
||||
* 构造函数
|
||||
*/
|
||||
public WF_CCBill_Admin_DBList() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 映射
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public final String FieldsORM_Init() throws Exception {
|
||||
try {
|
||||
DBList db = new DBList(this.getFrmID());
|
||||
|
||||
String sql = db.getExpEn();
|
||||
if (DataType.IsNullOrEmpty(sql) == true) {
|
||||
return "";
|
||||
}
|
||||
|
||||
sql = sql.replace("~~", "\"");
|
||||
sql = sql.replace("~", "'");
|
||||
|
||||
DataTable mydt = new DataTable();
|
||||
mydt.Columns.Add("No");
|
||||
mydt.Columns.Add("DBType");
|
||||
//SQL查询
|
||||
if (db.getDBType() == 0) {
|
||||
sql = sql.replace("@Key", "1234");
|
||||
DataTable dt = null;
|
||||
try {
|
||||
//本机数据库查询
|
||||
if (Objects.equals(db.getDBSrc(), "local") || DataType.IsNullOrEmpty(db.getDBSrc()) == true) {
|
||||
dt = DBAccess.RunSQLReturnTable(sql);
|
||||
} else {
|
||||
SFDBSrc dbsrc = new SFDBSrc(db.getDBSrc());
|
||||
dt = dbsrc.RunSQLReturnTable(sql);
|
||||
}
|
||||
} catch (RuntimeException ex) {
|
||||
return ex.getMessage();
|
||||
}
|
||||
|
||||
for (DataColumn dc : dt.Columns) {
|
||||
DataRow dr = mydt.NewRow();
|
||||
dr.setValue(0, dc.ColumnName);
|
||||
dr.setValue(1, dc.getDataType());
|
||||
mydt.Rows.add(dr);
|
||||
}
|
||||
return bp.tools.Json.ToJson(mydt);
|
||||
}
|
||||
|
||||
|
||||
//根据URL获取数据源
|
||||
if (db.getDBType() == 1) {
|
||||
String url = sql;
|
||||
url = url.replace("@Key", "");
|
||||
if (url.contains("http") == false) {
|
||||
/*如果没有绝对路径 */
|
||||
if (SystemConfig.isBSsystem()) {
|
||||
/*在cs模式下自动获取*/
|
||||
String host = bp.sys.base.Glo.getRequest().getRemoteHost();
|
||||
if (url.contains("@AppPath")) {
|
||||
url = url.replace("@AppPath", "http://" + host + bp.sys.base.Glo.getRequest().getRemoteAddr()); //bp.sys.Glo.Request.ApplicationPath
|
||||
} else {
|
||||
url = "http://" + bp.sys.base.Glo.getRequest().getRemoteHost() + url;
|
||||
}
|
||||
}
|
||||
|
||||
if (SystemConfig.isBSsystem() == false) {
|
||||
/*在cs模式下它的baseurl 从web.config中获取.*/
|
||||
String cfgBaseUrl = (String) SystemConfig.getAppSettings().get("HostURL");
|
||||
if (DataType.IsNullOrEmpty(cfgBaseUrl)) {
|
||||
String err = "调用url失败:没有在web.config中配置BaseUrl,导致url事件不能被执行.";
|
||||
Log.DebugWriteError(err);
|
||||
throw new RuntimeException(err);
|
||||
}
|
||||
url = cfgBaseUrl + url;
|
||||
}
|
||||
}
|
||||
String json = DataType.ReadURLContext(url, 8000);
|
||||
if (DataType.IsNullOrEmpty(json) == true) {
|
||||
return "err@执行URL没有返回结果值";
|
||||
}
|
||||
|
||||
DataTable dt = bp.tools.Json.ToDataTable(json);
|
||||
for (DataColumn dc : dt.Columns) {
|
||||
DataRow dr = mydt.NewRow();
|
||||
dr.setValue(0, dc.ColumnName);
|
||||
dr.setValue(1, dc.getDataType());
|
||||
mydt.Rows.add(dr);
|
||||
}
|
||||
json = bp.tools.Json.ToJson(mydt);
|
||||
|
||||
return json;
|
||||
}
|
||||
//执行存储过程
|
||||
if (db.getDBType() == 2) {
|
||||
if (sql.trim().toUpperCase().startsWith("SELECT") == false) {
|
||||
switch (SystemConfig.getAppCenterDBType()) {
|
||||
case MSSQL:
|
||||
sql = "EXEC " + sql + " null";
|
||||
break;
|
||||
case MySQL:
|
||||
sql = "CALL " + sql + "(null)";
|
||||
break;
|
||||
default:
|
||||
throw new RuntimeException("err@其他版本的数据还未解析该功能");
|
||||
}
|
||||
}
|
||||
DataTable dt = DBAccess.RunSQLReturnTable(sql);
|
||||
for (DataColumn dc : dt.Columns) {
|
||||
DataRow dr = mydt.NewRow();
|
||||
dr.setValue(0, dc.ColumnName);
|
||||
dr.setValue(1, dc.getDataType());
|
||||
mydt.Rows.add(dr);
|
||||
}
|
||||
return bp.tools.Json.ToJson(mydt);
|
||||
|
||||
}
|
||||
return "err@没有增加的判断" + db.getDBType();
|
||||
} catch (RuntimeException ex) {
|
||||
return "err@" + ex.getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
public final String FieldsORM_SaveKeysName() throws Exception {
|
||||
MapAttrs mapAttrs = new MapAttrs(this.getFrmID() + "Bak");
|
||||
//改变类型先保存字段集合的名称
|
||||
for (String key : ContextHolderUtils.getRequest().getParameterMap().keySet()) {
|
||||
if (key == null) {
|
||||
continue;
|
||||
}
|
||||
if (key.indexOf("TB_") == -1 || key.equals("TB_Doc") == true) {
|
||||
continue;
|
||||
}
|
||||
String myKey = key;
|
||||
String val = ContextHolderUtils.getRequest().getParameter(key);
|
||||
myKey = myKey.replace("TB_", "");
|
||||
|
||||
val = URLDecoder.decode(val, "UTF-8");
|
||||
|
||||
Object tempVar = mapAttrs.GetEntityByKey(this.getFrmID() + "Bak_" + myKey);
|
||||
MapAttr attr = tempVar instanceof MapAttr ? (MapAttr) tempVar : null;
|
||||
if (attr != null) {
|
||||
boolean uiVisible = this.GetRequestValBoolen("CB_" + attr.getKeyOfEn());
|
||||
attr.setUIVisible(uiVisible);
|
||||
attr.setName(val);
|
||||
attr.DirectUpdate();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
return "保存成功";
|
||||
}
|
||||
|
||||
/**
|
||||
* 执行应用
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public final String FieldsORM_App() throws Exception {
|
||||
|
||||
// 删除当前的字段.
|
||||
//系统字段
|
||||
String systemKeys = "BillState,RDT,Starter,StarterName,OrgNo,AtPara";
|
||||
String sql = "DELETE FROM Sys_MapAttr Where FK_MapData='" + this.getFrmID() + "' AND KeyOfEn NOT IN('" + systemKeys.replace(",", "','") + "')";
|
||||
DBAccess.RunSQL(sql);
|
||||
// 按照顺序从 bak里copy过来.
|
||||
systemKeys = systemKeys + ",";
|
||||
//保存当前字段
|
||||
MapAttrs mapAttrs = new MapAttrs(this.getFrmID() + "Bak");
|
||||
//改变类型先保存字段集合的名称
|
||||
for (String key : ContextHolderUtils.getRequest().getParameterMap().keySet()) {
|
||||
if (key == null) {
|
||||
continue;
|
||||
}
|
||||
if (key.indexOf("TB_") == -1 || key.equals("TB_DBSrc") == true) {
|
||||
continue;
|
||||
}
|
||||
String myKey = key;
|
||||
String val = ContextHolderUtils.getRequest().getParameter(key);
|
||||
myKey = myKey.replace("TB_", "");
|
||||
|
||||
val = URLDecoder.decode(val, "UTF-8");
|
||||
|
||||
Object tempVar = mapAttrs.GetEntityByKey(this.getFrmID() + "Bak_" + myKey);
|
||||
MapAttr attr = tempVar instanceof MapAttr ? (MapAttr) tempVar : null;
|
||||
if (attr != null) {
|
||||
boolean uiVisible = this.GetRequestValBoolen("CB_" + attr.getKeyOfEn());
|
||||
attr.setName(val);
|
||||
attr.setUIVisible(uiVisible);
|
||||
attr.DirectUpdate();
|
||||
if (systemKeys.indexOf(attr.getKeyOfEn() + ",") == -1) {
|
||||
attr.setFrmID(this.getFrmID());
|
||||
attr.setMyPK(this.getFrmID() + "_" + attr.getKeyOfEn());
|
||||
attr.setGroupID(1);
|
||||
attr.Insert();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
MapData mapData = new MapData(this.getFrmID());
|
||||
mapData.ClearCache();
|
||||
return "执行成功";
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,119 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.ccbill.template.*;
|
||||
import java.io.*;
|
||||
|
||||
/**
|
||||
页面功能实体
|
||||
*/
|
||||
public class WF_CCBill_Admin_MethodDoc extends bp.difference.handler.DirectoryPageBase
|
||||
{
|
||||
|
||||
///#region 属性.
|
||||
public final String getGroupID()
|
||||
{
|
||||
String str = this.GetRequestVal("GroupID");
|
||||
return str;
|
||||
}
|
||||
///#endregion 属性.
|
||||
|
||||
/**
|
||||
构造函数
|
||||
*/
|
||||
public WF_CCBill_Admin_MethodDoc()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
移动方法.
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String MethodParas_Mover()
|
||||
{
|
||||
String[] ens = this.GetRequestVal("MyPKs").split("[,]", -1);
|
||||
for (int i = 0; i < ens.length; i++)
|
||||
{
|
||||
String enNo = ens[i];
|
||||
String sql = "UPDATE Sys_MapAttr SET Idx=" + i + " WHERE MyPK='" + enNo + "'";
|
||||
DBAccess.RunSQL(sql);
|
||||
}
|
||||
return "方法顺序移动成功..";
|
||||
}
|
||||
|
||||
/**
|
||||
获得js,sql内容.
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String MethodDoc_GetScript() throws Exception {
|
||||
MethodFunc en = new MethodFunc(this.getNo());
|
||||
int type = this.GetRequestValInt("TypeOfFunc");
|
||||
if (type == 0)
|
||||
{
|
||||
return en.getMethodDocSQL();
|
||||
}
|
||||
|
||||
if (type == 1)
|
||||
{
|
||||
return en.getMethodDocJavaScript();
|
||||
}
|
||||
|
||||
if (type == 2)
|
||||
{
|
||||
return en.getMethodDocUrl();
|
||||
}
|
||||
|
||||
return "err@没有判断的类型.";
|
||||
}
|
||||
/**
|
||||
保存脚本
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String MethodDoc_SaveScript() throws Exception {
|
||||
MethodFunc en = new MethodFunc(this.getNo());
|
||||
|
||||
int type = this.GetRequestValInt("TypeOfFunc");
|
||||
String doc = this.GetRequestVal("doc");
|
||||
String funcstr = this.GetRequestVal("funcstr");
|
||||
//sql模式.
|
||||
if (type == 0)
|
||||
{
|
||||
doc = doc.replace("/#", "+");
|
||||
doc = doc.replace("/$", "-");
|
||||
en.setMethodDocSQL(doc);
|
||||
}
|
||||
|
||||
//script.
|
||||
if (type == 1)
|
||||
{
|
||||
en.setMethodDocJavaScript(doc);
|
||||
|
||||
String path = bp.difference.SystemConfig.getPathOfDataUser() + "JSLibData/Method/";
|
||||
if ((new File(path)).isDirectory() == false)
|
||||
{
|
||||
(new File(path)).mkdirs();
|
||||
}
|
||||
//写入文件.
|
||||
String file = path + en.getNo() + ".js";
|
||||
funcstr = funcstr.replace("/#", "+");
|
||||
funcstr = funcstr.replace("/$", "-");
|
||||
DataType.WriteFile(file, funcstr);
|
||||
}
|
||||
|
||||
//url. 、 methond.
|
||||
if (type == 2 || type == 3)
|
||||
{
|
||||
en.setTag1(this.GetRequestVal("Tag1"));
|
||||
}
|
||||
|
||||
en.setMethodDocTypeOfFunc(type);
|
||||
en.DirectUpdate();
|
||||
|
||||
return "保存成功.";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,122 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.wf.httphandler.*;
|
||||
import bp.*;
|
||||
import java.io.*;
|
||||
|
||||
/**
|
||||
页面功能实体
|
||||
*/
|
||||
public class WF_CCBill_Admin_MethodDocSys extends bp.difference.handler.DirectoryPageBase
|
||||
{
|
||||
|
||||
///#region 属性.
|
||||
public final String getGroupID()
|
||||
{
|
||||
String str = this.GetRequestVal("GroupID");
|
||||
return str;
|
||||
}
|
||||
|
||||
|
||||
///#endregion 属性.
|
||||
|
||||
/**
|
||||
构造函数
|
||||
*/
|
||||
public WF_CCBill_Admin_MethodDocSys()
|
||||
{
|
||||
|
||||
}
|
||||
/**
|
||||
移动方法.
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String MethodDocSysParas_Mover()
|
||||
{
|
||||
String[] ens = this.GetRequestVal("MyPKs").split("[,]", -1);
|
||||
for (int i = 0; i < ens.length; i++)
|
||||
{
|
||||
String enNo = ens[i];
|
||||
String sql = "UPDATE Sys_MapAttr SET Idx=" + i + " WHERE MyPK='" + enNo + "'";
|
||||
DBAccess.RunSQL(sql);
|
||||
}
|
||||
return "方法顺序移动成功..";
|
||||
}
|
||||
|
||||
/**
|
||||
获得js,sql内容.
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String MethodDocSys_GetScript() throws Exception {
|
||||
bp.ccbill.sys.Func en = new bp.ccbill.sys.Func(this.getNo());
|
||||
int type = this.GetRequestValInt("TypeOfFunc");
|
||||
if (type == 0)
|
||||
{
|
||||
return en.getMethodDocSQL();
|
||||
}
|
||||
|
||||
if (type == 1)
|
||||
{
|
||||
return en.getMethodDocJavaScript();
|
||||
}
|
||||
|
||||
if (type == 2)
|
||||
{
|
||||
return en.getMethodDocUrl();
|
||||
}
|
||||
|
||||
return "err@没有判断的类型.";
|
||||
}
|
||||
/**
|
||||
保存脚本
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String MethodDocSys_SaveScript() throws Exception {
|
||||
bp.ccbill.sys.Func en = new bp.ccbill.sys.Func(this.getNo());
|
||||
|
||||
int type = this.GetRequestValInt("TypeOfFunc");
|
||||
String doc = this.GetRequestVal("doc");
|
||||
String funcstr = this.GetRequestVal("funcstr");
|
||||
//sql模式.
|
||||
if (type == 0)
|
||||
{
|
||||
doc = doc.replace("/#", "+");
|
||||
doc = doc.replace("/$", "-");
|
||||
en.setMethodDocSQL(doc);
|
||||
}
|
||||
|
||||
//script.
|
||||
if (type == 1)
|
||||
{
|
||||
en.setMethodDocJavaScript(doc);
|
||||
|
||||
String path = bp.difference.SystemConfig.getPathOfDataUser() + "JSLibData/Method/";
|
||||
if ((new File(path)).isDirectory() == false)
|
||||
{
|
||||
(new File(path)).mkdirs();
|
||||
}
|
||||
//写入文件.
|
||||
String file = path + en.getNo() + ".js";
|
||||
funcstr = funcstr.replace("/#", "+");
|
||||
funcstr = funcstr.replace("/$", "-");
|
||||
DataType.WriteFile(file, funcstr);
|
||||
}
|
||||
|
||||
//url. 、 methond.
|
||||
if (type == 2 || type == 3)
|
||||
{
|
||||
en.setMethodDocUrl(this.GetRequestVal("Tag1"));
|
||||
}
|
||||
|
||||
en.setMethodDocTypeOfFunc(type);
|
||||
en.DirectUpdate();
|
||||
|
||||
return "保存成功.";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@ -0,0 +1,66 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.wf.*;
|
||||
import bp.wf.httphandler.*;
|
||||
import bp.ccbill.template.*;
|
||||
import bp.*;
|
||||
|
||||
/**
|
||||
页面功能实体
|
||||
*/
|
||||
public class WF_CCBill_OptOneFlow extends bp.difference.handler.DirectoryPageBase
|
||||
{
|
||||
|
||||
///#region 构造方法.
|
||||
/**
|
||||
构造函数
|
||||
*/
|
||||
public WF_CCBill_OptOneFlow()
|
||||
{
|
||||
}
|
||||
|
||||
///#endregion 构造方法.
|
||||
|
||||
/**
|
||||
基础资料修改流程
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String FlowBaseData_Init()
|
||||
{
|
||||
MethodFlowBaseData method = new MethodFlowBaseData();
|
||||
return "";
|
||||
}
|
||||
/**
|
||||
单个实体流程记录.
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String SingleDictGenerWorkFlows_Init() throws Exception {
|
||||
DataSet ds = new DataSet();
|
||||
|
||||
String sql = "SELECT DISTINCT A.FK_Flow as No, A.FlowName as Name, B.Icon FROM WF_GenerWorkFlow A, WF_Flow B WHERE A.FK_Flow=B.No AND A.PWorkID=" + this.getWorkID();
|
||||
DataTable dtGroup = DBAccess.RunSQLReturnTable(sql);
|
||||
dtGroup.setTableName("Flows");
|
||||
if (bp.difference.SystemConfig.getAppCenterDBFieldCaseModel() == FieldCaseModel.UpperCase)
|
||||
{
|
||||
dtGroup.Columns.get(0).setColumnName("No");
|
||||
dtGroup.Columns.get(1).setColumnName("Name");
|
||||
dtGroup.Columns.get(2).setColumnName("Icon");
|
||||
}
|
||||
|
||||
ds.Tables.add(dtGroup);
|
||||
|
||||
//获得所有的子流程数据.
|
||||
GenerWorkFlows gwfs = new GenerWorkFlows();
|
||||
gwfs.Retrieve(GenerWorkFlowAttr.PWorkID, this.getWorkID(), null);
|
||||
|
||||
DataTable mydt = gwfs.ToDataTableField("GenerWorkFlows");
|
||||
mydt.Columns.Add("Icon");
|
||||
ds.Tables.add(mydt);
|
||||
|
||||
return bp.tools.Json.ToJson(ds);
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,198 @@
|
||||
package bp.ccbill;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.web.*;
|
||||
import bp.wf.httphandler.*;
|
||||
import bp.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
页面功能实体
|
||||
*/
|
||||
public class WF_CCBill_Portal extends bp.difference.handler.DirectoryPageBase
|
||||
{
|
||||
|
||||
///#region 构造方法.
|
||||
/**
|
||||
构造函数
|
||||
*/
|
||||
public WF_CCBill_Portal()
|
||||
{
|
||||
}
|
||||
|
||||
///#endregion 构造方法.
|
||||
|
||||
|
||||
///#region 欢迎页面初始化.
|
||||
/**
|
||||
欢迎页面初始化
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String Default_Init()
|
||||
{
|
||||
Hashtable ht = new Hashtable();
|
||||
ht.put("FlowNum", DBAccess.RunSQLReturnValInt("SELECT COUNT(No) FROM WF_Flow")); //流程数
|
||||
ht.put("NodeNum", DBAccess.RunSQLReturnValInt("SELECT COUNT(NodeID) FROM WF_Node")); //节点数据
|
||||
ht.put("FromNum", DBAccess.RunSQLReturnValInt("SELECT COUNT(No) FROM Sys_MapData")); //表单数
|
||||
|
||||
ht.put("FlowInstaceNum", DBAccess.RunSQLReturnValInt("SELECT COUNT(WorkID) FROM WF_GenerWorkFlow WHERE WFState >1 ")); //实例数.
|
||||
ht.put("TodolistNum", DBAccess.RunSQLReturnValInt("SELECT COUNT(WorkID) FROM WF_GenerWorkFlow WHERE WFState=2 ")); //待办数
|
||||
ht.put("ReturnNum", DBAccess.RunSQLReturnValInt("SELECT COUNT(WorkID) FROM WF_GenerWorkFlow WHERE WFState=5 ")); //退回数.
|
||||
|
||||
ht.put("OverTimeNum", DBAccess.RunSQLReturnValInt("SELECT COUNT(WorkID) FROM WF_GenerWorkFlow WHERE WFState=5 ")); //逾期数.
|
||||
|
||||
return bp.tools.Json.ToJson(ht);
|
||||
}
|
||||
/**
|
||||
获得数据
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String Default_DataSet() throws Exception {
|
||||
DataSet ds = new DataSet();
|
||||
|
||||
//月份分组.
|
||||
String sql = "SELECT FK_NY, count(WorkID) as Num FROM WF_GenerWorkFlow WHERE WFState >1 GROUP BY FK_NY ";
|
||||
DataTable dt = DBAccess.RunSQLReturnTable(sql);
|
||||
dt.setTableName("DTNY");
|
||||
ds.Tables.add(dt);
|
||||
|
||||
//部门分组.
|
||||
sql = "SELECT DeptName, count(WorkID) as Num FROM WF_EmpWorks WHERE WFState >1 GROUP BY DeptName";
|
||||
DataTable deptNums = DBAccess.RunSQLReturnTable(sql);
|
||||
deptNums.setTableName("DeptNums");
|
||||
ds.Tables.add(deptNums);
|
||||
|
||||
//流程分组.
|
||||
sql = "SELECT FlowName, count(WorkID) as Num FROM WF_EmpWorks WHERE WFState >1 GROUP BY FlowName";
|
||||
DataTable flowNums = DBAccess.RunSQLReturnTable(sql);
|
||||
flowNums.setTableName("FlowNums");
|
||||
ds.Tables.add(flowNums);
|
||||
return bp.tools.Json.ToJson(ds);
|
||||
}
|
||||
|
||||
///#endregion 欢迎页面初始化.
|
||||
|
||||
|
||||
///#region 移动页面.
|
||||
/**
|
||||
获取首页中草稿、待办、已完成的数据
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String Default_TodoNums() throws Exception {
|
||||
Hashtable ht = new Hashtable();
|
||||
|
||||
//我发起的草稿
|
||||
ht.put("Todolist_Draft", bp.wf.Dev2Interface.getTodolistDraft());
|
||||
|
||||
////我发起在处理的流程
|
||||
ht.put("MyStart_Runing", bp.wf.Dev2Interface.getMyStartRuning());
|
||||
|
||||
////我发起已完成的流程
|
||||
ht.put("MyStart_Complete", bp.wf.Dev2Interface.getMyStartComplete());
|
||||
|
||||
//我处理的待办数量
|
||||
ht.put("Todolist_EmpWorks", bp.wf.Dev2Interface.getTodolistEmpWorks());
|
||||
return bp.tools.Json.ToJson(ht);
|
||||
}
|
||||
/**
|
||||
获得最近使用的流程.
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String Default_FlowsNearly()
|
||||
{
|
||||
String sql = "";
|
||||
int top = GetRequestValInt("Top");
|
||||
if (top == 0)
|
||||
{
|
||||
top = 8;
|
||||
}
|
||||
|
||||
switch (bp.difference.SystemConfig.getAppCenterDBType())
|
||||
{
|
||||
case MSSQL:
|
||||
sql = " SELECT TOP " + top + " FK_Flow,FlowName,F.Icon FROM WF_GenerWorkFlow G ,WF_Flow F WHERE F.IsCanStart=1 AND F.No=G.FK_Flow AND Starter='" + WebUser.getNo() + "' GROUP BY FK_Flow,FlowName,ICON ORDER By Max(SendDT) DESC";
|
||||
break;
|
||||
case MySQL:
|
||||
case PostgreSQL:
|
||||
case UX:
|
||||
case HGDB:
|
||||
sql = " SELECT DISTINCT A.FK_Flow,A.FlowName,B.Icon,A.SendDT FROM WF_GenerWorkFlow A ,WF_Flow B WHERE B.IsCanStart=1 AND B.No=A.FK_Flow AND A.Starter='" + WebUser.getNo() + "' Order By A.SendDT limit " + top;
|
||||
break;
|
||||
case Oracle:
|
||||
case DM:
|
||||
case KingBaseR3:
|
||||
case KingBaseR6:
|
||||
sql = " SELECT * FROM (SELECT DISTINCT FK_Flow as \"FK_Flow\",FlowName as \"FlowName\",F.Icon ,max(SendDT) SendDT FROM WF_GenerWorkFlow G ,WF_Flow F WHERE F.IsCanStart=1 AND F.No=G.FK_Flow AND Starter='" + WebUser.getNo() + "' GROUP BY FK_Flow,FlowName,ICON Order By SendDT) WHERE rownum <=" + top;
|
||||
break;
|
||||
default:
|
||||
throw new RuntimeException("err@系统暂时还未开发使用" + bp.difference.SystemConfig.getAppCenterDBType() + "数据库");
|
||||
}
|
||||
DataTable dt = DBAccess.RunSQLReturnTable(sql);
|
||||
return bp.tools.Json.ToJson(dt);
|
||||
}
|
||||
|
||||
/**
|
||||
常用菜单
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String Default_MenusOfFlag()
|
||||
{
|
||||
|
||||
String sql = "";
|
||||
int top = GetRequestValInt("Top");
|
||||
if (top == 0)
|
||||
{
|
||||
top = 8;
|
||||
}
|
||||
|
||||
switch (bp.difference.SystemConfig.getAppCenterDBType())
|
||||
{
|
||||
case MSSQL:
|
||||
sql = " SELECT TOP " + top + " No,Name,Icon FROM GPM_Menu WHERE LEN(MenuModel ) >1 ";
|
||||
break;
|
||||
case MySQL:
|
||||
case PostgreSQL:
|
||||
case UX:
|
||||
case HGDB:
|
||||
sql = " SELECT No,Name,Icon FROM GPM_Menu WHERE LEN(MenuModel ) >1 limit " + top;
|
||||
break;
|
||||
case Oracle:
|
||||
case DM:
|
||||
case KingBaseR3:
|
||||
case KingBaseR6:
|
||||
sql = " SELECT No,Name,Icon FROM GPM_Menu WHERE LEN(MenuModel ) >1 rownum " + top;
|
||||
break;
|
||||
default:
|
||||
throw new RuntimeException("err@系统暂时还未开发使用" + bp.difference.SystemConfig.getAppCenterDBType() + "数据库");
|
||||
}
|
||||
DataTable dt = DBAccess.RunSQLReturnTable(sql);
|
||||
return bp.tools.Json.ToJson(dt);
|
||||
}
|
||||
|
||||
public final String Fast_Mobile_Default_Init11()
|
||||
{
|
||||
//DataSet ds = new DataSet();
|
||||
//ds.Table
|
||||
|
||||
//最新使用的流程.
|
||||
String sql = "SELECT ";
|
||||
|
||||
|
||||
//最常用的菜单.
|
||||
|
||||
|
||||
//系统
|
||||
|
||||
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
}
|
||||
@ -0,0 +1,62 @@
|
||||
package bp.ccbill.demo;
|
||||
|
||||
import bp.sys.*;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
|
||||
/**
|
||||
注销学籍 方法
|
||||
*/
|
||||
public class M_ZhuXiaoXueJi extends bp.en.Method
|
||||
{
|
||||
public M_ZhuXiaoXueJi()
|
||||
{
|
||||
this.Title = "注销学籍.";
|
||||
this.Help = "执行学籍的注销的业务逻辑, 关于该学生的借书信息、食堂信息等资料都需要注销掉.";
|
||||
this.GroupName = "CCBill的是实体Demo";
|
||||
}
|
||||
@Override
|
||||
public Object Do() throws Exception {
|
||||
//0. 获得参数.
|
||||
long workid = this.GetValIntByKey("WorkID"); //实体主键.
|
||||
String frmID = this.GetValStrByKey("FrmID"); //实体主键.
|
||||
|
||||
//1. 检查是否有食堂欠费。
|
||||
|
||||
//2. 检查图书馆借书是否归还?
|
||||
|
||||
//3. 执行注销.(以下是采用ccbpm的语法法.)
|
||||
GEEntity en = new GEEntity(frmID, workid);
|
||||
en.SetValByKey("XSZT", 3); //修改字段值,
|
||||
en.Update();
|
||||
|
||||
return "学籍已经注销了。";
|
||||
}
|
||||
|
||||
|
||||
///#region 重写。
|
||||
/**
|
||||
设置执行变量
|
||||
|
||||
@return
|
||||
*/
|
||||
@Override
|
||||
public void Init()
|
||||
{
|
||||
}
|
||||
/**
|
||||
当前的操纵员是否可以执行这个方法
|
||||
*/
|
||||
@Override
|
||||
public boolean getIsCanDo()
|
||||
{
|
||||
if (bp.web.WebUser.getIsAdmin() == true)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
///#endregion 重写。
|
||||
|
||||
}
|
||||
@ -0,0 +1,33 @@
|
||||
package bp.ccbill.sys;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.web.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.sys.*;
|
||||
import bp.ccbill.template.*;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
属性
|
||||
*/
|
||||
public class FuncAttr extends MethodAttr
|
||||
{
|
||||
/**
|
||||
名称
|
||||
*/
|
||||
public static final String Name = "Name";
|
||||
/**
|
||||
功能ID
|
||||
*/
|
||||
public static final String FuncID = "FuncID";
|
||||
/**
|
||||
功能来源
|
||||
*/
|
||||
public static final String FuncSrc = "FuncSrc";
|
||||
/**
|
||||
功能内容
|
||||
*/
|
||||
public static final String DTSName = "DTSName";
|
||||
}
|
||||
@ -0,0 +1,58 @@
|
||||
package bp.ccbill.sys;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.web.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.sys.*;
|
||||
import bp.ccbill.template.*;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
独立方法s
|
||||
*/
|
||||
public class Funcs extends EntitiesNoName
|
||||
{
|
||||
/**
|
||||
独立方法
|
||||
*/
|
||||
public Funcs()
|
||||
{
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new Func();
|
||||
}
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<Func> ToJavaList()
|
||||
{
|
||||
return (java.util.List<Func>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<Func> Tolist()
|
||||
{
|
||||
ArrayList<Func> list = new ArrayList<Func>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((Func)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,182 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.en.Map;
|
||||
|
||||
/**
|
||||
集合方法
|
||||
*/
|
||||
public class Collection extends EntityNoName
|
||||
{
|
||||
|
||||
///#region 基本属性
|
||||
/**
|
||||
表单ID
|
||||
*/
|
||||
public final String getFrmID() {
|
||||
return this.GetValStringByKey(CollectionAttr.FrmID);
|
||||
}
|
||||
public final void setFrmID(String value) {
|
||||
this.SetValByKey(CollectionAttr.FrmID, value);
|
||||
}
|
||||
public final String getIcon() {
|
||||
return this.GetValStringByKey(CollectionAttr.Icon);
|
||||
}
|
||||
public final void setIcon(String value) {
|
||||
this.SetValByKey(CollectionAttr.Icon, value);
|
||||
}
|
||||
|
||||
/**
|
||||
方法ID
|
||||
*/
|
||||
public final String getMethodID() {
|
||||
return this.GetValStringByKey(CollectionAttr.MethodID);
|
||||
}
|
||||
public final void setMethodID(String value) {
|
||||
this.SetValByKey(CollectionAttr.MethodID, value);
|
||||
}
|
||||
|
||||
public final String getFlowNo() {
|
||||
return this.GetValStringByKey(CollectionAttr.FlowNo);
|
||||
}
|
||||
public final void setFlowNo(String value) {
|
||||
this.SetValByKey(CollectionAttr.FlowNo, value);
|
||||
}
|
||||
/**
|
||||
模式
|
||||
*/
|
||||
public final String getMethodModel() {
|
||||
return this.GetValStringByKey(CollectionAttr.MethodModel);
|
||||
}
|
||||
public final void setMethodModel(String value) {
|
||||
this.SetValByKey(CollectionAttr.MethodModel, value);
|
||||
}
|
||||
/**
|
||||
标记
|
||||
*/
|
||||
public final String getMark() {
|
||||
return this.GetValStringByKey(CollectionAttr.Mark);
|
||||
}
|
||||
public final void setMark(String value) {
|
||||
this.SetValByKey(CollectionAttr.Mark, value);
|
||||
}
|
||||
/**
|
||||
tag1
|
||||
*/
|
||||
public final String getTag1() {
|
||||
return this.GetValStringByKey(CollectionAttr.Tag1);
|
||||
}
|
||||
public final void setTag1(String value) {
|
||||
this.SetValByKey(CollectionAttr.Tag1, value);
|
||||
}
|
||||
public final int getIdx() {
|
||||
return this.GetValIntByKey(CollectionAttr.Idx);
|
||||
}
|
||||
public final void setIdx(int value) {
|
||||
this.SetValByKey(CollectionAttr.Idx, value);
|
||||
}
|
||||
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 构造方法
|
||||
/**
|
||||
集合方法
|
||||
*/
|
||||
public Collection()
|
||||
{
|
||||
}
|
||||
/**
|
||||
集合方法
|
||||
|
||||
@param no
|
||||
*/
|
||||
public Collection(String no) throws Exception {
|
||||
this.setNo(no);
|
||||
this.Retrieve();
|
||||
}
|
||||
/**
|
||||
* 重写基类方法
|
||||
*/
|
||||
@Override
|
||||
public Map getEnMap() {
|
||||
if (this.get_enMap() != null)
|
||||
{
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
Map map = new Map("Frm_Collection", "集合方法");
|
||||
|
||||
map.AddGroupAttr("基本属性", "");
|
||||
//主键.
|
||||
map.AddTBStringPK(CollectionAttr.No, null, "编号", true, true, 0, 50, 10);
|
||||
map.AddTBString(CollectionAttr.Name, null, "方法名", true, false, 0, 300, 10);
|
||||
map.AddTBString(CollectionAttr.MethodID, null, "方法ID", true, true, 0, 300, 10);
|
||||
|
||||
//功能标记.
|
||||
map.AddTBString(CollectionAttr.MethodModel, null, "方法模式", true, true, 0, 300, 10);
|
||||
map.AddTBString(CollectionAttr.Tag1, null, "Tag1", true, true, 0, 300, 10);
|
||||
map.AddTBString(CollectionAttr.Mark, null, "Mark", true, true, 0, 300, 10);
|
||||
map.AddTBString(CollectionAttr.FrmID, null, "表单ID", true, true, 0, 300, 10);
|
||||
map.AddTBString(CollectionAttr.FlowNo, null, "流程编号", true, true, 0, 10, 10);
|
||||
map.AddTBString(CollectionAttr.Icon, null, "图标", true, false, 0, 50, 10, true);
|
||||
|
||||
//临时存储.
|
||||
map.AddTBString(CollectionAttr.Docs, null, "方法内容", true, false, 0, 300, 10);
|
||||
|
||||
//是否启用?
|
||||
map.AddBoolean(CollectionAttr.IsEnable, true, "是否启用?", true, true, true);
|
||||
map.AddTBInt(CollectionAttr.Idx, 0, "Idx", true, false);
|
||||
|
||||
map.AddDDLSysEnum(MethodAttr.RefMethodType, 0, "页面打开方式", true, true, "RefMethodTypeLink", "@0=模态窗口打开@1=新窗口打开@2=右侧窗口打开@4=转到新页面");
|
||||
|
||||
|
||||
///#region 外观.
|
||||
map.AddGroupAttr("外观", "");
|
||||
map.AddTBInt(CollectionAttr.PopHeight, 0, "弹窗高度", true, false);
|
||||
map.AddTBInt(CollectionAttr.PopWidth, 0, "弹窗宽度", true, false);
|
||||
|
||||
///#endregion 外观.
|
||||
|
||||
|
||||
///#region 对功能有效
|
||||
map.AddGroupAttr("对功能有效", "");
|
||||
//对功能有效.
|
||||
map.AddTBString(CollectionAttr.WarningMsg, null, "功能执行警告信息", true, false, 0, 300, 10);
|
||||
map.AddTBString(CollectionAttr.MsgSuccess, null, "成功提示信息", true, false, 0, 300, 10, true);
|
||||
map.AddTBString(CollectionAttr.MsgErr, null, "失败提示信息", true, false, 0, 300, 10, true);
|
||||
map.AddDDLSysEnum(CollectionAttr.WhatAreYouTodo, 0, "执行完毕后干啥?", true, true, CollectionAttr.WhatAreYouTodo, "@0=关闭提示窗口@1=关闭提示窗口并刷新@2=转入到Search.htm页面上去");
|
||||
|
||||
///#endregion 对功能有效
|
||||
|
||||
this.set_enMap(map);
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 移动.
|
||||
public final void DoUp() throws Exception {
|
||||
this.DoOrderUp(CollectionAttr.FrmID, this.getFrmID(), CollectionAttr.Idx);
|
||||
}
|
||||
public final void DoDown() throws Exception
|
||||
{
|
||||
this.DoOrderDown(CollectionAttr.FrmID, this.getFrmID(), CollectionAttr.Idx);
|
||||
}
|
||||
|
||||
///#endregion 移动.
|
||||
|
||||
@Override
|
||||
protected boolean beforeInsert() throws Exception
|
||||
{
|
||||
if (DataType.IsNullOrEmpty(this.getNo()) == true)
|
||||
{
|
||||
this.setNo(DBAccess.GenerGUID(0, null, null));
|
||||
}
|
||||
return super.beforeInsert();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,58 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.web.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
流程批量发起流程
|
||||
*/
|
||||
public class CollectionFlowBatchs extends EntitiesNoName
|
||||
{
|
||||
/**
|
||||
流程批量发起流程
|
||||
*/
|
||||
public CollectionFlowBatchs()
|
||||
{
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
45f55
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new CollectionFlowBatch();
|
||||
}
|
||||
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<CollectionFlowBatch> ToJavaList()
|
||||
{
|
||||
return (java.util.List<CollectionFlowBatch>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<CollectionFlowBatch> Tolist()
|
||||
{
|
||||
ArrayList<CollectionFlowBatch> list = new ArrayList<CollectionFlowBatch>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((CollectionFlowBatch)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.web.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
新建实体流程
|
||||
*/
|
||||
public class CollectionFlowNewEntitys extends EntitiesNoName
|
||||
{
|
||||
/**
|
||||
新建实体流程
|
||||
*/
|
||||
public CollectionFlowNewEntitys()
|
||||
{
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new CollectionFlowNewEntity();
|
||||
}
|
||||
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<CollectionFlowNewEntity> ToJavaList()
|
||||
{
|
||||
return (java.util.List<CollectionFlowNewEntity>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<CollectionFlowNewEntity> Tolist()
|
||||
{
|
||||
ArrayList<CollectionFlowNewEntity> list = new ArrayList<CollectionFlowNewEntity>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((CollectionFlowNewEntity)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,184 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.Map;
|
||||
import bp.web.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
功能执行
|
||||
*/
|
||||
public class CollectionFunc extends EntityNoName
|
||||
{
|
||||
|
||||
///#region 基本属性
|
||||
/**
|
||||
表单ID
|
||||
*/
|
||||
public final String getFrmID() {
|
||||
return this.GetValStringByKey(CollectionAttr.FrmID);
|
||||
}
|
||||
public final void setFrmID(String value) {
|
||||
this.SetValByKey(CollectionAttr.FrmID, value);
|
||||
}
|
||||
/**
|
||||
方法ID
|
||||
*/
|
||||
public final String getMethodID() {
|
||||
return this.GetValStringByKey(CollectionAttr.MethodID);
|
||||
}
|
||||
public final void setMethodID(String value) {
|
||||
this.SetValByKey(CollectionAttr.MethodID, value);
|
||||
}
|
||||
|
||||
public final String getMsgErr() {
|
||||
return this.GetValStringByKey(CollectionAttr.MsgErr);
|
||||
}
|
||||
public final void setMsgErr(String value) {
|
||||
this.SetValByKey(CollectionAttr.MsgErr, value);
|
||||
}
|
||||
public final String getMsgSuccess() {
|
||||
return this.GetValStringByKey(CollectionAttr.MsgSuccess);
|
||||
}
|
||||
public final void setMsgSuccess(String value) {
|
||||
this.SetValByKey(CollectionAttr.MsgSuccess, value);
|
||||
}
|
||||
public final String getTag1() {
|
||||
return this.GetValStringByKey(CollectionAttr.Tag1);
|
||||
}
|
||||
public final void setTag1(String value) {
|
||||
this.SetValByKey(CollectionAttr.Tag1, value);
|
||||
}
|
||||
|
||||
/**
|
||||
方法类型
|
||||
*/
|
||||
public final RefMethodType getRefMethodType() {
|
||||
return RefMethodType.forValue(this.GetValIntByKey(MethodAttr.RefMethodType));
|
||||
}
|
||||
public final void setRefMethodType(RefMethodType value) {
|
||||
this.SetValByKey(MethodAttr.RefMethodType, value.getValue());
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 构造方法
|
||||
/**
|
||||
权限控制
|
||||
*/
|
||||
@Override
|
||||
public UAC getHisUAC()
|
||||
{
|
||||
UAC uac = new UAC();
|
||||
if (WebUser.getIsAdmin())
|
||||
{
|
||||
uac.IsUpdate = true;
|
||||
return uac;
|
||||
}
|
||||
return super.getHisUAC();
|
||||
}
|
||||
/**
|
||||
功能执行
|
||||
*/
|
||||
public CollectionFunc()
|
||||
{
|
||||
}
|
||||
public CollectionFunc(String mypk) throws Exception {
|
||||
this.setNo(mypk);
|
||||
this.Retrieve();
|
||||
}
|
||||
/**
|
||||
重写基类方法
|
||||
*/
|
||||
@Override
|
||||
public Map getEnMap() {
|
||||
if (this.get_enMap() != null)
|
||||
{
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
Map map = new Map("Frm_Collection", "功能方法");
|
||||
|
||||
|
||||
//主键.
|
||||
map.AddTBStringPK(MethodAttr.No, null, "编号", true, true, 0, 50, 10);
|
||||
map.AddTBString(MethodAttr.Name, null, "方法名", true, false, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.MethodID, null, "方法ID", true, true, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.GroupID, null, "分组ID", true, true, 0, 50, 10);
|
||||
|
||||
//功能标记.
|
||||
map.AddTBString(MethodAttr.MethodModel, null, "方法模式", true, true, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.Tag1, null, "Tag1", true, true, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.FrmID, null, "表单ID", true, true, 0, 300, 10);
|
||||
|
||||
map.AddTBString(MethodAttr.Icon, null, "图标", true, false, 0, 50, 10, true);
|
||||
|
||||
map.AddTBString(MethodAttr.Mark, null, "功能说明", true, false, 0, 900, 10, true);
|
||||
map.SetHelperAlert(MethodAttr.Mark, "对于该功能的描述.");
|
||||
|
||||
|
||||
|
||||
map.AddTBString(MethodAttr.WarningMsg, null, "功能执行警告信息", true, false, 0, 300, 10, true);
|
||||
//map.AddDDLSysEnum(MethodAttr.ShowModel, 0, "显示方式", true, true, MethodAttr.ShowModel,
|
||||
// "@0=按钮@1=超链接");
|
||||
|
||||
map.AddDDLSysEnum(MethodAttr.MethodDocTypeOfFunc, 0, "内容类型", true, false, "MethodDocTypeOfFunc", "@0=SQL@1=URL@2=JavaScript@3=业务单元");
|
||||
|
||||
map.AddTBString(MethodAttr.MsgSuccess, null, "成功提示信息", true, false, 0, 300, 10, true);
|
||||
map.AddTBString(MethodAttr.MsgErr, null, "失败提示信息", true, false, 0, 300, 10, true);
|
||||
|
||||
|
||||
|
||||
RefMethod rm = new RefMethod();
|
||||
|
||||
rm.Title = "方法内容"; // "设计表单";
|
||||
rm.ClassMethodName = this.toString() + ".DoDocs";
|
||||
rm.Visable = true;
|
||||
rm.refMethodType = RefMethodType.RightFrameOpen;
|
||||
rm.Target = "_blank";
|
||||
//rm.GroupName = "开发接口";
|
||||
map.AddRefMethod(rm);
|
||||
|
||||
|
||||
this.set_enMap(map);
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 执行方法.
|
||||
/**
|
||||
方法参数
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String DoParas() throws Exception {
|
||||
|
||||
return "../../CCBill/Admin/MethodParas.htm?No=" + this.getMethodID();
|
||||
}
|
||||
/**
|
||||
方法内容
|
||||
|
||||
@return
|
||||
*/
|
||||
public final String DoDocs() {
|
||||
return "../../CCBill/Admin/MethodDoc/Default.htm?No=" + this.getNo();
|
||||
}
|
||||
@Override
|
||||
protected boolean beforeInsert() throws Exception
|
||||
{
|
||||
if (DataType.IsNullOrEmpty(this.getNo()) == true)
|
||||
{
|
||||
this.setNo(DBAccess.GenerGUID(0, null, null));
|
||||
}
|
||||
return super.beforeInsert();
|
||||
}
|
||||
|
||||
///#endregion 执行方法.
|
||||
|
||||
}
|
||||
@ -0,0 +1,56 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.web.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
功能执行
|
||||
*/
|
||||
public class CollectionFuncs extends EntitiesNoName
|
||||
{
|
||||
/**
|
||||
功能执行
|
||||
*/
|
||||
public CollectionFuncs()
|
||||
{
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new CollectionFunc();
|
||||
}
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<CollectionFunc> ToJavaList()
|
||||
{
|
||||
return (java.util.List<CollectionFunc>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<CollectionFunc> Tolist()
|
||||
{
|
||||
ArrayList<CollectionFunc> list = new ArrayList<CollectionFunc>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((CollectionFunc)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,99 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.Map;
|
||||
import bp.web.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
|
||||
/**
|
||||
连接方法
|
||||
*/
|
||||
public class CollectionLink extends EntityNoName
|
||||
{
|
||||
|
||||
///#region 基本属性
|
||||
/**
|
||||
表单ID
|
||||
*/
|
||||
public final String getFrmID() {
|
||||
return this.GetValStringByKey(MethodAttr.FrmID);
|
||||
}
|
||||
public final void setFrmID(String value) {
|
||||
this.SetValByKey(MethodAttr.FrmID, value);
|
||||
}
|
||||
/**
|
||||
方法ID
|
||||
*/
|
||||
public final String getMethodID() {
|
||||
return this.GetValStringByKey(MethodAttr.MethodID);
|
||||
}
|
||||
public final void setMethodID(String value) {
|
||||
this.SetValByKey(MethodAttr.MethodID, value);
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 构造方法
|
||||
@Override
|
||||
public UAC getHisUAC()
|
||||
{
|
||||
UAC uac = new UAC();
|
||||
if (WebUser.getIsAdmin())
|
||||
{
|
||||
uac.IsUpdate = true;
|
||||
return uac;
|
||||
}
|
||||
return super.getHisUAC();
|
||||
}
|
||||
/**
|
||||
连接方法
|
||||
*/
|
||||
public CollectionLink()
|
||||
{
|
||||
}
|
||||
/**
|
||||
* 重写基类方法
|
||||
*/
|
||||
@Override
|
||||
public Map getEnMap() {
|
||||
if (this.get_enMap() != null)
|
||||
{
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
Map map = new Map("Frm_Collection", "列表连接");
|
||||
|
||||
//主键.
|
||||
map.AddTBStringPK(MethodAttr.No, null, "编号", true, true, 0, 50, 10);
|
||||
map.AddTBString(MethodAttr.Name, null, "链接标签", true, false, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.MethodID, null, "方法ID", false, true, 0, 300, 10);
|
||||
|
||||
//功能标记.
|
||||
map.AddTBString(MethodAttr.MethodModel, null, "方法模式", false, false, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.Tag1, null, "链接地址", true, false, 0, 300, 10, true);
|
||||
map.AddTBString(MethodAttr.Icon, null, "图标", true, false, 0, 50, 10, true);
|
||||
map.AddDDLSysEnum(MethodAttr.ShowModel, 0, "显示方式", false, false, MethodAttr.ShowModel, "@0=按钮@1=超链接");
|
||||
|
||||
map.AddDDLSysEnum(MethodAttr.RefMethodType, 0, "页面打开方式", true, true, "RefMethodTypeLink", "@0=模态窗口打开@1=新窗口打开@2=右侧窗口打开@4=转到新页面");
|
||||
|
||||
map.AddTBInt(MethodAttr.PopWidth, 500, "宽度", true, false);
|
||||
map.AddTBInt(MethodAttr.PopHeight, 700, "高度", true, false);
|
||||
|
||||
|
||||
this.set_enMap(map);
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
@Override
|
||||
protected boolean beforeInsert() throws Exception
|
||||
{
|
||||
if (DataType.IsNullOrEmpty(this.getNo()) == true)
|
||||
{
|
||||
this.setNo(DBAccess.GenerGUID(0, null, null));
|
||||
}
|
||||
return super.beforeInsert();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,56 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.web.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
连接方法
|
||||
*/
|
||||
public class CollectionLinks extends EntitiesNoName
|
||||
{
|
||||
/**
|
||||
连接方法
|
||||
*/
|
||||
public CollectionLinks()
|
||||
{
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new CollectionLink();
|
||||
}
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<CollectionLink> ToJavaList()
|
||||
{
|
||||
return (java.util.List<CollectionLink>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<CollectionLink> Tolist()
|
||||
{
|
||||
ArrayList<CollectionLink> list = new ArrayList<CollectionLink>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((CollectionLink)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
集合方法
|
||||
*/
|
||||
public class Collections extends EntitiesNoName
|
||||
{
|
||||
/**
|
||||
集合方法
|
||||
*/
|
||||
public Collections()
|
||||
{
|
||||
}
|
||||
/**
|
||||
集合方法
|
||||
|
||||
@param nodeid 方法IDID
|
||||
*/
|
||||
public Collections(int nodeid) throws Exception {
|
||||
QueryObject qo = new QueryObject(this);
|
||||
qo.AddWhere(CollectionAttr.MethodID, nodeid);
|
||||
qo.DoQuery();
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new Collection();
|
||||
}
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<Collection> ToJavaList()
|
||||
{
|
||||
return (java.util.List<Collection>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<Collection> Tolist()
|
||||
{
|
||||
ArrayList<Collection> list = new ArrayList<Collection>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((Collection)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,109 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.en.Map;
|
||||
|
||||
/**
|
||||
台账子流程
|
||||
*/
|
||||
public class DictFlow extends EntityMyPK
|
||||
{
|
||||
|
||||
///#region 基本属性
|
||||
/**
|
||||
表单ID
|
||||
*/
|
||||
public final String getFrmID() {
|
||||
return this.GetValStringByKey(DictFlowAttr.FrmID);
|
||||
}
|
||||
public final void setFrmID(String value) {
|
||||
this.SetValByKey(DictFlowAttr.FrmID, value);
|
||||
}
|
||||
|
||||
/**
|
||||
方法名
|
||||
*/
|
||||
public final String getFlowNo() {
|
||||
return this.GetValStringByKey(DictFlowAttr.FlowNo);
|
||||
}
|
||||
public final void setFlowNo(String value) {
|
||||
this.SetValByKey(DictFlowAttr.FlowNo, value);
|
||||
}
|
||||
/**
|
||||
显示标签
|
||||
*/
|
||||
public final String getLabel() {
|
||||
return this.GetValStringByKey(DictFlowAttr.Label);
|
||||
}
|
||||
public final void setLabel(String value) {
|
||||
this.SetValByKey(DictFlowAttr.Label, value);
|
||||
}
|
||||
/**
|
||||
是否显示在表格右边
|
||||
*/
|
||||
public final int getItIsShowListRight() {
|
||||
return this.GetValIntByKey(DictFlowAttr.IsShowListRight);
|
||||
}
|
||||
public final void setItIsShowListRight(int value) {
|
||||
this.SetValByKey(DictFlowAttr.IsShowListRight, value);
|
||||
}
|
||||
/**
|
||||
顺序号
|
||||
*/
|
||||
public final int getIdx() {
|
||||
return this.GetValIntByKey(DictFlowAttr.Idx);
|
||||
}
|
||||
public final void setIdx(int value) {
|
||||
this.SetValByKey(DictFlowAttr.Idx, value);
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 构造方法
|
||||
/**
|
||||
台账子流程
|
||||
*/
|
||||
public DictFlow()
|
||||
{
|
||||
}
|
||||
/**
|
||||
* 重写基类方法
|
||||
*/
|
||||
@Override
|
||||
public Map getEnMap()
|
||||
{
|
||||
if (this.get_enMap() != null)
|
||||
{
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
Map map = new Map("Frm_DictFlow", "台账子流程");
|
||||
|
||||
map.AddMyPK(true);
|
||||
|
||||
map.AddTBString(DictFlowAttr.FrmID, null, "表单ID", true, false, 0, 300, 10);
|
||||
map.AddTBString(DictFlowAttr.FlowNo, null, "流程编号", true, false, 0, 20, 10);
|
||||
map.AddTBString(DictFlowAttr.Label, null, "功能标签", true, false, 0, 20, 10);
|
||||
map.AddTBInt(DictFlowAttr.IsShowListRight, 0, "是否显示在列表右边", true, false);
|
||||
|
||||
map.AddTBInt(DictFlowAttr.Idx, 0, "Idx", true, false);
|
||||
this.set_enMap(map);
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 移动.
|
||||
public final void DoUp() throws Exception {
|
||||
this.DoOrderUp(DictFlowAttr.FrmID, this.getFrmID(), DictFlowAttr.Idx);
|
||||
}
|
||||
public final void DoDown() throws Exception
|
||||
{
|
||||
this.DoOrderDown(DictFlowAttr.FrmID, this.getFrmID(), DictFlowAttr.Idx);
|
||||
}
|
||||
|
||||
///#endregion 移动.
|
||||
|
||||
}
|
||||
@ -0,0 +1,37 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
台账子流程属性
|
||||
*/
|
||||
public class DictFlowAttr extends EntityMyPKAttr
|
||||
{
|
||||
|
||||
///#region 基本属性.
|
||||
/**
|
||||
表单ID
|
||||
*/
|
||||
public static final String FrmID = "FrmID";
|
||||
/**
|
||||
子流程编号
|
||||
*/
|
||||
public static final String FlowNo = "FlowNo";
|
||||
/**
|
||||
标签
|
||||
*/
|
||||
public static final String Label = "Label";
|
||||
/**
|
||||
是否显示在表格右边
|
||||
*/
|
||||
public static final String IsShowListRight = "IsShowListRight";
|
||||
/**
|
||||
Idx
|
||||
*/
|
||||
public static final String Idx = "Idx";
|
||||
|
||||
///#endregion 基本属性.
|
||||
}
|
||||
@ -0,0 +1,54 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
台账子流程
|
||||
*/
|
||||
public class DictFlows extends EntitiesMyPK
|
||||
{
|
||||
/**
|
||||
台账子流程
|
||||
*/
|
||||
public DictFlows()
|
||||
{
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new DictFlow();
|
||||
}
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<DictFlow> ToJavaList()
|
||||
{
|
||||
return (java.util.List<DictFlow>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<DictFlow> Tolist()
|
||||
{
|
||||
ArrayList<DictFlow> list = new ArrayList<DictFlow>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((DictFlow)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,69 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.en.Map;
|
||||
|
||||
/**
|
||||
单据可创建的人员
|
||||
表单ID的到人员有两部分组成.
|
||||
记录了从一个表单ID到其他的多个表单ID.
|
||||
也记录了到这个表单ID的其他的表单ID.
|
||||
*/
|
||||
public class EmpCreate extends EntityMM
|
||||
{
|
||||
|
||||
///#region 基本属性
|
||||
/**
|
||||
表单ID
|
||||
*/
|
||||
public final int getFrmID() {
|
||||
return this.GetValIntByKey(EmpCreateAttr.FrmID);
|
||||
}
|
||||
public final void setFrmID(int value) {
|
||||
this.SetValByKey(EmpCreateAttr.FrmID, value);
|
||||
}
|
||||
/**
|
||||
到人员
|
||||
*/
|
||||
public final String getEmpNo() {
|
||||
return this.GetValStringByKey(EmpCreateAttr.FK_Emp);
|
||||
}
|
||||
public final void setEmpNo(String value) {
|
||||
this.SetValByKey(EmpCreateAttr.FK_Emp, value);
|
||||
}
|
||||
public final String getEmpNoT() {
|
||||
return this.GetValRefTextByKey(EmpCreateAttr.FK_Emp);
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 构造方法
|
||||
/**
|
||||
单据可创建的人员
|
||||
*/
|
||||
public EmpCreate()
|
||||
{
|
||||
}
|
||||
/**
|
||||
* 重写基类方法
|
||||
*/
|
||||
@Override
|
||||
public Map getEnMap()
|
||||
{
|
||||
if (this.get_enMap() != null)
|
||||
{
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
Map map = new Map("Frm_EmpCreate", "单据可创建的人员");
|
||||
|
||||
map.AddTBStringPK(EmpCreateAttr.FrmID,null,"表单",true,true,1,100,100);
|
||||
map.AddDDLEntitiesPK(EmpCreateAttr.FK_Emp, null, "人员", new bp.port.Emps(), true);
|
||||
|
||||
this.set_enMap(map);
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
///#endregion
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
单据可创建的人员属性
|
||||
*/
|
||||
public class EmpCreateAttr
|
||||
{
|
||||
/**
|
||||
表单ID
|
||||
*/
|
||||
public static final String FrmID = "FrmID";
|
||||
/**
|
||||
人员
|
||||
*/
|
||||
public static final String FK_Emp = "FK_Emp";
|
||||
}
|
||||
@ -0,0 +1,79 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
单据可创建的人员
|
||||
*/
|
||||
public class EmpCreates extends EntitiesMM
|
||||
{
|
||||
|
||||
///#region 构造函数.
|
||||
/**
|
||||
单据可创建的人员
|
||||
*/
|
||||
public EmpCreates()
|
||||
{
|
||||
}
|
||||
/**
|
||||
单据可创建的人员
|
||||
|
||||
@param NodeID 表单IDID
|
||||
*/
|
||||
public EmpCreates(int NodeID) throws Exception {
|
||||
QueryObject qo = new QueryObject(this);
|
||||
qo.AddWhere(EmpCreateAttr.FrmID, NodeID);
|
||||
qo.DoQuery();
|
||||
}
|
||||
/**
|
||||
单据可创建的人员
|
||||
|
||||
@param EmpNo EmpNo
|
||||
*/
|
||||
public EmpCreates(String EmpNo) throws Exception {
|
||||
QueryObject qo = new QueryObject(this);
|
||||
qo.AddWhere(EmpCreateAttr.FK_Emp, EmpNo);
|
||||
qo.DoQuery();
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new EmpCreate();
|
||||
}
|
||||
|
||||
///#endregion 构造函数.
|
||||
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<EmpCreate> ToJavaList()
|
||||
{
|
||||
return (java.util.List<EmpCreate>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<EmpCreate> Tolist()
|
||||
{
|
||||
ArrayList<EmpCreate> list = new ArrayList<EmpCreate>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((EmpCreate)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,76 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.en.Map;
|
||||
|
||||
/**
|
||||
单据可创建的部门
|
||||
单据的部门有两部分组成.
|
||||
记录了从一个单据到其他的多个单据.
|
||||
也记录了到这个单据的其他的单据.
|
||||
*/
|
||||
public class FrmDeptCreate extends EntityMM
|
||||
{
|
||||
|
||||
///#region 基本属性
|
||||
/**
|
||||
UI界面上的访问控制
|
||||
*/
|
||||
@Override
|
||||
public UAC getHisUAC()
|
||||
{
|
||||
UAC uac = new UAC();
|
||||
uac.OpenAll();
|
||||
return uac;
|
||||
}
|
||||
/**
|
||||
单据
|
||||
*/
|
||||
public final String getFrmID() {
|
||||
return this.GetValStringByKey(FrmDeptCreateAttr.FrmID);
|
||||
}
|
||||
public final void setFrmID(String value) {
|
||||
this.SetValByKey(FrmDeptCreateAttr.FrmID, value);
|
||||
}
|
||||
/**
|
||||
部门
|
||||
*/
|
||||
public final String getDeptNo() {
|
||||
return this.GetValStringByKey(FrmDeptCreateAttr.FK_Dept);
|
||||
}
|
||||
public final void setDeptNo(String value) {
|
||||
this.SetValByKey(FrmDeptCreateAttr.FK_Dept, value);
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 构造方法
|
||||
/**
|
||||
单据可创建的部门
|
||||
*/
|
||||
public FrmDeptCreate()
|
||||
{
|
||||
}
|
||||
/**
|
||||
* 重写基类方法
|
||||
*/
|
||||
@Override
|
||||
public Map getEnMap()
|
||||
{
|
||||
if (this.get_enMap() != null)
|
||||
{
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
Map map = new Map("Frm_DeptCreate", "单据部门");
|
||||
|
||||
map.AddTBStringPK(FrmDeptCreateAttr.FrmID, null, "表单", true, true, 1, 100, 100);
|
||||
map.AddDDLEntitiesPK(FrmDeptCreateAttr.FK_Dept, null, "可以创建部门", new bp.port.Depts(), true);
|
||||
this.set_enMap(map);
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
单据可创建的部门属性
|
||||
*/
|
||||
public class FrmDeptCreateAttr
|
||||
{
|
||||
/**
|
||||
单据
|
||||
*/
|
||||
public static final String FrmID = "FrmID";
|
||||
/**
|
||||
部门
|
||||
*/
|
||||
public static final String FK_Dept = "FK_Dept";
|
||||
}
|
||||
@ -0,0 +1,79 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
单据可创建的部门
|
||||
*/
|
||||
public class FrmDeptCreates extends EntitiesMM
|
||||
{
|
||||
|
||||
///#region 构造函数.
|
||||
/**
|
||||
单据可创建的部门
|
||||
*/
|
||||
public FrmDeptCreates()
|
||||
{
|
||||
}
|
||||
/**
|
||||
单据可创建的部门
|
||||
|
||||
@param nodeID 单据ID
|
||||
*/
|
||||
public FrmDeptCreates(int nodeID) throws Exception {
|
||||
QueryObject qo = new QueryObject(this);
|
||||
qo.AddWhere(FrmDeptCreateAttr.FrmID, nodeID);
|
||||
qo.DoQuery();
|
||||
}
|
||||
/**
|
||||
单据可创建的部门
|
||||
|
||||
@param StationNo StationNo
|
||||
*/
|
||||
public FrmDeptCreates(String StationNo) throws Exception {
|
||||
QueryObject qo = new QueryObject(this);
|
||||
qo.AddWhere(FrmDeptCreateAttr.FK_Dept, StationNo);
|
||||
qo.DoQuery();
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new FrmDeptCreate();
|
||||
}
|
||||
|
||||
///#endregion 构造函数.
|
||||
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<FrmDeptCreate> ToJavaList()
|
||||
{
|
||||
return (java.util.List<FrmDeptCreate>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<FrmDeptCreate> Tolist()
|
||||
{
|
||||
ArrayList<FrmDeptCreate> list = new ArrayList<FrmDeptCreate>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((FrmDeptCreate)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,88 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.en.Map;
|
||||
|
||||
/**
|
||||
单据查询角色
|
||||
单据查询角色有两部分组成.
|
||||
*/
|
||||
public class FrmStationDept extends EntityMM
|
||||
{
|
||||
|
||||
///#region 基本属性
|
||||
/**
|
||||
UI界面上的访问控制
|
||||
*/
|
||||
@Override
|
||||
public UAC getHisUAC()
|
||||
{
|
||||
UAC uac = new UAC();
|
||||
uac.OpenAll();
|
||||
return uac;
|
||||
}
|
||||
/**
|
||||
单据
|
||||
*/
|
||||
public final String getFKFrm() {
|
||||
return this.GetValStringByKey(FrmStationDeptAttr.FK_Frm);
|
||||
}
|
||||
public final void setFKFrm(String value) {
|
||||
this.SetValByKey(FrmStationDeptAttr.FK_Frm, value);
|
||||
}
|
||||
|
||||
/**
|
||||
工作角色
|
||||
*/
|
||||
public final String getFKStation() {
|
||||
return this.GetValStringByKey(FrmStationDeptAttr.FK_Station);
|
||||
}
|
||||
public final void setFKStation(String value) {
|
||||
this.SetValByKey(FrmStationDeptAttr.FK_Station, value);
|
||||
}
|
||||
public final String getDeptNo() {
|
||||
return this.GetValStringByKey(FrmStationDeptAttr.FK_Dept);
|
||||
}
|
||||
public final void setDeptNo(String value) {
|
||||
this.SetValByKey(FrmStationDeptAttr.FK_Dept, value);
|
||||
}
|
||||
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 构造方法
|
||||
/**
|
||||
单据工作角色
|
||||
*/
|
||||
public FrmStationDept()
|
||||
{
|
||||
}
|
||||
/**
|
||||
* 重写基类方法
|
||||
*/
|
||||
@Override
|
||||
public Map getEnMap()
|
||||
{
|
||||
if (this.get_enMap() != null)
|
||||
{
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
Map map = new Map("Frm_StationDept", "单据角色部门");
|
||||
|
||||
map.AddTBStringPK(FrmStationDeptAttr.FK_Frm, null, "单据编号", false, false, 1, 190, 20);
|
||||
|
||||
map.AddDDLEntitiesPK(FrmStationDeptAttr.FK_Station, null, "工作角色", new bp.port.Stations(), true);
|
||||
|
||||
map.AddDDLEntitiesPK(FrmStationDeptAttr.FK_Dept, null, "部门", new bp.port.Depts(), true);
|
||||
|
||||
this.set_enMap(map);
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
|
||||
|
||||
///#endregion
|
||||
|
||||
}
|
||||
@ -0,0 +1,25 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
单据查询角色属性
|
||||
*/
|
||||
public class FrmStationDeptAttr
|
||||
{
|
||||
/**
|
||||
表单
|
||||
*/
|
||||
public static final String FK_Frm = "FK_Frm";
|
||||
/**
|
||||
工作角色
|
||||
*/
|
||||
public static final String FK_Station = "FK_Station";
|
||||
/**
|
||||
部门
|
||||
*/
|
||||
public static final String FK_Dept = "FK_Dept";
|
||||
}
|
||||
@ -0,0 +1,67 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
单据查询角色
|
||||
*/
|
||||
public class FrmStationDepts extends EntitiesMM
|
||||
{
|
||||
|
||||
/**
|
||||
单据查询角色
|
||||
*/
|
||||
public FrmStationDepts()
|
||||
{
|
||||
}
|
||||
/**
|
||||
单据查询角色
|
||||
|
||||
@param frmID 单据ID
|
||||
*/
|
||||
public FrmStationDepts(String frmID) throws Exception {
|
||||
QueryObject qo = new QueryObject(this);
|
||||
qo.AddWhere(FrmStationDeptAttr.FK_Frm, frmID);
|
||||
qo.DoQuery();
|
||||
}
|
||||
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new FrmStationDept();
|
||||
}
|
||||
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成 List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<FrmStationDept> ToJavaList()
|
||||
{
|
||||
return (java.util.List<FrmStationDept>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<FrmStationDept> Tolist()
|
||||
{
|
||||
ArrayList<FrmStationDept> list = new ArrayList<FrmStationDept>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((FrmStationDept)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成 List.
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.wf.template.*;
|
||||
import bp.sys.*;
|
||||
import bp.port.*;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
单据模版 - Attr
|
||||
*/
|
||||
public class FrmTemplateAttr extends FrmAttr
|
||||
{
|
||||
}
|
||||
@ -0,0 +1,63 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.wf.template.*;
|
||||
import bp.sys.*;
|
||||
import bp.port.*;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
单据模版s
|
||||
*/
|
||||
public class FrmTemplates extends EntitiesNoName
|
||||
{
|
||||
|
||||
///#region 构造
|
||||
/**
|
||||
单据模版s
|
||||
*/
|
||||
public FrmTemplates()
|
||||
{
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new FrmTemplate();
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<FrmTemplate> ToJavaList()
|
||||
{
|
||||
return (java.util.List<FrmTemplate>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<FrmTemplate> Tolist()
|
||||
{
|
||||
ArrayList<FrmTemplate> list = new ArrayList<FrmTemplate>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((FrmTemplate)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,171 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.en.Map;
|
||||
|
||||
/**
|
||||
分组
|
||||
*/
|
||||
public class GroupMethod extends EntityNoName
|
||||
{
|
||||
|
||||
///#region 权限控制
|
||||
/**
|
||||
权限控制.
|
||||
*/
|
||||
@Override
|
||||
public UAC getHisUAC()
|
||||
{
|
||||
UAC uac = new UAC();
|
||||
if (bp.web.WebUser.getNo().equals("admin") == true || bp.web.WebUser.getIsAdmin())
|
||||
{
|
||||
uac.IsDelete = true;
|
||||
uac.IsInsert = false;
|
||||
uac.IsUpdate = true;
|
||||
return uac;
|
||||
}
|
||||
uac.Readonly();
|
||||
uac.IsView = false;
|
||||
return uac;
|
||||
}
|
||||
|
||||
///#endregion 权限控制
|
||||
|
||||
|
||||
///#region 属性
|
||||
/**
|
||||
表单ID
|
||||
*/
|
||||
public final String getFrmID() {
|
||||
return this.GetValStrByKey(GroupMethodAttr.FrmID);
|
||||
}
|
||||
public final void setFrmID(String value) {
|
||||
this.SetValByKey(GroupMethodAttr.FrmID, value);
|
||||
}
|
||||
public final String getOrgNo() {
|
||||
return this.GetValStrByKey(GroupMethodAttr.OrgNo);
|
||||
}
|
||||
public final void setOrgNo(String value) {
|
||||
this.SetValByKey(GroupMethodAttr.OrgNo, value);
|
||||
}
|
||||
public final String getMethodType() {
|
||||
return this.GetValStrByKey(GroupMethodAttr.MethodType);
|
||||
}
|
||||
public final void setMethodType(String value) {
|
||||
this.SetValByKey(GroupMethodAttr.MethodType, value);
|
||||
}
|
||||
/**
|
||||
顺序号
|
||||
*/
|
||||
public final int getIdx() {
|
||||
return this.GetValIntByKey(GroupMethodAttr.Idx);
|
||||
}
|
||||
public final void setIdx(int value) {
|
||||
this.SetValByKey(GroupMethodAttr.Idx, value);
|
||||
}
|
||||
/**
|
||||
图标
|
||||
*/
|
||||
public final String getIcon() {
|
||||
return this.GetValStrByKey(GroupMethodAttr.Icon);
|
||||
}
|
||||
public final void setIcon(String value) {
|
||||
this.SetValByKey(GroupMethodAttr.Icon, value);
|
||||
}
|
||||
public final String getMethodID() {
|
||||
return this.GetValStrByKey(GroupMethodAttr.MethodID);
|
||||
}
|
||||
public final void setMethodID(String value) {
|
||||
this.SetValByKey(GroupMethodAttr.MethodID, value);
|
||||
}
|
||||
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 构造方法
|
||||
/**
|
||||
GroupMethod
|
||||
*/
|
||||
public GroupMethod()
|
||||
{
|
||||
}
|
||||
/**
|
||||
* EnMap
|
||||
*/
|
||||
@Override
|
||||
public Map getEnMap() {
|
||||
if (this.get_enMap() != null)
|
||||
{
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
Map map = new Map("Frm_GroupMethod", "方法分组");
|
||||
|
||||
|
||||
///#region 字段.
|
||||
map.AddTBStringPK(GroupMethodAttr.No, null, "编号", true, true, 0, 150, 20);
|
||||
map.AddTBString(GroupMethodAttr.FrmID, null, "表单ID", true, true, 0, 200, 20);
|
||||
|
||||
map.AddTBString(GroupMethodAttr.Name, null, "标签", true, false, 0, 500, 20, true);
|
||||
map.AddTBString(GroupMethodAttr.Icon, null, "Icon", true, true, 0, 200, 20, true);
|
||||
|
||||
map.AddTBString(GroupMethodAttr.OrgNo, null, "OrgNo", true, true, 0, 40, 20, true);
|
||||
|
||||
map.AddTBInt(GroupMethodAttr.Idx, 0, "顺序号", true, false);
|
||||
map.AddTBAtParas(3000);
|
||||
|
||||
///#endregion 字段.
|
||||
|
||||
this.set_enMap(map);
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 方法.
|
||||
@Override
|
||||
protected boolean beforeDelete() throws Exception
|
||||
{
|
||||
Methods ens = new Methods();
|
||||
ens.Retrieve(MethodAttr.GroupID, this.getNo(), null);
|
||||
if (ens.size() != 0)
|
||||
{
|
||||
throw new RuntimeException("err@该目录下有数据,您不能删除目录。");
|
||||
}
|
||||
|
||||
return super.beforeDelete();
|
||||
}
|
||||
@Override
|
||||
protected boolean beforeUpdate() throws Exception
|
||||
{
|
||||
return super.beforeUpdate();
|
||||
}
|
||||
public final String DoDown() throws Exception
|
||||
{
|
||||
this.DoOrderDown(GroupMethodAttr.FrmID, this.getFrmID(), GroupMethodAttr.Idx);
|
||||
return "执行成功";
|
||||
}
|
||||
public final String DoUp() throws Exception
|
||||
{
|
||||
this.DoOrderUp(GroupMethodAttr.FrmID, this.getFrmID(), GroupMethodAttr.Idx);
|
||||
return "执行成功";
|
||||
}
|
||||
@Override
|
||||
protected boolean beforeInsert() throws Exception
|
||||
{
|
||||
//设置主键.
|
||||
if (DataType.IsNullOrEmpty(this.getNo()) == true)
|
||||
{
|
||||
this.setNo(DBAccess.GenerGUID(0, null, null));
|
||||
}
|
||||
|
||||
this.setOrgNo(bp.web.WebUser.getOrgNo());
|
||||
|
||||
return super.beforeInsert();
|
||||
}
|
||||
|
||||
///#endregion 方法.
|
||||
}
|
||||
@ -0,0 +1,38 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
分组 - 属性
|
||||
*/
|
||||
public class GroupMethodAttr extends EntityNoNameAttr
|
||||
{
|
||||
/**
|
||||
表单ID
|
||||
*/
|
||||
public static final String FrmID = "FrmID";
|
||||
/**
|
||||
顺序
|
||||
*/
|
||||
public static final String Idx = "Idx";
|
||||
/**
|
||||
方法类型
|
||||
*/
|
||||
public static final String MethodType = "MethodType";
|
||||
/**
|
||||
方法ID
|
||||
*/
|
||||
public static final String MethodID = "MethodID";
|
||||
/**
|
||||
Icon
|
||||
*/
|
||||
public static final String Icon = "Icon";
|
||||
/**
|
||||
组织编号
|
||||
*/
|
||||
public static final String OrgNo = "OrgNo";
|
||||
}
|
||||
@ -0,0 +1,30 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
方法类型
|
||||
*/
|
||||
public class GroupMethodType
|
||||
{
|
||||
/**
|
||||
自定义
|
||||
*/
|
||||
public static final String Self = "Self";
|
||||
/**
|
||||
基础资料变更
|
||||
*/
|
||||
public static final String FlowBaseData = "FlowBaseData";
|
||||
/**
|
||||
新创建实体
|
||||
*/
|
||||
public static final String FlowNewEntity = "FlowNewEntity";
|
||||
/**
|
||||
其他业务组件
|
||||
*/
|
||||
public static final String FlowFlowEtc = "FlowFlowEtc";
|
||||
}
|
||||
@ -0,0 +1,60 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
分组-集合
|
||||
*/
|
||||
public class GroupMethods extends EntitiesNoName
|
||||
{
|
||||
|
||||
///#region 构造
|
||||
/**
|
||||
分组s
|
||||
*/
|
||||
public GroupMethods()
|
||||
{
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new GroupMethod();
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<GroupMethod> ToJavaList()
|
||||
{
|
||||
return (java.util.List<GroupMethod>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<GroupMethod> Tolist()
|
||||
{
|
||||
ArrayList<GroupMethod> list = new ArrayList<GroupMethod>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((GroupMethod)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,233 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.en.Map;
|
||||
|
||||
/**
|
||||
实体方法
|
||||
*/
|
||||
public class Method extends EntityNoName
|
||||
{
|
||||
|
||||
///#region 基本属性
|
||||
/**
|
||||
表单ID
|
||||
*/
|
||||
public final String getFrmID() {
|
||||
return this.GetValStringByKey(MethodAttr.FrmID);
|
||||
}
|
||||
public final void setFrmID(String value) {
|
||||
this.SetValByKey(MethodAttr.FrmID, value);
|
||||
}
|
||||
/**
|
||||
方法分组ID
|
||||
*/
|
||||
public final String getGroupID() {
|
||||
return this.GetValStringByKey(MethodAttr.GroupID);
|
||||
}
|
||||
public final void setGroupID(String value) {
|
||||
this.SetValByKey(MethodAttr.GroupID, value);
|
||||
}
|
||||
public final String getIcon() {
|
||||
return this.GetValStringByKey(MethodAttr.Icon);
|
||||
}
|
||||
public final void setIcon(String value) {
|
||||
this.SetValByKey(MethodAttr.Icon, value);
|
||||
}
|
||||
|
||||
/**
|
||||
方法ID
|
||||
*/
|
||||
public final String getMethodID() {
|
||||
return this.GetValStringByKey(MethodAttr.MethodID);
|
||||
}
|
||||
public final void setMethodID(String value) {
|
||||
this.SetValByKey(MethodAttr.MethodID, value);
|
||||
}
|
||||
|
||||
public final String getFlowNo() {
|
||||
return this.GetValStringByKey(MethodAttr.FlowNo);
|
||||
}
|
||||
public final void setFlowNo(String value) {
|
||||
this.SetValByKey(MethodAttr.FlowNo, value);
|
||||
}
|
||||
|
||||
/**
|
||||
方法类型
|
||||
*/
|
||||
public final RefMethodType getRefMethodType() {
|
||||
return RefMethodType.forValue(this.GetValIntByKey(MethodAttr.RefMethodType));
|
||||
}
|
||||
public final void setRefMethodType(RefMethodType value) {
|
||||
this.SetValByKey(MethodAttr.RefMethodType, value.getValue());
|
||||
}
|
||||
/**
|
||||
模式
|
||||
*/
|
||||
public final String getMethodModel() {
|
||||
return this.GetValStringByKey(MethodAttr.MethodModel);
|
||||
}
|
||||
public final void setMethodModel(String value) {
|
||||
this.SetValByKey(MethodAttr.MethodModel, value);
|
||||
}
|
||||
/**
|
||||
标记
|
||||
*/
|
||||
public final String getMark() {
|
||||
return this.GetValStringByKey(MethodAttr.Mark);
|
||||
}
|
||||
public final void setMark(String value) {
|
||||
this.SetValByKey(MethodAttr.Mark, value);
|
||||
}
|
||||
/**
|
||||
tag1
|
||||
*/
|
||||
public final String getTag1() {
|
||||
return this.GetValStringByKey(MethodAttr.Tag1);
|
||||
}
|
||||
public final void setTag1(String value) {
|
||||
this.SetValByKey(MethodAttr.Tag1, value);
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 构造方法
|
||||
/**
|
||||
实体方法
|
||||
*/
|
||||
public Method()
|
||||
{
|
||||
}
|
||||
/**
|
||||
实体方法
|
||||
|
||||
@param no
|
||||
*/
|
||||
public Method(String no) throws Exception {
|
||||
this.setNo(no);
|
||||
this.Retrieve();
|
||||
}
|
||||
/**
|
||||
* 重写基类方法
|
||||
*/
|
||||
@Override
|
||||
public Map getEnMap() {
|
||||
if (this.get_enMap() != null)
|
||||
{
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
Map map = new Map("Frm_Method", "实体方法");
|
||||
|
||||
//主键.
|
||||
map.AddGroupAttr("基本属性", "");
|
||||
map.AddTBStringPK(MethodAttr.No, null, "编号", true, true, 0, 50, 10);
|
||||
map.AddTBString(MethodAttr.Name, null, "方法名", true, false, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.MethodID, null, "方法ID", true, true, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.GroupID, null, "分组ID", true, true, 0, 50, 10);
|
||||
|
||||
//功能标记.
|
||||
map.AddTBString(MethodAttr.MethodModel, null, "方法模式", true, true, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.Tag1, null, "Tag1", true, true, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.Mark, null, "Mark", true, true, 0, 300, 10);
|
||||
|
||||
|
||||
map.AddTBString(MethodAttr.FrmID, null, "表单ID", true, true, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.FlowNo, null, "流程编号", true, true, 0, 10, 10);
|
||||
|
||||
map.AddTBString(MethodAttr.Icon, null, "图标", true, false, 0, 50, 10, true);
|
||||
|
||||
////批处理的方法,显示到集合上.
|
||||
//map.AddBoolean(MethodAttr.IsCanBatch, false, "是否可以批处理?", true, false);
|
||||
|
||||
//临时存储.
|
||||
map.AddTBString(MethodAttr.Docs, null, "方法内容", true, false, 0, 300, 10);
|
||||
|
||||
map.AddDDLSysEnum(MethodAttr.RefMethodType, 0, "方法类型", true, false, MethodAttr.RefMethodType, "@0=功能@1=模态窗口打开@2=新窗口打开@3=右侧窗口打开@4=转到新页面");
|
||||
|
||||
|
||||
///#region 显示位置控制.
|
||||
map.AddGroupAttr("显示位置控制", "");
|
||||
|
||||
map.AddBoolean(MethodAttr.IsMyBillToolBar, true, "是否显示在MyBill.htm工具栏上", true, true, true);
|
||||
map.AddBoolean(MethodAttr.IsMyBillToolExt, false, "是否显示在MyBill.htm工具栏右边的更多按钮里", true, true, true);
|
||||
map.AddBoolean(MethodAttr.IsSearchBar, false, "是否显示在Search.htm工具栏上(用于批处理)", true, true, true);
|
||||
|
||||
///#endregion 显示位置控制.
|
||||
|
||||
|
||||
///#region 外观.
|
||||
map.AddGroupAttr("外观", "");
|
||||
|
||||
map.AddTBInt(MethodAttr.PopHeight, 0, "弹窗高度", true, false);
|
||||
map.AddTBInt(MethodAttr.PopWidth, 0, "弹窗宽度", true, false);
|
||||
|
||||
///#endregion 外观.
|
||||
|
||||
|
||||
///#region 对功能有效
|
||||
map.AddGroupAttr("对功能有效", "");
|
||||
|
||||
//对功能有效.
|
||||
map.AddTBString(MethodAttr.WarningMsg, null, "功能执行警告信息", true, false, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.MsgSuccess, null, "成功提示信息", true, false, 0, 300, 10, true);
|
||||
map.AddTBString(MethodAttr.MsgErr, null, "失败提示信息", true, false, 0, 300, 10, true);
|
||||
map.AddDDLSysEnum(MethodAttr.WhatAreYouTodo, 0, "执行完毕后干啥?", true, true, MethodAttr.WhatAreYouTodo, "@0=关闭提示窗口@1=关闭提示窗口并刷新@2=转入到Search.htm页面上去");
|
||||
map.AddDDLSysEnum(MethodAttr.MethodDocTypeOfFunc, 0, "内容类型", true, false, "MethodDocTypeOfFunc", "@0=SQL@1=URL@2=JavaScript@3=业务单元");
|
||||
|
||||
///#endregion 对功能有效
|
||||
|
||||
|
||||
///#region (流程)相同字段数据同步方式.
|
||||
map.AddGroupAttr("相同字段数据同步方式", "");
|
||||
map.AddDDLSysEnum(MethodAttr.DTSDataWay, 0, "同步相同字段数据方式", true, true, MethodAttr.DTSDataWay, "@0=不同步@1=同步全部的相同字段的数据@2=同步指定字段的数据");
|
||||
|
||||
map.AddTBString(MethodAttr.DTSSpecFiels, null, "要同步的字段", true, false, 0, 300, 10, true);
|
||||
|
||||
map.AddBoolean(MethodAttr.DTSWhenFlowOver, false, "流程结束后同步?", true, true, true);
|
||||
map.AddBoolean(MethodAttr.DTSWhenNodeOver, false, "节点发送成功后同步?", true, true, true);
|
||||
|
||||
///#endregion (流程)相同字段数据同步方式.
|
||||
|
||||
//是否启用?
|
||||
map.AddTBInt(MethodAttr.IsEnable, 1, "是否启用?", true, true);
|
||||
map.AddTBInt(MethodAttr.IsList, 0, "是否显示在列表?", true, false);
|
||||
map.AddTBInt(MethodAttr.IsHavePara, 0, "是否含有参数?", true, false);
|
||||
map.AddTBInt(MethodAttr.Idx, 0, "Idx", true, false);
|
||||
try{
|
||||
map.AddMyFile();
|
||||
}catch(Exception e){
|
||||
|
||||
}
|
||||
|
||||
map.AddTBAtParas();
|
||||
this.set_enMap(map);
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 移动.
|
||||
public final void DoUp() throws Exception {
|
||||
this.DoOrderUp(MethodAttr.FrmID, this.getFrmID(), MethodAttr.Idx);
|
||||
}
|
||||
public final void DoDown() throws Exception
|
||||
{
|
||||
this.DoOrderDown(MethodAttr.FrmID, this.getFrmID(), MethodAttr.Idx);
|
||||
}
|
||||
|
||||
///#endregion 移动.
|
||||
|
||||
@Override
|
||||
protected boolean beforeInsert() throws Exception
|
||||
{
|
||||
if (DataType.IsNullOrEmpty(this.getNo()) == true)
|
||||
{
|
||||
this.setNo(DBAccess.GenerGUID(0, null, null));
|
||||
}
|
||||
return super.beforeInsert();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,135 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.Map;
|
||||
import bp.web.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.sys.*;
|
||||
import bp.ccbill.*;
|
||||
|
||||
/**
|
||||
方法单据
|
||||
*/
|
||||
public class MethodBill extends EntityNoName
|
||||
{
|
||||
|
||||
///#region 基本属性
|
||||
/**
|
||||
表单ID
|
||||
*/
|
||||
public final String getFrmID() {
|
||||
return this.GetValStringByKey(MethodAttr.FrmID);
|
||||
}
|
||||
public final void setFrmID(String value) {
|
||||
this.SetValByKey(MethodAttr.FrmID, value);
|
||||
}
|
||||
/**
|
||||
方法ID
|
||||
*/
|
||||
public final String getMethodID() {
|
||||
return this.GetValStringByKey(MethodAttr.MethodID);
|
||||
}
|
||||
public final void setMethodID(String value) {
|
||||
this.SetValByKey(MethodAttr.MethodID, value);
|
||||
}
|
||||
|
||||
public final String getTag1() throws Exception {
|
||||
String tag1 = this.GetValStringByKey(MethodAttr.Tag1);
|
||||
return tag1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 构造方法
|
||||
/**
|
||||
权限控制
|
||||
*/
|
||||
@Override
|
||||
public UAC getHisUAC()
|
||||
{
|
||||
UAC uac = new UAC();
|
||||
if (WebUser.getIsAdmin())
|
||||
{
|
||||
uac.IsUpdate = true;
|
||||
return uac;
|
||||
}
|
||||
return super.getHisUAC();
|
||||
}
|
||||
/**
|
||||
方法单据
|
||||
*/
|
||||
public MethodBill()
|
||||
{
|
||||
}
|
||||
public MethodBill(String mypk) throws Exception {
|
||||
this.setNo(mypk);
|
||||
this.Retrieve();
|
||||
}
|
||||
/**
|
||||
* 重写基类方法
|
||||
*/
|
||||
@Override
|
||||
public Map getEnMap() {
|
||||
if (this.get_enMap() != null)
|
||||
{
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
Map map = new Map("Frm_Method", "实体单据");
|
||||
|
||||
//主键.
|
||||
map.AddTBStringPK(MethodAttr.No, null, "编号", true, true, 0, 50, 10);
|
||||
map.AddTBString(MethodAttr.Name, null, "方法名", true, false, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.MethodID, null, "方法ID", true, true, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.GroupID, null, "分组ID", true, true, 0, 50, 10);
|
||||
|
||||
//功能标记.
|
||||
map.AddTBString(MethodAttr.MethodModel, null, "方法模式", true, true, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.Tag1, null, "Tag1", true, true, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.Mark, null, "Mark", true, true, 0, 300, 10);
|
||||
|
||||
|
||||
map.AddTBString(MethodAttr.FrmID, null, "表单ID", true, true, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.FlowNo, null, "流程编号", true, true, 0, 10, 10);
|
||||
|
||||
map.AddTBString(MethodAttr.Icon, null, "图标", true, false, 0, 50, 10, true);
|
||||
|
||||
this.set_enMap(map);
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
/**
|
||||
新建工作
|
||||
|
||||
@param workid 实体的实例ID
|
||||
@return
|
||||
*/
|
||||
public final String CreateWorkID(long workid) throws Exception {
|
||||
//获得当前的实体.
|
||||
GEEntity ge = new GEEntity(this.getFrmID(), workid);
|
||||
|
||||
//创建单据ID.
|
||||
long workID = Dev2Interface.CreateBlankBillID(this.getTag1(), null, ge.getRow(), this.getFrmID(), workid);
|
||||
return String.valueOf(workID);
|
||||
}
|
||||
|
||||
|
||||
///#region 执行方法.
|
||||
@Override
|
||||
protected boolean beforeInsert() throws Exception
|
||||
{
|
||||
if (DataType.IsNullOrEmpty(this.getNo()) == true)
|
||||
{
|
||||
this.setNo(DBAccess.GenerGUID(0, null, null));
|
||||
}
|
||||
return super.beforeInsert();
|
||||
}
|
||||
|
||||
///#endregion 执行方法.
|
||||
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.web.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.sys.*;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
方法单据
|
||||
*/
|
||||
public class MethodBills extends EntitiesNoName
|
||||
{
|
||||
/**
|
||||
方法单据
|
||||
*/
|
||||
public MethodBills()
|
||||
{
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new MethodBill();
|
||||
}
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<MethodBill> ToJavaList()
|
||||
{
|
||||
return (java.util.List<MethodBill>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<MethodBill> Tolist()
|
||||
{
|
||||
ArrayList<MethodBill> list = new ArrayList<MethodBill>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((MethodBill)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,58 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.web.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.sys.*;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
基础数据变更
|
||||
*/
|
||||
public class MethodFlowBaseDatas extends EntitiesNoName
|
||||
{
|
||||
/**
|
||||
基础数据变更
|
||||
*/
|
||||
public MethodFlowBaseDatas()
|
||||
{
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new MethodFlowBaseData();
|
||||
}
|
||||
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<MethodFlowBaseData> ToJavaList()
|
||||
{
|
||||
return (java.util.List<MethodFlowBaseData>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<MethodFlowBaseData> Tolist()
|
||||
{
|
||||
ArrayList<MethodFlowBaseData> list = new ArrayList<MethodFlowBaseData>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((MethodFlowBaseData)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,58 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.web.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.sys.*;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
实体其他业务流程
|
||||
*/
|
||||
public class MethodFlowEtcs extends EntitiesNoName
|
||||
{
|
||||
/**
|
||||
实体其他业务流程
|
||||
*/
|
||||
public MethodFlowEtcs()
|
||||
{
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new MethodFlowEtc();
|
||||
}
|
||||
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<MethodFlowEtc> ToJavaList()
|
||||
{
|
||||
return (java.util.List<MethodFlowEtc>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<MethodFlowEtc> Tolist()
|
||||
{
|
||||
ArrayList<MethodFlowEtc> list = new ArrayList<MethodFlowEtc>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((MethodFlowEtc)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.web.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
新建实体流程
|
||||
*/
|
||||
public class MethodFlowNewEntitys extends EntitiesNoName
|
||||
{
|
||||
/**
|
||||
新建实体流程
|
||||
*/
|
||||
public MethodFlowNewEntitys()
|
||||
{
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new MethodFlowNewEntity();
|
||||
}
|
||||
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<MethodFlowNewEntity> ToJavaList()
|
||||
{
|
||||
return (java.util.List<MethodFlowNewEntity>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<MethodFlowNewEntity> Tolist()
|
||||
{
|
||||
ArrayList<MethodFlowNewEntity> list = new ArrayList<MethodFlowNewEntity>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((MethodFlowNewEntity)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.web.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.sys.*;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
执行流程
|
||||
*/
|
||||
public class MethodFlows extends EntitiesNoName
|
||||
{
|
||||
/**
|
||||
执行流程
|
||||
*/
|
||||
public MethodFlows()
|
||||
{
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new MethodFlow();
|
||||
}
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<MethodFlow> ToJavaList()
|
||||
{
|
||||
return (java.util.List<MethodFlow>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<MethodFlow> Tolist()
|
||||
{
|
||||
ArrayList<MethodFlow> list = new ArrayList<MethodFlow>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((MethodFlow)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.web.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.sys.*;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
功能执行
|
||||
*/
|
||||
public class MethodFuncs extends EntitiesNoName
|
||||
{
|
||||
/**
|
||||
功能执行
|
||||
*/
|
||||
public MethodFuncs()
|
||||
{
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new MethodFunc();
|
||||
}
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<MethodFunc> ToJavaList()
|
||||
{
|
||||
return (java.util.List<MethodFunc>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<MethodFunc> Tolist()
|
||||
{
|
||||
ArrayList<MethodFunc> list = new ArrayList<MethodFunc>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((MethodFunc)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,106 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.Map;
|
||||
import bp.web.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
|
||||
/**
|
||||
连接方法
|
||||
*/
|
||||
public class MethodLink extends EntityNoName
|
||||
{
|
||||
|
||||
///#region 基本属性
|
||||
/**
|
||||
表单ID
|
||||
*/
|
||||
public final String getFrmID() {
|
||||
return this.GetValStringByKey(MethodAttr.FrmID);
|
||||
}
|
||||
public final void setFrmID(String value) {
|
||||
this.SetValByKey(MethodAttr.FrmID, value);
|
||||
}
|
||||
/**
|
||||
方法ID
|
||||
*/
|
||||
public final String getMethodID() {
|
||||
return this.GetValStringByKey(MethodAttr.MethodID);
|
||||
}
|
||||
public final void setMethodID(String value) {
|
||||
this.SetValByKey(MethodAttr.MethodID, value);
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 构造方法
|
||||
@Override
|
||||
public UAC getHisUAC()
|
||||
{
|
||||
UAC uac = new UAC();
|
||||
if (WebUser.getIsAdmin())
|
||||
{
|
||||
uac.IsUpdate = true;
|
||||
return uac;
|
||||
}
|
||||
return super.getHisUAC();
|
||||
}
|
||||
/**
|
||||
连接方法
|
||||
*/
|
||||
public MethodLink()
|
||||
{
|
||||
}
|
||||
/**
|
||||
* 重写基类方法
|
||||
*/
|
||||
@Override
|
||||
public Map getEnMap()
|
||||
{
|
||||
if (this.get_enMap() != null)
|
||||
{
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
Map map = new Map("Frm_Method", "连接");
|
||||
|
||||
//主键.
|
||||
map.AddTBStringPK(MethodAttr.No, null, "编号", true, true, 0, 50, 10);
|
||||
map.AddTBString(MethodAttr.Name, null, "链接标签", true, false, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.MethodID, null, "方法ID", false, true, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.GroupID, null, "分组ID", false, true, 0, 50, 10);
|
||||
|
||||
//功能标记.
|
||||
map.AddTBString(MethodAttr.MethodModel, null, "方法模式", false, false, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.Tag1, null, "链接地址", true, false, 0, 300, 10, true);
|
||||
map.AddTBString(MethodAttr.Mark, null, "Mark", false, true, 0, 300, 10);
|
||||
|
||||
map.AddTBString(MethodAttr.Icon, null, "图标", true, false, 0, 50, 10, true);
|
||||
|
||||
map.AddDDLSysEnum(MethodAttr.ShowModel, 0, "显示方式", false, false, MethodAttr.ShowModel, "@0=按钮@1=超链接");
|
||||
|
||||
map.AddDDLSysEnum(MethodAttr.RefMethodType, 0, "页面打开方式", true, true, "RefMethodTypeLink", "@1=模态窗口打开@2=新窗口打开@3=右侧窗口打开@4=转到新页面");
|
||||
//是否显示到列表.
|
||||
map.AddBoolean(MethodAttr.IsList, false, "是否显示在列表?", true, true);
|
||||
|
||||
map.AddTBInt(MethodAttr.PopWidth, 500, "宽度", true, false);
|
||||
map.AddTBInt(MethodAttr.PopHeight, 700, "高度", true, false);
|
||||
|
||||
|
||||
this.set_enMap(map);
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
@Override
|
||||
protected boolean beforeInsert() throws Exception
|
||||
{
|
||||
if (DataType.IsNullOrEmpty(this.getNo()) == true)
|
||||
{
|
||||
this.setNo(DBAccess.GenerGUID(0, null, null));
|
||||
}
|
||||
return super.beforeInsert();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,56 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.web.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
连接方法
|
||||
*/
|
||||
public class MethodLinks extends EntitiesNoName
|
||||
{
|
||||
/**
|
||||
连接方法
|
||||
*/
|
||||
public MethodLinks()
|
||||
{
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new MethodLink();
|
||||
}
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<MethodLink> ToJavaList()
|
||||
{
|
||||
return (java.util.List<MethodLink>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<MethodLink> Tolist()
|
||||
{
|
||||
ArrayList<MethodLink> list = new ArrayList<MethodLink>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((MethodLink)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,105 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.Map;
|
||||
import bp.web.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
|
||||
/**
|
||||
二维码
|
||||
*/
|
||||
public class MethodQRCode extends EntityNoName
|
||||
{
|
||||
|
||||
///#region 基本属性
|
||||
/**
|
||||
表单ID
|
||||
*/
|
||||
public final String getFrmID() {
|
||||
return this.GetValStringByKey(MethodAttr.FrmID);
|
||||
}
|
||||
public final void setFrmID(String value) {
|
||||
this.SetValByKey(MethodAttr.FrmID, value);
|
||||
}
|
||||
/**
|
||||
方法ID
|
||||
*/
|
||||
public final String getMethodID() {
|
||||
return this.GetValStringByKey(MethodAttr.MethodID);
|
||||
}
|
||||
public final void setMethodID(String value) {
|
||||
this.SetValByKey(MethodAttr.MethodID, value);
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 构造方法
|
||||
@Override
|
||||
public UAC getHisUAC()
|
||||
{
|
||||
UAC uac = new UAC();
|
||||
if (WebUser.getIsAdmin())
|
||||
{
|
||||
uac.IsUpdate = true;
|
||||
return uac;
|
||||
}
|
||||
return super.getHisUAC();
|
||||
}
|
||||
/**
|
||||
二维码
|
||||
*/
|
||||
public MethodQRCode()
|
||||
{
|
||||
}
|
||||
/**
|
||||
* 重写基类方法
|
||||
*/
|
||||
@Override
|
||||
public Map getEnMap() {
|
||||
if (this.get_enMap() != null)
|
||||
{
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
Map map = new Map("Frm_Method", "二维码");
|
||||
|
||||
//主键.
|
||||
map.AddTBStringPK(MethodAttr.No, null, "编号", true, true, 0, 50, 10);
|
||||
map.AddTBString(MethodAttr.Name, null, "方法名", true, false, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.MethodID, null, "方法ID", true, true, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.GroupID, null, "分组ID", true, true, 0, 50, 10);
|
||||
|
||||
//功能标记.
|
||||
map.AddTBString(MethodAttr.MethodModel, null, "方法模式", true, true, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.Mark, null, "Mark", true, true, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.Icon, null, "图标", true, false, 0, 50, 10, true);
|
||||
|
||||
map.AddDDLSysEnum(MethodAttr.ShowModel, 0, "显示方式", true, true, MethodAttr.ShowModel, "@0=按钮@1=超链接");
|
||||
|
||||
map.AddTBString(MethodAttr.MethodDoc_Url, null, "连接URL", true, false, 0, 300, 10);
|
||||
|
||||
|
||||
///#region 工具栏.
|
||||
map.AddBoolean(MethodAttr.IsMyBillToolBar, true, "是否显示在MyBill.htm工具栏上", true, true, true);
|
||||
map.AddBoolean(MethodAttr.IsMyBillToolExt, false, "是否显示在MyBill.htm工具栏右边的更多按钮里", true, true, true);
|
||||
map.AddBoolean(MethodAttr.IsSearchBar, false, "是否显示在Search.htm工具栏上(用于批处理)", true, true, true);
|
||||
|
||||
///#endregion 工具栏.
|
||||
|
||||
this.set_enMap(map);
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
@Override
|
||||
protected boolean beforeInsert() throws Exception
|
||||
{
|
||||
if (DataType.IsNullOrEmpty(this.getNo()) == true)
|
||||
{
|
||||
this.setNo(DBAccess.GenerGUID(0, null, null));
|
||||
}
|
||||
return super.beforeInsert();
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,56 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.web.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
二维码
|
||||
*/
|
||||
public class MethodQRCodes extends EntitiesNoName
|
||||
{
|
||||
/**
|
||||
二维码
|
||||
*/
|
||||
public MethodQRCodes()
|
||||
{
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new MethodQRCode();
|
||||
}
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<MethodQRCode> ToJavaList()
|
||||
{
|
||||
return (java.util.List<MethodQRCode>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<MethodQRCode> Tolist()
|
||||
{
|
||||
ArrayList<MethodQRCode> list = new ArrayList<MethodQRCode>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((MethodQRCode)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,107 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.Map;
|
||||
import bp.web.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
|
||||
/**
|
||||
单实体流程查询
|
||||
*/
|
||||
public class MethodSingleDictGenerWorkFlow extends EntityNoName
|
||||
{
|
||||
|
||||
///#region 基本属性
|
||||
/**
|
||||
表单ID
|
||||
*/
|
||||
public final String getFrmID() {
|
||||
return this.GetValStringByKey(MethodAttr.FrmID);
|
||||
}
|
||||
public final void setFrmID(String value) {
|
||||
this.SetValByKey(MethodAttr.FrmID, value);
|
||||
}
|
||||
/**
|
||||
方法ID
|
||||
*/
|
||||
public final String getMethodID() {
|
||||
return this.GetValStringByKey(MethodAttr.MethodID);
|
||||
}
|
||||
public final void setMethodID(String value) {
|
||||
this.SetValByKey(MethodAttr.MethodID, value);
|
||||
}
|
||||
|
||||
|
||||
///#endregion
|
||||
|
||||
|
||||
///#region 构造方法
|
||||
@Override
|
||||
public UAC getHisUAC()
|
||||
{
|
||||
UAC uac = new UAC();
|
||||
if (WebUser.getIsAdmin())
|
||||
{
|
||||
uac.IsUpdate = true;
|
||||
return uac;
|
||||
}
|
||||
return super.getHisUAC();
|
||||
}
|
||||
/**
|
||||
单实体流程查询
|
||||
*/
|
||||
public MethodSingleDictGenerWorkFlow()
|
||||
{
|
||||
}
|
||||
/**
|
||||
* 重写基类方法
|
||||
*/
|
||||
@Override
|
||||
public Map getEnMap() {
|
||||
if (this.get_enMap() != null)
|
||||
{
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
Map map = new Map("Frm_Method", "单个实体流程查询");
|
||||
|
||||
map.AddMyPK(true);
|
||||
|
||||
map.AddTBString(MethodAttr.FrmID, null, "表单ID", true, true, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.MethodID, null, "方法ID", true, true, 0, 200, 10);
|
||||
map.AddTBString(MethodAttr.GroupID, null, "GroupID", true, true, 0, 200, 10);
|
||||
|
||||
map.AddTBString(MethodAttr.Name, null, "方法名", true, false, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.Icon, null, "图标", true, false, 0, 50, 10, true);
|
||||
|
||||
//功能标记.
|
||||
map.AddTBString(MethodAttr.MethodModel, null, "方法模式", true, false, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.Tag1, null, "Tag1", true, false, 0, 300, 10);
|
||||
map.AddTBString(MethodAttr.Mark, null, "Mark", true, false, 0, 300, 10);
|
||||
|
||||
|
||||
|
||||
///#region 工具栏.
|
||||
map.AddBoolean(MethodAttr.IsMyBillToolBar, true, "是否显示在MyBill.htm工具栏上", true, true, true);
|
||||
map.AddBoolean(MethodAttr.IsMyBillToolExt, false, "是否显示在MyBill.htm工具栏右边的更多按钮里", true, true, true);
|
||||
map.AddBoolean(MethodAttr.IsSearchBar, false, "是否显示在Search.htm工具栏上(用于批处理)", true, true, true);
|
||||
|
||||
///#endregion 工具栏.
|
||||
|
||||
this.set_enMap(map);
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
@Override
|
||||
protected boolean beforeInsert() throws Exception
|
||||
{
|
||||
if (DataType.IsNullOrEmpty(this.getNo()) == true)
|
||||
{
|
||||
this.setNo(DBAccess.GenerGUID(0, null, null));
|
||||
}
|
||||
return super.beforeInsert();
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,56 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.web.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
单实体流程查询
|
||||
*/
|
||||
public class MethodSingleDictGenerWorkFlows extends EntitiesMyPK
|
||||
{
|
||||
/**
|
||||
单实体流程查询
|
||||
*/
|
||||
public MethodSingleDictGenerWorkFlows()
|
||||
{
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new MethodSingleDictGenerWorkFlow();
|
||||
}
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<MethodSingleDictGenerWorkFlow> ToJavaList()
|
||||
{
|
||||
return (java.util.List<MethodSingleDictGenerWorkFlow>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<MethodSingleDictGenerWorkFlow> Tolist()
|
||||
{
|
||||
ArrayList<MethodSingleDictGenerWorkFlow> list = new ArrayList<MethodSingleDictGenerWorkFlow>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((MethodSingleDictGenerWorkFlow)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,65 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.da.*;
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
实体方法
|
||||
*/
|
||||
public class Methods extends EntitiesNoName
|
||||
{
|
||||
/**
|
||||
实体方法
|
||||
*/
|
||||
public Methods()
|
||||
{
|
||||
}
|
||||
/**
|
||||
实体方法
|
||||
|
||||
@param nodeid 方法IDID
|
||||
*/
|
||||
public Methods(int nodeid) throws Exception {
|
||||
QueryObject qo = new QueryObject(this);
|
||||
qo.AddWhere(MethodAttr.MethodID, nodeid);
|
||||
qo.DoQuery();
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new Method();
|
||||
}
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<Method> ToJavaList()
|
||||
{
|
||||
return (java.util.List<Method>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<Method> Tolist()
|
||||
{
|
||||
ArrayList<Method> list = new ArrayList<Method>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((Method)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
@ -0,0 +1,76 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.en.Map;
|
||||
|
||||
/**
|
||||
单据可创建的工作角色
|
||||
单据的工作角色有两部分组成.
|
||||
记录了从一个单据到其他的多个单据.
|
||||
也记录了到这个单据的其他的单据.
|
||||
*/
|
||||
public class StationCreate extends EntityMM
|
||||
{
|
||||
|
||||
///#region 基本属性
|
||||
/**
|
||||
UI界面上的访问控制
|
||||
*/
|
||||
@Override
|
||||
public UAC getHisUAC()
|
||||
{
|
||||
UAC uac = new UAC();
|
||||
uac.OpenAll();
|
||||
return uac;
|
||||
}
|
||||
/**
|
||||
单据
|
||||
*/
|
||||
public final int getFrmID() {
|
||||
return this.GetValIntByKey(StationCreateAttr.FrmID);
|
||||
}
|
||||
public final void setFrmID(int value) {
|
||||
this.SetValByKey(StationCreateAttr.FrmID, value);
|
||||
}
|
||||
public final String getFKStationT() {
|
||||
return this.GetValRefTextByKey(StationCreateAttr.FK_Station);
|
||||
}
|
||||
/**
|
||||
工作角色
|
||||
*/
|
||||
public final String getFKStation() {
|
||||
return this.GetValStringByKey(StationCreateAttr.FK_Station);
|
||||
}
|
||||
public final void setFKStation(String value) {
|
||||
this.SetValByKey(StationCreateAttr.FK_Station, value);
|
||||
}
|
||||
///#endregion
|
||||
///#region 构造方法
|
||||
/**
|
||||
单据可创建的工作角色
|
||||
*/
|
||||
public StationCreate()
|
||||
{
|
||||
}
|
||||
/**
|
||||
* 重写基类方法
|
||||
*/
|
||||
@Override
|
||||
public Map getEnMap()
|
||||
{
|
||||
if (this.get_enMap() != null)
|
||||
{
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
Map map = new Map("Frm_StationCreate", "单据角色");
|
||||
|
||||
map.AddTBStringPK(StationCreateAttr.FrmID, null, "表单", true, true, 1, 100, 100);
|
||||
map.AddDDLEntitiesPK(StationCreateAttr.FK_Station, null, "可以创建角色", new bp.port.Stations(), true);
|
||||
this.set_enMap(map);
|
||||
return this.get_enMap();
|
||||
}
|
||||
|
||||
///#endregion
|
||||
|
||||
}
|
||||
@ -0,0 +1,21 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
单据可创建的工作角色属性
|
||||
*/
|
||||
public class StationCreateAttr
|
||||
{
|
||||
/**
|
||||
单据
|
||||
*/
|
||||
public static final String FrmID = "FrmID";
|
||||
/**
|
||||
工作角色
|
||||
*/
|
||||
public static final String FK_Station = "FK_Station";
|
||||
}
|
||||
@ -0,0 +1,79 @@
|
||||
package bp.ccbill.template;
|
||||
|
||||
import bp.en.*; import bp.en.Map;
|
||||
import bp.*;
|
||||
import bp.ccbill.*;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
单据可创建的工作角色
|
||||
*/
|
||||
public class StationCreates extends EntitiesMM
|
||||
{
|
||||
|
||||
///#region 构造函数.
|
||||
/**
|
||||
单据可创建的工作角色
|
||||
*/
|
||||
public StationCreates()
|
||||
{
|
||||
}
|
||||
/**
|
||||
单据可创建的工作角色
|
||||
|
||||
@param nodeID 单据ID
|
||||
*/
|
||||
public StationCreates(int nodeID) throws Exception {
|
||||
QueryObject qo = new QueryObject(this);
|
||||
qo.AddWhere(StationCreateAttr.FrmID, nodeID);
|
||||
qo.DoQuery();
|
||||
}
|
||||
/**
|
||||
单据可创建的工作角色
|
||||
|
||||
@param StationNo StationNo
|
||||
*/
|
||||
public StationCreates(String StationNo) throws Exception {
|
||||
QueryObject qo = new QueryObject(this);
|
||||
qo.AddWhere(StationCreateAttr.FK_Station, StationNo);
|
||||
qo.DoQuery();
|
||||
}
|
||||
/**
|
||||
得到它的 Entity
|
||||
*/
|
||||
@Override
|
||||
public Entity getNewEntity()
|
||||
{
|
||||
return new StationCreate();
|
||||
}
|
||||
|
||||
///#endregion 构造函数.
|
||||
|
||||
|
||||
///#region 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
/**
|
||||
转化成 java list,C#不能调用.
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final java.util.List<StationCreate> ToJavaList()
|
||||
{
|
||||
return (java.util.List<StationCreate>)(Object)this;
|
||||
}
|
||||
/**
|
||||
转化成list
|
||||
|
||||
@return List
|
||||
*/
|
||||
public final ArrayList<StationCreate> Tolist()
|
||||
{
|
||||
ArrayList<StationCreate> list = new ArrayList<StationCreate>();
|
||||
for (int i = 0; i < this.size(); i++)
|
||||
{
|
||||
list.add((StationCreate)this.get(i));
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
///#endregion 为了适应自动翻译成java的需要,把实体转换成List.
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue