public BaseReportLayer NewLayer(int pid)
        {
            BaseReportLayer layer = NewObject <BaseReportLayer>();

            layer.Name     = "新建分类";
            layer.PLayerId = pid;
            layer.save();
            return(layer);
        }
 public BaseReportLayer AlterLayer(BaseReportLayer layer)
 {
     layer.save();
     return(layer);
 }