コード例 #1
0
        //{PREFIX}-{POD_TYPE}{RETRO_TYPE}-{RETRO_ID}-{TRACK}-{POD_ID}
        public string assignNewPodId(string prodCodeStr, int newPodId)
        {
            ProductionCode prodCode = new ProductionCode();

            prodCode = deconstructProdCode(prodCodeStr);

            prodCode.pod_id = newPodId;

            return(prodCode.ToString());
        }
コード例 #2
0
        public string assignNewRetroType(string prodCodeStr, string newRetroTypeCode)
        {
            ProductionCode prodCode = new ProductionCode();

            prodCode = deconstructProdCode(prodCodeStr);

            prodCode.retro_type = newRetroTypeCode;

            return(prodCode.ToString());
        }
コード例 #3
0
        public string assignNewTrack(string prodCodeStr, int newTrack)
        {
            ProductionCode prodCode = new ProductionCode();

            prodCode = deconstructProdCode(prodCodeStr);

            prodCode.track = newTrack;

            return(prodCode.ToString());
        }
コード例 #4
0
        public string incTrackFromProdCode(string prodCodeStr)
        {
            ProductionCode prodCode = deconstructProdCode(prodCodeStr);

            int track = -1;

            try
            {
                ++prodCode.track;
                return(prodCode.ToString());
            }
            catch (Exception)
            {
                return("");
            }
        }