Java 类ims.core.vo.AuditVoCollection 实例源码
项目:AvoinApotti
文件:Logic.java
private void search()
{
form.grdAudit().getRows().clear();
form.ctnDetails().htmDetails().setHTML("");
if(form.dteStart().getValue() != null && form.dteTo().getValue() == null)
{
engine.showMessage("'To' date is mandatory.");
return;
}
if(form.dteStart().getValue() == null && form.dteTo().getValue() != null)
{
engine.showMessage("'From' date is mandatory.");
return;
}
if(form.dteStart().getValue() != null
&& form.dteTo().getValue() != null
&& form.dteStart().getValue().isGreaterThan(form.dteTo().getValue()))
{
engine.showMessage("'From' date must not be after 'To' date.");
return;
}
CareContextRefVoCollection voCareContextColl = new CareContextRefVoCollection();
if (form.cmbEpisodeOfCare().getValue() != null && form.cmbCareContext().getValues().size() > 0)
{
if (form.cmbCareContext().getValue() != null)
{
voCareContextColl.add(form.cmbCareContext().getValue());
}
else
{
ArrayList arrCareContext = form.cmbCareContext().getValues();
for (int i=0; i<arrCareContext.size(); i++)
{
CareContextRefVo refVo = (CareContextRefVo)arrCareContext.get(i);
voCareContextColl.add(refVo);
}
}
}
AuditVoCollection coll = domain.listAuditRecords(form.cmbClass().getValue(), form.dteStart().getValue(), form.dteTo().getValue(),voCareContextColl, form.cmbClinicalContact().getValue(),form.getGlobalContext().Core.getPatientShort());
// WDEV-18111
if (coll == null || coll.size() == 0)
{
engine.showMessage("No matching records found");
}
for (int i=0; i<coll.size(); i++)
{
AuditVo audit = coll.get(i);
grdAuditRow row = form.grdAudit().getRows().newRow();
row.setValue(audit);
row.setTooltip(audit.getClassName());
row.setColumnClass(audit.getClassName());
row.setColumnIdentifier(audit.getClassIdentifier());
row.setColumnHost(audit.getHostName());
if (audit.getAuditDateTime() != null)
{
row.setColumnDateTime(audit.getAuditDateTime().toString(DateTimeFormat.STANDARD_SECS));
}
if (audit.getAuditUser() != null)
row.setColumnUser(audit.getAuditUser());
}
}
项目:openMAXIMS
文件:Logic.java
private void search()
{
form.grdAudit().getRows().clear();
form.ctnDetails().htmDetails().setHTML("");
if(form.dteStart().getValue() != null && form.dteTo().getValue() == null)
{
engine.showMessage("'To' date is mandatory.");
return;
}
if(form.dteStart().getValue() == null && form.dteTo().getValue() != null)
{
engine.showMessage("'From' date is mandatory.");
return;
}
if(form.dteStart().getValue() != null
&& form.dteTo().getValue() != null
&& form.dteStart().getValue().isGreaterThan(form.dteTo().getValue()))
{
engine.showMessage("'From' date must not be after 'To' date.");
return;
}
CareContextRefVoCollection voCareContextColl = new CareContextRefVoCollection();
if (form.cmbEpisodeOfCare().getValue() != null && form.cmbCareContext().getValues().size() > 0)
{
if (form.cmbCareContext().getValue() != null)
{
voCareContextColl.add(form.cmbCareContext().getValue());
}
else
{
ArrayList arrCareContext = form.cmbCareContext().getValues();
for (int i=0; i<arrCareContext.size(); i++)
{
CareContextRefVo refVo = (CareContextRefVo)arrCareContext.get(i);
voCareContextColl.add(refVo);
}
}
}
AuditVoCollection coll = domain.listAuditRecords(form.cmbClass().getValue(), form.dteStart().getValue(), form.dteTo().getValue(),voCareContextColl, form.cmbClinicalContact().getValue(),form.getGlobalContext().Core.getPatientShort());
form.getGlobalContext().Admin.setDataViewSearchCriteria(getSearchCriteria());//WDEV-19389
// WDEV-18111
if (coll == null || coll.size() == 0)
{
engine.showMessage("No matching records found");
}
for (int i=0; i<coll.size(); i++)
{
AuditVo audit = coll.get(i);
grdAuditRow row = form.grdAudit().getRows().newRow();
row.setValue(audit);
row.setTooltip(audit.getClassName());
row.setColumnClass(audit.getClassName());
row.setColumnIdentifier(audit.getClassIdentifier());
row.setColumnHost(audit.getHostName());
if (audit.getAuditDateTime() != null)
{
row.setColumnDateTime(audit.getAuditDateTime().toString(DateTimeFormat.STANDARD_SECS));
}
if (audit.getAuditUser() != null)
row.setColumnUser(audit.getAuditUser());
}
}
项目:openMAXIMS
文件:Logic.java
private void search()
{
form.grdAudit().getRows().clear();
form.ctnDetails().htmDetails().setHTML("");
if(form.dteStart().getValue() != null && form.dteTo().getValue() == null)
{
engine.showMessage("'To' date is mandatory.");
return;
}
if(form.dteStart().getValue() == null && form.dteTo().getValue() != null)
{
engine.showMessage("'From' date is mandatory.");
return;
}
if(form.dteStart().getValue() != null
&& form.dteTo().getValue() != null
&& form.dteStart().getValue().isGreaterThan(form.dteTo().getValue()))
{
engine.showMessage("'From' date must not be after 'To' date.");
return;
}
CareContextRefVoCollection voCareContextColl = new CareContextRefVoCollection();
if (form.cmbEpisodeOfCare().getValue() != null && form.cmbCareContext().getValues().size() > 0)
{
if (form.cmbCareContext().getValue() != null)
{
voCareContextColl.add(form.cmbCareContext().getValue());
}
else
{
ArrayList arrCareContext = form.cmbCareContext().getValues();
for (int i=0; i<arrCareContext.size(); i++)
{
CareContextRefVo refVo = (CareContextRefVo)arrCareContext.get(i);
voCareContextColl.add(refVo);
}
}
}
AuditVoCollection coll = domain.listAuditRecords(form.cmbClass().getValue(), form.dteStart().getValue(), form.dteTo().getValue(),voCareContextColl, form.cmbClinicalContact().getValue(),form.getGlobalContext().Core.getPatientShort());
// WDEV-18111
if (coll == null || coll.size() == 0)
{
engine.showMessage("No matching records found");
}
for (int i=0; i<coll.size(); i++)
{
AuditVo audit = coll.get(i);
grdAuditRow row = form.grdAudit().getRows().newRow();
row.setValue(audit);
row.setTooltip(audit.getClassName());
row.setColumnClass(audit.getClassName());
row.setColumnIdentifier(audit.getClassIdentifier());
row.setColumnHost(audit.getHostName());
if (audit.getAuditDateTime() != null)
{
row.setColumnDateTime(audit.getAuditDateTime().toString(DateTimeFormat.STANDARD_SECS));
}
if (audit.getAuditUser() != null)
row.setColumnUser(audit.getAuditUser());
}
}
项目:openmaxims-linux
文件:Logic.java
private void search()
{
form.grdAudit().getRows().clear();
form.ctnDetails().htmDetails().setHTML("");
if(form.dteStart().getValue() != null && form.dteTo().getValue() == null)
{
engine.showMessage("'To' date is mandatory.");
return;
}
if(form.dteStart().getValue() == null && form.dteTo().getValue() != null)
{
engine.showMessage("'From' date is mandatory.");
return;
}
if(form.dteStart().getValue() != null
&& form.dteTo().getValue() != null
&& form.dteStart().getValue().isGreaterThan(form.dteTo().getValue()))
{
engine.showMessage("'From' date must not be after 'To' date.");
return;
}
CareContextRefVoCollection voCareContextColl = new CareContextRefVoCollection();
if (form.cmbEpisodeOfCare().getValue() != null && form.cmbCareContext().getValues().size() > 0)
{
if (form.cmbCareContext().getValue() != null)
{
voCareContextColl.add(form.cmbCareContext().getValue());
}
else
{
ArrayList arrCareContext = form.cmbCareContext().getValues();
for (int i=0; i<arrCareContext.size(); i++)
{
CareContextRefVo refVo = (CareContextRefVo)arrCareContext.get(i);
voCareContextColl.add(refVo);
}
}
}
AuditVoCollection coll = domain.listAuditRecords(form.cmbClass().getValue(), form.dteStart().getValue(), form.dteTo().getValue(),voCareContextColl, form.cmbClinicalContact().getValue(),form.getGlobalContext().Core.getPatientShort());
// WDEV-18111
if (coll == null || coll.size() == 0)
{
engine.showMessage("No matching records found");
}
for (int i=0; i<coll.size(); i++)
{
AuditVo audit = coll.get(i);
grdAuditRow row = form.grdAudit().getRows().newRow();
row.setValue(audit);
row.setTooltip(audit.getClassName());
row.setColumnClass(audit.getClassName());
row.setColumnIdentifier(audit.getClassIdentifier());
row.setColumnHost(audit.getHostName());
if (audit.getAuditDateTime() != null)
{
row.setColumnDateTime(audit.getAuditDateTime().toString(DateTimeFormat.STANDARD_SECS));
}
if (audit.getAuditUser() != null)
row.setColumnUser(audit.getAuditUser());
}
}