Esempio n. 1
0
    protected void btnBatch_Click(object source, EventArgs e)
    {
        RepeaterItemCollection Items       = RegistrationRepeater.Items;
        GroupResultBusiness    GroupResult = new GroupResultBusiness();
        Button btnDetail;
        String RegisterNo = "";

        foreach (RepeaterItem Item in Items)
        {
            btnDetail  = (Button)Item.FindControl("btnDetail");
            RegisterNo = btnDetail.CommandArgument + "";
            String Summary = String.Join(Environment.NewLine, GroupResult.GetGroupSummary(RegisterNo).ToArray());
            m_Registration.SaveOverall(RegisterNo, DateTime.Now.Date, UserName, Summary, "", "");
        }
        ShowMessage("操作成功!");
    }