📄 x_r_request.java
字号:
{
set_Value ("DateLastAlert", DateLastAlert);
}
/** Get Last Alert.
Date when last alert were sent */
public Timestamp getDateLastAlert()
{
return (Timestamp)get_Value("DateLastAlert");
}
/** Set Date next action.
Date that this request should be acted on */
public void setDateNextAction (Timestamp DateNextAction)
{
set_Value ("DateNextAction", DateNextAction);
}
/** Get Date next action.
Date that this request should be acted on */
public Timestamp getDateNextAction()
{
return (Timestamp)get_Value("DateNextAction");
}
/** Set Start Plan.
Planned Start Date */
public void setDateStartPlan (Timestamp DateStartPlan)
{
set_Value ("DateStartPlan", DateStartPlan);
}
/** Get Start Plan.
Planned Start Date */
public Timestamp getDateStartPlan()
{
return (Timestamp)get_Value("DateStartPlan");
}
/** Set Document No.
Document sequence number of the document */
public void setDocumentNo (String DocumentNo)
{
if (DocumentNo == null) throw new IllegalArgumentException ("DocumentNo is mandatory.");
if (DocumentNo.length() > 30)
{
log.warning("Length > 30 - truncated");
DocumentNo = DocumentNo.substring(0,29);
}
set_Value ("DocumentNo", DocumentNo);
}
/** Get Document No.
Document sequence number of the document */
public String getDocumentNo()
{
return (String)get_Value("DocumentNo");
}
public KeyNamePair getKeyNamePair()
{
return new KeyNamePair(get_ID(), getDocumentNo());
}
/** DueType AD_Reference_ID=222 */
public static final int DUETYPE_AD_Reference_ID=222;
/** Overdue = 3 */
public static final String DUETYPE_Overdue = "3";
/** Due = 5 */
public static final String DUETYPE_Due = "5";
/** Scheduled = 7 */
public static final String DUETYPE_Scheduled = "7";
/** Set Due type.
Status of the next action for this Request */
public void setDueType (String DueType)
{
if (DueType == null) throw new IllegalArgumentException ("DueType is mandatory");
if (DueType.equals("3") || DueType.equals("5") || DueType.equals("7"));
else throw new IllegalArgumentException ("DueType Invalid value - " + DueType + " - Reference_ID=222 - 3 - 5 - 7");
if (DueType.length() > 1)
{
log.warning("Length > 1 - truncated");
DueType = DueType.substring(0,0);
}
set_Value ("DueType", DueType);
}
/** Get Due type.
Status of the next action for this Request */
public String getDueType()
{
return (String)get_Value("DueType");
}
/** Set End Time.
End of the time span */
public void setEndTime (Timestamp EndTime)
{
set_Value ("EndTime", EndTime);
}
/** Get End Time.
End of the time span */
public Timestamp getEndTime()
{
return (Timestamp)get_Value("EndTime");
}
/** Set Escalated.
This request has been escalated */
public void setIsEscalated (boolean IsEscalated)
{
set_Value ("IsEscalated", new Boolean(IsEscalated));
}
/** Get Escalated.
This request has been escalated */
public boolean isEscalated()
{
Object oo = get_Value("IsEscalated");
if (oo != null)
{
if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Invoiced.
Is this invoiced? */
public void setIsInvoiced (boolean IsInvoiced)
{
set_Value ("IsInvoiced", new Boolean(IsInvoiced));
}
/** Get Invoiced.
Is this invoiced? */
public boolean isInvoiced()
{
Object oo = get_Value("IsInvoiced");
if (oo != null)
{
if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Self-Service.
This is a Self-Service entry or this entry can be changed via Self-Service */
public void setIsSelfService (boolean IsSelfService)
{
set_ValueNoCheck ("IsSelfService", new Boolean(IsSelfService));
}
/** Get Self-Service.
This is a Self-Service entry or this entry can be changed via Self-Service */
public boolean isSelfService()
{
Object oo = get_Value("IsSelfService");
if (oo != null)
{
if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();
return "Y".equals(oo);
}
return false;
}
/** Set Last Result.
Result of last contact */
public void setLastResult (String LastResult)
{
if (LastResult != null && LastResult.length() > 2000)
{
log.warning("Length > 2000 - truncated");
LastResult = LastResult.substring(0,1999);
}
set_Value ("LastResult", LastResult);
}
/** Get Last Result.
Result of last contact */
public String getLastResult()
{
return (String)get_Value("LastResult");
}
/** Set Change Request.
BOM (Engineering) Change Request */
public void setM_ChangeRequest_ID (int M_ChangeRequest_ID)
{
if (M_ChangeRequest_ID <= 0) set_Value ("M_ChangeRequest_ID", null);
else
set_Value ("M_ChangeRequest_ID", new Integer(M_ChangeRequest_ID));
}
/** Get Change Request.
BOM (Engineering) Change Request */
public int getM_ChangeRequest_ID()
{
Integer ii = (Integer)get_Value("M_ChangeRequest_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** M_FixChangeNotice_ID AD_Reference_ID=351 */
public static final int M_FIXCHANGENOTICE_ID_AD_Reference_ID=351;
/** Set Fixed in.
Fixed in Change Notice */
public void setM_FixChangeNotice_ID (int M_FixChangeNotice_ID)
{
if (M_FixChangeNotice_ID <= 0) set_Value ("M_FixChangeNotice_ID", null);
else
set_Value ("M_FixChangeNotice_ID", new Integer(M_FixChangeNotice_ID));
}
/** Get Fixed in.
Fixed in Change Notice */
public int getM_FixChangeNotice_ID()
{
Integer ii = (Integer)get_Value("M_FixChangeNotice_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Shipment/Receipt.
Material Shipment Document */
public void setM_InOut_ID (int M_InOut_ID)
{
if (M_InOut_ID <= 0) set_Value ("M_InOut_ID", null);
else
set_Value ("M_InOut_ID", new Integer(M_InOut_ID));
}
/** Get Shipment/Receipt.
Material Shipment Document */
public int getM_InOut_ID()
{
Integer ii = (Integer)get_Value("M_InOut_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** M_ProductSpent_ID AD_Reference_ID=162 */
public static final int M_PRODUCTSPENT_ID_AD_Reference_ID=162;
/** Set Product Used.
Product/Resource/Service used in Request */
public void setM_ProductSpent_ID (int M_ProductSpent_ID)
{
if (M_ProductSpent_ID <= 0) set_Value ("M_ProductSpent_ID", null);
else
set_Value ("M_ProductSpent_ID", new Integer(M_ProductSpent_ID));
}
/** Get Product Used.
Product/Resource/Service used in Request */
public int getM_ProductSpent_ID()
{
Integer ii = (Integer)get_Value("M_ProductSpent_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set Product.
Product, Service, Item */
public void setM_Product_ID (int M_Product_ID)
{
if (M_Product_ID <= 0) set_Value ("M_Product_ID", null);
else
set_Value ("M_Product_ID", new Integer(M_Product_ID));
}
/** Get Product.
Product, Service, Item */
public int getM_Product_ID()
{
Integer ii = (Integer)get_Value("M_Product_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** Set RMA.
Return Material Authorization */
public void setM_RMA_ID (int M_RMA_ID)
{
if (M_RMA_ID <= 0) set_Value ("M_RMA_ID", null);
else
set_Value ("M_RMA_ID", new Integer(M_RMA_ID));
}
/** Get RMA.
Return Material Authorization */
public int getM_RMA_ID()
{
Integer ii = (Integer)get_Value("M_RMA_ID");
if (ii == null) return 0;
return ii.intValue();
}
/** NextAction AD_Reference_ID=219 */
public static final int NEXTACTION_AD_Reference_ID=219;
/** Follow up = F */
public static final String NEXTACTION_FollowUp = "F";
/** None = N */
public static final String NEXTACTION_None = "N";
/** Set Next action.
Next Action to be taken */
public void setNextAction (String NextAction)
{
if (NextAction == null) throw new IllegalArgumentException ("NextAction is mandatory");
if (NextAction == null || NextAction.equals("F") || NextAction.equals("N"));
else throw new IllegalArgumentException ("NextAction Invalid value - " + NextAction + " - Reference_ID=219 - F - N");
if (NextAction != null && NextAction.length() > 1)
{
log.warning("Length > 1 - truncated");
NextAction = NextAction.substring(0,0);
}
set_Value ("NextAction", NextAction);
}
/** Get Next action.
Next Action to be taken */
public String getNextAction()
{
return (String)get_Value("NextAction");
}
/** Priority AD_Reference_ID=154 */
public static final int PRIORITY_AD_Reference_ID=154;
/** Urgent = 1 */
public static final String PRIORITY_Urgent = "1";
/** High = 3 */
public static final String PRIORITY_High = "3";
/** Medium = 5 */
public static final String PRIORITY_Medium = "5";
/** Low = 7 */
public static final String PRIORITY_Low = "7";
/** Minor = 9 */
public static final String PRIORITY_Minor = "9";
/** Set Priority.
Indicates if this request is of a high, medium or low priority. */
public void setPriority (String Priority)
{
if (Priority == null) throw new IllegalArgumentException ("Priority is mandatory");
if (Priority.equals("1") || Priority.equals("3") || Priority.equals("5") || Priority.equals("7") || Priority.equals("9"));
else throw new IllegalArgumentException ("Priority Invalid value - " + Priority + " - Reference_ID=154 - 1 - 3 - 5 - 7 - 9");
if (Priority.length() > 1)
{
log.warning("Length > 1 - truncated");
Priority = Priority.substring(0,0);
}
set_Value ("Priority", Priority);
}
/** Get Priority.
Indicates if this request is of a high, medium or low priority. */
public String getPriority()
{
return (String)get_Value("Priority");
}
/** PriorityUser AD_Reference_ID=154 */
public static final int PRIORITYUSER_AD_Reference_ID=154;
/** Urgent = 1 */
public static final String PRIORITYUSER_Urgent = "1";
/** High = 3 */
public static final String PRIORITYUSER_High = "3";
/** Medium = 5 */
public static final String PRIORITYUSER_Medium = "5";
/** Low = 7 */
public static final String PRIORITYUSER_Low = "7";
/** Minor = 9 */
public static final String PRIORITYUSER_Minor = "9";
/** Set User Importance.
Priority of the issue for the User */
public void setPriorityUser (String PriorityUser)
{
if (PriorityUser == null) throw new IllegalArgumentException ("PriorityUser is mandatory");
if (PriorityUser == null || PriorityUser.equals("1") || PriorityUser.equals("3") || PriorityUser.equals("5") || PriorityUser.equals("7") || PriorityUser.equals("9"));
else throw new IllegalArgumentException ("PriorityUser Invalid value - " + PriorityUser + " - Reference_ID=154 - 1 - 3 - 5 - 7 - 9");
if (PriorityUser != null && PriorityUser.length() > 1)
{
log.warning("Length > 1 - truncated");
PriorityUser = PriorityUser.substring(0,0);
}
set_Value ("PriorityUser", PriorityUser);
}
/** Get User Importance.
Priority of the issue for the User */
public String getPriorityUser()
{
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -