Example #1
0
        public string GetItemCode(Item item)
        {
            int    countDeptStd      = setupGateway.GetItemCount(item) + 1;
            int    noOfZeroToBeAdded = 6 - countDeptStd.ToString().Length;
            string noOfZero          = "";

            for (int i = 0; i < noOfZeroToBeAdded; i++)
            {
                noOfZero += "0";
            }

            return(noOfZero + countDeptStd);
        }