Exemple #1
0
        public void BindSIPCAMSInputRejectedRecordsGrid()
        {
            DataSet dsRejectedRecords;

            try
            {
                dsRejectedRecords = rejectedRecordsBo.GetSIPCAMSInputRejectedRecords(processID);
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "RejectedSystematicTransactionInputRejects.ascx:BindSIPCAMSInputRejectedRecordsGrid()");
                object[] objects = new object[0];
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
            if (dsRejectedRecords.Tables[0].Rows.Count > 0)
            {
                gvSIPInputRejectDetails.DataSource = dsRejectedRecords.Tables[0];
                gvSIPInputRejectDetails.DataBind();

                if (Cache["SIPInputRejectDetails" + userVo.UserId.ToString()] == null)
                {
                    Cache.Insert("SIPInputRejectDetails" + userVo.UserId.ToString(), dsRejectedRecords);
                }
                else
                {
                    Cache.Remove("SIPInputRejectDetails" + userVo.UserId.ToString());
                    Cache.Insert("SIPInputRejectDetails" + userVo.UserId.ToString(), dsRejectedRecords);
                }
            }
            else
            {
                gvSIPInputRejectDetails.DataSource = null;
                gvSIPInputRejectDetails.DataBind();
            }
        }