using System;
using System.Data;
using System.Xml;
using System.Collections.Generic;
using System.Collections;
using System.Text;
using System.Web;
using IlgharCMS;
using IlgharCMS.ShopModule;
public partial class CIlgharCMS : IlgharCMS.Lib.AdminPageBase
{
public CIlgharCMS()
: base("IlgharCMS.ShopModule/goods/add.dwt.aspx")
{}
protected XmlDocument _xmlTemplate;
protected override void OnInit(EventArgs e)
{
base.OnInit(e);
_xmlTemplate = XmlData.GetXmlDocument();
if (!String.IsNullOrEmpty(Request.QueryString["GetPageCount"]))
                            {
                                Response.Write(1);
                                Response.End();
                            }
                        
}

                                protected DataRow MemberChannel
                                {
                                    get
                                    {
                                        if (_MemberChannel == null)
                                            _MemberChannel = Manager.GetExtraInstance(Channel, "Member");

                                        return _MemberChannel;
                                    }
                                }
                                private DataRow _MemberChannel;

                            
                            protected System.Collections.Generic.Dictionary<System.String,System.String> Config
                            {
                                get
                                {
                                    object id = null;
                                    
                                    if (_ConfigID != null && _ConfigID == id)
                                        return _Config;

                                    int instanceID;
instanceID = InstanceID;

                                    using (IlgharCMS.ShopModule.IInstanceConfig bll = (IlgharCMS.ShopModule.IInstanceConfig)Manager.CreateObject("InstanceConfig", instanceID, ContentLang, false))
                                    {
                                        _ConfigID = id;
                                        _Config = bll.GetBasicSettings();
                                    }

                                    return _Config;
                                }
                            }
                            private System.Collections.Generic.Dictionary<System.String,System.String> _Config;
                            private object _ConfigID;
                            
                        protected int t6504IDRecordCount
                        {
                            get
                            {
                                int instanceID;
instanceID = InstanceID;
                                using (IlgharCMS.ShopModule.IGoodsCategory bll = (IlgharCMS.ShopModule.IGoodsCategory)Manager.CreateObject("GoodsCategory", instanceID, ContentLang, false))
                                {
                                    string condition = null;


                                    return bll.GetRecordCount(condition);
                                }
                            }
                        }
                        
                            protected int t6504IDCounter = 0;
                            protected object t6504IDRecord = null;
                        
                            private DataTable t6504ID;
                            private DataTable t6504ID_
                            {
                                get
                                {
                                    string condition = null;


                                    string sort = null;

                                    int instanceID;
instanceID = InstanceID;

                                    using (IlgharCMS.ShopModule.IGoodsCategory bll = (IlgharCMS.ShopModule.IGoodsCategory)Manager.CreateObject("GoodsCategory", instanceID, ContentLang, false))
                                    {
                                        t6504ID = bll.List(-1, -1, condition, sort);
                                    }

                                    return t6504ID;
                                }
                            }
                        
                            protected string t6504
                            {
                                get
                                {
                                    XmlNode node = _xmlTemplate.SelectSingleNode("//t6504");
                                    Dictionary<string, object> replacementPair = new Dictionary<string, object>();
                                    replacementPair["{#Control#}"] = null;replacementPair["{#ChildRecords#}"] = null;replacementPair["{#ID#}"] = IlgharCMS.ShopModule.Alias.GoodsCategory.ID;replacementPair["{#Name#}"] = IlgharCMS.ShopModule.Alias.GoodsCategory.Name;replacementPair["{#PageGenerate#}"] = IlgharCMS.ShopModule.Alias.GoodsCategory.PageGenerate;replacementPair["{#PageTemplate#}"] = IlgharCMS.ShopModule.Alias.GoodsCategory.PageTemplate;replacementPair["{#PageID#}"] = IlgharCMS.ShopModule.Alias.GoodsCategory.PageID;replacementPair["{#PageExtension#}"] = IlgharCMS.ShopModule.Alias.GoodsCategory.PageExtension;
                                    StringBuilder all = Manager.BuildTree(node, t6504ID_, replacementPair, IlgharCMS.ShopModule.Alias.GoodsCategory.ParentID, IlgharCMS.ShopModule.Alias.GoodsCategory.ID, ref t6504IDRecord, ref t6504IDCounter);
                                    
                                    
                                    
                                    return all.ToString();
                                }
                            }
                          
                        protected int t7462IDRecordCount
                        {
                            get
                            {
                                int instanceID;
instanceID = InstanceID;
                                using (IlgharCMS.ShopModule.IType bll = (IlgharCMS.ShopModule.IType)Manager.CreateObject("Type", instanceID, ContentLang, false))
                                {
                                    string condition = null;


                                    return bll.GetRecordCount(condition);
                                }
                            }
                        }
                        
                            protected int t7462IDCounter = 0;
                            protected object t7462IDRecord = null;
                            private DataTable t7462IDData;
                            protected DataTable t7462ID
                            {
                                get
                                {
                                    if (t7462IDData != null)
                                        return t7462IDData;

                                    t7462IDData = t7462ID_;
                                    return t7462IDData;
                                }
                            }
                        
                                private DataTable t7462ID_
                                {
                                    get
                                    {
                                        string condition = null;


                                        string sort = null;

                                        int instanceID;
instanceID = InstanceID;

                                        using (IlgharCMS.ShopModule.IType bll = (IlgharCMS.ShopModule.IType)Manager.CreateObject("Type", instanceID, ContentLang, false))
                                        {
                                            t7462IDData = bll.List(-1, -1, condition, sort);
                                        }

                                        return t7462IDData;
                                    }
                                }
                            
                            protected string t7462
                            {
                                get
                                {
                                    XmlNode node = _xmlTemplate.SelectSingleNode("//t7462");
                                    Dictionary<string, object> replacementPair = new Dictionary<string, object>();
                                    replacementPair["{#ID#}"] = IlgharCMS.ShopModule.Alias.Type.ID;replacementPair["{#Kind#}"] = IlgharCMS.ShopModule.Alias.Type.Kind;replacementPair["{#Name#}"] = IlgharCMS.ShopModule.Alias.Type.Name;
                                    StringBuilder all = Manager.Build(node, t7462ID_, replacementPair, ref t7462IDRecord, ref t7462IDCounter);
                                    
                                    
                                    
                                    return all.ToString();
                                }
                            }
                          
                        protected int t8293IDRecordCount
                        {
                            get
                            {
                                int instanceID;
instanceID = InstanceID;
                                using (IlgharCMS.ShopModule.IBrand bll = (IlgharCMS.ShopModule.IBrand)Manager.CreateObject("Brand", instanceID, ContentLang, false))
                                {
                                    string condition = null;


                                    return bll.GetRecordCount(condition);
                                }
                            }
                        }
                        
                            protected int t8293IDCounter = 0;
                            protected object t8293IDRecord = null;
                            private DataTable t8293IDData;
                            protected DataTable t8293ID
                            {
                                get
                                {
                                    if (t8293IDData != null)
                                        return t8293IDData;

                                    t8293IDData = t8293ID_;
                                    return t8293IDData;
                                }
                            }
                        
                                private DataTable t8293ID_
                                {
                                    get
                                    {
                                        string condition = null;


                                        string sort = null;

                                        int instanceID;
instanceID = InstanceID;

                                        using (IlgharCMS.ShopModule.IBrand bll = (IlgharCMS.ShopModule.IBrand)Manager.CreateObject("Brand", instanceID, ContentLang, false))
                                        {
                                            t8293IDData = bll.List(-1, -1, condition, sort);
                                        }

                                        return t8293IDData;
                                    }
                                }
                            
                            protected string t8293
                            {
                                get
                                {
                                    XmlNode node = _xmlTemplate.SelectSingleNode("//t8293");
                                    Dictionary<string, object> replacementPair = new Dictionary<string, object>();
                                    replacementPair["{#ID#}"] = IlgharCMS.ShopModule.Alias.Brand.ID;replacementPair["{#InnerID#}"] = IlgharCMS.ShopModule.Alias.Brand.InnerID;replacementPair["{#Name#}"] = IlgharCMS.ShopModule.Alias.Brand.Name;
                                    StringBuilder all = Manager.Build(node, t8293ID_, replacementPair, ref t8293IDRecord, ref t8293IDCounter);
                                    
                                    
                                    
                                    return all.ToString();
                                }
                            }
                          
                        protected int t8684IDRecordCount
                        {
                            get
                            {
                                int instanceID;
instanceID = InstanceID;
                                using (IlgharCMS.ShopModule.IUnit bll = (IlgharCMS.ShopModule.IUnit)Manager.CreateObject("Unit", instanceID, ContentLang, false))
                                {
                                    string condition = null;


                                    return bll.GetRecordCount(condition);
                                }
                            }
                        }
                        
                            protected int t8684IDCounter = 0;
                            protected object t8684IDRecord = null;
                            private DataTable t8684IDData;
                            protected DataTable t8684ID
                            {
                                get
                                {
                                    if (t8684IDData != null)
                                        return t8684IDData;

                                    t8684IDData = t8684ID_;
                                    return t8684IDData;
                                }
                            }
                        
                                private DataTable t8684ID_
                                {
                                    get
                                    {
                                        string condition = null;


                                        string sort = null;

                                        int instanceID;
instanceID = InstanceID;

                                        using (IlgharCMS.ShopModule.IUnit bll = (IlgharCMS.ShopModule.IUnit)Manager.CreateObject("Unit", instanceID, ContentLang, false))
                                        {
                                            t8684IDData = bll.List(-1, -1, condition, sort);
                                        }

                                        return t8684IDData;
                                    }
                                }
                            
                            protected string t8684
                            {
                                get
                                {
                                    XmlNode node = _xmlTemplate.SelectSingleNode("//t8684");
                                    Dictionary<string, object> replacementPair = new Dictionary<string, object>();
                                    replacementPair["{#Name#}"] = IlgharCMS.ShopModule.Alias.Unit.Name;replacementPair["{#ID#}"] = IlgharCMS.ShopModule.Alias.Unit.ID;
                                    StringBuilder all = Manager.Build(node, t8684ID_, replacementPair, ref t8684IDRecord, ref t8684IDCounter);
                                    
                                    
                                    
                                    return all.ToString();
                                }
                            }
                          }
