public ActionResult AddUser(string hidtype)
        {
            dynamic data  = new System.Dynamic.ExpandoObject();
            var     token = _tokenRepos.GetDynamicToken();

            data.token = token;
            var role = _roleRepos.GetRole();

            data.role = role;
            var customer = _customerRepos.GetCustomer();

            data.customer = customer;
            data.one      = new Entities::Models.User();
            if (hidtype == "add")
            {
                return(View(new User()));
            }
            if (hidtype == "update")
            {
                Guid guid = new Guid();
                return(View(_userRepos.GetUserByGuid(guid)));
            }
            return(PartialView(data));
        }
        public ActionResult CustomerCollectionConfig()
        {
            dynamic data = new System.Dynamic.ExpandoObject();

            #region  拉框
            var customers = _customerRepos.GetCustomer().Select(p => new SelectListItem {
                Text = p.CustomerFullName, Value = p.CustomerCode
            }).ToList();
            var units  = _customerRepos.GetDDLAllStandardUnit();
            var points = _customerRepos.GetDDLAllCollectionPoint();

            data.customers = customers;
            data.units     = units;
            data.points    = points;
            #endregion
            return(View(data));
        }