Esempio n. 1
0
        private void _fillter()
        {
            var data = new KQKBBUS(this).NVFillter(txtMaYTe.Text, datestart.Value, dateend.Value);

            mDataGridView1.DataSource = data;
            SetStatus();
        }
Esempio n. 2
0
        public frmDetailKQKB(int KhamBenh_Id)
        {
            InitializeComponent();
            var obj = new KQKBBUS(this).NVGetByKhamBenhId(KhamBenh_Id);

            if (obj != null)
            {
                TenBenhNhan.FormatTextFromTag(obj.TenBenhNhan);
                MaYTe.FormatTextFromTag(obj.MaYTe);
                Tuoi.FormatTextFromTag(obj.Tuoi);
                GioiTinh.FormatTextFromTag(obj.GioiTinh);
                DiaChi.FormatTextFromTag(obj.DiaChi);
                SDT.FormatTextFromTag(obj.SoDienThoai);
                THoiGianKham.FormatTextFromTag(obj.ThoiGianKham);
                NoiDungKham.FormatTextFromTag(obj.NoiDungKham);
                TrieuChungLamSang.FormatTextFromTag(obj.TrieuChungLamSang);
                ChuanDoanLamSang.FormatTextFromTag(obj.ChanDoanKhoaKham);
                TenPhongBan.FormatTextFromTag(obj.TenPhongBan);
                HuyeAp.FormatTextFromTag(obj.HuyetAp);
                Mach.FormatTextFromTag(obj.Mach);
                NhietDo.FormatTextFromTag(obj.NhietDo);
                NhipTho.FormatTextFromTag(obj.NhipTho);
                ChieuCao.FormatTextFromTag(obj.ChieuCao);
                CanNang.FormatTextFromTag(obj.CanNang);
                SoBHYT.FormatTextFromTag(obj.SoBHYT);
                NguoiLienHe.FormatTextFromTag(obj.NguoiLienHe);
                NgayhentaiKham.FormatTextFromTag(obj.NgayHenTaiKham);
                MaBenh.FormatTextFromTag(obj.MaBenh);
                MaBenhPhu.FormatTextFromTag(obj.MaBenhPhu);
            }
        }
        public ActionResult Detail(int KhamBenh_Id)
        {
            var data = new KQKBBUS(this).GetByKhamBenhId(KhamBenh_Id);

            if (data == null)
            {
                return(HttpNotFound());
            }
            return(View(data));
        }
Esempio n. 4
0
        public frmDetailKQKB2(int KhamBenh_Id)
        {
            InitializeComponent();
            var obj = new KQKBBUS(this).NVGetByKhamBenhId(KhamBenh_Id);

            if (obj != null)
            {
                webBrowser1.DocumentText = new templateDetailKQKB2()
                {
                    Model = obj
                }.TransformText();
            }
        }
        public ActionResult Index(string start, string end)
        {
            DateTime d_end   = DateTime.Now;
            DateTime d_start = d_end.AddDays(-30);

            if (string.IsNullOrWhiteSpace(start) == false)
            {
                d_start = DateTime.ParseExact(start, "yyyy-MM-dd", System.Globalization.CultureInfo.InvariantCulture);
            }
            if (string.IsNullOrWhiteSpace(end) == false)
            {
                d_end = DateTime.ParseExact(end, "yyyy-MM-dd", System.Globalization.CultureInfo.InvariantCulture);
            }
            ViewBag.s_start = d_start.ToString("yyyy-MM-dd");
            ViewBag.s_end   = d_end.ToString("yyyy-MM-dd");

            var kqbetween = new KQKBBUS(this).Fillter(d_start, d_end);

            return(View(kqbetween));
        }