private void getAllStructures()
        {
            DataSet dsAllStructs;

            try
            {
                dsAllStructs = commisionReceivableBo.GetAdviserCommissionStructureRules(advisorVo.advisorId);
                DataRow drStructs = dsAllStructs.Tables[0].NewRow();
                drStructs["ACSM_CommissionStructureId"]   = 0;
                drStructs["ACSM_CommissionStructureName"] = "-SELECT-";
                dsAllStructs.Tables[0].Rows.InsertAt(drStructs, 0);
                ddlStructs.DataTextField  = dsAllStructs.Tables[0].Columns["ACSM_CommissionStructureName"].ToString();
                ddlStructs.DataValueField = dsAllStructs.Tables[0].Columns["ACSM_CommissionStructureId"].ToString();
                ddlStructs.DataSource     = dsAllStructs.Tables[0];
                ddlStructs.DataBind();
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "CommissionStructureToSchemeMapping.ascx.cs:getAllStructures()");
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }
Beispiel #2
0
        protected void BindStructureRuleGrid()
        {
            DataSet dsStructureRules = commisionReceivableBo.GetAdviserCommissionStructureRules(advisorVo.advisorId, ddProduct.SelectedValue.ToLower(), ddCategory.SelectedValue.ToLower(), ddSubCategory.SelectedValue.ToLower(), int.Parse(ddIssuer.SelectedValue), ddStatus.SelectedValue.ToLower());

            if (dsStructureRules.Tables[0].Rows.Count > 0)
            {
                ibtExportSummary.Visible = true;
            }
            else
            {
                ibtExportSummary.Visible = false;
            }

            gvCommMgmt.DataSource = dsStructureRules.Tables[0];
            gvCommMgmt.DataBind();
            Cache.Insert(userVo.UserId.ToString() + "CommissionStructureRule", dsStructureRules.Tables[0]);
        }