1 2 package org.compiere.model; 3 import java.util.*; 4 import java.sql.*; 5 import java.math.*; 6 import java.io.Serializable ; 7 import org.compiere.util.*; 8 10 public class X_C_BP_EDI extends PO 11 { 12 13 public X_C_BP_EDI (Properties ctx, int C_BP_EDI_ID) 14 { 15 super (ctx, C_BP_EDI_ID); 16 35 } 36 37 public X_C_BP_EDI (Properties ctx, ResultSet rs) 38 { 39 super (ctx, rs); 40 } 41 42 protected POInfo initPO (Properties ctx) 43 { 44 int AD_Table_ID = 366; 45 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 46 return poi; 47 } 48 public String toString() 49 { 50 StringBuffer sb = new StringBuffer ("X_C_BP_EDI[").append(getID()).append("]"); 51 return sb.toString(); 52 } 53 public void setAD_Sequence_ID (int AD_Sequence_ID) 54 { 55 setValue ("AD_Sequence_ID", new Integer (AD_Sequence_ID)); 56 } 57 public int getAD_Sequence_ID() 58 { 59 Integer ii = (Integer )getValue("AD_Sequence_ID"); 60 if (ii == null) return 0; 61 return ii.intValue(); 62 } 63 void setC_BP_EDI_ID (int C_BP_EDI_ID) 64 { 65 setValueNoCheck ("C_BP_EDI_ID", new Integer (C_BP_EDI_ID)); 66 } 67 public int getC_BP_EDI_ID() 68 { 69 Integer ii = (Integer )getValue("C_BP_EDI_ID"); 70 if (ii == null) return 0; 71 return ii.intValue(); 72 } 73 public void setC_BPartner_ID (int C_BPartner_ID) 74 { 75 setValue ("C_BPartner_ID", new Integer (C_BPartner_ID)); 76 } 77 public int getC_BPartner_ID() 78 { 79 Integer ii = (Integer )getValue("C_BPartner_ID"); 80 if (ii == null) return 0; 81 return ii.intValue(); 82 } 83 public void setCustomerNo (String CustomerNo) 84 { 85 if (CustomerNo == null) throw new IllegalArgumentException ("CustomerNo is mandatory"); 86 setValue ("CustomerNo", CustomerNo); 87 } 88 public String getCustomerNo() 89 { 90 return (String )getValue("CustomerNo"); 91 } 92 public void setDescription (String Description) 93 { 94 setValue ("Description", Description); 95 } 96 public String getDescription() 97 { 98 return (String )getValue("Description"); 99 } 100 public static final String EDITYPE_ASCX12 = "X"; 101 public static final String EDITYPE_EDIFACT = "E"; 102 public static final String EDITYPE_EmailEDI = "M"; 103 public void setEDIType (String EDIType) 104 { 105 if (EDIType.equals("X") || EDIType.equals("E") || EDIType.equals("M")); 106 else throw new IllegalArgumentException ("EDIType Invalid value - Reference_ID=201 - X - E - M"); 107 if (EDIType == null) throw new IllegalArgumentException ("EDIType is mandatory"); 108 setValue ("EDIType", EDIType); 109 } 110 public String getEDIType() 111 { 112 return (String )getValue("EDIType"); 113 } 114 public void setEmail_Error_To (String Email_Error_To) 115 { 116 if (Email_Error_To == null) throw new IllegalArgumentException ("Email_Error_To is mandatory"); 117 setValue ("Email_Error_To", Email_Error_To); 118 } 119 public String getEmail_Error_To() 120 { 121 return (String )getValue("Email_Error_To"); 122 } 123 public void setEmail_From (String Email_From) 124 { 125 setValue ("Email_From", Email_From); 126 } 127 public String getEmail_From() 128 { 129 return (String )getValue("Email_From"); 130 } 131 public void setEmail_From_Pwd (String Email_From_Pwd) 132 { 133 setValue ("Email_From_Pwd", Email_From_Pwd); 134 } 135 public String getEmail_From_Pwd() 136 { 137 return (String )getValue("Email_From_Pwd"); 138 } 139 public void setEmail_From_Uid (String Email_From_Uid) 140 { 141 setValue ("Email_From_Uid", Email_From_Uid); 142 } 143 public String getEmail_From_Uid() 144 { 145 return (String )getValue("Email_From_Uid"); 146 } 147 public void setEmail_Info_To (String Email_Info_To) 148 { 149 if (Email_Info_To == null) throw new IllegalArgumentException ("Email_Info_To is mandatory"); 150 setValue ("Email_Info_To", Email_Info_To); 151 } 152 public String getEmail_Info_To() 153 { 154 return (String )getValue("Email_Info_To"); 155 } 156 public void setEmail_To (String Email_To) 157 { 158 setValue ("Email_To", Email_To); 159 } 160 public String getEmail_To() 161 { 162 return (String )getValue("Email_To"); 163 } 164 public void setIsAudited (boolean IsAudited) 165 { 166 setValue ("IsAudited", new Boolean (IsAudited)); 167 } 168 public boolean isAudited() 169 { 170 Boolean bb = (Boolean )getValue("IsAudited"); 171 if (bb != null) return bb.booleanValue(); 172 return false; 173 } 174 public void setIsInfoSent (boolean IsInfoSent) 175 { 176 setValue ("IsInfoSent", new Boolean (IsInfoSent)); 177 } 178 public boolean isInfoSent() 179 { 180 Boolean bb = (Boolean )getValue("IsInfoSent"); 181 if (bb != null) return bb.booleanValue(); 182 return false; 183 } 184 public void setM_Warehouse_ID (int M_Warehouse_ID) 185 { 186 setValue ("M_Warehouse_ID", new Integer (M_Warehouse_ID)); 187 } 188 public int getM_Warehouse_ID() 189 { 190 Integer ii = (Integer )getValue("M_Warehouse_ID"); 191 if (ii == null) return 0; 192 return ii.intValue(); 193 } 194 public void setName (String Name) 195 { 196 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 197 setValue ("Name", Name); 198 } 199 public String getName() 200 { 201 return (String )getValue("Name"); 202 } 203 public void setReceiveInquiryReply (boolean ReceiveInquiryReply) 204 { 205 setValue ("ReceiveInquiryReply", new Boolean (ReceiveInquiryReply)); 206 } 207 public boolean isReceiveInquiryReply() 208 { 209 Boolean bb = (Boolean )getValue("ReceiveInquiryReply"); 210 if (bb != null) return bb.booleanValue(); 211 return false; 212 } 213 public void setReceiveOrderReply (boolean ReceiveOrderReply) 214 { 215 setValue ("ReceiveOrderReply", new Boolean (ReceiveOrderReply)); 216 } 217 public boolean isReceiveOrderReply() 218 { 219 Boolean bb = (Boolean )getValue("ReceiveOrderReply"); 220 if (bb != null) return bb.booleanValue(); 221 return false; 222 } 223 public void setSendInquiry (boolean SendInquiry) 224 { 225 setValue ("SendInquiry", new Boolean (SendInquiry)); 226 } 227 public boolean isSendInquiry() 228 { 229 Boolean bb = (Boolean )getValue("SendInquiry"); 230 if (bb != null) return bb.booleanValue(); 231 return false; 232 } 233 public void setSendOrder (boolean SendOrder) 234 { 235 setValue ("SendOrder", new Boolean (SendOrder)); 236 } 237 public boolean isSendOrder() 238 { 239 Boolean bb = (Boolean )getValue("SendOrder"); 240 if (bb != null) return bb.booleanValue(); 241 return false; 242 } 243 } 244 | Popular Tags |