Esempio n. 1
0
        /// <summary>
        /// Saves a working cost.
        /// Will return the saved item with the
        /// new value in workingCostId field (if this is a new item)
        /// </summary>
        /// <param name="ident"></param>
        /// <param name="wc"></param>
        /// <returns></returns>
        /// 2018-08-17 KJBO
        public gWorkingCostCL saveWorkingCost(string ident, gWorkingCostCL wc)
        {
            CWorkingCost cw = new CWorkingCost();

            return(cw.saveWorkingCost(ident, wc));
        }
Esempio n. 2
0
        /// <summary>
        /// Get working costs (and cuttingMargin)
        /// Return always one row. If nothing is stored then
        /// the return value in in ErrCode will be -100. As this
        /// error is expected the first time something is stored this
        /// has to be taken care of in the calling code.
        /// All other errors shall be shown to the user
        /// </summary>
        /// <param name="ident"></param>
        /// <returns></returns>
        /// 2018-08-17 KJBO
        public gWorkingCostCL getWorkingCosts(string ident)
        {
            CWorkingCost cw = new CWorkingCost();

            return(cw.getWorkingCosts(ident));
        }