private void Lưu_Click(object sender, EventArgs e)
        {
            txtSoButToan.Focus();
            bindingNavigatorTL.BindingSource.MoveNext();
            KiemTra();
            if (status == ThamSo.Controll.noreally)
            {
                MessageBox.Show("Thông tin còn thiếu nên thu lãi không được lưu", "Thu Lai", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
            else
            {
                TLctrl.Save();
                Allow(false);
                long sobuttoan = ThamSo.SoButToan;
                ThamSo.SoButToan = sobuttoan + 1;
            }
            status = ThamSo.Controll.Save;
            HSKUctrl.Save();

            HoSoKheUocController HSctrol = new HoSoKheUocController();

            foreach (DataGridViewRow view in dataGridViewTL.Rows)
            {
                HSctrol.CapNhatNgayTinhLai(Convert.ToString(view.Cells["MaSoKU"].Value), Convert.ToDateTime(view.Cells["NgayTL"].Value));
            }
        }
        void KiemTra()
        {
            if (txtMaNV.Text == "")
            {
                MessageBox.Show("Vui lòng nhập mã nhân viên !", "Nhan Vien", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (txtHoTenNV.Text == "")
            {
                MessageBox.Show("Vui lòng nhập họ tên nhân viên!", "Nhan Vien", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (txtDiaChi.Text == "")
            {
                MessageBox.Show("Vui lòng nhập địa chỉ!", "Nhan Vien", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbMaPhong.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn mã phòng !", "Nhan Vien", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbMaChucVu.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn mã chức vụ", "Nhan Vien", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            if (txtMaNV.Text == "" || txtHoTenNV.Text == "" || txtDiaChi.Text == "" || cmbMaPhong.SelectedValue == null || cmbMaChucVu == null)
            {
                status = ThamSo.Controll.noreally;
            }
        }
示例#3
0
        private void Thêm_Click(object sender, EventArgs e)
        {
            status           = ThamSo.Controll.Addnew;
            txtMaDoiTac.Text = ThamSo.LayMaDoiTac().ToString();
            this.Allow(true);
            DataRow row = DTctrl.NewRow();

            row["MaDoiTac"]     = "";
            row["HoTenDT"]      = "";
            row["GioiTinh"]     = 0;
            row["DiaChi"]       = "";
            row["NgaySinh"]     = "01/01/1900";
            row["CMND"]         = "";
            row["NgayCap"]      = "01/01/1918";
            row["NoiCap"]       = "";
            row["MaTinh"]       = "";
            row["MaHuyen"]      = "";
            row["MaXa"]         = "";
            row["MaLoaiHinh"]   = "";
            row["MaLoaiDoiTac"] = "";
            row["MaDanToc"]     = "";

            DTctrl.Add(row);
            bindingNavigatorDT.BindingSource.MoveLast();
            txtMaDoiTac.Focus();
        }
        private void Lưu_Click(object sender, EventArgs e)
        {
            txtSbt.Focus();
            bindingNavigatorGN.BindingSource.MoveNext();
            KiemTra();

            if (status == ThamSo.Controll.noreally)
            {
                MessageBox.Show("Thông tin còn thiếu nên giải ngân không được lưu", "Giai Ngan", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }
            else
            {
                GNctrl.Save();
                Allow(false);
                long sobuttoan = ThamSo.SoButToan;
                ThamSo.SoButToan = sobuttoan + 1;
            }

            status = ThamSo.Controll.Save;
            HSKUctrl.Save();

            HoSoKheUocController HSctrol = new HoSoKheUocController();

            foreach (DataGridViewRow view in dataGridViewGN.Rows)
            {
                HSctrol.CapNhatSoTienHienTai(Convert.ToString(view.Cells["MaSoKU"].Value), Convert.ToInt64(view.Cells["ConLai"].Value));
            }
        }
示例#5
0
        void KiemTra()
        {
            if (txtMaDoiTac.Text == "")
            {
                MessageBox.Show("Vui lòng nhập mã đối tác !", "Doi Tac", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (txtTenDoiTac.Text == "")
            {
                MessageBox.Show("Vui lòng nhập tên đối tác !", "Doi Tac", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            //else if (txtCMND.Text.Length > 9)
            //{
            //    MessageBox.Show("Vui lòng nhập CMND !", "Doi Tac", MessageBoxButtons.OK, MessageBoxIcon.Error);
            //}
            else if (dtpNgayCap.Value <= dtpNgaySinh.Value)
            {
                MessageBox.Show("Vui lòng nhập ngày cấp phải sau ngày sinh !", "Doi Tac", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            else if (txtNoiCap.Text == "")
            {
                MessageBox.Show("Vui lòng nhập nơi cấp CMND vào !", "Doi Tac", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (txtDiaChi.Text == "")
            {
                MessageBox.Show("Vui lòng nhập địa chỉ !", "Doi Tac", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbMaTinh.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn tỉnh !", "Doi Tac", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbMaHuyen.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn huyện !", "Doi Tac", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            //else if (cmbMaXa.SelectedValue == null)
            //{
            //    MessageBox.Show("Vui lòng chọn xã !", "Doi Tac", MessageBoxButtons.OK, MessageBoxIcon.Error);
            //}
            else if (cmbMaLoaiHinh.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn loại hình !", "Doi Tac", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbMaLoaiDoiTac.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn loại đối tác !", "Doi Tac", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbMaDanToc.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn dân tộc!", "Doi Tac", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            if (txtMaDoiTac.Text == "" || txtTenDoiTac.Text == "" || dtpNgayCap.Value <= dtpNgaySinh.Value ||
                txtNoiCap.Text == "" || txtDiaChi.Text == "" || cmbMaTinh.SelectedValue == null || cmbMaHuyen.SelectedValue == null ||
                cmbMaXa.SelectedValue == null || cmbMaLoaiHinh.SelectedValue == null || cmbMaLoaiDoiTac.SelectedValue == null || cmbMaDanToc.SelectedValue == null)
            {
                status = ThamSo.Controll.noreally;
            }
        }
        private void Thêm_Click(object sender, EventArgs e)
        {
            status = ThamSo.Controll.Addnew;
            this.Allow(true);
            DataRow row = LSctrl.NewRow();

            row["MaLaiSuat"] = "";
            row["LaiSuat"]   = 0;
            row["LSQuaHan"]  = 0;
            row["LSTren"]    = "";
            row["TenLoaiLS"] = "";
            LSctrl.Add(row);
            bindingNavigatorLS.BindingSource.MoveLast();
            txtMaLaiSuat.Focus();
        }
示例#7
0
 private void ToolLuu_Click(object sender, EventArgs e)
 {
     txtMaSoKU.Focus();
     bindingNavigator.BindingSource.MoveNext();
     KiemTra();
     if (status == ThamSo.Controll.noreally)
     {
         MessageBox.Show("Thông tin còn thiếu nên khế ước không được lưu", "Doi Tac", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         HoSoKheUocCtrl.Save();
         Allow(false);
     }
     status = ThamSo.Controll.Save;
 }
 private void Lưu_Click(object sender, EventArgs e)
 {
     txtMaLaiSuat.Focus();
     bindingNavigatorLS.BindingSource.MoveNext();
     KiemTra();
     if (status == ThamSo.Controll.noreally)
     {
         MessageBox.Show("Thông tin còn thiếu nên lãi suất không được lưu", "Lai Suat", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         LSctrl.Save();
         Allow(false);
     }
     status = ThamSo.Controll.Save;
 }
 private void toolLuu_Click(object sender, EventArgs e)
 {
     txtMaNV.Focus();
     bindingNavigatorNV.BindingSource.MoveNext();
     KiemTra();
     // KiemTraMa();
     if (status == ThamSo.Controll.noreally)
     {
         MessageBox.Show("Thông tin còn thiếu nên nhân viên không được lưu", "Nhan Vien", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         NVctrl.Save();
         Allow(false);
     }
     status = ThamSo.Controll.Save;
 }
        private void toolThem_Click(object sender, EventArgs e)
        {
            status = ThamSo.Controll.Addnew;
            this.Allow(true);
            DataRow row = NVctrl.NewRow();

            row["MaNV"]       = "";
            row["HoTenNV"]    = "";
            row["NgaySinh"]   = "01/01/1900";
            row["DiaChi"]     = "";
            row["MaPhongBan"] = "";
            row["MaChucVu"]   = "";
            row["GhiChu"]     = "";
            NVctrl.Add(row);
            bindingNavigatorNV.BindingSource.MoveLast();
            txtMaNV.Focus();
        }
        void KiemTra()
        {
            if (txtSbt.Text == "")
            {
                MessageBox.Show("Vui lòng nhập số bút toán !", "Giai Ngan", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbMaSoKU.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn mã số khế ước !", "Giai Ngan", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbSoTaiKhoan.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn số tài khoản !", "Giai Ngan", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (numSoTienGN.Value == 0)
            {
                MessageBox.Show("Vui lòng nhập số tiền giải ngân !", "Giai Ngan", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (numDuocPhep.Value == 0)
            {
                MessageBox.Show("Vui lòng nhập số tiền được phép!", "Giai Ngan", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (numConLai.Value == 0)
            {
                MessageBox.Show("Đã giải ngân hết !", "Giai Ngan", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbLoaiCT.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn loại chứng từ!", "Giai Ngan", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbTKNo.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn tài khoản nợ !", "Giai Ngan", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbTKCo.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn tài khoản có!", "Giai Ngan", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            if (txtSbt.Text == "" || cmbMaSoKU.SelectedValue == null || cmbSoTaiKhoan.SelectedValue == null || numSoTienGN.Value == 0 ||
                numDuocPhep.Value == 0 || numConLai.Value == 0 || cmbLoaiCT.SelectedValue == null || cmbTKNo.SelectedValue == null || cmbTKCo.SelectedValue == null)
            {
                status = ThamSo.Controll.noreally;
            }
        }
 private void Lưu_Click(object sender, EventArgs e)
 {
     txtSoButToan.Focus();
     bindingNavigatorTV.BindingSource.MoveNext();
     KiemTra();
     if (status == ThamSo.Controll.noreally)
     {
         MessageBox.Show("Thông tin còn thiếu nên thu nợ thu lãi không được lưu", "Thu No Thu Lai", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         TVctrl.Save();
         Allow(false);
         long sobuttoan = ThamSo.SoButToan;
         ThamSo.SoButToan = sobuttoan + 1;
     }
     status = ThamSo.Controll.Save;
 }
示例#13
0
        private void toolThem_Click(object sender, EventArgs e)
        {
            status         = ThamSo.Controll.Addnew;
            txtMaSoKU.Text = ThamSo.LaySoKheUoc().ToString();
            this.Allow(true);
            DataRow row = HoSoKheUocCtrl.NewRow();

            txtMaSoKU.Text       = null;
            row["MaSoKU"]        = txtMaSoKU.Text;
            row["MaDoiTac"]      = cmbMaDoiTac.SelectedValue;
            row["MaLoaiVay"]     = cmbMaLoaiVay.SelectedValue;
            row["MaKVNV"]        = cmbMaKVNV.SelectedValue;
            row["MaKieuTra"]     = cmbMaKieuTra.SelectedValue;
            row["TenToTruong"]   = cmbTenToTruong.SelectedValue;
            row["MaChuongTrinh"] = cmbMaChuongTrinh.SelectedValue;
            row["NhuCau"]        = numNhuCau.Value;
            row["SoTienHienTai"] = numSoTienHienTai.Value;
            row["NgayDuyet"]     = dtpNgayDuyet.Value.Date;
            row["MucDuyet"]      = numMucDuyet.Value;
            row["NgayVay"]       = dtpNgayVay.Value.Date;
            row["NgayTra"]       = dtpNgayTra.Value.Date;


            row["MaLaiSuat"]    = cmbMaLaiSuat.SelectedValue;
            row["TKChoVay"]     = cmbMaTaiKhoan.SelectedValue;
            row["ThuLai"]       = cmbThuLai.SelectedValue;
            row["TKNoQuaHan"]   = cmbTKNoQuaHan.SelectedValue;
            row["ThuLaiQuaHan"] = cmbThuLaiQuaHan.SelectedValue;
            row["MaMucDichVay"] = cmbMDVay.SelectedValue;

            row["MaHTDamBao"]     = cmbMaHTDamBao.SelectedValue;
            row["MaNV"]           = cmbMaNV.SelectedValue;
            row["MaThoiHanVay"]   = cmbMaThoiHanVay.SelectedValue;
            row["MaHTVay"]        = cmbMaHTVay.SelectedValue;
            row["MaDonViUyThac"]  = cmbMaDVUT.SelectedValue;
            row["MaVung"]         = cmbMaVung.SelectedValue;
            row["TraNoGocDinhKy"] = numTraNoGocDinhKy.Value;

            HoSoKheUocCtrl.Add(row);
            bindingNavigator.BindingSource.MoveLast();
            txtMaSoKU.Focus();
        }
        void KiemTra()
        {
            if (txtSoButToan.Text == "")
            {
                MessageBox.Show("Vui lòng nhập mã thu vốn !", "Thu Lai", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbMaSoKU.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn mã số khế ước!", "Thu Lai", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (dtpNgayTinhLai.Value >= dtpNgayTL.Value)
            {
                MessageBox.Show("Ngày thu lãi phải sao ngày tính lãi!", "Thu Lai", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (txtSoTienLaiTH.Text == "")
            {
                MessageBox.Show("Vui lòng nhập số tiền lãi trong hạn!", "Thu Lai", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (numSoTienGoc.Value == 0)
            {
                MessageBox.Show("Vui lòng nhập số tiền gốc !", "Thu Lai", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            else if (cmbMaLoaiChungTu.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn loại loại chứng từ!", "Thu Lai", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbTaiKhoanNo.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn tài khoản nợ!", "Thu Lai", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbTaiKhoanCo.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn tài khoản có!", "Thu Lai", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            if (txtSoButToan.Text == "" || cmbMaSoKU.SelectedValue == null || txtSoTienLaiTH.Text == "" || numSoTienGoc.Value == 0 ||
                cmbMaLoaiChungTu.SelectedValue == null || cmbTaiKhoanNo.SelectedValue == null || cmbTaiKhoanCo.SelectedValue == null)
            {
                status = ThamSo.Controll.noreally;
            }
        }
 void KiemTra()
 {
     if (txtSoButToan.Text == "")
     {
         MessageBox.Show("Vui lòng nhập mã thu vốn !", "Thu Von", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else if (cmbMaSoKU.SelectedValue == null)
     {
         MessageBox.Show("Vui lòng chọn mã số khế ước!", "Thu Von", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else if (numSoTienThu.Value == 0)
     {
         MessageBox.Show("Vui lòng nhập số tiền thu!", "Thu Von", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else if (numSoTienGoc.Value == 0)
     {
         MessageBox.Show("Vui lòng nhập số tiền gốc !", "Thu Von", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else if (numSoTienConLai.Value == 0)
     {
         MessageBox.Show("Vui lòng nhập số tiền còn lại!", "Thu Von", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else if (cmbMaLoaiChungTu.SelectedValue == null)
     {
         MessageBox.Show("Vui lòng chọn loại loại chứng từ!", "Thu Von", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else if (cmbTaiKhoanNo.SelectedValue == null)
     {
         MessageBox.Show("Vui lòng chọn tài khoản nợ!", "Thu Von", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else if (cmbTaiKhoanCo.SelectedValue == null)
     {
         MessageBox.Show("Vui lòng chọn tài khoản có!", "Thu Von", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     if (txtSoButToan.Text == "" || cmbMaSoKU.SelectedValue == null || numSoTienThu.Value == 0 || numSoTienGoc.Value == 0 || numSoTienConLai.Value == 0 ||
         cmbMaLoaiChungTu.SelectedValue == null || cmbTaiKhoanNo.SelectedValue == null || cmbTaiKhoanCo.SelectedValue == null)
     {
         status = ThamSo.Controll.noreally;
     }
 }
 void KiemTra()
 {
     if (txtMaLaiSuat.Text == "")
     {
         MessageBox.Show("Vui lòng nhập mã lãi suất !", "Lai Suat", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else if (txtLaiSuat.Text == "")
     {
         MessageBox.Show("Vui lòng nhập lãi suất !", "Lai Suat", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else if (txtLSQuaHan.Text == "")
     {
         MessageBox.Show("Vui lòng nhập lãi suất quá hạn", "Lai Suat", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     else if (txtTenLoaiLS.Text == "")
     {
         MessageBox.Show("Vui lòng nhập tên loại lãi suất!", "Lai Suat", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
     if (txtMaLaiSuat.Text == "" || txtLaiSuat.Text == "" || txtLSQuaHan.Text == "" || txtTenLoaiLS.Text == "")
     {
         status = ThamSo.Controll.noreally;
     }
 }
 public frmThuLai(ThuLaiController ctrltl)
     : this()
 {
     this.TLctrl = ctrltl;
     status      = ThamSo.Controll.Normal;
 }
 private void toolSua_Click(object sender, EventArgs e)
 {
     status = ThamSo.Controll.Edit;
     this.Allow(true);
 }
 public frmGiaiNgan(GiaiNganController ctrlgn)
     : this()
 {
     this.GNctrl = ctrlgn;
     status      = ThamSo.Controll.Normal;
 }
示例#20
0
        void KiemTra()
        {
            if (txtMaSoKU.Text == "")
            {
                MessageBox.Show("Vui lòng nhập số khế ước!", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbMaDoiTac.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng nhập tên khách hàng vào !", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbMaLoaiVay.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn loại vay!", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbMaKVNV.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn kiểu vay nguồn vốn!", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbMaKieuTra.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn kiểu trả !", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbMaChuongTrinh.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn chương trình!", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbTenToTruong.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn tổ trưởng !", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (numNhuCau.Value == 0)
            {
                MessageBox.Show("Vui lòng chọn nhu cầu vào !", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (numMucDuyet.Value == 0)
            {
                MessageBox.Show("Vui lòng nhập mức duyệt vào !", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            else if (dtpNgayVay.Value <= dtpNgayDuyet.Value)
            {
                MessageBox.Show("Vui lòng nhập ngày duyệt phải sau ngày ngày vay !", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (dtpNgayTra.Value <= dtpNgayDuyet.Value)
            {
                MessageBox.Show("Vui lòng nhập ngày trả phải sau ngày ngày duyệt !", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbMaLaiSuat.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn lãi suất!", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbMaTaiKhoan.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn tài khoản!", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbThuLai.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn thu lãi!", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbTKNoQuaHan.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn tài khoản nợ quá hạn!", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbThuLaiQuaHan.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn thu lãi quá hạn!", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbMDVay.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn mục đích vay !", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbMaHTDamBao.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn hình thức đảm bảo!", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbMaNV.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn nhân viên !", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbMaHTVay.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn hình thức vay!", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbMaThoiHanVay.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn thời hạn vay !", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbMaDVUT.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn đơn vị ủy thác!", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbMaVung.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn vùng!", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            else if (cmbHotenThuaKe.SelectedValue == null)
            {
                MessageBox.Show("Vui lòng chọn tên thừa kế!", "Ho So Khe Uoc", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            if (txtMaSoKU.Text == "" || cmbMaDoiTac.SelectedValue == null || cmbMaLoaiVay.SelectedValue == null || cmbMaKVNV.SelectedValue == null || cmbMaKieuTra.SelectedValue == null ||
                cmbMaChuongTrinh.SelectedValue == null || cmbTenToTruong.SelectedValue == null || numNhuCau.Value == 0 || numSoTienHienTai.Value == 0 || numMucDuyet.Value == 0 || dtpNgayVay.Value <= dtpNgayDuyet.Value ||
                dtpNgayTra.Value <= dtpNgayDuyet.Value || cmbMaLaiSuat.SelectedValue == null || cmbMaTaiKhoan.SelectedValue == null || cmbThuLai.SelectedValue == null || cmbTKNoQuaHan.SelectedValue == null ||
                cmbThuLaiQuaHan.SelectedValue == null || cmbMDVay.SelectedValue == null || cmbMaHTDamBao.SelectedValue == null || cmbMaNV.SelectedValue == null || cmbMaHTVay.SelectedValue == null ||
                cmbMaThoiHanVay.SelectedValue == null || cmbMaDVUT.SelectedValue == null || cmbMaVung.SelectedValue == null || cmbHotenThuaKe.SelectedValue == null)
            {
                status = ThamSo.Controll.noreally;
            }
        }
示例#21
0
 public frmHoSoKheUoc(HoSoKheUocController ctrlhsku)
     : this()
 {
     this.HoSoKheUocCtrl = ctrlhsku;
     status = ThamSo.Controll.Normal;
 }
 public frmLaiSuat(LaiSuatController ctrlls)
     : this()
 {
     this.LSctrl = ctrlls;
     status      = ThamSo.Controll.Normal;
 }
 public frmThuVon(ThuVonController ctrltv)
     : this()
 {
     this.TVctrl = ctrltv;
     status      = ThamSo.Controll.Normal;
 }
 public frmNhanVien(NhanVienController ctrlnv)
     : this()
 {
     this.NVctrl = ctrlnv;
     status      = ThamSo.Controll.Normal;
 }
示例#25
0
 public frmDoiTac(DoiTacController ctrldt)
     : this()
 {
     this.DTctrl = ctrldt;
     status      = ThamSo.Controll.Normal;
 }