示例#1
0
        //获取加载停车卡信息
        void Get_VICardCompleted(object sender, Get_VICardCompletedEventArgs e)
        {
            _oVCard = e.Result;
            if (_oVCard == null)
                _oVCard = new ObservableCollection<T_OA_VEHICLECARD>();

            T_OA_VEHICLECARD card = new T_OA_VEHICLECARD();

            card.INVALIDDATE = DateTime.Today.AddYears(1);
            card.EFFECTDATE = DateTime.Today;
            card.CARDTYPE = "公司";
            //_oVCard.Add(card);
            dg.ItemsSource = _oVCard;
            dg.SelectedIndex = 0;
        }
示例#2
0
        //获取加载停车卡信息
        void Get_VICardCompleted(object sender, Get_VICardCompletedEventArgs e)
        {
            _oVCard = e.Result;
            if (_oVCard == null)
            {
                _oVCard = new ObservableCollection <T_OA_VEHICLECARD>();
            }

            T_OA_VEHICLECARD card = new T_OA_VEHICLECARD();

            card.INVALIDDATE = DateTime.Today.AddYears(1);
            card.EFFECTDATE  = DateTime.Today;
            card.CARDTYPE    = "公司";
            //_oVCard.Add(card);
            dg.ItemsSource   = _oVCard;
            dg.SelectedIndex = 0;
        }