Exemplo n.º 1
0
        // lay thoi han hop dong tu ten hop dong
        #region Lấy thời gian hợp đồng
        public static int Laythoigianhopdong(string tenhopdong)
        {
            string    sql     = "select * from loaiHD where tenloai =N'" + tenhopdong + "'";
            DataTable dt      = Ketnoi.ExcecuteQuery(sql);
            string    thoihan = dt.Rows[0]["thoihan"].ToString();

            return(int.Parse(thoihan));
        }
Exemplo n.º 2
0
        // kiem tra su ton tai
        #region Kiểm tra bảo hiểm có tồn tại hay không
        public static bool kiemtraSobaohiemTontai(string sobaohiem)
        {
            DataTable DT = Ketnoi.ExcecuteQuery("SELECT * FROM DMBaohiem where sobaohiem='" + sobaohiem + "'");

            if (DT.Rows.Count > 0)
            {
                return(true);
            }
            return(false);
        }
Exemplo n.º 3
0
        // kiem tra su ton tai
        #region Kiểm tra tồn tại
        public static bool kiemtraSoHopdongTontai(string sohopdong)
        {
            DataTable DT = Ketnoi.ExcecuteQuery("SELECT * FROM Hopdong where sohopdong='" + sohopdong + "'");

            if (DT.Rows.Count > 0)
            {
                return(true);
            }
            return(false);
        }