protected void rptConfigParam_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
        proxy = new ServiceReference.ServiceClient();

        if (e.CommandName == "GoTestOutput")
        {
            Session["Search"]     = true;
            Session["SearchInfo"] = true;

            int    paramid   = Convert.ToInt32(e.CommandArgument);
            string parameter = proxy.GetConfigParameter().Where(x => x.id == paramid).Select(x => x.parameter).FirstOrDefault();

            Session["Parameter"] = parameter.ToString();

            var result1 = proxy.GetTestDataFilter(parameter).Where(x => x.parameter == parameter).OrderBy(x => x.value).ToList();

            if (result1.Count != 0)
            {
                Response.Redirect("TestOutput.aspx");
            }
            else
            {
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", $"alert('Bu parametre ile ilgili test yapılmamıştır')", true);
            }
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        proxy = new ServiceReference.ServiceClient();

        if (Session["ConfigParam"] != null)
        {
            string param  = Session["ConfigParam"].ToString();
            var    result = proxy.GetConfigParameter().Where(x => x.parameter == param).ToList();

            rptConfigParam.DataSource = result;
            rptConfigParam.DataBind();

            Session["ConfigParam"] = null;
        }
        else
        {
            if (!IsPostBack) //Sayfa ilk defa mı yüklendi yoksa yenilendi mi diye kontrol ediyor.
            {
                var result = proxy.GetConfigParameter();
                rptConfigParam.DataSource = result;
                rptConfigParam.DataBind();
                lblCount.Text = "Parametre Sayısı : " + result.Count().ToString();
            }
        }
    }
Beispiel #3
0
    protected void rptAnalysis_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
        proxy = new ServiceReference.ServiceClient();

        if (e.CommandName == "GoTestOutput")
        {
            Session["Search"] = true;

            int    paramid   = Convert.ToInt32(e.CommandArgument);
            string parameter = proxy.GetAnalysis().Where(x => x.id == paramid).Select(x => x.parameter).FirstOrDefault();

            Session["Parameter"] = parameter.ToString();

            Response.Redirect("TestOutput.aspx");
        }
        if (e.CommandName == "GoConfigParam")
        {
            int    paramid   = Convert.ToInt32(e.CommandArgument);
            string parameter = proxy.GetAnalysis().Where(x => x.id == paramid).Select(x => x.parameter).FirstOrDefault();

            Session["ConfigParam"] = parameter.ToString();

            Response.Redirect("Config_Parameters.aspx");
        }
    }
Beispiel #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        proxy = new ServiceReference.ServiceClient();

        if (Session["ParamAnalyis"] != null)
        {
            string parameter = Session["ParamAnalyis"].ToString();
            ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", $"alert('{parameter}')", true);
            var result1 = proxy.GetAnalysis().Where(x => x.parameter == parameter).ToList();

            if (result1.Count != 0)
            {
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", $"alert('Bu parametre ile ilgili {result1.Count} tane test yapılmıştır')", true);
                rptAnalysis.DataSource = result1;
                rptAnalysis.DataBind();
                Session["ParamAnalyis"] = null;
            }
            else
            {
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", $"alert('{parameter} parametre ile ilgili test yapılmamıştır')", true);

                var result = proxy.GetAnalysis();
                rptAnalysis.DataSource = result;
                rptAnalysis.DataBind();
                Session["ParamAnalyis"] = null;
            }
        }
        else if (!IsPostBack) //Sayfa ilk defa mı yüklendi yoksa yenilendi mi diye kontrol ediyor.
        {
            var result = proxy.GetAnalysis();
            rptAnalysis.DataSource = result;
            rptAnalysis.DataBind();
        }
    }
Beispiel #5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        proxy = new ServiceReference.ServiceClient();

        var result = proxy.GetTestData();

        rptTestData.DataSource = result;
        rptTestData.DataBind();
    }
    protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    {
        proxy = new ServiceReference.ServiceClient();

        string query = DropDownList1.SelectedValue.ToString();

        if (query != "")
        {
            var result3 = proxy.GetConfigParametersFilterasTag(query);
            rptConfigParam.DataSource = result3;
            rptConfigParam.DataBind();
            lblCount.Text = "Parametre Sayısı : " + result3.Count().ToString();
        }
    }
Beispiel #7
0
    protected void btnFilter_Click(object sender, EventArgs e)
    {
        if (TextBox1.Text != "")
        {  //TextBox'ın içi boş ise filtre yapmadan bütün ürünleri listeler
            proxy = new ServiceReference.ServiceClient();

            var result1 = proxy.GetAnalysisFilter(TextBox1.Text.ToString());
            rptAnalysis.DataSource = result1.ToList();
            rptAnalysis.DataBind();
        }
        else
        {
            var result2 = proxy.GetAnalysis();
            rptAnalysis.DataSource = result2.ToList();
            rptAnalysis.DataBind();
        }
    }
Beispiel #8
0
    protected void btnFilter_Click(object sender, EventArgs e)
    {
        string ss = TextBox1.Text.ToString();

        if (ss != "")
        {  //TextBox'ın içi boş ise filtre yapmadan bütün ürünleri listeler
            proxy = new ServiceReference.ServiceClient();

            var result1 = proxy.GetTestDataFilter(ss.ToString());
            rptTestData.DataSource = result1;
            rptTestData.DataBind();
        }
        else
        {
            var result2 = proxy.GetTestData();
            rptTestData.DataSource = result2;
            rptTestData.DataBind();
        }
    }
    protected void btnFilter_Click(object sender, EventArgs e)
    {
        if (TextBox1.Text != "")
        {  //TextBox'ın içi boş ise filtre yapmadan bütün ürünleri listeler
            proxy = new ServiceReference.ServiceClient();

            var result1 = proxy.GetConfigParameterFilter(TextBox1.Text.ToString());
            rptConfigParam.DataSource = result1.ToList();
            rptConfigParam.DataBind();
            lblCount.Text = "Parametre Sayısı : " + result1.Count().ToString();
        }
        else
        {
            var result2 = proxy.GetConfigParameter();
            rptConfigParam.DataSource = result2.ToList();
            rptConfigParam.DataBind();
            lblCount.Text = "Parametre Sayısı : " + result2.Count().ToString();
        }
    }
    protected void btnFilter_Click(object sender, EventArgs e)
    {
        if (TextBox1.Text != "")
        {  //TextBox'ın içi boş ise filtre yapmadan bütün ürünleri listeler
            proxy = new ServiceReference.ServiceClient();

            var result1 = proxy.GetTestDataFilter(TextBox1.Text.ToString());
            rptTestData.DataSource = result1;
            rptTestData.DataBind();
            Session["Search"]    = null;
            Session["Parameter"] = null;
        }
        else
        {
            var result2 = proxy.GetTestData();
            rptTestData.DataSource = result2;
            rptTestData.DataBind();
        }
    }
    protected void rptTestData_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
        proxy = new ServiceReference.ServiceClient();

        if (e.CommandName == "GoConfigFile")
        {
            Session["Search"]     = true;
            Session["OpenConfig"] = true;
            string config_files = e.CommandArgument.ToString();

            Session["Config_Files"] = config_files.ToString();
            Response.Redirect("Default.aspx");
        }
        if (e.CommandName == "GoAnalysis")
        {
            string anaylsis_param = e.CommandArgument.ToString();

            Session["ParamAnalyis"] = anaylsis_param.ToString();
            Response.Redirect("Analysis.aspx");
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        proxy = new ServiceReference.ServiceClient();

        if (Session["Search"] != null && Session["Parameter"] != null)
        {
            string parameter = Session["Parameter"].ToString();
            var    result1   = proxy.GetTestDataFilter(parameter).Where(x => x.parameter == parameter).OrderBy(x => x.value).ToList();

            if (result1.Count != 0)
            {
                if (Session["SearchInfo"] != null)
                {
                    ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", $"alert('Bu parametre ile ilgili {result1.Count} tane test yapılmıştır')", true);
                    Session["SearchInfo"] = null;
                }
                rptTestData.DataSource = result1;
                rptTestData.DataBind();
                Session["Search"] = null;
            }
            else
            {
                //ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", $"alert('Bu parametre ile ilgili test yapılmamıştır')", true);

                var result = proxy.GetTestData();
                rptTestData.DataSource = result;
                rptTestData.DataBind();
                Session["Search"] = null;
            }
        }
        else
        {
            if (!IsPostBack)
            {
                var result = proxy.GetTestData();
                rptTestData.DataSource = result;
                rptTestData.DataBind();
            }
        }
    }
 public async Task <InboxDto[]> Get()
 {
     ServiceReference.ServiceClient svc = new ServiceReference.ServiceClient();
     return(await svc.GetInboxesAsync("4f5c03f7-5311-4d02-aa3e-3cccabf16eab"));
 }