public IActionResult Birthdays() { var viewModel = new GeneralView() { People = this.categoriesService.GetBirhtdaysPeople <GeneralAllPeopleView>(), }; return(this.View(viewModel)); }
public IActionResult Women() { var viewModel = new GeneralView() { People = this.categoriesService.GetTopWomen <GeneralAllPeopleView>(), }; return(this.View(viewModel)); }
public IActionResult List(SearchIndexViewModel input) { var viewModel = new GeneralView() { People = this.profilesService.GetAllSearch <GeneralAllPeopleView>(input), }; return(this.View(viewModel)); }
public General() { InitializeComponent(); GeneralView model = ObjectPool.Instance.Resolve <GeneralView>(); if (this.DataContext == null && model != null) { this.DataContext = model; } }
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); }
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); }
//部门案件状态 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(); }
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; }