private void buttonX1_Click(object sender, EventArgs e)
        {
            frmPrintHD frm = new frmPrintHD();

            for (int i = 0; i < lvHD.Items.Count; i++)
            {
                if (lvHD.Items[i].Selected == true)
                {
                    frm.ShowFromNhap(int.Parse(lvHD.Items[i].SubItems[6].Text));
                }
            }
        }
 /// <summary>
 /// In Hóa đơn đỏ
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void cmdHDDon_Click(object sender, EventArgs e)
 {
     try
     {
         frmPrintHD frm = new frmPrintHD();
         for (int i = 0; i < lvHD.Items.Count; i++)
         {
             if (lvHD.Items[i].Selected == true)
             {
                 frm.ShowHDNoView(int.Parse(lvHD.Items[i].SubItems[6].Text));
             }
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show("Kiểm tra lại thông tin");
         TLog.WriteErr("frmNhapkho_cmdHDDon_Click", ex.Message + "||" + ex.StackTrace);
     }
 }
Exemplo n.º 3
0
        /// <summary>
        /// In Hóa đơn đỏ
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void cmdHDDon_Click(object sender, EventArgs e)
        {
            try
            {
                frmPrintHD frm = new frmPrintHD();
                for (int i = 0; i < lvHD.Items.Count; i++)
                    if (lvHD.Items[i].Selected == true)
                    {
                        frm.ShowHDNoView(int.Parse(lvHD.Items[i].SubItems[6].Text));
                    }
            }
            catch (Exception ex)
            {
                MessageBox.Show("Kiểm tra lại thông tin");
                TLog.WriteErr("frmNhapkho_cmdHDDon_Click", ex.Message + "||" + ex.StackTrace);

            }
        }
Exemplo n.º 4
0
 private void buttonX1_Click(object sender, EventArgs e)
 {
     frmPrintHD frm = new frmPrintHD();
     for (int i = 0; i < lvHD.Items.Count; i++)
         if (lvHD.Items[i].Selected == true)
         {
             frm.ShowFromXuat(int.Parse(lvHD.Items[i].SubItems[6].Text));
         }
 }