Exemplo n.º 1
0
        private void BindAssociatePayoutGrid(int adviserId, String agentCode, DateTime fromDate, DateTime toDate, Boolean IsDummyAgent)
        {
            DataTable dtAssociatePayout = new DataTable();

            try
            {
                dtAssociatePayout            = commisionReceivableBo.GetAssociateCommissionPayout(adviserId, agentCode, fromDate, toDate, IsDummyAgent);
                rdAssociatePayout.DataSource = dtAssociatePayout;
                rdAssociatePayout.DataBind();
                pnlOrderList.Visible             = true;
                rdAssociatePayout.Visible        = true;
                btnExportFilteredDupData.Visible = true;
                if (Cache["AssociatePayout" + userVo.UserId] != null)
                {
                    Cache.Remove("AssociatePayout" + userVo.UserId);
                }
                Cache.Insert("AssociatePayout" + userVo.UserId, dtAssociatePayout);
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "BindAssociatePayoutGrid(int adviserId,String agentCode,DateTime fromDate,DateTime toDate)");
                object[] objects = new object[4];
                objects[0]   = adviserId;
                objects[1]   = agentCode;
                objects[2]   = toDate;
                objects[3]   = fromDate;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }