Ejemplo n.º 1
0
        public CryptographyViewModel()
        {
            DropDownListModel dropDownListModel = new DropDownListModel();

            dropDownListModel.Value = "1";
            dropDownListModel.Text  = "TripleDes";
            DdlTypes.Add(dropDownListModel);

            dropDownListModel       = new DropDownListModel();
            dropDownListModel.Value = "2";
            dropDownListModel.Text  = "AES";
            DdlTypes.Add(dropDownListModel);

            dropDownListModel       = new DropDownListModel();
            dropDownListModel.Value = "3";
            dropDownListModel.Text  = "MD5";
            DdlTypes.Add(dropDownListModel);

            dropDownListModel       = new DropDownListModel();
            dropDownListModel.Value = "4";
            dropDownListModel.Text  = "Special Password";
            DdlTypes.Add(dropDownListModel);

            OutputType      = 1;
            DdlTypeSelected = "1";

            OutputData = "";
        }
Ejemplo n.º 2
0
        // GET: User/UserInfo
        public ActionResult Index()
        {
            LoadData();

            #region  拉框绑定
            var userTypeList = CodeBLL.GetCodeListByParentCode("RYLX");
            var listItems    = new List <ListItem>();
            listItems.Add(new ListItem
            {
                Text  = "全部",
                Value = "-1"
            });
            foreach (var d in userTypeList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.BMVALUE,
                    Value = d.BMKEY.ToString()
                });
            }

            var userType = new DropDownListModel();
            userType.DropDownList     = "VALUE";
            userType.DropDownListItem = listItems;

            #endregion
            UserInfoModel model = new UserInfoModel();
            model.userType = userType;
            return(View(model));
        }
Ejemplo n.º 3
0
 protected void DropDownListModelDataRefresh()
 {
     DropDownListModel.DataSource     = (new BLL_Model()).SelectByBrandID(Int32.Parse(DropDownListBrand.SelectedValue));
     DropDownListModel.DataTextField  = "ModelName";
     DropDownListModel.DataValueField = "ModelID";
     DropDownListModel.DataBind();
 }
Ejemplo n.º 4
0
        public ActionResult ChargingStatus(DropDownListModel obj)
        {
            obj            = new DropDownListModel();
            obj.MobileList = new SelectList(obj.GetOperatorName(), "SheetID", "Operator"); // model binding

            return(View(obj));
        }
        // GET: DataModel/DropDownList
        public ActionResult Index()
        {
            var listItems = new List <ListItem>
            {
                new ListItem {
                    Text  = "可选项1",
                    Value = "Value1"
                },
                new ListItem {
                    Text         = "可选项2(不可选择)",
                    Value        = "Value2",
                    EnableSelect = false
                },
                new ListItem {
                    Text         = "可选项3(不可选择)",
                    Value        = "Value3",
                    EnableSelect = false
                },
                new ListItem {
                    Text  = "可选项4",
                    Value = "Value4"
                },
                new ListItem {
                    Text  = "可选项5",
                    Value = "Value5"
                },
                new ListItem {
                    Text  = "可选项6",
                    Value = "Value6"
                },
                new ListItem {
                    Text  = "可选择项7",
                    Value = "Value7"
                },
                new ListItem {
                    Text  = "可选择项8",
                    Value = "Value8"
                },
                new ListItem {
                    Text  = "普通型1 < L > 1.5",
                    Value = "Value9"
                },
                new ListItem {
                    Text  = "一个很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的可选择项",
                    Value = "Value10"
                }
            };

            var model = new DropDownListModel();

            model.DropDownList1      = "Value5";
            model.DropDownList1Items = listItems;


            model.DropDownList2      = new string[] { "Value1", "Value5" };
            model.DropDownList2Items = listItems;

            return(View(model));
        }
 public ActionResult AirtelHoroscope(DropDownListModel obj)
 {
     obj                       = new DropDownListModel();
     obj.MobileList            = new SelectList(obj.GetDataList("7"), "SheetID", "SheetName");
     obj.MonthList             = new SelectList(obj.GetMonthYearList(1), "MonthValue", "MonthName"); // model binding
     obj.YearList              = new SelectList(obj.GetMonthYearList(2), "YearValue", "YearName");   // model binding
     ActionModel.ActionNameGet = KeyConstant.actionAirtelHoroscope;
     return(View(obj));
 }
 public ActionResult BuddyServiceIntl(DropDownListModel obj)
 {
     obj                       = new DropDownListModel();
     obj.MobileList            = new SelectList(obj.GetDataList("9"), "SheetID", "SheetName");
     obj.MonthList             = new SelectList(obj.GetMonthYearList(1), "MonthValue", "MonthName"); // model binding
     obj.YearList              = new SelectList(obj.GetMonthYearList(2), "YearValue", "YearName");   // model binding
     ActionModel.ActionNameGet = KeyConstant.actionBuddyServiceIntl;
     return(View(obj));
 }
        public ActionResult btnSubmit_Click([Bind(Include = "DropDownList1,DropDownList2")] DropDownListModel model)
        {
            if (ModelState.IsValid)
            {
                ShowNotify(String.Format("用户提交的数据:<br/><pre>{0}</pre>", JsonConvert.SerializeObject(model, Formatting.Indented)));
            }

            return(UIHelper.Result());
        }
        //
        // GET: /Upload/
        public ActionResult Airtel1(DropDownListModel obj)
        {
            obj            = new DropDownListModel();
            obj.MobileList = new SelectList(obj.GetDataList("1"), "SheetID", "SheetName");       // model binding
            obj.MonthList  = new SelectList(obj.GetMonthYearList(1), "MonthValue", "MonthName"); // model binding
            obj.YearList   = new SelectList(obj.GetMonthYearList(2), "YearValue", "YearName");   // model binding

            //ViewBag.ExcelSheetList = new SelectList(obj.GetDataList(), "ExcelID", "SheetName", 1); // Viewbag
            ActionModel.ActionNameGet = KeyConstant.actionAirtel1;
            return(View(obj));
        }
Ejemplo n.º 10
0
        public ActionResult Index(DropDownListModel model)
        {
            if (model.Options == null)
            {
                model.Options = new List <string>();
            }
            if (ModelState.IsValid)
            {
                model.Options.Add(_generator.GenerateOption(model.NewOption));
            }

            return(View(model));
        }
Ejemplo n.º 11
0
        public Response GetallVehicleTypes()
        {
            List <DropDownListModel> Lst = new List <DropDownListModel>();

            foreach (DictionaryEntry entry in VehicleTypes)
            {
                DropDownListModel obj = new DropDownListModel();
                obj.Value = (int)entry.Key;
                obj.Text  = entry.Value.ToString();
                Lst.Add(obj);
                // Console.WriteLine("{0}, {1}", entry.Key, entry.Value);
            }

            return(GenericResponses <List <DropDownListModel> > .ResponseStatus(false, Lst.Count() + Constant.MSGRecordFound, (int)Constant.httpStatus.Ok, Lst));
        }
Ejemplo n.º 12
0
        public Response GetallSelectListContractors()
        {
            var DTO = _db.Contractors.ToList();
            List <DropDownListModel> Lst = new List <DropDownListModel>();

            foreach (var DTobj in DTO)
            {
                DropDownListModel obj = new DropDownListModel();
                obj.Value = (int)DTobj.Id;
                obj.Text  = DTobj.Name;
                Lst.Add(obj);
                // Console.WriteLine("{0}, {1}", entry.Key, entry.Value);
            }

            return(GenericResponses <List <DropDownListModel> > .ResponseStatus(false, Lst.Count() + Constant.MSGRecordFound, (int)Constant.httpStatus.Ok, Lst));
        }
Ejemplo n.º 13
0
        public Response GetallSelectListVehicles()
        {
            var vehiclesDTO = _db.vehicles.ToList();
            List <DropDownListModel> Lst = new List <DropDownListModel>();

            foreach (var vehicle  in vehiclesDTO)
            {
                DropDownListModel obj = new DropDownListModel();
                obj.Value = (int)vehicle.Id;
                obj.Text  = vehicle.RegNumber.ToString();
                Lst.Add(obj);
                // Console.WriteLine("{0}, {1}", entry.Key, entry.Value);
            }

            return(GenericResponses <List <DropDownListModel> > .ResponseStatus(false, Lst.Count() + Constant.MSGRecordFound, (int)Constant.httpStatus.Ok, Lst));
        }
Ejemplo n.º 14
0
 public ActionResult Airtel1(string command, DropDownListModel obj)
 {
     if (command == "GridLoad")
     {
         DropDownListModel.getSelectedValue = Convert.ToInt32(obj.SheetID);
         DropDownListModel.getSelectedMonth = obj.MonthValue;
         DropDownListModel.getSelectedYear  = obj.YearValue;
     }
     if (command == "Sync")
     {
         DropDownListModel.getSelectedValue = Convert.ToInt32(obj.SheetID);
         CPReadWriteModel objCPModelReadWrite = new CPReadWriteModel();
         //objCPModelReadWrite.DataSync(DropDownListModel.getSelectedValue);
         objCPModelReadWrite.DataSyncAirtel(DropDownListModel.getSelectedValue, DropDownListModel.getSelectedMonth, DropDownListModel.getSelectedYear);
     }
     return(RedirectToAction(ActionModel.ActionNameGet, obj));
 }
Ejemplo n.º 15
0
        public ActionResult Add()
        {
            #region  拉框绑定
            var belongDeptList = CodeBLL.GetCodeListByParentCode("PCS");
            var listItems      = new List <ListItem>();
            foreach (var d in belongDeptList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.BMVALUE,
                    Value = d.BMKEY.ToString()
                });
            }

            var model = new DropDownListModel();
            model.DropDownList     = "VALUE";
            model.DropDownListItem = listItems;
            #endregion

            return(View(model));
        }
        // GET: Admin/ResourceSelector
        public ActionResult DropDownList(string ddlmodelstr, string currentValue, string propertyName, string lang)
        {
            DropDownListModel ddlmodel = JsonConvert.DeserializeObject <DropDownListModel>(ddlmodelstr.TrimStart('[').TrimEnd(']'));

            ddlmodel.lang          = lang;
            ddlmodel.selectedValue = currentValue;



            ddlmodel.propertyName = propertyName;

            string resultquery = "";

            if (ddlmodel.returnFields.Count() > 1)
            {
                //CONVERT(CAST(city as BINARY) USING utf8)
                resultquery = "CONVERT(CAST(CONCAT(" + string.Join(",'|',", ddlmodel.returnFields) + ") as BINARY) USING utf8)";
            }
            else
            {
                resultquery = ddlmodel.returnFields[0];
            }

            // trasformo la tabella del database in modello dropdownlistmodel
            string q = "SELECT itemgroup as itemGroup,'" + ddlmodel.rname + "' as rname,lang," + ddlmodel.displayField + " as displayValue," + resultquery + " as resultValue,0 as selected";

            if (ddlmodel.groupParentField != "")
            {
                q += "," + ddlmodel.groupParentField + " as parentValue";
            }

            q += " FROM " + ddlmodel.rname + " where lang='" + (ddlmodel.isinvariant ? "it" : lang) + "' order by " + ddlmodel.sortField + " " + ddlmodel.sortDir;

            ddlmodel.items = db.Database.SqlQuery <DropDownListItem>(q).ToList();
            //ddlmodel.items.Where(x => x.resultValue == currentValue).ToList().ForEach(x => x.selected = true);
            ddlmodel.items.Where(x => x.resultValue.ToLower() == currentValue.ToLower()).All(x => x.selected = true);

            return(PartialView("_DropDownList", ddlmodel));
        }
Ejemplo n.º 17
0
        public ActionResult NetDetail()
        {
            var id = Convert.ToInt32(Request.QueryString["id"]);

            #region  拉框绑定
            var belongDeptList = CodeBLL.GetCodeListByParentCode("PCS");
            var listItems      = new List <ListItem>();
            foreach (var d in belongDeptList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.BMVALUE,
                    Value = d.BMKEY.ToString()
                });
            }

            var model = new DropDownListModel();
            model.DropDownList     = "VALUE";
            model.DropDownListItem = listItems;
            #endregion

            var data = NetManageBLL.Get(id);
            //UIHelper.DropDownList("").SelectedValue("");
            NetInfoModel info = new NetInfoModel();
            info.dropDownList           = model;
            info.netInfo.Id             = data.ID;
            info.netInfo.Name           = data.NAME;
            info.netInfo.BelongDeptId   = data.BELONGDEPTID;
            info.netInfo.PopulationInfo = data.POPULATIONINFO;
            info.netInfo.HouseInfo      = data.HOUSEINFO;
            info.netInfo.BelongArea     = data.BELONGAREA;
            info.netInfo.UnitStoreInfo  = data.UNITSTOREINFO;
            info.netInfo.NetColor       = data.NETCOLOR;
            info.netInfo.LonAndLat      = data.LONANDLAT;
            info.netInfo.Remark         = data.REMARK;
            return(View(info));
        }
Ejemplo n.º 18
0
        public ActionResult Index()
        {
            DropDownListModel model = new DropDownListModel();

            return(View(model));
        }
Ejemplo n.º 19
0
 /// <summary>
 /// 下拉框
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public virtual ActionResult DropDownList(DropDownListModel model)
 {
     return(View("~/Views/Member/Basedata/_District.cshtml", model));
 }
Ejemplo n.º 20
0
 public IActionResult DropDownList(DropDownListModel model)
 {
     return(View(model));
 }
Ejemplo n.º 21
0
        public ActionResult Add()
        {
            #region  拉框绑定
            var belongDeptList = CodeBLL.GetCodeListByParentCode("PCS");
            var listItems      = new List <ListItem>();
            foreach (var d in belongDeptList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.BMVALUE,
                    Value = d.BMKEY.ToString()
                });
            }

            var belongDept = new DropDownListModel();
            belongDept.DropDownList     = "VALUE";
            belongDept.DropDownListItem = listItems;

            var vehicleTypeList = CodeBLL.GetCodeListByParentCode("CLLX");
            listItems = new List <ListItem>();
            foreach (var d in vehicleTypeList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.BMVALUE,
                    Value = d.BMKEY.ToString()
                });
            }

            var vehicleType = new DropDownListModel();
            vehicleType.DropDownList     = "VALUE1";
            vehicleType.DropDownListItem = listItems;

            var belongNetList = NetManageBLL.GetAll();
            listItems = new List <ListItem>();
            foreach (var d in belongNetList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.Name,
                    Value = d.Id.ToString()
                });
            }

            var belongNet = new DropDownListModel();
            belongNet.DropDownList     = "VALUE2";
            belongNet.DropDownListItem = listItems;

            var ownerTypeList = CodeBLL.GetCodeListByParentCode("YCBM");
            listItems = new List <ListItem>();
            foreach (var d in ownerTypeList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.BMVALUE,
                    Value = d.BMKEY.ToString()
                });
            }

            var ownerType = new DropDownListModel();
            ownerType.DropDownList     = "VALUE3";
            ownerType.DropDownListItem = listItems;
            #endregion
            CarInfoModel model = new CarInfoModel();
            model.belongDept  = belongDept;
            model.vehicleType = vehicleType;
            model.belongNet   = belongNet;
            model.ownerType   = ownerType;
            return(View(model));
        }
Ejemplo n.º 22
0
 /// <summary>
 /// 下拉框
 /// </summary>
 /// <param name="model"></param>
 /// <returns></returns>
 public virtual ActionResult DropDownList(DropDownListModel model)
 {
     return(View("DropDownList/_District", model));
 }
Ejemplo n.º 23
0
        public ActionResult CarDetail()
        {
            var id = Convert.ToInt32(Request.QueryString["id"]);

            #region  拉框绑定
            var belongDeptList = CodeBLL.GetCodeListByParentCode("PCS");
            var listItems      = new List <ListItem>();
            foreach (var d in belongDeptList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.BMVALUE,
                    Value = d.BMKEY.ToString()
                });
            }

            var belongDept = new DropDownListModel();
            belongDept.DropDownList     = "VALUE";
            belongDept.DropDownListItem = listItems;

            var vehicleTypeList = CodeBLL.GetCodeListByParentCode("CLLX");
            listItems = new List <ListItem>();
            foreach (var d in vehicleTypeList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.BMVALUE,
                    Value = d.BMKEY.ToString()
                });
            }

            var vehicleType = new DropDownListModel();
            vehicleType.DropDownList     = "VALUE1";
            vehicleType.DropDownListItem = listItems;

            var belongNetList = NetManageBLL.GetAll();
            listItems = new List <ListItem>();
            foreach (var d in belongNetList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.Name,
                    Value = d.Id.ToString()
                });
            }

            var belongNet = new DropDownListModel();
            belongNet.DropDownList     = "VALUE2";
            belongNet.DropDownListItem = listItems;

            var ownerTypeList = CodeBLL.GetCodeListByParentCode("YCBM");
            listItems = new List <ListItem>();
            foreach (var d in ownerTypeList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.BMVALUE,
                    Value = d.BMKEY.ToString()
                });
            }

            var ownerType = new DropDownListModel();
            ownerType.DropDownList     = "VALUE3";
            ownerType.DropDownListItem = listItems;
            #endregion
            CarInfoModel model = new CarInfoModel();
            model.belongDept  = belongDept;
            model.vehicleType = vehicleType;
            model.belongNet   = belongNet;
            model.ownerType   = ownerType;
            var data = CarBLL.GetByVehId(id);
            model.carInfo.Id           = data.Id;
            model.carInfo.VehicleNo    = data.VehicleNo;
            model.carInfo.VehicleType  = data.VehicleType;
            model.carInfo.VehicleBrand = data.VehicleBrand;
            model.carInfo.BelongDeptId = data.BelongDeptId;
            model.carInfo.BelongNetId  = data.BelongNetId;
            model.carInfo.Owner        = data.Owner;
            model.carInfo.OwnerType    = data.OwnerType;
            model.carInfo.Remark       = data.Remark;
            model.carInfo.Cldwzdsbh    = data.Cldwzdsbh;
            model.carInfo.Wlwkhm       = data.Wlwkhm;
            return(View(model));
        }
Ejemplo n.º 24
0
        public ActionResult Edit()
        {
            var id = Convert.ToInt32(Request.QueryString["id"]);

            #region  拉框绑定
            var belongDeptList = CodeBLL.GetCodeListByParentCode("SSBM_RY");
            var listItems      = new List <ListItem>();
            foreach (var d in belongDeptList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.BMVALUE,
                    Value = d.BMKEY.ToString()
                });
            }

            var belongDept = new DropDownListModel();
            belongDept.DropDownList     = "VALUE";
            belongDept.DropDownListItem = listItems;

            var sexList = CodeBLL.GetCodeListByParentCode("XB");
            listItems = new List <ListItem>();
            foreach (var d in sexList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.BMVALUE,
                    Value = d.BMKEY.ToString()
                });
            }

            var sex = new DropDownListModel();
            sex.DropDownList     = "VALUE1";
            sex.DropDownListItem = listItems;

            var certificateTypeList = CodeBLL.GetCodeListByParentCode("ZJLX");
            listItems = new List <ListItem>();
            foreach (var d in certificateTypeList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.BMVALUE,
                    Value = d.BMKEY.ToString()
                });
            }

            var certificateType = new DropDownListModel();
            certificateType.DropDownList     = "VALUE2";
            certificateType.DropDownListItem = listItems;

            var belongNetList = NetManageBLL.GetAll();
            listItems = new List <ListItem>();
            foreach (var d in belongNetList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.Name,
                    Value = d.Id.ToString()
                });
            }

            var belongNet = new DropDownListModel();
            belongNet.DropDownList     = "";
            belongNet.DropDownListItem = listItems;

            var userTypeList = CodeBLL.GetCodeListByParentCode("RYLX");
            listItems = new List <ListItem>();
            foreach (var d in userTypeList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.BMVALUE,
                    Value = d.BMKEY.ToString()
                });
            }

            var userType = new DropDownListModel();
            userType.DropDownList     = "VALUE4";
            userType.DropDownListItem = listItems;

            var loginTypeList = CodeBLL.GetCodeListByParentCode("DLLX");
            listItems = new List <ListItem>();
            foreach (var d in loginTypeList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.BMVALUE,
                    Value = d.BMKEY.ToString()
                });
            }

            var loginType = new DropDownListModel();
            loginType.DropDownList     = "VALUE5";
            loginType.DropDownListItem = listItems;
            #endregion

            UserInfoModel model = new UserInfoModel();
            model.belongDept      = belongDept;
            model.sex             = sex;
            model.certificateType = certificateType;
            model.belongNet       = belongNet;
            model.userType        = userType;
            model.loginType       = loginType;
            var data = UserBLL.Get(id);
            model.userInfo.Id              = data.ID;
            model.userInfo.Name            = data.NAME;
            model.userInfo.UserName        = data.USERNAME;
            model.userInfo.UserPwd         = data.USERPWD;
            model.userInfo.Sex             = data.SEX;
            model.userInfo.Age             = data.AGE;
            model.userInfo.Telephone       = data.TELEPHONE;
            model.userInfo.CertificateType = data.CERTIFICATETYPE;
            model.userInfo.CertificateNum  = data.CERTIFICATENUM;
            model.userInfo.BelongDeptId    = data.BELONGDEPTID;
            model.userInfo.BelongNetId     = data.BELONGNETID;
            model.userInfo.Direction       = data.DIRECTION;
            model.userInfo.Address         = data.ADDRESS;
            model.userInfo.Remark          = data.REMARK;
            model.userInfo.UserType        = data.USERTYPE;
            model.userInfo.VirtualTrumpet  = data.VIRTUALTRUMPET;
            model.userInfo.LoginType       = data.LOGINTYPE;
            return(View(model));
        }
Ejemplo n.º 25
0
        public ActionResult Add()
        {
            #region  拉框绑定
            var belongDeptList = CodeBLL.GetCodeListByParentCode("SSBM_RY");
            var listItems      = new List <ListItem>();
            foreach (var d in belongDeptList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.BMVALUE,
                    Value = d.BMKEY.ToString()
                });
            }

            var belongDept = new DropDownListModel();
            belongDept.DropDownList     = "VALUE";
            belongDept.DropDownListItem = listItems;

            var sexList = CodeBLL.GetCodeListByParentCode("XB");
            listItems = new List <ListItem>();
            foreach (var d in sexList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.BMVALUE,
                    Value = d.BMKEY.ToString()
                });
            }

            var sex = new DropDownListModel();
            sex.DropDownList     = "VALUE1";
            sex.DropDownListItem = listItems;

            var certificateTypeList = CodeBLL.GetCodeListByParentCode("ZJLX");
            listItems = new List <ListItem>();
            foreach (var d in certificateTypeList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.BMVALUE,
                    Value = d.BMKEY.ToString()
                });
            }

            var certificateType = new DropDownListModel();
            certificateType.DropDownList     = "VALUE2";
            certificateType.DropDownListItem = listItems;

            var belongNetList = NetManageBLL.GetAll();
            listItems = new List <ListItem>();
            foreach (var d in belongNetList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.Name,
                    Value = d.Id.ToString()
                });
            }

            var belongNet = new DropDownListModel();
            belongNet.DropDownList     = "";
            belongNet.DropDownListItem = listItems;

            var userTypeList = CodeBLL.GetCodeListByParentCode("RYLX");
            listItems = new List <ListItem>();
            foreach (var d in userTypeList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.BMVALUE,
                    Value = d.BMKEY.ToString()
                });
            }

            var userType = new DropDownListModel();
            userType.DropDownList     = "VALUE4";
            userType.DropDownListItem = listItems;

            var loginTypeList = CodeBLL.GetCodeListByParentCode("DLLX");
            listItems = new List <ListItem>();
            foreach (var d in loginTypeList)
            {
                listItems.Add(new ListItem
                {
                    Text  = d.BMVALUE,
                    Value = d.BMKEY.ToString()
                });
            }

            var loginType = new DropDownListModel();
            loginType.DropDownList     = "VALUE5";
            loginType.DropDownListItem = listItems;
            #endregion

            UserInfoModel model = new UserInfoModel();
            model.belongDept      = belongDept;
            model.sex             = sex;
            model.certificateType = certificateType;
            model.belongNet       = belongNet;
            model.userType        = userType;
            model.loginType       = loginType;
            return(View(model));
        }