Пример #1
0
 private void PrintReport(String _RealRecieveHeadId)
 {
     rs = new PreRecieve.rptRealRecieve();
         rs.StartPosition = FormStartPosition.CenterScreen;
         rs.setRealRecieveHeadId = _RealRecieveHeadId;
         rs.ShowDialog();
 }
Пример #2
0
 public Boolean ExecuteSQL(String sql)
 {
     Boolean rs = false;
     try
     {
         SqlCommand cmd = new SqlCommand();
         cmd.CommandText = sql;
         cmd.CommandType = CommandType.Text;
         cmd.Connection = Conn;
         cmd.ExecuteNonQuery();
         rs = true;
     }
     catch (Exception ex)
     {
         MessageBox.Show("พบข้อผิดพลาด เนื่องจาก " + ex.Message, "ข้อผิดพลาด", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     return rs;
 }
Пример #3
0
        private void PrintReport(String _RealRecieveHeadId)
        {
            if (MessageBox.Show("คุณต้องการพิมพ์ใบเบิก " + _RealRecieveHeadId, "ยืนยันการพิมพ์", MessageBoxButtons.OKCancel, MessageBoxIcon.Information) == System.Windows.Forms.DialogResult.OK)
            {

                rs = new PreRecieve.rptRealRecieve();
                rs.StartPosition = FormStartPosition.CenterScreen;
                rs.setRealRecieveHeadId = _RealRecieveHeadId;
                rs.ShowDialog();
            }
        }