public List <GDTXUserYSBQC> getUserYSBQC() { GTXResult resultq = GTXMethod.GetHuNanYSBQC(); if (resultq.IsSuccess) { List <GDTXUserYSBQC> ysbqclist = JsonConvert.DeserializeObject <List <GDTXUserYSBQC> >(resultq.Data.ToString()); return(ysbqclist); } else { return(null); } }
public GDTXUserYSBQC getUserYSBQC(Type controller) { string s = controller.Name; s = s.Substring(0, s.IndexOf("Controller")); GTXResult resultq = GTXMethod.GetHuNanYSBQC(); if (resultq.IsSuccess) { List <GDTXUserYSBQC> ysbqclist = JsonConvert.DeserializeObject <List <GDTXUserYSBQC> >(resultq.Data.ToString()); ysbqclist = ysbqclist.Where(a => a.BDDM.ToUpper() == s.ToUpper()).ToList(); return(ysbqclist[0]); } else { //return new GDTXBeiJingUserYSBQC(); return(null); } }
public GDTXUserYSBQC getUserYSBQC(string dm) { string s = dm.ToUpper(); switch (s) { case "YBNSRZZSXBSZ": s = "YBNSRZZS"; break; } GTXResult resultq = GTXMethod.GetHuNanYSBQC(); if (resultq.IsSuccess) { List <GDTXUserYSBQC> ysbqclist = JsonConvert.DeserializeObject <List <GDTXUserYSBQC> >(resultq.Data.ToString()); ysbqclist = ysbqclist.Where(a => a.BDDM.ToUpper() == s).ToList(); return(ysbqclist[0]); } else { return(null); } }