Beispiel #1
0
        public void Insert(string RoleName,int SubSysId,bool? IsDefault,int? CreatedBy,DateTime? CreatedOn,int? ModifiedBy,DateTime? ModifiedOn)
        {
            SysRoleDefine item = new SysRoleDefine();

            item.RoleName = RoleName;

            item.SubSysId = SubSysId;

            item.IsDefault = IsDefault;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;

            item.Save(UserName);
        }
Beispiel #2
0
        public void Update(int Id,string RoleName,int SubSysId,bool? IsDefault,int? CreatedBy,DateTime? CreatedOn,int? ModifiedBy,DateTime? ModifiedOn)
        {
            SysRoleDefine item = new SysRoleDefine();
            item.MarkOld();
            item.IsLoaded = true;

            item.Id = Id;

            item.RoleName = RoleName;

            item.SubSysId = SubSysId;

            item.IsDefault = IsDefault;

            item.CreatedBy = CreatedBy;

            item.CreatedOn = CreatedOn;

            item.ModifiedBy = ModifiedBy;

            item.ModifiedOn = ModifiedOn;

            item.Save(UserName);
        }