コード例 #1
0
 public bool Delete(Int64 pid)
 {
     try
     {
         Cls_Rawmaterial_db objCls_Rawmaterial_b = new Cls_Rawmaterial_db();
         if (objCls_Rawmaterial_b.Delete(pid))
         {
             return(true);
         }
         return(false);
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }
コード例 #2
0
        public rawMaterialMaster  SelectById(Int64 pid)
        {
            rawMaterialMaster objrawMaterialMaster = new rawMaterialMaster();

            try
            {
                Cls_Rawmaterial_db objCls_Rawmaterial_b = new Cls_Rawmaterial_db();
                objrawMaterialMaster = objCls_Rawmaterial_b.SelectById(pid);
                return(objrawMaterialMaster);
            }
            catch (Exception ex)
            {
                ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(objrawMaterialMaster);
            }
        }
コード例 #3
0
        public Int64 Update(rawMaterialMaster objproduct)
        {
            Int64 result = 0;

            try
            {
                Cls_Rawmaterial_db objCls_Rawmaterial_b = new Cls_Rawmaterial_db();
                result = Convert.ToInt64(objCls_Rawmaterial_b.Update(objproduct));
                return(result);
            }
            catch (Exception ex)
            {
                ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(result);
            }
        }
コード例 #4
0
        public DataTable SelectAll()
        {
            DataTable dt = new DataTable();

            try
            {
                Cls_Rawmaterial_db objCls_Rawmaterial_b = new Cls_Rawmaterial_db();
                dt = objCls_Rawmaterial_b.SelectAll();
                return(dt);
            }
            catch (Exception ex)
            {
                ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(dt);
            }
        }