/**
         *  Set Description.
         *  - Product Values
         *  - Instance Values
         *  - SerNo	= #123
         *  - Lot   = \u00ab123\u00bb
         *  - GuaranteeDate	= 10/25/2003
         */
        public void SetDescription()
        {
            //	Make sure we have a Attribute Set
            GetMAttributeSet();
            if (_mas == null)
            {
                SetDescription("");
                return;
            }
            StringBuilder sb = new StringBuilder();

            //	Instance Attribute Values
            MAttribute[] attributes = _mas.GetMAttributes(true);
            for (int i = 0; i < attributes.Length; i++)
            {
                MAttributeInstance mai = attributes[i].GetMAttributeInstance(GetM_AttributeSetInstance_ID());
                if (mai != null && mai.GetValue() != null)
                {
                    if (sb.Length > 0)
                    {
                        sb.Append("_");
                    }
                    sb.Append(mai.GetValue());
                }
            }
            //	SerNo
            if (_mas.IsSerNo() && GetSerNo() != null)
            {
                if (sb.Length > 0)
                {
                    sb.Append("_");
                }
                sb.Append(_mas.GetSerNoCharStart()).Append(GetSerNo()).Append(_mas.GetSerNoCharEnd());
            }
            //	Lot
            if (_mas.IsLot() && GetLot() != null)
            {
                if (sb.Length > 0)
                {
                    sb.Append("_");
                }
                sb.Append(_mas.GetLotCharStart()).Append(GetLot()).Append(_mas.GetLotCharEnd());
            }
            //	GuaranteeDate
            if (_mas.IsGuaranteeDate() && GetGuaranteeDate() != null)
            {
                if (sb.Length > 0)
                {
                    sb.Append("_");
                }
                sb.Append(_dateFormat.Format(GetGuaranteeDate()));
                //MessageBox.Show("set date time formate cheak line");
                //sb.Append(GetGuaranteeDate());
            }

            //	Product Attribute Values
            attributes = _mas.GetMAttributes(false);
            for (int i = 0; i < attributes.Length; i++)
            {
                MAttributeInstance mai = attributes[i].GetMAttributeInstance(GetM_AttributeSetInstance_ID());
                if (mai != null && mai.GetValue() != null)
                {
                    if (sb.Length > 0)
                    {
                        sb.Append("_");
                    }
                    sb.Append(mai.GetValue());
                }
            }
            SetDescription(sb.ToString());
        }