Esempio n. 1
0
        public static QueryEnterpriseResponse queryEnterprise(QueryEnterprise info)
        {
            string _uri = ECConstUri.enterprise_uri + string.Format("?departmentId={0}&pageCount={1}&pageNum={2}", info.departmentId, info.pageCount, info.pageNum);
            QueryEnterpriseResponse result = eSDKServiceHelper.CallService <QueryEnterpriseResponse>(_uri, HttpMethod.GET);

            return(result);
        }
Esempio n. 2
0
 //查询企业通讯录
 private void btn_queryEnterprise_Click(object sender, EventArgs e)
 {
     try
     {
         QueryEnterprise _info = new QueryEnterprise();
         _info.departmentId = this.txt_departmentIDEx.Text.Trim();
         _info.pageCount    = this.txt_pageCount.Text.Trim();
         _info.pageNum      = this.txt_pageNum.Text.Trim();
         QueryEnterpriseResponse result = ecBusiness.QueryEnterprise(_info);
         if (result != null)
         {
             this.txt_ResultCode.Text = result.resultCode;
             this.txt_Content.Text    = result.resultContext;
             this.txt_ResultInfo.Text = eSDKServiceHelper.GetJsonString(result);
             if (result.resultCode == "0")
             {
                 this.WriteLog("call query Enterprise success.");
             }
             else
             {
                 this.WriteLog("call query Enterprise failed," + result.resultContext);
             }
         }
         else
         {
             this.WriteLog("call query Enterprise fail,response is null.");
         }
     }
     catch (Exception ex)
     {
         this.WriteLog("call query Enterprise fail," + ex.Message);
     }
 }
Esempio n. 3
0
        /// <summary>
        /// 查询企业通讯录
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        public QueryEnterpriseResponse QueryEnterprise(QueryEnterprise info)
        {
            QueryEnterpriseResponse result = eSDKServiceHelper.queryEnterprise(info);

            return(result);
        }