예제 #1
0
        public List <string> selectSystemListString()
        {
            List <Class_ParaArray> class_ParaArrays = new List <Class_ParaArray>();
            Class_ParaArray        class_ParaArray  = new Class_ParaArray();

            class_ParaArray.ParaName  = "signName";
            class_ParaArray.ParaValue = "STS";
            class_ParaArrays.Add(class_ParaArray);
            return(_SelectDictionaryListString("useAuthorityPageFeign/selectDictionaryListString", class_ParaArrays));
        }
예제 #2
0
        public int UpdatePassWord(string PassWord)
        {
            List <Class_ParaArray> class_ParaArrays        = new List <Class_ParaArray>();
            Class_ParaArray        class_ParaArrayFileName = new Class_ParaArray();

            class_ParaArrayFileName.ParaName  = "passWord";
            class_ParaArrayFileName.ParaValue = PassWord;
            class_ParaArrays.Add(class_ParaArrayFileName);
            string ResultValue = class_RestClient.Post("useAuthorityPageFeign/updatePassWord", class_ParaArrays, null, true);

            return(Convert.ToInt32(ResultValue));
        }
예제 #3
0
        /// <summary>
        /// 下载指定公司所有用户
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="Company">公司全称</param>
        /// <param name="Page">当前页数</param>
        /// <param name="Limit">每页条数</param>
        /// <returns></returns>
        public ResultVOPage <T> DownAllUseByCompany <T>(string Company)
        {
            ResultVOPage <T>       resultVO         = new ResultVOPage <T>();
            List <Class_ParaArray> class_ParaArrays = new List <Class_ParaArray>();
            Class_ParaArray        class_ParaArray  = new Class_ParaArray();

            class_ParaArray.ParaName  = "companyName";
            class_ParaArray.ParaValue = Company;
            class_ParaArrays.Add(class_ParaArray);
            string ResultValue = class_RestClient.Post("useAuthorityPageFeign/downAllUseByCompany", class_ParaArrays, null, true);

            return(JsonTools.JsonToObject(ResultValue, resultVO, true) as ResultVOPage <T>);
        }
예제 #4
0
        public int DeletePage(string PageKey, string pageType)
        {
            List <Class_ParaArray> class_ParaArrays = new List <Class_ParaArray>();
            Class_ParaArray        class_ParaArray  = new Class_ParaArray();

            class_ParaArray.ParaName  = "pageKey";
            class_ParaArray.ParaValue = PageKey;
            class_ParaArrays.Add(class_ParaArray);
            Class_ParaArray class_ParaArrayPageType = new Class_ParaArray();

            class_ParaArrayPageType.ParaName  = "pageType";
            class_ParaArrayPageType.ParaValue = pageType;
            class_ParaArrays.Add(class_ParaArrayPageType);
            string ResultValue = class_RestClient.Post("useAuthorityPageFeign/deletePageAndXml", class_ParaArrays);

            return(Convert.ToInt32(ResultValue));
        }
예제 #5
0
        public byte[] DownLoadFile(string PageKey, string pageType)
        {
            List <Class_ParaArray> class_ParaArrays = new List <Class_ParaArray>();
            Class_ParaArray        class_ParaArray  = new Class_ParaArray();

            class_ParaArray.ParaName  = "dictionary";
            class_ParaArray.ParaValue = pageType;
            class_ParaArrays.Add(class_ParaArray);

            Class_ParaArray class_ParaArrayPageType = new Class_ParaArray();

            class_ParaArrayPageType.ParaName  = "fileName";
            class_ParaArrayPageType.ParaValue = PageKey;
            class_ParaArrays.Add(class_ParaArrayPageType);

            string ResultValue = class_RestClient.Post("useAuthorityPageFeign/downLoadFile", class_ParaArrays);

            return(System.Text.Encoding.UTF8.GetBytes(ResultValue));
        }
예제 #6
0
        private ResultVO <T> PrivateUploadFile <T>(string AllPathFileName, string FileName, string Operate, string FolderName)
        {
            List <Class_ParaArray> class_ParaArrays = new List <Class_ParaArray>();

            try
            {
                Class_ParaArray class_ParaArrayFileName = new Class_ParaArray();
                class_ParaArrayFileName.ParaName  = "fileName";
                class_ParaArrayFileName.ParaValue = FileName;
                class_ParaArrays.Add(class_ParaArrayFileName);
                if (FolderName != null)
                {
                    Class_ParaArray class_ParaArrayFolderName = new Class_ParaArray();
                    class_ParaArrayFolderName.ParaName  = "dictionary";
                    class_ParaArrayFolderName.ParaValue = FolderName;
                    class_ParaArrays.Add(class_ParaArrayFolderName);
                }

                byte[]       byteArray = FileBinaryConvertHelper.File2Bytes(AllPathFileName);
                ResultVO <T> resultVO  = new ResultVO <T>();
                string       Url       = "useAuthorityPageFeign/uploadFile";
                if (FolderName == null)
                {
                    Url = string.Format("useAuthorityPageFeign/uploadFile{0}", Operate);
                }
                string ResultValue = class_RestClient.PostBinary(Url
                                                                 , class_ParaArrays
                                                                 , byteArray, true);
                return(JsonTools.JsonToObject(ResultValue, resultVO) as ResultVO <T>);
            }
            catch (Exception error)
            {
                throw error;
            }
            finally
            {
                class_ParaArrays.Clear();
            }
        }