コード例 #1
0
        public IActionResult Birthdays()
        {
            var viewModel = new GeneralView()
            {
                People = this.categoriesService.GetBirhtdaysPeople <GeneralAllPeopleView>(),
            };

            return(this.View(viewModel));
        }
コード例 #2
0
        public IActionResult Women()
        {
            var viewModel = new GeneralView()
            {
                People = this.categoriesService.GetTopWomen <GeneralAllPeopleView>(),
            };

            return(this.View(viewModel));
        }
コード例 #3
0
        public IActionResult List(SearchIndexViewModel input)
        {
            var viewModel = new GeneralView()
            {
                People = this.profilesService.GetAllSearch <GeneralAllPeopleView>(input),
            };

            return(this.View(viewModel));
        }
コード例 #4
0
ファイル: General.xaml.cs プロジェクト: sandalkuilang/texto
        public General()
        {
            InitializeComponent();
            GeneralView model = ObjectPool.Instance.Resolve <GeneralView>();

            if (this.DataContext == null && model != null)
            {
                this.DataContext = model;
            }
        }
コード例 #5
0
        public MainWindowViewModel(EntityDirectory directory)
        {
            EntityDirectory = directory;
            Initialise(directory);

            GeneralView         = new GeneralView(this);
            ActionsLocationView = new ActionsLocationView(this);
            ArraysView          = new ArraysView(this);
            CollidersView       = new CollidersView(this);
            EmoticonsView       = new EmoticonsView(this);
            PropertiesView      = new PropertiesView(this);
        }
コード例 #6
0
        public GeneralView GetGeneralView(DataRow dr)
        {
            GeneralView gv = new GeneralView();

            gv.name    = dr["姓名"].ToString();
            gv.company = dr["分公司"].ToString();

            NormalClass nc = new NormalClass();

            int[] nums = nc.numlist(gv.name);

            gv.numDomesdic     = nums[0];
            gv.numGlobal       = nums[1];
            gv.numTodo         = nums[2];
            gv.numFirstVirsion = nums[3];
            gv.numOAtotal      = nums[4];
            gv.numOAin30       = nums[5];
            return(gv);
        }
コード例 #7
0
        //部门案件状态
        private void btnGeneralViewofMembers_Click(object sender, RoutedEventArgs e)
        {
            string[]    members = new string[] { "舒丁", "熊文杰", "何茹玥", "刘赏源", "张杨", "魏亮", "陈隆", "姚许", "虞凌霄", "郭小满", "罗美红", "王红红(离职)", "吴黎丽(离职)", "黄文勇", "陈善镇", "陈金普", "韩瑞", "郭健", "章雷" };
            NormalClass nc      = new NormalClass();

            nc.Path = CurrentDir;
            nc.Namelist();
            //string[] members = new string[] { "方高明", "蔡丽妮", "万成", "易倩", "武志峰", "刘广", "景晓玲","唐德君"};
            GeneralView          gv  = new GeneralView();
            GeneralViewofMembers gvm = new GeneralViewofMembers();

            foreach (DataRow dr in nc.DtResult.Rows)
            {
                gv = GetGeneralView(dr);
                gvm.gvMembers.Add(gv);
            }
            gvm.CurrentDir = CurrentDir;
            gvm.Show();
        }
コード例 #8
0
 public MainWindowViewModel(ServerConfiguration serverConfiguration, MessageCollaborator messageCollection, ApplicationSettings applicationSettings, GeneralView generalView, CallView callView,
                            PortView portView, SMSView smsView)
 {
     this.serverConfiguration = serverConfiguration;
     this.messageCollection   = messageCollection;
     this.applicationSettings = applicationSettings;
     this.generalView         = generalView;
     this.callView            = callView;
     this.portView            = portView;
     this.smsView             = smsView;
 }