Exemple #1
0
        public static bool IsBuyAll(Entity.MsSQL.T_Organiza _orga, string _ids, string _username, ref string error)
        {
            HelperMethod p = new HelperMethod();
            //string path = HelperAppSet.getAppSetting("olschoolpath");
            //string classid = HelperAppSet.getAppSetting("classid");
            string path     = HelperAppSet.getAppSetting("olschoolpath");
            string fullpath = path + "/Member/IsBuyAll?classid=" + _orga.ClassId + "&UserName="******"&Ids=" + _ids;
            string json     = p.Get(fullpath);

            Entity.Respose.GTXResult result = Untity.HelperJson.DeserializeObject <Entity.Respose.GTXResult>(json);
            if (HelperDataCvt.objToString(result.Data).Contains("未购买"))
            {
                error = HelperDataCvt.objToString(result.Data);
                return(false);
            }
            else
            {
                return(true);
            }
        }