Ejemplo n.º 1
0
        /// <summary>
        /// 获取体检组合项目结论数据
        /// </summary>
        /// <param name="RegisterNo">登记号</param>
        /// <param name="GroupID">组合项目编号</param>
        /// <returns>体检组合项目结论实体</returns>
        public GroupResultViewEntity GetGroupResult(string RegisterNo, int GroupID)
        {
            GroupResultPK ID = new GroupResultPK {
                RegisterNo = RegisterNo, GroupID = GroupID
            };
            GroupResultViewEntity Result = Session.Get <GroupResultViewEntity>(ID);

            CloseSession();
            return(Result);
        }
Ejemplo n.º 2
0
    protected void btnGetItemResult_Click(object sender, EventArgs e)
    {
        DataBind();
        ItemResultRepeater.DataSource = m_ItemResult.GetDeptItemResults(
            hRegisterNo.Value, Convert.ToInt32(hGroupID.Value));
        base.DataBind();
        GroupResultViewEntity GroupResult = m_GroupResut.GetGroupResult(RegisterNo, Convert.ToInt32(hGroupID.Value));

        txtSummary.Text = "";
        if (GroupResult != null)
        {
            txtSummary.Text = GroupResult.Summary;
        }
        TextBox txtCheckResult;
        RepeaterItemCollection Items = ItemResultRepeater.Items;

        foreach (RepeaterItem Item in Items)
        {
            txtCheckResult         = (TextBox)Item.FindControl("txtCheckResult");
            txtCheckResult.Enabled = InputEnabled;
        }
        ScriptManager.RegisterClientScriptBlock(this, GetType(), "setUIStatus", "setUIStatus();", true);
    }