Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            WFID     = Guid.Parse(Request.QueryString["WFID"]);
            ActionID = Request.QueryString["AID"];

            if (WFID == null || ActionID == null || ActionID == "")
            {
                throw new Exception("URL not correct WFID / AID");
            }

            ApprovalInstances.ApprovalServiceClient cli      = new ApprovalInstances.ApprovalServiceClient();
            ApprovalInstances.WFApprovals[]         aprovals = cli.getApprovalInstances(Default.getEmail());
            ApprovalInstances.WFApprovals           w        = null;
            foreach (ApprovalInstances.WFApprovals wf in aprovals)
            {
                if (wf.approverWFID == WFID && wf.approverActivityID == ActionID)
                {
                    w = wf;
                }
            }

            if (w == null)
            {
                throw new Exception("WFID / AID not found");
            }
            txtBody.Text  = w.body;
            txtTitle.Text = w.subject;
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            ApprovalInstances.ApprovalServiceClient cli = new ApprovalInstances.ApprovalServiceClient();
            aprovals = cli.getApprovalInstances(getEmail());

            repeater.DataSource = aprovals;
            repeater.DataBind();

            txtTitle.Text = "Approve Workflows";
            //aprovals[0].subject
        }