Example #1
0
 private List <ColumnFormatInfo> PhotoIdFormat(FrameworkUser_View entity, object val)
 {
     return(new List <ColumnFormatInfo>
     {
         ColumnFormatInfo.MakeDownloadButton(ButtonTypesEnum.Button, entity.PhotoId),
         ColumnFormatInfo.MakeViewButton(ButtonTypesEnum.Button, entity.PhotoId, 640, 480),
     });
 }
Example #2
0
 private List <ColumnFormatInfo> FileIdFormat(School_View entity, object val)
 {
     return(new List <ColumnFormatInfo>
     {
         ColumnFormatInfo.MakeDownloadButton(ButtonTypesEnum.Button, entity.FileId),
         ColumnFormatInfo.MakeViewButton(ButtonTypesEnum.Button, entity.FileId, 640, 480),
     });
 }
Example #3
0
 private List <ColumnFormatInfo> PictureIdFormat(WxVenue_View entity, object val)
 {
     return(new List <ColumnFormatInfo>
     {
         ColumnFormatInfo.MakeDownloadButton(ButtonTypesEnum.Button, entity.PictureId),
         ColumnFormatInfo.MakeViewButton(ButtonTypesEnum.Button, entity.PictureId, 640, 480),
     });
 }
Example #4
0
 private List <ColumnFormatInfo> PhotoIdFormat(Admin_View entity, object val)
 {
     return(new List <ColumnFormatInfo>
     {
         //ColumnFormatInfo.MakeDownloadButton(ButtonTypesEnum.Button,entity.PhotoId),
         ColumnFormatInfo.MakeViewButton(ButtonTypesEnum.Button, entity.PhotoId, 640, 480)
     });
 }
Example #5
0
 private List <ColumnFormatInfo> CommodityPicIdFormat(VOS_Task_View entity, object val)
 {
     return(new List <ColumnFormatInfo>
     {
         //ColumnFormatInfo.MakeDownloadButton(ButtonTypesEnum.Button,entity.CommodityPicId),
         ColumnFormatInfo.MakeViewButton(ButtonTypesEnum.Button, entity.CommodityPicId, 640, 480),
     });
 }
Example #6
0
 private List <ColumnFormatInfo> WeChatRealNamePicIdFormat(VOS_PEmployee_View entity, object val)
 {
     return(new List <ColumnFormatInfo>
     {
         ColumnFormatInfo.MakeDownloadButton(ButtonTypesEnum.Button, entity.WeChatRealNamePicId),
         ColumnFormatInfo.MakeViewButton(ButtonTypesEnum.Button, entity.WeChatRealNamePicId, 640, 480),
     });
 }
Example #7
0
 private List <ColumnFormatInfo> ImageIDFormat(pop_View entity, object val)
 {
     return(new List <ColumnFormatInfo>
     {
         //ColumnFormatInfo.MakeHtml("<image src="+entity.Image.Path+" />")
         //ColumnFormatInfo.MakeDownloadButton(ButtonTypesEnum.Button,entity.ImageID),
         ColumnFormatInfo.MakeViewButton(ButtonTypesEnum.Button, entity.ImageID),
     });
 }
Example #8
0
 public List <ColumnFormatInfo> GetPhoto(FrameworkUser_ListView item, object val)
 {
     if (item.PhotoID != null)
     {
         List <ColumnFormatInfo> rv = new List <ColumnFormatInfo>();
         rv.Add(ColumnFormatInfo.MakeViewButton(ButtonTypesEnum.Link, item.PhotoID.Value, 600, 600));
         rv.Add(ColumnFormatInfo.MakeDownloadButton(ButtonTypesEnum.Link, item.PhotoID.Value));
         return(rv);
     }
     else
     {
         return(null);
     }
 }