using System;
|
using System.Collections.Generic;
|
using System.Text;
|
using System.Data;
|
using SQLHelper;
|
|
namespace BLL
|
{
|
public class ClsGy_UserGroup_View : DBUtility.ClsGy_Base_View
|
{
|
public BLL.ClsGy_UserGroup_Model omodel = new BLL.ClsGy_UserGroup_Model();
|
SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
|
//
|
public ClsGy_UserGroup_View()
|
{
|
base.MvarReportTitle = "角色设置";
|
base.MvarItemKey = "System_UserGroup";
|
base.SQLName = "Select GroupID HGroupID,GroupID HGroupID,GroupName 角色名称 from System_UserGroup Order by GroupName ";
|
}
|
//
|
public void Dispose()
|
{
|
GC.SuppressFinalize(this);
|
}
|
//
|
|
//返回项目信息
|
public override bool GetInfoByID(Int64 sItemID)
|
{
|
DataSet DS;
|
try
|
{
|
DS = oCn.RunProcReturn("Select * from " + MvarItemKey + " Where GroupID='" + sItemID + "'", MvarItemKey, ref DBUtility.ClsPub.sExeReturnInfo);
|
if (DS.Tables[0].Rows.Count == 0)
|
return false;
|
else
|
{
|
return GetInfo(DS);
|
}
|
}
|
catch (Exception e)
|
{
|
throw (e);
|
}
|
}
|
|
//返回项目信息
|
public override bool GetInfo(DataSet DS)
|
{
|
try
|
{
|
omodel = new BLL.ClsGy_UserGroup_Model();
|
omodel.GroupID = Convert.ToInt64(DS.Tables[0].Rows[0]["GroupID"]);
|
omodel.GroupName = DS.Tables[0].Rows[0]["GroupName"].ToString().Trim();
|
return true;
|
|
}
|
catch (Exception e)
|
{
|
throw (e);
|
}
|
}
|
|
|
|
}
|
}
|