コード例 #1
0
 /// <summary>
 /// Add a new PhiCSKH within PhiCSKH database table
 /// </summary>
 /// <param name="obj">PhiCSKH</param>
 /// <returns>key of table</returns>
 public int Add(PhiCSKH obj)
 {
     SqlHelper.ExecuteNonQuery(Data.ConnectionString, CommandType.StoredProcedure,"sproc_PhiCSKH_Add"
                     ,Data.CreateParameter("Ma_CSKH", obj.Ma_CSKH)
                     ,Data.CreateParameter("MaNhanVien", obj.MaNhanVien)
                     ,Data.CreateParameter("NgayNop", obj.NgayNop)
                     ,Data.CreateParameter("SoTien", obj.SoTien)
                     ,Data.CreateParameter("NguoiNop", obj.NguoiNop)
                     ,Data.CreateParameter("GhiChu", obj.GhiChu)
     );
     return 0;
 }
コード例 #2
0
 /// <summary>
 /// 
 /// </summary>
 /// <returns></returns>
 public PhiCSKH Populate(IDataReader myReader)
 {
     PhiCSKH obj = new PhiCSKH();
     obj.Ma_CSKH = (int) myReader["Ma_CSKH"];
     obj.MaNhanVien = (int) myReader["MaNhanVien"];
     obj.NgayNop = (DateTime) myReader["NgayNop"];
     obj.SoTien = (decimal) myReader["SoTien"];
     obj.NguoiNop = (string) myReader["NguoiNop"];
     obj.GhiChu = (string) myReader["GhiChu"];
     return obj;
 }
コード例 #3
0
 /// <summary>
 /// Add a new PhiCSKH within PhiCSKH database table
 /// </summary>
 /// <param name="obj_phicskh">PhiCSKH</param>
 /// <returns>key of table</returns>
 public int Add(PhiCSKH obj_phicskh)
 {
     ServerCache.Remove("PhiCSKH", true);
     return objPhiCSKHDA.Add(obj_phicskh);
 }