示例#1
0
 public ActionResult DeviceFailure()
 {
     HttpSessionStateBase session = HttpContext.Session;
     DeviceFailureListModel model = new DeviceFailureListModel();
     model.ProblemType = _ptypes.GetProblemTypeList();
     model.TroubleShooting = _tsh.GetTroubleShootingList();
     model.DeliveryDeviceSerialNumber = new List<SelectListItem>();
     if (session["Customer_ID"] != null)
     {
         model.CustomerName = _customerService.GetCustomerById(Convert.ToInt32(session["Customer_ID"])).CustomerName;
         session.Remove("Customer_ID");
     }
     return View(model);
 }
示例#2
0
        private void InitData()
        {
            typeList = ProblemType.GetProblemTypeList();

            problemtype.Items.Clear();
            problemtype.Items.AddRange(problemKindList);
            problemtype.SelectedIndex = 0;

            type.Items.Clear();
            type.Items.Add("全部");
            for (int i = 0; i < typeList.Count; i++)
            {
                type.Items.Add(typeList[i].name);
            }
            type.SelectedIndex = 0;


            ImageList imgList = new ImageList
            {
                ImageSize = new Size(1, 70)
            };

            problemListView.SmallImageList = imgList;
        }