Esempio n. 1
0
        public void InitializeID()
        {
            string id = ADSFile.LoadString(this.ADS_ID, this.Path, true);

            if (!id.IsNullOrWhiteSpace())
            {
                this.ID = id;
                return;
            }


            this.ID = AMUID.Identifier;

            if (!this.ID.IsNullOrWhiteSpace())
            {
                ADSFile.SaveString(this.ADS_ID, this.ID, this.Path, true);
                this.InnerRaportRequest = true;
                return;
            }


            string aud = AUID.NewString();

            if (!aud.IsNullOrWhiteSpace())
            {
                this.ID = aud;
                ADSFile.SaveString(this.ADS_ID, this.ID, this.Path, true);
                this.InnerRaportRequest = true;
                return;
            }
        }
Esempio n. 2
0
        private void InitializeTrackingNumber(bool _new)
        {
            string value = SManager.ExchangeOrder.TrackingNumber;

            if (_new || value.IsNullOrWhiteSpace() || value.Length != 24)
            {
                value = AUID.NewString(24);
            }

            SManager.ExchangeOrder.TrackingNumber = value;

            TbxOrderTrackingNr.Text = value;
        }