QC Analysis
This commit is contained in:
parent
47cdbe0c6a
commit
ffecda3d58
|
|
@ -0,0 +1,66 @@
|
|||
package andromedia.midsuit.callout;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.adempiere.base.IColumnCallout;
|
||||
import org.compiere.model.CalloutEngine;
|
||||
import org.compiere.model.GridField;
|
||||
import org.compiere.model.GridTab;
|
||||
import org.compiere.model.MProduction;
|
||||
import org.compiere.model.MProductionLine;
|
||||
import org.compiere.model.Query;
|
||||
|
||||
import andromedia.midsuit.model.MID_Analysis;
|
||||
import andromedia.midsuit.model.MID_AnalysisPro;
|
||||
|
||||
public class MID_CalloutAnalysisQC extends CalloutEngine implements IColumnCallout{
|
||||
|
||||
@Override
|
||||
public String start(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value, Object oldValue) {
|
||||
// TODO Auto-generated method stub
|
||||
if(value == null) return null;
|
||||
|
||||
if(mField.getColumnName().equals(MProduction.COLUMNNAME_M_Production_ID)) {
|
||||
setProductQuantity(ctx, WindowNo, mTab, mField, value, oldValue);
|
||||
return setRawMaterial(ctx, WindowNo, mTab, mField, value, oldValue);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
}
|
||||
|
||||
public String setProductQuantity(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value, Object oldValue){
|
||||
|
||||
String valueReturn = "";
|
||||
MProduction prod = new MProduction(ctx, (int) value, null);
|
||||
|
||||
if (prod != null) {
|
||||
mTab.setValue(MID_AnalysisPro.COLUMNNAME_M_Product_ID, prod.getM_Product_ID());
|
||||
mTab.setValue(MID_AnalysisPro.COLUMNNAME_Qty, prod.getProductionQty());
|
||||
}
|
||||
mTab.setValue(MID_Analysis.COLUMNNAME_JumlahRM, valueReturn);
|
||||
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public String setRawMaterial(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value, Object oldValue){
|
||||
|
||||
String valueReturn = "";
|
||||
List<MProductionLine> productionLines = new Query(ctx, MProductionLine.Table_Name, "M_Production_ID = ? and isEndProduct='N'", null)
|
||||
.setParameters(new Object[] {(int) value})
|
||||
.list();
|
||||
|
||||
for(MProductionLine productionLine : productionLines) {
|
||||
if(productionLine != null) {
|
||||
valueReturn += productionLine.getQtyUsed().toString() == null ? "0;" : productionLine.getQtyUsed().toString() + ";";
|
||||
}
|
||||
}
|
||||
|
||||
mTab.setValue(MID_Analysis.COLUMNNAME_JumlahRM, valueReturn);
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,57 @@
|
|||
package andromedia.midsuit.callout;
|
||||
|
||||
import java.util.Properties;
|
||||
import org.adempiere.base.IColumnCallout;
|
||||
import org.compiere.model.CalloutEngine;
|
||||
import org.compiere.model.GridField;
|
||||
import org.compiere.model.GridTab;
|
||||
import org.compiere.model.MProduct;
|
||||
import org.compiere.util.Env;
|
||||
|
||||
public class MID_CalloutProductionLine extends CalloutEngine implements IColumnCallout {
|
||||
|
||||
@Override
|
||||
public String start(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value, Object oldValue) {
|
||||
|
||||
if (mField.getColumnName().equals("isConvertUOM"))
|
||||
return setUOM(ctx, WindowNo, mTab, mField, value, oldValue);
|
||||
if (mField.getColumnName().equals("QtyEntered"))
|
||||
return setConversion(ctx, WindowNo, mTab, mField, value, oldValue);
|
||||
if (mField.getColumnName().equals("M_Product_ID"))
|
||||
{
|
||||
if(value==null) return "";
|
||||
MProduct pro = new MProduct(ctx, (int)value, null);
|
||||
mTab.setValue("C_UOM_ID", pro.getC_UOM_ID());
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public String setConversion(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value,
|
||||
Object oldValue) {
|
||||
if (value == null || mTab.getValue("M_Product_ID") == null) {
|
||||
return "";
|
||||
}
|
||||
// BigDecimal QtyOrdered = MUOMConversion.convertProductFrom(Env.getCtx(), (int) mTab.getValue("M_Product_ID"),
|
||||
// (int) mTab.getValue("C_UOM_To_ID"), (BigDecimal) mTab.getValue("QtyEntered"));
|
||||
// if (QtyOrdered == null)
|
||||
// QtyOrdered = (BigDecimal) mTab.getValue("QtyEntered");
|
||||
//
|
||||
// mTab.setValue("QtyUsed", QtyOrdered);
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
public String setUOM(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value, Object oldValue) {
|
||||
if (value == null)
|
||||
return "";
|
||||
if (mTab.getValue("M_Product_ID") == null)
|
||||
return "";
|
||||
|
||||
MProduct product = new MProduct(Env.getCtx(), (int) mTab.getValue("M_Product_ID"), null);
|
||||
mTab.setValue("QtyEntered", mTab.getValue("QtyUsed"));
|
||||
mTab.setValue("C_UOM_ID", product.getC_UOM_ID());
|
||||
mTab.setValue("C_UOM_To_ID", product.getC_UOM_ID());
|
||||
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
package andromedia.midsuit.doc;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.ResultSet;
|
||||
import java.util.ArrayList;
|
||||
|
||||
import org.compiere.acct.Doc;
|
||||
import org.compiere.acct.Fact;
|
||||
import org.compiere.model.MAcctSchema;
|
||||
|
||||
import andromedia.midsuit.model.MID_Analysis;
|
||||
|
||||
public class MID_DocAnalysis extends Doc {
|
||||
|
||||
public MID_DocAnalysis (MAcctSchema as, ResultSet rs, String trxName)
|
||||
{
|
||||
super (as, MID_Analysis.class, rs, null, trxName);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String loadDocumentDetails() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal getBalance() {
|
||||
return BigDecimal.ZERO;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ArrayList<Fact> createFacts(MAcctSchema as) {
|
||||
ArrayList<Fact> facts = new ArrayList<Fact>();
|
||||
return facts;
|
||||
}
|
||||
}
|
||||
|
|
@ -7,16 +7,21 @@ import org.adempiere.base.IColumnCallout;
|
|||
import org.adempiere.base.IColumnCalloutFactory;
|
||||
import org.compiere.model.MOrder;
|
||||
import org.compiere.model.MProduction;
|
||||
import org.compiere.model.MProductionLine;
|
||||
|
||||
import andromedia.midsuit.callout.MID_CalloutAnalysisQC;
|
||||
import andromedia.midsuit.callout.MID_CalloutOrder;
|
||||
import andromedia.midsuit.callout.MID_CalloutProduction;
|
||||
import andromedia.midsuit.callout.MID_CalloutProductionLine;
|
||||
import andromedia.midsuit.callout.MID_CalloutRequisitionTrxLine;
|
||||
import andromedia.midsuit.model.MID_Analysis;
|
||||
import andromedia.midsuit.model.X_MID_RequisitionLine;
|
||||
|
||||
public class MID_CalloutFactory implements IColumnCalloutFactory{
|
||||
|
||||
@Override
|
||||
public IColumnCallout[] getColumnCallouts(String tableName, String columnName) {
|
||||
|
||||
List<IColumnCallout> list = new ArrayList<IColumnCallout>();
|
||||
if(tableName.equals(X_MID_RequisitionLine.Table_Name))
|
||||
list.add(new MID_CalloutRequisitionTrxLine());
|
||||
|
|
@ -24,7 +29,11 @@ public class MID_CalloutFactory implements IColumnCalloutFactory{
|
|||
list.add(new MID_CalloutOrder());
|
||||
if(tableName.equals(MProduction.Table_Name))
|
||||
list.add(new MID_CalloutProduction());
|
||||
if(tableName.equals(MProductionLine.Table_Name))
|
||||
list.add(new MID_CalloutProductionLine());
|
||||
if(tableName.equals(MID_Analysis.Table_Name))
|
||||
list.add(new MID_CalloutAnalysisQC());
|
||||
|
||||
return list != null ? list.toArray(new IColumnCallout[0]) : new IColumnCallout[0];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -12,8 +12,10 @@ import org.compiere.util.CLogger;
|
|||
import org.compiere.util.DB;
|
||||
import org.compiere.util.Env;
|
||||
|
||||
import andromedia.midsuit.doc.MID_DocAnalysis;
|
||||
import andromedia.midsuit.doc.MID_DocMRPPPO;
|
||||
import andromedia.midsuit.doc.MID_DocMidRequsiition;
|
||||
import andromedia.midsuit.model.MID_Analysis;
|
||||
import andromedia.midsuit.model.MID_MRequisitionTrx;
|
||||
import andromedia.midsuit.model.MID_PPO;
|
||||
|
||||
|
|
@ -55,6 +57,8 @@ public class MID_DocFactory implements IDocFactory{
|
|||
return new MID_DocMidRequsiition(as,rs,trxName);
|
||||
if(tableName.equals(MID_PPO.Table_Name))
|
||||
return new MID_DocMRPPPO(as, rs, trxName);
|
||||
if(tableName.equals(MID_Analysis.Table_Name))
|
||||
return new MID_DocAnalysis(as, rs, trxName);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,6 +10,9 @@ import org.compiere.model.PO;
|
|||
import org.compiere.util.Env;
|
||||
|
||||
import andromedia.midsuit.model.MID_Aging;
|
||||
import andromedia.midsuit.model.MID_Analysis;
|
||||
import andromedia.midsuit.model.MID_AnalysisLine;
|
||||
import andromedia.midsuit.model.MID_AnalysisPro;
|
||||
import andromedia.midsuit.model.MID_MBillingList;
|
||||
import andromedia.midsuit.model.MID_MBillingListLine;
|
||||
import andromedia.midsuit.model.MID_MProductionConfirm;
|
||||
|
|
@ -30,6 +33,9 @@ public class MID_ModelFactory implements IModelFactory{
|
|||
mapTableModels.put(MID_MBillingListLine.Table_Name, "andromedia.midsuit.model.MID_MBillingListLine");
|
||||
mapTableModels.put(MID_PPO.Table_Name, "andromedia.midsuit.model.MID_PPO");
|
||||
mapTableModels.put(MID_MProductionConfirm.Table_Name, "andromedia.midsuit.model.MID_MProductionConfirm");
|
||||
mapTableModels.put(MID_Analysis.Table_Name, "andromedia.midsuit.model.MID_Analysis");
|
||||
mapTableModels.put(MID_AnalysisPro.Table_Name, "andromedia.midsuit.model.MID_AnalysisPro");
|
||||
mapTableModels.put(MID_AnalysisLine.Table_Name, "andromedia.midsuit.model.MID_AnalysisLine");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -0,0 +1,749 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
package andromedia.midsuit.model;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import org.compiere.model.*;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Interface for MID_Analysis
|
||||
* @author iDempiere (generated)
|
||||
* @version Release 5.1
|
||||
*/
|
||||
@SuppressWarnings("all")
|
||||
public interface I_MID_Analysis
|
||||
{
|
||||
|
||||
/** TableName=MID_Analysis */
|
||||
public static final String Table_Name = "MID_Analysis";
|
||||
|
||||
/** AD_Table_ID=30091 */
|
||||
public static final int Table_ID = 30091;
|
||||
|
||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||
|
||||
/** AccessLevel = 3 - Client - Org
|
||||
*/
|
||||
BigDecimal accessLevel = BigDecimal.valueOf(3);
|
||||
|
||||
/** Load Meta Data */
|
||||
|
||||
/** Column name AD_Client_ID */
|
||||
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||
|
||||
/** Get Client.
|
||||
* Client/Tenant for this installation.
|
||||
*/
|
||||
public int getAD_Client_ID();
|
||||
|
||||
/** Column name AD_Org_ID */
|
||||
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
|
||||
|
||||
/** Set Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public void setAD_Org_ID (int AD_Org_ID);
|
||||
|
||||
/** Get Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public int getAD_Org_ID();
|
||||
|
||||
/** Column name Asal */
|
||||
public static final String COLUMNNAME_Asal = "Asal";
|
||||
|
||||
/** Set Asal */
|
||||
public void setAsal (String Asal);
|
||||
|
||||
/** Get Asal */
|
||||
public String getAsal();
|
||||
|
||||
/** Column name Batch_No */
|
||||
public static final String COLUMNNAME_Batch_No = "Batch_No";
|
||||
|
||||
/** Set No. Batch */
|
||||
public void setBatch_No (String Batch_No);
|
||||
|
||||
/** Get No. Batch */
|
||||
public String getBatch_No();
|
||||
|
||||
/** Column name BatchProduksi */
|
||||
public static final String COLUMNNAME_BatchProduksi = "BatchProduksi";
|
||||
|
||||
/** Set Batch Produksi */
|
||||
public void setBatchProduksi (String BatchProduksi);
|
||||
|
||||
/** Get Batch Produksi */
|
||||
public String getBatchProduksi();
|
||||
|
||||
/** Column name C_Currency_ID */
|
||||
public static final String COLUMNNAME_C_Currency_ID = "C_Currency_ID";
|
||||
|
||||
/** Set Currency.
|
||||
* The Currency for this record
|
||||
*/
|
||||
public void setC_Currency_ID (int C_Currency_ID);
|
||||
|
||||
/** Get Currency.
|
||||
* The Currency for this record
|
||||
*/
|
||||
public int getC_Currency_ID();
|
||||
|
||||
public org.compiere.model.I_C_Currency getC_Currency() throws RuntimeException;
|
||||
|
||||
/** Column name C_DocType_ID */
|
||||
public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID";
|
||||
|
||||
/** Set Document Type.
|
||||
* Document type or rules
|
||||
*/
|
||||
public void setC_DocType_ID (int C_DocType_ID);
|
||||
|
||||
/** Get Document Type.
|
||||
* Document type or rules
|
||||
*/
|
||||
public int getC_DocType_ID();
|
||||
|
||||
public org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException;
|
||||
|
||||
/** Column name C_DocTypeTarget_ID */
|
||||
public static final String COLUMNNAME_C_DocTypeTarget_ID = "C_DocTypeTarget_ID";
|
||||
|
||||
/** Set Target Document Type.
|
||||
* Target document type for conversing documents
|
||||
*/
|
||||
public void setC_DocTypeTarget_ID (int C_DocTypeTarget_ID);
|
||||
|
||||
/** Get Target Document Type.
|
||||
* Target document type for conversing documents
|
||||
*/
|
||||
public int getC_DocTypeTarget_ID();
|
||||
|
||||
public org.compiere.model.I_C_DocType getC_DocTypeTarget() throws RuntimeException;
|
||||
|
||||
/** Column name CetakCOA */
|
||||
public static final String COLUMNNAME_CetakCOA = "CetakCOA";
|
||||
|
||||
/** Set Cetak COA */
|
||||
public void setCetakCOA (boolean CetakCOA);
|
||||
|
||||
/** Get Cetak COA */
|
||||
public boolean isCetakCOA();
|
||||
|
||||
/** Column name CetakHasilAnalisaLab */
|
||||
public static final String COLUMNNAME_CetakHasilAnalisaLab = "CetakHasilAnalisaLab";
|
||||
|
||||
/** Set Cetak Hasil Analisa Lab */
|
||||
public void setCetakHasilAnalisaLab (boolean CetakHasilAnalisaLab);
|
||||
|
||||
/** Get Cetak Hasil Analisa Lab */
|
||||
public boolean isCetakHasilAnalisaLab();
|
||||
|
||||
/** Column name cetaksurathasilanalisa */
|
||||
public static final String COLUMNNAME_cetaksurathasilanalisa = "cetaksurathasilanalisa";
|
||||
|
||||
/** Set Cetak Surat Hasil Analisa */
|
||||
public void setcetaksurathasilanalisa (boolean cetaksurathasilanalisa);
|
||||
|
||||
/** Get Cetak Surat Hasil Analisa */
|
||||
public boolean iscetaksurathasilanalisa();
|
||||
|
||||
/** Column name cetaksurathasilanalisaproduksi */
|
||||
public static final String COLUMNNAME_cetaksurathasilanalisaproduksi = "cetaksurathasilanalisaproduksi";
|
||||
|
||||
/** Set Cetak Surat Hasil Analisa Produksi */
|
||||
public void setcetaksurathasilanalisaproduksi (boolean cetaksurathasilanalisaproduksi);
|
||||
|
||||
/** Get Cetak Surat Hasil Analisa Produksi */
|
||||
public boolean iscetaksurathasilanalisaproduksi();
|
||||
|
||||
/** Column name COA */
|
||||
public static final String COLUMNNAME_COA = "COA";
|
||||
|
||||
/** Set COA */
|
||||
public void setCOA (String COA);
|
||||
|
||||
/** Get COA */
|
||||
public String getCOA();
|
||||
|
||||
/** Column name Created */
|
||||
public static final String COLUMNNAME_Created = "Created";
|
||||
|
||||
/** Get Created.
|
||||
* Date this record was created
|
||||
*/
|
||||
public Timestamp getCreated();
|
||||
|
||||
/** Column name CreatedBy */
|
||||
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
|
||||
|
||||
/** Get Created By.
|
||||
* User who created this records
|
||||
*/
|
||||
public int getCreatedBy();
|
||||
|
||||
/** Column name Date1 */
|
||||
public static final String COLUMNNAME_Date1 = "Date1";
|
||||
|
||||
/** Set Date.
|
||||
* Date when business is not conducted
|
||||
*/
|
||||
public void setDate1 (Timestamp Date1);
|
||||
|
||||
/** Get Date.
|
||||
* Date when business is not conducted
|
||||
*/
|
||||
public Timestamp getDate1();
|
||||
|
||||
/** Column name DateAcct */
|
||||
public static final String COLUMNNAME_DateAcct = "DateAcct";
|
||||
|
||||
/** Set Account Date.
|
||||
* Accounting Date
|
||||
*/
|
||||
public void setDateAcct (Timestamp DateAcct);
|
||||
|
||||
/** Get Account Date.
|
||||
* Accounting Date
|
||||
*/
|
||||
public Timestamp getDateAcct();
|
||||
|
||||
/** Column name Description */
|
||||
public static final String COLUMNNAME_Description = "Description";
|
||||
|
||||
/** Set Description.
|
||||
* Optional short description of the record
|
||||
*/
|
||||
public void setDescription (String Description);
|
||||
|
||||
/** Get Description.
|
||||
* Optional short description of the record
|
||||
*/
|
||||
public String getDescription();
|
||||
|
||||
/** Column name DocAction */
|
||||
public static final String COLUMNNAME_DocAction = "DocAction";
|
||||
|
||||
/** Set Document Action.
|
||||
* The targeted status of the document
|
||||
*/
|
||||
public void setDocAction (String DocAction);
|
||||
|
||||
/** Get Document Action.
|
||||
* The targeted status of the document
|
||||
*/
|
||||
public String getDocAction();
|
||||
|
||||
/** Column name DocFrom */
|
||||
public static final String COLUMNNAME_DocFrom = "DocFrom";
|
||||
|
||||
/** Set DocFrom */
|
||||
public void setDocFrom (String DocFrom);
|
||||
|
||||
/** Get DocFrom */
|
||||
public String getDocFrom();
|
||||
|
||||
/** Column name DocStatus */
|
||||
public static final String COLUMNNAME_DocStatus = "DocStatus";
|
||||
|
||||
/** Set Document Status.
|
||||
* The current status of the document
|
||||
*/
|
||||
public void setDocStatus (String DocStatus);
|
||||
|
||||
/** Get Document Status.
|
||||
* The current status of the document
|
||||
*/
|
||||
public String getDocStatus();
|
||||
|
||||
/** Column name DocTo */
|
||||
public static final String COLUMNNAME_DocTo = "DocTo";
|
||||
|
||||
/** Set Doc To */
|
||||
public void setDocTo (String DocTo);
|
||||
|
||||
/** Get Doc To */
|
||||
public String getDocTo();
|
||||
|
||||
/** Column name DocumentNo */
|
||||
public static final String COLUMNNAME_DocumentNo = "DocumentNo";
|
||||
|
||||
/** Set Document No.
|
||||
* Document sequence number of the document
|
||||
*/
|
||||
public void setDocumentNo (String DocumentNo);
|
||||
|
||||
/** Get Document No.
|
||||
* Document sequence number of the document
|
||||
*/
|
||||
public String getDocumentNo();
|
||||
|
||||
/** Column name Help */
|
||||
public static final String COLUMNNAME_Help = "Help";
|
||||
|
||||
/** Set Comment/Help.
|
||||
* Comment or Hint
|
||||
*/
|
||||
public void setHelp (String Help);
|
||||
|
||||
/** Get Comment/Help.
|
||||
* Comment or Hint
|
||||
*/
|
||||
public String getHelp();
|
||||
|
||||
/** Column name IsActive */
|
||||
public static final String COLUMNNAME_IsActive = "IsActive";
|
||||
|
||||
/** Set Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public void setIsActive (boolean IsActive);
|
||||
|
||||
/** Get Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public boolean isActive();
|
||||
|
||||
/** Column name IsApproved */
|
||||
public static final String COLUMNNAME_IsApproved = "IsApproved";
|
||||
|
||||
/** Set Approved.
|
||||
* Indicates if this document requires approval
|
||||
*/
|
||||
public void setIsApproved (boolean IsApproved);
|
||||
|
||||
/** Get Approved.
|
||||
* Indicates if this document requires approval
|
||||
*/
|
||||
public boolean isApproved();
|
||||
|
||||
/** Column name Jam */
|
||||
public static final String COLUMNNAME_Jam = "Jam";
|
||||
|
||||
/** Set Jam */
|
||||
public void setJam (Timestamp Jam);
|
||||
|
||||
/** Get Jam */
|
||||
public Timestamp getJam();
|
||||
|
||||
/** Column name Judul */
|
||||
public static final String COLUMNNAME_Judul = "Judul";
|
||||
|
||||
/** Set Judul */
|
||||
public void setJudul (String Judul);
|
||||
|
||||
/** Get Judul */
|
||||
public String getJudul();
|
||||
|
||||
/** Column name Judul_Analisa */
|
||||
public static final String COLUMNNAME_Judul_Analisa = "Judul_Analisa";
|
||||
|
||||
/** Set Judul Analisa */
|
||||
public void setJudul_Analisa (String Judul_Analisa);
|
||||
|
||||
/** Get Judul Analisa */
|
||||
public String getJudul_Analisa();
|
||||
|
||||
/** Column name JumlahRM */
|
||||
public static final String COLUMNNAME_JumlahRM = "JumlahRM";
|
||||
|
||||
/** Set Jumlah Raw Material */
|
||||
public void setJumlahRM (String JumlahRM);
|
||||
|
||||
/** Get Jumlah Raw Material */
|
||||
public String getJumlahRM();
|
||||
|
||||
/** Column name Kesimpulan */
|
||||
public static final String COLUMNNAME_Kesimpulan = "Kesimpulan";
|
||||
|
||||
/** Set Kesimpulan */
|
||||
public void setKesimpulan (String Kesimpulan);
|
||||
|
||||
/** Get Kesimpulan */
|
||||
public String getKesimpulan();
|
||||
|
||||
/** Column name Ket */
|
||||
public static final String COLUMNNAME_Ket = "Ket";
|
||||
|
||||
/** Set Keterangan */
|
||||
public void setKet (String Ket);
|
||||
|
||||
/** Get Keterangan */
|
||||
public String getKet();
|
||||
|
||||
/** Column name KeteranganCetak */
|
||||
public static final String COLUMNNAME_KeteranganCetak = "KeteranganCetak";
|
||||
|
||||
/** Set Keterangan Cetak */
|
||||
public void setKeteranganCetak (String KeteranganCetak);
|
||||
|
||||
/** Get Keterangan Cetak */
|
||||
public String getKeteranganCetak();
|
||||
|
||||
/** Column name KeteranganLain */
|
||||
public static final String COLUMNNAME_KeteranganLain = "KeteranganLain";
|
||||
|
||||
/** Set Keterangan Lain */
|
||||
public void setKeteranganLain (String KeteranganLain);
|
||||
|
||||
/** Get Keterangan Lain */
|
||||
public String getKeteranganLain();
|
||||
|
||||
/** Column name MID_Analysis_ID */
|
||||
public static final String COLUMNNAME_MID_Analysis_ID = "MID_Analysis_ID";
|
||||
|
||||
/** Set Analysis QC */
|
||||
public void setMID_Analysis_ID (int MID_Analysis_ID);
|
||||
|
||||
/** Get Analysis QC */
|
||||
public int getMID_Analysis_ID();
|
||||
|
||||
/** Column name MID_Analysis_UU */
|
||||
public static final String COLUMNNAME_MID_Analysis_UU = "MID_Analysis_UU";
|
||||
|
||||
/** Set mid_analysis_UU */
|
||||
public void setMID_Analysis_UU (String MID_Analysis_UU);
|
||||
|
||||
/** Get mid_analysis_UU */
|
||||
public String getMID_Analysis_UU();
|
||||
|
||||
/** Column name M_InOut_ID */
|
||||
public static final String COLUMNNAME_M_InOut_ID = "M_InOut_ID";
|
||||
|
||||
/** Set Shipment/Receipt.
|
||||
* Material Shipment Document
|
||||
*/
|
||||
public void setM_InOut_ID (int M_InOut_ID);
|
||||
|
||||
/** Get Shipment/Receipt.
|
||||
* Material Shipment Document
|
||||
*/
|
||||
public int getM_InOut_ID();
|
||||
|
||||
public org.compiere.model.I_M_InOut getM_InOut() throws RuntimeException;
|
||||
|
||||
/** Column name M_InOutReturn_ID */
|
||||
public static final String COLUMNNAME_M_InOutReturn_ID = "M_InOutReturn_ID";
|
||||
|
||||
/** Set M_InOutReturn_ID */
|
||||
public void setM_InOutReturn_ID (int M_InOutReturn_ID);
|
||||
|
||||
/** Get M_InOutReturn_ID */
|
||||
public int getM_InOutReturn_ID();
|
||||
|
||||
public org.compiere.model.I_M_InOut getM_InOutReturn() throws RuntimeException;
|
||||
|
||||
/** Column name M_Production_ID */
|
||||
public static final String COLUMNNAME_M_Production_ID = "M_Production_ID";
|
||||
|
||||
/** Set Production.
|
||||
* Plan for producing a product
|
||||
*/
|
||||
public void setM_Production_ID (int M_Production_ID);
|
||||
|
||||
/** Get Production.
|
||||
* Plan for producing a product
|
||||
*/
|
||||
public int getM_Production_ID();
|
||||
|
||||
public org.compiere.model.I_M_Production getM_Production() throws RuntimeException;
|
||||
|
||||
/** Column name NamaAnalis */
|
||||
public static final String COLUMNNAME_NamaAnalis = "NamaAnalis";
|
||||
|
||||
/** Set Nama Analis */
|
||||
public void setNamaAnalis (String NamaAnalis);
|
||||
|
||||
/** Get Nama Analis */
|
||||
public String getNamaAnalis();
|
||||
|
||||
/** Column name NamaKepala */
|
||||
public static final String COLUMNNAME_NamaKepala = "NamaKepala";
|
||||
|
||||
/** Set Nama Kepala */
|
||||
public void setNamaKepala (String NamaKepala);
|
||||
|
||||
/** Get Nama Kepala */
|
||||
public String getNamaKepala();
|
||||
|
||||
/** Column name Nama_Manajer */
|
||||
public static final String COLUMNNAME_Nama_Manajer = "Nama_Manajer";
|
||||
|
||||
/** Set Nama Manajer */
|
||||
public void setNama_Manajer (String Nama_Manajer);
|
||||
|
||||
/** Get Nama Manajer */
|
||||
public String getNama_Manajer();
|
||||
|
||||
/** Column name Name */
|
||||
public static final String COLUMNNAME_Name = "Name";
|
||||
|
||||
/** Set Name.
|
||||
* Alphanumeric identifier of the entity
|
||||
*/
|
||||
public void setName (String Name);
|
||||
|
||||
/** Get Name.
|
||||
* Alphanumeric identifier of the entity
|
||||
*/
|
||||
public String getName();
|
||||
|
||||
/** Column name No_COA */
|
||||
public static final String COLUMNNAME_No_COA = "No_COA";
|
||||
|
||||
/** Set No COA */
|
||||
public void setNo_COA (String No_COA);
|
||||
|
||||
/** Get No COA */
|
||||
public String getNo_COA();
|
||||
|
||||
/** Column name NoIso */
|
||||
public static final String COLUMNNAME_NoIso = "NoIso";
|
||||
|
||||
/** Set No Iso */
|
||||
public void setNoIso (String NoIso);
|
||||
|
||||
/** Get No Iso */
|
||||
public String getNoIso();
|
||||
|
||||
/** Column name No_ISO */
|
||||
public static final String COLUMNNAME_No_ISO = "No_ISO";
|
||||
|
||||
/** Set No ISO */
|
||||
public void setNo_ISO (String No_ISO);
|
||||
|
||||
/** Get No ISO */
|
||||
public String getNo_ISO();
|
||||
|
||||
/** Column name NoISOCoa */
|
||||
public static final String COLUMNNAME_NoISOCoa = "NoISOCoa";
|
||||
|
||||
/** Set No ISO Coa */
|
||||
public void setNoISOCoa (String NoISOCoa);
|
||||
|
||||
/** Get No ISO Coa */
|
||||
public String getNoISOCoa();
|
||||
|
||||
/** Column name NoLogBook */
|
||||
public static final String COLUMNNAME_NoLogBook = "NoLogBook";
|
||||
|
||||
/** Set NoLogBook */
|
||||
public void setNoLogBook (String NoLogBook);
|
||||
|
||||
/** Get NoLogBook */
|
||||
public String getNoLogBook();
|
||||
|
||||
/** Column name Pj */
|
||||
public static final String COLUMNNAME_Pj = "Pj";
|
||||
|
||||
/** Set Penanggung Jawab */
|
||||
public void setPj (String Pj);
|
||||
|
||||
/** Get Penanggung Jawab */
|
||||
public String getPj();
|
||||
|
||||
/** Column name Posted */
|
||||
public static final String COLUMNNAME_Posted = "Posted";
|
||||
|
||||
/** Set Posted.
|
||||
* Posting status
|
||||
*/
|
||||
public void setPosted (boolean Posted);
|
||||
|
||||
/** Get Posted.
|
||||
* Posting status
|
||||
*/
|
||||
public boolean isPosted();
|
||||
|
||||
/** Column name Processed */
|
||||
public static final String COLUMNNAME_Processed = "Processed";
|
||||
|
||||
/** Set Processed.
|
||||
* The document has been processed
|
||||
*/
|
||||
public void setProcessed (boolean Processed);
|
||||
|
||||
/** Get Processed.
|
||||
* The document has been processed
|
||||
*/
|
||||
public boolean isProcessed();
|
||||
|
||||
/** Column name ProcessedOn */
|
||||
public static final String COLUMNNAME_ProcessedOn = "ProcessedOn";
|
||||
|
||||
/** Set Processed On.
|
||||
* The date+time (expressed in decimal format) when the document has been processed
|
||||
*/
|
||||
public void setProcessedOn (BigDecimal ProcessedOn);
|
||||
|
||||
/** Get Processed On.
|
||||
* The date+time (expressed in decimal format) when the document has been processed
|
||||
*/
|
||||
public BigDecimal getProcessedOn();
|
||||
|
||||
/** Column name Processing */
|
||||
public static final String COLUMNNAME_Processing = "Processing";
|
||||
|
||||
/** Set Process Now */
|
||||
public void setProcessing (boolean Processing);
|
||||
|
||||
/** Get Process Now */
|
||||
public boolean isProcessing();
|
||||
|
||||
/** Column name QC2_Dari */
|
||||
public static final String COLUMNNAME_QC2_Dari = "QC2_Dari";
|
||||
|
||||
/** Set QC2 Dari */
|
||||
public void setQC2_Dari (String QC2_Dari);
|
||||
|
||||
/** Get QC2 Dari */
|
||||
public String getQC2_Dari();
|
||||
|
||||
/** Column name QC2_Dir */
|
||||
public static final String COLUMNNAME_QC2_Dir = "QC2_Dir";
|
||||
|
||||
/** Set QC2 Direktur */
|
||||
public void setQC2_Dir (String QC2_Dir);
|
||||
|
||||
/** Get QC2 Direktur */
|
||||
public String getQC2_Dir();
|
||||
|
||||
/** Column name QC2_DirName */
|
||||
public static final String COLUMNNAME_QC2_DirName = "QC2_DirName";
|
||||
|
||||
/** Set QC2 Nama Direktur */
|
||||
public void setQC2_DirName (String QC2_DirName);
|
||||
|
||||
/** Get QC2 Nama Direktur */
|
||||
public String getQC2_DirName();
|
||||
|
||||
/** Column name QC2_Kepada */
|
||||
public static final String COLUMNNAME_QC2_Kepada = "QC2_Kepada";
|
||||
|
||||
/** Set QC2 Kepada */
|
||||
public void setQC2_Kepada (String QC2_Kepada);
|
||||
|
||||
/** Get QC2 Kepada */
|
||||
public String getQC2_Kepada();
|
||||
|
||||
/** Column name QC2_Menyetujui */
|
||||
public static final String COLUMNNAME_QC2_Menyetujui = "QC2_Menyetujui";
|
||||
|
||||
/** Set QC2 Menyetujui */
|
||||
public void setQC2_Menyetujui (String QC2_Menyetujui);
|
||||
|
||||
/** Get QC2 Menyetujui */
|
||||
public String getQC2_Menyetujui();
|
||||
|
||||
/** Column name QC2_NoISO */
|
||||
public static final String COLUMNNAME_QC2_NoISO = "QC2_NoISO";
|
||||
|
||||
/** Set QC2 No. ISO */
|
||||
public void setQC2_NoISO (String QC2_NoISO);
|
||||
|
||||
/** Get QC2 No. ISO */
|
||||
public String getQC2_NoISO();
|
||||
|
||||
/** Column name QC2_NoSurat */
|
||||
public static final String COLUMNNAME_QC2_NoSurat = "QC2_NoSurat";
|
||||
|
||||
/** Set QC2 No Surat */
|
||||
public void setQC2_NoSurat (String QC2_NoSurat);
|
||||
|
||||
/** Get QC2 No Surat */
|
||||
public String getQC2_NoSurat();
|
||||
|
||||
/** Column name Qty_COA */
|
||||
public static final String COLUMNNAME_Qty_COA = "Qty_COA";
|
||||
|
||||
/** Set Quantity COA */
|
||||
public void setQty_COA (BigDecimal Qty_COA);
|
||||
|
||||
/** Get Quantity COA */
|
||||
public BigDecimal getQty_COA();
|
||||
|
||||
/** Column name Rev */
|
||||
public static final String COLUMNNAME_Rev = "Rev";
|
||||
|
||||
/** Set Rev */
|
||||
public void setRev (String Rev);
|
||||
|
||||
/** Get Rev */
|
||||
public String getRev();
|
||||
|
||||
/** Column name SubJudul_Analisa */
|
||||
public static final String COLUMNNAME_SubJudul_Analisa = "SubJudul_Analisa";
|
||||
|
||||
/** Set Sub Judul Analisa */
|
||||
public void setSubJudul_Analisa (String SubJudul_Analisa);
|
||||
|
||||
/** Get Sub Judul Analisa */
|
||||
public String getSubJudul_Analisa();
|
||||
|
||||
/** Column name SuratPermintaan */
|
||||
public static final String COLUMNNAME_SuratPermintaan = "SuratPermintaan";
|
||||
|
||||
/** Set Surat Permintaan */
|
||||
public void setSuratPermintaan (String SuratPermintaan);
|
||||
|
||||
/** Get Surat Permintaan */
|
||||
public String getSuratPermintaan();
|
||||
|
||||
/** Column name Tgl_COA */
|
||||
public static final String COLUMNNAME_Tgl_COA = "Tgl_COA";
|
||||
|
||||
/** Set Tanggal COA */
|
||||
public void setTgl_COA (Timestamp Tgl_COA);
|
||||
|
||||
/** Get Tanggal COA */
|
||||
public Timestamp getTgl_COA();
|
||||
|
||||
/** Column name Tgl_Minta */
|
||||
public static final String COLUMNNAME_Tgl_Minta = "Tgl_Minta";
|
||||
|
||||
/** Set Tanggal Minta */
|
||||
public void setTgl_Minta (Timestamp Tgl_Minta);
|
||||
|
||||
/** Get Tanggal Minta */
|
||||
public Timestamp getTgl_Minta();
|
||||
|
||||
/** Column name UnitProduksi */
|
||||
public static final String COLUMNNAME_UnitProduksi = "UnitProduksi";
|
||||
|
||||
/** Set Unit Produksi */
|
||||
public void setUnitProduksi (String UnitProduksi);
|
||||
|
||||
/** Get Unit Produksi */
|
||||
public String getUnitProduksi();
|
||||
|
||||
/** Column name Updated */
|
||||
public static final String COLUMNNAME_Updated = "Updated";
|
||||
|
||||
/** Get Updated.
|
||||
* Date this record was updated
|
||||
*/
|
||||
public Timestamp getUpdated();
|
||||
|
||||
/** Column name UpdatedBy */
|
||||
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
|
||||
|
||||
/** Get Updated By.
|
||||
* User who updated this records
|
||||
*/
|
||||
public int getUpdatedBy();
|
||||
}
|
||||
|
|
@ -0,0 +1,204 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
package andromedia.midsuit.model;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import org.compiere.model.*;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Interface for MID_AnalysisLine
|
||||
* @author iDempiere (generated)
|
||||
* @version Release 5.1
|
||||
*/
|
||||
@SuppressWarnings("all")
|
||||
public interface I_MID_AnalysisLine
|
||||
{
|
||||
|
||||
/** TableName=MID_AnalysisLine */
|
||||
public static final String Table_Name = "MID_AnalysisLine";
|
||||
|
||||
/** AD_Table_ID=30094 */
|
||||
public static final int Table_ID = 30094;
|
||||
|
||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||
|
||||
/** AccessLevel = 3 - Client - Org
|
||||
*/
|
||||
BigDecimal accessLevel = BigDecimal.valueOf(3);
|
||||
|
||||
/** Load Meta Data */
|
||||
|
||||
/** Column name AD_Client_ID */
|
||||
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||
|
||||
/** Get Client.
|
||||
* Client/Tenant for this installation.
|
||||
*/
|
||||
public int getAD_Client_ID();
|
||||
|
||||
/** Column name AD_Org_ID */
|
||||
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
|
||||
|
||||
/** Set Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public void setAD_Org_ID (int AD_Org_ID);
|
||||
|
||||
/** Get Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public int getAD_Org_ID();
|
||||
|
||||
/** Column name Created */
|
||||
public static final String COLUMNNAME_Created = "Created";
|
||||
|
||||
/** Get Created.
|
||||
* Date this record was created
|
||||
*/
|
||||
public Timestamp getCreated();
|
||||
|
||||
/** Column name CreatedBy */
|
||||
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
|
||||
|
||||
/** Get Created By.
|
||||
* User who created this records
|
||||
*/
|
||||
public int getCreatedBy();
|
||||
|
||||
/** Column name Description */
|
||||
public static final String COLUMNNAME_Description = "Description";
|
||||
|
||||
/** Set Description.
|
||||
* Optional short description of the record
|
||||
*/
|
||||
public void setDescription (String Description);
|
||||
|
||||
/** Get Description.
|
||||
* Optional short description of the record
|
||||
*/
|
||||
public String getDescription();
|
||||
|
||||
/** Column name IsActive */
|
||||
public static final String COLUMNNAME_IsActive = "IsActive";
|
||||
|
||||
/** Set Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public void setIsActive (boolean IsActive);
|
||||
|
||||
/** Get Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public boolean isActive();
|
||||
|
||||
/** Column name MID_AnalysisLine_ID */
|
||||
public static final String COLUMNNAME_MID_AnalysisLine_ID = "MID_AnalysisLine_ID";
|
||||
|
||||
/** Set Hasil Analisa Product */
|
||||
public void setMID_AnalysisLine_ID (int MID_AnalysisLine_ID);
|
||||
|
||||
/** Get Hasil Analisa Product */
|
||||
public int getMID_AnalysisLine_ID();
|
||||
|
||||
/** Column name MID_AnalysisLine_UU */
|
||||
public static final String COLUMNNAME_MID_AnalysisLine_UU = "MID_AnalysisLine_UU";
|
||||
|
||||
/** Set MID_AnalysisLine_UU */
|
||||
public void setMID_AnalysisLine_UU (String MID_AnalysisLine_UU);
|
||||
|
||||
/** Get MID_AnalysisLine_UU */
|
||||
public String getMID_AnalysisLine_UU();
|
||||
|
||||
/** Column name MID_AnalysisPro_ID */
|
||||
public static final String COLUMNNAME_MID_AnalysisPro_ID = "MID_AnalysisPro_ID";
|
||||
|
||||
/** Set Analysis QC Product */
|
||||
public void setMID_AnalysisPro_ID (int MID_AnalysisPro_ID);
|
||||
|
||||
/** Get Analysis QC Product */
|
||||
public int getMID_AnalysisPro_ID();
|
||||
|
||||
public I_MID_AnalysisPro getMID_AnalysisPro() throws RuntimeException;
|
||||
|
||||
/** Column name MID_Parameter_ID */
|
||||
public static final String COLUMNNAME_MID_Parameter_ID = "MID_Parameter_ID";
|
||||
|
||||
/** Set Product Parameter */
|
||||
public void setMID_Parameter_ID (int MID_Parameter_ID);
|
||||
|
||||
/** Get Product Parameter */
|
||||
public int getMID_Parameter_ID();
|
||||
|
||||
public I_MID_Parameter getMID_Parameter() throws RuntimeException;
|
||||
|
||||
/** Column name Name */
|
||||
public static final String COLUMNNAME_Name = "Name";
|
||||
|
||||
/** Set Name.
|
||||
* Alphanumeric identifier of the entity
|
||||
*/
|
||||
public void setName (String Name);
|
||||
|
||||
/** Get Name.
|
||||
* Alphanumeric identifier of the entity
|
||||
*/
|
||||
public String getName();
|
||||
|
||||
/** Column name NoISOCoa */
|
||||
public static final String COLUMNNAME_NoISOCoa = "NoISOCoa";
|
||||
|
||||
/** Set No ISO Coa */
|
||||
public void setNoISOCoa (String NoISOCoa);
|
||||
|
||||
/** Get No ISO Coa */
|
||||
public String getNoISOCoa();
|
||||
|
||||
/** Column name Parameter_Standard */
|
||||
public static final String COLUMNNAME_Parameter_Standard = "Parameter_Standard";
|
||||
|
||||
/** Set Parameter Standard */
|
||||
public void setParameter_Standard (String Parameter_Standard);
|
||||
|
||||
/** Get Parameter Standard */
|
||||
public String getParameter_Standard();
|
||||
|
||||
/** Column name standardParameter */
|
||||
public static final String COLUMNNAME_standardParameter = "standardParameter";
|
||||
|
||||
/** Set Standard Parameter */
|
||||
public void setstandardParameter (String standardParameter);
|
||||
|
||||
/** Get Standard Parameter */
|
||||
public String getstandardParameter();
|
||||
|
||||
/** Column name Updated */
|
||||
public static final String COLUMNNAME_Updated = "Updated";
|
||||
|
||||
/** Get Updated.
|
||||
* Date this record was updated
|
||||
*/
|
||||
public Timestamp getUpdated();
|
||||
|
||||
/** Column name UpdatedBy */
|
||||
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
|
||||
|
||||
/** Get Updated By.
|
||||
* User who updated this records
|
||||
*/
|
||||
public int getUpdatedBy();
|
||||
}
|
||||
|
|
@ -0,0 +1,229 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
package andromedia.midsuit.model;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import org.compiere.model.*;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Interface for MID_AnalysisPro
|
||||
* @author iDempiere (generated)
|
||||
* @version Release 5.1
|
||||
*/
|
||||
@SuppressWarnings("all")
|
||||
public interface I_MID_AnalysisPro
|
||||
{
|
||||
|
||||
/** TableName=MID_AnalysisPro */
|
||||
public static final String Table_Name = "MID_AnalysisPro";
|
||||
|
||||
/** AD_Table_ID=30092 */
|
||||
public static final int Table_ID = 30092;
|
||||
|
||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||
|
||||
/** AccessLevel = 3 - Client - Org
|
||||
*/
|
||||
BigDecimal accessLevel = BigDecimal.valueOf(3);
|
||||
|
||||
/** Load Meta Data */
|
||||
|
||||
/** Column name AD_Client_ID */
|
||||
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||
|
||||
/** Get Client.
|
||||
* Client/Tenant for this installation.
|
||||
*/
|
||||
public int getAD_Client_ID();
|
||||
|
||||
/** Column name AD_Org_ID */
|
||||
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
|
||||
|
||||
/** Set Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public void setAD_Org_ID (int AD_Org_ID);
|
||||
|
||||
/** Get Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public int getAD_Org_ID();
|
||||
|
||||
/** Column name batch_id */
|
||||
public static final String COLUMNNAME_batch_id = "batch_id";
|
||||
|
||||
/** Set batch_id */
|
||||
public void setbatch_id (String batch_id);
|
||||
|
||||
/** Get batch_id */
|
||||
public String getbatch_id();
|
||||
|
||||
/** Column name Created */
|
||||
public static final String COLUMNNAME_Created = "Created";
|
||||
|
||||
/** Get Created.
|
||||
* Date this record was created
|
||||
*/
|
||||
public Timestamp getCreated();
|
||||
|
||||
/** Column name CreatedBy */
|
||||
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
|
||||
|
||||
/** Get Created By.
|
||||
* User who created this records
|
||||
*/
|
||||
public int getCreatedBy();
|
||||
|
||||
/** Column name Description */
|
||||
public static final String COLUMNNAME_Description = "Description";
|
||||
|
||||
/** Set Description.
|
||||
* Optional short description of the record
|
||||
*/
|
||||
public void setDescription (String Description);
|
||||
|
||||
/** Get Description.
|
||||
* Optional short description of the record
|
||||
*/
|
||||
public String getDescription();
|
||||
|
||||
/** Column name IsActive */
|
||||
public static final String COLUMNNAME_IsActive = "IsActive";
|
||||
|
||||
/** Set Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public void setIsActive (boolean IsActive);
|
||||
|
||||
/** Get Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public boolean isActive();
|
||||
|
||||
/** Column name Kesimpulan */
|
||||
public static final String COLUMNNAME_Kesimpulan = "Kesimpulan";
|
||||
|
||||
/** Set Kesimpulan */
|
||||
public void setKesimpulan (String Kesimpulan);
|
||||
|
||||
/** Get Kesimpulan */
|
||||
public String getKesimpulan();
|
||||
|
||||
/** Column name MID_Analysis_ID */
|
||||
public static final String COLUMNNAME_MID_Analysis_ID = "MID_Analysis_ID";
|
||||
|
||||
/** Set Analysis QC */
|
||||
public void setMID_Analysis_ID (int MID_Analysis_ID);
|
||||
|
||||
/** Get Analysis QC */
|
||||
public int getMID_Analysis_ID();
|
||||
|
||||
public I_MID_Analysis getMID_Analysis() throws RuntimeException;
|
||||
|
||||
/** Column name MID_AnalysisPro_ID */
|
||||
public static final String COLUMNNAME_MID_AnalysisPro_ID = "MID_AnalysisPro_ID";
|
||||
|
||||
/** Set Analysis QC Product */
|
||||
public void setMID_AnalysisPro_ID (int MID_AnalysisPro_ID);
|
||||
|
||||
/** Get Analysis QC Product */
|
||||
public int getMID_AnalysisPro_ID();
|
||||
|
||||
/** Column name MID_AnalysisPro_UU */
|
||||
public static final String COLUMNNAME_MID_AnalysisPro_UU = "MID_AnalysisPro_UU";
|
||||
|
||||
/** Set MID_AnalysisPro_UU */
|
||||
public void setMID_AnalysisPro_UU (String MID_AnalysisPro_UU);
|
||||
|
||||
/** Get MID_AnalysisPro_UU */
|
||||
public String getMID_AnalysisPro_UU();
|
||||
|
||||
/** Column name M_InOut_ID */
|
||||
public static final String COLUMNNAME_M_InOut_ID = "M_InOut_ID";
|
||||
|
||||
/** Set Shipment/Receipt.
|
||||
* Material Shipment Document
|
||||
*/
|
||||
public void setM_InOut_ID (int M_InOut_ID);
|
||||
|
||||
/** Get Shipment/Receipt.
|
||||
* Material Shipment Document
|
||||
*/
|
||||
public int getM_InOut_ID();
|
||||
|
||||
public org.compiere.model.I_M_InOut getM_InOut() throws RuntimeException;
|
||||
|
||||
/** Column name M_Product_ID */
|
||||
public static final String COLUMNNAME_M_Product_ID = "M_Product_ID";
|
||||
|
||||
/** Set Product.
|
||||
* Product, Service, Item
|
||||
*/
|
||||
public void setM_Product_ID (int M_Product_ID);
|
||||
|
||||
/** Get Product.
|
||||
* Product, Service, Item
|
||||
*/
|
||||
public int getM_Product_ID();
|
||||
|
||||
public org.compiere.model.I_M_Product getM_Product() throws RuntimeException;
|
||||
|
||||
/** Column name M_Production_ID */
|
||||
public static final String COLUMNNAME_M_Production_ID = "M_Production_ID";
|
||||
|
||||
/** Set Production.
|
||||
* Plan for producing a product
|
||||
*/
|
||||
public void setM_Production_ID (int M_Production_ID);
|
||||
|
||||
/** Get Production.
|
||||
* Plan for producing a product
|
||||
*/
|
||||
public int getM_Production_ID();
|
||||
|
||||
public org.compiere.model.I_M_Production getM_Production() throws RuntimeException;
|
||||
|
||||
/** Column name Qty */
|
||||
public static final String COLUMNNAME_Qty = "Qty";
|
||||
|
||||
/** Set Quantity.
|
||||
* Quantity
|
||||
*/
|
||||
public void setQty (BigDecimal Qty);
|
||||
|
||||
/** Get Quantity.
|
||||
* Quantity
|
||||
*/
|
||||
public BigDecimal getQty();
|
||||
|
||||
/** Column name Updated */
|
||||
public static final String COLUMNNAME_Updated = "Updated";
|
||||
|
||||
/** Get Updated.
|
||||
* Date this record was updated
|
||||
*/
|
||||
public Timestamp getUpdated();
|
||||
|
||||
/** Column name UpdatedBy */
|
||||
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
|
||||
|
||||
/** Get Updated By.
|
||||
* User who updated this records
|
||||
*/
|
||||
public int getUpdatedBy();
|
||||
}
|
||||
|
|
@ -0,0 +1,192 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
package andromedia.midsuit.model;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import org.compiere.model.*;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Interface for MID_Parameter
|
||||
* @author iDempiere (generated)
|
||||
* @version Release 5.1
|
||||
*/
|
||||
@SuppressWarnings("all")
|
||||
public interface I_MID_Parameter
|
||||
{
|
||||
|
||||
/** TableName=MID_Parameter */
|
||||
public static final String Table_Name = "MID_Parameter";
|
||||
|
||||
/** AD_Table_ID=30093 */
|
||||
public static final int Table_ID = 30093;
|
||||
|
||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||
|
||||
/** AccessLevel = 3 - Client - Org
|
||||
*/
|
||||
BigDecimal accessLevel = BigDecimal.valueOf(3);
|
||||
|
||||
/** Load Meta Data */
|
||||
|
||||
/** Column name AD_Client_ID */
|
||||
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||
|
||||
/** Get Client.
|
||||
* Client/Tenant for this installation.
|
||||
*/
|
||||
public int getAD_Client_ID();
|
||||
|
||||
/** Column name AD_Org_ID */
|
||||
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
|
||||
|
||||
/** Set Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public void setAD_Org_ID (int AD_Org_ID);
|
||||
|
||||
/** Get Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public int getAD_Org_ID();
|
||||
|
||||
/** Column name Created */
|
||||
public static final String COLUMNNAME_Created = "Created";
|
||||
|
||||
/** Get Created.
|
||||
* Date this record was created
|
||||
*/
|
||||
public Timestamp getCreated();
|
||||
|
||||
/** Column name CreatedBy */
|
||||
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
|
||||
|
||||
/** Get Created By.
|
||||
* User who created this records
|
||||
*/
|
||||
public int getCreatedBy();
|
||||
|
||||
/** Column name Description */
|
||||
public static final String COLUMNNAME_Description = "Description";
|
||||
|
||||
/** Set Description.
|
||||
* Optional short description of the record
|
||||
*/
|
||||
public void setDescription (String Description);
|
||||
|
||||
/** Get Description.
|
||||
* Optional short description of the record
|
||||
*/
|
||||
public String getDescription();
|
||||
|
||||
/** Column name Help */
|
||||
public static final String COLUMNNAME_Help = "Help";
|
||||
|
||||
/** Set Comment/Help.
|
||||
* Comment or Hint
|
||||
*/
|
||||
public void setHelp (String Help);
|
||||
|
||||
/** Get Comment/Help.
|
||||
* Comment or Hint
|
||||
*/
|
||||
public String getHelp();
|
||||
|
||||
/** Column name IsActive */
|
||||
public static final String COLUMNNAME_IsActive = "IsActive";
|
||||
|
||||
/** Set Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public void setIsActive (boolean IsActive);
|
||||
|
||||
/** Get Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public boolean isActive();
|
||||
|
||||
/** Column name MID_Parameter_ID */
|
||||
public static final String COLUMNNAME_MID_Parameter_ID = "MID_Parameter_ID";
|
||||
|
||||
/** Set Product Parameter */
|
||||
public void setMID_Parameter_ID (int MID_Parameter_ID);
|
||||
|
||||
/** Get Product Parameter */
|
||||
public int getMID_Parameter_ID();
|
||||
|
||||
/** Column name mid_parameter_UU */
|
||||
public static final String COLUMNNAME_mid_parameter_UU = "mid_parameter_UU";
|
||||
|
||||
/** Set mid_parameter_UU */
|
||||
public void setmid_parameter_UU (String mid_parameter_UU);
|
||||
|
||||
/** Get mid_parameter_UU */
|
||||
public String getmid_parameter_UU();
|
||||
|
||||
/** Column name M_Product_ID */
|
||||
public static final String COLUMNNAME_M_Product_ID = "M_Product_ID";
|
||||
|
||||
/** Set Product.
|
||||
* Product, Service, Item
|
||||
*/
|
||||
public void setM_Product_ID (int M_Product_ID);
|
||||
|
||||
/** Get Product.
|
||||
* Product, Service, Item
|
||||
*/
|
||||
public int getM_Product_ID();
|
||||
|
||||
public org.compiere.model.I_M_Product getM_Product() throws RuntimeException;
|
||||
|
||||
/** Column name Name */
|
||||
public static final String COLUMNNAME_Name = "Name";
|
||||
|
||||
/** Set Name.
|
||||
* Alphanumeric identifier of the entity
|
||||
*/
|
||||
public void setName (String Name);
|
||||
|
||||
/** Get Name.
|
||||
* Alphanumeric identifier of the entity
|
||||
*/
|
||||
public String getName();
|
||||
|
||||
/** Column name Parameter_Standard */
|
||||
public static final String COLUMNNAME_Parameter_Standard = "Parameter_Standard";
|
||||
|
||||
/** Set Parameter Standard */
|
||||
public void setParameter_Standard (String Parameter_Standard);
|
||||
|
||||
/** Get Parameter Standard */
|
||||
public String getParameter_Standard();
|
||||
|
||||
/** Column name Updated */
|
||||
public static final String COLUMNNAME_Updated = "Updated";
|
||||
|
||||
/** Get Updated.
|
||||
* Date this record was updated
|
||||
*/
|
||||
public Timestamp getUpdated();
|
||||
|
||||
/** Column name UpdatedBy */
|
||||
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
|
||||
|
||||
/** Get Updated By.
|
||||
* User who updated this records
|
||||
*/
|
||||
public int getUpdatedBy();
|
||||
}
|
||||
|
|
@ -0,0 +1,229 @@
|
|||
package andromedia.midsuit.model;
|
||||
|
||||
import java.io.File;
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.ResultSet;
|
||||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.adempiere.exceptions.AdempiereException;
|
||||
import org.compiere.model.MInOutConfirm;
|
||||
import org.compiere.model.MInOutLine;
|
||||
import org.compiere.model.MProduction;
|
||||
import org.compiere.model.MProductionLine;
|
||||
import org.compiere.model.Query;
|
||||
import org.compiere.process.DocAction;
|
||||
import org.compiere.process.DocumentEngine;
|
||||
import org.compiere.util.DB;
|
||||
|
||||
public class MID_Analysis extends X_MID_Analysis implements DocAction {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public MID_Analysis(Properties ctx, int MID_Analysis_ID, String trxName) {
|
||||
super(ctx, MID_Analysis_ID, trxName);
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
public MID_Analysis(Properties ctx, ResultSet rs, String trxName) {
|
||||
super(ctx, rs, trxName);
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
protected boolean afterSave(boolean newRecord, boolean success) {
|
||||
// TODO Auto-generated method stub
|
||||
if (newRecord) {
|
||||
if (getM_Production_ID() > 0)
|
||||
createLineFromProduction();
|
||||
else if (getM_InOut_ID() > 0)
|
||||
createLineFromShipment();
|
||||
else if (get_Value("M_InOutReturn_ID") == null || (int) get_Value("M_InOutReturn_ID") > 0)
|
||||
createLineFromReturn();
|
||||
// else if (get_Value("M_Inventory_ID")!=null)
|
||||
// createLineFromInventory();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean beforeDelete() {
|
||||
MInOutConfirm Confirm = new Query(getCtx(), MInOutConfirm.Table_Name, "PS_Analysis_ID =? AND DocStatus =?", get_TrxName())
|
||||
.setParameters(new Object[] { getMID_Analysis_ID(), DocAction.ACTION_Complete })
|
||||
.setOnlyActiveRecords(true)
|
||||
.first();
|
||||
if(Confirm!=null)
|
||||
throw new AdempiereException("QC sudah digunakan pada ship/receipt nomor "+Confirm.getDocumentNo());
|
||||
|
||||
int[] productIDs = new Query(getCtx(), MID_AnalysisPro.Table_Name, "PS_Analysis_ID =? ", get_TrxName())
|
||||
.getIDs();
|
||||
for(int productID : productIDs){
|
||||
String sql = "DELETE FROM PS_AnalysisLine WHERE PS_AnalysisPro_ID =?";
|
||||
DB.executeUpdateEx(sql, new Object[]{productID}, get_TrxName());
|
||||
}
|
||||
|
||||
String sql = "DELETE FROM PS_AnalysisPro WHERE PS_Analysis_ID =?";
|
||||
DB.executeUpdateEx(sql, new Object[]{ getMID_Analysis_ID() }, get_TrxName());
|
||||
|
||||
return super.beforeDelete();
|
||||
}
|
||||
|
||||
public void createLineFromProduction() {
|
||||
|
||||
MProduction production = new MProduction(getCtx(), getM_Production_ID(), null);
|
||||
|
||||
if(production != null) {
|
||||
MID_AnalysisPro a = new MID_AnalysisPro(getCtx(), 0, get_TrxName());
|
||||
a.setMID_Analysis_ID(getMID_Analysis_ID());
|
||||
a.setM_Product_ID(production.getM_Product_ID());
|
||||
a.setQty(production.getProductionQty());
|
||||
a.setbatch_id(getProduct());
|
||||
a.saveEx();
|
||||
}
|
||||
}
|
||||
|
||||
public String getProduct() {
|
||||
|
||||
String valueReturn = "";
|
||||
List<MProductionLine> productionLines = new Query(getCtx()
|
||||
, MProductionLine.Table_Name
|
||||
, "M_Production_ID = ? and isEndProduct='N'", get_TrxName())
|
||||
.setParameters(new Object[] {getM_Production_ID()})
|
||||
.list();
|
||||
|
||||
for(MProductionLine productionLine : productionLines) {
|
||||
if(productionLine != null) {
|
||||
String qtyUsed = productionLine.getQtyUsed().toString();
|
||||
valueReturn += qtyUsed == null ? "0;" : qtyUsed + ";";
|
||||
}
|
||||
}
|
||||
|
||||
return valueReturn;
|
||||
}
|
||||
|
||||
public void createLineFromShipment() {
|
||||
List<MInOutLine> iols = new Query(getCtx(), MInOutLine.Table_Name, "M_InOut_ID = ?", get_TrxName())
|
||||
.setParameters(new Object[] {getM_InOut()})
|
||||
.list();
|
||||
|
||||
for(MInOutLine iol : iols){
|
||||
MID_AnalysisPro ap = new MID_AnalysisPro(getCtx(), 0, get_TrxName());
|
||||
ap.setMID_Analysis_ID(getMID_Analysis_ID());
|
||||
ap.setM_Product_ID(iol.getM_Product_ID());
|
||||
ap.setQty(iol.getQtyEntered());
|
||||
ap.saveEx();
|
||||
}
|
||||
}
|
||||
|
||||
public void createLineFromReturn() {
|
||||
List<MInOutLine> iols = new Query(getCtx(), MInOutLine.Table_Name, "M_InOut_ID = ?", get_TrxName())
|
||||
.setParameters(new Object[] {getM_InOut()})
|
||||
.list();
|
||||
|
||||
for(MInOutLine iol : iols) {
|
||||
MID_AnalysisPro ap = new MID_AnalysisPro(getCtx(), 0, get_TrxName());
|
||||
ap.setMID_Analysis_ID(getMID_Analysis_ID());
|
||||
ap.setM_Product_ID(iol.getM_Product_ID());
|
||||
ap.setQty(iol.getQtyEntered());
|
||||
ap.saveEx();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean processIt(String action) throws Exception {
|
||||
// TODO Auto-generated method stub
|
||||
log.warning("Processing Action=" + action + " - DocStatus=" + getDocStatus() + " - DocAction=" + getDocAction());
|
||||
DocumentEngine engine = new DocumentEngine(this, getDocStatus());
|
||||
return engine.processIt(action, getDocAction());
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean unlockIt() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean invalidateIt() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String prepareIt() {
|
||||
setC_DocType_ID(getC_DocTypeTarget_ID());
|
||||
return DocAction.STATUS_InProgress;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean approveIt() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean rejectIt() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String completeIt() {
|
||||
|
||||
return DocAction.STATUS_Completed;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean voidIt() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean closeIt() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean reverseCorrectIt() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean reverseAccrualIt() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean reActivateIt() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSummary() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getDocumentInfo() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public File createPDF() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getProcessMsg() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDoc_User_ID() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public BigDecimal getApprovalAmt() {
|
||||
return BigDecimal.ONE;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package andromedia.midsuit.model;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Properties;
|
||||
|
||||
public class MID_AnalysisLine extends X_MID_AnalysisLine {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -8735159026713259241L;
|
||||
|
||||
public MID_AnalysisLine(Properties ctx, int MID_AnalysisLine_ID, String trxName) {
|
||||
super(ctx, MID_AnalysisLine_ID, trxName);
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
public MID_AnalysisLine(Properties ctx, ResultSet rs, String trxName) {
|
||||
super(ctx, rs, trxName);
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
package andromedia.midsuit.model;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.util.List;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.compiere.model.Query;
|
||||
|
||||
public class MID_AnalysisPro extends X_MID_AnalysisPro {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -5451587381155760865L;
|
||||
|
||||
public MID_AnalysisPro(Properties ctx, int MID_AnalysisPro_ID, String trxName) {
|
||||
super(ctx, MID_AnalysisPro_ID, trxName);
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
public MID_AnalysisPro(Properties ctx, ResultSet rs, String trxName) {
|
||||
super(ctx, rs, trxName);
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
protected boolean afterSave(boolean newRecord, boolean success) {
|
||||
if (newRecord) {
|
||||
createParameter();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public void createParameter() {
|
||||
|
||||
List<MID_Parameter> params = new Query(getCtx(), MID_Parameter.Table_Name, "M_Product_ID = ?", get_TrxName())
|
||||
.setParameters(new Object[] {getM_Product_ID()})
|
||||
.list();
|
||||
for(MID_Parameter param : params) {
|
||||
MID_AnalysisLine al = new MID_AnalysisLine(getCtx(),0,get_TrxName());
|
||||
al.setName(param.getName());
|
||||
al.setParameter_Standard(param.getParameter_Standard());
|
||||
al.setMID_Parameter_ID(param.getMID_Parameter_ID());
|
||||
al.setMID_AnalysisPro_ID(getMID_AnalysisPro_ID());
|
||||
al.saveEx();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
package andromedia.midsuit.model;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Properties;
|
||||
|
||||
public class MID_Parameter extends X_MID_Parameter {
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -2785109173056371758L;
|
||||
|
||||
public MID_Parameter(Properties ctx, int MID_Parameter_ID, String trxName) {
|
||||
super(ctx, MID_Parameter_ID, trxName);
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
public MID_Parameter(Properties ctx, ResultSet rs, String trxName) {
|
||||
super(ctx, rs, trxName);
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,233 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
/** Generated Model - DO NOT CHANGE */
|
||||
package andromedia.midsuit.model;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Properties;
|
||||
import org.compiere.model.*;
|
||||
|
||||
/** Generated Model for MID_AnalysisLine
|
||||
* @author iDempiere (generated)
|
||||
* @version Release 5.1 - $Id$ */
|
||||
public class X_MID_AnalysisLine extends PO implements I_MID_AnalysisLine, I_Persistent
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20180828L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_MID_AnalysisLine (Properties ctx, int MID_AnalysisLine_ID, String trxName)
|
||||
{
|
||||
super (ctx, MID_AnalysisLine_ID, trxName);
|
||||
/** if (MID_AnalysisLine_ID == 0)
|
||||
{
|
||||
setMID_AnalysisLine_ID (0);
|
||||
setMID_AnalysisPro_ID (0);
|
||||
setName (null);
|
||||
} */
|
||||
}
|
||||
|
||||
/** Load Constructor */
|
||||
public X_MID_AnalysisLine (Properties ctx, ResultSet rs, String trxName)
|
||||
{
|
||||
super (ctx, rs, trxName);
|
||||
}
|
||||
|
||||
/** AccessLevel
|
||||
* @return 3 - Client - Org
|
||||
*/
|
||||
protected int get_AccessLevel()
|
||||
{
|
||||
return accessLevel.intValue();
|
||||
}
|
||||
|
||||
/** Load Meta Data */
|
||||
protected POInfo initPO (Properties ctx)
|
||||
{
|
||||
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
|
||||
return poi;
|
||||
}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
StringBuffer sb = new StringBuffer ("X_MID_AnalysisLine[")
|
||||
.append(get_ID()).append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/** Set Description.
|
||||
@param Description
|
||||
Optional short description of the record
|
||||
*/
|
||||
public void setDescription (String Description)
|
||||
{
|
||||
set_Value (COLUMNNAME_Description, Description);
|
||||
}
|
||||
|
||||
/** Get Description.
|
||||
@return Optional short description of the record
|
||||
*/
|
||||
public String getDescription ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Description);
|
||||
}
|
||||
|
||||
/** Set Hasil Analisa Product.
|
||||
@param MID_AnalysisLine_ID Hasil Analisa Product */
|
||||
public void setMID_AnalysisLine_ID (int MID_AnalysisLine_ID)
|
||||
{
|
||||
if (MID_AnalysisLine_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_MID_AnalysisLine_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_MID_AnalysisLine_ID, Integer.valueOf(MID_AnalysisLine_ID));
|
||||
}
|
||||
|
||||
/** Get Hasil Analisa Product.
|
||||
@return Hasil Analisa Product */
|
||||
public int getMID_AnalysisLine_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_MID_AnalysisLine_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set MID_AnalysisLine_UU.
|
||||
@param MID_AnalysisLine_UU MID_AnalysisLine_UU */
|
||||
public void setMID_AnalysisLine_UU (String MID_AnalysisLine_UU)
|
||||
{
|
||||
set_ValueNoCheck (COLUMNNAME_MID_AnalysisLine_UU, MID_AnalysisLine_UU);
|
||||
}
|
||||
|
||||
/** Get MID_AnalysisLine_UU.
|
||||
@return MID_AnalysisLine_UU */
|
||||
public String getMID_AnalysisLine_UU ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_MID_AnalysisLine_UU);
|
||||
}
|
||||
|
||||
public I_MID_AnalysisPro getMID_AnalysisPro() throws RuntimeException
|
||||
{
|
||||
return (I_MID_AnalysisPro)MTable.get(getCtx(), I_MID_AnalysisPro.Table_Name)
|
||||
.getPO(getMID_AnalysisPro_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Analysis QC Product.
|
||||
@param MID_AnalysisPro_ID Analysis QC Product */
|
||||
public void setMID_AnalysisPro_ID (int MID_AnalysisPro_ID)
|
||||
{
|
||||
if (MID_AnalysisPro_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_MID_AnalysisPro_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_MID_AnalysisPro_ID, Integer.valueOf(MID_AnalysisPro_ID));
|
||||
}
|
||||
|
||||
/** Get Analysis QC Product.
|
||||
@return Analysis QC Product */
|
||||
public int getMID_AnalysisPro_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_MID_AnalysisPro_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public I_MID_Parameter getMID_Parameter() throws RuntimeException
|
||||
{
|
||||
return (I_MID_Parameter)MTable.get(getCtx(), I_MID_Parameter.Table_Name)
|
||||
.getPO(getMID_Parameter_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Product Parameter.
|
||||
@param MID_Parameter_ID Product Parameter */
|
||||
public void setMID_Parameter_ID (int MID_Parameter_ID)
|
||||
{
|
||||
if (MID_Parameter_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_MID_Parameter_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_MID_Parameter_ID, Integer.valueOf(MID_Parameter_ID));
|
||||
}
|
||||
|
||||
/** Get Product Parameter.
|
||||
@return Product Parameter */
|
||||
public int getMID_Parameter_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_MID_Parameter_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Name.
|
||||
@param Name
|
||||
Alphanumeric identifier of the entity
|
||||
*/
|
||||
public void setName (String Name)
|
||||
{
|
||||
set_Value (COLUMNNAME_Name, Name);
|
||||
}
|
||||
|
||||
/** Get Name.
|
||||
@return Alphanumeric identifier of the entity
|
||||
*/
|
||||
public String getName ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Name);
|
||||
}
|
||||
|
||||
/** Set No ISO Coa.
|
||||
@param NoISOCoa No ISO Coa */
|
||||
public void setNoISOCoa (String NoISOCoa)
|
||||
{
|
||||
set_Value (COLUMNNAME_NoISOCoa, NoISOCoa);
|
||||
}
|
||||
|
||||
/** Get No ISO Coa.
|
||||
@return No ISO Coa */
|
||||
public String getNoISOCoa ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_NoISOCoa);
|
||||
}
|
||||
|
||||
/** Set Parameter Standard.
|
||||
@param Parameter_Standard Parameter Standard */
|
||||
public void setParameter_Standard (String Parameter_Standard)
|
||||
{
|
||||
set_Value (COLUMNNAME_Parameter_Standard, Parameter_Standard);
|
||||
}
|
||||
|
||||
/** Get Parameter Standard.
|
||||
@return Parameter Standard */
|
||||
public String getParameter_Standard ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Parameter_Standard);
|
||||
}
|
||||
|
||||
/** Set Standard Parameter.
|
||||
@param standardParameter Standard Parameter */
|
||||
public void setstandardParameter (String standardParameter)
|
||||
{
|
||||
throw new IllegalArgumentException ("standardParameter is virtual column"); }
|
||||
|
||||
/** Get Standard Parameter.
|
||||
@return Standard Parameter */
|
||||
public String getstandardParameter ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_standardParameter);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,286 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
/** Generated Model - DO NOT CHANGE */
|
||||
package andromedia.midsuit.model;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Properties;
|
||||
import org.compiere.model.*;
|
||||
import org.compiere.util.Env;
|
||||
|
||||
/** Generated Model for MID_AnalysisPro
|
||||
* @author iDempiere (generated)
|
||||
* @version Release 5.1 - $Id$ */
|
||||
public class X_MID_AnalysisPro extends PO implements I_MID_AnalysisPro, I_Persistent
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20180828L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_MID_AnalysisPro (Properties ctx, int MID_AnalysisPro_ID, String trxName)
|
||||
{
|
||||
super (ctx, MID_AnalysisPro_ID, trxName);
|
||||
/** if (MID_AnalysisPro_ID == 0)
|
||||
{
|
||||
setKesimpulan (null);
|
||||
setMID_Analysis_ID (0);
|
||||
setMID_AnalysisPro_ID (0);
|
||||
setM_Product_ID (0);
|
||||
} */
|
||||
}
|
||||
|
||||
/** Load Constructor */
|
||||
public X_MID_AnalysisPro (Properties ctx, ResultSet rs, String trxName)
|
||||
{
|
||||
super (ctx, rs, trxName);
|
||||
}
|
||||
|
||||
/** AccessLevel
|
||||
* @return 3 - Client - Org
|
||||
*/
|
||||
protected int get_AccessLevel()
|
||||
{
|
||||
return accessLevel.intValue();
|
||||
}
|
||||
|
||||
/** Load Meta Data */
|
||||
protected POInfo initPO (Properties ctx)
|
||||
{
|
||||
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
|
||||
return poi;
|
||||
}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
StringBuffer sb = new StringBuffer ("X_MID_AnalysisPro[")
|
||||
.append(get_ID()).append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/** Set batch_id.
|
||||
@param batch_id batch_id */
|
||||
public void setbatch_id (String batch_id)
|
||||
{
|
||||
set_Value (COLUMNNAME_batch_id, batch_id);
|
||||
}
|
||||
|
||||
/** Get batch_id.
|
||||
@return batch_id */
|
||||
public String getbatch_id ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_batch_id);
|
||||
}
|
||||
|
||||
/** Set Description.
|
||||
@param Description
|
||||
Optional short description of the record
|
||||
*/
|
||||
public void setDescription (String Description)
|
||||
{
|
||||
set_Value (COLUMNNAME_Description, Description);
|
||||
}
|
||||
|
||||
/** Get Description.
|
||||
@return Optional short description of the record
|
||||
*/
|
||||
public String getDescription ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Description);
|
||||
}
|
||||
|
||||
/** Kesimpulan AD_Reference_ID=30046 */
|
||||
public static final int KESIMPULAN_AD_Reference_ID=30046;
|
||||
/** Diterima = D */
|
||||
public static final String KESIMPULAN_Diterima = "D";
|
||||
/** Ditolak = R */
|
||||
public static final String KESIMPULAN_Ditolak = "R";
|
||||
/** Produksi Ulang = RW */
|
||||
public static final String KESIMPULAN_ProduksiUlang = "RW";
|
||||
/** Set Kesimpulan.
|
||||
@param Kesimpulan Kesimpulan */
|
||||
public void setKesimpulan (String Kesimpulan)
|
||||
{
|
||||
|
||||
set_Value (COLUMNNAME_Kesimpulan, Kesimpulan);
|
||||
}
|
||||
|
||||
/** Get Kesimpulan.
|
||||
@return Kesimpulan */
|
||||
public String getKesimpulan ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Kesimpulan);
|
||||
}
|
||||
|
||||
public I_MID_Analysis getMID_Analysis() throws RuntimeException
|
||||
{
|
||||
return (I_MID_Analysis)MTable.get(getCtx(), I_MID_Analysis.Table_Name)
|
||||
.getPO(getMID_Analysis_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Analysis QC.
|
||||
@param MID_Analysis_ID Analysis QC */
|
||||
public void setMID_Analysis_ID (int MID_Analysis_ID)
|
||||
{
|
||||
if (MID_Analysis_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_MID_Analysis_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_MID_Analysis_ID, Integer.valueOf(MID_Analysis_ID));
|
||||
}
|
||||
|
||||
/** Get Analysis QC.
|
||||
@return Analysis QC */
|
||||
public int getMID_Analysis_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_MID_Analysis_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Analysis QC Product.
|
||||
@param MID_AnalysisPro_ID Analysis QC Product */
|
||||
public void setMID_AnalysisPro_ID (int MID_AnalysisPro_ID)
|
||||
{
|
||||
if (MID_AnalysisPro_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_MID_AnalysisPro_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_MID_AnalysisPro_ID, Integer.valueOf(MID_AnalysisPro_ID));
|
||||
}
|
||||
|
||||
/** Get Analysis QC Product.
|
||||
@return Analysis QC Product */
|
||||
public int getMID_AnalysisPro_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_MID_AnalysisPro_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set MID_AnalysisPro_UU.
|
||||
@param MID_AnalysisPro_UU MID_AnalysisPro_UU */
|
||||
public void setMID_AnalysisPro_UU (String MID_AnalysisPro_UU)
|
||||
{
|
||||
set_ValueNoCheck (COLUMNNAME_MID_AnalysisPro_UU, MID_AnalysisPro_UU);
|
||||
}
|
||||
|
||||
/** Get MID_AnalysisPro_UU.
|
||||
@return MID_AnalysisPro_UU */
|
||||
public String getMID_AnalysisPro_UU ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_MID_AnalysisPro_UU);
|
||||
}
|
||||
|
||||
public org.compiere.model.I_M_InOut getM_InOut() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_M_InOut)MTable.get(getCtx(), org.compiere.model.I_M_InOut.Table_Name)
|
||||
.getPO(getM_InOut_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Shipment/Receipt.
|
||||
@param M_InOut_ID
|
||||
Material Shipment Document
|
||||
*/
|
||||
public void setM_InOut_ID (int M_InOut_ID)
|
||||
{
|
||||
throw new IllegalArgumentException ("M_InOut_ID is virtual column"); }
|
||||
|
||||
/** Get Shipment/Receipt.
|
||||
@return Material Shipment Document
|
||||
*/
|
||||
public int getM_InOut_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_M_InOut_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public org.compiere.model.I_M_Product getM_Product() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_M_Product)MTable.get(getCtx(), org.compiere.model.I_M_Product.Table_Name)
|
||||
.getPO(getM_Product_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Product.
|
||||
@param M_Product_ID
|
||||
Product, Service, Item
|
||||
*/
|
||||
public void setM_Product_ID (int M_Product_ID)
|
||||
{
|
||||
if (M_Product_ID < 1)
|
||||
set_Value (COLUMNNAME_M_Product_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID));
|
||||
}
|
||||
|
||||
/** Get Product.
|
||||
@return Product, Service, Item
|
||||
*/
|
||||
public int getM_Product_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public org.compiere.model.I_M_Production getM_Production() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_M_Production)MTable.get(getCtx(), org.compiere.model.I_M_Production.Table_Name)
|
||||
.getPO(getM_Production_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Production.
|
||||
@param M_Production_ID
|
||||
Plan for producing a product
|
||||
*/
|
||||
public void setM_Production_ID (int M_Production_ID)
|
||||
{
|
||||
throw new IllegalArgumentException ("M_Production_ID is virtual column"); }
|
||||
|
||||
/** Get Production.
|
||||
@return Plan for producing a product
|
||||
*/
|
||||
public int getM_Production_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_M_Production_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Quantity.
|
||||
@param Qty
|
||||
Quantity
|
||||
*/
|
||||
public void setQty (BigDecimal Qty)
|
||||
{
|
||||
set_Value (COLUMNNAME_Qty, Qty);
|
||||
}
|
||||
|
||||
/** Get Quantity.
|
||||
@return Quantity
|
||||
*/
|
||||
public BigDecimal getQty ()
|
||||
{
|
||||
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Qty);
|
||||
if (bd == null)
|
||||
return Env.ZERO;
|
||||
return bd;
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,202 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
/** Generated Model - DO NOT CHANGE */
|
||||
package andromedia.midsuit.model;
|
||||
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Properties;
|
||||
import org.compiere.model.*;
|
||||
|
||||
/** Generated Model for MID_Parameter
|
||||
* @author iDempiere (generated)
|
||||
* @version Release 5.1 - $Id$ */
|
||||
public class X_MID_Parameter extends PO implements I_MID_Parameter, I_Persistent
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20180828L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_MID_Parameter (Properties ctx, int MID_Parameter_ID, String trxName)
|
||||
{
|
||||
super (ctx, MID_Parameter_ID, trxName);
|
||||
/** if (MID_Parameter_ID == 0)
|
||||
{
|
||||
setMID_Parameter_ID (0);
|
||||
setM_Product_ID (0);
|
||||
setName (null);
|
||||
setParameter_Standard (null);
|
||||
} */
|
||||
}
|
||||
|
||||
/** Load Constructor */
|
||||
public X_MID_Parameter (Properties ctx, ResultSet rs, String trxName)
|
||||
{
|
||||
super (ctx, rs, trxName);
|
||||
}
|
||||
|
||||
/** AccessLevel
|
||||
* @return 3 - Client - Org
|
||||
*/
|
||||
protected int get_AccessLevel()
|
||||
{
|
||||
return accessLevel.intValue();
|
||||
}
|
||||
|
||||
/** Load Meta Data */
|
||||
protected POInfo initPO (Properties ctx)
|
||||
{
|
||||
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
|
||||
return poi;
|
||||
}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
StringBuffer sb = new StringBuffer ("X_MID_Parameter[")
|
||||
.append(get_ID()).append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
/** Set Description.
|
||||
@param Description
|
||||
Optional short description of the record
|
||||
*/
|
||||
public void setDescription (String Description)
|
||||
{
|
||||
set_Value (COLUMNNAME_Description, Description);
|
||||
}
|
||||
|
||||
/** Get Description.
|
||||
@return Optional short description of the record
|
||||
*/
|
||||
public String getDescription ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Description);
|
||||
}
|
||||
|
||||
/** Set Comment/Help.
|
||||
@param Help
|
||||
Comment or Hint
|
||||
*/
|
||||
public void setHelp (String Help)
|
||||
{
|
||||
set_Value (COLUMNNAME_Help, Help);
|
||||
}
|
||||
|
||||
/** Get Comment/Help.
|
||||
@return Comment or Hint
|
||||
*/
|
||||
public String getHelp ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Help);
|
||||
}
|
||||
|
||||
/** Set Product Parameter.
|
||||
@param MID_Parameter_ID Product Parameter */
|
||||
public void setMID_Parameter_ID (int MID_Parameter_ID)
|
||||
{
|
||||
if (MID_Parameter_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_MID_Parameter_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_MID_Parameter_ID, Integer.valueOf(MID_Parameter_ID));
|
||||
}
|
||||
|
||||
/** Get Product Parameter.
|
||||
@return Product Parameter */
|
||||
public int getMID_Parameter_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_MID_Parameter_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set mid_parameter_UU.
|
||||
@param mid_parameter_UU mid_parameter_UU */
|
||||
public void setmid_parameter_UU (String mid_parameter_UU)
|
||||
{
|
||||
set_ValueNoCheck (COLUMNNAME_mid_parameter_UU, mid_parameter_UU);
|
||||
}
|
||||
|
||||
/** Get mid_parameter_UU.
|
||||
@return mid_parameter_UU */
|
||||
public String getmid_parameter_UU ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_mid_parameter_UU);
|
||||
}
|
||||
|
||||
public org.compiere.model.I_M_Product getM_Product() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_M_Product)MTable.get(getCtx(), org.compiere.model.I_M_Product.Table_Name)
|
||||
.getPO(getM_Product_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Product.
|
||||
@param M_Product_ID
|
||||
Product, Service, Item
|
||||
*/
|
||||
public void setM_Product_ID (int M_Product_ID)
|
||||
{
|
||||
if (M_Product_ID < 1)
|
||||
set_Value (COLUMNNAME_M_Product_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_M_Product_ID, Integer.valueOf(M_Product_ID));
|
||||
}
|
||||
|
||||
/** Get Product.
|
||||
@return Product, Service, Item
|
||||
*/
|
||||
public int getM_Product_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_M_Product_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Name.
|
||||
@param Name
|
||||
Alphanumeric identifier of the entity
|
||||
*/
|
||||
public void setName (String Name)
|
||||
{
|
||||
set_Value (COLUMNNAME_Name, Name);
|
||||
}
|
||||
|
||||
/** Get Name.
|
||||
@return Alphanumeric identifier of the entity
|
||||
*/
|
||||
public String getName ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Name);
|
||||
}
|
||||
|
||||
/** Set Parameter Standard.
|
||||
@param Parameter_Standard Parameter Standard */
|
||||
public void setParameter_Standard (String Parameter_Standard)
|
||||
{
|
||||
set_Value (COLUMNNAME_Parameter_Standard, Parameter_Standard);
|
||||
}
|
||||
|
||||
/** Get Parameter Standard.
|
||||
@return Parameter Standard */
|
||||
public String getParameter_Standard ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Parameter_Standard);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue