Exemple #1
0
        //
        // GET: /Danhmuc phong ban/
        public ActionResult Index()
        {
            if (!IsLogged())
            {
                return(BackToLogin());
            }
            DanhmucServices       service = new DanhmucServices();
            thongtingiamdocModels param   = new thongtingiamdocModels();

            lstthongtingiamdoc = service.SelectRows_thongtingiamdoc(param);
            StringBuilder sbTendonvi = new StringBuilder();

            foreach (var item in lstthongtingiamdoc)
            {
                sbTendonvi.Append(string.Format("<option value='{0}'>{1}</option>", item.mathongtin, item.hovaten));
            }

            ViewBag.keHoachs = sbTendonvi.ToString();
            return(View());
        }