Пример #1
0
 public AllowedQueue(IDataReader reader)
     : this(DbUtil.GetInt(reader, "allowed_id")
            , DbUtil.GetInt(reader, "user_id")
            , DbUtil.GetInt(reader, "queue_id")
            )
 { /* no code */
 }
Пример #2
0
 public WorkItemAccess(IDataReader reader)
 {
     Id         = DbUtil.GetInt(reader, "access_id");
     WorkItemId = DbUtil.GetInt(reader, "item_id");
     IsAllowed  = DbUtil.GetBool(reader, "is_allowed");
     UserId     = DbUtil.GetInt(reader, "user_id");
 }
Пример #3
0
 public User(IDataReader reader)
     : this(DbUtil.GetInt(reader, "user_id")
            , DbUtil.GetString(reader, "login")
            , DbUtil.GetInt(reader, "login_limit")
            )
 { /* no code */
 }
Пример #4
0
 public WorkItemData(IDataReader reader)
     : this(DbUtil.GetInt(reader, "data_id")
            , DbUtil.GetInt(reader, "item_id")
            , DbUtil.GetString(reader, "variable_name")
            , DbUtil.GetString(reader, "variable_value")
            )
 { /* no code */
 }
Пример #5
0
 public Session(IDataReader reader)
     : this(DbUtil.GetInt(reader, "session_id")
            , DbUtil.GetInt(reader, "user_id")
            , DbUtil.GetString(reader, "host_name")
            , DbUtil.GetDateTime(reader, "start_time")
            )
 { /* no code */
 }
Пример #6
0
 public Rule(IDataReader reader)
     : this(DbUtil.GetInt(reader, "rule_id")
            , DbUtil.GetInt(reader, "step_id")
            , DbUtil.GetString(reader, "variable_name")
            , (Rule.Compare)DbUtil.GetInt(reader, "comparison")
            , DbUtil.GetString(reader, "variable_value")
            , DbUtil.GetInt(reader, "rule_order")
            , DbUtil.GetInt(reader, "next_step_id")
            )
 { /* no code */
 }
Пример #7
0
 public WorkItem(IDataReader reader)
     : this(DbUtil.GetInt(reader, "item_id")
            , DbUtil.GetInt(reader, "step_id")
            , DbUtil.GetString(reader, "name")
            , (WorkItemState)DbUtil.GetInt(reader, "state")
            , DbUtil.GetInt(reader, "priority")
            , DbUtil.GetDateTime(reader, "created")
            , DbUtil.GetDateTime(reader, "entered")
            , DbUtil.GetInt(reader, "session_id")
            )
 { /* no code */
 }
Пример #8
0
 public Step(IDataReader reader)
     : this(DbUtil.GetInt(reader, "step_id")
            , DbUtil.GetString(reader, "name")
            , DbUtil.GetInt(reader, "map_id")
            , DbUtil.GetInt(reader, "queue_id")
            , NO_NEXT_STEP
            , (Step.StepType)(DbUtil.GetInt(reader, "type"))
            )
 {
     if (!DbUtil.IsNull(reader, "next_step_id"))
     {
         this.NextStepId = DbUtil.GetInt(reader, "next_step_id");
     }
 }
Пример #9
0
 public Queue(IDataReader reader)
 {
     Id       = DbUtil.GetInt(reader, "queue_id");
     Name     = DbUtil.GetString(reader, "name");
     IsNormal = !DbUtil.GetBool(reader, "is_fail");
 }
Пример #10
0
 public Map(IDataReader reader)
 {
     Id      = DbUtil.GetInt(reader, "map_id");
     Name    = DbUtil.GetString(reader, "name");
     Version = DbUtil.GetInt(reader, "version");
 }