public class ConditionAxis extends java.lang.Object implements StabilityConstants
ADVANCEDPULLSAMPLE_ASSIGNDEPARTMENT, ADVANCEDPULLSAMPLE_ASSIGNTO, ADVANCEDPULLSAMPLE_COLUMNVALUES, ADVANCEDPULLSAMPLE_COPIES, ADVANCEDPULLSAMPLE_CREATE, ADVANCEDPULLSAMPLE_CREATEDDISTINCTLABORATORYSAMPLES, ADVANCEDPULLSAMPLE_CREATEMULTIPLEREUSETESTINGSAMPLE, ADVANCEDPULLSAMPLE_CREATESDI, ADVANCEDPULLSAMPLE_CREATEUNIQUESAMPLEPERCONTAINER, ADVANCEDPULLSAMPLE_DEFERSAMPLECREATION, ADVANCEDPULLSAMPLE_DEVIATION, ADVANCEDPULLSAMPLE_DEVIATIONFLAG, ADVANCEDPULLSAMPLE_EARLYGRACEPERIOD, ADVANCEDPULLSAMPLE_GRACEPERIOD, ADVANCEDPULLSAMPLE_GRACEPERIODDETAILS, ADVANCEDPULLSAMPLE_GRACEPERIODUNIT, ADVANCEDPULLSAMPLE_GRCPERIOD, ADVANCEDPULLSAMPLE_INCIDENTTEMPLATE, ADVANCEDPULLSAMPLE_MESSAGE, ADVANCEDPULLSAMPLE_MULTIPLYQTYBYSAMPLECOUNT, ADVANCEDPULLSAMPLE_PULLAMOUNT, ADVANCEDPULLSAMPLE_QUANTITY, ADVANCEDPULLSAMPLE_SPECS, ADVANCEDPULLSAMPLE_TEMPLATEID, ADVANCEDPULLSAMPLE_UNITS, ADVANCEDPULLSAMPLE_WORKITEMS, ADVANCEDPULLSAMPLE_WORKORDER, CONDITION_COLUMNLABELS, CONDITION_COLUMNS, DAY, EVENT_STATUS_CANCELLED, EVENT_STATUS_DONE, EVENT_STATUS_ERROR, EVENT_STATUS_ERRORACKNOWLEDGED, EVENT_STATUS_SCHEDULED, EXECUTEAHEADUNIT_DAY, EXECUTEAHEADUNIT_MONTH, EXECUTEAHEADUNIT_WEEK, EXECUTEAHEADUNIT_YEAR, FROM_WHEN, GRACE_PERIOD_UNIT, HOUR, ITEM_CONDITIONS, ITEM_PLANITEMWORKITEMS, ITEM_PLANWORKITEMS, ITEM_TIMEPOINTS, MONTH, ORIENTATION_INVERTED, ORIENTATION_UPRIGHT, PLANITEM_ROWSTATUS_DELETE, PLANITEM_ROWSTATUS_INSERT, PLANITEM_ROWSTATUS_RETRIEVE, PLANITEM_ROWSTATUS_UPDATE, PLANITEM_STATUS_DISABLED, PLANITEMWORKITEM_SCHEDULEPLANITEMID, PLANTYPE_PROTOCOL, PLANTYPE_STUDY, PLANTYPE_TEMPLATE, PLANWORKITEM_COLUMNLABELS, PLANWORKITEM_COLUMNS, PLANWORKITEM_CONTAINERPERREPEATFLAG, PLANWORKITEM_CONTAINERPERTESTFLAG, PLANWORKITEM_CONTINGENTFLAG, PLANWORKITEM_DEPARTMENTID, PLANWORKITEM_DESTRUCTIVETESTFLAG, PLANWORKITEM_DUEDTOFFSET, PLANWORKITEM_DUEDTOFFSETTIMEUNIT, PLANWORKITEM_NUMREPEATS, PLANWORKITEM_QUANTITY, PLANWORKITEM_QUANTITYTYPE, PLANWORKITEM_QUANTITYUNIT, PLANWORKITEM_REUSECONTAINERFLAG, PLANWORKITEM_SCHEDULEPLANID, PLANWORKITEM_WORKITEMID, PLANWORKITEM_WORKITEMINSTANCE, PLANWORKITEM_WORKITEMVERSIONID, SCHEDULECONDITIONID, SCHEDULEPLANID, SCHEDULETIMEPOINTID, SDC_LV_SCHEDULECONDITION, SDC_PROTOCOLSDC, SDC_SCHEDULEPLAN, SDC_SCHEDULEPLANITEM, SDC_SDIWORKITEM, SDC_STORAGEENVSDC, SDC_STUDYSDC, STABILITYTASK_ADVANCEDPULLSAMPLE, STABILITYTASK_CREATEWORKORDER, STABILITYTASK_DISPOSE, STABILITYTASK_MOVE, STABILITYTASK_PULLSAMPLE, STABILITYTASK_SHAKE, STUDY_STATUS_ACTIVE, STUDY_STATUS_CANCELLED, STUDY_STATUS_COMPLETED, STUDY_STATUS_NOTSTARTED, STUDY_STATUS_PENDINGAPPROVAL, STUDY_STATUS_REJECT, STUDY_STATUS_REQUESTDRAFT, STUDY_STATUS_SUSPENDED, TIMEPOINT_COLUMNLABELS, TIMEPOINT_COLUMNS, TIMEUNIT_DAY, TIMEUNIT_HOUR, TIMEUNIT_MONTH, TIMEUNIT_WEEK, TIMEUNIT_YEAR, VALIDEXECUTEAHEADUNIT, VALIDORIENTATION, VALIDSTARTCRITERIA, VALIDTIMEUNITUNIT, WEEK, YEAR| Constructor and Description |
|---|
ConditionAxis(ScheduleGrid grid) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
addCondition() |
java.lang.String |
addCondition(java.lang.String label) |
java.lang.String |
addCondition(java.lang.String label,
java.lang.String description,
java.lang.String environment,
java.lang.String orientation) |
int |
addItem(java.util.HashMap values)
Adds an item to the condition axis.
|
void |
copyAllConditionsFromTemplate(java.lang.String planids)
Copies all conditions from a template based on the provided plan IDs.
|
void |
copyAllConditionsFromTemplate(java.lang.String planids,
boolean includeAllTimepoints)
Copies the conditions from a template to the current instance of ConditionAxis.
|
java.lang.String |
copyCondition(java.lang.String fromconditionid,
java.lang.String label) |
java.lang.String |
copyCondition(java.lang.String fromconditionid,
java.lang.String label,
java.lang.String description,
java.lang.String environment,
java.lang.String orientation) |
void |
copyConditionsFromTemplate(java.lang.String planids,
java.lang.String conditionList)
Copies the conditions from a template to the current instance of ConditionAxis.
|
void |
copyConditionsFromTemplate(java.lang.String planids,
java.lang.String conditionList,
boolean includeAllTimePoints)
Copies the conditions from a template to the current instance of ConditionAxis.
|
com.labvantage.sapphire.stability.ConditionAxis |
dangerouslyGetConditionAxis() |
void |
deleteCondition(java.lang.String conditionid)
Deletes a condition based on the given condition ID.
|
void |
editItem(int row,
java.util.HashMap values)
Edits an item at the specified row in the condition axis.
|
java.lang.String |
findConditionIdByProtocolPlanConditionId(java.lang.String protocolPlanConditionId)
Finds the condition ID by the given protocol plan condition ID.
|
int |
findRowById(java.lang.String conditionid) |
java.lang.String |
getActualRemainingQuantity(java.lang.String conditionid)
Returns the actual remaining quantity for a given condition ID.
|
java.lang.String |
getActualReserveQuantity(java.lang.String conditionid)
Returns the actual reserve quantity for a given condition ID.
|
java.lang.String |
getAutoCalcContainersFlag(java.lang.String conditionid)
Retrieves the auto calculation containers flag for a given condition ID.
|
DataStore |
getConditionAxisItems()
Retrieves the condition axis items from the data store.
|
java.lang.String |
getConditionId(int row) |
java.lang.String[] |
getConditionIds() |
java.lang.String |
getDescription(java.lang.String conditionid)
Retrieves the description of a given condition.
|
java.lang.String |
getEnvironment(java.lang.String conditionid)
Retrieves the environment based on the given condition ID.
|
java.lang.String |
getFutureQuantity(java.lang.String conditionid)
Retrieves the future quantity data based on the given condition ID.
|
java.lang.String |
getInitialActualQuantity(java.lang.String conditionid)
Retrieves the initial actual quantity for a given condition ID.
|
java.lang.String |
getInitialRecommendedQuantity(java.lang.String conditionid)
Retrieves the initial recommended quantity for a given condition ID.
|
java.lang.String |
getLabel(java.lang.String conditionid)
Retrieves the label associated with the given condition ID.
|
java.lang.String |
getNotes(java.lang.String conditionid)
Retrieves the notes for a given condition ID.
|
java.lang.String |
getOrientation(java.lang.String conditionid)
Retrieves the orientation for a given condition ID.
|
java.lang.String |
getPullAmount(java.lang.String conditionid)
Retrieves the pull amount for the given condition ID.
|
java.lang.String |
getPullAmountUnit(java.lang.String conditionid)
Retrieves the unit for the pull amount based on the given condition ID.
|
java.lang.String |
getPullAmountUnitType(java.lang.String conditionid)
Retrieves the Pull AmountUnit Type for the given condition ID.
|
java.lang.String |
getReserveAmount(java.lang.String conditionid)
Retrieves the reserve amount for a given condition ID.
|
java.lang.String |
getReserveAmountUnit(java.lang.String conditionid)
Retrieves the reserve amount unit for the given condition ID.
|
java.lang.String |
getReserveAmountUnitType(java.lang.String conditionid)
Retrieves the reserve amount unit type based on the given condition ID.
|
java.lang.String |
getStartCriteria(java.lang.String conditionid)
Retrieves the start criteria for the given condition ID.
|
PropertyList |
getTaskDefaults(java.lang.String conditionid,
java.lang.String propertyTreeid)
Gets a COPY of the default properties for the selected Task for a specific condition.
|
PropertyList |
getTaskDefaults(java.lang.String conditionid,
java.lang.String propertyTreeid,
boolean collapseAncestors)
Gets a copy of the default properties for the selected Task for a specific condition.
|
java.lang.String |
getTotalRecommendedQuantity(java.lang.String conditionid)
Retrieves the Total Recommended Quantity for the given condition ID.
|
boolean |
isConditionReadOnly(java.lang.String conditionid)
Checks if the given condition is read-only.
|
void |
setAutoCalcContainersFlag(java.lang.String conditionid,
boolean autoCalcFlag)
Sets the auto calculate containers flag for a given condition ID.
|
void |
setDescription(java.lang.String conditionid,
java.lang.String description)
Sets the description for a given condition.
|
void |
setEnvironment(java.lang.String conditionid,
java.lang.String environment)
Sets the environment for a given condition ID.
|
void |
setLabel(java.lang.String conditionid,
java.lang.String label)
Sets a label for a specific condition.
|
void |
setNotes(java.lang.String conditionid,
java.lang.String notes)
Sets the notes for a given condition ID.
|
void |
setOrientation(java.lang.String conditionid,
java.lang.String orientation)
Sets the orientation for a given condition ID.
|
void |
setPullAmount(java.lang.String conditionid,
java.lang.String pullAmount)
Sets the pull amount of a given condition ID.
|
void |
setPullAmountUnit(java.lang.String conditionid,
java.lang.String pullAmountUnit)
Sets the pull amount unit for a given condition ID.
|
void |
setPullAmountUnitType(java.lang.String conditionid,
java.lang.String pullAmountUnitType)
Sets the pull amount unit type for a given condition ID.
|
void |
setReserveAmount(java.lang.String conditionid,
java.lang.String reserveAmount)
Sets the reserve amount for a given condition ID.
|
void |
setReserveAmountUnit(java.lang.String conditionid,
java.lang.String reserveAmountUnit)
Sets the reserve amount unit for a given condition ID.
|
void |
setReserveAmountUnitType(java.lang.String conditionid,
java.lang.String reserveAmountUnitType)
Sets the reserve amount unit type for the given condition ID.
|
void |
setStartCriteria(java.lang.String conditionid,
java.lang.String criteria)
Sets the start criteria for the specified condition.
|
void |
setTaskDefaults(java.lang.String conditionid,
java.lang.String propertyTreeid,
PropertyList propertyList)
Sets the task default properties for a column
Note that if any collectionitem is missing an internal-id or sequence number, this method will fill those in
|
int |
size() |
public ConditionAxis(ScheduleGrid grid)
public com.labvantage.sapphire.stability.ConditionAxis dangerouslyGetConditionAxis()
public java.lang.String addCondition(java.lang.String label)
label - public java.lang.String addCondition()
public java.lang.String addCondition(java.lang.String label,
java.lang.String description,
java.lang.String environment,
java.lang.String orientation)
label - description - environment - orientation - public java.lang.String copyCondition(java.lang.String fromconditionid,
java.lang.String label)
throws SapphireException
SapphireExceptionpublic java.lang.String copyCondition(java.lang.String fromconditionid,
java.lang.String label,
java.lang.String description,
java.lang.String environment,
java.lang.String orientation)
throws SapphireException
fromconditionid - label - description - environment - orientation - SapphireExceptionpublic void setLabel(java.lang.String conditionid,
java.lang.String label)
conditionid - the ID of the conditionlabel - the label to be set for the conditionpublic java.lang.String getLabel(java.lang.String conditionid)
conditionid - The ID of the condition.public void setDescription(java.lang.String conditionid,
java.lang.String description)
conditionid - the ID of the condition to set the description fordescription - the description to set for the conditionpublic java.lang.String getDescription(java.lang.String conditionid)
conditionid - The unique identifier of the condition.conditionid.public void setEnvironment(java.lang.String conditionid,
java.lang.String environment)
conditionid - The ID of the condition.environment - The environment to set for the condition.public java.lang.String getEnvironment(java.lang.String conditionid)
conditionid - the condition ID to retrieve the environment forpublic void setOrientation(java.lang.String conditionid,
java.lang.String orientation)
conditionid - the ID of the conditionorientation - the orientation to setpublic java.lang.String getOrientation(java.lang.String conditionid)
conditionid - the ID of the conditionpublic void setNotes(java.lang.String conditionid,
java.lang.String notes)
conditionid - the ID of the conditionnotes - the notes to be setpublic java.lang.String getNotes(java.lang.String conditionid)
conditionid - the ID of the condition to get notes forpublic void setReserveAmount(java.lang.String conditionid,
java.lang.String reserveAmount)
conditionid - The condition ID for which the reserve amount will be set.reserveAmount - The reserve amount to be set.public java.lang.String getReserveAmount(java.lang.String conditionid)
conditionid - the ID of the condition to get the reserve amount forpublic void setReserveAmountUnit(java.lang.String conditionid,
java.lang.String reserveAmountUnit)
conditionid - the ID of the conditionreserveAmountUnit - the unit of measurement for the reserve amountpublic void setReserveAmountUnitType(java.lang.String conditionid,
java.lang.String reserveAmountUnitType)
conditionid - the ID of the condition to set the reserve amount unit type forreserveAmountUnitType - the unit type to set for the reserve amountpublic java.lang.String getReserveAmountUnit(java.lang.String conditionid)
conditionid - the condition ID to retrieve the reserve amount unit forpublic java.lang.String getReserveAmountUnitType(java.lang.String conditionid)
conditionid - the condition ID for which to retrieve the reserve amount unit typepublic void setAutoCalcContainersFlag(java.lang.String conditionid,
boolean autoCalcFlag)
conditionid - the condition ID for which to set the auto calculate containers flagautoCalcFlag - the boolean value indicating whether to enable or disable auto calculate containers flagpublic java.lang.String getAutoCalcContainersFlag(java.lang.String conditionid)
conditionid - The ID of the condition.public void setPullAmount(java.lang.String conditionid,
java.lang.String pullAmount)
conditionid - the ID of the conditionpullAmount - the pull amount to setpublic java.lang.String getPullAmount(java.lang.String conditionid)
conditionid - the ID of the condition to retrieve the pull amount forpublic void setPullAmountUnit(java.lang.String conditionid,
java.lang.String pullAmountUnit)
conditionid - The ID of the condition.pullAmountUnit - The pull amount unit to be set.public java.lang.String getPullAmountUnit(java.lang.String conditionid)
conditionid - the ID of the conditionpublic java.lang.String getTotalRecommendedQuantity(java.lang.String conditionid)
conditionid - the ID of the conditionpublic void setPullAmountUnitType(java.lang.String conditionid,
java.lang.String pullAmountUnitType)
conditionid - the condition ID to set the pull amount unit type forpullAmountUnitType - the pull amount unit type to setpublic java.lang.String getPullAmountUnitType(java.lang.String conditionid)
conditionid - the ID of the conditionpublic java.lang.String getInitialRecommendedQuantity(java.lang.String conditionid)
conditionid - the ID of the conditionpublic java.lang.String getInitialActualQuantity(java.lang.String conditionid)
throws SapphireException
conditionid - the ID of the conditionSapphireExceptionpublic java.lang.String getActualRemainingQuantity(java.lang.String conditionid)
throws SapphireException
conditionid - the condition ID to retrieve the actual remaining quantity forSapphireExceptionpublic java.lang.String getFutureQuantity(java.lang.String conditionid)
conditionid - the ID of the conditionpublic void setStartCriteria(java.lang.String conditionid,
java.lang.String criteria)
conditionid - The ID of the condition to set the start criteria for.criteria - The criteria to set as the start criteria.public java.lang.String getActualReserveQuantity(java.lang.String conditionid)
throws SapphireException
conditionid - the condition ID to retrieve the actual remaining quantity forSapphireExceptionpublic java.lang.String getStartCriteria(java.lang.String conditionid)
conditionid - the ID of the conditionpublic void deleteCondition(java.lang.String conditionid)
conditionid - The ID of the condition to be deleted.public boolean isConditionReadOnly(java.lang.String conditionid)
conditionid - the ID of the condition to checkpublic void copyAllConditionsFromTemplate(java.lang.String planids)
throws java.lang.Exception
planids - the plan IDs to copy conditions fromjava.lang.Exception - if an error occurs during the copy processpublic void copyAllConditionsFromTemplate(java.lang.String planids,
boolean includeAllTimepoints)
throws java.lang.Exception
planids - a string of plan IDs separated by ";"includeAllTimepoints - specifies whether to copy all time points or only those with at least one plan item definedjava.lang.Exception - if an error occurs during the copying processpublic void copyConditionsFromTemplate(java.lang.String planids,
java.lang.String conditionList)
throws java.lang.Exception
planids - a string of plan IDs separated by ";"conditionList - a string of condition IDs separated by ";"java.lang.Exception - if an error occurs during the copying processpublic void copyConditionsFromTemplate(java.lang.String planids,
java.lang.String conditionList,
boolean includeAllTimePoints)
throws java.lang.Exception
planids - a string of plan IDs separated by ";"conditionList - a string of condition IDs separated by ";"includeAllTimePoints - specifies whether to copy all time points or only those with at least one plan item definedjava.lang.Exception - if an error occurs during the copying processpublic PropertyList getTaskDefaults(java.lang.String conditionid, java.lang.String propertyTreeid)
conditionid - the id of the conditionpropertyTreeid - the id of the taskSapphireExceptionpublic PropertyList getTaskDefaults(java.lang.String conditionid, java.lang.String propertyTreeid, boolean collapseAncestors)
conditionid - the id of the conditionpropertyTreeid - the id of the taskcollapseAncestors - whether to include all properties including those from the plan defaults and above.SapphireExceptionpublic void setTaskDefaults(java.lang.String conditionid,
java.lang.String propertyTreeid,
PropertyList propertyList)
conditionid - the id of the conditionpropertyTreeid - The id of the taskpropertyList - The task defaultspublic int findRowById(java.lang.String conditionid)
public java.lang.String getConditionId(int row)
public int size()
public java.lang.String[] getConditionIds()
public DataStore getConditionAxisItems()
public java.lang.String findConditionIdByProtocolPlanConditionId(java.lang.String protocolPlanConditionId)
protocolPlanConditionId - the protocol plan condition IDpublic void editItem(int row,
java.util.HashMap values)
row - the row index of the item to be editedvalues - a HashMap containing the values to be assigned to the item's columnspublic int addItem(java.util.HashMap values)
values - the values of the item to be added