Exemplo n.º 1
0
        public static DEVICE_STATUS Get(int primaryKeyId, string tableName)
        {
            Hashtable inparam = new Hashtable();

            inparam.Add("GPSIndex", primaryKeyId);
            inparam.Add("tableName", tableName);
            return(BaseDA.QueryForObject <DEVICE_STATUS>("SelectDEVICE_STATUSById", inparam));
        }
Exemplo n.º 2
0
        public static int Delete(int primaryKeyId, string tableName)
        {
            Hashtable inparam = new Hashtable();

            inparam.Add("GPSIndex", primaryKeyId);
            inparam.Add("tableName", tableName);
            return(BaseDA.Delete2("DeleteDEVICE_STATUSById", inparam));
        }
Exemplo n.º 3
0
        public static IList <DEVICE_STATUS> QueryForList(string tableName, DEVICE_STATUS parameterObject = null)
        {
            Hashtable inparam = new Hashtable();

            if (parameterObject != null)
            {
                if (parameterObject.aDatetime != null)
                {
                    inparam.Add("aDatetime", parameterObject.aDatetime);
                }
            }
            inparam.Add("tableName", tableName);
            return(BaseDA.QueryForList <DEVICE_STATUS>("SelectDEVICE_STATUSQuery", inparam));
        }
Exemplo n.º 4
0
        public static int Update(DEVICE_STATUS_CLEAN parameterObject, string tableName)
        {
            Hashtable inparam = new Hashtable();

            if (parameterObject != null)
            {
                if (parameterObject.aDatetime != null)
                {
                    inparam.Add("aDatetime", parameterObject.aDatetime);
                }
                if (parameterObject.GPSIndex != null)
                {
                    inparam.Add("GPSIndex", parameterObject.GPSIndex);
                }
                if (parameterObject.Height != null)
                {
                    inparam.Add("Height", parameterObject.Height);
                }
                if (parameterObject.Hspeed != null)
                {
                    inparam.Add("Hspeed", parameterObject.Hspeed);
                }
                if (parameterObject.Style != null)
                {
                    inparam.Add("Style", parameterObject.Style);
                }
                if (parameterObject.X != null)
                {
                    inparam.Add("X", parameterObject.X);
                }
                if (parameterObject.XSpeed != null)
                {
                    inparam.Add("XSpeed", parameterObject.XSpeed);
                }
                if (parameterObject.Y != null)
                {
                    inparam.Add("Y", parameterObject.Y);
                }
                if (parameterObject.YSpeed != null)
                {
                    inparam.Add("YSpeed", parameterObject.YSpeed);
                }
            }
            inparam.Add("tableName", tableName);

            return(BaseDA.Update2("UpdateDEVICE_STATUS_CLEAN", inparam));
        }
Exemplo n.º 5
0
        public static IList <DEVICE_STATUS_CLEAN> QueryForList(string tableName, DEVICE_STATUS_CLEAN parameterObject = null)
        {
            Hashtable inparam = new Hashtable();

            if (parameterObject != null)
            {
                if (parameterObject.aDatetime.HasValue)
                {
                    inparam.Add("aDatetime", parameterObject.aDatetime.Value);
                }
                if (parameterObject.Style.HasValue)
                {
                    inparam.Add("Style", parameterObject.Style.Value);
                }
            }
            inparam.Add("tableName", tableName);
            return(BaseDA.QueryForList <DEVICE_STATUS_CLEAN>("SelectDEVICE_STATUS_CLEANQuery", inparam));
        }
Exemplo n.º 6
0
        public static object Insert(DEVICE_STATUS parameterObject, string tableName)
        {
            Hashtable inparam = new Hashtable();

            if (parameterObject != null)
            {
                if (parameterObject.aDatetime != null)
                {
                    inparam.Add("aDatetime", parameterObject.aDatetime);
                }
                if (parameterObject.dltaH != null)
                {
                    inparam.Add("dltaH", parameterObject.dltaH);
                }
                if (parameterObject.dltaX != null)
                {
                    inparam.Add("dltaX", parameterObject.dltaX);
                }
                if (parameterObject.dltaY != null)
                {
                    inparam.Add("dltaY", parameterObject.dltaY);
                }
                if (parameterObject.GPSIndex != null)
                {
                    inparam.Add("GPSIndex", parameterObject.GPSIndex);
                }
                if (parameterObject.Height != null)
                {
                    inparam.Add("Height", parameterObject.Height);
                }
                if (parameterObject.X != null)
                {
                    inparam.Add("X", parameterObject.X);
                }
                if (parameterObject.Y != null)
                {
                    inparam.Add("Y", parameterObject.Y);
                }
            }
            inparam.Add("tableName", tableName);

            return(BaseDA.Insert2("InsertDEVICE_STATUS", inparam));
        }
Exemplo n.º 7
0
 public static int GetNewId()
 {
     return(BaseDA.QueryForObject <int>("SelectUSERMaxID", null));
 }
Exemplo n.º 8
0
 public static USER Get(int primaryKeyId)
 {
     return(BaseDA.Get <USER>("SelectUSERById", primaryKeyId));
 }
Exemplo n.º 9
0
 public static int Update(USER t)
 {
     return(BaseDA.Update <USER>("UpdateUSER", t));
 }
Exemplo n.º 10
0
 public static IList <RIGHT> QueryForList(object parameterObject = null)
 {
     return(BaseDA.QueryForList <RIGHT>("SelectAllRIGHT", parameterObject));
 }
Exemplo n.º 11
0
 public static int Update(RIGHT t)
 {
     return(BaseDA.Update <RIGHT>("UpdateRIGHT", t));
 }
Exemplo n.º 12
0
 public static IList <T_STATION> QueryForList(object parameterObject = null)
 {
     return(BaseDA.QueryForList <T_STATION>("SelectAllT_STATION", parameterObject));
 }
Exemplo n.º 13
0
 public static SB_STATUS Get(int primaryKeyId)
 {
     return(BaseDA.Get <SB_STATUS>("SelectSB_STATUSById", primaryKeyId));
 }
Exemplo n.º 14
0
 public static int Update(SB_STATUS t)
 {
     return(BaseDA.Update <SB_STATUS>("UpdateSB_STATUS", t));
 }
Exemplo n.º 15
0
 public static object Insert(sat t)
 {
     return(BaseDA.Insert <sat>("Insertsat", t));
 }
Exemplo n.º 16
0
 public static int Delete(int primaryKeyId)
 {
     return(BaseDA.Delete("DeleteT_STATIONById", primaryKeyId));
 }
Exemplo n.º 17
0
 public static T_STATION Get(int primaryKeyId)
 {
     return(BaseDA.Get <T_STATION>("SelectT_STATIONById", primaryKeyId));
 }
Exemplo n.º 18
0
 public static IList <SB_STATUS> QueryForList(object parameterObject = null)
 {
     return(BaseDA.QueryForList <SB_STATUS>("SelectAllSB_STATUS", parameterObject));
 }
Exemplo n.º 19
0
 public static object Insert(T_STATION t)
 {
     return(BaseDA.Insert <T_STATION>("InsertT_STATION", t));
 }
Exemplo n.º 20
0
 public static object Insert(SB_STATUS t)
 {
     return(BaseDA.Insert <SB_STATUS>("InsertSB_STATUS", t));
 }
Exemplo n.º 21
0
 public static RIGHT Get(int primaryKeyId)
 {
     return(BaseDA.Get <RIGHT>("SelectRIGHTById", primaryKeyId));
 }
Exemplo n.º 22
0
 public static int Update(STATION_ACCESS t)
 {
     return(BaseDA.Update <STATION_ACCESS>("UpdateSTATION_ACCESS", t));
 }
Exemplo n.º 23
0
 public static object Insert(RIGHT t)
 {
     return(BaseDA.Insert <RIGHT>("InsertRIGHT", t));
 }
Exemplo n.º 24
0
 public static STATION_ACCESS Get(int primaryKeyId)
 {
     return(BaseDA.Get <STATION_ACCESS>("SelectSTATION_ACCESSById", primaryKeyId));
 }
Exemplo n.º 25
0
 public static int Delete(int primaryKeyId)
 {
     return(BaseDA.Delete("DeleteUSERById", primaryKeyId));
 }
Exemplo n.º 26
0
 public static IList <STATION_ACCESS> QueryForList(object parameterObject = null)
 {
     return(BaseDA.QueryForList <STATION_ACCESS>("SelectAllSTATION_ACCESS", parameterObject));
 }
Exemplo n.º 27
0
 public static IList <USER> QueryForList(object parameterObject = null)
 {
     return(BaseDA.QueryForList <USER>("SelectAllUSER", parameterObject));
 }
Exemplo n.º 28
0
 public static object Insert(STATION_ACCESS t)
 {
     return(BaseDA.Insert <STATION_ACCESS>("InsertSTATION_ACCESS", t));
 }
Exemplo n.º 29
0
 public static object Insert(USER t)
 {
     return(BaseDA.Insert <USER>("InsertUSER", t));
 }
Exemplo n.º 30
0
 public static int Update(T_STATION t)
 {
     return(BaseDA.Update <T_STATION>("UpdateT_STATION", t));
 }