public override DataTable Clone()
            {
                CategoryDataTable cln = ((CategoryDataTable)(base.Clone()));

                cln.InitVars();
                return(cln);
            }
            public override global::System.Data.DataTable Clone()
            {
                CategoryDataTable cln = ((CategoryDataTable)(base.Clone()));

                cln.InitVars();
                return(cln);
            }
        public virtual CategoryDataTable GetData()
        {
            this.Adapter.SelectCommand = this.CommandCollection[0];
            CategoryDataTable categoryDataTable = new CategoryDataTable();

            this.Adapter.Fill(categoryDataTable);
            return(categoryDataTable);
        }
 internal void InitVars()
 {
     this.tableCategory = ((CategoryDataTable)(this.Tables["Category"]));
     if ((this.tableCategory != null))
     {
         this.tableCategory.InitVars();
     }
 }
 private void InitClass()
 {
     this.DataSetName             = "CategorySet";
     this.Prefix                  = "";
     this.Namespace               = "http://tempuri.org/CategorySet.xsd";
     this.EnforceConstraints      = true;
     this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
     this.tableCategory           = new CategoryDataTable();
     base.Tables.Add(this.tableCategory);
 }
 private void InitClass()
 {
     this.DataSetName        = "CategoryStore";
     this.Prefix             = "";
     this.Namespace          = "http://tempuri.org/CategoryStore.xsd";
     this.Locale             = new System.Globalization.CultureInfo("en-ZA");
     this.CaseSensitive      = false;
     this.EnforceConstraints = true;
     this.tableCategory      = new CategoryDataTable();
     this.Tables.Add(this.tableCategory);
 }
        public virtual int Fill(CategoryDataTable dataTable)
        {
            this.Adapter.SelectCommand = this.CommandCollection[0];
            if (this.ClearBeforeFill)
            {
                dataTable.Clear();
            }
            int num = this.Adapter.Fill(dataTable);

            return(num);
        }
 internal void InitVars(bool initTable)
 {
     this.tableCategory = ((CategoryDataTable)(base.Tables["Category"]));
     if ((initTable == true))
     {
         if ((this.tableCategory != null))
         {
             this.tableCategory.InitVars();
         }
     }
 }
Exemple #9
0
        public popupAddForm()
        {
            this.components = null;
            base();
            this.InitializeComponent();
            this.accounts = new AccountsBLL();
            CategoryDataTable categories = this.accounts.getCategories();

            this.ddlCategory.DataSource    = categories;
            this.ddlCategory.DisplayMember = "Category_Name";
            this.ddlCategory.ValueMember   = "Category_ID";
            COA_TDataTable mainAccounts = this.accounts.GetMainAccounts();

            this.ddlSub.DataSource    = mainAccounts;
            this.ddlSub.DisplayMember = "GL_Name_VC";
            this.ddlSub.ValueMember   = "GL_ID";
            int num = Convert.ToInt32(this.ddlCategory.SelectedValue);
            int nextCategoryCode = this.accounts.getNextCategoryCode(num).Text = nextCategoryCode.ToString();
        }
 internal CategoryRow(global::System.Data.DataRowBuilder rb) :
     base(rb)
 {
     this.tableCategory = ((CategoryDataTable)(this.Table));
 }
 public virtual int Update(CategoryDataTable dataTable)
 {
     return(this.Adapter.Update(dataTable));
 }
Exemple #12
0
 internal void InitVars()
 {
     this.tableCategory = (CategoryDataTable) base.Tables["Category"];
     if (this.tableCategory != null)
     {
         this.tableCategory.InitVars();
     }
 }
Exemple #13
0
 private void InitClass()
 {
     base.DataSetName = "dsCategory";
     base.Prefix = "";
     base.Namespace = "http://www.tempuri.org/dsCategory.xsd";
     base.Locale = new CultureInfo("en-US");
     base.CaseSensitive = false;
     base.EnforceConstraints = true;
     this.tableCategory = new CategoryDataTable();
     base.Tables.Add(this.tableCategory);
 }
 internal CategoryRow(DataRowBuilder rb) :
     base(rb)
 {
     this.tableCategory = ((CategoryDataTable)(this.Table));
 }
 internal void InitVars() {
     this.tableCategory = ((CategoryDataTable)(this.Tables["Category"]));
     if ((this.tableCategory != null)) {
         this.tableCategory.InitVars();
     }
 }
 private void InitClass() {
     this.DataSetName = "CategoryStore";
     this.Prefix = "";
     this.Namespace = "http://tempuri.org/CategoryStore.xsd";
     this.Locale = new System.Globalization.CultureInfo("en-ZA");
     this.CaseSensitive = false;
     this.EnforceConstraints = true;
     this.tableCategory = new CategoryDataTable();
     this.Tables.Add(this.tableCategory);
 }
 internal CategoryRow(DataRowBuilder rb) : 
         base(rb) {
     this.tableCategory = ((CategoryDataTable)(this.Table));
 }