Exemplo n.º 1
0
        public ReqRpt023LotDetailTableViewModel(ReqRpt023LotDetailQueryPostModel postModel)
        {
            var list       = postModel.SelectedDepartment.Split(',').ToList();
            var departList = ReqRpt024MainViewModel.Departments.Where(w => list.Contains(w.Key)).Select(s => s.Value);
            ReqRpt023PostViewModel mainPost = new ReqRpt023PostViewModel()
            {
                Departments  = string.Join(",", departList),
                LotTypes     = postModel.SelectedLotType,
                Product      = postModel.SelectedProduct,
                FromDateTime = postModel.SelectedFrom,
                ToDateTime   = postModel.SelectedTo
            };

            TableViewModel = new ReqRpt023TableViewModel(mainPost);
            Department     = postModel.Department;
            Reason         = postModel.Reason;
            Initialize();
        }
Exemplo n.º 2
0
 public ReqRpt023TableViewModel(ReqRpt023PostViewModel postViewModel)
 {
     RecivePostModel = postViewModel;
     Initialize();
 }