Beispiel #1
0
 //查询个人信息
 private void btn_queryEmployee_Click(object sender, EventArgs e)
 {
     try
     {
         QueryEmployee _info = new QueryEmployee();
         _info.account   = txt_ECAccount.Text.Trim();
         _info.condition = this.txt_queryCondition.Text.Trim();
         _info.pageCount = this.txt_pageCount.Text.Trim();
         _info.pageNum   = this.txt_pageNum.Text.Trim();
         QueryEmployeeResponse result = ecBusiness.QueryEmployee(_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 Employee success.");
             }
             else
             {
                 this.WriteLog("call query Employee failed," + result.resultContext);
             }
         }
         else
         {
             this.WriteLog("call query Employee fail,response is null.");
         }
     }
     catch (Exception ex)
     {
         this.WriteLog("call query Employee fail," + ex.Message);
     }
 }
Beispiel #2
0
        /// <summary>
        /// 查询账户
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        public QueryEmployeeResponse QueryEmployee(QueryEmployee info)
        {
            QueryEmployeeResponse result = eSDKServiceHelper.queryEmployee(info);

            return(result);
        }