public ServiceCategory(Cxt cxt, BaseItem item)
     : base(cxt, item)
 {
 }
 public Task(Cxt cxt, BaseItem item)
     : base(cxt, item)
 {
 }
        public void Save()
        {
            SqlTransaction t = null;

            try
            {
                t = SqlHelper.BeginTransaction(Config.ConnectionString);

                Item = ItemAttributes.GetTableFromItemAttributes(TableName, TableItemAttributes);

                Item.IsNew = cxt.IsNew;

                Item.Save(t);

                #region Set ID
                switch (TableName)
                {
                    case RsOneItemTable.Unknown:
                        break;
                    case RsOneItemTable.Attribute:
                        TableConfigItemAttributes.Set(AttributeE.AttributeID, Item.ID);
                        break;
                    case RsOneItemTable.AttributeLayout:
                        break;
                    case RsOneItemTable.AttributeType:
                        break;
                    case RsOneItemTable.Category:
                        TableConfigItemAttributes.Set(AttributeE.CategoryID, Item.ID);
                        break;
                    case RsOneItemTable.Item:
                        break;
                    case RsOneItemTable.ItemAttribute:
                        break;
                    case RsOneItemTable.Layout:
                        break;
                    case RsOneItemTable.Log:
                        break;
                    case RsOneItemTable.Role:
                        break;
                    case RsOneItemTable.RoleTask:
                        break;
                    case RsOneItemTable.Service:
                        TableConfigItemAttributes.Set(AttributeE.ServiceID, Item.ID);
                        break;
                    case RsOneItemTable.ServiceCategory:
                        break;
                    case RsOneItemTable.Status:
                        break;
                    case RsOneItemTable.ServiceTask:
                        break;
                    case RsOneItemTable.ServiceType:
                        break;
                    case RsOneItemTable.ServiceUser:
                        break;
                    case RsOneItemTable.Task:
                        break;
                    case RsOneItemTable.User:
                        break;
                    case RsOneItemTable.UserRole:
                        break;
                    case RsOneItemTable.AttributeTable:
                        break;
                    case RsOneItemTable.ZAdminAttribute:
                        break;
                    case RsOneItemTable.ZDummyAttribute:
                        break;
                    default:
                        break;
                }
                #endregion

                TableConfigItemAttributes.Save(t);

                SqlHelper.CommitTransaction(t);

                t = SqlHelper.BeginTransaction(Config.ConnectionString);

                SelectedCategories.Save(t);

                SqlHelper.CommitTransaction(t);
            }
            catch (Exception ex)
            {
                SqlHelper.RollbackTransaction(t);

                throw ex;
            }
        }
 public AttributeType(Cxt cxt, BaseItem item)
     : base(cxt, item)
 {
 }
 public User(Cxt cxt, BaseItem item)
     : base(cxt, item)
 {
 }
 public Layout(Cxt cxt, BaseItem item)
     : base(cxt, item)
 {
 }
 public AttributeLayout(Cxt cxt, BaseItem item)
     : base(cxt, item)
 {
 }
Beispiel #8
0
 public Kv(Cxt cxt, BaseItem item)
     : base(cxt, item)
 {
 }
Beispiel #9
0
 public Log(Cxt cxt, BaseItem item)
     : base(cxt, item)
 {
 }
 public Service(Cxt cxt, BaseItem item)
     : base(cxt, item)
 {
 }
Beispiel #11
0
 public Role(Cxt cxt, BaseItem item)
     : base(cxt, item)
 {
 }
 public ItemAttribute(Cxt cxt, BaseItem item)
     : base(cxt, item)
 {
 }
 public TournamentPrize(Cxt cxt, BaseItem item)
     : base(cxt, item)
 {
 }
        public string GetPieceXaml(int themeID, int pieceID)
        {
            DataRow row = GetThemeRow(themeID, pieceID);

            return(BaseItem.GetCol(row, "PieceXaml"));
        }
Beispiel #15
0
 public _Item(Cxt cxt, BaseItem item)
     : base(cxt, item)
 {
 }
        public BaseItem(Cxt cxt, BaseItem item)
        {
            Cxt = cxt;

            DataRow = item.DataRow;
        }