Esempio n. 1
0
        public void AdvSearchSimple(string advkeyword, string folderId, string userId)
        {
            advkeyword = string.IsNullOrEmpty(advkeyword) ? "3D" : advkeyword;
            folderId   = string.IsNullOrEmpty(folderId) ? "1573" : folderId;
            kmUserid   = string.IsNullOrEmpty(userId) ? kmUserid : userId;
            string jsonString = GetResult(advkeyword, folderId, kmUserid);
            KMDoc  kmdoc      = KMDoc.FromJson(jsonString);

            kmdoc.SetUserId(userId);
            KMDocuments = kmdoc.Data.FirstOrDefault().kmdocDatumClassArray.ToList();
            SetFileClasses(userId);
        }
Esempio n. 2
0
        public void AdvSearchDocClass(string docclass, string docclassvalue, string advkeyword, string folderId, string userId)
        {
            //docclass = string.IsNullOrEmpty(docclass) ? "23" : docclass;
            //docclassvalue = string.IsNullOrEmpty(docclassvalue) ? "摘要:公差分析 AND 作者:Wilson" : docclassvalue;
            advkeyword = string.IsNullOrEmpty(advkeyword) ? "" : advkeyword;
            folderId   = string.IsNullOrEmpty(folderId) ? "" : folderId;
            kmUserid   = string.IsNullOrEmpty(userId) ? kmUserid : userId;
            string jsonString = GetResultDocClass(docclass, docclassvalue, advkeyword, folderId, kmUserid);
            KMDoc  kmdoc      = KMDoc.FromJson(jsonString);

            kmdoc.SetUserId(userId);
            KMDocuments = kmdoc.Data.FirstOrDefault().kmdocDatumClassArray.ToList();
            SetFileClasses(userId);
        }