/// <summary>
    /// 初始加载
    /// </summary>
    private void OnStart(object sender, EventArgs e)
    {
        IList<Owen.Model.Model_MedicalRelation> lists =
            new Owen.BLL.BLL_MedicalRelation().GetEntities(string.Format(" MedicalID = {0} and RelationType = {1} ", medicalId, (int)Owen.Common.InfiniteType.Surgery));

        if (lists.Count == 0)
            return;


        int r = lists[0].RelationID;
        Owen.BLL.BLL_Infinite bllInfinite = new Owen.BLL.BLL_Infinite();
        Owen.Model.Model_Infinite mInfinite = bllInfinite.GetEntity(r);
        if (mInfinite == null) return;

        int level = mInfinite.LevelNum;
        if (level == 2)
        {
            ddlFirst.SelectedValue = mInfinite.ParentID.ToString();
            ddlFirst_SelectedIndexChanged(sender, e);


            foreach (var v in lists)
            {
                //选择
                foreach (ListItem li in this.cblSur.Items)
                {
                    if (v.RelationID.ToString().Equals(li.Value))
                    {
                        li.Selected = true;
                    }
                }
            }
        }
     
    }
 protected void btnSave_Click(object sender, EventArgs e)
 {
     bool b = false;
     if (cblFra.Items.Count == 0)
     {
         int fraId = int.Parse(ddlThird.SelectedValue);
         b = new Owen.BLL.BLL_MedicalRelation().Insert(medicalId, fraId, (int)Owen.Common.InfiniteType.Fracture);
     }
     else
         b = new Owen.BLL.BLL_MedicalRelation().Insert(medicalId, cblFra, (int)Owen.Common.InfiniteType.Fracture);
     if(b)
         JSHelper.Alert(this, "保存成功!", "MedicalManager.aspx?action=edit&medicalId=" + medicalId + "");
     else
         JSHelper.Alert(this, "保存失败,请稍后再试!", "MedicalManager.aspx?action=edit&medicalId=" + medicalId + "");
 }