first commit

This commit is contained in:
2025-07-28 13:56:49 +05:30
commit e9eb805edb
3438 changed files with 520990 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
package wenrgise.common.vo;
import java.io.Serializable;
public class BaseDetailInfo implements Serializable {}

View File

@@ -0,0 +1,144 @@
package wenrgise.common.vo;
import java.io.Serializable;
import java.util.ArrayList;
public class BaseDetailVO extends BaseVO implements Serializable {
private int recordsPerPage = 0;
private int maxPage = 0;
private long currentPage = 0L;
private long currentSlot = 0L;
private long totalDetailRecord = 0L;
private ArrayList oThisPageData = null;
private ArrayList oAllPageData = null;
int rowAdded = 0;
int rowDeleted = 0;
public BaseDetailVO() {
this.oThisPageData = new ArrayList();
this.oAllPageData = new ArrayList();
this.currentSlot = 0L;
}
public void reset() {
this.currentPage = 0L;
this.currentSlot = 0L;
this.oThisPageData = new ArrayList();
this.oAllPageData = new ArrayList();
}
public ArrayList getOAllPageData() {
return this.oAllPageData;
}
public void setOAllPageData(ArrayList newOAllPageData) {
this.oAllPageData = newOAllPageData;
}
public ArrayList getOThisPageData() {
return this.oThisPageData;
}
public void setOThisPageData(ArrayList newOThisPageData) {
this.oThisPageData = newOThisPageData;
}
public long getTotalDetailRecord() {
return this.totalDetailRecord;
}
public void setTotalDetailRecord(long newTotalDetailRecord) {
this.totalDetailRecord = newTotalDetailRecord;
}
public int getRowAdded() {
return this.rowAdded;
}
public void setRowAdded(int newRowAdded) {
this.rowAdded = newRowAdded;
}
public int getRowDeleted() {
return this.rowDeleted;
}
public void setRowDeleted(int newRowDeleted) {
this.rowDeleted = newRowDeleted;
}
public long getCurrentPage() {
return this.currentPage;
}
public void setCurrentPage(long newCurrentPage) {
this.currentPage = newCurrentPage;
}
public long getCurrentSlot() {
return this.currentSlot;
}
public void setCurrentSlot(long newCurrentSlot) {
this.currentSlot = newCurrentSlot;
}
public int getMaxPage() {
return this.maxPage;
}
public void setMaxPage(int newMaxPage) {
this.maxPage = newMaxPage;
}
public int getRecordsPerPage() {
return this.recordsPerPage;
}
public void setRecordsPerPage(int newRecordsPerPage) {
this.recordsPerPage = newRecordsPerPage;
}
public long getSlot(long lPageRequested) {
return (lPageRequested % this.maxPage != 0L) ? (lPageRequested / this.maxPage + 1L) : (lPageRequested / this.maxPage);
}
public int getRelativeStart(long lPageRequested) {
long lAbsoluteIndex = (lPageRequested - 1L) * this.recordsPerPage + 1L;
return (int)(lAbsoluteIndex % (this.recordsPerPage * this.maxPage)) - 1;
}
public int getRelativeEnd(long lPageRequested) {
long lAbsoluteIndexStart = (lPageRequested - 1L) * this.recordsPerPage;
long lAbsoluteEnd = (lAbsoluteIndexStart + this.recordsPerPage < this.totalDetailRecord) ? (lAbsoluteIndexStart + this.recordsPerPage) : this.totalDetailRecord;
int iMod = (int)(lAbsoluteEnd % (this.recordsPerPage * this.maxPage));
if (iMod != 0)
return iMod - 1;
return this.recordsPerPage * this.maxPage - 1;
}
public long getAbsoluteStart(long lPageRequested) {
return (lPageRequested - 1L) * this.recordsPerPage + 1L;
}
public long getAbsoluteEnd(long lPageRequested) {
long lStart = (lPageRequested - 1L) * this.recordsPerPage;
return (lStart + (this.recordsPerPage * this.maxPage) < this.totalDetailRecord) ? (lStart + (this.recordsPerPage * this.maxPage)) : this.totalDetailRecord;
}
public long getSlotStartPosition() {
return (this.currentSlot - 1L) * this.recordsPerPage * this.maxPage + 1L;
}
public long getSlotLastPosition() {
return (this.currentSlot * this.recordsPerPage * this.maxPage < this.totalDetailRecord) ? (this.currentSlot * this.recordsPerPage * this.maxPage) : this.totalDetailRecord;
}
}

View File

@@ -0,0 +1,85 @@
package wenrgise.common.vo;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import wenrgise.common.bean.BaseHeaderBean;
import wenrgise.common.exception.EnrgiseApplicationException;
public class BaseHeaderVO extends BaseVO implements Serializable {
private ArrayList oHeaderVOTable = new ArrayList();
private long positionRequested = 0L;
private long currentSlot = 0L;
private long totalCount = 0L;
private long maxHeaderSize = 0L;
private Timestamp oWhenPicked = null;
public ArrayList getOHeaderVOTable() {
return this.oHeaderVOTable;
}
public long getHeaderStartPosition() throws EnrgiseApplicationException {
int iSlot = getSlot();
return (iSlot - 1) * this.maxHeaderSize + 1L;
}
public long getHeaderLastPosition() throws EnrgiseApplicationException {
int iSlot = getSlot();
return (iSlot * this.maxHeaderSize < this.totalCount) ? (iSlot * this.maxHeaderSize) : this.totalCount;
}
public int getSlot() throws EnrgiseApplicationException {
if (this.positionRequested < 0L || this.positionRequested > this.totalCount)
throw new EnrgiseApplicationException("wenrgise.common.navigation", "E");
return ((int)(this.positionRequested % this.maxHeaderSize) != 0) ? (int)((int)this.positionRequested / this.maxHeaderSize + 1L) : (int)(this.positionRequested / this.maxHeaderSize);
}
public void setOHeaderVOTable(ArrayList newOHeaderVOTable) {
this.oHeaderVOTable = newOHeaderVOTable;
}
public BaseHeaderBean getHeaderRecord(int iPosition) throws EnrgiseApplicationException {
if (this.oHeaderVOTable == null)
throw new EnrgiseApplicationException("wenrgise.common.norecordfound", "M");
if (this.oHeaderVOTable.size() == 0 || this.oHeaderVOTable.size() < iPosition)
throw new EnrgiseApplicationException("wenrgise.common.norecordfound", "M");
return this.oHeaderVOTable.get(iPosition - 1);
}
public long getPositionRequested() {
return this.positionRequested;
}
public void setPositionRequested(long newPositionRequested) {
this.positionRequested = newPositionRequested;
}
public long getCurrentSlot() {
return this.currentSlot;
}
public void setCurrentSlot(long newCurrentSlot) {
this.currentSlot = newCurrentSlot;
}
public long getTotalCount() {
return this.totalCount;
}
public void setTotalCount(long newTotalCount) {
this.totalCount = newTotalCount;
}
public long getMaxHeaderSize() {
return this.maxHeaderSize;
}
public void setMaxHeaderSize(long newMaxHeaderSize) {
this.maxHeaderSize = newMaxHeaderSize;
}
}

View File

@@ -0,0 +1,45 @@
package wenrgise.common.vo;
import java.io.Serializable;
public class BaseQueryVO implements Serializable {
private long positionRequested = 0L;
private String headerPrimaryKey = null;
private int maxHeaderSize = 0;
private String workListId;
public long getPositionRequested() {
return this.positionRequested;
}
public void setPositionRequested(long newPositionRequested) {
this.positionRequested = newPositionRequested;
}
public String getHeaderPrimaryKey() {
return this.headerPrimaryKey;
}
public void setHeaderPrimaryKey(String newHeaderPrimaryKey) {
this.headerPrimaryKey = newHeaderPrimaryKey;
}
public int getMaxHeaderSize() {
return this.maxHeaderSize;
}
public void setMaxHeaderSize(int newMaxHeaderSize) {
this.maxHeaderSize = newMaxHeaderSize;
}
public String getWorkListId() {
return this.workListId;
}
public void setWorkListId(String newWorkListId) {
this.workListId = newWorkListId;
}
}

View File

@@ -0,0 +1,36 @@
package wenrgise.common.vo;
import java.io.Serializable;
import java.sql.Timestamp;
public class BaseVO implements Serializable {
private Timestamp oWhenPicked = null;
private long firstPosition = 0L;
private long lastPosition = 0L;
public Timestamp getOWhenPicked() {
return this.oWhenPicked;
}
public void setOWhenPicked(Timestamp newOWhenPicked) {
this.oWhenPicked = newOWhenPicked;
}
public long getFirstPosition() {
return this.firstPosition;
}
public void setFirstPosition(long newFirstPosition) {
this.firstPosition = newFirstPosition;
}
public long getLastPosition() {
return this.lastPosition;
}
public void setLastPosition(long newLastPosition) {
this.lastPosition = newLastPosition;
}
}

View File

@@ -0,0 +1,30 @@
package wenrgise.common.vo;
import java.io.Serializable;
public class ComboVO implements Serializable {
private String label;
private String value;
public ComboVO(String newLabel, String newValue) {
this.label = newLabel;
this.value = newValue;
}
public String getLabel() {
return this.label;
}
public void setLabel(String newLabel) {
this.label = newLabel;
}
public String getValue() {
return this.value;
}
public void setValue(String newValue) {
this.value = newValue;
}
}

View File

@@ -0,0 +1,25 @@
package wenrgise.common.vo;
import java.io.Serializable;
public class DetailSizeValues implements Serializable {
int detailRecordPerPage = 0;
int maxPages = 0;
public int getDetailRecordPerPage() {
return this.detailRecordPerPage;
}
public void setDetailRecordPerPage(int newDetailRecordPerPage) {
this.detailRecordPerPage = newDetailRecordPerPage;
}
public int getMaxPages() {
return this.maxPages;
}
public void setMaxPages(int newMaxPages) {
this.maxPages = newMaxPages;
}
}

View File

@@ -0,0 +1,96 @@
package wenrgise.common.vo;
import java.io.Serializable;
import java.util.Properties;
public class LovQueryVO extends Properties implements Serializable {
private String searchField1;
private String searchField2;
private int level;
private int finalLevel;
private int initialLevel;
private String searchField3;
private String searchField4;
private String searchField5;
private String searchField6;
public String getSearchField1() {
return this.searchField1;
}
public void setSearchField1(String newSearchField1) {
this.searchField1 = newSearchField1;
}
public String getSearchField2() {
return this.searchField2;
}
public void setSearchField2(String newSearchField2) {
this.searchField2 = newSearchField2;
}
public int getLevel() {
return this.level;
}
public void setLevel(int newLevel) {
this.level = newLevel;
}
public int getFinalLevel() {
return this.finalLevel;
}
public void setFinalLevel(int newFinalLevel) {
this.finalLevel = newFinalLevel;
}
public int getInitialLevel() {
return this.initialLevel;
}
public void setInitialLevel(int newInitialLevel) {
this.initialLevel = newInitialLevel;
}
public String getSearchField3() {
return this.searchField3;
}
public void setSearchField3(String newSearchField3) {
this.searchField3 = newSearchField3;
}
public String getSearchField4() {
return this.searchField4;
}
public void setSearchField4(String newSearchField4) {
this.searchField4 = newSearchField4;
}
public String getSearchField5() {
return this.searchField5;
}
public void setSearchField5(String newSearchField5) {
this.searchField5 = newSearchField5;
}
public String getSearchField6() {
return this.searchField6;
}
public void setSearchField6(String newSearchField6) {
this.searchField6 = newSearchField6;
}
}

View File

@@ -0,0 +1,66 @@
package wenrgise.common.vo;
import java.io.Serializable;
import java.util.ArrayList;
public class LovVO implements Serializable {
private ArrayList detailList;
private ArrayList headerList;
private ArrayList visibilityList;
private int finalLevel;
private int level;
private int initialLevel;
public ArrayList getDetailList() {
return this.detailList;
}
public void setDetailList(ArrayList newDetailList) {
this.detailList = newDetailList;
}
public ArrayList getHeaderList() {
return this.headerList;
}
public void setHeaderList(ArrayList newHeaderList) {
this.headerList = newHeaderList;
}
public ArrayList getVisibilityList() {
return this.visibilityList;
}
public void setVisibilityList(ArrayList newVisibilityList) {
this.visibilityList = newVisibilityList;
}
public int getFinalLevel() {
return this.finalLevel;
}
public void setFinalLevel(int newFinalLevel) {
this.finalLevel = newFinalLevel;
}
public int getLevel() {
return this.level;
}
public void setLevel(int newLevel) {
this.level = newLevel;
}
public int getInitialLevel() {
return this.initialLevel;
}
public void setInitialLevel(int newInitialLevel) {
this.initialLevel = newInitialLevel;
}
}

View File

@@ -0,0 +1,57 @@
package wenrgise.common.vo;
import java.io.Serializable;
import java.util.ArrayList;
import wenrgise.common.bean.BaseHeaderBean;
public class ThisPageVO extends BaseVO implements Serializable {
private BaseHeaderBean oHeaderBean;
private ArrayList oDetailList;
private String screenMode;
private String screenName;
private int actionName;
public BaseHeaderBean getOHeaderBean() {
return this.oHeaderBean;
}
public void setOHeaderBean(BaseHeaderBean newOHeaderBean) {
this.oHeaderBean = newOHeaderBean;
}
public ArrayList getODetailList() {
return this.oDetailList;
}
public void setODetailList(ArrayList newODetailList) {
this.oDetailList = newODetailList;
}
public String getScreenMode() {
return this.screenMode;
}
public void setScreenMode(String newScreenMode) {
this.screenMode = newScreenMode;
}
public String getScreenName() {
return this.screenName;
}
public void setScreenName(String newScreenName) {
this.screenName = newScreenName;
}
public int getActionName() {
return this.actionName;
}
public void setActionName(int newActionName) {
this.actionName = newActionName;
}
}