Exemplo n.º 1
0
        private int SearchByTmkCountRequest(PendingStatusCompareResult compareResult, string status, LoginInfo loginInfo)
        {
            try
            {
                string statusName;
                string statusValue;
                string lastModidfyFieldName;
                string lastMoidfyFieldValue;
                var    helper = new PsaHelper();
                PsaHelper.GetStatusInfo(compareResult, status, out statusName, out statusValue, out lastModidfyFieldName,
                                        out lastMoidfyFieldValue);

                if (!string.IsNullOrEmpty(compareResult.CurrentRdcPendingStatus))
                {
                    var request = string.Format(SearchTMKCountRequest, GetLoginText(loginInfo),
                                                compareResult.BoardId.ToString(CultureInfo.InvariantCulture),
                                                PsaHelper.EncodeXml(compareResult.PropertyClass), statusName,
                                                statusValue, loginInfo.ByPassAuthentication);
                    return(PsaHelper.GetListingCount(request, ""));
                }
            }
            catch (Exception ex)
            {
                Log.Error(typeof(PsaManager), ex.Message);
            }

            return(0);
        }
Exemplo n.º 2
0
        private Enums.CheckAccountReturnCode SearchByTmkRequest(PendingStatusCompareResult compareResult, string status, LoginInfo loginInfo)
        {
            string statusName;
            string statusValue;
            string lastModidfyFieldName;
            string lastMoidfyFieldValue;
            var    helper = new PsaHelper();

            PsaHelper.GetStatusInfo(compareResult, status, out statusName, out statusValue, out lastModidfyFieldName, out lastMoidfyFieldValue);

            if (!string.IsNullOrEmpty(statusValue))
            {
                var request = string.Format(SearchRequest, GetLoginText(loginInfo),
                                            compareResult.BoardId.ToString(CultureInfo.InvariantCulture),
                                            PsaHelper.EncodeXml(compareResult.PropertyClass), statusName, statusValue, loginInfo.ByPassAuthentication);
                //, lastModidfyFieldName, DateTime.Now.AddYears(-10).ToString("MM/dd/yyyyTHH/mm/ss") + "-" + DateTime.Now.ToString("MM/dd/yyyyTHH/mm/ss"));
                return(helper.CheckRdcAccount(request));
            }

            return(Enums.CheckAccountReturnCode.NoRecordFound);
        }