Exemple #1
0
        void TariffMaintanin_Loaded(object sender, RoutedEventArgs e)
        {
            //this.picker.SelectedCode = "0101";
            VM     = new TariffInfoVM();
            facade = new TariffFacade(this);


            //VM.IsEnabled = AuthMgr.HasFunctionPoint(AuthKeyConst.MKT_DownLoad_DownLoadYYCard);权限
            var select = this.Request.UserState as dynamic;

            if (!String.IsNullOrEmpty(this.Request.Param))
            {
                int temp = 0;
                if (int.TryParse(this.Request.Param, out temp))
                {
                    Init(temp);
                }
            }
            else
            {
                VM.Status = TariffStatus.Valid;
            }
            this.DataContext = VM;
            Loaded          -= TariffMaintanin_Loaded;
        }
 void QueryTariffInfo_Loaded(object sender, RoutedEventArgs e)
 {
     VM               = new TariffInfoQueryFilterVM();
     m_facade         = new TariffFacade(this);
     this.DataContext = VM;
     Loaded          -= QueryTariffInfo_Loaded;
 }