Exemple #1
0
 public decimal Building_Insert(string Buiding_Name, string Address, string Building_Code, string Notes)
 {
     try
     {
         Building_DA _Building_DA = new Building_DA();
         return(_Building_DA.Building_Insert(Buiding_Name, Address, Building_Code, Notes));
     }
     catch (Exception ex)
     {
         ErrorLog.log.Error(ex.ToString());
         return(-1);
     }
 }
Exemple #2
0
 public bool Building_Delete(decimal Building_Id)
 {
     try
     {
         Building_DA _Building_DA = new Building_DA();
         return(_Building_DA.Building_Delete(Building_Id));
     }
     catch (Exception ex)
     {
         ErrorLog.log.Error(ex.ToString());
         return(false);
     }
 }
Exemple #3
0
        public byte[] GetBuildingInEstate(decimal Building_Id)
        {
            try
            {
                byte[]      byteReturn;
                Building_DA _Building_DA = new Building_DA();
                DataSet     ds           = _Building_DA.GetBuildingInEstate(Building_Id);

                byteReturn = CompressionHelper.CompressDataSet(ds);
                return(byteReturn);
            }
            catch (Exception ex)
            {
                ErrorLog.log.Error(ex.ToString());
                return(new byte[0]);
            }
        }
Exemple #4
0
        public byte[] Building_GetAll()
        {
            try
            {
                byte[]      byteReturn;
                Building_DA _Building_DA = new Building_DA();
                DataSet     ds           = _Building_DA.Building_GetAll();

                byteReturn = CompressionHelper.CompressDataSet(ds);
                return(byteReturn);
            }
            catch (Exception ex)
            {
                ErrorLog.log.Error(ex.ToString());
                return(new byte[0]);
            }
        }