wangxiucn 2014年01月20日
请高手 帮忙把这段vb.net 代码转换成 c# 代码
''' <summary>
''' 获取或设置所有数据权限
''' </summary>
''' <param name="cUserName">用户名</param>
''' <param name="cDataPowerType">数据权限类型</param>
''' <value></value>
''' <returns></returns>
''' <remarks></remarks>
Public Property AllPower(ByVal cUserName As String, ByVal cDataPowerType As String, Optional ByVal cmd As System.Data.Common.DbCommand = Nothing) As Boolean
Get
Dim cClass As String = "数据权限"
Dim cVarName As String = cUserName & "_" & cDataPowerType
Dim Value As String = DAL.Var.Var.Create.getValue(cClass, cVarName, cmd)
If tostr(Value) = "" Or tostr(Value) = "1" Then
Return True
ElseIf tostr(Value) = "0" Then
Return False
End If
End Get
Set(ByVal value As Boolean)
Dim cClass As String = "数据权限"
Dim cVarName As String = cUserName & "_" & cDataPowerType
Dim cValue As String = IIf(value, "1", "0")
DAL.Var.Var.Create.Save(cClass, cVarName, cValue, cmd)
End Set
End Property
End Class
...全文
106 点赞 收藏 7
写回复
7 条回复

还没有回复,快来抢沙发~

发动态
发帖子
C#
创建于2007-09-28

8.4w+

社区成员

64.0w+

社区内容

.NET技术 C#
社区公告
暂无公告