コード例 #1
0
ファイル: MoreBudget.aspx.cs プロジェクト: zxl881203/src
    protected void btnSave_Click(object sender, System.EventArgs e)
    {
        if (BudgetManage_Cost_MoreBudget.organization)
        {
            OrganizationMonthBudget.DelAll(BudgetManage_Cost_MoreBudget.id);
            this.SaveDataToViewState();
            System.Collections.Generic.List <OrganizationMonthBudget> list = this.ViewState["Budget"] as System.Collections.Generic.List <OrganizationMonthBudget>;
            using (System.Collections.Generic.List <OrganizationMonthBudget> .Enumerator enumerator = list.GetEnumerator())
            {
                while (enumerator.MoveNext())
                {
                    OrganizationMonthBudget current = enumerator.Current;
                    current.Add(current);
                }
                goto IL_B7;
            }
        }
        IndirectMonthBudget.DelAll(BudgetManage_Cost_MoreBudget.id);
        this.SaveDataToViewState();
        System.Collections.Generic.List <IndirectMonthBudget> list2 = this.ViewState["Budget"] as System.Collections.Generic.List <IndirectMonthBudget>;
        foreach (IndirectMonthBudget current2 in list2)
        {
            current2.Add(current2);
        }
IL_B7:
        base.RegisterScript("top.ui.winSuccess();;");
    }