コード例 #1
0
 public static void GetProduct()
 {
     try
     {
         Product_DA _objDa = new Product_DA();
         DataSet    _ds    = _objDa.Product_GetAll();
         c_lst_Product = NaviCommon.CBO <Product_Info> .FillCollectionFromDataSet(_ds);
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
     }
 }
コード例 #2
0
 public byte[] Product_GetById(decimal Product_Id)
 {
     try
     {
         Product_DA _objDA = new Product_DA();
         DataSet    _ds    = _objDA.Product_GetById(Product_Id);
         return(CompressionHelper.CompressDataSet(_ds));
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
         return(new byte[0]);
     }
 }
コード例 #3
0
 public byte[] Product_Search(string p_name)
 {
     try
     {
         Product_DA _objDA = new Product_DA();
         DataSet    _ds    = _objDA.Product_Search(p_name);
         return(CompressionHelper.CompressDataSet(_ds));
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
         return(new byte[0]);
     }
 }
コード例 #4
0
 public decimal Product_Delete(decimal Product_Id)
 {
     try
     {
         Product_DA _objDA = new Product_DA();
         decimal    _ck    = _objDA.Product_Delete(Product_Id);
         if (_ck == 1)
         {
             DBMemory.GetProduct();
         }
         return(_ck);
     }
     catch (Exception ex)
     {
         NaviCommon.Common.log.Error(ex.ToString());
         return(-1);
     }
 }
コード例 #5
0
        public bool Product_Update(decimal Product_Id, string Product_Name, decimal Category_Id, string Unit)
        {
            try
            {
                Product_DA _objDA = new Product_DA();
                bool       _ck    = _objDA.Product_Update(Product_Id, Product_Name, Category_Id, Unit);
                if (_ck)
                {
                    DBMemory.GetProduct();
                }

                return(_ck);
            }
            catch (Exception ex)
            {
                Common.log.Error(ex.ToString());
                return(false);
            }
        }