Ejemplo n.º 1
0
            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);
            }
Ejemplo n.º 3
0
        public virtual CategoryDataTable GetData()
        {
            this.Adapter.SelectCommand = this.CommandCollection[0];
            CategoryDataTable categoryDataTable = new CategoryDataTable();

            this.Adapter.Fill(categoryDataTable);
            return(categoryDataTable);
        }
Ejemplo n.º 4
0
 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);
 }
Ejemplo n.º 6
0
 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);
 }
Ejemplo n.º 7
0
        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();
         }
     }
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 11
0
 public virtual int Update(CategoryDataTable dataTable)
 {
     return(this.Adapter.Update(dataTable));
 }
Ejemplo n.º 12
0
 internal void InitVars()
 {
     this.tableCategory = (CategoryDataTable) base.Tables["Category"];
     if (this.tableCategory != null)
     {
         this.tableCategory.InitVars();
     }
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 14
0
 internal CategoryRow(DataRowBuilder rb) :
     base(rb)
 {
     this.tableCategory = ((CategoryDataTable)(this.Table));
 }
Ejemplo n.º 15
0
 internal void InitVars() {
     this.tableCategory = ((CategoryDataTable)(this.Tables["Category"]));
     if ((this.tableCategory != null)) {
         this.tableCategory.InitVars();
     }
 }
Ejemplo n.º 16
0
 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);
 }
Ejemplo n.º 17
0
 internal CategoryRow(DataRowBuilder rb) : 
         base(rb) {
     this.tableCategory = ((CategoryDataTable)(this.Table));
 }