Esempio n. 1
0
 private List <ColumnFormatInfo> EnterpriseInfoFormat(MyTask_View entity, object val)
 {
     return(new List <ColumnFormatInfo>
     {
         ColumnFormatInfo.MakeDialogButton(ButtonTypesEnum.Button, $"EnterpriseBasicInfo/LimitedEnterpriseInfo/{entity.EnterpriseId}", entity.EnterpriseName, width: 800, height: 400)
     });
 }
Esempio n. 2
0
        private List <ColumnFormatInfo> ProjectNameFormat(ProjectBasicInfo_View entity, object val)
        {
            var url = $"SmallEntEvaluationBase/ProjectDetail/{entity.ID}";

            return(new List <ColumnFormatInfo>
            {
                ColumnFormatInfo.MakeDialogButton(ButtonTypesEnum.Button, url, entity.ProjectName, width: 1920, height: 900, maxed: true)
            });
        }
Esempio n. 3
0
        public List <ColumnFormatInfo> GetOperation(DataPrivilege_ListView item)
        {
            string editurl = "";
            string delurl  = "";

            if (Searcher.DpType == DpTypeEnum.User)
            {
                editurl = "/_Admin/DataPrivilege/Edit?ModelName=" + item.TableName + "&Type=User&Id=" + item.TargetId;
                delurl  = "/_Admin/DataPrivilege/Delete?ModelName=" + item.TableName + "&Type=User&Id=" + item.TargetId;
            }
            else
            {
                editurl = "/_Admin/DataPrivilege/Edit?ModelName=" + item.TableName + "&Type=UserGroup&Id=" + item.TargetId;
                delurl  = "/_Admin/DataPrivilege/Delete?ModelName=" + item.TableName + "&Type=UserGroup&Id=" + item.TargetId;
            }
            return(new List <ColumnFormatInfo>
            {
                ColumnFormatInfo.MakeDialogButton(ButtonTypesEnum.Button, editurl, "修改", 800, null, "修改"),
                ColumnFormatInfo.MakeDialogButton(ButtonTypesEnum.Button, delurl, "删除", null, null, showDialog: false)
            });
        }