/// <summary> /// Saves reusable material /// Returns the new created or changed material object /// If an error occurs than that error will be returned /// </summary> /// <param name="ident"></param> /// <param name="reuseMat"></param> /// <returns></returns> /// 2018-08-31 KJBO public gReuseMatCL saveReuseMaterial(string ident, gReuseMatCL reuseMat) { CReuseMaterial cr = new CReuseMaterial(); return(cr.saveReuseMaterial(ident, reuseMat)); }
/// <summary> /// Returns the deault reusable percent depending on the innerSize of a gasket /// Please check errCode before using the result /// The only field that shall be accessed is the reusePercentage /// </summary> /// <param name="ident"></param> /// <param name="innerSize"></param> /// <returns></returns> /// 2018-08-31 KJBO public gReuseMatCL getReusablePercentage(string ident, Decimal innerSize) { CReuseMaterial cr = new CReuseMaterial(); return(cr.getReusablePercentage(ident, innerSize)); }
/// <summary> /// Get a list of all reuse material sizes /// Set reuseMatId to 0 to get all objects /// Otherwise return only the object matching the /// Id number /// </summary> /// <param name="ident"></param> /// <param name="reuseMatId"></param> /// <returns></returns> /// 2018-08-31 KJBO public List <gReuseMatCL> getReuseMaterial(string ident, int reuseMatId) { CReuseMaterial cr = new CReuseMaterial(); return(cr.getReuseMaterial(ident, reuseMatId)); }