Exemplo n.º 1
0
 /// <summary>
 /// 仪器服务信息绑定
 /// </summary>
 /// <param name="instrument"></param>
 protected void ServiceInfoBind(CY.CSTS.Core.Business.view_INSTRUMENT instrument)
 {
     try
     {
         if (instrument != null)
         {
             IEnumerable<CY.CSTS.Core.Business.INSTRSERVICE> servicesInfos = instrument.GetServiceInfo();
             if (servicesInfos != null)
             {
                 rpServiceInfo.DataSource = servicesInfos;
                 rpServiceInfo.DataBind();
             }
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }