Exemple #1
0
    /// <summary>
    /// 加载数据
    /// </summary>
    /// <returns></returns>
    public string frmLoadData()
    {
        TEnvPLakeVo TEnvPLake = new TEnvPLakeVo();

        TEnvPLake.ID     = Request["id"].ToString();
        TEnvPLake.IS_DEL = "0";
        TEnvPLakeVo TEnvPLakeTemp = new TEnvPLakeLogic().Details(TEnvPLake);
        //条件项ID
        string strConditionId = TEnvPLakeTemp.CONDITION_ID;
        //根据条件项获取评价标准名称
        //string strStanderId = new i3.BusinessLogic.Channels.Base.Evaluation.TBaseEvaluationConInfoLogic().Details(strConditionId).STANDARD_ID;
        //根据评价标准ID获取评价标准名称
        string strStanderName = new i3.BusinessLogic.Channels.Base.Evaluation.TBaseEvaluationInfoLogic().Details(strConditionId).STANDARD_NAME;

        TEnvPLakeTemp.REMARK1 = strStanderName;

        //获取流域名称
        string strValley = new i3.BusinessLogic.Sys.Resource.TSysDictLogic().Details(TEnvPLakeTemp.VALLEY_ID).DICT_TEXT;

        TEnvPLakeTemp.REMARK2 = strValley;
        //获取河流名称
        string strRiver = new i3.BusinessLogic.Sys.Resource.TSysDictLogic().Details(TEnvPLakeTemp.RIVER_ID).DICT_TEXT;

        TEnvPLakeTemp.REMARK3 = strRiver;

        return(ToJson(TEnvPLakeTemp));
    }
Exemple #2
0
    /// <summary>
    /// 获取下拉字典项
    /// </summary>
    /// <returns></returns>
    private string getDict(string strDictType)
    {
        //return getDictJsonString(strDictType);

        TSysDictVo TSysDictVo = new TSysDictVo();

        TSysDictVo.DICT_TYPE = strDictType;
        if (Request.Params["type"] != null)
        {
            if (Request.Params["type"].ToString() == "other")
            {
                TSysDictVo.DICT_CODE = "03,04,05,07";
            }
            else if (Request.Params["type"].ToString() == "drugs")
            {
                TSysDictVo.DICT_CODE = "01,02";
            }
            else if (Request.Params["type"].ToString() == "office")
            {
                TSysDictVo.DICT_CODE = "06";
            }
        }
        DataTable dt = new i3.BusinessLogic.Sys.Resource.TSysDictLogic().SelectByTable(TSysDictVo);

        return(DataTableToJson(dt));
    }
Exemple #3
0
    //获取字典项
    private string GetDict(string strTYPE)
    {
        TSysDictVo TSysDictVo = new TSysDictVo();

        TSysDictVo.DICT_TYPE = "PART_TYPE";
        DataTable dt = new i3.BusinessLogic.Sys.Resource.TSysDictLogic().SelectByTable(TSysDictVo);

        DataRow[] rows = dt.Select("DICT_TEXT='" + strTYPE + "'");
        string    type = rows[0]["DICT_CODE"].ToString();

        return(type);
    }
Exemple #4
0
    /// <summary>
    /// 加载数据
    /// </summary>
    /// <returns></returns>
    public string frmLoadData()
    {
        TEnvPPayforVo TEnvPPayfor = new TEnvPPayforVo();

        TEnvPPayfor.ID     = Request["id"].ToString();
        TEnvPPayfor.IS_DEL = "0";
        TEnvPPayforVo TEnvPPayforTemp = new TEnvPPayforLogic().Details(TEnvPPayfor);

        //获取流域名称
        string strValley = new i3.BusinessLogic.Sys.Resource.TSysDictLogic().Details(TEnvPPayforTemp.VALLEY_ID).DICT_TEXT;

        TEnvPPayforTemp.REMARK2 = strValley;
        //获取河流名称
        string strRiver = new i3.BusinessLogic.Sys.Resource.TSysDictLogic().Details(TEnvPPayforTemp.RIVER_ID).DICT_TEXT;

        TEnvPPayforTemp.REMARK3 = strRiver;

        return(ToJson(TEnvPPayforTemp));
    }
Exemple #5
0
    /// <summary>
    /// 加载数据
    /// </summary>
    /// <returns></returns>
    public string frmLoadData()
    {
        TEnvPRiverVo TEnvPRiver = new TEnvPRiverVo();

        TEnvPRiver.ID     = Request["id"].ToString();
        TEnvPRiver.IS_DEL = "0";
        TEnvPRiverVo TEnvPRiverVoTemp = new TEnvPRiverLogic().Details(TEnvPRiver);
        //条件项ID
        string strConditionId = TEnvPRiverVoTemp.CONDITION_ID;
        //根据条件项获取评价标准名称
        //string strStanderId = new i3.BusinessLogic.Channels.Base.Evaluation.TBaseEvaluationConInfoLogic().Details(strConditionId).STANDARD_ID;
        //根据评价标准ID获取评价标准名称
        //string strStanderName = new i3.BusinessLogic.Channels.Base.Evaluation.TBaseEvaluationInfoLogic().Details(strStanderId).STANDARD_NAME;
        string strStanderName = new i3.BusinessLogic.Channels.Base.Evaluation.TBaseEvaluationInfoLogic().Details(strConditionId).STANDARD_NAME;

        TEnvPRiverVoTemp.REMARK1 = strStanderName;

        //获取流域名称
        string strValley = new i3.BusinessLogic.Sys.Resource.TSysDictLogic().Details(TEnvPRiverVoTemp.VALLEY_ID).DICT_TEXT;

        TEnvPRiverVoTemp.REMARK2 = strValley;
        //获取河流名称
        string strRiver = new i3.BusinessLogic.Sys.Resource.TSysDictLogic().Details(TEnvPRiverVoTemp.RIVER_ID).DICT_TEXT;

        TEnvPRiverVoTemp.REMARK3 = strRiver;
        //类型
        if (!string.IsNullOrEmpty(TEnvPRiverVoTemp.REMARK4))
        {
            TSysDictVo vo = new TSysDictVo();
            vo.DICT_TEXT = TEnvPRiverVoTemp.REMARK4;
            vo.DICT_TYPE = "ENV_RIVER";
            TSysDictVo vos = new i3.BusinessLogic.Sys.Resource.TSysDictLogic().Details(vo);
            TEnvPRiverVoTemp.REMARK4 = vos.DICT_TEXT;
        }
        return(ToJson(TEnvPRiverVoTemp));
    }