Exemplo n.º 1
0
    protected void btnSave_Click(object sender, System.EventArgs e)
    {
        string text        = this.txtProgressName.Text.Trim();
        string note        = this.txtArea.Text.Trim();
        string versionCode = this.txtVersionCode.Text.Trim();
        bool   @checked    = this.chkIsMainPlan.Checked;

        if (this.action == "add")
        {
            Progress progress = Progress.Creat(System.Guid.NewGuid().ToString(), new System.Guid(this.prjId), text, versionCode, @checked, base.UserCode, System.DateTime.Now, note);
            progress.Add(progress);
        }
        else
        {
            if (this.action == "edit")
            {
                Progress.Update(this.planId, text, versionCode, @checked, note);
            }
        }
        base.RegisterScript("top.ui.winSuccess({ parentName: '_editplan' }); ");
    }