Beispiel #1
0
    private void SetQueryStringData()
    {
        if (GetRequest("ESTTERM_REF_ID").Equals(""))
        {
            TermInfos term = new TermInfos();
            DataView  dw   = term.GetAllTermInfo().Tables[0].DefaultView;

            for (int i = 0; i < dw.Table.Rows.Count; i++)
            {
                if (Convert.ToInt32(dw.Table.Rows[i]["EST_STATUS"]) == 1)
                {
                    ESTTERM_REF_ID = int.Parse(dw.Table.Rows[i]["ESTTERM_REF_ID"].ToString());
                    return;
                }
            }
        }
        else
        {
            ESTTERM_REF_ID = GetRequestByInt("ESTTERM_REF_ID");
        }

        if (GetRequest("EST_DEPT_REF_ID").Equals(""))
        {
            EST_DEPT_REF_ID = _estDeptInfo.GetRootEstDeptID(ESTTERM_REF_ID);
        }
        else
        {
            EST_DEPT_REF_ID = GetRequestByInt("EST_DEPT_REF_ID");
        }
    }
Beispiel #2
0
    private void SetQueryStringData()
    {
        _empSysInfo = new EmpSysInfos_Biz(gUserInfo.Emp_Ref_ID);

        if (GetRequest("ESTTERM_REF_ID").Equals(""))
        {
            TermInfos term = new TermInfos();
            DataView  dw   = term.GetAllTermInfo().Tables[0].DefaultView;

            for (int i = 0; i < dw.Table.Rows.Count; i++)
            {
                if (Convert.ToInt32(dw.Table.Rows[i]["EST_STATUS"]) == 1)
                {
                    ESTTERM_REF_ID = int.Parse(dw.Table.Rows[i]["ESTTERM_REF_ID"].ToString());
                    return;
                }
            }
        }
        else
        {
            ESTTERM_REF_ID = GetRequestByInt("ESTTERM_REF_ID");
        }

        if (GetRequest("EST_DEPT_REF_ID").Equals(""))
        {
            EST_DEPT_REF_ID = _estDeptInfo.GetRootEstDeptID(ESTTERM_REF_ID);
        }
        else
        {
            EST_DEPT_REF_ID = GetRequestByInt("EST_DEPT_REF_ID");
        }

        MAP_VERSION_ID = GetRequestByInt("MAP_VERSION_ID");

        if (GetRequest("TMCODE").Equals(""))
        {
            MicroBSC.BSC.Biz.Biz_Bsc_Term_Detail objTerm = new MicroBSC.BSC.Biz.Biz_Bsc_Term_Detail();
            TMCODE = objTerm.GetReleasedMonth();
        }
        else
        {
            TMCODE = GetRequest("TMCODE");
        }

        string lineType    = "";
        string showKpiList = "";

        if (GetRequest("LINE_TYPE").Equals(""))
        {
            lineType = _empSysInfo.GetSysValueByEmpID(1000);
        }
        else
        {
            lineType = GetRequest("LINE_TYPE");
        }

        if (GetRequest("SHOW_KPI_LIST").Equals(""))
        {
            showKpiList = _empSysInfo.GetSysValueByEmpID(1002);
        }
        else
        {
            showKpiList = GetRequest("SHOW_KPI_LIST");
        }

        ENUMLINETYPE  = (lineType == "0") ? LineType.Diagonal : LineType.Straight;
        ISKPILISTVIEW = (showKpiList == "1") ? true : false;
        DRAWING_YN    = GetRequest("DRAWING_YN", "N");

        if (!IsPostBack)
        {
            IWORKINGMAP_YN = GetRequest("WORKINGMAPYN", "N");
        }

        FULLSCREEN = GetRequest("FULLSCREEN", "N");
    }