Ejemplo n.º 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)
            });
        }
Ejemplo n.º 2
0
        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)
            });
        }
Ejemplo n.º 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),
            });
        }
Ejemplo n.º 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),
            });
        }