public static HB_ShiCZTItem[] List() { HB_ShiCZTItem item; HB_ShiCZTItem[] itemArray; item = new HB_ShiCZTItem(); itemArray = (HB_ShiCZTItem[])CommonClassDB.Instance(item).load(item, "OrderId"); Label_0020: return(itemArray); }
public static HB_ShiCZTItem[] List(string __strFilter, string __strSort, int __nPageIndex, int __nPageSize) { HB_ShiCZTItem item; HB_ShiCZTItem[] itemArray; HB_ShiCZTItem[] itemArray2; item = new HB_ShiCZTItem(); itemArray = (HB_ShiCZTItem[])CommonClassDB.Instance(item).load(item, __nPageIndex, __nPageSize, __strFilter, __strSort); itemArray2 = itemArray; Label_0021: return(itemArray2); }
public static void DelTrue(int __nID) { HB_ShiCZTItem item; bool flag; if (((__nID < 1) == 0) == null) { goto Label_0028; } item = new HB_ShiCZTItem(); item.Id = __nID; CommonClassDB.Instance(item).delte(item); Label_0028: return; }
public static HB_ShiCZTItem Get(int __nID) { HB_ShiCZTItem item; HB_ShiCZTItem item2; bool flag; if (((__nID < 1) == 0) != null) { goto Label_0010; } item2 = null; goto Label_0037; Label_0010: item = new HB_ShiCZTItem(); item.Id = __nID; item2 = (HB_ShiCZTItem)CommonClassDB.Instance(item).get(item, item.Id); Label_0037: return(item2); }
public static HB_ShiCZTItem GetByName(string __strName) { HB_ShiCZTItem item; HB_ShiCZTItem[] itemArray; HB_ShiCZTItem item2; bool flag; if ((string.IsNullOrEmpty(__strName) == 0) != null) { goto Label_0012; } item2 = null; goto Label_0074; Label_0012: item = new HB_ShiCZTItem(); item.IsDelete = 2; item.Name = __strName; itemArray = (HB_ShiCZTItem[])CommonClassDB.Instance(item).load(item); if (((itemArray == null) ? 0 : ((((int)itemArray.Length) < 1) == 0)) != null) { goto Label_0050; } item2 = null; goto Label_0074; Label_0050: if (((((int)itemArray.Length) > 1) == 0) != null) { goto Label_006E; } throw new Exception(string.Format("Name={0} exist multi ShiCZTItem", __strName)); Label_006E: item2 = itemArray[0]; Label_0074: return(item2); }
public static HB_ShiCZTItem GetByUserId(int __nUserId) { HB_ShiCZTItem item; HB_ShiCZTItem[] itemArray; HB_ShiCZTItem item2; bool flag; if (((__nUserId == 0) == 0) != null) { goto Label_0010; } item2 = null; goto Label_0077; Label_0010: item = new HB_ShiCZTItem(); item.IsDelete = 2; item.UserId = __nUserId; itemArray = (HB_ShiCZTItem[])CommonClassDB.Instance(item).load(item); if (((itemArray == null) ? 0 : ((((int)itemArray.Length) < 1) == 0)) != null) { goto Label_004E; } item2 = null; goto Label_0077; Label_004E: if (((((int)itemArray.Length) > 1) == 0) != null) { goto Label_0071; } throw new Exception(string.Format("UserId={0} exist multi ShiCZTItem", (int)__nUserId)); Label_0071: item2 = itemArray[0]; Label_0077: return(item2); }