Ejemplo n.º 1
0
 protected void Clear_Click(object sender, EventArgs e)
 {
     XmlUtil x_util = new XmlUtil();
     Hashtable State = (Hashtable)HttpRuntime.Cache[Session.SessionID];
     x_util.SetAppOpenAction(State, null);
     actions.Items[0].Selected = true;
     actionsMultiPage.PageViews[0].Selected = true;
     docompute.Checked = false;
     compute.Value = "";
     Message.Text = "Cleared.";
     Clear.Style.Value = "display:none";
 }
Ejemplo n.º 2
0
    protected void Save_Click(object sender, EventArgs e)
    {
        Hashtable AppOpenAction = new Hashtable();
        switch (actions.SelectedValue)
        {
            case "post":
                AppOpenAction["post"] = action_value.Text;
                break;
            /*case "capture_doc":
                AppOpenAction["capture_doc"] = doc_case_field.Value;
                break;*/
            case "capture_process_document":
                AppOpenAction["capture_process_document"] = action_value.Text;
                 break;
            case "manage_document_case":
                AppOpenAction["manage_document_case"] = action_value.Text;
                break;
            default:
                if (!docompute.Checked)
                {
                    Message.Text = "Select an action before saving.";
                    return;
                }
                break;
        }

        XmlUtil x_util = new XmlUtil();
        if (docompute.Checked && compute.Value.Length > 0)
        {
            AppOpenAction["compute"] = compute.Value;
        }

        Hashtable State = (Hashtable)HttpRuntime.Cache[Session.SessionID];
        x_util.SetAppOpenAction(State, AppOpenAction);
        Message.Text = "Saved.";
        Clear.Style.Value = "";
    }