Ejemplo n.º 1
0
        public bool Insert()
        {
            object[] arrvalue = new object[4] {
                "@DoiTuongID", _DoiTuongID,
                "@TenDoiTuong", _TenDoiTuong
            };
            object output1 = null;
            bool   k       = DB_SQL.EXECUTE_PROCNONE2("DoiTuong_Insert", "@DoiTuongID", System.Data.SqlDbType.Int, ref output1, arrvalue);

            DoiTuongID = Convert.ToInt32(output1);
            return(k);
        }
Ejemplo n.º 2
0
        public bool Insert()
        {
            object[] arrvalue = new object[6] {
                "@LanKhamID", _LanKhamID,
                "@ThucThu", _ThucThu,
                "@LyDoThu", _LyDoThu
            };
            object output1 = null;
            bool   k       = DB_SQL.EXECUTE_PROCNONE2("TienNop_LanKham_Insert", "@TienNop_LanKhamID", System.Data.SqlDbType.Int, ref output1, arrvalue);

            TienNop_LanKhamID = Convert.ToInt32(output1);
            return(k);
        }
Ejemplo n.º 3
0
        public bool Insert()
        {
            object[] arrvalue = new object[10] {
                "@MaDichVu", _MaDichVu,
                "@TenDichVu", _TenDichVu,
                "@DonViTinh", _DonViTinh,
                "@DonGia", _DonGia,
                "@PhongID", _PhongID
            };
            object output1 = null;
            bool   k       = DB_SQL.EXECUTE_PROCNONE2("DichVu_Insert", "@DichVuID", System.Data.SqlDbType.Int, ref output1, arrvalue);

            DichVuID = Convert.ToInt32(output1);
            return(k);
        }
        public bool Insert()
        {
            object[] arrvalue = new object[] {
                "@HoTen", _HoTen,
                "@DiaChi", _DiaChi,
                "@DienThoai", _DienThoai,
                "@Tuoi", _Tuoi,
                "@NgaySinh", _NgaySinh,
                "@GioiTinh", _GioiTinh,
                "@MaBV", ConfigurationSettings.AppSettings["MaBV"]
            };
            object output1 = null;
            bool   k       = DB_SQL.EXECUTE_PROCNONE2("BenhNhan_Insert", "@Ma", System.Data.SqlDbType.NVarChar, ref output1, arrvalue);

            Ma = Convert.ToString(output1);
            return(k);
        }
Ejemplo n.º 5
0
        public bool Insert()
        {
            object[] arrvalue = new object[] {
                "@MaBenhNhan", _MaBenhNhan,
                "@BacSiGuiID", _BacSiGuiID,
                "@DoiTuongID", _DoiTuongID,
                "@SoBH", _SoBH,
                "@ChuanDoan", _ChuanDoan,
                "@NgayKham", _NgayKham,
                "@GioKham", _GioKham,
                "@SoKham", _SoKham,
                "@MaBV", ConfigurationSettings.AppSettings["MaBV"]
            };
            object output1 = null;
            bool   k       = DB_SQL.EXECUTE_PROCNONE2("LanKham_Insert", "@Ma", System.Data.SqlDbType.NVarChar, ref output1, arrvalue);

            Ma = Convert.ToString(output1);
            return(k);
        }
Ejemplo n.º 6
0
        public bool Insert()
        {
            object[] arrvalue = new object[16] {
                "@HoTen", _HoTen,
                "@NgaySinh", _NgaySinh,
                "@GioiTinh", _GioiTinh,
                "@DienThoai", _DienThoai,
                "@DiaChi", _DiaChi,

                "@QuyenHan", _QuyenHan,
                "@TrangThai", _TrangThai,
                "@GhiChu", _GhiChu
            };
            object output1 = null;
            bool   k       = DB_SQL.EXECUTE_PROCNONE2("BacSi_Insert2", "@BacSiID", System.Data.SqlDbType.Int, ref output1, arrvalue);

            BacSiID = Convert.ToInt32(output1);
            return(k);
        }
Ejemplo n.º 7
0
        public bool Insert()
        {
            object[] arrvalue = new object[] {
                "@DichVuID", _DichVuID,
                "@MaLanKham", _MaLanKham,
                "@BacSiGuiID", _BacSiGuiID,
                "@SoLuong", _SoLuong,
                "@DonGia", _DonGia,
                "@SoLuongHuy", _SoLuongHuy,
                "@NgayKe", _NgayKe,
                "@NgayThucHien", _NgayThucHien,
                "@TrangThai", _TrangThai,
                "@MaBV", ConfigurationSettings.AppSettings["MaBV"]
            };
            object output1 = null;
            bool   k       = DB_SQL.EXECUTE_PROCNONE2("DichVu_LanKham_Insert", "@Ma", System.Data.SqlDbType.NVarChar, ref output1, arrvalue);

            Ma = Convert.ToString(output1);
            return(k);
        }