示例#1
0
        public void Insert(int?MaPN, int?MaSp, string TenSP, int?SoLuong, decimal?DonGiaNhap)
        {
            Ctpn item = new Ctpn();

            item.MaPN = MaPN;

            item.MaSp = MaSp;

            item.TenSP = TenSP;

            item.SoLuong = SoLuong;

            item.DonGiaNhap = DonGiaNhap;


            item.Save(UserName);
        }
示例#2
0
        public void Update(int MaCTPn, int?MaPN, int?MaSp, string TenSP, int?SoLuong, decimal?DonGiaNhap)
        {
            Ctpn item = new Ctpn();

            item.MarkOld();
            item.IsLoaded = true;

            item.MaCTPn = MaCTPn;

            item.MaPN = MaPN;

            item.MaSp = MaSp;

            item.TenSP = TenSP;

            item.SoLuong = SoLuong;

            item.DonGiaNhap = DonGiaNhap;

            item.Save(UserName);
        }
示例#3
0
        public Ctpn Update(Ctpn item2)
        {
            Ctpn item = new Ctpn();

            item.MarkOld();
            item.IsLoaded = true;

            item.MaCTPn = item2.MaCTPn;

            item.MaPN = item2.MaPN;

            item.MaSp = item2.MaSp;

            item.TenSP = item2.TenSP;

            item.SoLuong = item2.SoLuong;

            item.DonGiaNhap = item2.DonGiaNhap;

            item.Save(UserName);
            return(item);
        }
示例#4
0
 public Ctpn Insert(Ctpn item)
 {
     item.Save(UserName);
     return(item);
 }