Closed lqbinh1987 closed 3 months ago
🐛: Fix lỗi không mở được form khám bệnh trường hợp cấu hình cấp cứu
☑: https://github.com/dh-hos/dhg.hospitalprescription/issues/257
📗: tại hàm GetDSBenhNhanCC
lấy thêm trường current.dmbenhnhan.nhom_mau
Đã fix
PHIẾU GHI NHẬN LỖI PHÁT SINH
#
92120
binh_dbtamminhduc_cantho
Tải về tại đây
Khi cấu hình máy có check Cấp cứu thì lúc mở form Khám bênh lên xuất hiện lỗi như hình dưới.
Check gấp dùm em vì liên quan cấp cứu BN, nên BV sẽ chậm trễ trong việc cấp cứu BN.
** Exception Text ** System.ArgumentException: Cannot bind to the property or column nhom_mau on the DataSource. Parameter name: dataMember at System.Windows.Forms.BindToObject.CheckBinding() at System.Windows.Forms.Binding.SetListManager(BindingManagerBase bindingManagerBase) at System.Windows.Forms.ListManagerBindingsCollection.AddCore(Binding dataBinding) at System.Windows.Forms.BindingsCollection.Add(Binding binding) at System.Windows.Forms.BindingContext.UpdateBinding(BindingContext newBindingContext, Binding binding) at System.Windows.Forms.Binding.SetBindableComponent(IBindableComponent value) at System.Windows.Forms.ControlBindingsCollection.AddCore(Binding dataBinding) at System.Windows.Forms.BindingsCollection.Add(Binding binding) at System.Windows.Forms.ControlBindingsCollection.Add(String propertyName, Object dataSource, String dataMember, Boolean formattingEnabled, DataSourceUpdateMode updateMode, Object nullValue, String formatString, IFormatProvider formatInfo) at System.Windows.Forms.ControlBindingsCollection.Add(String propertyName, Object dataSource, String dataMember) at Prescription.Forms.FrmKhamBenh.bindingData() at Prescription.Forms.FrmKhamBenh.FrmKhamBenh_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.OnCreateControl() at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Form.WmShowWindow(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)