Esempio n. 1
0
 public decimal Category_Delete(decimal Category_Id)
 {
     try
     {
         Categories_DA _objDA = new Categories_DA();
         return(_objDA.Category_Delete(Category_Id));
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
         return(-1);
     }
 }
Esempio n. 2
0
 public bool Category_Update(decimal Category_Id, string Category_Name, string Unit)
 {
     try
     {
         Categories_DA _objDA = new Categories_DA();
         return(_objDA.Category_Update(Category_Id, Category_Name, Unit));
     }
     catch (Exception ex)
     {
         Common.log.Error(ex.ToString());
         return(false);
     }
 }
Esempio n. 3
0
 public byte[] Category_Search(string p_name)
 {
     try
     {
         Categories_DA _objDA = new Categories_DA();
         DataSet       _ds    = _objDA.Category_Search(p_name);
         return(CompressionHelper.CompressDataSet(_ds));
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
         return(new byte[0]);
     }
 }
Esempio n. 4
0
 public byte[] Category_GetById(decimal Category_Id)
 {
     try
     {
         Categories_DA _objDA = new Categories_DA();
         DataSet       _ds    = _objDA.Category_GetById(Category_Id);
         return(CompressionHelper.CompressDataSet(_ds));
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
         return(new byte[0]);
     }
 }