Пример #1
0
        //public DataTable ViewByDistributer_ID(int DistributerID)
        //{
        //    objTaxesDAL = new Taxes_DAL(objCompanyProperty);
        //    return objTaxesDAL.SelectByDistributerID(DistributerID);
        //}

        public DataTable ViewAll(string xmlpath)
        {
            // load your xml file (this one is named people and it is in my App_Data folder)
            XElement x = XElement.Load(xmlpath);//get your file

            // declare a new DataTable and pass your XElement to it


            objTaxesDAL = new Taxes_DAL(objTaxesProperty);
            return(objTaxesDAL.XElementToDataTable(x));
        }
Пример #2
0
 public bool Delete(int?id)
 {
     objTaxesDAL = new Taxes_DAL(objTaxesProperty);
     return(objTaxesDAL.Delete(id));
 }
Пример #3
0
 public bool Update()
 {
     objTaxesDAL = new Taxes_DAL(objTaxesProperty);
     return(objTaxesDAL.Update());
 }
Пример #4
0
 public bool Insert()
 {
     objTaxesDAL = new Taxes_DAL(objTaxesProperty);
     return(objTaxesDAL.Insert());
 }
Пример #5
0
 public DataTable GetById()
 {
     objTaxesDAL = new Taxes_DAL(objTaxesProperty);
     return(objTaxesDAL.SelectById());
 }
Пример #6
0
 //public DataTable MainBranch()
 //{
 //    objTaxesDAL = new Taxes_DAL(objTaxesProperty);
 //    return objTaxesDAL.SelectAllMainBranch();
 //}
 public DataTable GetTaxesForCheckBox()
 {
     objTaxesDAL = new Taxes_DAL(objTaxesProperty);
     return(objTaxesDAL.SelectAllTaxesForCheckBox());
 }
Пример #7
0
 public DataTable ViewAll()
 {
     objTaxesDAL = new Taxes_DAL(objTaxesProperty);
     return(objTaxesDAL.SelectAll());
 }