本文整理汇总了Java中ims.correspondence.vo.CorrespondenceStatusHistoryVoCollection.size方法的典型用法代码示例。如果您正苦于以下问题:Java CorrespondenceStatusHistoryVoCollection.size方法的具体用法?Java CorrespondenceStatusHistoryVoCollection.size怎么用?Java CorrespondenceStatusHistoryVoCollection.size使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ims.correspondence.vo.CorrespondenceStatusHistoryVoCollection
的用法示例。
在下文中一共展示了CorrespondenceStatusHistoryVoCollection.size方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: open
import ims.correspondence.vo.CorrespondenceStatusHistoryVoCollection; //导入方法依赖的package包/类
/**
*
*/
private void open()
{
CorrespondenceStatusHistoryVoCollection voCollCspStatusHistory = form.getGlobalContext().Correspondence.getcurrentCspStatusHistory().sort(SortOrder.DESCENDING);
if (voCollCspStatusHistory.size() > 0)
{
DocumentStatus currentStatus = voCollCspStatusHistory.get(0).getStatus();
form.lblCurrentStatus().setValue(currentStatus.getIItemText());
form.grdHistory().getRows().clear();
for (int i= 0; i < voCollCspStatusHistory.size(); i++)
{
GenForm.grdHistoryRow row = form.grdHistory().getRows().newRow();
row.setValue(voCollCspStatusHistory.get(i));
row.setcolStatus(voCollCspStatusHistory.get(i).getStatus().getText());
row.setcolImage(voCollCspStatusHistory.get(i).getStatus().getImage());
row.setcolTemplate(voCollCspStatusHistory.get(i).getTemplateName());
if (voCollCspStatusHistory.get(i).getSysInfoIsNotNull())
{
if (voCollCspStatusHistory.get(i).getMosIsNotNull())
row.setcolChangedBy(voCollCspStatusHistory.get(i).getMos().getNameIsNotNull() ? voCollCspStatusHistory.get(i).getMos().getName().toString() : "");
if (voCollCspStatusHistory.get(i).getSysInfo().getCreationDateTime() != null)
row.setcoldteChanged(voCollCspStatusHistory.get(i).getSysInfo().getCreationDateTime().getDate() + " " + voCollCspStatusHistory.get(i).getSysInfo().getCreationDateTime().getTime());
}
}
listAvailableStatuses(currentStatus);
}
}
示例2: onBtnSignClick
import ims.correspondence.vo.CorrespondenceStatusHistoryVoCollection; //导入方法依赖的package包/类
protected void onBtnSignClick() throws PresentationLogicException
{
if (null == form.qmbSignedBy().getValue())
{
engine.showMessage("Please choose a 'signed by' entry");
return;
}
CorrespondenceDetailsVo voDocumentDetails = form.getLocalContext().getcorrespondenceDetails();
DocumentStatus lkpDocStatus = voDocumentDetails.getCurrentStatus();
voDocumentDetails.setSignedBy(form.qmbSignedBy().getValue());
// update current status
voDocumentDetails.setCurrentStatus(DocumentStatus.SIGNED);
// update Status History
voDocumentDetails.setCspStatusHistory(updateHistoryStatus(voDocumentDetails, DocumentStatus.SIGNED));
if (!saveDocumentDetails(voDocumentDetails))
{
form.qmbSignedBy().setValue(null);
// roll back signed data
voDocumentDetails.setSignedBy(null);
// roll back current status
voDocumentDetails.setCurrentStatus(lkpDocStatus);
// remove the document status history record
CorrespondenceStatusHistoryVoCollection voColl = voDocumentDetails.getCspStatusHistory();
if (voColl.size() > 0)
voColl.remove(voColl.size());
}
else
form.setMode(FormMode.VIEW);
}
示例3: onBtnSignClick
import ims.correspondence.vo.CorrespondenceStatusHistoryVoCollection; //导入方法依赖的package包/类
protected void onBtnSignClick() throws PresentationLogicException
{
if (null == form.lyrCorrespondenceDetail().tabCorrespondence().qmbSignedBy().getValue())
{
engine.showMessage("Please choose a 'signed by' entry");
return;
}
CorrespondenceDetailsVo voDocumentDetails = form.getLocalContext().getcorrespondenceDetails();
DocumentStatus lkpDocStatus = voDocumentDetails.getCurrentStatus();
voDocumentDetails.setSignedBy(form.lyrCorrespondenceDetail().tabCorrespondence().qmbSignedBy().getValue());
// update current status
voDocumentDetails.setCurrentStatus(DocumentStatus.SIGNED);
// update Status History
voDocumentDetails.setCspStatusHistory(updateHistoryStatus(voDocumentDetails, DocumentStatus.SIGNED));
if (!saveDocumentDetails(voDocumentDetails))
{
form.lyrCorrespondenceDetail().tabCorrespondence().qmbSignedBy().setValue(null);
// roll back signed data
voDocumentDetails.setSignedBy(null);
// roll back current status
voDocumentDetails.setCurrentStatus(lkpDocStatus);
// remove the document status history record
CorrespondenceStatusHistoryVoCollection voColl = voDocumentDetails.getCspStatusHistory();
if (voColl.size() > 0)
voColl.remove(voColl.size());
}
else
form.setMode(FormMode.VIEW);
}
示例4: onBtnSaveClick
import ims.correspondence.vo.CorrespondenceStatusHistoryVoCollection; //导入方法依赖的package包/类
protected void onBtnSaveClick() throws PresentationLogicException
{
if (validateUI())
{
return;
}
updateDocumentStatus(form.getLocalContext().getcorrespondenceDetails().getCurrentStatus());
if (form.lyrCorrespondenceDetail().tabCorrespondence().qmbSignedBy().getValue() == null && !form.getLocalContext().getcorrespondenceDetails().getCurrentStatus().equals(DocumentStatus.SIGNED))
{
if (saveCorrespondence(DocumentStatus.GENNOTPRINTED) == false)
{
return;
}
updateDocumentStatus(DocumentStatus.GENNOTPRINTED);
form.setMode(FormMode.VIEW);
}
else
{
CorrespondenceDetailsVo voDocumentDetails = form.getLocalContext().getcorrespondenceDetails();
DocumentStatus lkpDocStatus = voDocumentDetails.getCurrentStatus();
voDocumentDetails.setSignedBy(form.lyrCorrespondenceDetail().tabCorrespondence().qmbSignedBy().getValue());
// update current status
if (form.lyrCorrespondenceDetail().tabCorrespondence().qmbSignedBy().getValue() != null)
{
voDocumentDetails.setCurrentStatus(DocumentStatus.SIGNED);
updateDocumentStatus(voDocumentDetails.getCurrentStatus());
// update Status History
voDocumentDetails.setCspStatusHistory(updateHistoryStatus(voDocumentDetails, DocumentStatus.SIGNED));
}
if (!saveDocumentDetails(voDocumentDetails))
{
form.lyrCorrespondenceDetail().tabCorrespondence().qmbSignedBy().setValue(null);
// roll back signed data
voDocumentDetails.setSignedBy(null);
// roll back current status
voDocumentDetails.setCurrentStatus(lkpDocStatus);
// remove the document status history record
CorrespondenceStatusHistoryVoCollection voColl = voDocumentDetails.getCspStatusHistory();
if (voColl.size() > 0)
voColl.remove(voColl.size());
}
else
form.setMode(FormMode.VIEW);
if (form.getLocalContext().getcorrespondenceDetails().getCurrentStatus().equals(DocumentStatus.SIGNED))
form.btnSupplementary().setEnabled(true);
form.setMode(FormMode.VIEW);
}
}