psdi.app.common

Class FldCommonWonum

    • Constructor Detail

      • FldCommonWonum

        public FldCommonWonum(MboValue mbv)
                       throws MXException
        Constructor defaults the relationship to the Work Order table with a relationship of "siteid = :siteid and wonum = :". This can be changed in the sub-classes as needed.
        Parameters:
        mbv - = the current mbo value.
        Throws:
        MXException
    • Method Detail

      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        Update the fields affected by changing this field and merge the debit gl account. Use the setXxxField methods (below) for mapping from workorder to the current mbo BEFORE calling this action method.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException
      • setAssetnumField

        public void setAssetnumField(java.lang.String assetnumField)
                              throws MXException,
                                     java.rmi.RemoteException
        Give the name of the Assetnum attribute. When the wonum is set, the assetnum attribute is set to the work order's assetnum.
        Parameters:
        assetnumField - The name of the Assetnum attribute
        Throws:
        MXException
        java.rmi.RemoteException
      • setLocationField

        public void setLocationField(java.lang.String locationField)
                              throws MXException,
                                     java.rmi.RemoteException
        Give the name of the Location attribute. When the wonum is set, the location attribute is set to the work order's location.
        Parameters:
        locationField - The name of the location attribute
        Throws:
        MXException
        java.rmi.RemoteException
      • setGLDebitAcctField

        public void setGLDebitAcctField(java.lang.String gldebitacctField)
                                 throws MXException,
                                        java.rmi.RemoteException
        Give the name of the GL Debit Account attribute.
        Parameters:
        gldebitacctField - The name of the attribute
        Throws:
        MXException
        java.rmi.RemoteException
      • setChargeStoreField

        public void setChargeStoreField(java.lang.String chargestoreField)
                                 throws MXException,
                                        java.rmi.RemoteException
        Give the name of the Charge-to-Store attribute.
        Parameters:
        chargestoreField - The name of the attribute
        Throws:
        MXException
        java.rmi.RemoteException
      • setItemnumField

        public void setItemnumField(java.lang.String itemnumField)
                             throws MXException,
                                    java.rmi.RemoteException
        Give the name of the Itemnum attribute. Used for the GL Merge.
        Parameters:
        itemnumField - The name of the attribute
        Throws:
        MXException
        java.rmi.RemoteException
      • setItemsetidField

        public void setItemsetidField(java.lang.String itemsetidField)
                               throws MXException,
                                      java.rmi.RemoteException
        Give the name of the Itemsetid attribute. Used for the GL Merge.
        Parameters:
        itemsetidField - The name of the attribute
        Throws:
        MXException
        java.rmi.RemoteException
      • setStoreLocField

        public void setStoreLocField(java.lang.String storelocField,
                                     boolean clearStorelocField)
                              throws MXException,
                                     java.rmi.RemoteException
        Give the names of the Storeroom Location and whether the attribute should be cleared.
        Parameters:
        storelocField - The name of the attribute
        clearStorelocField - If true, clear the storelocField; if false, do not clear the storelocField.
        Throws:
        MXException
        java.rmi.RemoteException
      • setLaborcodeField

        public void setLaborcodeField(java.lang.String laborcodeField)
                               throws MXException,
                                      java.rmi.RemoteException
        Give the name of the LaborCode attribute. Used for the GL Merge.
        Parameters:
        laborcodeField - The name of the attribute
        Throws:
        MXException
        java.rmi.RemoteException
      • setCraftField

        public void setCraftField(java.lang.String craftField)
        Give the name of the Craft attribute. Used for the GL Merge.
        Parameters:
        laborcodeField - The name of the attribute
      • setSkilllevelField

        public void setSkilllevelField(java.lang.String skilllevelField)
        Give the name of the Skill Level attribute. Used for the GL Merge.
        Parameters:
        laborcodeField - The name of the attribute
      • setVendorField

        public void setVendorField(java.lang.String vendorField)
        Give the name of the vendor attribute. Used for the GL Merge.
        Parameters:
        laborcodeField - The name of the attribute
      • setContractnumField

        public void setContractnumField(java.lang.String contractField)
        Give the name of the Contract number attribute. Used for the GL Merge.
        Parameters:
        laborcodeField - The name of the attribute
      • setToolnumField

        public void setToolnumField(java.lang.String toolnumField)
                             throws MXException,
                                    java.rmi.RemoteException
        Give the name of the ToolNum attribute. Used for the GL Merge.
        Parameters:
        toolnumField - The name of the attribute
        Throws:
        MXException
        java.rmi.RemoteException
      • setMRField

        public void setMRField(java.lang.String mrnumField,
                               java.lang.String mrlinenumField)
                        throws MXException,
                               java.rmi.RemoteException
        Give the name of the MRNum and MRLineNum attributes. Used for the GL Merge.
        Parameters:
        mrnumField - Name of MRNum attribute
        mrlinenumField - Name of MRLineNum attribute
        Throws:
        MXException
        java.rmi.RemoteException
      • getWoOwner

        public MboRemote getWoOwner()
                             throws MXException,
                                    java.rmi.RemoteException
        Determines whether the Mbo owning this attribute's Mbo is a WO Mbo If there no owner of the MboSet or if the owner is not a WO object, null is returned.
        Returns:
        The WO owner of this attribute's Mbo or null.
        Throws:
        MXException
        java.rmi.RemoteException