Exemplo n.º 1
0
        public JsonResult GetDetail()
        {
            int               _userid   = (int)Session["user_id"];
            string            _username = (string)Session["user_name"];
            string            _qxmlid   = Request["qxml"] ?? "";
            IList <QiXieMuLu> _jingyingfanweis;

            if (_qxmlid == "")
            {
                return(Json(""));
            }
            else
            {
                _jingyingfanweis = new List <QiXieMuLu>();
                var tempdata = ob_base_qixiemuluservice.LoadSortEntities(p => p.IsDelete == false && p.Bianhao == _qxmlid, false, p => p.Mingcheng);
                //_guiges = tempdata.ToList<ob_base_qixiemulu>();
                foreach (base_qixiemulu _qxmlfw in tempdata)
                {
                    if (_qxmlfw.ID > 0)
                    {
                        QiXieMuLu _jingyingfanwei = new QiXieMuLu();
                        _jingyingfanwei.ID        = _qxmlfw.ID;
                        _jingyingfanwei.Bianhao   = _qxmlfw.Bianhao;
                        _jingyingfanwei.Mingcheng = _qxmlfw.Mingcheng;
                        _jingyingfanwei.Miaoshu   = _qxmlfw.Miaoshu;
                        _jingyingfanwei.GuanliFL  = _qxmlfw.GuanliFL;
                        //userinfo _user = ServiceFactory.userinfoservice.GetEntityById(p => p.ID == _zczgg.MakeMan);
                        //_guige.Makeman = _user.FullName;
                        _jingyingfanweis.Add(_jingyingfanwei);
                    }
                }
            }
            return(Json(_jingyingfanweis));
        }
Exemplo n.º 2
0
        public JsonResult GetQixiemulu1()
        {
            var _qxtemp = ob_base_qixiemuluservice.LoadSortEntities(p => p.Bianhao.Length < 5 && p.IsDelete == false, true, s => s.Bianhao);
            List <QiXieMuLu> _qxlist = new List <QiXieMuLu>();
            QiXieMuLu        _qx;

            foreach (var qx in _qxtemp)
            {
                _qx           = new QiXieMuLu();
                _qx.ID        = qx.ID;
                _qx.Bianhao   = qx.Bianhao;
                _qx.Mingcheng = qx.Mingcheng;
                _qx.Miaoshu   = qx.Miaoshu;
                _qx.GuanliFL  = qx.GuanliFL;
                _qxlist.Add(_qx);
            }
            return(Json(_qxlist));
        }