Ejemplo n.º 1
0
        public void Loaded(View.UserEditNaviParam param)
        {
            BJUTInfoCenterUserinfos = param.BJUTInfoCenterUserinfos;
            BJUTEduCenterUserinfos  = param.BJUTEduCenterUserinfos;
            BJUTLibCenterUserinfos  = param.BJUTLibCenterUserinfos;

            if (param.User != null)
            {
                Username = param.User.Username;
                Password = param.User.Password;
            }
            switch (param.UserType)
            {
            case "BJUTInfoCenterUserinfo":
                UserType = typeof(Model.BJUTInfoCenterUserinfo);
                Title    = "信息门户";
                break;

            case "BJUTLibCenterUserinfo":
                UserType = typeof(Model.BJUTLibCenterUserinfo);
                Title    = "图书馆";
                break;

            case "BJUTEduCenterUserinfo":
                UserType = typeof(Model.BJUTEduCenterUserinfo);
                Title    = "教务中心";
                break;

            case "StudentID":

            default:
                break;
            }
        }
Ejemplo n.º 2
0
        public void EditEduClick(string username)
        {
            View.UserEditNaviParam naviParam = new View.UserEditNaviParam();
            naviParam.UserType = "BJUTEduCenterUserinfo";

            var user = Service.DbService.GetInfoCenterUserinfo <Model.BJUTEduCenterUserinfo>().Where(m => m.Username == username).FirstOrDefault();

            naviParam.User = user;
            NavigationVM.DetailFrame.Navigate(typeof(View.UserEditPage), naviParam);
        }
Ejemplo n.º 3
0
        public void Save(object param)
        {
            string usertype = (string)param;

            View.UserEditNaviParam naviParam = new View.UserEditNaviParam();

            naviParam.BJUTEduCenterUserinfos  = BJUTEduCenterUserinfos;
            naviParam.BJUTInfoCenterUserinfos = BJUTInfoCenterUserinfos;
            naviParam.BJUTLibCenterUserinfos  = BJUTLibCenterUserinfos;

            naviParam.UserType = usertype;
            NavigationVM.DetailFrame.Navigate(typeof(View.UserEditPage), naviParam);
        }