Example #1
0
 public static void GetWareHouse()
 {
     try
     {
         WareHouse_DA _objDa = new WareHouse_DA();
         DataSet      _ds    = _objDa.WAREHOUSE_GET_ALL();
         c_lst_WareHouse = NaviCommon.CBO <WareHouse_Info> .FillCollectionFromDataSet(_ds);
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
     }
 }
Example #2
0
 public byte[] WareHouse_Search(string p_name)
 {
     try
     {
         WareHouse_DA _objDA = new WareHouse_DA();
         DataSet      _ds    = _objDA.WareHouse_Search(p_name);
         return(CompressionHelper.CompressDataSet(_ds));
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
         return(new byte[0]);
     }
 }
Example #3
0
 public byte[] WareHouse_GetByUser(decimal User_Id, decimal User_Type)
 {
     try
     {
         WareHouse_DA _objDA = new WareHouse_DA();
         DataSet      _ds    = _objDA.WareHouse_GetByUser(User_Id, User_Type);
         return(CompressionHelper.CompressDataSet(_ds));
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
         return(new byte[0]);
     }
 }
Example #4
0
 public byte[] WAREHOUSE_GET_ALL()
 {
     try
     {
         WareHouse_DA _objDA = new WareHouse_DA();
         DataSet      _ds    = _objDA.WAREHOUSE_GET_ALL();
         return(CompressionHelper.CompressDataSet(_ds));
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
         return(new byte[0]);
     }
 }
Example #5
0
 public decimal WareHouse_Delete(decimal WareHouse_Id)
 {
     try
     {
         WareHouse_DA _objDA = new WareHouse_DA();
         decimal      _ck    = _objDA.WareHouse_Delete(WareHouse_Id);
         if (_ck == 1)
         {
             DBMemory.GetWareHouse();
         }
         return(_ck);
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
         return(-1);
     }
 }
Example #6
0
 public bool WareHouse_Update(decimal WareHouse_Id, string WareHous_Name, string Location)
 {
     try
     {
         WareHouse_DA _objDA = new WareHouse_DA();
         bool         _ck    = _objDA.WareHouse_Update(WareHouse_Id, WareHous_Name, Location);
         if (_ck)
         {
             DBMemory.GetWareHouse();
         }
         return(_ck);
     }
     catch (Exception ex)
     {
         Common.log.Error(ex.ToString());
         return(false);
     }
 }
Example #7
0
 public decimal WareHouse_Insert(string WareHouse_Code, string WareHouse_Name, string Location)
 {
     try
     {
         WareHouse_DA _objDA = new WareHouse_DA();
         decimal      _ck    = _objDA.WareHouse_Insert(WareHouse_Code, WareHouse_Name, Location);
         if (_ck == 0)
         {
             DBMemory.GetWareHouse();
         }
         return(_ck);
     }
     catch (Exception ex)
     {
         Common.log.Error(ex.ToString());
         return(-1);
     }
 }