task

[ /App_Code/MemberGroup.cs ]

[what]

  1. ] MemberGroup.cs - documenting properties, constructors, methods and ... for this application component ] a container class for Members 
  2. ] ARGS = none, id, 

[why]

[where] 

  1. [USING]
    1. x] System - console & ... 
    2. x] System.Collections - for ArrayList
    3. x] System.Collections.Generic - for ieNumerable, used by ...
    4. x] System Dynamic - for Dynamic types, used by ..
    5. x] System.Web - for httpContext, used by ... to access Session var ( get current_db)
    6. x] WebMatrix.Data - for Database methods, used by ... ] all
    7. x] WebMatrix.Data.StronglyTyped - for data library ST that converts dynamics to ST objects
  2. [PROPERTIES]
    1. ] public int id_group -
    2. ] public string name_group - 
    3. ] public string description_group -
    4. ] public int parent_id -
    5. ] public static Database sospep {
    6. get 
    7. }- 
    8. ] private const string qryGetMemberGroups - qry to return all membergroups
    9. ] private const string qryGetMemberGroupsInMember - qry to return all membergroups in a given Member
    10. ] private const string qryGetMemberGroup - qry to return a single membergroup by a given id
    11. ] private const string qryAddMemberGroup - qry that inserts a new membergroups record
    12. ] private const string qryDeleteMemberGroup - qry that deletes a single membergroup record
    13. ] private const string qryUpdateMemberGroup - qry that updates a single membergroup record 
  3. [PROPERTIES.objects]
    1. ] public Community community -
    2. ] public Member member -
  4. [CONSTRUCTORS]
    1. ] MemberGroup() - default, empty 
    2. ] MemberGroup(int id) - takes id of existing MemberGroup, instantiates this.MemberGroup with the properties of an existing MemberGroup
    3. ] MemberGroup(string name, string description, int parent_id) - takes name and description args of MemberGroup to create a new membergroup
      1. * OR] MemberGroup(string name) - instantiates a new instance of MemberGroup object - based on lookup of existing MemberGroup by name
    4. ] MemberGroup(int id, string src_db,) - instantiates a new instance of MemberGroup object
  5. [METHODS-]
    1. ] public static IEnumerable<MemberGroup>GetMemberGroups()
    2. ] public static IEnumerable<MemberGroup>GetMemberGroupsInMember(int id) 
    3. ] public static IEnumerable<MemberGroup>GetMemberGroupsInMember(string src_db, int id_member) 
    4. ] public void add() 
    5. ] public static void add(string name, string description, int parent_id) 
    6. ] public void delete()
    7. ] public static void delete(int id)
    8. ] public void edit() 
    9. ] public static void edit(string name, string description, int parent_id, int id )
    10. ] public static int getMaxId() 
    11. ] public static void import(string src_db,string dest_db,int srcMemberGroupId, int destMemberId) 
    12. ]  public static int GetDefaultMemberGroupId() 

[when]

  1. ]

[example]

  1. ]

[how-to]

  1. ]

[reference]

  1. ] 2012-mm-dd - MemberGroup.cs - NEW FILE REF # 
  2. ] 2012-11-19 - MemberGroup.cs - PRB import task fail 

[related]


developer implementation

[-process]

  1.  [00:00] NEW tak
    1. +++ = properties
    2. ] count - non-persistent -
    3. ] lastIn

[-notes]

  1. [METHODS-STATIC]
    1.  ListAll() 
    2. ] ById() 
  2. [METHODS-OTHER]
    1. ] setItemsStatus(status, ids) - sets all items to the given status
    2. ] setItemsName(name, ids) - sets all user selected items "names" to the given name
    3. ] setItemsDescription(description, ids) - sets all user selected items "descriptions" to the given description
    4. ] setItemsCOGS(cogs, ids) - sets all user selected items "cogs" to the given value
    5. ] setItemsQuantity(quantity, ids) - sets all user selected items "quantity" to the given value
    6. ] setItemsUnit(unit, ids) - sets all user selected items "unit" to the give value

status

[-previous-]

  1. [2017-05-04] NEW task
    1. x] # 7297 - CREATE-doc - MemberGroup.cs (this)
  2. [2017-05-04] NEW task
    1. x] FIX-PRB-7140 - x] addED explicit  db connection close, db close and db Dispose() statement to methods

[-current-]

  1.  ]

[-next-]

  1. ]

 

 

Details Photos Edit more

Details

ID: 7297

NAME: CLASS-MemberGroup

DESCRIPTION: CLASS - MemberGroup - documenting properties, constructors, methods and ... for this application component (.cs based on ..., doc based on TaskGroup)

START DATE TIME: 2017-05-04 13:04:14

EST DURATION: 01:00:00

END DATE TIME: 2017-05-04 14:04:14

STATUS: Completed

PRIORITY: -5

OWNER ID: 75

Content Photos Edit more

photos

photos for this task

actions

Agenda Email task SMS task Priorities