Exemple #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (paramObj.ImportInputParameter(Server.MapPath("~\\Resources\\AMLParameter.xml")))
            {
                lblTitle.Text = paramObj.Title;
                if (!Page.IsPostBack)
                {
                    txtURL.ReadOnly = true;
                    txtAPI.ReadOnly = true;
                    btnSubmit.Visible = false;
                    btnSave.Visible = false;

                    lblResult.Text = "Please Refresh page to enter Key API and access to Setting.";
                    ScriptManager.RegisterStartupScript(Page, Page.GetType(), "EnterKeyModal", "$('#EnterKeyModal').modal();", true);
                }

                else if (btnSave.Visible)
                {
                    GenerateParameterList();
                }
            }
            else
            {
                btnSave.Visible = false;
                return;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            System.Web.HttpBrowserCapabilities browser = Request.Browser;
            if (paramObj.ImportInputParameter(Server.MapPath("~\\Resources\\AMLParameter.xml")))
            {
                Page.Title        = paramObj.Title;
                lblTitle.Text     = paramObj.Title;
                webServicePostUrl = AMLParameterObject.GetPostUrl(paramObj.Url);
            }
            else
            {
                RequireInfor();
            }

            if (paramObj.listGlobalParameter != null && paramObj.listGlobalParameter.Count > 0)
            {
                // Show Global parameter
                //GenerateControl.ShowInput(GlobalPlaceHolder1, GlobalPlaceHolder2, paramObj.listGlobalParameter, browser);
                GenerateControl.ShowInput(PlaceHolderMain, paramObj.listGlobalParameter, browser, "Global Parameters");
            }

            //GenerateControl.ShowInput(InputPlaceHolder1, InputPlaceHolder2, paramObj.listInputParameter, browser);
            if (paramObj.listInputGroup != null)
            {
                paramObj.listInputGroup.Sort(); // Sort input by group name
                foreach (var groupName in paramObj.listInputGroup)
                {
                    var listParam = paramObj.listInputParameter.Where(x => (x.Group == groupName)).ToList();
                    GenerateControl.ShowInput(PlaceHolderMain, listParam, browser, groupName + " Parameters");
                }
            }
        }
Exemple #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            System.Web.HttpBrowserCapabilities browser = Request.Browser;
            if (paramObj.ImportInputParameter(Server.MapPath("~\\Resources\\AMLParameter.xml")))
            {
                Page.Title        = paramObj.Title;
                lblTitle.Text     = paramObj.Title;
                webServicePostUrl = paramObj.Url;
            }
            else
            {
                RequireInfor();
            }

            GenerateControl.ShowInput(InputPlaceHolder1, InputPlaceHolder2, paramObj.listInputParameter, browser);
        }