Ejemplo n.º 1
0
 /// <summary>
 /// Ham khoi tao gia tri mac dinh cho cac bien
 /// </summary>
 private void init()
 {
     listChiTiet  = Protector.String(listChiTiet, "{}");
     _listChiTiet = JsonConvert.DeserializeObject <List <KhoPhieuChuyenChiTiet> >(listChiTiet);
     _LoginId     = Protector.Int(LoginId, 0);
     _NgayXuat    = Protector.DateTime(NgayXuat, "dd/MM/yyyy", true);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Ham khoi tao gia tri mac dinh cho cac bien
        /// </summary>
        private void init()
        {
            PhieuNhap = Protector.String(PhieuNhap, "{}");
            var __PhieuNhap = JsonConvert.DeserializeObject <dynamic>(PhieuNhap);

            __PhieuNhap.strNgayChungTu   = Protector.String(__PhieuNhap.strNgayChungTu, "");
            __PhieuNhap.strNgayThanhToan = Protector.String(__PhieuNhap.strNgayThanhToan, "");
            __PhieuNhap.strNgayNhap      = Protector.String(__PhieuNhap.strNgayNhap, "");

            __PhieuNhap.NgayThanhToan = Protector.DateTime(__PhieuNhap.strNgayThanhToan, "yyyy-MM-dd", true);
            __PhieuNhap.NgayNhap      = Protector.DateTime(__PhieuNhap.strNgayNhap, "yyyy-MM-dd", true);
            __PhieuNhap.NgayChungTu   = Protector.DateTime(__PhieuNhap.strNgayChungTu, "yyyy-MM-dd", true);
            __PhieuNhap.NgayChungTu   = __PhieuNhap.NgayChungTu ?? DateTime.Now;

            PhieuNhap              = JsonConvert.SerializeObject(__PhieuNhap);
            _PhieuNhap             = JsonConvert.DeserializeObject <Entity.MSSQL_QLDN_QLNS.Entity.KhoPhieuNhap>(PhieuNhap);
            _PhieuNhap.MaTrangThai = "KPN_KN";
            _PhieuNhap.XoaYN       = "N";
            _PhieuNhap.CtrVersion  = 1;
            _PhieuNhap.NguoiTao    = _LoginId;

            listChiTiet  = Protector.String(listChiTiet, "{}");
            _listChiTiet = JsonConvert.DeserializeObject <List <Entity.MSSQL_QLDN_QLNS.Entity.KhoPhieuNhapChiTiet> >(listChiTiet);

            _LoginId = Protector.Int(LoginId, 0);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Ham khoi tao gia tri mac dinh cho cac bien
        /// </summary>
        private void init()
        {
            _NhanVienId = Protector.Int(NhanVienId, 0);
            _CtrVersion = Protector.Int(CtrVersion, 0);
            _PhongBanId = Protector.Int(PhongBanId, 0);

            _ChiNhanhId = Protector.Int(ChiNhanhId, true);
            _ChiNhanhId = _ChiNhanhId == 0 ? null : _ChiNhanhId;

            _ChucVuId = Protector.Int(ChucVuId, true);
            _ChucVuId = _ChucVuId == 0 ? null : _ChucVuId;

            _NgaySinh      = Protector.DateTime(NgaySinh, "yyyy-MM-dd", true);
            _NgayCap       = Protector.DateTime(NgayCap, "yyyy-MM-dd", true);
            _NgayTuyenDung = Protector.DateTime(NgayTuyenDung, "yyyy-MM-dd", true);

            Ma          = Protector.String(Ma, "");
            Ho          = Protector.String(Ho, "");
            Ten         = Protector.String(Ten, "");
            CMND        = Protector.String(CMND, "");
            NoiCap      = Protector.String(NoiCap, "");
            ThuongTru   = Protector.String(ThuongTru, "");
            TamTru      = Protector.String(TamTru, "");
            DienThoai   = Protector.String(DienThoai, "");
            DiDong      = Protector.String(DiDong, "");
            Email       = Protector.String(Email, "");
            MaTrangThai = Protector.String(MaTrangThai, "");
            GhiChu      = Protector.String(GhiChu, "");
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Ham khoi tao gia tri mac dinh cho cac bien
        /// </summary>
        private void Init()
        {
            var tempa = Protector.DateTime(strTuNgay, "dd/MM/yyyy");
            var tempb = Protector.DateTime(strDenNgay, "dd/MM/yyyy");

            this.TuNgay  = tempa;
            this.DenNgay = tempb;
        }
Ejemplo n.º 5
0
 /// <summary>
 /// Ham khoi tao gia tri mac dinh cho cac bien
 /// </summary>
 private void init()
 {
     _PhieuCongTacId = Protector.Int(PhieuCongTacId, 0);
     _Ngay           = Protector.DateTime(Ngay, "yyyyMMdd", true);
     NoiDung         = Protector.String(NoiDung, "");
     _SoLuong        = Protector.Short(SoLuong, 0);
     _DonGia         = Protector.Int(DonGia, 0);
     GhiChu          = Protector.String(GhiChu, "");
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Ham khoi tao gia tri mac dinh cho cac bien
 /// </summary>
 private void init()
 {
     _NgayDi       = Protector.DateTime(NgayDi, "yyyy-MM-dd", true);
     _NgayVe       = Protector.DateTime(NgayVe, "yyyy-MM-dd", true);
     _NhanVienId   = Protector.Int(nhanVienId, 0);
     _NguoiDuyetId = Protector.Int(NguoiDuyetId, 0);
     _SoNgay       = Protector.Decimal(SoNgay, 0);
     _LoginId      = Protector.Int(LoginId, 0);
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Ham khoi tao gia tri mac dinh cho cac bien
 /// </summary>
 private void init()
 {
     _NgayDi         = Protector.DateTime(NgayDi, "yyyy-MM-dd", true);
     _NgayVe         = Protector.DateTime(NgayVe, "yyyy-MM-dd", true);
     _PhieuCongTacId = Protector.Int(PhieuCongTacId, 0);
     _NhanVienId     = Protector.Int(nhanVienId, 0);
     _LoginId        = Protector.Int(LoginId, 0);
     _SoNgay         = Protector.Decimal(SoNgay, 0);
     _CtrVersion     = Protector.Int(CtrVersion, 0);
 }
Ejemplo n.º 8
0
        /// <summary>
        /// Ham khoi tao gia tri mac dinh cho cac bien
        /// </summary>
        private void Init()
        {
            _nghiphepId = Protector.Int(NghiPhepId);
            _CtrVersion = Protector.Int(CtrVersion);

            var tempa = Protector.DateTime(strTuNgay, "dd/MM/yyyy");
            var tempb = Protector.DateTime(strDenNgay, "dd/MM/yyyy");

            this.TuNgay  = tempa;
            this.DenNgay = tempb;
        }
Ejemplo n.º 9
0
 /// <summary>
 /// Ham khoi tao gia tri mac dinh cho cac bien
 /// </summary>
 private void init()
 {
     _QuaTrinhCongTacId = Protector.Int(QuaTrinhCongTacId, 0);
     _NhanVienId        = Protector.Int(NhanVienId, 0);
     _TuNgay            = Protector.DateTime(TuNgay, "yyyy-MM-dd", true);
     _DenNgay           = Protector.DateTime(DenNgay, "yyyy-MM-dd", true);
     _ChucVuId          = Protector.Int(ChucVuId, 0);
     CongViecChinh      = Protector.String(CongViecChinh, "");
     ThanhTuu           = Protector.String(ThanhTuu, "");
     Hinh = Protector.String(Hinh, "");
 }
Ejemplo n.º 10
0
        /// <summary>
        /// Ham khoi tao gia tri mac dinh cho cac bien
        /// </summary>
        private void Init()
        {
            var tempa = Protector.DateTime(strNgayBatDau, "dd/MM/yyyy");
            var tempb = Protector.DateTime(strNgayKetThuc, "dd/MM/yyyy");

            var monthyear = Protector.DateTime(strThangNam, "dd/MM/yyyy");

            this.NgayBatDau  = tempa;
            this.NgayKetThuc = tempb;
            this.ThangNam    = monthyear;
            this.LoaiBaoCao  = _loaiBaoCao;
        }
Ejemplo n.º 11
0
        /// <summary>
        /// Ham khoi tao gia tri mac dinh cho cac bien
        /// </summary>
        private void Init()
        {
            var tempa = Protector.DateTime(strNgayTangCa, "dd/MM/yyyy");

            var time1 = Protector.DateTime(strGioBatDau, "dd/MM/yyyy HH:mm");

            var time2 = Protector.DateTime(strGioKetThuc, "dd/MM/yyyy HH:mm");

            this.NgayTangCa = tempa;
            this.GioBatDau  = time1;
            this.GioKetThuc = time2;
        }
Ejemplo n.º 12
0
        /// <summary>
        /// Ham khoi tao gia tri mac dinh cho cac bien
        /// </summary>
        private void Init()
        {
            var tempa = Protector.DateTime(strNgayBatDau, "dd/MM/yyyy");
            var tempb = Protector.DateTime(strNgayKetThuc, "dd/MM/yyyy");

            var tempc = Protector.DateTime(strNgayTraLuong, "dd/MM/yyyy");

            var monthyear = Protector.DateTime(strThangNam, "dd/MM/yyyy");

            this.NgayBatDau   = tempa;
            this.NgayKetThuc  = tempb;
            this.NgayTraLuong = tempc;
            this.ThangNam     = monthyear;
        }
Ejemplo n.º 13
0
        /// <summary>
        /// Ham khoi tao gia tri mac dinh cho cac bien
        /// </summary>
        private void Init()
        {
            _Id         = Protector.Int(TangCaId);
            _CtrVersion = Protector.Int(CtrVersion);

            var tempa = Protector.DateTime(strNgayTangCa, "dd/MM/yyyy");

            var time1 = Protector.DateTime(strGioBatDau, "dd/MM/yyyy HH:mm");

            var time2 = Protector.DateTime(strGioKetThuc, "dd/MM/yyyy HH:mm");

            this.NgayTangCa = tempa;
            this.GioBatDau  = time1;
            this.GioKetThuc = time2;
        }
        /// <summary>
        /// Ham khoi tao gia tri mac dinh cho cac bien
        /// </summary>
        private void Init()
        {
            _Id = Protector.Int(KyId);
            //_CtrVersion = Protector.Int(CtrVersion);

            var tempa = Protector.DateTime(strNgayBatDau, "dd/MM/yyyy");
            var tempb = Protector.DateTime(strNgayKetThuc, "dd/MM/yyyy");

            var monthyear = Protector.DateTime(strThangNam, "dd/MM/yyyy");

            this.NgayBatDau  = tempa;
            this.NgayKetThuc = tempb;
            this.ThangNam    = monthyear;
            this.LoaiBaoCao  = _loaiBaoCao;
        }
Ejemplo n.º 15
0
        /// <summary>
        /// Ham khoi tao gia tri mac dinh cho cac bien
        /// </summary>
        private void Init()
        {
            _Id         = Protector.Int(BangLuongId);
            _CtrVersion = Protector.Int(CtrVersion);

            var tempa = Protector.DateTime(strNgayBatDau, "dd/MM/yyyy");
            var tempb = Protector.DateTime(strNgayKetThuc, "dd/MM/yyyy");

            var tempc = Protector.DateTime(strNgayTraLuong, "dd/MM/yyyy");

            var monthyear = Protector.DateTime(strThangNam, "dd/MM/yyyy");

            this.NgayBatDau   = tempa;
            this.NgayKetThuc  = tempb;
            this.NgayTraLuong = tempc;
            this.ThangNam     = monthyear;
        }
Ejemplo n.º 16
0
        /// <summary>
        /// Ham khoi tao gia tri mac dinh cho cac bien
        /// </summary>
        private void init()
        {
            strNgay = Protector.String(strNgay, "");
            var _ngay = Protector.DateTime(strNgay, "yyyy-MM-dd", true);

            if (_ngay == null)
            {
                throw new BaseException("Ngày tham gia BHXH không đúng.");
            }

            Ngay = _ngay.Value;

            SoBHXH = Protector.String(SoBHXH, "");
            SoBHYT = Protector.String(SoBHYT, "");

            _loginId = Protector.Int(loginId, 0);
        }
        /// <summary>
        /// Ham khoi tao gia tri mac dinh cho cac bien
        /// </summary>
        private void init()
        {
            _draw    = Protector.Int(draw);
            _start   = Protector.Int(start);
            _length  = Protector.Int(length);
            _loginId = Protector.Int(loginId);

            sortName = Protector.String(sortName, "PCT_ID");
            sortDir  = Protector.String(sortDir, "asc");
            _length  = _length < 1 ? 10 : _length;

            fields        = Protector.String(fields, "");
            search        = Protector.String(search, "");
            nguoiDuyetIds = Protector.String(nguoiDuyetIds, "");
            trangThai     = Protector.String(trangThai, "");
            _startDate    = Protector.DateTime(startDate, "yyyyMMdd", true);
            _endDate      = Protector.DateTime(endDate, "yyyyMMdd", true);
        }
Ejemplo n.º 18
0
        /// <summary>
        /// Ham khoi tao gia tri mac dinh cho cac bien
        /// </summary>
        private void init()
        {
            PhieuChuyen = Protector.String(PhieuChuyen, "{}");
            var __PhieuChuyen = JsonConvert.DeserializeObject <dynamic>(PhieuChuyen);

            __PhieuChuyen.NgayXuat = Protector.String(__PhieuChuyen.NgayXuat, "");
            __PhieuChuyen.NgayNhap = Protector.String(__PhieuChuyen.NgayNhap, "");

            __PhieuChuyen.NgayXuat = Protector.DateTime(__PhieuChuyen.NgayXuat, "dd/MM/yyyy", true);
            __PhieuChuyen.NgayNhap = Protector.DateTime(__PhieuChuyen.NgayNhap, "dd/MM/yyyy", true);

            PhieuChuyen  = JsonConvert.SerializeObject(__PhieuChuyen);
            _PhieuChuyen = JsonConvert.DeserializeObject <Entity.MSSQL_QLDN_QLNS.Entity.KhoPhieuChuyen>(PhieuChuyen);

            listChiTiet  = Protector.String(listChiTiet, "{}");
            _listChiTiet = JsonConvert.DeserializeObject <List <Entity.MSSQL_QLDN_QLNS.Entity.KhoPhieuChuyenChiTiet> >(listChiTiet);

            _LoginId = Protector.Int(LoginId, 0);
        }
Ejemplo n.º 19
0
        /// <summary>
        /// Ham khoi tao gia tri mac dinh cho cac bien
        /// </summary>
        private void init()
        {
            KhoHangIds = Protector.String(KhoHangIds, "");
            HangHoaIds = Protector.String(HangHoaIds, "");

            StartDate  = Protector.String(StartDate, "");
            _StartDate = Protector.DateTime(StartDate, "yyyy-MM-dd", true);

            EndDate  = Protector.String(EndDate, "");
            _EndDate = Protector.DateTime(EndDate, "yyyy-MM-dd", true);

            _draw    = Protector.Int(Draw, 0);
            _start   = Protector.Int(Start, 0);
            _length  = Protector.Int(Length, 0);
            _LoginId = Protector.Int(LoginId, 0);

            SortName     = Protector.String(SortName, "HangHoaId");
            SortDir      = Protector.String(SortDir, "asc");
            _orderClause = SortName + " " + SortDir;
        }
Ejemplo n.º 20
0
        /// <summary>
        /// Ham khoi tao gia tri mac dinh cho cac bien
        /// </summary>
        private void init()
        {
            PhieuNhap = Protector.String(PhieuNhap, "{}");
            var __PhieuNhap = JsonConvert.DeserializeObject <dynamic>(PhieuNhap);

            __PhieuNhap.strNgayChungTu   = Protector.String(__PhieuNhap.strNgayChungTu, "");
            __PhieuNhap.strNgayThanhToan = Protector.String(__PhieuNhap.strNgayThanhToan, "");

            __PhieuNhap.NgayThanhToan = Protector.DateTime(__PhieuNhap.strNgayThanhToan, "yyyy-MM-dd", true);
            __PhieuNhap.NgayNhap      = Protector.DateTime(__PhieuNhap.strNgayNhap, "yyyy-MM-dd", true);
            __PhieuNhap.NgayChungTu   = Protector.DateTime(__PhieuNhap.strNgayChungTu, "yyyy-MM-dd", true);
            __PhieuNhap.NgayChungTu   = __PhieuNhap.NgayChungTu ?? DateTime.Now;

            PhieuNhap  = JsonConvert.SerializeObject(__PhieuNhap);
            _PhieuNhap = JsonConvert.DeserializeObject <UpdateKhoPhieuNhapDto>(PhieuNhap);

            listChiTiet  = Protector.String(listChiTiet, "{}");
            _listChiTiet = JsonConvert.DeserializeObject <List <Entity.MSSQL_QLDN_QLNS.Entity.KhoPhieuNhapChiTiet> >(listChiTiet);

            _LoginId = Protector.Int(LoginId, 0);
        }
Ejemplo n.º 21
0
        /// <summary>
        /// Ham khoi tao gia tri mac dinh cho cac bien
        /// </summary>
        private void init()
        {
            field             = Protector.String(field, "");
            Series            = Protector.String(Series, "");
            DienThoai         = Protector.String(DienThoai, "");
            thongTinKhachHang = Protector.String(thongTinKhachHang, "");
            sanPhamCty        = Protector.String(sanPhamCty, "");

            strStartDate = Protector.String(strStartDate, "");
            startDate    = Protector.DateTime(strStartDate, "yyyy-MM-dd", true);

            strEndDate = Protector.String(strEndDate, "");
            endDate    = Protector.DateTime(strEndDate, "yyyy-MM-dd", true);

            _draw    = Protector.Int(draw, 0);
            _start   = Protector.Int(start, 0);
            _length  = Protector.Int(length, 0);
            _LoginId = Protector.Int(loginId, 0);

            sortName     = Protector.String(sortName, "KPBH.NgayHen");
            sortDir      = Protector.String(sortDir, "DESC");
            _orderClause = sortName + " " + sortDir;
        }
        /// <summary>
        /// Ham khoi tao gia tri mac dinh cho cac bien
        /// </summary>
        private void init()
        {
            _draw   = Protector.Int(draw);
            _start  = Protector.Int(start);
            _length = Protector.Int(length);

            sortName = string.IsNullOrEmpty(sortName) ? "NV_ID" : sortName;
            sortDir  = string.IsNullOrEmpty(sortDir) ? "asc" : sortDir;
            _length  = _length < 1 ? 10 : _length;
            _loginId = Protector.Int(loginId);

            fields             = string.IsNullOrEmpty(fields) ? "" : fields;
            search             = string.IsNullOrEmpty(search) ? "" : search;
            _ngayTuyenDungFrom = Protector.DateTime(ngayFrom, "yyyyMMdd", true);
            _ngayTuyenDungTo   = Protector.DateTime(ngayTo, "yyyyMMdd", true);
            nhanVien           = string.IsNullOrEmpty(nhanVien) ? "" : nhanVien;
            phongBan           = string.IsNullOrEmpty(phongBan) ? "" : phongBan;
            duAn         = string.IsNullOrEmpty(duAn) ? "" : duAn;
            chucVu       = string.IsNullOrEmpty(chucVu) ? "" : chucVu;
            _dangLamViec = string.IsNullOrEmpty(dangLamViec) ? null : Protector.Bool(dangLamViec, true, true);
            maForm       = string.IsNullOrEmpty(maForm) ? "" : maForm;
            maTrangThai  = string.IsNullOrEmpty(maTrangThai) ? "" : maForm;
        }
        /// <summary>
        /// Ham khoi tao gia tri mac dinh cho cac bien
        /// </summary>
        private void init()
        {
            field     = Protector.String(field, "");
            search    = Protector.String(search, "");
            khachHang = Protector.String(khachHang, "");
            khoHang   = Protector.String(khoHang, "");
            trangThai = Protector.String(trangThai, "");

            strStartDate = Protector.String(strStartDate, "");
            startDate    = Protector.DateTime(strStartDate, "yyyy-MM-dd", true);

            strEndDate = Protector.String(strEndDate, "");
            endDate    = Protector.DateTime(strEndDate, "yyyy-MM-dd", true);

            _draw    = Protector.Int(draw, 0);
            _start   = Protector.Int(start, 0);
            _length  = Protector.Int(length, 0);
            _LoginId = Protector.Int(loginId, 0);

            sortName     = Protector.String(sortName, "KPN_ID");
            sortDir      = Protector.String(sortDir, "asc");
            _orderClause = sortName + " " + sortDir;
        }
Ejemplo n.º 24
0
        /// <summary>
        /// Ham khoi tao gia tri mac dinh cho cac bien
        /// </summary>
        private void init()
        {
            var _TuNgay = Protector.DateTime(strTuNgay, "yyyy-MM-dd", true);

            if (_TuNgay == null)
            {
                throw new BaseException("TuNgay không dúng.");
            }
            TuNgay = _TuNgay.Value;

            var _DenNgay = Protector.DateTime(strDenNgay, "yyyy-MM-dd", true);

            if (_DenNgay == null)
            {
                throw new BaseException("DenNgay không dúng.");
            }
            DenNgay = _DenNgay.Value;

            NgayKetThucSom = Protector.DateTime(strNgayKetThucSom, "yyyy-MM-dd", true);
            HopDong        = Protector.String(HopDong, "");
            HuongLuong     = Protector.Decimal(HuongLuong, 0);
            Luong          = Protector.Int(Luong, 0);
            Hinh           = Protector.String(Hinh, "");
        }