コード例 #1
0
        private void OTHER_DET_Click(object sender, EventArgs e)
        {
            frmAddl_Info frmadd = new frmAddl_Info(objBASEFILEDS.HTMAIN, 0, objBASEFILEDS.Code, objBASEFILEDS.Tran_mode, OTHER_DET.Name, OTHER_DET.Text);

            frmadd.dset    = objBASEFILEDS.dsBASEADDIFIELD;
            frmadd.ObjBSFD = objBASEFILEDS;
            frmadd.ShowDialog();
        }
コード例 #2
0
 private void dgvProject_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     try
     {
         DataGridView dgv = sender as DataGridView;
         if (dgv != null & e.RowIndex != -1 && e.ColumnIndex != -1)
         {
             DataGridViewButtonCell b = dgv.Rows[e.RowIndex].Cells[e.ColumnIndex] as DataGridViewButtonCell;
             if (b != null)
             {
                 frmAddl_Info objfrmAddl_Info = new frmAddl_Info(((Hashtable)objBASEFILEDS.HTITEM[(dgv.CurrentRow.Cells["PTSERIAL"].Value)]), 1, objBASEFILEDS.Code, objBASEFILEDS.Tran_mode, b.OwningColumn.Name, b.OwningColumn.HeaderText);
                 objfrmAddl_Info.dset    = objBASEFILEDS.dsBASEADDIFIELDITEM;
                 objfrmAddl_Info.ObjBSFD = objBASEFILEDS;
                 objfrmAddl_Info.ShowDialog();
             }
         }
     }
     catch (Exception ex)
     {
         AutoClosingMessageBox.Show(ex.Message, "Exception", 3000);
     }
 }
コード例 #3
0
        private void OTHER_DET_Click(object sender, EventArgs e)
        {
            frmAddl_Info frmadd = new frmAddl_Info(objBASEFILEDS.HTMAIN, 0, objBASEFILEDS.Code, objBASEFILEDS.Tran_mode, OTHER_DET.Name, OTHER_DET.Text);

            frmadd.dset    = objBASEFILEDS.dsBASEADDIFIELD;
            frmadd.ObjBSFD = objBASEFILEDS;
            frmadd.ShowDialog();
            //try
            //{
            //    SmtpMail.SmtpServer.Insert(0, "INODE-SHA");
            //    MailMessage Msg = new MailMessage();
            //    Msg.To = "*****@*****.**";
            //    Msg.From = "*****@*****.**";
            //    Msg.Subject = "Crystal Report Attachment ";
            //    Msg.Body = "Crystal Report Attachment ";
            //    Msg.Attachments.Add(new MailAttachment("D:\\TOP25.xlsx"));
            //    System.Web.Mail.SmtpMail.Send(Msg);
            //}
            //catch (Exception ex)
            //{
            //    MessageBox.Show(ex.ToString());
            //}
        }
コード例 #4
0
 private void dgvProject_KeyPress(object sender, KeyPressEventArgs e)
 {
     try
     {
         if (objBASEFILEDS.BlnStopItemEnter)
         {
             DataGridView dgv = sender as DataGridView;
             if (dgv != null)
             {
                 DataGridViewButtonCell b = dgv.CurrentCell as DataGridViewButtonCell;
                 if (b != null)
                 {
                     frmAddl_Info objfrmAddl_Info = new frmAddl_Info(((Hashtable)objBASEFILEDS.HTITEM[(dgv.CurrentRow.Cells["PTSERIAL"].Value)]), 1, objBASEFILEDS.Code, objBASEFILEDS.Tran_mode, b.OwningColumn.Name, b.OwningColumn.HeaderText);
                     objfrmAddl_Info.dset    = objBASEFILEDS.dsBASEADDIFIELDITEM;
                     objfrmAddl_Info.ObjBSFD = objBASEFILEDS;
                     objfrmAddl_Info.ShowDialog();
                 }
             }
         }
     }
     catch (Exception ex)
     {
     }
 }