//
        // GET: /DocManagerWithDir/

        public ActionResult Index()
        {
            ViewData["cbo_zhuangtai"] = GetcboStatus();
            ViewData["ddl_company"]   = PublicClass.GetAreaList("请选择");
            ViewBag.RoleId            = CurrentUserInfo.RoleID;
            return(View());
        }
Beispiel #2
0
        T_tb_DetectProject tDetectProject = new T_tb_DetectProject(); //实验项目操作
        //
        // GET: /ExpeStatistics/

        public ActionResult ExpeStatisticsList()
        {
            ViewData["ddl_company"] = PublicClass.GetAreaList("请选择", CurrentUserInfo.AreaID.Value);
            List <SelectListItem> list = new List <SelectListItem>();

            list.Add(new SelectListItem()
            {
                Text = "请选择", Value = "-1", Selected = true
            });
            string strWhere = "";

            if (CurrentUserInfo.DataRange != 1)
            {
                strWhere = "AreaID=" + CurrentUserInfo.AreaID;
            }
            List <E_tb_Laboratory> listmd = tLaboratory.GetModelList(strWhere);

            foreach (E_tb_Laboratory item in listmd)
            {
                list.Add(new SelectListItem()
                {
                    Text = item.LaboratoryName, Value = item.LaboratoryID.ToString()
                });
            }
            ViewData["LaboratoryList"] = new SelectList(list, "Value", "Text");

            return(View());
        }
Beispiel #3
0
        //
        // GET: /Sample/

        public ActionResult Index()
        {
            try
            {
                ViewData["ddl_company"] = PublicClass.GetAreaList("请选择");
                ViewBag._lid            = CurrentUserInfo.AreaID;
            }
            catch
            {
            }
            return(View());
        }
Beispiel #4
0
        public ActionResult EasyConsumeLock()
        {
            ViewData["ddl_company"] = PublicClass.GetAreaList("请选择", CurrentUserInfo.AreaID.Value);
            List <E_tb_Area> _Arealist = new List <E_tb_Area>();
            T_tb_Area        tArea     = new T_tb_Area();

            if (CurrentUserInfo.RoleID == 3)
            {
                _Arealist = tArea.GetModelList("");
            }
            else
            {
                _Arealist = tArea.GetModelList(" AreaID = " + CurrentUserInfo.AreaID.Value);
            }
            ViewData["Arealist"] = _Arealist;
            return(View());
        }
Beispiel #5
0
 public ActionResult DeviceLog()
 {
     ViewData["ddl_company"] = PublicClass.GetAreaList("请选择");
     ViewBag._lid            = CurrentUserInfo.AreaID;
     return(View());
 }
Beispiel #6
0
 public ActionResult MeasureCheck()
 {
     ViewData["ddl_company"] = PublicClass.GetAreaList("请选择", CurrentUserInfo.AreaID.Value);
     return(View());
 }
Beispiel #7
0
 public ActionResult EasyConsumeLog()
 {
     ViewData["ddl_company"] = PublicClass.GetAreaList("请选择", CurrentUserInfo.AreaID.Value);
     ViewBag._lid            = CurrentUserInfo.AreaID;
     return(View());
 }