初始化代码

main
周文涛 2 years ago
commit 75ede2d9d7

26
.gitignore vendored

@ -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,632 @@
package bp.ccbill;
import bp.da.*;
import bp.en.*;
import bp.en.Map;
import bp.wf.*;
import bp.sys.*;
/**
*/
public class DBList extends EntityNoName
{
///#region 权限控制.
@Override
public UAC getHisUAC()
{
UAC uac = new UAC();
uac.OpenForAppAdmin();
uac.IsDelete = false;
uac.IsInsert = false;
return uac;
}
///#endregion 权限控制.
///#region 属性
/**
*/
public final String getPTable() throws Exception {
String s = this.GetValStrByKey(MapDataAttr.PTable);
if (DataType.IsNullOrEmpty(s) == true)
{
return this.getNo();
}
return s;
}
public final void setPTable(String value) {
this.SetValByKey(MapDataAttr.PTable, value);
}
/**
@0=@1=@2=
*/
public final EntityType getEntityType() {
return EntityType.forValue(this.GetValIntByKey(DBListAttr.EntityType));
}
public final void setEntityType(EntityType value) {
this.SetValByKey(DBListAttr.EntityType, value.getValue());
}
/**
(0=2= ...)
*/
public final FrmType getFrmType() {
return FrmType.forValue(this.GetValIntByKey(MapDataAttr.FrmType));
}
public final void setFrmType(FrmType value) {
this.SetValByKey(MapDataAttr.FrmType, value.getValue());
}
/**
*/
public final String getFKFormTree() {
return this.GetValStrByKey(MapDataAttr.FK_FormTree);
}
public final void setFKFormTree(String value) {
this.SetValByKey(MapDataAttr.FK_FormTree, value);
}
/**
@0=@1=@2=
*/
public final int getBtnNewModel() {
return this.GetValIntByKey(DBListAttr.BtnNewModel);
}
public final void setBtnNewModel(int value) {
this.SetValByKey(DBListAttr.BtnNewModel, value);
}
/**
(4)
*/
public final String getBillNoFormat() throws Exception {
String str = this.GetValStrByKey(DBListAttr.BillNoFormat);
if (DataType.IsNullOrEmpty(str) == true)
{
str = "{LSH4}";
}
return str;
}
public final void setBillNoFormat(String value) {
this.SetValByKey(DBListAttr.BillNoFormat, value);
}
/**
*/
public final String getTitleRole() throws Exception {
String str = this.GetValStrByKey(DBListAttr.TitleRole);
if (DataType.IsNullOrEmpty(str) == true)
{
str = "@WebUser.FK_DeptName @WebUser.Name @RDT";
}
return str;
}
/**
*/
public final String getBtnNewLable() {
return this.GetValStrByKey(DBListAttr.BtnNewLable);
}
/**
*/
public final String getBtnDelLable() {
return this.GetValStrByKey(DBListAttr.BtnDelLable);
}
/**
*/
public final String getBtnSaveLable() {
return this.GetValStrByKey(DBListAttr.BtnSaveLable);
}
/**
*/
public final String getBtnSubmitLable() {
return this.GetValStrByKey(DBListAttr.BtnSubmitLable);
}
/**
*/
public final String getBtnSearchLabel() {
return this.GetValStrByKey(DBListAttr.BtnSearchLabel);
}
/**
*/
public final String getBtnDataVer() {
return this.GetValStrByKey(DBListAttr.BtnDataVer);
}
/**
*/
public final boolean getBtnGroupEnable() {
return this.GetValBooleanByKey(DBListAttr.BtnGroupEnable);
}
public final String getBtnGroupLabel() {
return this.GetValStrByKey(DBListAttr.BtnGroupLabel);
}
/**
HTML
*/
public final boolean getBtnPrintHtmlEnable() {
return this.GetValBooleanByKey(DBListAttr.BtnPrintHtmlEnable);
}
public final String getBtnPrintHtml() {
return this.GetValStrByKey(DBListAttr.BtnPrintHtml);
}
/**
PDF
*/
public final boolean getBtnPrintPDFEnable() {
return this.GetValBooleanByKey(DBListAttr.BtnPrintPDFEnable);
}
public final String getBtnPrintPDF() {
return this.GetValStrByKey(DBListAttr.BtnPrintPDF);
}
/**
RTF
*/
public final boolean getBtnPrintRTFEnable() {
return this.GetValBooleanByKey(DBListAttr.BtnPrintRTFEnable);
}
public final String getBtnPrintRTF() {
return this.GetValStrByKey(DBListAttr.BtnPrintRTF);
}
/**
CCWord
*/
public final boolean getBtnPrintCCWordEnable() {
return this.GetValBooleanByKey(DBListAttr.BtnPrintCCWordEnable);
}
public final String getBtnPrintCCWord() {
return this.GetValStrByKey(DBListAttr.BtnPrintCCWord);
}
/**
*/
public final int getDBType() {
return this.GetValIntByKey(MapDataAttr.DBType);
}
public final String getDBSrc() {
return this.GetValStrByKey(MapDataAttr.DBSrc);
}
public final void setDBSrc(String value) {
this.SetValByKey(MapDataAttr.DBSrc, value);
}
public final String getExpEn() {
return this.GetValStrByKey(MapDataAttr.ExpEn);
}
public final void setExpEn(String value) {
this.SetValByKey(MapDataAttr.ExpEn, value);
}
public final String getExpList() {
return this.GetValStrByKey(MapDataAttr.ExpList);
}
public final void setExpList(String value) {
this.SetValByKey(MapDataAttr.ExpList, value);
}
public final String getExpCount() {
return this.GetValStrByKey(MapDataAttr.ExpCount);
}
public final void setExpCount(String value) {
this.SetValByKey(MapDataAttr.ExpCount, value);
}
public final String getMainTable() {
return this.GetValStrByKey(DBListAttr.MainTable);
}
public final void setMainTable(String value) {
this.SetValByKey(DBListAttr.MainTable, value);
}
public final String getMainTablePK() {
return this.GetValStrByKey(DBListAttr.MainTablePK);
}
public final void setMainTablePK(String value) {
this.SetValByKey(DBListAttr.MainTablePK, value);
}
///#endregion
///#region 构造方法
/**
*/
public DBList()
{
}
/**
@param no
*/
public DBList(String no) throws Exception
{
super(no);
}
/**
* 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.AddGroupAttr("基本属性", "");
map.AddTBStringPK(MapDataAttr.No, null, "表单编号", true, true, 1, 190, 20);
map.SetHelperAlert(MapDataAttr.No, "也叫表单ID,系统唯一.");
map.AddDDLSysEnum(MapDataAttr.FrmType, 0, "表单类型", true, true, "BillFrmType", "@0=经典表单@1=自由表单@8=开发者表单");
// map.AddTBString(MapDataAttr.PTable, null, "存储表", false, false, 0, 500, 20, true);
// map.SetHelperAlert(MapDataAttr.PTable, "存储的表名,如果您修改一个不存在的系统将会自动创建一个表.");
map.AddTBString(MapDataAttr.Name, null, "表单名称", true, false, 0, 200, 20, true);
// map.AddDDLEntities(MapDataAttr.FK_FormTree, "01", "表单类别", new SysFormTrees(), false);
// #endregion 基本属性.
///#region 数据源.
map.AddGroupAttr("数据源", "");
map.AddTBInt(MapDataAttr.DBType, 0, "数据源类型", true, true);
map.AddTBString(MapDataAttr.DBSrc, null, "数据源", false, false, 0, 600, 20);
map.AddTBString(MapDataAttr.ExpEn, null, "实体数据源", false, false, 0, 600, 20, true);
map.AddTBString(MapDataAttr.ExpList, null, "列表数据源", false, false, 0, 600, 20, true);
map.AddTBString(DBListAttr.MainTable, null, "列表数据源主表", false, false, 0, 50, 20, false);
map.AddTBString(DBListAttr.MainTablePK, null, "列表数据源主表主键", false, false, 0, 50, 20, false);
map.AddTBString(MapDataAttr.ExpCount, null, "列表总数", false, false, 0, 600, 20, true);
///#endregion 数据源.
///#region 外观.
map.AddGroupAttr("外观", "");
map.AddDDLSysEnum(FrmAttr.RowOpenModel, 2, "行记录打开模式", true, true, "RowOpenMode", "@0=新窗口打开@1=在本窗口打开@2=弹出窗口打开,关闭后不刷新列表@3=弹出窗口打开,关闭后刷新列表");
String cfg = "@0=MyDictFrameWork.htm 实体与实体相关功能编辑器";
cfg += "@1=MyDict.htm 实体编辑器";
cfg += "@2=MyBill.htm 单据编辑器";
cfg += "@9=自定义URL";
map.AddDDLSysEnum("SearchDictOpenType", 0, "双击行打开内容", true, true, "SearchDictOpenType", cfg);
map.AddTBString(EnCfgAttr.UrlExt, null, "要打开的Url", true, false, 0, 500, 60, true);
map.AddTBInt(FrmAttr.PopHeight, 500, "弹窗高度", true, false);
map.AddTBInt(FrmAttr.PopWidth, 760, "弹窗宽度", true, false);
map.AddDDLSysEnum(MapDataAttr.TableCol, 0, "表单显示列数", true, true, "经典表单显示方式", "@0=4列@1=6列@2=上下模式3列");
map.AddDDLSysEnum(FrmAttr.EntityEditModel, 0, "编辑模式", true, true, FrmAttr.EntityEditModel, "@0=表格@1=行编辑");
map.SetHelperAlert(FrmAttr.EntityEditModel, "用什么方式打开实体列表进行编辑0=只读查询模式SearchDict.htm,1=行编辑模式SearchEditer.htm");
///#endregion 外观.
///#region 数据源实体.
map.AddDDLSysEnum(DBListAttr.EntityType, 0, "业务类型", true, false, DBListAttr.EntityType, "@0=独立表单@1=单据@2=编号名称实体@3=树结构实体");
map.SetHelperAlert(DBListAttr.EntityType, "该实体的类型,@0=单据@1=编号名称实体@2=树结构实体.");
map.AddTBString(DBListAttr.BillNoFormat, null, "实体编号规则", true, false, 0, 100, 20, true);
map.SetHelperAlert(DBListAttr.BillNoFormat, "\t\n实体编号规则: \t\n 2标识:01,02,03等, 3标识:001,002,003,等..");
map.AddTBString(FrmBillAttr.SortColumns, null, "排序字段", true, false, 0, 100, 20, true);
map.AddTBString(FrmBillAttr.ColorSet, null, "颜色设置", true, false, 0, 100, 20, true);
map.AddTBString(FrmBillAttr.FieldSet, null, "字段求和求平均设置", true, false, 0, 100, 20, true);
//字段格式化函数.
map.AddTBString("ForamtFunc", null, "字段格式化函数", true, false, 0, 200, 60, true);
String msg = "对字段的显示使用函数进行处理";
msg += "\t\n 1. 对于字段内容需要处理后在输出出来.";
msg += "\t\n 2. 比如:原字段内容 @zhangsa,张三@lisi,李四 显示的内容为 张三,李四";
msg += "\t\n 3. 配置格式: 字段名@函数名; 比如: FlowEmps@DealFlowEmps; ";
msg += "\t\n 4. 函数写入到 \\DataUser\\JSLibData\\SearchSelf.js";
map.SetHelperAlert("ForamtFunc", msg);
///#endregion 数据源实体.
//增加参数字段.
map.AddTBAtParas(4000);
///#region 基本功能.
RefMethod rm = new RefMethod();
rm = new RefMethod();
rm.Title = "步骤1: 设置数据源."; // "设计表单";
rm.ClassMethodName = this.toString() + ".DoDBSrc";
rm.Icon = "../../WF/Img/Event.png";
rm.Visable = true;
rm.refMethodType = RefMethodType.RightFrameOpen;
rm.Target = "_blank";
map.AddRefMethod(rm);
rm = new RefMethod();
rm.Title = "步骤2: 实体数据"; // "设计表单";
rm.ClassMethodName = this.toString() + ".DoExpEn";
rm.Icon = "../../WF/Img/Event.png";
rm.Visable = true;
rm.refMethodType = RefMethodType.RightFrameOpen;
rm.Target = "_blank";
map.AddRefMethod(rm);
rm = new RefMethod();
rm.Title = "步骤3: 列表数据"; // "设计表单";
rm.ClassMethodName = this.toString() + ".DoExpList";
rm.Icon = "../../WF/Img/Event.png";
rm.Visable = true;
rm.refMethodType = RefMethodType.RightFrameOpen;
rm.Target = "_blank";
map.AddRefMethod(rm);
//rm = new RefMethod();
//rm.Title = "步骤4: 总数数据"; // "设计表单";
//rm.ClassMethodName = this.ToString() + ".DoExpCount";
//rm.Icon = "../../WF/Img/Event.png";
//rm.Visable = true;
//rm.refMethodType = RefMethodType.RightFrameOpen;
//rm.Target = "_blank";
//map.AddRefMethod(rm);
rm = new RefMethod();
rm.Title = "步骤4: 测试"; // "设计表单";
rm.ClassMethodName = this.toString() + ".DoDBList";
rm.Icon = "../../WF/Img/Event.png";
rm.Visable = true;
rm.refMethodType = RefMethodType.RightFrameOpen;
rm.Target = "_blank";
map.AddRefMethod(rm);
rm = new RefMethod();
rm.Title = "查询条件"; // "设计表单";
// rm.GroupName = "高级选项";
rm.ClassMethodName = this.toString() + ".DoSearch";
rm.Icon = "../../WF/Img/Event.png";
rm.Visable = true;
rm.refMethodType = RefMethodType.RightFrameOpen;
rm.Target = "_blank";
map.AddRefMethod(rm);
rm = new RefMethod();
rm.Title = "视频教程"; // "设计表单";
rm.ClassMethodName = this.toString() + ".DoVideo";
rm.Visable = true;
rm.refMethodType = RefMethodType.LinkeWinOpen;
rm.Target = "_blank";
map.AddRefMethod(rm);
///#endregion 基本功能.
this.set_enMap(map);
return this.get_enMap();
}
///#endregion
public final String DoVideo()
{
return "https://www.bilibili.com/video/BV15P4y1p7Sj";
}
public final String DoDBSrc() {
return "../../Comm/RefFunc/EnOnly.htm?EnName=BP.CCBill.DBListDBSrc&No=" + this.getNo();
}
public final String DoExpEn() {
return "../../CCBill/Admin/DBList/FieldsORM.htm?s=34&FrmID=" + this.getNo() + "&ExtType=PageLoadFull&RefNo=ss3";
}
public final String DoExpList() {
return "../../CCBill/Admin/DBList/ListDBSrc.htm?s=34&FrmID=" + this.getNo() + "&ExtType=PageLoadFull&RefNo=ss3";
}
public final String DoExpCount() {
return "../../CCBill/Admin/DBList/ListDBCount.htm?s=34&FrmID=" + this.getNo() + "&ExtType=PageLoadFull&RefNo=ss3";
}
public final String DoDBList() {
return "../../CCBill/SearchDBList.htm?FrmID=" + this.getNo();
}
public final String DoSearch() {
return "../../CCBill/Admin/Collection/SearchCond.htm?s=34&FrmID=" + this.getNo() + "&ExtType=PageLoadFull&RefNo=ss3";
}
@Override
protected void afterInsertUpdateAction() throws Exception
{
super.afterInsertUpdateAction();
}
/**
enittyNoName
*/
public final void CheckEnityTypeAttrsFor_EntityNoName() throws Exception {
//取出来全部的属性.
MapAttrs attrs = new MapAttrs(this.getNo());
///#region 补充上流程字段到 NDxxxRpt.
if (attrs.contains(this.getNo() + "_" + GERptAttr.OID) == false)
{
/* WorkID */
MapAttr attr = new MapAttr();
attr.setFrmID( this.getNo());
attr.setKeyOfEn("OID");
attr.setName("主键ID");
attr.setMyDataType(DataType.AppInt);
attr.setUIContralType(UIContralType.TB);
attr.setLGType(FieldTypeS.Normal);
attr.setUIVisible(false);
attr.setUIIsEnable(false);
attr.setDefVal("0");
attr.setEditType(EditType.Readonly);
attr.Insert();
}
if (attrs.contains(this.getNo() + "_" + GERptAttr.BillNo) == false)
{
/* 单据编号 */
MapAttr attr = new MapAttr();
attr.setFrmID( this.getNo());
attr.setHisEditType(EditType.UnDel);
attr.setKeyOfEn(GERptAttr.BillNo);
attr.setName("编号"); // 单据编号
attr.setMyDataType(DataType.AppString);
attr.setUIContralType(UIContralType.TB);
attr.setLGType(FieldTypeS.Normal);
attr.setUIVisible(true);
attr.setUIIsEnable(false);
attr.setUIIsLine (false);
attr.setMinLen(0);
attr.setMaxLen(100);
attr.setIdx(-1);
attr.Insert();
}
if (attrs.contains(this.getNo() + "_" + GERptAttr.Title) == false)
{
/* 名称 */
MapAttr attr = new MapAttr();
attr.setFrmID(this.getNo());
attr.setHisEditType(EditType.UnDel);
attr.setKeyOfEn(GERptAttr.Title); // "FlowEmps";
attr.setName("名称"); // 单据模式, ccform的模式.
attr.setMyDataType(DataType.AppString);
attr.setUIContralType(UIContralType.TB);
attr.setLGType(FieldTypeS.Normal);
attr.setUIVisible(true);
attr.setUIIsEnable(true);
attr.setUIIsLine(true);
attr.setMinLen(0);
attr.setMaxLen(400);
attr.setIdx(-90);
attr.Insert();
}
if (attrs.contains(this.getNo() + "_BillState") == false)
{
/* 单据状态 */
MapAttr attr = new MapAttr();
attr.setFrmID( this.getNo());
attr.setHisEditType(EditType.UnDel);
attr.setKeyOfEn("BillState"); // "FlowEmps";
attr.setName("单据状态");
attr.setMyDataType(DataType.AppInt);
attr.setUIContralType(UIContralType.TB);
attr.setLGType(FieldTypeS.Normal);
attr.setUIVisible(false);
attr.setUIIsEnable(false);
attr.setUIIsLine(true);
attr.setMinLen(0);
attr.setMaxLen(10);
attr.setIdx(-98);
attr.Insert();
}
if (attrs.contains(this.getNo() + "_Starter") == false)
{
/* 发起人 */
MapAttr attr = new MapAttr();
attr.setFrmID( this.getNo());
attr.setHisEditType(EditType.UnDel);
attr.setKeyOfEn("Starter");
attr.setName("创建人");
attr.setMyDataType(DataType.AppString);
attr.setUIContralType(UIContralType.TB);
attr.setLGType(FieldTypeS.Normal);
attr.setUIVisible(false);
attr.setUIIsEnable(false);
attr.setMinLen(0);
attr.setMaxLen(100);
attr.setIdx(-1);
attr.Insert();
}
if (attrs.contains(this.getNo() + "_StarterName") == false)
{
/* 创建人名称 */
MapAttr attr = new MapAttr();
attr.setFrmID( this.getNo());
attr.setHisEditType(EditType.UnDel);
attr.setKeyOfEn("StarterName");
attr.setName("创建人名称");
attr.setMyDataType(DataType.AppString);
attr.setUIContralType(UIContralType.TB);
attr.setLGType(FieldTypeS.Normal);
attr.setUIVisible(false);
attr.setUIIsEnable(false);
attr.setMinLen(0);
attr.setMaxLen(32);
attr.setIdx(-1);
attr.Insert();
}
if (attrs.contains(this.getNo() + "_" + GERptAttr.AtPara) == false)
{
/* 参数 */
MapAttr attr = new MapAttr();
attr.setFrmID( this.getNo());
attr.setHisEditType(EditType.UnDel);
attr.setKeyOfEn(GERptAttr.AtPara);
attr.setName("参数"); // 单据编号
attr.setMyDataType(DataType.AppString);
attr.setUIContralType(UIContralType.TB);
attr.setLGType(FieldTypeS.Normal);
attr.setUIVisible(false);
attr.setUIIsEnable(false);
attr.setUIIsLine (false);
attr.setMinLen(0);
attr.setMaxLen(4000);
attr.setIdx(-99);
attr.Insert();
}
if (attrs.contains(this.getNo() + "_RDT") == false)
{
MapAttr attr = new MapAttr();
attr.setFrmID( this.getNo());
attr.setHisEditType(EditType.UnDel);
attr.setKeyOfEn("RDT");
attr.setName("创建时间");
attr.setMyDataType(DataType.AppDateTime);
attr.setUIContralType(UIContralType.TB);
attr.setLGType(FieldTypeS.Normal);
attr.setUIVisible(false);
attr.setUIIsEnable(false);
attr.setUIIsLine (false);
attr.setIdx(-97);
attr.Insert();
}
if (attrs.contains(this.getNo() + "_FK_Dept") == false)
{
/* 创建人部门 */
MapAttr attr = new MapAttr();
attr.setFrmID( this.getNo());
attr.setHisEditType(EditType.UnDel);
attr.setKeyOfEn("FK_Dept");
attr.setName("创建人部门");
attr.setMyDataType(DataType.AppString);
attr.setUIContralType(UIContralType.TB);
attr.setLGType(FieldTypeS.Normal);
attr.setUIVisible(false);
attr.setUIIsEnable(false);
attr.setMinLen(0);
attr.setMaxLen(100);
attr.setIdx(-1);
attr.Insert();
}
if (attrs.contains(this.getNo() + "_OrgNo") == false)
{
/* 创建人名称 */
MapAttr attr = new MapAttr();
attr.setFrmID( this.getNo());
attr.setHisEditType(EditType.UnDel);
attr.setKeyOfEn("OrgNo");
attr.setName("创建人所在的组织");
attr.setMyDataType(DataType.AppString);
attr.setUIContralType(UIContralType.TB);
attr.setLGType(FieldTypeS.Normal);
attr.setUIVisible(false);
attr.setUIIsEnable(false);
attr.setMinLen(0);
attr.setMaxLen(100);
attr.setIdx(-1);
attr.Insert();
}
///#endregion 补充上流程字段。
}
}

@ -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,62 @@
package bp.ccbill;
import bp.*;
public enum SearchDataRole
{
/**
*/
ByOnlySelf(0),
/**
*/
ByDept(1),
/**
*/
ByDeptAndSSubLevel(2),
/**
*/
ByStationDept(3),
/**
*/
SearchAll(4);
public static final int SIZE = java.lang.Integer.SIZE;
private int intValue;
private static java.util.HashMap<Integer, SearchDataRole> mappings;
private static java.util.HashMap<Integer, SearchDataRole> getMappings()
{
if (mappings == null)
{
synchronized (SearchDataRole.class)
{
if (mappings == null)
{
mappings = new java.util.HashMap<Integer, SearchDataRole>();
}
}
}
return mappings;
}
private SearchDataRole(int value)
{
intValue = value;
getMappings().put(value, this);
}
public int getValue()
{
return intValue;
}
public static SearchDataRole forValue(int value)
{
return getMappings().get(value);
}
}

@ -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,404 @@
package bp.ccbill;
import bp.da.*;
import bp.sys.*;
import bp.web.*;
import bp.ccbill.template.*;
import bp.ccfast.ccmenu.*;
/**
*/
public class WF_CCBill_API extends bp.difference.handler.DirectoryPageBase
{
///#region 构造方法.
/**
*/
public WF_CCBill_API()
{
}
///#endregion 构造方法.
///#region 常用参数.
/**
*/
public final String getTreeNo()
{
return this.GetRequestVal("TreeNo");
}
///#endregion 常用参数.
///#region 前台的操作 api
/**
@return
*/
public final String CCFrom_GenerFrmListOfCanOption()
{
String sql = "";
String userNo = GetRequestVal("UserNo");
if (DataType.IsNullOrEmpty(userNo) == true)
{
userNo = WebUser.getUserID();
}
String powerSQL = "";
if (bp.difference.SystemConfig.getAppCenterDBType() == DBType.MySQL)
{
powerSQL = "SELECT FrmID," + "(CASE WHEN IsEnableAll=1 THEN true " + "ELSE(CASE WHEN IsEnableUser=1 AND INSTR(IDOfUsers,'," + userNo + ",')>0 THEN true " + "ELSE(CASE WHEN IsEnableStation=1 AND (SELECT COUNT(*) From Port_DeptEmpStation D,Port_Emp E WHERE D.FK_Emp = E.No AND E.No='" + userNo + "' AND INSTR(IDOfStations,D.FK_Station))>0 THEN true " + "ELSE(CASE WHEN IsEnableDept=1 AND (SELECT COUNT(*) From Port_DeptEmp D,Port_Emp E WHERE D.FK_Emp = E.No AND E.No='" + userNo + "' AND INSTR(IDOfDepts,D.FK_Dept))>0 THEN true " + "ELSE false END)" + "END)" + "END)" + "END) AS IsView FROM Frm_CtrlModel WHERE CtrlObj='BtnSearch'";
sql = "SELECT No,Name,EntityType,FrmType,PTable FROM Sys_MapData M, (" + powerSQL + ") AS B WHERE M.No=B.FrmID AND (M.EntityType=1 OR M.EntityType=2) AND B.IsView=1 ORDER BY M.IDX ";
}
else
{
powerSQL = "SELECT FrmID," + "(CASE WHEN IsEnableAll=1 THEN true " + "ELSE(CASE WHEN IsEnableUser=1 AND 1=1 THEN true " + "ELSE(CASE WHEN IsEnableStation=1 AND (SELECT COUNT(*) From Port_DeptEmpStation D,Port_Emp E WHERE D.FK_Emp = E.No AND E.No='" + userNo + "' AND 1=1 THEN true " + "ELSE(CASE WHEN IsEnableDept=1 AND (SELECT COUNT(*) From Port_DeptEmp D,Port_Emp E WHERE D.FK_Emp = E.No AND E.No='" + userNo + "' AND 1=1 THEN true " + "ELSE false END)" + "END)" + "END)" + "END) AS IsView FROM Frm_CtrlModel WHERE CtrlObj='BtnSearch'";
sql = "SELECT No,Name,EntityType,FrmType,PTable FROM Sys_MapData M WHERE (M.EntityType=1 OR M.EntityType=2) ORDER BY M.IDX ";
}
DataTable dt = DBAccess.RunSQLReturnTable(sql);
dt.Columns.get(0).ColumnName = "No";
dt.Columns.get(1).ColumnName = "Name";
dt.Columns.get(2).ColumnName = "EntityType";
dt.Columns.get(3).ColumnName = "FrmType";
dt.Columns.get(4).ColumnName = "PTable";
return bp.tools.Json.ToJson(dt);
}
/**
.
@return urlurl.
*/
public final String CCFrom_NewFrmBillAsSpecBillNo() throws Exception {
String billNo = this.GetRequestVal("BillNo");
String title = this.GetRequestVal("Title");
String paras = this.GetRequestVal("Paras");
if (DataType.IsNullOrEmpty(paras) == true)
{
paras = "";
}
AtPara ap = new AtPara(paras);
GEEntity en = new GEEntity(this.getFrmID());
int i = en.Retrieve("BillNo", billNo);
if (i == 0)
{
long workid = bp.ccbill.Dev2Interface.CreateBlankBillID(this.getFrmID(), WebUser.getNo(), ap.getHisHT(), billNo);
en = new GEEntity(this.getFrmID(), workid);
if (DataType.IsNullOrEmpty(paras) == false)
{
en.Copy(ap.getHisHT());
en.Update();
}
if (DataType.IsNullOrEmpty(title) == false)
{
en.SetValByKey("Title", title);
en.Update();
}
return "url@../../WF/CCBill/MyBill.htm?FrmID=" + this.getFrmID() + "&OID=" + workid;
}
else
{
if (DataType.IsNullOrEmpty(paras) == false)
{
en.Copy(ap.getHisHT());
en.Update();
}
if (DataType.IsNullOrEmpty(title) == false && en.GetValStrByKey("Title").equals(title) == false)
{
en.SetValByKey("Title", title);
en.Update();
}
}
return "url@../../WF/CCBill/MyBill.htm?FrmID=" + this.getFrmID() + "&OID=" + en.getOID();
}
/**
@return
*/
public final String CCFrom_GenerFrmListOfCanOptionBySpecTreeNo()
{
String treeNo = this.GetRequestVal("TreeNo");
return null;
}
/**
@return
*/
public final ToolbarBtns CCFrom_FrmPower() throws Exception {
//获取该表单所有操作按钮的权限
ToolbarBtns btns = new ToolbarBtns();
btns.Retrieve(ToolbarBtnAttr.FrmID, this.getFrmID(), "Idx");
boolean isReadonly = this.GetRequestValBoolen("IsReadonly");
if (btns.size() == 0)
{
MapData md = new MapData(this.getFrmID());
//表单的工具栏权限
ToolbarBtn btn = new ToolbarBtn();
if (md.getEntityType() != EntityType.DBList && isReadonly == false)
{
btn.setFrmID(md.getNo());
btn.setBtnID("New");
btn.setBtnLab("新建");
btn.setMyPK(btn.getFrmID() + "_" + btn.getBtnID());
btn.SetValByKey("Idx", 0);
btn.Insert();
btn = new ToolbarBtn();
btn.setFrmID(md.getNo());
btn.setBtnID("Save");
btn.setBtnLab("保存");
btn.setMyPK(btn.getFrmID() + "_" + btn.getBtnID());
btn.SetValByKey("Idx", 1);
btn.Insert();
if (md.getEntityType() == EntityType.FrmBill)
{
//单据增加提交的功能
btn = new ToolbarBtn();
btn.setFrmID(md.getNo());
btn.setBtnID("Submit");
btn.setBtnLab("提交");
btn.setMyPK(btn.getFrmID() + "_" + btn.getBtnID());
btn.SetValByKey("Idx", 1);
btn.Insert();
}
btn = new ToolbarBtn();
btn.setFrmID(md.getNo());
btn.setBtnID("Delete");
btn.setBtnLab("删除");
btn.setMyPK(btn.getFrmID() + "_" + btn.getBtnID());
btn.SetValByKey("Idx", 2);
btn.Insert();
}
btn = new ToolbarBtn();
btn.setFrmID(md.getNo());
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(md.getNo());
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(md.getNo());
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(md.getNo());
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(md.getNo());
btn.setBtnID("ExpZip");
btn.setBtnLab("导出Zip包");
btn.setMyPK(btn.getFrmID() + "_" + btn.getBtnID());
btn.setItIsEnable(false);
btn.SetValByKey("Idx", 7);
btn.Insert();
btns.Retrieve(ToolbarBtnAttr.FrmID, this.getFrmID(), ToolbarBtnAttr.IsEnable, 1, "Idx");
return btns;
}
//获取针对按钮设置的操作权限
PowerCenters pcs = new PowerCenters();
pcs.Retrieve(PowerCenterAttr.CtrlObj, this.getFrmID(), PowerCenterAttr.CtrlGroup, "FrmBtn", null);
String mydepts = "" + WebUser.getDeptNo() + ","; //我的部门.
String mystas = ""; //我的角色.
DataTable mydeptsDT = DBAccess.RunSQLReturnTable("SELECT FK_Dept,FK_Station FROM Port_DeptEmpStation WHERE FK_Emp='" + WebUser.getUserID() + "'");
for (DataRow dr : mydeptsDT.Rows)
{
mydepts += dr.getValue(0).toString() + ",";
mystas += dr.getValue(1).toString() + ",";
}
ToolbarBtns newBtns = new ToolbarBtns();
String empIds = "";
for (ToolbarBtn btn : btns.ToJavaList())
{
if (btn.getItIsEnable() == false)
{
continue;
}
if (isReadonly == true && (btn.getBtnID().equals("New") || btn.getBtnID().equals("Save") || btn.getBtnID().equals("Submit") || btn.getBtnID().equals("Delete")))
{
continue;
}
//找到关于系统的控制权限集合.
bp.en.Entities tempVar = pcs.GetEntitiesByKey(PowerCenterAttr.CtrlPKVal, btn.getMyPK());
PowerCenters mypcs = tempVar instanceof PowerCenters ? (PowerCenters)tempVar : null;
//如果没有权限控制的描述,就默认有权限.
if (mypcs == null)
{
newBtns.AddEntity(btn);
continue;
}
//控制遍历权限.
for (PowerCenter pc : mypcs.ToJavaList())
{
if (pc.getCtrlModel().equals("Anyone") == true)
{
newBtns.AddEntity(btn);
break;
}
if (pc.getCtrlModel().equals("Adminer") == true && WebUser.getNo().equals("admin") == true)
{
newBtns.AddEntity(btn);
break;
}
if (pc.getCtrlModel().equals("AdminerAndAdmin2") == true && WebUser.getIsAdmin() == true)
{
newBtns.AddEntity(btn);
break;
}
empIds = "," + pc.getIDs() + ",";
if (pc.getCtrlModel().equals("Emps") == true && empIds.contains("," + WebUser.getNo() + ",") == true)
{
newBtns.AddEntity(btn);
break;
}
//是否包含部门?
if (pc.getCtrlModel().equals("Depts") == true && DataType.IsHaveIt(pc.getIDs(), mydepts) == true)
{
newBtns.AddEntity(btn);
break;
}
//是否包含角色?
if (pc.getCtrlModel().equals("Stations") == true && DataType.IsHaveIt(pc.getIDs(), mystas) == true)
{
newBtns.AddEntity(btn);
break;
}
//SQL
if (pc.getCtrlModel().equals("SQL") == true)
{
String sql = bp.wf.Glo.DealExp(pc.getIDs(), null, "");
if (DBAccess.RunSQLReturnValFloat(sql) > 0)
{
newBtns.AddEntity(btn);
}
break;
}
}
}
return newBtns;
}
/**
@return
*/
public final String CCFrom_ToolBar_Init() throws Exception {
//获取实体单据的权限
ToolbarBtns btns = CCFrom_FrmPower();
return bp.tools.Json.ToJson(btns.ToDataTableField("Frm_ToolbarBtn"));
}
/**
BillNo
@return
*/
public final String CCFrom_DeleteFrmEntityByBillNo() throws Exception {
GEEntity en = new GEEntity(this.getFrmID());
int i = en.Retrieve("BillNo", this.GetRequestVal("BillNo"));
if (i == 0)
{
return "err@单据编号为" + this.GetRequestVal("BillNo") + "的数据不存在.";
}
en.Delete();
return "删除成功";
}
/**
OID
@return
*/
public final String CCFrom_DeleteFrmEntityByOID() throws Exception {
GEEntity en = new GEEntity(this.getFrmID(), this.getOID());
en.Delete();
return "删除成功";
}
///#endregion 前台的操作 api.
///#region 后台操作api.
/**
@return
*/
public final String CCBillAdmin_Admin_GenerAllBills()
{
String sql = "";
sql = "SELECT No,Name,EntityType,FrmType,PTable FROM Sys_MapData WHERE (EntityType=1 OR EntityType=2) ORDER BY IDX ";
DataTable dt = DBAccess.RunSQLReturnTable(sql);
dt.Columns.get(0).ColumnName = "No";
dt.Columns.get(1).ColumnName = "Name";
dt.Columns.get(2).ColumnName = "EntityType";
dt.Columns.get(3).ColumnName = "FrmType";
dt.Columns.get(4).ColumnName = "PTable";
return bp.tools.Json.ToJson(dt);
}
///#endregion
}

@ -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,465 @@
package bp.ccbill;
import bp.ccbill.template.Method;
import bp.da.*;
import bp.sys.*;
import bp.en.*;
import bp.wf.*;
import bp.wf.httphandler.*;
import bp.ccbill.template.*;
/**
*/
public class WF_CCBill_Admin_Method 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;
}
public final String getName()
{
String str = this.GetRequestVal("Name");
return str;
}
///#endregion 属性.
public final String Bill_Save() throws Exception {
String fromFrmID = this.GetRequestVal("DictFrmID");
String toFrmID = this.GetRequestVal("BillFrmID");
//这里仅仅复制主表的字段.
MapAttrs attrsFrom = new MapAttrs();
attrsFrom.Retrieve(MapAttrAttr.FK_MapData, fromFrmID, null);
for (MapAttr attr : attrsFrom.ToJavaList())
{
if (attr.IsExit(MapAttrAttr.FK_MapData, toFrmID, MapAttrAttr.KeyOfEn, attr.getKeyOfEn()) == true)
{
continue;
}
attr.setFrmID( toFrmID);
attr.setMyPK(attr.getFrmID() + "_" + attr.getKeyOfEn());
attr.Insert();
}
return "复制成功.";
////如果是发起流程的方法,就要表单的字段复制到,流程的表单上去.
//BP.WF.HttpHandler.WF_Admin_FoolFormDesigner_ImpExp handlerFrm = new WF.HttpHandler.WF_Admin_FoolFormDesigner_ImpExp();
//// handler.AddPara
//handlerFrm.Imp_CopyFrm(toFrmID, fromFrmID);
//return "复制成功.";
}
/**
*/
public WF_CCBill_Admin_Method()
{
}
/**
@return
*/
public final String FlowEtc_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.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
handlerFrm.Imp_CopyFrm("ND" + Integer.parseInt(flowNo + "01"), this.getFrmID());
///#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.FlowEtc); //类型.
en.setMark("Search"); //发起流程.
en.setTag1(flowNo); //标记为空.
en.setMethodID(flowNo); // 就是流程编号.
en.setFlowNo(flowNo);
en.SetPara("EnName", "TS.CCBill.MethodFlowEtc"); //新增.
en.Insert();
// //创建查询菜单.放入到与该实体平行的位置.
// BP.CCFast.CCMenu.Menu menu = new BP.CCFast.CCMenu.Menu();
// menu.ModuleNo = this.ModuleNo; //隶属与实体一个模块.
// menu.setName(this.Name;
// menu.setIdx(0;
//// menu.MenuModel = "FlowEtc"; //
// menu.MenuModel = MethodModelClass.FlowEtc; //其他类型的业务流程..
// menu.Mark = "Search"; //流程查询.
// menu.setTag1(flowNo; //流程编号.
// menu.setNo(this.getFrmID() + "_" + flowNo;
// menu.Icon = "icon-paper-plane";
// menu.Insert();
//返回方法编号。
return en.getNo();
//// 第4步: 创建实体分组的方法.
//CrateFlowMenu_4_GroupMethod(MethodModelClass.FlowEtc, flowNo);
////创建流程目录与流程菜单.
//CrateFlow_5_Module(MethodModelClass.FlowEtc, flowNo);
//return this.getFrmID() + "_" + flowNo; //返回的方法ID;
}
/**
@return
*/
public final String FlowBaseData_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();
//更新开始节点.
Node nd = new Node(Integer.parseInt(flowNo + "01"));
nd.setName(this.getName());
nd.Update();
///#endregion 创建一个流程.
///#region 第2步 把表单导入到流程上去.
//如果是发起流程的方法,就要表单的字段复制到,流程的表单上去.
WF_Admin_FoolFormDesigner_ImpExp handlerFrm = new WF_Admin_FoolFormDesigner_ImpExp();
handlerFrm.Imp_CopyFrm("ND" + Integer.parseInt(flowNo + "01"), this.getFrmID());
///#endregion 把表单导入到流程上去.
///#region 第3步 处理流程的业务表单 - 字段增加一个影子字段.
//处理字段数据.增加一个列.
String frmID = "ND" + Integer.parseInt(fl.getNo() + "01");
MapData md = new MapData(frmID);
if (md.getTableCol() != 0)
{
md.setTableCol( 0); //设置为4列.
md.Update();
}
//查询出来数据.
MapAttrs mattrs = new MapAttrs(md.getNo());
GroupFields gfs = new GroupFields(md.getNo());
//遍历分组.
for (GroupField gs : gfs.ToJavaList())
{
//遍历字段.
int idx = 0;
for (MapAttr mapAttr : mattrs.ToJavaList())
{
if (gs.getOID() != mapAttr.getGroupID())
{
continue;
}
//是否包含,系统字段?
if (bp.wf.Glo.getFlowFields().contains("," + mapAttr.getKeyOfEn() + ",") == true)
{
continue;
}
//其他类型的控件,就排除.
if (mapAttr.getUIContralType().getValue() >= 5)
{
continue;
}
if (mapAttr.getUIVisible() == false)
{
continue;
}
idx++;
idx++;
mapAttr.setIdx(idx);
mapAttr.Update();
// DBAccess.RunSQL("UP")
//复制一个影子字段.
mapAttr.setKeyOfEn("bak" + mapAttr.getKeyOfEn());
mapAttr.setName("(原)" + mapAttr.getName());
mapAttr.setMyPK(mapAttr.getFrmID() + "_" + mapAttr.getKeyOfEn());
mapAttr.setUIIsEnable(false);
mapAttr.setIdx(idx - 1);
mapAttr.DirectInsert();
}
}
///#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.FlowBaseData); //类型.
en.setMark("Search"); //发起流程.
en.setTag1(flowNo); //标记为空.
en.setMethodID(flowNo); // 就是流程编号.
en.setFlowNo(flowNo);
en.SetPara("EnName", "TS.CCBill.MethodFlowBaseData");
en.Insert();
////创建查询菜单.放入到与该实体平行的位置.
//BP.CCFast.CCMenu.Menu menu = new BP.CCFast.CCMenu.Menu();
//menu.ModuleNo = this.ModuleNo; //隶属与实体一个模块.
//menu.setName(this.Name;
//menu.setIdx(0;
//menu.MenuModel = "FlowBaseData"; //修改基础数据流程.
//menu.Mark = "Search"; //流程查询.
//menu.setTag1(flowNo; //流程编号.
//menu.setNo(this.getFrmID() + "_" + flowNo;
//menu.Icon = "icon-paper-plane";
//menu.Insert();
//返回方法编号。
return en.getNo();
// 第4步: 创建实体分组的方法.
// CrateFlowMenu_4_GroupMethod(MethodModelClass.FlowBaseData, flowNo);
}
/**
.
@param menuModel
@param flowNo
*/
private void CrateFlowMenu_4_GroupMethod(String menuModel, String flowNo) throws Exception {
///#region 第4步: 创建实体分组/方法.
GroupMethod gm = new GroupMethod();
gm.setName(this.getName());
gm.setFrmID(this.getFrmID());
gm.setMethodType(menuModel); //类型.
gm.setMethodID(flowNo);
gm.Insert();
//创建 - 方法
Method en = new Method();
en.setFrmID(this.getFrmID());
en.setNo(en.getFrmID() + "_" + flowNo);
en.setName(this.getName());
en.setGroupID(gm.getNo()); //分组的编号.
en.setFlowNo(flowNo);
en.setIcon("icon-paper-plane");
en.setRefMethodType(RefMethodType.LinkeWinOpen); // = 1;
en.setMethodModel(menuModel); //类型.
en.setMark("StartFlow"); //发起流程.
en.setTag1(flowNo); //标记为空.
en.setMethodID(flowNo); // 就是流程编号.
en.setFlowNo(flowNo);
en.Insert();
// 增加内置流程方法:发起查询.
en.setName("流程查询");
en.setIcon("icon-grid");
en.setMethodModel(menuModel); //类型.
en.setMark("Search"); //流程查询.
en.setTag1(flowNo); //标记为空.
en.setMethodID(flowNo); // 就是流程编号.
en.setFlowNo(flowNo);
en.setNo(DBAccess.GenerGUID(0, null, null));
en.Insert();
//// 增加内置流程方法:流程分析.
//en.setName("流程分析";
//en.Icon = "icon-chart";
//en.MethodModel = menuModel; //类型.
//en.Mark = "Group"; //流程分析.
//en.setTag1(flowNo; //标记为空.
//en.MethodID = flowNo; // 就是流程编号.
//en.setFlowNo(flowNo);
//en.setNo(DBAccess.GenerGUID();
//en.Insert();
///#endregion 第4步 创建方法.
}
/**
@param menuModel
@param flowNo
*/
private void CrateFlow_5_Module(String menuModel, String flowNo) throws Exception {
///#region 第5步: 创建菜单目录与菜单-分组
//创建该模块下的 菜单:分组.
bp.ccfast.ccmenu.Module mmodule = new bp.ccfast.ccmenu.Module();
mmodule.setName(this.getName());
mmodule.setSystemNo(this.GetRequestVal("SortNo")); // md.getFormTreeNo(); //设置类别.
mmodule.setIdx(100);
mmodule.Insert();
//创建菜单.
bp.ccfast.ccmenu.Menu menu = new bp.ccfast.ccmenu.Menu();
//流程查询.
menu = new bp.ccfast.ccmenu.Menu();
menu.setModuleNo(mmodule.getNo());
menu.setName("发起流程");
menu.setIdx(0);
menu.setMenuModel(menuModel); //模式.
menu.setMark("StartFlow"); //发起流程.
menu.setTag1(flowNo); //流程编号.
menu.setUrlExt("../MyFlow.htm?FK_Flow=" + flowNo);
menu.setNo(this.getFrmID() + "_" + flowNo);
menu.setIcon("icon-paper-plane");
menu.Insert();
//待办.
menu = new bp.ccfast.ccmenu.Menu();
menu.setModuleNo(mmodule.getNo());
menu.setName("待办");
menu.setMenuModel(menuModel);
menu.setMark("Todolist");
menu.setTag1(flowNo);
menu.setUrlExt("../Todolist.htm?FK_Flow=" + flowNo);
menu.setIcon("icon-bell");
menu.setIdx(1);
menu.Insert();
//未完成.
menu = new bp.ccfast.ccmenu.Menu();
menu.setMenuModel(menuModel); //模式.
menu.setModuleNo(mmodule.getNo());
menu.setName("未完成(在途)");
menu.setMark("Runing"); //未完成.
menu.setTag1(flowNo); //流程编号.
menu.setIdx(2);
menu.setUrlExt("../Runing.htm?FK_Flow=" + flowNo);
menu.setIcon("icon-clock");
menu.Insert();
//流程查询.
menu = new bp.ccfast.ccmenu.Menu();
menu.setModuleNo(mmodule.getNo());
menu.setName("流程查询");
menu.setMenuModel(menuModel); //模式.
menu.setMark("FlowSearch"); //流程查询.
menu.setTag1(flowNo); //流程编号.
menu.setUrlExt("/App/OneFlow/RptSearch.htm?FK_Flow=" + flowNo);
menu.setIdx(3);
menu.setIcon("icon-magnifier");
menu.Insert();
//流程查询.
menu = new bp.ccfast.ccmenu.Menu();
menu.setMenuModel(menuModel); //模式.
menu.setModuleNo(mmodule.getNo());
menu.setName("流程分析");
menu.setMenuModel(menuModel); //模式.
menu.setMark("FlowGroup"); //流程查询.
menu.setTag1(flowNo); //流程编号.
menu.setIdx(4);
menu.setUrlExt("/App/OneFlow/RptGroup.htm?FK_Flow=" + flowNo);
menu.setIcon("icon-chart");
menu.Insert();
///#endregion 第5步 创建目录.
}
}

@ -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,207 @@
package bp.ccbill;
import bp.da.*;
import bp.sys.*;
import bp.en.*; import bp.en.Map;
import bp.tools.DateUtils;
import bp.wf.*;
import bp.wf.httphandler.*;
import bp.*;
import java.util.*;
import java.time.*;
/**
*/
public class WF_CCBill_Opt extends bp.difference.handler.DirectoryPageBase
{
///#region 构造方法.
/**
*/
public WF_CCBill_Opt()
{
}
///#endregion 构造方法.
///#region 关联单据.
/**
.
@return
*/
public final String RefBill_Done() throws Exception {
try
{
String frmID = this.GetRequestVal("FrmID");
long workID = this.GetRequestValInt64("WorkID");
GERpt rpt = new GERpt(frmID, workID);
String pFrmID = this.GetRequestVal("PFrmID");
long pWorkID = this.GetRequestValInt64("PWorkID");
//把数据copy到当前的子表单里.
GERpt rptP = new GERpt(pFrmID, pWorkID);
rpt.Copy(rptP);
rpt.setPWorkID(pWorkID);
rpt.SetValByKey("PFrmID", pFrmID);
rpt.Update();
//更新控制表,设置父子关系.
GenerBill gbill = new GenerBill(workID);
gbill.setPFrmID(pFrmID);
gbill.setPWorkID(pWorkID);
gbill.Update();
return "执行成功";
}
catch (RuntimeException ex)
{
return "err@" + ex.getMessage();
}
}
/**
@return
*/
public final String RefBill_Init() throws Exception {
DataSet ds = new DataSet();
///#region 查询显示的列
MapAttrs mattrs = new MapAttrs();
mattrs.Retrieve(MapAttrAttr.FK_MapData, this.getFrmID(), MapAttrAttr.Idx);
DataRow row = null;
DataTable dt = new DataTable("Attrs");
dt.Columns.Add("KeyOfEn", String.class);
dt.Columns.Add("Name", String.class);
dt.Columns.Add("Width", Integer.class);
dt.Columns.Add("UIContralType", Integer.class);
dt.Columns.Add("LGType", Integer.class);
//设置标题、单据号位于开始位置
for (MapAttr attr : mattrs.ToJavaList())
{
String searchVisable = attr.getatPara().GetValStrByKey("SearchVisable");
if (Objects.equals(searchVisable, "0"))
{
continue;
}
if (attr.getUIVisible() == false)
{
continue;
}
row = dt.NewRow();
row.setValue("KeyOfEn", attr.getKeyOfEn());
row.setValue("Name", attr.getName());
row.setValue("Width", attr.getUIWidthInt());
row.setValue("UIContralType", attr.getUIContralType().getValue());
row.setValue("LGType", attr.getLGType().getValue());
dt.Rows.add(row);
}
ds.Tables.add(dt);
///#endregion 查询显示的列
///#region 查询语句
MapData md = new MapData(this.getFrmID());
GEEntitys rpts = new GEEntitys(this.getFrmID());
Attrs attrs = rpts.getNewEntity().getEnMap().getAttrs();
QueryObject qo = new QueryObject(rpts);
///#region 关键字字段.
String keyWord = this.GetRequestVal("SearchKey");
if (DataType.IsNullOrEmpty(keyWord) == false && keyWord.length() >= 1)
{
qo.addLeftBracket();
if (Objects.equals(bp.difference.SystemConfig.getAppCenterDBVarStr(), "@") || Objects.equals(bp.difference.SystemConfig.getAppCenterDBVarStr(), "?"))
{
qo.AddWhere("Title", " LIKE ", bp.difference.SystemConfig.getAppCenterDBType() == DBType.MySQL ? (" CONCAT('%'," + bp.difference.SystemConfig.getAppCenterDBVarStr() + "SKey,'%')") : (" '%'+" + bp.difference.SystemConfig.getAppCenterDBVarStr() + "SKey+'%'"));
}
else
{
qo.AddWhere("Title", " LIKE ", " '%'||" + bp.difference.SystemConfig.getAppCenterDBVarStr() + "SKey||'%'");
}
qo.addOr();
if (Objects.equals(bp.difference.SystemConfig.getAppCenterDBVarStr(), "@") || Objects.equals(bp.difference.SystemConfig.getAppCenterDBVarStr(), "?"))
{
qo.AddWhere("BillNo", " LIKE ", bp.difference.SystemConfig.getAppCenterDBType() == DBType.MySQL ? ("CONCAT('%'," + bp.difference.SystemConfig.getAppCenterDBVarStr() + "SKey,'%')") : ("'%'+" + bp.difference.SystemConfig.getAppCenterDBVarStr() + "SKey+'%'"));
}
else
{
qo.AddWhere("BillNo", " LIKE ", "'%'||" + bp.difference.SystemConfig.getAppCenterDBVarStr() + "SKey||'%'");
}
qo.getMyParas().Add("SKey", keyWord, false);
qo.addRightBracket();
}
else
{
qo.AddHD();
}
///#endregion 关键字段查询
///#region 时间段的查询
String dtFrom = this.GetRequestVal("DTFrom");
String dtTo = this.GetRequestVal("DTTo");
if (DataType.IsNullOrEmpty(dtFrom) == false)
{
//取前一天的2400
if (dtFrom.trim().length() == 10) //2017-09-30
{
dtFrom += " 00:00:00";
}
if (dtFrom.trim().length() == 16) //2017-09-30 00:00
{
dtFrom += ":00";
}
dtFrom = DateUtils.addDay(DateUtils.parse(dtFrom, "yyyy-MM-dd"), -1) + " 24:00";
if (dtTo.trim().length() < 11 || dtTo.trim().indexOf(' ') == -1)
{
dtTo += " 24:00";
}
qo.addAnd();
qo.addLeftBracket();
qo.setSQL( " RDT>= '" + dtFrom + "'");
qo.addAnd();
qo.setSQL("RDT <= '" + dtTo + "'");
qo.addRightBracket();
}
///#endregion 时间段的查询
qo.DoQuery("OID", this.getPageSize(), this.getPageIdx());
///#endregion
DataTable mydt = rpts.ToDataTableField("dt");
mydt.setTableName("DT");
ds.Tables.add(mydt); //把数据加入里面.
return bp.tools.Json.ToJson(ds);
}
///#endregion 关联单据.
}

@ -0,0 +1,424 @@
package bp.ccbill;
import bp.da.*;
import bp.difference.SystemConfig;
import bp.difference.handler.CommonFileUtils;
import bp.sys.*;
import bp.en.*;
import bp.tools.DateUtils;
import bp.wf.httphandler.*;
import bp.wf.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import javax.servlet.http.HttpServletRequest;
import java.util.*;
import java.io.*;
import static bp.sys.Glo.getRequest;
/**
*
*/
public class WF_CCBill_OptComponents extends bp.difference.handler.DirectoryPageBase {
///#region 构造方法.
/**
*
*/
public WF_CCBill_OptComponents() {
}
///#endregion 构造方法.
///#region 关联单据.
/**
* .
*
* @return
*/
public final String RefBill_Done() throws Exception {
try {
String frmID = this.GetRequestVal("FrmID");
long workID = this.GetRequestValInt64("WorkID");
GERpt rpt = new GERpt(frmID, workID);
String pFrmID = this.GetRequestVal("PFrmID");
long pWorkID = this.GetRequestValInt64("PWorkID");
//把数据copy到当前的子表单里.
GERpt rptP = new GERpt(pFrmID, pWorkID);
rpt.Copy(rptP);
rpt.setPWorkID(pWorkID);
rpt.SetValByKey("PFrmID", pFrmID);
rpt.Update();
//更新控制表,设置父子关系.
GenerBill gbill = new GenerBill(workID);
gbill.setPFrmID(pFrmID);
gbill.setPWorkID(pWorkID);
gbill.Update();
return "执行成功";
} catch (RuntimeException ex) {
return "err@" + ex.getMessage();
}
}
/**
*
*
* @return
*/
public final String RefBill_Init() throws Exception {
DataSet ds = new DataSet();
///#region 查询显示的列
MapAttrs mattrs = new MapAttrs();
mattrs.Retrieve(MapAttrAttr.FK_MapData, this.getFrmID(), MapAttrAttr.Idx);
DataRow row = null;
DataTable dt = new DataTable("Attrs");
dt.Columns.Add("KeyOfEn", String.class);
dt.Columns.Add("Name", String.class);
dt.Columns.Add("Width", Integer.class);
dt.Columns.Add("UIContralType", Integer.class);
dt.Columns.Add("LGType", Integer.class);
//设置标题、单据号位于开始位置
for (MapAttr attr : mattrs.ToJavaList()) {
String searchVisable = attr.getatPara().GetValStrByKey("SearchVisable");
if (Objects.equals(searchVisable, "0")) {
continue;
}
if (attr.getUIVisible() == false) {
continue;
}
row = dt.NewRow();
row.setValue("KeyOfEn", attr.getKeyOfEn());
row.setValue("Name", attr.getName());
row.setValue("Width", attr.getUIWidthInt());
row.setValue("UIContralType", attr.getUIContralType().getValue());
row.setValue("LGType", attr.getLGType().getValue());
dt.Rows.add(row);
}
ds.Tables.add(dt);
///#endregion 查询显示的列
///#region 查询语句
MapData md = new MapData(this.getFrmID());
GEEntitys rpts = new GEEntitys(this.getFrmID());
Attrs attrs = rpts.getNewEntity().getEnMap().getAttrs();
QueryObject qo = new QueryObject(rpts);
///#region 关键字字段.
String keyWord = this.GetRequestVal("SearchKey");
if (DataType.IsNullOrEmpty(keyWord) == false && keyWord.length() >= 1) {
qo.addLeftBracket();
if (Objects.equals(bp.difference.SystemConfig.getAppCenterDBVarStr(), "@") || Objects.equals(bp.difference.SystemConfig.getAppCenterDBVarStr(), "?")) {
qo.AddWhere("Title", " LIKE ", bp.difference.SystemConfig.getAppCenterDBType() == DBType.MySQL ? (" CONCAT('%'," + bp.difference.SystemConfig.getAppCenterDBVarStr() + "SKey,'%')") : (" '%'+" + bp.difference.SystemConfig.getAppCenterDBVarStr() + "SKey+'%'"));
} else {
qo.AddWhere("Title", " LIKE ", " '%'||" + bp.difference.SystemConfig.getAppCenterDBVarStr() + "SKey||'%'");
}
qo.addOr();
if (Objects.equals(bp.difference.SystemConfig.getAppCenterDBVarStr(), "@") || Objects.equals(bp.difference.SystemConfig.getAppCenterDBVarStr(), "?")) {
qo.AddWhere("BillNo", " LIKE ", bp.difference.SystemConfig.getAppCenterDBType() == DBType.MySQL ? ("CONCAT('%'," + bp.difference.SystemConfig.getAppCenterDBVarStr() + "SKey,'%')") : ("'%'+" + bp.difference.SystemConfig.getAppCenterDBVarStr() + "SKey+'%'"));
} else {
qo.AddWhere("BillNo", " LIKE ", "'%'||" + bp.difference.SystemConfig.getAppCenterDBVarStr() + "SKey||'%'");
}
qo.getMyParas().Add("SKey", keyWord, false);
qo.addRightBracket();
} else {
qo.AddHD();
}
///#endregion 关键字段查询
///#region 时间段的查询
String dtFrom = this.GetRequestVal("DTFrom");
String dtTo = this.GetRequestVal("DTTo");
if (DataType.IsNullOrEmpty(dtFrom) == false) {
//取前一天的2400
if (dtFrom.trim().length() == 10) //2017-09-30
{
dtFrom += " 00:00:00";
}
if (dtFrom.trim().length() == 16) //2017-09-30 00:00
{
dtFrom += ":00";
}
dtFrom = DateUtils.addDay(DateUtils.parse(dtFrom, "yyyy-MM-dd"), -1) + " 24:00";
if (dtTo.trim().length() < 11 || dtTo.trim().indexOf(' ') == -1) {
dtTo += " 24:00";
}
qo.addAnd();
qo.addLeftBracket();
qo.setSQL(" RDT>= '" + dtFrom + "'");
qo.addAnd();
qo.setSQL("RDT <= '" + dtTo + "'");
qo.addRightBracket();
}
///#endregion 时间段的查询
qo.DoQuery("OID", this.getPageSize(), this.getPageIdx());
///#endregion
DataTable mydt = rpts.ToDataTableField("dt");
mydt.TableName = "DT";
ds.Tables.add(mydt); //把数据加入里面.
return bp.tools.Json.ToJson(ds);
}
///#endregion 关联单据.
///#region 数据版本.
/**
*
*
* @return
*/
public final String DataVer_Init() {
return null;
}
public final String DataVer_AppFieldData() throws Exception {
try {
int verNum = this.GetRequestValInt("VerNum");
EnVer en = new EnVer();
int i = en.Retrieve(EnVerAttr.EnVer, verNum, EnVerAttr.FrmID, this.getFrmID(), EnVerDtlAttr.EnPKValue, this.getWorkID());
if (i == 0) {
return "err@版本号输入错误";
}
String keyOfEn = this.GetRequestVal("KeyOfEn");
EnVerDtl dtl = new EnVerDtl();
i = dtl.Retrieve(EnVerDtlAttr.RefPK, en.getMyPK(), EnVerDtlAttr.AttrKey, keyOfEn);
if (i == 0) {
return "err@该版本下没有查询到字段[" + keyOfEn + "]的值.";
}
GEEntity ge = new GEEntity(this.getFrmID(), this.getWorkID());
ge.SetValByKey(keyOfEn, dtl.getMyVal());
ge.Update();
String msg = "字段:[" + dtl.getAttrKey() + "],已经修改为:" + dtl.getMyVal();
bp.ccbill.Dev2Interface.Dict_AddTrack(this.getFrmID(), String.valueOf(this.getWorkID()), FrmActionType.DataVerReback, msg);
return msg;
} catch (RuntimeException ex) {
return "err@" + ex.getMessage();
}
}
/**
*
*
* @return
*/
public final String DataVer_Reback() throws Exception {
EnVerDtls dtls = new EnVerDtls();
dtls.Retrieve(EnVerDtlAttr.RefPK, this.getMyPK(), null);
GEEntity ge = new GEEntity(this.getFrmID(), this.getWorkID());
for (EnVerDtl item : dtls.ToJavaList()) {
if (item.getLGType() == 0) {
ge.SetValByKey(item.getAttrKey(), item.getMyVal());
continue;
}
//外键枚举存储的格式为 [0][女] [01][山东]
String val = item.getMyVal().substring(1, item.getMyVal().indexOf(']'));
ge.SetValByKey(item.getAttrKey(), val);
}
ge.Update();
// BP.CCBill.Dev2Interface.MyEntityTree_Delete
bp.ccbill.Dev2Interface.Dict_AddTrack(this.getFrmID(), String.valueOf(this.getWorkID()), FrmActionType.DataVerReback, "数据回滚");
return "已经成功还原...";
}
public final String DataVer_NewVer() throws Exception {
GEEntity en = new GEEntity(this.getFrmID(), this.getWorkID());
EnVer.NewVer(en);
bp.ccbill.Dev2Interface.Dict_AddTrack(this.getFrmID(), String.valueOf(this.getWorkID()), FrmActionType.DataVerReback, "创建数据版本.");
return "创建成功.";
////创建实体.
//EnVer ev = new EnVer();
//ev.setMyPK(DBAccess.GenerGUID());
//ev.setRecNo(WebUser.getNo();
//ev.RecName = WebUser.getName();
//ev.RDT = DataType.getCurrentDateTime()CN;
//ev.FrmID = this.FrmID;
//ev.EnPKValue = this.WorkID.ToString();
//ev.MyNote = this.GetRequestVal("MyNote");
//MapData md = new MapData(this.FrmID);
//ev.setName(md.Name;
//// 获得最大的版本号.
//int maxVer = DBAccess.RunSQLReturnValInt("SELECT MAX(EnVer) as Num FROM Sys_EnVer WHERE FrmID='" + this.getFrmID() + "' AND EnPKValue='" + this.WorkID + "'", 0);
//ev.Ver = maxVer + 1; //设置版本号.
//ev.Insert(); //执行插入.
////创建变更数据.
//EnVerDtl dtl = new EnVerDtl();
////不需要存储的字段.
//String sysFiels = ",AtPara,OID,WorkID,WFState,BillNo,Title,RDT,CDT,OrgNo,Starter,StarterName,BillState,FK_Dept,";
//MapAttrs mattrs = new MapAttrs(this.FrmID);
//foreach (MapAttr attr in mattrs)
//{
// //如果是非数据控件.
// if ((int)attr.UIContralType >= 4)
// continue;
// if (sysFiels.contains("," + attr.getKeyOfEn() + ",") == true)
// continue;
// dtl.setMyPK(DBAccess.GenerGUID());
// dtl.setRefPK(ev.MyPK; //设置关联主键.
// dtl.getFrmID() = ev.FrmID;
// dtl.EnPKValue = this.WorkID.ToString(); //设置为主键.
// dtl.AttrKey = attr.getKeyOfEn();
// dtl.AttrName = attr.Name;
// //逻辑类型.
// dtl.setLGType((int)attr.LGType;
// //if (attr.getLGType() == FieldType.Enum)
// // dtl.setLGType(1;
// //if (attr.getMyFieldType() == FieldType.FK)
// // dtl.setLGType(2;
// //设置外键.
// dtl.BindKey = attr.getUIBindKey();
// if (attr.getLGType() == FieldTypeS.Normal)
// {
// //设置值.
// dtl.MyVal = en.GetValByKey(attr.getKeyOfEn()).ToString();
// }
// else
// {
// //设置值.
// dtl.MyVal = "[" + en.GetValByKey(attr.getKeyOfEn()).ToString() + "][" + en.GetValRefTextByKey(attr.getKeyOfEn()) + "]";
// }
// dtl.Insert();
//}
//BP.CCBill.Dev2Interface.Dict_AddTrack(this.FrmID, this.WorkID.ToString(), FrmActionType.DataVerReback, "创建数据版本.");
//return "版本创建成功.";
}
///#endregion 数据版本.
///#region 二维码.
/**
*
*
* @return
*/
public final String QRCode_Init() throws Exception {
String workIDStr = this.GetRequestVal("WorkID");
String url = SystemConfig.getHostURL()+ "/WF/CCBill/OptComponents/QRCode.htm?DoType=MyDict&WorkID=" + workIDStr + "&FrmID=" + this.getFrmID() + "&MethodNo=" + this.GetRequestVal("MethodNo");
bp.tools.QrCodeUtil.createQrCode(url,SystemConfig.getPathOfTemp(),workIDStr+".png","png");
//返回url.
return url;
}
/**
*
*
* @return
*/
public final String QRCodeScan_Init() {
String doType = this.getDoType();
String url = "";
url = "/CCMobile/CCBill/MyDict.htm?WorkID=" + this.getWorkID() + "&FrmID=" + this.getFrmID() + "&MethodNo=" + this.GetRequestVal("MethodNo") + "&IsReadonly=" + GetRequestValInt("IsReadonly");
//返回url.
return url;
}
///#endregion 二维码.
///#region 评论回复附件上传
public final String FrmBBs_UploadFile() throws Exception {
HttpServletRequest request = getRequest();
String contentType = request.getContentType();
if (contentType == null || contentType.indexOf("multipart/form-data") == -1)
return "err@附件上传页面Form表单类型设置错误";
MultipartHttpServletRequest mrequest = CommonFileUtils.getMultipartHttpServletRequest(request);
if(mrequest.getFileMap().size()==0)
return "err@获取附件信息有误。";
//上传附件
MultipartFile file = mrequest.getFile("file");
String filepath = bp.difference.SystemConfig.getPathOfDataUser() + "UploadFile" + File.separator + "FrmBBS"+ File.separator + DataType.getCurrentYearMonth();
if ((new File(filepath)).isDirectory() == false) {
(new File(filepath)).mkdirs();
}
filepath = filepath + File.separator + DBAccess.GenerGUID(0, null, null) + file.getOriginalFilename();
try
{
CommonFileUtils.upload(request, "file", new File(filepath));
}
catch (RuntimeException ex)
{
}
bp.ccbill.FrmBBS bbs = new bp.ccbill.FrmBBS(this.getNo());
String fileName = file.getOriginalFilename().substring(0, file.getOriginalFilename().lastIndexOf("."));
bbs.SetValByKey("MyFileName", fileName);
bbs.SetValByKey("MyFilePath", filepath);
bbs.SetValByKey("MyFileExt", file.getOriginalFilename().replace(fileName, ""));
bbs.Update();
return "附件保存成功";
}
///#endregion 评论回复附件上传
}

@ -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,272 @@
package bp.ccbill.sys;
import bp.da.*;
import bp.en.Map;
import bp.web.*;
import bp.en.*; import bp.en.Map;
import bp.sys.*;
import bp.ccbill.template.*;
/**
*/
public class Func extends EntityNoName
{
///#region 基本属性
/**
ID -
*/
public final String getMethodID() {
return this.GetValStringByKey(MethodAttr.MethodID);
}
public final void setMethodID(String value) {
this.SetValByKey(MethodAttr.MethodID, value);
}
public final String getMsgErr() {
return this.GetValStringByKey(MethodAttr.MsgErr);
}
public final void setMsgErr(String value) {
this.SetValByKey(MethodAttr.MsgErr, value);
}
public final String getMsgSuccess() {
return this.GetValStringByKey(MethodAttr.MsgSuccess);
}
public final void setMsgSuccess(String value) {
this.SetValByKey(MethodAttr.MsgSuccess, value);
}
public final String getMethodDocUrl() throws Exception {
String s = this.GetValStringByKey(MethodAttr.MethodDoc_Url);
if (DataType.IsNullOrEmpty(s) == true)
{
s = "http://192.168.0.100/MyPath/xxx.xx";
}
return s;
}
public final void setMethodDocUrl(String value) {
this.SetValByKey(MethodAttr.MethodDoc_Url, value);
}
/**
sql.
*/
public final String getMethodDocSQL() throws Exception {
String strs = this.GetBigTextFromDB("SQLScript");
if (DataType.IsNullOrEmpty(strs) == true)
{
return this.getMethodDocSQLDemo(); //返回默认信息.
}
return strs;
}
public final void setMethodDocSQL(String value) throws Exception {
this.SaveBigTxtToDB("SQLScript", value);
}
/**
demo.
*/
public final String getMethodDocJavaScriptDemo()
{
String file = bp.difference.SystemConfig.getCCFlowAppPath() + "WF/CCBill/Admin/MethodDoc/MethodDocDemoJS.txt";
String doc = DataType.ReadTextFile(file); //读取文件.
doc = doc.replace("/#", "+"); //为什么?
doc = doc.replace("/$", "-"); //为什么?
// doc = doc.replace("@FrmID", this.FrmID);
return doc;
}
public final String getMethodDocSQLDemo()
{
String file = bp.difference.SystemConfig.getCCFlowAppPath() + "WF/CCBill/Admin/MethodDoc/MethodDocDemoSQL.txt";
String doc = DataType.ReadTextFile(file); //读取文件.
// doc = doc.replace("@FrmID", this.FrmID);
return doc;
}
/**
JS.
@return
*/
public final String Gener_MethodDoc_JavaScript() throws Exception {
return this.getMethodDocJavaScript();
}
public final String Gener_MethodDoc_JavaScript_function() throws Exception {
String paras = "";
MapAttrs mattrs = new MapAttrs(this.getNo());
for (MapAttr item : mattrs.ToJavaList())
{
paras += item.getKeyOfEn() + ",";
}
if (mattrs.size() > 1)
{
paras = paras.substring(0, paras.length() - 1);
}
String strs = " function " + this.getMethodID() + "(" + paras + ") {";
strs += this.getMethodDocJavaScript();
strs += "}";
return strs;
}
/**
SQL
@return
*/
public final String Gener_MethodDoc_SQL() throws Exception {
return this.getMethodDocSQL();
}
/**
js.
*/
public final String getMethodDocJavaScript() throws Exception {
String strs = this.GetBigTextFromDB("JSScript");
if (DataType.IsNullOrEmpty(strs) == true)
{
return this.getMethodDocJavaScriptDemo();
}
strs = strs.replace("/#", "+");
strs = strs.replace("/$", "-");
return strs;
}
public final void setMethodDocJavaScript(String value) throws Exception {
this.SaveBigTxtToDB("JSScript", value);
}
/**
@0=SQL@1=URL@2=JavaScript@3=
*/
public final int getMethodDocTypeOfFunc() {
return this.GetValIntByKey(MethodAttr.MethodDocTypeOfFunc);
}
public final void setMethodDocTypeOfFunc(int value) {
this.SetValByKey(MethodAttr.MethodDocTypeOfFunc, 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 Func()
{
}
public Func(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_Func", "功能");
map.AddTBStringPK(FuncAttr.No, null, "编号", true, true, 0, 50, 10);
map.AddTBString(FuncAttr.Name, null, "方法名", true, false, 0, 300, 10, true);
map.AddTBString(FuncAttr.FuncID, null, "方法ID", true, false, 0, 300, 10, true);
map.AddTBString(FuncAttr.Icon, null, "图标", true, false, 0, 50, 10, true);
map.AddDDLSysEnum(FuncAttr.FuncSrc, 0, "功能来源", true, false, "FuncSrc", "@0=自定义@1=系统内置");
map.AddTBString(FuncAttr.DTSName, null, "功能内容", true, false, 0, 300, 10, true);
map.AddTBStringDoc(FuncAttr.Docs, null, "功能说明", true, false, true, 10);
map.SetHelperAlert(FuncAttr.Docs, "对于该功能的描述.");
map.AddTBString(FuncAttr.WarningMsg, null, "独立方法警告信息", true, false, 0, 300, 10, true);
map.AddDDLSysEnum(FuncAttr.MethodDocTypeOfFunc, 0, "内容类型", true, false, "MethodDocTypeOfFunc", "@0=SQL@1=URL@2=JavaScript@3=业务单元");
map.AddTBString(FuncAttr.MethodDoc_Url, null, "URL执行内容", false, false, 0, 300, 10);
map.AddTBString(FuncAttr.MsgSuccess, null, "成功提示信息", true, false, 0, 300, 10, true);
map.AddTBString(FuncAttr.MsgErr, null, "失败提示信息", true, false, 0, 300, 10, true);
map.AddTBInt(FuncAttr.IsHavePara, 0, "是否含有参数?", true, false);
RefMethod rm = new RefMethod();
//rm.Title = "方法参数"; // "设计表单";
//rm.ClassMethodName = this.ToString() + ".DoParas";
//rm.Visable = true;
//rm.refMethodType = RefMethodType.RightFrameOpen;
//rm.Target = "_blank";
//rm.GroupName = "开发接口";
// map.AddRefMethod(rm);
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 执行方法.
@Override
protected boolean beforeInsert() throws Exception
{
this.setNo(DBAccess.GenerGUID(0, null, null));
return super.beforeInsert();
}
/**
@return
*/
public final String DoParas() {
return "../../CCBill/Admin/MethodParas.htm?No=" + this.getNo();
}
/**
@return
*/
public final String DoDocs() {
return "../../CCBill/Admin/MethodDocSys/Default.htm?No=" + this.getNo();
}
///#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,101 @@
package bp.ccbill.template;
import bp.da.*;
import bp.en.*; import bp.en.Map;
import bp.*;
import bp.ccbill.*;
import java.util.*;
/**
*/
public class CollectionAttr extends EntityNoNameAttr
{
///#region 基本属性.
/**
ID
*/
public static final String FrmID = "FrmID";
/**
ID
*/
public static final String MethodID = "MethodID";
/**
*/
public static final String Icon = "Icon";
/**
*/
public static final String MethodModel = "MethodModel";
/**
*/
public static final String Mark = "Mark";
/**
tag
*/
public static final String Tag1 = "Tag1";
/**
.
*/
public static final String ShowModel = "ShowModel";
/**
*/
public static final String CollectionDoc_Url = "CollectionDoc_Url";
/**
*/
public static final String CollectionDocTypeOfFunc = "CollectionDocTypeOfFunc";
/**
s
*/
public static final String Docs = "Docs";
/**
-
*/
public static final String WarningMsg = "WarningMsg";
/**
*/
public static final String MsgSuccess = "MsgSuccess";
/**
*/
public static final String MsgErr = "MsgErr";
/**
*/
public static final String WhatAreYouTodo = "WhatAreYouTodo";
/**
Idx
*/
public static final String Idx = "Idx";
///#endregion 基本属性.
///#region 外观.
/**
.
*/
public static final String PopWidth = "PopWidth";
/**
*/
public static final String PopHeight = "PopHeight";
///#endregion 外观.
/**
*/
public static final String IsEnable = "IsEnable";
/**
*/
public static final String FlowNo = "FlowNo";
}

@ -0,0 +1,167 @@
package bp.ccbill.template;
import bp.da.*;
import bp.en.Map;
import bp.web.*;
import bp.en.*; import bp.en.Map;
/**
*/
public class CollectionFlowBatch extends EntityNoName
{
///#region 基本属性
/**
ID
*/
public final String getFrmID() {
return this.GetValStringByKey(MethodAttr.FrmID);
}
public final void setFrmID(String value) {
this.SetValByKey(MethodAttr.FrmID, value);
}
public final String getFlowNo() {
return this.GetValStringByKey(MethodAttr.FlowNo);
}
public final void setFlowNo(String value) {
this.SetValByKey(MethodAttr.FlowNo, value);
}
public final String getUrlExt() {
return this.GetValStringByKey("UrlExt");
}
public final void setUrlExt(String value) {
this.SetValByKey("UrlExt", value);
}
/**
*/
public final boolean getDTSWhenFlowOver() {
return this.GetValBooleanByKey(MethodAttr.DTSWhenFlowOver);
}
public final void setDTSWhenFlowOver(boolean value) {
this.SetValByKey(MethodAttr.DTSWhenFlowOver, value);
}
/**
*/
public final int getDTSDataWay() {
return this.GetValIntByKey(MethodAttr.DTSDataWay);
}
public final void setDTSDataWay(int value) {
this.SetValByKey(MethodAttr.DTSDataWay, value);
}
///#endregion
///#region 构造方法
/**
*/
@Override
public UAC getHisUAC()
{
UAC uac = new UAC();
if (WebUser.getIsAdmin())
{
uac.IsUpdate = true;
return uac;
}
return super.getHisUAC();
}
/**
*/
public CollectionFlowBatch()
{
}
public CollectionFlowBatch(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.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);
this.set_enMap(map);
return this.get_enMap();
}
///#endregion
public final String CreateWorkID() throws Exception {
long workid = bp.wf.Dev2Interface.Node_CreateBlankWork(this.getFlowNo());
//给当前的流程实例做标记.
bp.wf.GenerWorkFlow gwf = new bp.wf.GenerWorkFlow(workid);
gwf.setPFlowNo(this.getFrmID());
gwf.SetPara("FlowNewEntity", "1"); //设置标记等到流程结束后自动写入到Dict一笔记录.
gwf.SetPara("MenuNo", this.getNo()); //菜单编号.
gwf.setPWorkID(gwf.getWorkID()); //实体保存的ID 与 流程ID一致。
gwf.Update();
return String.valueOf(workid);
}
///#region 执行方法.
/**
@return
*/
public final String DoAlert()
{
return "您需要转入流程设计器去设计流程.";
// return "../../CCBill/Admin/MethodParas.htm?No=" + this.MyPK;
}
/**
@return
*/
public final String ReSetFrm() throws Exception {
//如果是发起流程的方法,就要表单的字段复制到,流程的表单上去.
bp.wf.httphandler.WF_Admin_FoolFormDesigner_ImpExp handler = new bp.wf.httphandler.WF_Admin_FoolFormDesigner_ImpExp();
// handler.AddPara
handler.Imp_CopyFrm("ND" + Integer.parseInt(this.getFlowNo() + "01"), this.getFrmID());
return "执行成功,您需要转入流程设计器查看表单.";
}
@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,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,167 @@
package bp.ccbill.template;
import bp.da.*;
import bp.en.Map;
import bp.web.*;
import bp.en.*; import bp.en.Map;
/**
*/
public class CollectionFlowNewEntity extends EntityNoName
{
///#region 基本属性
/**
ID
*/
public final String getFrmID() {
return this.GetValStringByKey(MethodAttr.FrmID);
}
public final void setFrmID(String value) {
this.SetValByKey(MethodAttr.FrmID, value);
}
public final String getFlowNo() {
return this.GetValStringByKey(MethodAttr.FlowNo);
}
public final void setFlowNo(String value) {
this.SetValByKey(MethodAttr.FlowNo, value);
}
public final String getUrlExt() {
return this.GetValStringByKey("UrlExt");
}
public final void setUrlExt(String value) {
this.SetValByKey("UrlExt", value);
}
/**
*/
public final boolean getDTSWhenFlowOver() {
return this.GetValBooleanByKey(MethodAttr.DTSWhenFlowOver);
}
public final void setDTSWhenFlowOver(boolean value) {
this.SetValByKey(MethodAttr.DTSWhenFlowOver, value);
}
/**
*/
public final int getDTSDataWay() {
return this.GetValIntByKey(MethodAttr.DTSDataWay);
}
public final void setDTSDataWay(int value) {
this.SetValByKey(MethodAttr.DTSDataWay, value);
}
///#endregion
///#region 构造方法
/**
*/
@Override
public UAC getHisUAC()
{
UAC uac = new UAC();
if (WebUser.getIsAdmin())
{
uac.IsUpdate = true;
return uac;
}
return super.getHisUAC();
}
/**
*/
public CollectionFlowNewEntity()
{
}
public CollectionFlowNewEntity(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.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);
this.set_enMap(map);
return this.get_enMap();
}
///#endregion
public final String CreateWorkID() throws Exception {
long workid = bp.wf.Dev2Interface.Node_CreateBlankWork(this.getFlowNo());
//给当前的流程实例做标记.
bp.wf.GenerWorkFlow gwf = new bp.wf.GenerWorkFlow(workid);
gwf.setPFlowNo(this.getFrmID());
gwf.SetPara("FlowNewEntity", "1"); //设置标记等到流程结束后自动写入到Dict一笔记录.
gwf.SetPara("MenuNo", this.getNo()); //菜单编号.
gwf.setPWorkID(gwf.getWorkID()); //实体保存的ID 与 流程ID一致。
gwf.Update();
return String.valueOf(workid);
}
///#region 执行方法.
/**
@return
*/
public final String DoAlert()
{
return "您需要转入流程设计器去设计流程.";
// return "../../CCBill/Admin/MethodParas.htm?No=" + this.MyPK;
}
/**
@return
*/
public final String ReSetFrm() throws Exception {
//如果是发起流程的方法,就要表单的字段复制到,流程的表单上去.
bp.wf.httphandler.WF_Admin_FoolFormDesigner_ImpExp handler = new bp.wf.httphandler.WF_Admin_FoolFormDesigner_ImpExp();
// handler.AddPara
handler.Imp_CopyFrm("ND" + Integer.parseInt(this.getFlowNo() + "01"), this.getFrmID());
return "执行成功,您需要转入流程设计器查看表单.";
}
@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.*;
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.
IDID.
IDID.
*/
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,204 @@
package bp.ccbill.template;
import bp.da.*;
import bp.en.*; import bp.en.Map;
import bp.en.Map;
import bp.wf.template.*;
import bp.sys.*;
import bp.port.*;
import bp.ccbill.*;
/**
*/
public class FrmTemplate extends EntityNoName
{
///#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 final String getPTable() throws Exception {
String s = this.GetValStrByKey(MapDataAttr.PTable);
if (DataType.IsNullOrEmpty(s) == true)
{
return this.getNo();
}
return s;
}
public final void setPTable(String value) {
this.SetValByKey(MapDataAttr.PTable, value);
}
/**
@0=@1=@2=
*/
public final EntityType getEntityType() {
return EntityType.forValue(this.GetValIntByKey(FrmTemplateAttr.EntityType));
}
public final void setEntityType(EntityType value) {
this.SetValByKey(FrmTemplateAttr.EntityType, value.getValue());
}
/**
(0=2= ...)
*/
public final FrmType getFrmType() {
return FrmType.forValue(this.GetValIntByKey(MapDataAttr.FrmType));
}
public final void setFrmType(FrmType value) {
this.SetValByKey(MapDataAttr.FrmType, value.getValue());
}
/**
*/
public final String getFKFormTree() {
return this.GetValStrByKey(MapDataAttr.FK_FormTree);
}
public final void setFKFormTree(String value) {
this.SetValByKey(MapDataAttr.FK_FormTree, value);
}
/**
@0=@1=@2=
*/
public final int getBtnNewModel() {
return this.GetValIntByKey(FrmTemplateAttr.BtnNewModel);
}
public final void setBtnNewModel(int value) {
this.SetValByKey(FrmTemplateAttr.BtnNewModel, value);
}
/**
*/
public final String getBillNoFormat() throws Exception {
String str = this.GetValStrByKey(FrmTemplateAttr.BillNoFormat);
if (DataType.IsNullOrEmpty(str) == true)
{
str = "{LSH4}";
}
return str;
}
public final void setBillNoFormat(String value) {
this.SetValByKey(FrmTemplateAttr.BillNoFormat, value);
}
/**
*/
public final String getTitleRole() throws Exception {
String str = this.GetValStrByKey(FrmTemplateAttr.TitleRole);
if (DataType.IsNullOrEmpty(str) == true)
{
str = "@WebUser.FK_DeptName @WebUser.Name @RDT";
}
return str;
}
public final void setTitleRole(String value) {
this.SetValByKey(FrmTemplateAttr.BillNoFormat, value);
}
///#endregion
///#region 构造方法
/**
*/
public FrmTemplate()
{
}
/**
@param no
*/
public FrmTemplate(String no) throws Exception
{
super(no);
}
/**
* 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.SetHelperAlert(MapDataAttr.No, "也叫表单ID,系统唯一.");
map.AddDDLSysEnum(MapDataAttr.FrmType, 0, "表单类型", true, true, "BillFrmType", "@0=经典表单@1=自由表单");
map.AddTBString(MapDataAttr.PTable, null, "存储表", true, false, 0, 500, 20, true);
map.SetHelperAlert(MapDataAttr.PTable, "存储的表名,如果您修改一个不存在的系统将会自动创建一个表.");
map.AddTBString(MapDataAttr.Name, null, "表单名称", true, false, 0, 200, 20, true);
map.AddDDLEntities(MapDataAttr.FK_FormTree, "01", "表单类别", new SysFormTrees(), false);
map.AddDDLSysEnum(FrmAttr.RowOpenModel, 0, "行记录打开模式", true, true, FrmAttr.RowOpenModel, "@0=新窗口打开@1=弹出窗口打开,关闭后刷新列表@2=弹出窗口打开,关闭后不刷新列表");
///#endregion 基本属性.
///#region 单据模版.
map.AddDDLSysEnum(FrmTemplateAttr.EntityType, 0, "业务类型", true, false, FrmTemplateAttr.EntityType, "@0=独立表单@1=单据@2=编号名称实体@3=树结构实体");
map.SetHelperAlert(FrmTemplateAttr.EntityType, "该实体的类型,@0=单据@1=编号名称实体@2=树结构实体.");
map.AddDDLSysEnum(FrmAttr.EntityShowModel, 0, "展示模式", true, true, FrmAttr.EntityShowModel, "@0=表格@1=树干模式");
map.AddTBString(FrmTemplateAttr.BillNoFormat, null, "实体编号规则", true, false, 0, 100, 20, true);
map.SetHelperAlert(FrmTemplateAttr.BillNoFormat, "\t\n实体编号规则: \t\n 2标识:01,02,03等, 3标识:001,002,003,等..");
///#endregion 单据模版.
///#region 实体属性
map.AddTBInt(FrmTemplateAttr.EntityEditModel, 0, "编辑模式", true, false);
//map.AddDDLSysEnum(FrmAttr.EntityEditModel, 0, "编辑模式", true, true, FrmAttr.EntityEditModel, "@0=只读列表模式@1=Table编辑模式");
///#endregion 实体属性.
///#region 可以创建的权限.
//平铺模式.
map.getAttrsOfOneVSM().AddGroupPanelModel(new StationCreates(), new Stations(), StationCreateAttr.FrmID, StationCreateAttr.FK_Station, "可以创建的角色", StationAttr.FK_StationType, "Name", "No");
map.getAttrsOfOneVSM().AddGroupListModel(new StationCreates(), new Stations(), StationCreateAttr.FrmID, StationCreateAttr.FK_Station, "可以创建的角色AddGroupListModel", StationAttr.FK_StationType, "Name", "No");
//节点绑定部门. 节点绑定部门.
map.getAttrsOfOneVSM().AddBranches(new FrmDeptCreates(), new Depts(), FrmDeptCreateAttr.FrmID, FrmDeptCreateAttr.FK_Dept, "可以创建的部门AddBranches", EmpAttr.Name, EmpAttr.No, "@WebUser.FK_Dept", null);
//节点绑定人员. 使用树杆与叶子的模式绑定.
map.getAttrsOfOneVSM().AddBranchesAndLeaf(new EmpCreates(), new Emps(), EmpCreateAttr.FrmID, EmpCreateAttr.FK_Emp, "可以创建的人员", EmpAttr.FK_Dept, EmpAttr.Name, EmpAttr.No, "@WebUser.FK_Dept", null);
///#endregion 可以创建的权限
this.set_enMap(map);
return this.get_enMap();
}
///#endregion
}

@ -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,141 @@
package bp.ccbill.template;
import bp.da.*;
import bp.en.*; import bp.en.Map;
import bp.*;
import bp.ccbill.*;
import java.util.*;
/**
*/
public class MethodAttr extends EntityNoNameAttr
{
///#region 基本属性.
/**
ID
*/
public static final String FrmID = "FrmID";
/**
ID
*/
public static final String GroupID = "GroupID";
/**
ID
*/
public static final String MethodID = "MethodID";
/**
*/
public static final String Icon = "Icon";
/**
*/
public static final String RefMethodType = "RefMethodType";
/**
*/
public static final String MethodModel = "MethodModel";
/**
*/
public static final String Mark = "Mark";
/**
tag
*/
public static final String Tag1 = "Tag1";
/**
.
*/
public static final String ShowModel = "ShowModel";
/**
*/
public static final String MethodDoc_Url = "MethodDoc_Url";
/**
*/
public static final String MethodDocTypeOfFunc = "MethodDocTypeOfFunc";
/**
s
*/
public static final String Docs = "Docs";
/**
-
*/
public static final String WarningMsg = "WarningMsg";
/**
*/
public static final String MsgSuccess = "MsgSuccess";
/**
*/
public static final String MsgErr = "MsgErr";
/**
*/
public static final String WhatAreYouTodo = "WhatAreYouTodo";
/**
Idx
*/
public static final String Idx = "Idx";
///#endregion 基本属性.
///#region 外观.
/**
.
*/
public static final String PopWidth = "PopWidth";
/**
*/
public static final String PopHeight = "PopHeight";
///#endregion 外观.
///#region 显示位置
/**
myToolBar.
*/
public static final String IsMyBillToolBar = "IsMyBillToolBar";
/**
.
*/
public static final String IsMyBillToolExt = "IsMyBillToolExt";
/**
.
*/
public static final String IsSearchBar = "IsSearchBar";
///#endregion 显示位置
///#region 流程方法相关.
/**
?
*/
public static final String DTSDataWay = "DTSDataWay";
public static final String DTSSpecFiels = "DTSSpecFiels";
public static final String DTSWhenFlowOver = "DTSWhenFlowOver";
public static final String DTSWhenNodeOver = "DTSWhenNodeOver";
public static final String FlowNo = "FlowNo";
///#endregion 流程方法相关.
public static final String IsEnable = "IsEnable";
/**
*/
public static final String IsList = "IsList";
/**
*/
public static final String IsHavePara = "IsHavePara";
}

@ -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,322 @@
package bp.ccbill.template;
import bp.da.*;
import bp.en.Map;
import bp.web.*;
import bp.en.*; import bp.en.Map;
import bp.sys.*;
/**
*/
public class MethodFlow 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 getMsgErr() {
return this.GetValStringByKey(MethodAttr.MsgErr);
}
public final void setMsgErr(String value) {
this.SetValByKey(MethodAttr.MsgErr, value);
}
public final String getMsgSuccess() {
return this.GetValStringByKey(MethodAttr.MsgSuccess);
}
public final void setMsgSuccess(String value) {
this.SetValByKey(MethodAttr.MsgSuccess, value);
}
public final String getMethodDocUrl() throws Exception {
String s = this.GetValStringByKey(MethodAttr.MethodDoc_Url);
if (DataType.IsNullOrEmpty(s) == true)
{
s = "http://192.168.0.100/MyPath/xxx.xx";
}
return s;
}
public final void setMethodDocUrl(String value) {
this.SetValByKey(MethodAttr.MethodDoc_Url, value);
}
/**
sql.
*/
public final String getMethodDocSQL() throws Exception {
String strs = this.GetBigTextFromDB("SQLScript");
if (DataType.IsNullOrEmpty(strs) == true)
{
return this.getMethodDocSQLDemo(); //返回默认信息.
}
return strs;
}
public final void setMethodDocSQL(String value) throws Exception {
this.SaveBigTxtToDB("SQLScript", value);
}
/**
demo.
*/
public final String getMethodDocJavaScriptDemo() throws Exception {
String file = bp.difference.SystemConfig.getCCFlowAppPath() + "WF/CCBill/Admin/MethodDoc/MethodDocDemoJS.txt";
String doc = DataType.ReadTextFile(file); //读取文件.
doc = doc.replace("/#", "+"); //为什么?
doc = doc.replace("/$", "-"); //为什么?
doc = doc.replace("@FrmID", this.getFrmID());
return doc;
}
public final String getMethodDocSQLDemo() throws Exception {
String file = bp.difference.SystemConfig.getCCFlowAppPath() + "WF/CCBill/Admin/MethodDoc/MethodDocDemoSQL.txt";
String doc = DataType.ReadTextFile(file); //读取文件.
doc = doc.replace("@FrmID", this.getFrmID());
return doc;
}
/**
JS.
@return
*/
public final String Gener_MethodDoc_JavaScript() throws Exception {
return this.getMethodDocJavaScript();
}
public final String Gener_MethodDoc_JavaScript_function() throws Exception {
String paras = "";
MapAttrs attrs = new MapAttrs(this.getNo());
for (MapAttr item : attrs.ToJavaList())
{
paras += item.getKeyOfEn() + ",";
}
if (attrs.size() > 1)
{
paras = paras.substring(0, paras.length() - 1);
}
String strs = " function " + this.getMethodID() + "(" + paras + ") {";
strs += this.getMethodDocJavaScript();
strs += "}";
return strs;
}
/**
SQL
@return
*/
public final String Gener_MethodDoc_SQL() throws Exception {
return this.getMethodDocSQL();
}
/**
js.
*/
public final String getMethodDocJavaScript() throws Exception {
String strs = this.GetBigTextFromDB("JSScript");
if (DataType.IsNullOrEmpty(strs) == true)
{
return this.getMethodDocJavaScriptDemo();
}
strs = strs.replace("/#", "+");
strs = strs.replace("/$", "-");
return strs;
}
public final void setMethodDocJavaScript(String value) throws Exception {
this.SaveBigTxtToDB("JSScript", value);
}
/**
@0=SQL@1=URL@2=JavaScript@3=
*/
public final int getMethodDocTypeOfFunc() {
return this.GetValIntByKey(MethodAttr.MethodDocTypeOfFunc);
}
public final void setMethodDocTypeOfFunc(int value) {
this.SetValByKey(MethodAttr.MethodDocTypeOfFunc, 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 MethodFlow()
{
}
public MethodFlow(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);
// 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.MethodDoc_Url, null, "URL执行内容", false, 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);
///#region 外观.
map.AddTBInt(MethodAttr.PopHeight, 100, "弹窗高度", true, false);
map.AddTBInt(MethodAttr.PopWidth, 260, "弹窗宽度", true, false);
///#endregion 外观.
///#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 显示位置控制.
///#region 相同字段数据同步方式.
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 相同字段数据同步方式.
RefMethod rm = new RefMethod();
rm.Title = "设计流程"; // "设计表单";
rm.ClassMethodName = this.toString() + ".DoAlert";
rm.Warning = "";
rm.Visable = true;
rm.refMethodType = RefMethodType.Func;
//rm.GroupName = "开发接口";
map.AddRefMethod(rm);
rm = new RefMethod();
rm.Title = "重新导入实体字段"; // "设计表单";
rm.ClassMethodName = this.toString() + ".ReSetFrm";
rm.Warning = "现有的表单字段将会被清除,重新导入的字段会被增加上去,数据不会变化,导入需慎重。";
rm.Visable = true;
rm.refMethodType = RefMethodType.Func;
//rm.GroupName = "开发接口";
map.AddRefMethod(rm);
this.set_enMap(map);
return this.get_enMap();
}
///#endregion
///#region 执行方法.
/**
@return
*/
public final String DoAlert()
{
return "您需要转入流程设计器去设计流程.";
// return "../../CCBill/Admin/MethodParas.htm?No=" + this.No;
}
/**
@return
*/
public final String ReSetFrm() throws Exception {
//如果是发起流程的方法,就要表单的字段复制到,流程的表单上去.
bp.wf.httphandler.WF_Admin_FoolFormDesigner_ImpExp handler = new bp.wf.httphandler.WF_Admin_FoolFormDesigner_ImpExp();
// handler.AddPara
handler.Imp_CopyFrm("ND" + Integer.parseInt(this.getMethodID() + "01"), this.getFrmID());
return "执行成功,您需要转入流程设计器查看表单.";
}
@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,326 @@
package bp.ccbill.template;
import bp.da.*;
import bp.en.Map;
import bp.web.*;
import bp.en.*; import bp.en.Map;
import bp.sys.*;
/**
*/
public class MethodFlowBaseData 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 getMsgErr() {
return this.GetValStringByKey(MethodAttr.MsgErr);
}
public final void setMsgErr(String value) {
this.SetValByKey(MethodAttr.MsgErr, value);
}
public final String getMsgSuccess() {
return this.GetValStringByKey(MethodAttr.MsgSuccess);
}
public final void setMsgSuccess(String value) {
this.SetValByKey(MethodAttr.MsgSuccess, value);
}
public final String getMethodDocUrl() throws Exception {
String s = this.GetValStringByKey(MethodAttr.MethodDoc_Url);
if (DataType.IsNullOrEmpty(s) == true)
{
s = "http://192.168.0.100/MyPath/xxx.xx";
}
return s;
}
public final void setMethodDocUrl(String value) {
this.SetValByKey(MethodAttr.MethodDoc_Url, value);
}
/**
sql.
*/
public final String getMethodDocSQL() throws Exception {
String strs = this.GetBigTextFromDB("SQLScript");
if (DataType.IsNullOrEmpty(strs) == true)
{
return this.getMethodDocSQLDemo(); //返回默认信息.
}
return strs;
}
public final void setMethodDocSQL(String value) throws Exception {
this.SaveBigTxtToDB("SQLScript", value);
}
/**
demo.
*/
public final String getMethodDocJavaScriptDemo() throws Exception {
String file = bp.difference.SystemConfig.getCCFlowAppPath() + "WF/CCBill/Admin/MethodDoc/MethodDocDemoJS.txt";
String doc = DataType.ReadTextFile(file); //读取文件.
doc = doc.replace("/#", "+"); //为什么?
doc = doc.replace("/$", "-"); //为什么?
doc = doc.replace("@FrmID", this.getFrmID());
return doc;
}
public final String getMethodDocSQLDemo() throws Exception {
String file = bp.difference.SystemConfig.getCCFlowAppPath() + "WF/CCBill/Admin/MethodDoc/MethodDocDemoSQL.txt";
String doc = DataType.ReadTextFile(file); //读取文件.
doc = doc.replace("@FrmID", this.getFrmID());
return doc;
}
/**
JS.
@return
*/
public final String Gener_MethodDoc_JavaScript() throws Exception {
return this.getMethodDocJavaScript();
}
public final String Gener_MethodDoc_JavaScript_function() throws Exception {
String paras = "";
MapAttrs mattrs = new MapAttrs(this.getNo());
for (MapAttr item : mattrs.ToJavaList())
{
paras += item.getKeyOfEn() + ",";
}
if (mattrs.size() > 1)
{
paras = paras.substring(0, paras.length() - 1);
}
String strs = " function " + this.getMethodID() + "(" + paras + ") {";
strs += this.getMethodDocJavaScript();
strs += "}";
return strs;
}
/**
SQL
@return
*/
public final String Gener_MethodDoc_SQL() throws Exception {
return this.getMethodDocSQL();
}
/**
js.
*/
public final String getMethodDocJavaScript() throws Exception {
String strs = this.GetBigTextFromDB("JSScript");
if (DataType.IsNullOrEmpty(strs) == true)
{
return this.getMethodDocJavaScriptDemo();
}
strs = strs.replace("/#", "+");
strs = strs.replace("/$", "-");
return strs;
}
public final void setMethodDocJavaScript(String value) throws Exception {
this.SaveBigTxtToDB("JSScript", value);
}
/**
@0=SQL@1=URL@2=JavaScript@3=
*/
public final int getMethodDocTypeOfFunc() {
return this.GetValIntByKey(MethodAttr.MethodDocTypeOfFunc);
}
public final void setMethodDocTypeOfFunc(int value) {
this.SetValByKey(MethodAttr.MethodDocTypeOfFunc, 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 MethodFlowBaseData()
{
}
public MethodFlowBaseData(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.AddDDLSysEnum(MethodAttr.WhatAreYouTodo, 0, "执行完毕后干啥?", true, true, MethodAttr.WhatAreYouTodo, "@0=关闭提示窗口@1=关闭提示窗口并刷新@2=转入到Search.htm页面上去");
map.AddTBString(MethodAttr.Icon, null, "图标", true, false, 0, 50, 10, true);
// 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.MethodDoc_Url, null, "URL执行内容", false, 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);
///#region 外观.
map.AddTBInt(MethodAttr.PopHeight, 100, "弹窗高度", true, false);
map.AddTBInt(MethodAttr.PopWidth, 260, "弹窗宽度", true, false);
///#endregion 外观.
///#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 显示位置控制.
///#region 相同字段数据同步方式.
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 相同字段数据同步方式.
RefMethod rm = new RefMethod();
rm.Title = "设计流程"; // "设计表单";
rm.ClassMethodName = this.toString() + ".DoAlert";
rm.Warning = "";
rm.Visable = true;
rm.refMethodType = RefMethodType.Func;
//rm.GroupName = "开发接口";
map.AddRefMethod(rm);
rm = new RefMethod();
rm.Title = "重新导入实体字段"; // "设计表单";
rm.ClassMethodName = this.toString() + ".ReSetFrm";
rm.Warning = "现有的表单字段将会被清除,重新导入的字段会被增加上去,数据不会变化,导入需慎重。";
rm.Visable = true;
rm.refMethodType = RefMethodType.Func;
//rm.GroupName = "开发接口";
map.AddRefMethod(rm);
this.set_enMap(map);
return this.get_enMap();
}
///#endregion
///#region 执行方法.
/**
@return
*/
public final String DoAlert()
{
return "您需要转入流程设计器去设计流程.";
// return "../../CCBill/Admin/MethodParas.htm?No=" + this.No;
}
/**
@return
*/
public final String ReSetFrm() throws Exception {
//如果是发起流程的方法,就要表单的字段复制到,流程的表单上去.
bp.wf.httphandler.WF_Admin_FoolFormDesigner_ImpExp handler = new bp.wf.httphandler.WF_Admin_FoolFormDesigner_ImpExp();
// handler.AddPara
handler.Imp_CopyFrm("ND" + Integer.parseInt(this.getMethodID() + "01"), this.getFrmID());
return "执行成功,您需要转入流程设计器查看表单.";
}
@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,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,342 @@
package bp.ccbill.template;
import bp.da.*;
import bp.en.Map;
import bp.web.*;
import bp.en.*; import bp.en.Map;
import bp.sys.*;
/**
*/
public class MethodFlowEtc 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 getMsgErr() {
return this.GetValStringByKey(MethodAttr.MsgErr);
}
public final void setMsgErr(String value) {
this.SetValByKey(MethodAttr.MsgErr, value);
}
public final String getMsgSuccess() {
return this.GetValStringByKey(MethodAttr.MsgSuccess);
}
public final void setMsgSuccess(String value) {
this.SetValByKey(MethodAttr.MsgSuccess, value);
}
public final String getMethodDocUrl() throws Exception {
String s = this.GetValStringByKey(MethodAttr.MethodDoc_Url);
if (DataType.IsNullOrEmpty(s) == true)
{
s = "http://192.168.0.100/MyPath/xxx.xx";
}
return s;
}
public final void setMethodDocUrl(String value) {
this.SetValByKey(MethodAttr.MethodDoc_Url, value);
}
/**
sql.
*/
public final String getMethodDocSQL() throws Exception {
String strs = this.GetBigTextFromDB("SQLScript");
if (DataType.IsNullOrEmpty(strs) == true)
{
return this.getMethodDocSQLDemo(); //返回默认信息.
}
return strs;
}
public final void setMethodDocSQL(String value) throws Exception {
this.SaveBigTxtToDB("SQLScript", value);
}
/**
demo.
*/
public final String getMethodDocJavaScriptDemo() throws Exception {
String file = bp.difference.SystemConfig.getCCFlowAppPath() + "WF/CCBill/Admin/MethodDoc/MethodDocDemoJS.txt";
String doc = DataType.ReadTextFile(file); //读取文件.
doc = doc.replace("/#", "+"); //为什么?
doc = doc.replace("/$", "-"); //为什么?
doc = doc.replace("@FrmID", this.getFrmID());
return doc;
}
public final String getMethodDocSQLDemo() throws Exception {
String file = bp.difference.SystemConfig.getCCFlowAppPath() + "WF/CCBill/Admin/MethodDoc/MethodDocDemoSQL.txt";
String doc = DataType.ReadTextFile(file); //读取文件.
doc = doc.replace("@FrmID", this.getFrmID());
return doc;
}
/**
JS.
@return
*/
public final String Gener_MethodDoc_JavaScript() throws Exception {
return this.getMethodDocJavaScript();
}
public final String Gener_MethodDoc_JavaScript_function() throws Exception {
String paras = "";
MapAttrs mattrs = new MapAttrs(this.getNo());
for (MapAttr item : mattrs.ToJavaList())
{
paras += item.getKeyOfEn() + ",";
}
if (mattrs.size() > 1)
{
paras = paras.substring(0, paras.length() - 1);
}
String strs = " function " + this.getMethodID() + "(" + paras + ") {";
strs += this.getMethodDocJavaScript();
strs += "}";
return strs;
}
/**
SQL
@return
*/
public final String Gener_MethodDoc_SQL() throws Exception {
return this.getMethodDocSQL();
}
/**
js.
*/
public final String getMethodDocJavaScript() throws Exception {
String strs = this.GetBigTextFromDB("JSScript");
if (DataType.IsNullOrEmpty(strs) == true)
{
return this.getMethodDocJavaScriptDemo();
}
strs = strs.replace("/#", "+");
strs = strs.replace("/$", "-");
return strs;
}
public final void setMethodDocJavaScript(String value) throws Exception {
this.SaveBigTxtToDB("JSScript", value);
}
/**
@0=SQL@1=URL@2=JavaScript@3=
*/
public final int getMethodDocTypeOfFunc() {
return this.GetValIntByKey(MethodAttr.MethodDocTypeOfFunc);
}
public final void setMethodDocTypeOfFunc(int value) {
this.SetValByKey(MethodAttr.MethodDocTypeOfFunc, 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 MethodFlowEtc()
{
}
public MethodFlowEtc(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);
// 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.MethodDoc_Url, null, "URL执行内容", false, 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);
///#region 外观.
map.AddTBInt(MethodAttr.PopHeight, 100, "弹窗高度", true, false);
map.AddTBInt(MethodAttr.PopWidth, 260, "弹窗宽度", true, false);
///#endregion 外观.
///#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 显示位置控制.
///#region 相同字段数据同步方式.
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 相同字段数据同步方式.
RefMethod rm = new RefMethod();
rm.Title = "设计流程"; // "设计表单";
rm.ClassMethodName = this.toString() + ".DoAlert";
rm.Warning = "";
rm.Visable = true;
rm.refMethodType = RefMethodType.Func;
//rm.GroupName = "开发接口";
map.AddRefMethod(rm);
rm = new RefMethod();
rm.Title = "重新导入实体字段"; // "设计表单";
rm.ClassMethodName = this.toString() + ".ReSetFrm";
rm.Warning = "现有的表单字段将会被清除,重新导入的字段会被增加上去,数据不会变化,导入需慎重。";
rm.Visable = true;
rm.refMethodType = RefMethodType.Func;
//rm.GroupName = "开发接口";
map.AddRefMethod(rm);
this.set_enMap(map);
return this.get_enMap();
}
///#endregion
///#region 执行方法.
/**
@return
*/
public final String DoAlert()
{
return "您需要转入流程设计器去设计流程.";
// return "../../CCBill/Admin/MethodParas.htm?No=" + this.No;
}
/**
@return
*/
public final String ReSetFrm() throws Exception {
//如果是发起流程的方法,就要表单的字段复制到,流程的表单上去.
bp.wf.httphandler.WF_Admin_FoolFormDesigner_ImpExp handler = new bp.wf.httphandler.WF_Admin_FoolFormDesigner_ImpExp();
// handler.AddPara
handler.Imp_CopyFrm("ND" + Integer.parseInt(this.getMethodID() + "01"), this.getFrmID());
return "执行成功,您需要转入流程设计器查看表单.";
}
@Override
protected boolean beforeInsert() throws Exception
{
if (DataType.IsNullOrEmpty(this.getNo()) == true)
{
this.setNo(DBAccess.GenerGUID(0, null, null));
}
return super.beforeInsert();
}
///#endregion 执行方法.
@Override
protected void afterInsertUpdateAction() throws Exception
{
String flowNo = this.GetValStringByKey(MethodAttr.FlowNo);
if (DataType.IsNullOrEmpty(flowNo) == false)
{
//修改流程的名称
bp.wf.Flow flow = new bp.wf.Flow();
flow.setNo(flowNo);
if (flow.RetrieveFromDBSources() != 0 && flow.getName().equals(this.getName()) == false)
{
flow.setName(this.getName());
flow.Update();
}
}
super.afterInsertUpdateAction();
}
}

@ -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,198 @@
package bp.ccbill.template;
import bp.da.*;
import bp.en.Map;
import bp.web.*;
import bp.en.*; import bp.en.Map;
/**
*/
public class MethodFlowNewEntity extends EntityNoName
{
///#region 基本属性
/**
ID
*/
public final String getFrmID() {
return this.GetValStringByKey(MethodAttr.FrmID);
}
public final void setFrmID(String value) {
this.SetValByKey(MethodAttr.FrmID, value);
}
public final String getFlowNo() {
return this.GetValStringByKey(MethodAttr.FlowNo);
}
public final void setFlowNo(String value) {
this.SetValByKey(MethodAttr.FlowNo, value);
}
public final String getUrlExt() {
return this.GetValStringByKey("UrlExt");
}
public final void setUrlExt(String value) {
this.SetValByKey("UrlExt", value);
}
/**
*/
public final boolean getDTSWhenFlowOver() {
return this.GetValBooleanByKey(MethodAttr.DTSWhenFlowOver);
}
public final void setDTSWhenFlowOver(boolean value) {
this.SetValByKey(MethodAttr.DTSWhenFlowOver, value);
}
/**
*/
public final int getDTSDataWay() {
return this.GetValIntByKey(MethodAttr.DTSDataWay);
}
public final void setDTSDataWay(int value) {
this.SetValByKey(MethodAttr.DTSDataWay, value);
}
///#endregion
///#region 构造方法
/**
*/
@Override
public UAC getHisUAC()
{
UAC uac = new UAC();
if (WebUser.getIsAdmin())
{
uac.IsUpdate = true;
return uac;
}
return super.getHisUAC();
}
/**
*/
public MethodFlowNewEntity()
{
}
public MethodFlowNewEntity(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("GPM_Menu", "新建实体");
map.AddTBStringPK(bp.ccfast.ccmenu.MenuAttr.No, null, "编号", true, true, 0, 150, 10);
map.AddTBString(MethodAttr.FrmID, null, "表单ID", true, true, 0, 300, 10);
map.AddTBString("FlowNo", null, "流程编号", true, true, 0, 300, 10, false);
map.AddTBString(MethodAttr.Icon, null, "图标", true, false, 0, 50, 10, true);
//
map.AddTBString("UrlExt", null, "链接", false, false, 0, 300, 10, true);
///#region 显示位置控制.
map.AddBoolean(MethodAttr.IsMyBillToolBar, true, "是否显示在MyDict.htm工具栏上", true, true, true);
map.AddBoolean(MethodAttr.IsMyBillToolExt, false, "是否显示在MyDict.htm工具栏右边的更多按钮里", true, true, true);
map.AddBoolean(MethodAttr.IsSearchBar, false, "是否显示在 SearchDict.htm工具栏上(用于批处理)", true, true, true);
///#endregion 显示位置控制.
///#region 相同字段数据同步方式.
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 相同字段数据同步方式.
RefMethod rm = new RefMethod();
rm.Title = "设计流程"; // "设计表单";
rm.ClassMethodName = this.toString() + ".DoAlert";
rm.Warning = "";
rm.Visable = true;
rm.refMethodType = RefMethodType.Func;
//rm.GroupName = "开发接口";
// map.AddRefMethod(rm);
rm = new RefMethod();
rm.Title = "重新导入实体字段"; // "设计表单";
rm.ClassMethodName = this.toString() + ".ReSetFrm";
rm.Warning = "现有的表单字段将会被清除,重新导入的字段会被增加上去,数据不会变化,导入需慎重。";
rm.Visable = true;
rm.refMethodType = RefMethodType.Func;
//rm.GroupName = "开发接口";
map.AddRefMethod(rm);
this.set_enMap(map);
return this.get_enMap();
}
///#endregion
public final String CreateWorkID() throws Exception {
long workid = bp.wf.Dev2Interface.Node_CreateBlankWork(this.getFlowNo());
//给当前的流程实例做标记.
bp.wf.GenerWorkFlow gwf = new bp.wf.GenerWorkFlow(workid);
gwf.setPFlowNo(this.getFrmID());
gwf.SetPara("FlowNewEntity", "1"); //设置标记等到流程结束后自动写入到Dict一笔记录.
gwf.SetPara("MenuNo", this.getNo()); //菜单编号.
gwf.setPWorkID(gwf.getWorkID()); //实体保存的ID 与 流程ID一致。
gwf.Update();
return String.valueOf(workid);
}
///#region 执行方法.
/**
@return
*/
public final String DoAlert()
{
return "您需要转入流程设计器去设计流程.";
// return "../../CCBill/Admin/MethodParas.htm?No=" + this.MyPK;
}
/**
@return
*/
public final String ReSetFrm() throws Exception {
//如果是发起流程的方法,就要表单的字段复制到,流程的表单上去.
bp.wf.httphandler.WF_Admin_FoolFormDesigner_ImpExp handler = new bp.wf.httphandler.WF_Admin_FoolFormDesigner_ImpExp();
// handler.AddPara
handler.Imp_CopyFrm("ND" + Integer.parseInt(this.getFlowNo() + "01"), this.getFrmID());
return "执行成功,您需要转入流程设计器查看表单.";
}
@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.*;
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,363 @@
package bp.ccbill.template;
import bp.da.*;
import bp.en.Map;
import bp.web.*;
import bp.en.*; import bp.en.Map;
import bp.sys.*;
/**
*/
public class MethodFunc 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 getMsgErr() {
return this.GetValStringByKey(MethodAttr.MsgErr);
}
public final void setMsgErr(String value) {
this.SetValByKey(MethodAttr.MsgErr, value);
}
public final String getMsgSuccess() {
return this.GetValStringByKey(MethodAttr.MsgSuccess);
}
public final void setMsgSuccess(String value) {
this.SetValByKey(MethodAttr.MsgSuccess, value);
}
public final String getTag1() {
return this.GetValStringByKey(MethodAttr.Tag1);
}
public final void setTag1(String value) {
this.SetValByKey(MethodAttr.Tag1, value);
}
public final String getDocs() {
return this.GetValStringByKey(MethodAttr.Docs);
}
public final void setDocs(String value) {
this.SetValByKey(MethodAttr.Docs, value);
}
public final String getMethodDocUrl() throws Exception {
String s = this.GetValStringByKey(MethodAttr.MethodDoc_Url);
if (DataType.IsNullOrEmpty(s) == true)
{
s = "http://192.168.0.100/MyPath/xxx.xx";
}
return s;
}
public final void setMethodDocUrl(String value) {
this.SetValByKey(MethodAttr.MethodDoc_Url, value);
}
/**
sql.
*/
public final String getMethodDocSQL() throws Exception {
String strs = this.GetBigTextFromDB("SQLScript");
if (DataType.IsNullOrEmpty(strs) == true)
{
return this.getMethodDocSQLDemo(); //返回默认信息.
}
return strs;
}
public final void setMethodDocSQL(String value) throws Exception {
this.SaveBigTxtToDB("SQLScript", value);
}
/**
demo.
*/
public final String getMethodDocTypeScriptDemo() throws Exception {
String file = bp.difference.SystemConfig.getCCFlowAppPath() + "WF/CCBill/Admin/MethodDoc/MethodDocDemoTS.txt";
String doc = DataType.ReadTextFile(file); //读取文件.
doc = doc.replace("/#", "+"); //为什么?
doc = doc.replace("/$", "-"); //为什么?
doc = doc.replace("@FrmID", this.getFrmID());
return doc;
}
public final String getMethodDocJavaScriptDemo() throws Exception {
String file = bp.difference.SystemConfig.getCCFlowAppPath() + "WF/CCBill/Admin/MethodDoc/MethodDocDemoJS.txt";
String doc = DataType.ReadTextFile(file); //读取文件.
doc = doc.replace("/#", "+"); //为什么?
doc = doc.replace("/$", "-"); //为什么?
doc = doc.replace("@FrmID", this.getFrmID());
return doc;
}
public final String getMethodDocSQLDemo() throws Exception {
String file = bp.difference.SystemConfig.getCCFlowAppPath() + "WF/CCBill/Admin/MethodDoc/MethodDocDemoSQL.txt";
String doc = DataType.ReadTextFile(file); //读取文件.
doc = doc.replace("@FrmID", this.getFrmID());
return doc;
}
/**
JS.
@return
*/
public final String Gener_MethodDoc_JavaScript() throws Exception {
return this.getMethodDocJavaScript();
}
public final String Gener_MethodDoc_JavaScript_function() throws Exception {
String paras = "";
MapAttrs mattrs = new MapAttrs(this.getNo());
for (MapAttr item : mattrs.ToJavaList())
{
paras += item.getKeyOfEn() + ",";
}
if (mattrs.size() > 1)
{
paras = paras.substring(0, paras.length() - 1);
}
String strs = " function " + this.getMethodID() + "(" + paras + ") {";
strs += this.getMethodDocJavaScript();
strs += "}";
return strs;
}
/**
SQL
@return
*/
public final String Gener_MethodDoc_SQL() throws Exception {
return this.getMethodDocSQL();
}
/**
* SQL
* @return
*/
public String SaveSQLScript(String sql) throws Exception
{
this.setMethodDocSQL(sql);
return "保存成功.";
}
/**
js.
*/
public final String getMethodDocJavaScript() throws Exception {
String strs = this.GetBigTextFromDB("JSScript");
if (DataType.IsNullOrEmpty(strs) == true)
{
return this.getMethodDocJavaScriptDemo();
}
strs = strs.replace("/#", "+");
strs = strs.replace("/$", "-");
return strs;
}
public final void setMethodDocJavaScript(String value) throws Exception {
this.SaveBigTxtToDB("JSScript", value);
}
/**
ts.
*/
public final String getMethodDocTypeScript() throws Exception {
String strs = this.GetBigTextFromDB("TSScript");
if (DataType.IsNullOrEmpty(strs) == true)
{
return this.getMethodDocTypeScriptDemo();
}
strs = strs.replace("/#", "+");
strs = strs.replace("/$", "-");
return strs;
}
public final void setMethodDocTypeScript(String value) throws Exception {
this.SaveBigTxtToDB("TSScript", value);
}
/**
@0=SQL@1=URL@2=JavaScript@3=
*/
public final int getMethodDocTypeOfFunc() {
return this.GetValIntByKey(MethodAttr.MethodDocTypeOfFunc);
}
public final void setMethodDocTypeOfFunc(int value) {
this.SetValByKey(MethodAttr.MethodDocTypeOfFunc, 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 MethodFunc()
{
}
public MethodFunc(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.Icon, null, "图标", true, false, 0, 50, 10, true);
map.AddTBString(MethodAttr.Mark, null, "功能说明", true, false, 0, 900, 10, true);
map.SetHelperAlert(MethodAttr.Mark, "对于该功能的描述.");
//是否显示到列表.
map.AddBoolean(MethodAttr.IsList, false, "是否显示在列表?", true, true);
// map.AddTBStringDoc(MethodAttr.Docs, null, "功能说明", true, false, true);
// map.AddDDLSysEnum(MethodAttr.WhatAreYouTodo, 0, "执行完毕后干啥?", true, true, MethodAttr.WhatAreYouTodo,
// "@0=关闭提示窗口@1=关闭提示窗口并刷新@2=转入到Search.htm页面上去");
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.Docs, null, "执行内容", true, false, 0, 300, 10, true);
map.AddTBString(MethodAttr.MsgSuccess, null, "成功提示信息", true, false, 0, 300, 10, true);
map.AddTBString(MethodAttr.MsgErr, null, "失败提示信息", true, false, 0, 300, 10, true);
///#region 外观.
// map.AddTBInt(MethodAttr.PopHeight, 100, "弹窗高度", true, false);
// map.AddTBInt(MethodAttr.PopWidth, 260, "弹窗宽度", true, false);
///#endregion 外观.
///#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 显示位置控制.
RefMethod rm = new RefMethod();
//rm.Title = "方法参数"; // "设计表单";
//rm.ClassMethodName = this.ToString() + ".DoParas";
//rm.Visable = true;
//rm.refMethodType = RefMethodType.RightFrameOpen;
//rm.Target = "_blank";
//rm.GroupName = "开发接口";
// map.AddRefMethod(rm);
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() {
return "../../CCBill/Admin/MethodParas.htm?No=" + this.getNo();
}
/**
@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,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…
Cancel
Save