Exemplo n.º 1
0
    protected void ibnSearch_Click(object sender, ImageClickEventArgs e)
    {
        string page_name  = "";
        string title_name = "";

        Dac_EISDatas obj = new Dac_EISDatas();
        DataTable    dt  = obj.GetEISSub(WebUtility.GetIntByValueDropDownList(ddlMain), WebUtility.GetIntByValueDropDownList(ddlSub));

        if (dt.Rows.Count > 0)
        {
            page_name  = DataTypeUtility.GetValue(dt.Rows[0]["PAGE_NAME"]);
            title_name = DataTypeUtility.GetValue(dt.Rows[0]["TITLE_NAME"]);
        }

        ((_common_lib_MicroBSC)this.Master).SetTitle(title_name);

        if (page_name.IndexOf("?") >= 0)
        {
            ifmContent.Attributes.Add("src", string.Format("{0}&ESTTERM_REF_ID={1}&YMD={2}&M_ID={3}&S_ID={4}"
                                                           , page_name
                                                           , WebUtility.GetIntByValueDropDownList(ddlEstRefID)
                                                           , WebUtility.GetIntByValueDropDownList(ddlYMD)
                                                           , WebUtility.GetIntByValueDropDownList(ddlMain)
                                                           , WebUtility.GetIntByValueDropDownList(ddlSub)));
        }
        else
        {
            ifmContent.Attributes.Add("src", string.Format("{0}?ESTTERM_REF_ID={1}&YMD={2}&M_ID={3}&S_ID={4}"
                                                           , page_name
                                                           , WebUtility.GetIntByValueDropDownList(ddlEstRefID)
                                                           , WebUtility.GetIntByValueDropDownList(ddlYMD)
                                                           , WebUtility.GetIntByValueDropDownList(ddlMain)
                                                           , WebUtility.GetIntByValueDropDownList(ddlSub)));
        }
    }
Exemplo n.º 2
0
    private void BindSub(int m_id)
    {
        Dac_EISDatas obj = new Dac_EISDatas();
        DataTable    dt  = obj.GetEISSub(m_id, 0);

        dt = DataTypeUtility.FilterSortDataTable(dt, "", "SORT_ORDER");
        ddlSub.DataValueField = "S_ID";
        ddlSub.DataTextField  = "S_NAME";
        ddlSub.DataSource     = dt;
        ddlSub.DataBind();
    }
Exemplo n.º 3
0
    private string GetPageName(int m_id, int s_id)
    {
        Dac_EISDatas obj = new Dac_EISDatas();
        DataTable    dt  = obj.GetEISSub(m_id, s_id);

        if (dt.Rows.Count > 0)
        {
            return(DataTypeUtility.GetValue(dt.Rows[0]["PAGE_NAME"]));
        }

        return("");
    }