예제 #1
0
        protected void Button4_Click(object sender, EventArgs e)
        {
            originalDataTable3 = (DataTable)ViewState["originalValuesDataTable3"];

            foreach (GridViewRow r in GridView3.Rows)
            {
                if (((CheckBox)r.FindControl("che")).Checked)
                {
                    if (IsRowModified3(r))
                    {
                        GridView3.UpdateRow(r.RowIndex, false);
                    }
                }
                else
                {
                }
            }
            // Rebind the Grid to repopulate the original values table.
            tableCopied3 = false;
            GridView3.DataBind();

            DAL.JuicDao dao = new DAL.JuicDao("MENU");

            var dept = dao.GetBudgetEditor(Label1.Text, DateTime.Now.AddYears(1).Year.ToString(), userid0, Label5.Text, Label6.Text);//待新增
        }
예제 #2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            originalDataTable = (DataTable)ViewState["originalValuesDataTable"];

            foreach (GridViewRow r in GridView3.Rows)
            {
                if (IsRowModified(r))
                {
                    GridView3.UpdateRow(r.RowIndex, false);
                }
            }

            // Rebind the Grid to repopulate the original values table.
            tableCopied = false;
            GridView3.DataBind();
            Label2.Text = "更新成功";
        }