public List <SystemManage> InitDt(IDictionary <string, object> strWhere, int startIndex, int endIndex)
        {
            try
            {
                ICustomsCMS server      = XmlRpcInstance.getInstance();
                NumResponse numResponse = server.findAllUserCount(strWhere[SystemManage.USERNAME_COLUMN].ToString());
                if (numResponse.error_code != 0)
                {
                    throw new Exception("连接服务器错误:" + numResponse.error_msg);
                }
                TotalNum = numResponse.all_num;

                UsercheckListRPCResponse response = server.findAllUserByUserid(strWhere[SystemManage.USERNAME_COLUMN].ToString(), startIndex, endIndex);
                Usercheck[]         titlelist     = response.listmodule;
                List <SystemManage> wrs           = new List <SystemManage>();
                for (int i = 0; i < titlelist.Length; i++)
                {
                    string rolename = getRoleName(Int32.Parse(titlelist[i].rolename));
                    wrs.Add(new SystemManage(titlelist[i].id, titlelist[i].username, titlelist[i].password, Int32.Parse(titlelist[i].rolename), rolename, titlelist[i].realname, titlelist[i].idcard));
                }
                return(wrs);
            }
            catch (Exception ex)
            {
                Console.WriteLine("错误:" + ex.Message);
                return(null);
            }
        }
        /// <summary>
        /// 根据id和用户名查询符合条件的记录
        /// </summary>
        /// <param name="id">id</param>
        /// <param name="name">用户名</param>
        /// <returns></returns>
        public Boolean findRowByIdAndName(int id, string userName)
        {
            try
            {
                ICustomsCMS          server = XmlRpcInstance.getInstance();
                UsercheckRPCResponse usercheckRPCResponse = server.findUser(userName);
                if (usercheckRPCResponse.id != 0 && usercheckRPCResponse.id != id)
                {
                    return(true);
                }
                return(false);
            }
            catch (Exception ex)
            {
                throw new Exception("错误:" + ex.Message);
            }
            try
            {
                ICustomsCMS server = XmlRpcInstance.getInstance();

                UsercheckListRPCResponse response = server.findAllUserByUserid(userName, 1, 1);
                Usercheck[] titlelist             = response.listmodule;
            }
            catch (Exception ex)
            {
                throw new Exception("错误:" + ex.Message);
            }
        }