示例#1
0
    //获取数据
    private void GetData(string strID)
    {
        TBaseCompanyPointVo objPoint = new TBaseCompanyPointLogic().Details(strID);

        TBaseEvaluationConInfoLogic logicCon = new TBaseEvaluationConInfoLogic();
        TBaseEvaluationInfoLogic    logicSt  = new TBaseEvaluationInfoLogic();

        //按行、地、国标优先顺序进行标准的选定
        //国标条件项
        if (objPoint.NATIONAL_ST_CONDITION_ID.Length > 0)
        {
            TBaseEvaluationConInfoVo objCon = logicCon.Details(objPoint.NATIONAL_ST_CONDITION_ID);
            TBaseEvaluationInfoVo    objSt  = logicSt.Details(objCon.STANDARD_ID);

            objPoint.NATIONAL_ST_CONDITION_ID = objSt.STANDARD_CODE + "" + objSt.STANDARD_NAME;
            objPoint.hidNATIONAL_ST_CON       = objCon.ID;
        }
        //地标条件项
        if (objPoint.LOCAL_ST_CONDITION_ID.Length > 0)
        {
            TBaseEvaluationConInfoVo objCon = logicCon.Details(objPoint.LOCAL_ST_CONDITION_ID);
            TBaseEvaluationInfoVo    objSt  = logicSt.Details(objCon.STANDARD_ID);

            objPoint.LOCAL_ST_CONDITION_ID = objSt.STANDARD_CODE + "" + objSt.STANDARD_NAME;
            objPoint.hidLOCAL_ST_CON       = objCon.ID;
        }
        //行标条件项
        if (objPoint.INDUSTRY_ST_CONDITION_ID.Length > 0)
        {
            TBaseEvaluationConInfoVo objCon = logicCon.Details(objPoint.INDUSTRY_ST_CONDITION_ID);
            TBaseEvaluationInfoVo    objSt  = logicSt.Details(objCon.STANDARD_ID);

            objPoint.INDUSTRY_ST_CONDITION_ID = objSt.STANDARD_CODE + "" + objSt.STANDARD_NAME;
            objPoint.hidINDUSTRY_ST_CON       = objCon.ID;
        }

        string strJson = ToJson(objPoint);

        Response.Write(strJson);
        Response.End();
    }
    //获取数据
    private void GetData(string strID)
    {
        TBaseCompanyPointVo objPoint = new TBaseCompanyPointLogic().Details(strID);

        TBaseEvaluationConInfoLogic logicCon = new TBaseEvaluationConInfoLogic();
        TBaseEvaluationInfoLogic    logicSt  = new TBaseEvaluationInfoLogic();

        if (objPoint.NATIONAL_ST_CONDITION_ID.Length > 0)
        {
            TBaseEvaluationConInfoVo objCon = logicCon.Details(objPoint.NATIONAL_ST_CONDITION_ID);
            TBaseEvaluationInfoVo    objSt  = logicSt.Details(objCon.STANDARD_ID);

            objPoint.NATIONAL_ST_CONDITION_ID = objSt.STANDARD_CODE + "" + objSt.STANDARD_NAME;
            objPoint.hidNATIONAL_ST_CON       = objCon.ID;
        }

        if (objPoint.LOCAL_ST_CONDITION_ID.Length > 0)
        {
            TBaseEvaluationConInfoVo objCon = logicCon.Details(objPoint.LOCAL_ST_CONDITION_ID);
            TBaseEvaluationInfoVo    objSt  = logicSt.Details(objCon.STANDARD_ID);

            objPoint.LOCAL_ST_CONDITION_ID = objSt.STANDARD_CODE + "" + objSt.STANDARD_NAME;
            objPoint.hidLOCAL_ST_CON       = objCon.ID;
        }

        if (objPoint.INDUSTRY_ST_CONDITION_ID.Length > 0)
        {
            TBaseEvaluationConInfoVo objCon = logicCon.Details(objPoint.INDUSTRY_ST_CONDITION_ID);
            TBaseEvaluationInfoVo    objSt  = logicSt.Details(objCon.STANDARD_ID);

            objPoint.INDUSTRY_ST_CONDITION_ID = objSt.STANDARD_CODE + "" + objSt.STANDARD_NAME;
            objPoint.hidINDUSTRY_ST_CON       = objCon.ID;
        }
        objPoint.CREATE_DATE = objPoint.CREATE_DATE.Replace(" 0:00:00", "");

        string strJson = ToJson(objPoint);

        Response.Write(strJson);
        Response.End();
    }
示例#3
0
    //获取数据
    private void GetData(string strID)
    {
        TMisMonitorTaskPointVo objPoint = new TMisMonitorTaskPointLogic().Details(strID);

        TBaseEvaluationConInfoLogic logicCon = new TBaseEvaluationConInfoLogic();
        TBaseEvaluationInfoLogic    logicSt  = new TBaseEvaluationInfoLogic();

        if (objPoint.NATIONAL_ST_CONDITION_ID.Length > 0)
        {
            TBaseEvaluationConInfoVo objCon = logicCon.Details(objPoint.NATIONAL_ST_CONDITION_ID);
            TBaseEvaluationInfoVo    objSt  = logicSt.Details(objCon.STANDARD_ID);

            objPoint.NATIONAL_ST_CONDITION_ID = objSt.STANDARD_CODE + "" + objSt.STANDARD_NAME;
            objPoint.hidNATIONAL_ST_CON       = objCon.ID;
        }

        if (objPoint.LOCAL_ST_CONDITION_ID.Length > 0)
        {
            TBaseEvaluationConInfoVo objCon = logicCon.Details(objPoint.LOCAL_ST_CONDITION_ID);
            TBaseEvaluationInfoVo    objSt  = logicSt.Details(objCon.STANDARD_ID);

            objPoint.LOCAL_ST_CONDITION_ID = objSt.STANDARD_CODE + "" + objSt.STANDARD_NAME;
            objPoint.hidLOCAL_ST_CON       = objCon.ID;
        }

        if (objPoint.INDUSTRY_ST_CONDITION_ID.Length > 0)
        {
            TBaseEvaluationConInfoVo objCon = logicCon.Details(objPoint.INDUSTRY_ST_CONDITION_ID);
            TBaseEvaluationInfoVo    objSt  = logicSt.Details(objCon.STANDARD_ID);

            objPoint.INDUSTRY_ST_CONDITION_ID = objSt.STANDARD_CODE + "" + objSt.STANDARD_NAME;
            objPoint.hidINDUSTRY_ST_CON       = objCon.ID;
        }

        string strJson = ToJson(objPoint);

        Response.Write(strJson);
        Response.End();
    }