예제 #1
0
        protected void PoPuPClass(object sender, DirectEventArgs e)
        {
            ruleSelector.Disabled = true;
            string classId        = e.ExtraParams["classId"];
            string ClassNameParam = e.ExtraParams["className"];

            classSelectedId.Text = classId;
            className.Text       = ClassNameParam;
            //   ruleSelectorStore.Reload();
            TriggerWindow.Show();
        }
예제 #2
0
        protected void PoPuP(object sender, DirectEventArgs e)
        {
            string accessTypeParam = e.ExtraParams["accessType"];
            string ruleId          = e.ExtraParams["ruleId"];
            string classId         = e.ExtraParams["classId"];
            string ClassNameParam  = e.ExtraParams["className"];
            string seqNo           = e.ExtraParams["seqNo"];


            string type = e.ExtraParams["type"];

            CurrentRuleId.Text = ruleId;
            switch (type)
            {
            case "imgEdit":
                //Step 1 : get the object from the Web Service

                ruleSelector.Disabled = false;
                accessType.Select(accessTypeParam);
                classSelectedId.Text = classId;
                className.Text       = ClassNameParam;
                ruleSelectorStore.Reload();
                TriggerWindow.Show();


                break;

            case "imgDelete":
                X.Msg.Confirm(Resources.Common.Confirmation, Resources.Common.DeleteOneRecord, new MessageBoxButtonsConfig
                {
                    Yes = new MessageBoxButtonConfig
                    {
                        //We are call a direct request metho for deleting a record
                        Handler = String.Format("App.direct.DeleteRecord({0},{1},{2},{3})", ruleId, classId, accessTypeParam, seqNo),
                        Text    = Resources.Common.Yes
                    },
                    No = new MessageBoxButtonConfig
                    {
                        Text = Resources.Common.No
                    }
                }).Show();
                break;

            case "imgAttach":

                //Here will show up a winow relatice to attachement depending on the case we are working on
                break;

            default:
                break;
            }
        }