Esempio n. 1
0
 private void menu_A_3_Khangsinhdo_Click(object sender, EventArgs e)
 {
     try
     {
         if (m_v.ttrv_Quanlythathu(m_userid))
         {
             frmChonso af0 = new frmChonso(m_v, m_userid, "1", m_ngay10);
             af0.ShowInTaskbar = false;
             af0.Text          = lan.Change_language_MessageText("THU - CHI THANH TOÁN RA VIỆN");
             if (af0.ShowDialog() == DialogResult.OK && af0.s_quyenso != "")
             {
                 f_createview_thuvp(m_v.mmyy(af0.s_ngay));
                 frmThuchiravien af = new frmThuchiravien(m_v, m_userid);
                 af.ShowInTaskbar     = false;
                 af.MdiParent         = this;
                 af.s_loaidv          = af0.s_loaidv;
                 af.s_quyenso         = af0.s_quyenso;
                 af.s_quyenso_thatthu = af0.s_quyenso_thatthu;
                 af.s_quyenso_thua    = af0.s_quyenso_thua;
                 af.s_quyenso_dichvu  = af0.s_quyenso_dichvu;
                 af.s_ngay            = af0.s_ngay;
                 af.WindowState       = FormWindowState.Maximized;
                 af.Show();
             }
         }
         else
         {
             frmChonso af0 = new frmChonso(m_v, m_userid, "1", m_ngay10);
             af0.ShowInTaskbar = false;
             af0.Text          = lan.Change_language_MessageText("THU - CHI THANH TOÁN RA VIỆN");
             if (af0.ShowDialog() == DialogResult.OK && af0.s_quyenso != "")
             {
                 f_createview_thuvp(m_v.mmyy(af0.s_ngay));
                 frmThuchiravien af = new frmThuchiravien(m_v, m_userid);
                 af.ShowInTaskbar    = false;
                 af.MdiParent        = this;
                 af.s_loaidv         = af0.s_loaidv;
                 af.s_quyenso        = af0.s_quyenso;
                 af.s_quyenso_dichvu = af0.s_quyenso_dichvu;
                 af.s_ngay           = af0.s_ngay;
                 af.WindowState      = FormWindowState.Maximized;
                 af.Show();
             }
         }
     }
     catch
     {
     }
 }
Esempio n. 2
0
 private void toolStripMenuItem18_Click(object sender, EventArgs e)
 {
     try
     {
         frmChonso af0 = new frmChonso(m_v, m_userid, "2", m_ngay10);
         af0.ShowInTaskbar = false;
         af0.Text          = lan.Change_language_MessageText("VIỆN PHÍ BHYT NGOẠI TRÚ");
         if (af0.ShowDialog() == DialogResult.OK && af0.s_quyenso != "")
         {
             //if (m_v.bhyt_thuBHYT_tructiep(m_userid) == false)
             //{
             f_createview_thuvp(m_v.mmyy(af0.s_ngay));
             frmVienphiBHYT af = new frmVienphiBHYT(m_v, m_userid);
             af.ShowInTaskbar    = false;
             af.MdiParent        = this;
             af.s_loaidv         = af0.s_loaidv;
             af.s_quyenso        = af0.s_quyenso;
             af.s_quyenso_dichvu = af0.s_quyenso_dichvu;
             af.s_ngay           = af0.s_ngay;
             af.WindowState      = FormWindowState.Maximized;
             af.Show();
             //}
             //else
             //{
             //    f_createview_thuvp(m_v.mmyy(af0.s_ngay));
             //    frmVienphiBHYT_hepa af = new frmVienphiBHYT_hepa(m_v, m_userid);
             //    af.ShowInTaskbar = false;
             //    af.MdiParent = this;
             //    af.s_loaidv = af0.s_loaidv;
             //    af.s_quyenso = af0.s_quyenso;
             //    af.s_quyenso_dichvu = af0.s_quyenso_dichvu;
             //    af.s_ngay = af0.s_ngay;
             //    af.WindowState = FormWindowState.Maximized;
             //    af.Show();
             //}
         }
     }
     catch
     {
     }
 }
Esempio n. 3
0
 private void menu_A_1_Laymau_Click(object sender, EventArgs e)
 {
     try
     {
         frmChonso af0 = new frmChonso(m_v, m_userid, "0", m_ngay10);
         af0.ShowInTaskbar = false;
         af0.Text          = lan.Change_language_MessageText("THU VIỆN PHÍ TRỰC TIẾP");
         if ((af0.ShowDialog() == DialogResult.OK) && (af0.s_quyenso != "") && (af0.s_loaidv != ""))
         {
             f_createview_thuvp(m_v.mmyy(af0.s_ngay));
             if (m_v.tt_Thutheonamhinh(m_userid))
             {
                 frmThutructiep_new af = new frmThutructiep_new(m_v, m_userid);
                 af.ShowInTaskbar    = false;
                 af.MdiParent        = this;
                 af.WindowState      = FormWindowState.Maximized;
                 af.s_loaidv         = af0.s_loaidv;
                 af.s_quyenso        = af0.s_quyenso;
                 af.s_quyenso_dichvu = af0.s_quyenso_dichvu;
                 af.s_ngay           = af0.s_ngay;
                 af.Show();
             }
             else
             {
                 frmThutructiep af = new frmThutructiep(m_v, m_userid);
                 //frmThutructiep_touchfing af = new frmThutructiep_touchfing(m_v, m_userid);
                 af.ShowInTaskbar    = false;
                 af.MdiParent        = this;
                 af.WindowState      = FormWindowState.Maximized;
                 af.s_loaidv         = af0.s_loaidv;
                 af.s_quyenso        = af0.s_quyenso;
                 af.s_quyenso_dichvu = af0.s_quyenso_dichvu;
                 af.s_ngay           = af0.s_ngay;
                 af.Show();
             }
         }
     }
     catch
     {
     }
 }
Esempio n. 4
0
 private void toolStripMenuItem17_Click(object sender, EventArgs e)
 {
     try
     {
         frmChonso af0 = new frmChonso(m_v, m_userid, "5", m_ngay10);
         af0.ShowInTaskbar = false;
         af0.Text          = lan.Change_language_MessageText("LẬP PHIẾU CHI");
         if (af0.ShowDialog() == DialogResult.OK && af0.s_quyenso != "")
         {
             frmPhieuchi af = new frmPhieuchi(m_v, m_userid);
             af.ShowInTaskbar = false;
             af.MdiParent     = this;
             af.s_loaidv      = af0.s_loaidv;
             af.s_quyenso     = af0.s_quyenso;
             af.s_ngay        = af0.s_ngay;
             af.WindowState   = FormWindowState.Maximized;
             af.Show();
         }
     }
     catch
     {
     }
 }
Esempio n. 5
0
 private void menu_A_2_Phieuxetnghiem_Click(object sender, EventArgs e)
 {
     try
     {
         frmChonso af0 = new frmChonso(m_v, m_userid, "3", m_ngay10);
         af0.ShowInTaskbar = false;
         af0.Text          = lan.Change_language_MessageText("THU TIỀN TẠM ỨNG");
         if (af0.ShowDialog() == DialogResult.OK)
         {
             f_createview_thuvp(m_v.mmyy(af0.s_ngay));
             frmThutamung af = new frmThutamung(m_v, m_userid);
             af.ShowInTaskbar = false;
             af.MdiParent     = this;
             af.s_loaidv      = af0.s_loaidv;
             af.s_quyenso     = af0.s_quyenso;
             af.s_ngay        = af0.s_ngay;
             af.WindowState   = FormWindowState.Maximized;
             af.Show();
         }
     }
     catch
     {
     }
 }