예제 #1
0
 protected void InstrumentDomainDatabind(CY.CSTS.Core.Business.view_INSTRUMENT instrument)
 {
     try
     {
         if (instrument != null)
         {
             IEnumerable<CY.CSTS.Core.Business.DomainCode> domainCodes = instrument.GetDomainCodes();
             StringBuilder result = new StringBuilder();
             if (domainCodes != null)
             {
                 foreach (CY.CSTS.Core.Business.DomainCode c in domainCodes)
                 {
                     result.Append(c.Name + ",");
                 }
                 if (domainCodes.Count() > 0)
                 {
                     result.Remove(result.Length - 1, 1);
                 }
             }
             ltInstrumentDomain.Text = result.ToString();
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }