📄 moneyflag.java
字号:
//Source file: D:\tomcat\webapps\wuyang\WEB-INF\classes\src\wuyang\src\MoneyFlag.java
package src.wuyang;
import src.com.*;
import java.sql.*;
import java.io.*;
public class MoneyFlag extends ShangObject
{
/**
货币编号
*/
private int moneyFlag;
/**
货币描述
*/
private String moneyFlagDesc;
/* Access method for the moneyFlag property.
*
* @return the current value of the moneyFlag property
*/
public int getMoneyFlag()
{
return moneyFlag;
}
/**
* Sets the value of the moneyFlag property.
*
* @param aContractId the new value of the moneyFlag property
*/
public void setMoneyFlag(int aMoneyFlag)
{
moneyFlag = aMoneyFlag;
}
/**
* Access method for the moneyFlagDesc property.
*
* @return the current value of the moneyFlagDesc property
*/
public String getMoneyFlagDesc()
{
return moneyFlagDesc;
}
/**
* Sets the value of the moneyFlagDesc property.
*
* @param aCustomerId the new value of the moneyFlagDesc property
*/
public void setMoneyFlagDesc(String aMoneyFlagDesc)
{
moneyFlagDesc = setChnString(aMoneyFlagDesc);
}
public MoneyFlag()
{
primarykey1Name = "moneyFlag";
primarykey1Type = 0;
tableName = "MoneyFlag";
viewName = "MoneyFlag";
numInOnePager = 10;
}
public int loadAttr()
{
try {
moneyFlag = rs.getInt("moneyFlag");
moneyFlagDesc = getRsString(rs,"moneyFlagDesc");
}
catch(SQLException e)
{
e.printStackTrace();
System.out.println("query failed!");
return -1;
}
return 1;
}
public int load(int primarykey1)
{
int rtCode;
String whereClause;
whereClause = "(" + primarykey1Name + " = " + primarykey1 + ") ";
rtCode = query( whereClause , "");
if ( rtCode < 0 ) return -1;
if ( rtCode == 0 ) return 0; //
if ( next() == -1 ) return -1;
return 1; // 成功
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -