Beispiel #1
0
        public NvNhapKhacVm.Dto CreateNewInstance()
        {
            var unitCode = GetCurrentUnitCode();

            return(new NvNhapKhacVm.Dto()
            {
                LoaiPhieu = TypeVoucher.NKHAC.ToString(),
                MaChungTu = BuildCode_PTNX(TypeVoucher.NKHAC.ToString(), unitCode, false),
                NgayCT = CurrentSetting.GetNgayKhoaSo(unitCode)
            });
        }
        public NvNhapHangBanTraLaiVm.Dto CreateNewInstance()
        {
            var unitCode = GetCurrentUnitCode();
            var code     = BuildCode_PTNX(TypeVoucher.NHBANTL.ToString(), unitCode, false);

            return(new NvNhapHangBanTraLaiVm.Dto()
            {
                LoaiPhieu = TypeVoucher.NHBANTL.ToString(),
                MaChungTu = code,
                NgayCT = CurrentSetting.GetNgayKhoaSo(unitCode)
            });
        }
Beispiel #3
0
        public NvCongNoVm.Dto CreateNewInstance(string _loaiChungTu)
        {
            var unitCode = GetCurrentUnitCode();
            var code     = BuildCode_PTNX(_loaiChungTu, unitCode, false);

            return(new NvCongNoVm.Dto()
            {
                LoaiChungTu = _loaiChungTu,
                MaChungTu = code,
                NgayCT = CurrentSetting.GetNgayKhoaSo(unitCode),
            });
        }
Beispiel #4
0
        public NvXuatBanLeVm.Dto CreateNewInstance()
        {
            var code     = BuildCode();
            var unitCode = GetCurrentUnitCode();

            return(new NvXuatBanLeVm.Dto()
            {
                LoaiPhieu = TypeVoucher.XBANLE.ToString(),
                MaChungTu = code,
                MaHoaDon = code,
                NgayCT = CurrentSetting.GetNgayKhoaSo(unitCode),
            });
        }