Esempio n. 1
0
 /// <summary>
 /// 导入包月源数据
 /// </summary>
 /// <returns></returns>
 public ActionResult ImportExcelByMonth()
 {
     ViewBag.msg = "请选择要上传的Excel文件!";
     List<Admin_CPcompany> cpList = new Admin_CPcompanyLogic().GetCpList();
     List<SelectListItem> items = new List<SelectListItem>();
     foreach (var item in cpList)
     {
         items.Add(new SelectListItem { Selected = false, Text = item.CPname, Value = item.ID.ToString() });
     }
     ViewBag.CpNameList = items;
     return View();
 }
Esempio n. 2
0
 /// <summary>
 /// 编辑CP信息
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public ActionResult EditCp(int id)
 {
     Admin_CPcompany acp = new Admin_CPcompanyLogic().GetCPbyID(id);
     return View(acp);
 }