/// <summary>
    /// 加载数据
    /// </summary>
    /// <returns></returns>
    public string frmLoadData()
    {
        TEnvPRiverPlanVo TEnvPRiverPlanVo = new TEnvPRiverPlanVo();

        TEnvPRiverPlanVo.ID     = Request["id"].ToString();
        TEnvPRiverPlanVo.IS_DEL = "0";
        TEnvPRiverPlanVo TEnvPRiverPlanVoTemp = new TEnvPRiverPlanLogic().Details(TEnvPRiverPlanVo);
        //条件项ID
        string strConditionId = TEnvPRiverPlanVoTemp.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;

        TEnvPRiverPlanVoTemp.REMARK1 = strStanderName;

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

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

        TEnvPRiverPlanVoTemp.REMARK3 = strRiver;

        return(ToJson(TEnvPRiverPlanVoTemp));
    }
    /// <summary>
    /// 修改数据
    /// </summary>
    /// <returns></returns>
    public string frmUpdate()
    {
        TEnvPRiverPlanVo TEnvPRiverPlan = autoBindRequest(Request, new TEnvPRiverPlanVo());

        TEnvPRiverPlan.ID     = Request["id"].ToString();
        TEnvPRiverPlan.IS_DEL = "0";
        string strMsg    = "";
        bool   isSuccess = false;

        if (hidYear.Value.Trim() != TEnvPRiverPlan.YEAR || hidMonth.Value.Trim() != TEnvPRiverPlan.MONTH || hidValue.Value.Trim() != TEnvPRiverPlan.SECTION_NAME || hidCode.Value.Trim() != TEnvPRiverPlan.SECTION_CODE)
        {
            //验证数据是否重复
            strMsg = new CommonLogic().isExistDatas(TEnvPRiverPlanVo.T_ENV_P_RIVER_PLAN_TABLE, TEnvPRiverPlan.YEAR, TEnvPRiverPlan.MONTH, TEnvPRiverPlanVo.SECTION_NAME_FIELD, TEnvPRiverPlan.SECTION_NAME, TEnvPRiverPlanVo.SECTION_CODE_FIELD, TEnvPRiverPlan.SECTION_CODE, TEnvPRiverPlanVo.ID_FIELD, TEnvPRiverPlan.ID, 0);
        }

        if (strMsg == "")
        {
            isSuccess = new TEnvPRiverPlanLogic().Edit(TEnvPRiverPlan);
            if (isSuccess)
            {
                WriteLog("编辑规划断面监测点", "", LogInfo.UserInfo.USER_NAME + "编辑规划断面监测点" + TEnvPRiverPlan.ID);
                strMsg = "数据更新成功";
            }
            else
            {
                strMsg = "数据更新失败";
            }
        }

        return(isSuccess == true ? "{\"result\":\"success\",\"msg\":\"" + strMsg + "\"}" : "{\"result\":\"fail\",\"msg\":\"" + strMsg + "\"}");
    }
    /// <summary>
    /// 增加数据
    /// </summary>
    /// <returns></returns>
    public string frmAdd()
    {
        TEnvPRiverPlanVo TEnvPRiverPlan = autoBindRequest(Request, new TEnvPRiverPlanVo());

        TEnvPRiverPlan.IS_DEL = "0";
        string strMsg    = "";
        bool   isSuccess = false;

        //验证数据是否重复
        strMsg = new CommonLogic().isExistDatas(TEnvPRiverPlanVo.T_ENV_P_RIVER_PLAN_TABLE, TEnvPRiverPlan.YEAR, TEnvPRiverPlan.SelectMonths, TEnvPRiverPlanVo.SECTION_NAME_FIELD, TEnvPRiverPlan.SECTION_NAME, TEnvPRiverPlanVo.SECTION_CODE_FIELD, TEnvPRiverPlan.SECTION_CODE, TEnvPRiverPlanVo.ID_FIELD, TEnvPRiverPlan.ID, 0);
        if (strMsg == "")
        {
            isSuccess = new TEnvPRiverPlanLogic().Create(TEnvPRiverPlan, SerialType.T_ENV_P_RIVER_PLAN);
            if (isSuccess)
            {
                WriteLog("添加规划断面信息", "", LogInfo.UserInfo.USER_NAME + "添加规划断面信息" + TEnvPRiverPlan.ID);
                strMsg = "数据保存成功";
            }
            else
            {
                strMsg = "数据保存失败";
            }
        }

        return(isSuccess == true ? "{\"result\":\"success\",\"msg\":\"" + strMsg + "\"}" : "{\"result\":\"fail\",\"msg\":\"" + strMsg + "\"}");
    }
    public static string deleteOneGridInfo(string strValue)
    {
        TEnvPRiverPlanVo TEnvPRiverPlan = new TEnvPRiverPlanVo();

        TEnvPRiverPlan.ID     = strValue;
        TEnvPRiverPlan.IS_DEL = "1";
        bool isSuccess = new TEnvPRiverPlanLogic().Edit(TEnvPRiverPlan);

        if (isSuccess)
        {
            new PageBase().WriteLog("删除规划断面监测点", "", new UserLogInfo().UserInfo.USER_NAME + "删除规划断面监测点" + TEnvPRiverPlan.ID);
        }
        return(isSuccess == true ? "1" : "0");
    }
    /// <summary>
    /// 获取断面信息
    /// </summary>
    /// <returns></returns>
    private string getOneGridInfo()
    {
        string strSortname  = Request.Params["sortname"];
        string strSortorder = Request.Params["sortorder"];
        //当前页面
        int intPageIndex = Convert.ToInt32(Request.Params["page"]);
        //每页记录数
        int intPageSize = Convert.ToInt32(Request.Params["pagesize"]);

        TEnvPRiverPlanVo TEnvPRiverPlan = new TEnvPRiverPlanVo();

        TEnvPRiverPlan.IS_DEL = "0";

        TEnvPRiverPlan.SORT_FIELD = strSortname;
        TEnvPRiverPlan.SORT_TYPE  = strSortorder;
        DataTable dt            = new DataTable();
        int       intTotalCount = 0;

        if (!String.IsNullOrEmpty(srhYear) || !String.IsNullOrEmpty(srhMonth) || !String.IsNullOrEmpty(srhName) || !String.IsNullOrEmpty(srhArea))
        {
            TEnvPRiverPlan.YEAR         = srhYear;
            TEnvPRiverPlan.MONTH        = srhMonth;
            TEnvPRiverPlan.SECTION_NAME = srhName;
            TEnvPRiverPlan.AREA_ID      = srhArea;
            dt            = new TEnvPRiverPlanLogic().SelectByTable(TEnvPRiverPlan, intPageIndex, intPageSize);
            intTotalCount = new TEnvPRiverPlanLogic().GetSelectResultCount(TEnvPRiverPlan);
        }
        else
        {
            dt            = new TEnvPRiverPlanLogic().SelectByTable(TEnvPRiverPlan, intPageIndex, intPageSize);
            intTotalCount = new TEnvPRiverPlanLogic().GetSelectResultCount(TEnvPRiverPlan);
        }
        string strJson = CreateToJson(dt, intTotalCount);

        return(strJson);
    }
Example #6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //定义结果
        string strResult = "";
        string strType   = "";

        if (Request["type"] != null)
        {
            string TableName   = string.Empty;
            string Year_From   = string.Empty;
            string Month_From  = string.Empty;
            string Year_To     = string.Empty;
            string Month_To    = string.Empty;
            string strFPointID = string.Empty;
            string strTPointID = string.Empty;
            strType = Request["type"].ToString();
            List <string> list = new List <string>();
            CommonLogic   com  = new CommonLogic();
            switch (strType)
            {
            //获取年度下拉列表数据
            case "getYearInfo":
                strResult = getYearInfo();
                break;

            //获取年度下拉列表数据
            case "getMonthInfo":
                strResult = getMonthInfo();
                break;

            //饮用水源地点位复制
            case "copyDrinkSrc":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_DRINK_SRC";

                strResult = com.CopyPointData(TableName, SerialType.T_ENV_P_DRINK_SRC, SerialType.T_ENV_P_DRINK_SRC_V, SerialType.T_ENV_P_DRINK_SRC_V_ITEM, Year_From, Month_From, Year_To, Month_To);
                //strResult = "({result:false,msg:'weilin'})";
                break;

            //饮用水源地垂线监测项目复制
            case "copyDrinkSrcV":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPDrinkSrcLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_DRINK_SRC_V_ITEM);
                break;

            //河流点位复制
            case "copyRiver":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_RIVER";

                strResult = com.CopyPointData(TableName, SerialType.T_ENV_P_RIVER, SerialType.T_ENV_P_RIVER_V, SerialType.T_ENV_P_RIVER_V_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //河流垂线监测项目复制
            case "copyRiverV":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPRiverLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_RIVER_V_ITEM);
                break;

            //城考点位复制
            case "copyRiverCity":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_RIVER_CITY";

                strResult = com.CopyPointData(TableName, SerialType.T_ENV_P_RIVER_CITY, SerialType.T_ENV_P_RIVER_CITY_V, SerialType.T_ENV_P_RIVER_CITY_V_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //城考垂线监测项目复制
            case "copyRiverCityV":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPRiverCityLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_RIVER_CITY_V_ITEM);
                break;

            //责任目标点位复制
            case "copyRiverTarget":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_RIVER_TARGET";

                strResult = com.CopyPointData(TableName, SerialType.T_ENV_P_RIVER_TARGET, SerialType.T_ENV_P_RIVER_TARGET_V, SerialType.T_ENV_P_RIVER_TARGET_V_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //责任目标垂线监测项目复制
            case "copyRiverTargetV":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPRiverTargetLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_RIVER_TARGET_V_ITEM);
                break;

            //规划断面点位复制
            case "copyRiverPlan":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_RIVER_PLAN";

                strResult = com.CopyPointData(TableName, SerialType.T_ENV_P_RIVER_PLAN, SerialType.T_ENV_P_RIVER_PLAN_V, SerialType.T_ENV_P_RIVER_PLAN_V_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //规划断面垂线监测项目复制
            case "copyRiverPlanV":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPRiverPlanLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_RIVER_PLAN_V_ITEM);
                break;

            //湖库点位复制
            case "copyLake":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_LAKE";

                strResult = com.CopyPointData(TableName, SerialType.T_ENV_P_LAKE, SerialType.T_ENV_P_LAKE_V, SerialType.T_ENV_P_LAKE_V_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //湖库垂线监测项目复制
            case "copyLakeV":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPLakeLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_LAKE_V_ITEM);
                break;

            //地下饮用水点位复制
            case "copyDrinkUnder":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_DRINK_UNDER";

                strResult = com.CopyPointData(TableName, SerialType.T_ENV_P_DRINK_UNDER, "", SerialType.T_ENV_P_DRINK_UNDER_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //地下饮用水监测项目复制
            case "copyDrinkUnderV":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPDrinkUnderLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_DRINK_UNDER_ITEM);
                break;

            //**************************何海亮********************************************//
            //底泥重金属点位复制
            case "copySediment":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_SEDIMENT";
                strResult  = com.CopyPointData(TableName, SerialType.T_ENV_P_SEDIMENT, "", SerialType.T_ENV_P_SEDIMENT_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //底泥重金属监测项目复制
            case "copySedimentV":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPSedimentLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_SEDIMENT_ITEM);
                break;

            //*****************************************************************************//
            //生态补偿点位复制
            case "copyPayfor":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_PAYFOR";

                strResult = com.CopyPointData(TableName, SerialType.T_ENV_P_PAYFOR, "", SerialType.T_ENV_P_PAYFOR_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //生态补偿监测项目复制
            case "copyPayforV":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPPayforLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_PAYFOR_ITEM);
                break;

            //沉积物(河流)点位复制
            case "copyMudRiver":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_MUD_RIVER";

                strResult = com.CopyPointData(TableName, SerialType.T_ENV_P_MUD_RIVER, SerialType.T_ENV_P_MUD_RIVER_V, SerialType.T_ENV_P_MUD_RIVER_V_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //沉积物(河流)监测项目复制
            case "copyMudRiverV":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPMudRiverLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_MUD_RIVER_V_ITEM);
                break;

            //沉积物(海水)点位复制
            case "copyMudSea":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_MUD_SEA";

                strResult = com.CopyPointData(TableName, SerialType.T_ENV_P_MUD_SEA, SerialType.T_ENV_P_MUD_SEA_V, SerialType.T_ENV_P_MUD_SEA_V_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //沉积物(海水)监测项目复制
            case "copyMudSeaV":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPMudSeaLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_MUD_SEA_V_ITEM);
                break;

            //土壤点位复制
            case "copySoil":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_SOIL";

                strResult = com.CopyPointData(TableName, SerialType.T_ENV_P_SOIL, "", SerialType.T_ENV_P_SOIL_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //土壤监测项目复制
            case "copySoilV":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPSoilLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_SOIL_ITEM);
                break;

            //固废点位复制
            case "copySolid":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_SOLID";

                strResult = com.CopyPointData(TableName, SerialType.T_ENV_P_SOLID, "", SerialType.T_ENV_P_SOLID_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //固废监测项目复制
            case "copySolidV":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPSolidLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_SOLID_ITEM);
                break;

            //功能区噪声点位复制
            case "copyFunctionNoise":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_NOISE_FUNCTION";

                strResult = com.CopyPointData(TableName, SerialType.T_ENV_P_NOISE_FUNCTION, "", SerialType.T_ENV_P_NOISE_FUNCTION_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //功能区噪声监测项目复制
            case "copyFunctionNoiseV":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPNoiseFunctionLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_NOISE_FUNCTION_ITEM);
                break;

            //区域环境噪声点位复制
            case "copyAreaNoise":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_NOISE_AREA";

                strResult = com.CopyPointData(TableName, SerialType.T_ENV_P_NOISE_AREA, "", SerialType.T_ENV_P_NOISE_AREA_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //区域环境噪声监测项目复制
            case "copyAreaNoiseV":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPNoiseAreaLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_NOISE_AREA_ITEM);
                break;

            //道路交通噪声点位复制
            case "copyRoadNoise":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_NOISE_ROAD";

                strResult = com.CopyPointData(TableName, SerialType.T_ENV_P_NOISE_ROAD, "", SerialType.T_ENV_P_NOISE_ROAD_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //道路交通噪声监测项目复制
            case "copyRoadNoiseV":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPNoiseRoadLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_NOISE_ROAD_ITEM);
                break;

            //双三十废水点位复制
            case "copyRiver30":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_RIVER30";

                strResult = com.CopyPointData(TableName, SerialType.T_ENV_P_RIVER30, SerialType.T_ENV_P_RIVER30_V, SerialType.T_ENV_P_RIVER30_V_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //双三十废水垂线监测项目复制
            case "copyRiver30V":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPRiver30Logic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_RIVER30_V_ITEM);
                break;

            //双三十废气点位复制
            case "copyAir30":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_AIR30";

                strResult = com.CopyPointData(TableName, SerialType.T_ENV_P_AIR30, "", SerialType.T_ENV_P_AIR30_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //双三十废气监测项目复制
            case "copyAir30V":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPAir30Logic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_AIR30_ITEM);
                break;

            //环境空气复制
            case "copyEnvironment":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_AIR";

                strResult = com.CopyPointData(TableName, SerialType.T_ENV_P_AIR, "", SerialType.T_ENV_P_AIR_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //环境空气监测复制
            case "EnvironmentEditer":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new T_ENV_P_AIR().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_AIR_ITEM);
                break;

            //碳酸盐化速率复制
            case "SulFateSpeed":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_ALKALI";

                strResult = com.CopyPointData(TableName, SerialType.T_ENV_P_ALKALI, "", SerialType.T_ENV_P_ALKALI_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //碳酸盐化速率监测复制
            case "copySulFateSpeedEditer":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPAlkaliLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_ALKALI_ITEM);
                break;

            //入海河口复制
            case "copyEstuariesList":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_ESTUARIES";

                strResult = com.CopyPointData(TableName, SerialType.T_ENV_P_ESTUARIES, SerialType.T_ENV_P_ESTUARIES_V, SerialType.T_ENV_P_ESTUARIES_V_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //入海河口监测复制
            case "copyEstuariesVertEdit":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPointEstuariesLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_ALKALI_ITEM);
                break;

            //降尘复制
            case "copyDust":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_DUST";

                strResult = com.CopyPointData(TableName, SerialType.T_ENV_P_DUST, "", SerialType.T_ENV_P_DUST_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //降尘监测赋值
            case "CopyDust_Item":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPointDustItemLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_DUST_ITEM);
                break;

            //降水复制
            case "copyRain":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_RAIN";

                strResult = com.CopyPointData(TableName, SerialType.T_ENV_P_RAIN, "", SerialType.T_ENV_P_RAIN_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //降水监测复制
            case "CopyRain_Item":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPointRainLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_RAIN_ITEM);
                break;

            //近水海域复制
            case "copySealList":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_SEA";
                strResult  = com.CopyPointData(TableName, SerialType.T_ENV_P_SEA, "", SerialType.T_ENV_P_SEA_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //近水海域监测复制
            case "copySeaEditer":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPointSeaLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_SEA_ITEM);
                break;

            //海水浴场复制
            case "copySeabathList":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_SEABATH";
                strResult  = com.CopyPointData(TableName, SerialType.T_ENV_P_SEABATH, "", SerialType.T_ENV_P_SEABATH_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //海水浴场监测复制
            case "CopySeabathEditer":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new TEnvPSeabathLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_P_SEABATH_ITEM);
                break;

            //近岸直排复制
            case "copyOffshoreList":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_OFFSHORE";
                strResult  = com.CopyPointData(TableName, SerialType.T_ENV_POINT_OFFSHORE_TABLE, "", SerialType.T_ENV_POINT_OFFSHORE_TABLE_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //近岸直排监测复制
            case "CopyOffshoreEditer":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new i3.BusinessLogic.Channels.Env.Point.Offshore.TEnvPointOffshoreLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_POINT_OFFSHORE_TABLE_ITEM);
                break;

            //污染源常规监测项目复制
            case "copyPolluteItem":
                Year_From  = Request["Year_From"].ToString();
                Month_From = Request["Month_From"].ToString();
                Year_To    = Request["Year_To"].ToString();
                Month_To   = Request["Month_To"].ToString();
                TableName  = "T_ENV_P_POLLUTE";
                strResult  = com.CopyPointData(TableName, SerialType.T_ENV_POINT_POLLUTE, "", SerialType.T_ENV_POINT_POLLUTE_ITEM, Year_From, Month_From, Year_To, Month_To);
                break;

            //污染源常规监测项目复制
            case "copyPolluteItemEditer":
                strFPointID = Request["fromID"].ToString();
                strTPointID = Request["toID"].ToString();
                strResult   = new i3.BusinessLogic.Channels.Env.Point.PolluteRule.TEnvPPolluteItemLogic().PasteItem(strFPointID, strTPointID, SerialType.T_ENV_POINT_POLLUTE_ITEM);
                break;

            default:
                break;
            }
            Response.Write(strResult);
            Response.End();
        }
    }