コード例 #1
0
 private void BindStructureSchemeGrid()
 {
     try
     {
         DataSet dsStructToScheme = commisionReceivableBo.GetStructureScheme(advisorVo.advisorId, ddlProductType.SelectedValue);
         if (dsStructToScheme.Tables[0].Rows.Count > 0)
         {
             ibtExportSummary.Visible     = true;
             rgvSchemeToStruct.DataSource = dsStructToScheme.Tables[0];
             rgvSchemeToStruct.DataBind();
             Cache.Insert(userVo.UserId.ToString() + "AssocSchemes", dsStructToScheme.Tables[0]);
         }
         else
         {
             ibtExportSummary.Visible     = false;
             rgvSchemeToStruct.DataSource = null;
         }
     }
     catch (BaseApplicationException Ex)
     {
         throw Ex;
     }
     catch (Exception Ex)
     {
         BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
         NameValueCollection      FunctionInfo = new NameValueCollection();
         FunctionInfo.Add("Method", "ViewSchemeStructureAssociation.ascx:BindStructureSchemeGrid()");
         exBase.AdditionalInformation = FunctionInfo;
         ExceptionManager.Publish(exBase);
         throw exBase;
     }
 }