Esempio n. 1
0
        public string ArrF(string add)
        {
            string ArryAddess = "";
            string straddess  = add;
            var    arry       = straddess.Split(',');

            foreach (string s in arry)
            {
                long   ThisS = Convert.ToInt64(s);
                string thisf = SysFieldService.LoadEntities(x => x.ID == ThisS).FirstOrDefault().MyTexts;
                ArryAddess = ArryAddess.Trim().Length <= 0 ? thisf : ArryAddess + "-" + thisf;
            }
            return(ArryAddess);
        }
Esempio n. 2
0
        public ActionResult GetAddress()
        {
            //var result = sysfileBll.GetSysFieldParentId(parentiD, MyColums);
            // return Json(result, JsonRequestBehavior.AllowGet);
            int    Parentid = Request["parentiD"] != null ? Request["parentiD"] == "undefined" ? 0 : Request["parentiD"].Length <= 0?0: Convert.ToInt32(Request["parentiD"]) : 0;
            string MyColums = Request["MyColums"].ToString();

            var SysField = SysFieldService.LoadEntities(x => x.ParentId == Parentid && x.MyColums == MyColums).DefaultIfEmpty();
            var temp     = from a in SysField
                           select new
            {
                ID       = a.ID,
                MyTexts  = a.MyTexts,
                MyColums = a.MyColums
            };

            return(Json(temp, JsonRequestBehavior.AllowGet));
        }