Ejemplo n.º 1
0
 public frmDM_1021_ct(string v_userid, LibVP.AccessData _m_v)
 {
     InitializeComponent();
     m_userid = v_userid;
     f_SetEvent(panel2);
     this.m_v = _m_v;
 }
Ejemplo n.º 2
0
 public frmBaocaobo_VP(LibVP.AccessData _m_v)
 {
     this.m_v = _m_v;
     InitializeComponent();
     lan.Read_Language_to_Xml(this.Name.ToString(), this);
     lan.Changelanguage_to_English(this.Name.ToString(), this);
 }
Ejemplo n.º 3
0
 public frmHieuchinh_Stt_tonkho(LibVP.AccessData v)
 {
     InitializeComponent();
     lan.Read_Language_to_Xml(this.Name.ToString(), this);
     lan.Changelanguage_to_English(this.Name.ToString(), this);
     this.m_v = v;
 }
Ejemplo n.º 4
0
/// <summary>
/// Kiểm tra dữ liệu tồn tháng trước đã được chuyển sang tháng này chưa nếu chưa thì tạo một BackgroundWork để chuyển tồn.
/// </summary>
/// <returns></returns>
        bool KiemtraChuyenTonTamUng()
        {
            DataTable data = new DataTable();

            if (m_v == null)
            {
                m_v = new LibVP.AccessData();
            }
            using (Npgsql.NpgsqlCommand cmm = new Npgsql.NpgsqlCommand("select * from updatedatatontamung order by stt desc ", new Npgsql.NpgsqlConnection(m_v.ConStr)))
            {
                try
                {
                    cmm.Connection.Open();
                    Npgsql.NpgsqlDataReader dtrd = cmm.ExecuteReader();
                    for (int i = 0; i < dtrd.FieldCount; i++)
                    {
                        data.Columns.Add(dtrd.GetName(i), dtrd.GetFieldType(i));
                    }

                    while (dtrd.Read())
                    {
                        DataRow dr = data.NewRow();
                        foreach (DataColumn dc in data.Columns)
                        {
                            dr[dc] = dtrd[dc.ColumnName];
                        }
                        data.Rows.Add(dr);
                    }
                }
                catch
                {
                    using (Npgsql.NpgsqlCommand cmm2 = new Npgsql.NpgsqlCommand("create table updatedatatontamung (stt serial, ngayupdate date,userid number)", new Npgsql.NpgsqlConnection(m_v.ConStr)))
                    {
                        try
                        {
                            cmm2.Connection.Open();
                            cmm2.ExecuteNonQuery();
                        }
                        finally
                        {
                            cmm2.Connection.Close();
                        }
                    }
                }
                finally
                {
                    cmm.Connection.Close();
                }
            }
            if (data.Rows.Count == 0 || (DateTime.Today.Month > ((DateTime)data.Rows[0]["ngayupdate"]).Month))
            {
                //fst.ThucThi();
                return(false);
            }
            else
            {
                return(true);
            }
        }
Ejemplo n.º 5
0
 public frmMQuanlynguoidung()
 {
     v = new LibVP.AccessData();
     InitializeComponent();
     lan.Read_Language_to_Xml(this.Name.ToString(), this);
     lan.Changelanguage_to_English(this.Name.ToString(), this);
     f_PrepareDB();
 }
Ejemplo n.º 6
0
        public frmDoingay(LibVP.AccessData v_v, string v_userid)
        {
            m_v      = v_v;
            m_userid = v_userid;
            InitializeComponent();

            lan.Read_Language_to_Xml(this.Name.ToString(), this);
            lan.Changelanguage_to_English(this.Name.ToString(), this);
        }
Ejemplo n.º 7
0
 public frmGiagiuongBHYT(LibVP.AccessData _vp, int _userid)
 {
     InitializeComponent();
     lan.Read_Language_to_Xml(this.Name.ToString(), this);
     lan.Changelanguage_to_English(this.Name.ToString(), this);
     lan.Read_dtgrid_to_Xml(dataGridView1, this.Name + "_" + "dataGridView1");
     lan.Change_dtgrid_HeaderText_to_English(dataGridView1, this.Name + "_" + "dataGridView1");
     vp = _vp; userid = _userid;
 }
Ejemplo n.º 8
0
 public frmHotkey(LibVP.AccessData v_v, string v_userid, string v_loai, string v_loai_ksk)
 {
     m_v           = v_v;
     m_loai        = v_loai;
     m_userid      = v_userid;
     m_loai_hotkey = v_loai_ksk;
     InitializeComponent();
     lan.Read_Language_to_Xml(this.Name.ToString(), this);
     lan.Changelanguage_to_English(this.Name.ToString(), this);
 }
Ejemplo n.º 9
0
 public frmGiavpKhuyenmai_nhommien(LibVP.AccessData _v, int _userid)
 {
     InitializeComponent();
     v = _v;
     lan.Read_Language_to_Xml(this.Name.ToString(), this);
     lan.Changelanguage_to_English(this.Name.ToString(), this);
     lan.Read_dtgrid_to_Xml(dataGridView2, this.Name + "_" + "dataGridView2");
     lan.Change_dtgrid_HeaderText_to_English(dataGridView2, this.Name + "_" + "dataGridView2");
     i_userid = _userid;
 }
Ejemplo n.º 10
0
 //public frmChonso(LibVP.AccessData v_v, string v_userid)
 //{
 //    m_v = v_v;
 //    m_userid = v_userid;
 //    InitializeComponent();
 //    lan.Read_Language_to_Xml(this.Name.ToString(), this);
 //    lan.Changelanguage_to_English(this.Name.ToString(), this);
 //}
 public frmChonso(LibVP.AccessData v_v, string v_userid, string s_loai, string s_ngay)
 {
     m_v      = v_v;
     m_userid = v_userid;
     InitializeComponent();
     lan.Read_Language_to_Xml(this.Name.ToString(), this);
     lan.Changelanguage_to_English(this.Name.ToString(), this);
     v_loai           = s_loai;
     txtNgaythu.Value = new DateTime(int.Parse(s_ngay.Substring(6, 4)), int.Parse(s_ngay.Substring(3, 2)), int.Parse(s_ngay.Substring(0, 2)), DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second);
 }
Ejemplo n.º 11
0
 public frmNhombhyt(LibVP.AccessData v_v, string v_userid)
 {
     InitializeComponent();
     lan.Read_Language_to_Xml(this.Name.ToString(), this);
     lan.Changelanguage_to_English(this.Name.ToString(), this);
     // lan.Read_dtgrid_to_Xml(dataGridView1, this.Name + "_" + "dataGridView1");
     //lan.Change_dtgrid_HeaderText_to_English(dataGridView1, this.Name + "_" + "dataGridView1");
     m_v      = v_v;
     m_userid = v_userid;
     m_v.f_SetEvent(this);
 }
Ejemplo n.º 12
0
        public frmChondichvuVP_bcbo(string v_mabo, LibVP.AccessData _m_v)
        {
            InitializeComponent();
            f_SetEvent(panel2);
            m_mabo = v_mabo;

            //khởi tạo các biến toàn cục
            this.m_v = _m_v;
            f_load_history();
            f_LoadDMVienPhi();
        }
Ejemplo n.º 13
0
        public frmSystem(LibVP.AccessData v_v, string v_userid)
        {
            InitializeComponent();

            lan.Read_Language_to_Xml(this.Name.ToString(), this);
            lan.Changelanguage_to_English(this.Name.ToString(), this);
            m_v      = v_v;
            m_userid = v_userid;
            f_Load_Data();
            m_v.f_SetEvent(this);
        }
Ejemplo n.º 14
0
        public frmTrongoi_KP(LibVP.AccessData v_v, string v_id_gia, string id_gia_goc)
        {
            InitializeComponent();
            lan.Read_Language_to_Xml(this.Name.ToString(), this);
            lan.Changelanguage_to_English(this.Name.ToString(), this);


            m_v          = v_v;
            v_id_trongoi = v_id_gia;
            s_id_gia_goc = id_gia_goc;
        }
Ejemplo n.º 15
0
 public frmMain(string v_userid, string v_ngaylv, string v_ngaysl)
 {
     __userid = v_userid;
     __ngaylv = v_ngaylv;
     __ngaysl = v_ngaysl;
     InitializeComponent();
     lan.Read_MainMenu_to_Xml(this.Name.ToString() + "menuStrip1", this.menuStrip1);
     lan.Change_mainmenu_to_English(this.Name.ToString() + "menuStrip1", this.menuStrip1);
     //
     lan.Read_Language_to_Xml(this.Name.ToString(), this);
     lan.Changelanguage_to_English(this.Name.ToString(), this);
     m_v = new LibVP.AccessData();
 }
Ejemplo n.º 16
0
        public frmDuyetcls(LibVP.AccessData acc, int userid)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            lan.Read_Language_to_Xml(this.Name.ToString(), this);
            lan.Changelanguage_to_English(this.Name.ToString(), this);
            m = acc; i_userid = userid;
            //
            // TODO: Add any constructor code after InitializeComponent call
            //
        }
Ejemplo n.º 17
0
        public frmKythuatxungdot(LibVP.AccessData v_v, string v_userid, string v_id_gia)
        {
            InitializeComponent();
            lan.Read_Language_to_Xml(this.Name.ToString(), this);
            lan.Changelanguage_to_English(this.Name.ToString(), this);
            lan.Read_dtgrid_to_Xml(dataGridView1, this.Name + "_" + "dataGridView1");
            lan.Change_dtgrid_HeaderText_to_English(dataGridView1, this.Name + "_" + "dataGridView1");

            m_v      = v_v;
            m_id_gia = v_id_gia;
            m_userid = v_userid;
            m_v.f_SetEvent(this);
            f_Load_Data();
        }
Ejemplo n.º 18
0
 public frmChonvp(LibVP.AccessData v_v, string v_userid, string v_field_gia, DataSet v_dsgiavp, string v_loaiform)
 {
     InitializeComponent();
     lan.Read_Language_to_Xml(this.Name.ToString(), this);
     lan.Changelanguage_to_English(this.Name.ToString(), this);
     m_v         = v_v;
     m_userid    = v_userid;
     m_dsgiavp   = v_dsgiavp;
     m_loaiform  = v_loaiform;
     m_field_gia = v_field_gia.ToUpper();
     if (!(m_field_gia == "GIA_TH" || m_field_gia == "GIA_BH" || m_field_gia == "GIA_DV" || m_field_gia == "GIA_NN" || m_field_gia == "GIA_CS" || m_field_gia == "GIA_KSK"))
     {
         m_field_gia = "GIA_TH";
     }
     //m_v.f_SetEvent(this);
 }
Ejemplo n.º 19
0
        public frmQuanlyuser(LibVP.AccessData v_v, TreeNode v_node, string v_userid)
        {
            InitializeComponent();


            lan.Read_Language_to_Xml(this.Name.ToString(), this);
            lan.Changelanguage_to_English(this.Name.ToString(), this);
            //
            lan.Read_ContextMenuStrip_to_Xml(this.Name.ToString() + "_" + "contextMenuStrip1", contextMenuStrip1);
            lan.Change_ContextMenuStrip_to_English(this.Name.ToString() + "_" + "contextMenuStrip1", contextMenuStrip1);
            //
            lan.Read_ContextMenuStrip_to_Xml(this.Name.ToString() + "_" + "contextMenuStrip2", contextMenuStrip2);
            lan.Change_ContextMenuStrip_to_English(this.Name.ToString() + "_" + "contextMenuStrip2", contextMenuStrip2);
            m_v      = v_v;
            m_userid = v_userid;
            m_v.f_SetEvent(this);
            treeView2.Nodes.Add(v_node);
        }
Ejemplo n.º 20
0
 public frmDanhsachphieuchi(LibVP.AccessData v_v, string v_userid)
 {
     try
     {
         InitializeComponent();
         lan.Read_Language_to_Xml(this.Name.ToString(), this);
         lan.Changelanguage_to_English(this.Name.ToString(), this);
         lan.Read_dtgrid_to_Xml(dgHoadon, this.Name + "_" + "dgHoadon");
         lan.Change_dtgrid_HeaderText_to_English(dgHoadon, this.Name + "_" + "dgHoadon");
         m_v      = v_v;
         m_userid = v_userid;
         m_v.f_SetEvent(this);
         f_Load_Data();
     }
     catch
     {
     }
 }
Ejemplo n.º 21
0
        public frmDanhsachchothuchiravien(LibVP.AccessData v_v, string v_userid, string s_doituongthu, string s_khoaphongthu)
        {
            try
            {
                InitializeComponent();
                lan.Read_Language_to_Xml(this.Name.ToString(), this);
                lan.Changelanguage_to_English(this.Name.ToString(), this);
                lan.Read_dtgrid_to_Xml(dgHoadon, this.Name + "_" + "dgHoadon");
                lan.Change_dtgrid_HeaderText_to_English(dgHoadon, this.Name + "_" + "dgHoadon");

                m_v      = v_v;
                m_userid = v_userid;
                m_v.f_SetEvent(this);
                v_doituongthu  = s_doituongthu;
                v_khoaphongthu = s_khoaphongthu;
                f_Load_Data();
            }
            catch
            {
            }
        }
Ejemplo n.º 22
0
        public frmDanhsachchoBHYT(LibVP.AccessData v_v, string v_userid, bool v_thuphi, bool v_tatca)
        {
            try
            {
                InitializeComponent();

                lan.Read_Language_to_Xml(this.Name.ToString(), this);
                lan.Changelanguage_to_English(this.Name.ToString(), this);
                lan.Read_dtgrid_to_Xml(dgHoadon, this.Name + "_" + "dgHoadon");
                lan.Change_dtgrid_HeaderText_to_English(dgHoadon, this.Name + "_" + "dgHoadon");

                m_v      = v_v;
                m_userid = v_userid;
                bthuphi  = v_thuphi; // chỉ thu chi phí bệnh nhân <> bhyt, giống form thu trực tiếp
                btatca   = v_tatca;  // thu tất cả chi phí thu phí + bhyt
                m_v.f_SetEvent(this);
                f_Load_Data();
            }
            catch
            {
            }
        }
Ejemplo n.º 23
0
 public frmChuyentontamung(LibVP.AccessData m_vv)
 {
     InitializeComponent();
     m_v = m_vv;
 }
Ejemplo n.º 24
0
 public frmChonchinhanh()
 {
     InitializeComponent();
     v = new LibVP.AccessData();
 }
Ejemplo n.º 25
0
 public frmChonchinhanh(LibVP.AccessData _v)
 {
     InitializeComponent();
     v = _v;
 }
Ejemplo n.º 26
0
 public frmBKhoadontaichinh(LibVP.AccessData v, string s_userid)
 {
     InitializeComponent();
     m_v      = v;
     v_userid = s_userid;
 }
Ejemplo n.º 27
0
 public frmCapNhatTonTamUng(LibVP.AccessData v_v, string v_userid)
 {
     InitializeComponent();
     m_v      = v_v;
     m_userid = v_userid;
 }
Ejemplo n.º 28
0
 public frmChongoi_kp(LibVP.AccessData v_v)
 {
     InitializeComponent();
     m_v = v_v;
 }