Пример #1
0
 public ActionResult Index(AgentInfoView model)
 {
     ReturnData<string> ret=new ReturnData<string>();
     AgentInfoViewBll bll=new AgentInfoViewBll();
     ret=bll.EditAgent(model);
     return Json(ret);
 }
Пример #2
0
        public ActionResult Index(AgentInfoView model)
        {
            ReturnData <string> ret = new ReturnData <string>();
            AgentInfoViewBll    bll = new AgentInfoViewBll();

            ret = bll.EditAgent(model);
            return(Json(ret));
        }
Пример #3
0
 // GET: AgentState/AgentInfo
 public ActionResult Index()
 {
     AgentInfoViewBll bll=new AgentInfoViewBll();
     AgentInfoView model = bll.GetModel(AgentLoginUser.UserBasicID, AgentLoginUser.UserBasic.EnterpriseID);
     List<SelectListItem> list = new List<SelectListItem>();
     SelectListItem item1 = new SelectListItem();
     item1.Text = "男";
     item1.Value = "1";
     list.Add(item1);
     SelectListItem item3 = new SelectListItem();
     item3.Text = "女";
     item3.Value = "2";
     list.Add(item3);
     SelectListItem item5 = new SelectListItem();
     item5.Text = "保密";
     item5.Value = "0";
     list.Add(item5);
     ViewBag.Sex = new SelectList(list, "Value", "Text", model.Sex);
     
     return View(model);
 }
Пример #4
0
        // GET: AgentState/AgentInfo
        public ActionResult Index()
        {
            AgentInfoViewBll      bll   = new AgentInfoViewBll();
            AgentInfoView         model = bll.GetModel(AgentLoginUser.UserBasicID, AgentLoginUser.UserBasic.EnterpriseID);
            List <SelectListItem> list  = new List <SelectListItem>();
            SelectListItem        item1 = new SelectListItem();

            item1.Text  = "男";
            item1.Value = "1";
            list.Add(item1);
            SelectListItem item3 = new SelectListItem();

            item3.Text  = "女";
            item3.Value = "2";
            list.Add(item3);
            SelectListItem item5 = new SelectListItem();

            item5.Text  = "保密";
            item5.Value = "0";
            list.Add(item5);
            ViewBag.Sex = new SelectList(list, "Value", "Text", model.Sex);

            return(View(model));
        }