コード例 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (MercuryApplication == null)
            {
                return;
            }


            if (!IsPostBack)
            {
                // IF FIRST REQUEST, READ FROM QUERY STRING

                Int64 selectedWorkQueueId = 0;

                Int64.TryParse(Convert.ToString(Request.QueryString["WorkQueueId"]), out selectedWorkQueueId);

                WorkQueueSelected = MercuryApplication.WorkQueueGet(selectedWorkQueueId, true);

                if (WorkQueueSelected != null)
                {
                    WorkQueueViewSelected = MercuryApplication.WorkQueueViewGet(WorkQueueSelected.GetWorkViewId, true);
                }


                // ONLY LOAD ON FIRST LOAD, STATE IS SAVE IN VIEW STATE FOR POST BACK

                InitializeWorkQueueSelection();

                InitializeAssignWorkQueueSelection();

                InitializeWorkQueueViewSelection();


                WorkQueueItemsGrid.Rebind();


                // INITIALIZE WORK OUTCOMES

                WorkQueueItemCloseOutcomeSelection.DataSource = MercuryApplication.WorkOutcomesAvailable(true, true);

                WorkQueueItemCloseOutcomeSelection.DataTextField = "Name";

                WorkQueueItemCloseOutcomeSelection.DataValueField = "Id";

                WorkQueueItemCloseOutcomeSelection.DataBind();

                WorkQueueItemCloseOutcomeSelection.SelectedValue = "0";
            }

            else
            {
                // FORCE CLIENT-SIDE REPAINT AFTER AJAX CONTROL UPDATES

                Master.TelerikAjaxManagerControl.ResponseScripts.Add("WorkQueueManagement_OnPaint ();");
            }

            return;
        }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InitializeWorkQueueSelection();

                WorkQueueItemCloseOutcomeSelection.DataSource = MercuryApplication.WorkOutcomesAvailable(true, true);

                WorkQueueItemCloseOutcomeSelection.DataTextField = "Name";

                WorkQueueItemCloseOutcomeSelection.DataValueField = "Id";

                WorkQueueItemCloseOutcomeSelection.DataBind();

                WorkQueueItemCloseOutcomeSelection.SelectedValue = "0";

                InitializeAll();
            }

            return;
        }