コード例 #1
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);
        }
コード例 #2
0
ファイル: CtpnController.cs プロジェクト: kieuphi/test
        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);
        }