package com.steering.pss.qcm;

import java.util.ArrayList;

import CoreFS.SA06.CoreReturnObject;

import com.steering.comm.db.DBCommon;

public class CoreMscPhyStdNote extends DBCommon {

    public CoreReturnObject doQuery(String phyCode) {
        return this.getDataBySqlID("CoreMscPhyStdNote.QUERY",
                new Object[] { phyCode });
    }

    public CoreReturnObject doQueryIndex(String phyCode) {
        return this.getDataBySqlID("CoreMscPhyStdNote.QUERYIndex",
                new Object[] { phyCode });
    }
    
    public CoreReturnObject queryGuid(String pic,String index) {
        return this.getDataBySqlID("CoreMscPhyStdNote.QueryGuid",
                new Object[] { pic,index });
    }


    public CoreReturnObject doAdd(ArrayList<Object> parm) {
        String phyCode= parm.get(0).toString();
        parm.add(phyCode);
        return this.setDataBySqlID("CoreMscPhyStdNote.Add", parm.toArray());
    }

    public CoreReturnObject doUpdate(ArrayList<Object> parm) {
        return this.setDataBySqlID("CoreMscPhyStdNote.UPDATE", parm.toArray());
    }
    
    
    public CoreReturnObject isReapt(String stdDesc,String phyCode) {
        Object []obj = new Object []{stdDesc,phyCode};
        return this.getDataBySqlID("CoreMscPhyStdNote.IsReapt", obj);
    }
    
    public CoreReturnObject isReaptUpdate(String stdDesc,String phyCode,String index) {
        Object []obj = new Object []{stdDesc,phyCode,index};
        return this.getDataBySqlID("CoreMscPhyStdNote.IsReaptUpdate", obj);
    }
    
    public CoreReturnObject isRefenced(String guid) {
        Object []obj = new Object []{guid};
        return this.getDataBySqlID("CoreMscPhyStdNote.IsRefrenced", obj);
    }
    
    public CoreReturnObject isGrouped(String phyCode) {
        Object []obj = new Object []{phyCode};
        return this.getDataBySqlID("CoreMscPhyStdNote.IsGrouped", obj);
    }
    
}
