📄 sendmail.java.svn-base
字号:
package jm.form.gui.swing.game.sc.sc00 ;
//import jm.form.gui.common.CommonItem;
//import jm.form.gui.common.DBColumNames;
//import jm.framework.gui.AbstractBaseApplet;
//import jm.framework.gui.AbstractBaseDialog;
//import jm.framework.gui.AbstractBaseFrame;
//import jm.framework.gui.JMMesgBox;
//import jm.framework.gui.module.JMButton;
//import jm.framework.gui.module.JMComboBox;
//import jm.framework.gui.module.JMGPanel;
//import jm.framework.gui.module.JMLabel;
//import jm.framework.gui.module.JMTextArea;
//import jm.framework.gui.module.JMTextField;
//import jm.util.JM2DArray;
//import jm.util.JMUtility;
public class SendMail
// extends AbstractBaseDialog implements DBColumNames,CommonItem
{
// /**
// *
// */
// private static final long serialVersionUID = -6735929467404652118L;
//
// public static final String CLASS_NAME = "SendMail" ;
//
// JMLabel rlToName = new JMLabel () ;
//
// Vector<String> pvToName = new Vector<String> () ;
// DefaultComboBoxModel pdCbToName = new DefaultComboBoxModel ( pvToName ) ;
// JMComboBox rcbToName = new JMComboBox ( pdCbToName ) ;
// JM2DArray poToName = null ;
//
// JMLabel rlTitle = new JMLabel () ;
// JMTextField rTFTitle = new JMTextField () ;
// JMTextArea rTAValues = new JMTextArea () ;
// JMLabel rlType = new JMLabel () ;
//
// Vector<String> pvType = new Vector<String> () ;
// DefaultComboBoxModel pdCbType = new DefaultComboBoxModel ( pvType ) ;
// JMComboBox rcbType = new JMComboBox ( pdCbType ) ;
// JM2DArray poType = null ;
//
// JMButton rbClear = new JMButton () ;
// JMButton rbSend = new JMButton () ;
// JMButton rbClose = new JMButton () ;
// JMGPanel rgpBack = new JMGPanel () ;
// boolean isMove = false ;
//
// //Construct the applet
// public SendMail ( AbstractBaseFrame aoOwner , boolean abModal )
// {
// super ( aoOwner , abModal ) ;
// }
//
// //Construct the applet
// public SendMail ( AbstractBaseApplet aoOwner , boolean abModal )
// {
// super ( aoOwner , abModal ) ;
// }
//
// //Initialize the applet
// protected void onParamReceived ()
// {
// try
// {
//// setUSEDB(poSvServerTypes.CON_DB_NAME);
// jbInit () ;
// }
// catch ( Exception e )
// {
// e.printStackTrace () ;
// }
// }
//
// //Component initialization
// private void jbInit ()
// throws Exception
// {
// // final String sMethod = "jbInit";
// this.setSize ( new Dimension ( 640 , 480 ) ) ;
// this.getContentPane ().setLayout ( null ) ;
//
// rlToName.setText ( SendMail_rlToName ) ;
// rlToName.setBounds ( new Rectangle ( 44 , 80 , 55 , 25 ) ) ;
// rcbToName.setBounds ( new Rectangle ( 100 , 80 , 100 , 25 ) ) ;
// //////////////////////////////////////////////////
// //poToName = MasterCatch.getInstance ( this.getUSEDB () ).getUsers () ;
// if ( poToName != null && poToName.rowCount () != 0 )
// {
// for ( int i = 0 ; i < poToName.rowCount () ; i++ )
// {
// pvToName.add ( "" + poToName.getStringValue ( i , JM_CNDBUSERS_NAME ) ) ;
// }
// }
// pvToName.add ( SendMail_pvToName ) ;
//
// rlTitle.setText ( SendMail_rlTitle ) ;
// rlTitle.setBounds ( new Rectangle ( 44 , 120 , 55 , 25 ) ) ;
// rTFTitle.setText ( SendMail_rTFTitle ) ;
// rTFTitle.setBounds ( new Rectangle ( 100 , 120 , 480 , 25 ) ) ;
// rTFTitle.setMaxLength ( 10 ) ;
// rTFTitle.setIMEMethod ( JMTextArea.IME_ON ) ;
// rTFTitle.setLengthMethod ( JMTextField.LENGTH_BY_UNICODE ) ;
// rTFTitle.setRefusalCharacterMode ( 14 ) ;
// rTFTitle.addMouseListener ( new java.awt.event.MouseAdapter ()
// {
// public void mousePressed ( MouseEvent e )
// {
// if ( !isMove )
// {
// rTFTitle.selectAll () ;
// isMove = true ;
// }
// }
//
// public void mouseExited ( MouseEvent e )
// {
// isMove = false ;
// }
// } ) ;
//
// rTAValues.setText ( SendMail_rTAValues ) ;
// rTAValues.setBounds ( new Rectangle ( 44 , 170 , 537 , 239 ) ) ;
// rTAValues.addMouseListener ( new java.awt.event.MouseAdapter ()
// {
// public void mousePressed ( MouseEvent e )
// {
// if ( !isMove )
// {
// rTAValues.selectAll () ;
// isMove = true ;
// }
// }
//
// public void mouseExited ( MouseEvent e )
// {
// isMove = false ;
// }
// } ) ;
// rTAValues.setMaxStringNum ( 20000 ) ;
// rTAValues.setIMEMethod ( JMTextArea.IME_ON ) ;
// rTAValues.setMaxLineLength ( 44 ) ;
// rTAValues.setRefusalCharacterMode ( 14 ) ;
// rTAValues.setLengthMethod ( JMTextField.LENGTH_BY_UNICODE ) ;
//
// rlType.setText ( SendMail_rlType ) ;
// rlType.setBounds ( new Rectangle ( 307 , 80 , 74 , 25 ) ) ;
// rcbType.setBounds ( new Rectangle ( 386 , 80 , 100 , 25 ) ) ;
// /////////////////////////////////////////////////////////////////////////////////
// //poType = MasterCatch.getInstance ( this.getUSEDB () ).getMaster ( "MAIL" ) ;
// if ( poType != null && poType.rowCount () != 0 )
// {
// for ( int i = 0 ; i < poType.rowCount () ; i++ )
// {
// pvType.add ( "" + poType.getStringValue ( i , JM_CNMASTER_NAME ) ) ;
// }
// rcbType.setSelectedIndex ( 1 ) ;
// }
//
// rbClear.setBounds ( new Rectangle ( 300 , 33 , 80 , 30 ) ) ;
// rbClear.setText ( BUTTEN_CLEAR ) ;
// rbClear.setHelp ( BUTTEN_CLEAR_HELP ) ;
// rbClear.addActionListener ( new java.awt.event.ActionListener ()
// {
// public void actionPerformed ( ActionEvent e )
// {
// rTAValues.setText ( SendMail_rTAValues ) ;
// rTFTitle.setText ( SendMail_rTFTitle ) ;
// }
// } ) ;
//
// rbSend.setBounds ( new Rectangle ( 400 , 33 , 80 , 30 ) ) ;
// rbSend.setText ( SendMail_rbSend ) ;
// rbSend.setHelp ( SendMail_rbSend_HELP ) ;
// rbSend.addActionListener ( new java.awt.event.ActionListener ()
// {
// public void actionPerformed ( ActionEvent e )
// {
// mSend () ;
// }
// } ) ;
//
// rbClose.setBounds ( new Rectangle ( 500 , 33 , 80 , 30 ) ) ;
// rbClose.setText ( BUTTEN_COLSE ) ;
// rbClose.setHelp ( BUTTEN_COLSE_HELP ) ;
// rbClose.addActionListener ( new java.awt.event.ActionListener ()
// {
// public void actionPerformed ( ActionEvent e )
// {
// close () ;
// }
// } ) ;
//
// rgpBack.setBounds ( new Rectangle ( 0 , 0 , 630 , 446 ) ) ;
//
// this.getContentPane ().add ( rTFTitle , null ) ;
// this.getContentPane ().add ( rcbType , null ) ;
// this.getContentPane ().add ( rlToName , null ) ;
// this.getContentPane ().add ( rcbToName , null ) ;
// this.getContentPane ().add ( rlType , null ) ;
// this.getContentPane ().add ( rlTitle , null ) ;
// this.getContentPane ().add ( rbClose , null ) ;
// this.getContentPane ().add ( rbClear , null ) ;
// this.getContentPane ().add ( rbSend , null ) ;
// this.getContentPane ().add ( rTAValues , null ) ;
// this.getContentPane ().add ( rgpBack , null ) ;
// }
//
// //发送留言信息
// void mSend ()
// {
// // final String sMethod = "mSend" ;
// try
// {
// int iToName = rcbToName.getSelectedIndex () ;
//
// String sType = JMUtility.changNvl( "" + rcbType.getSelectedItem () ) ;
//
// String sTitle = JMUtility.changNvl ( rTFTitle.getText () ) ;
// String sValues = JMUtility.changNvl ( rTAValues.getText () ) ;
//
// if ( iToName < 0 || sType.equals ( "" ) || sTitle.equals ( "" ) || sValues.equals ( "" ) )
// {
// poMesgBox.showMesgBox ( "E002" , JMMesgBox.TYPE_WARING ) ;
// return ;
// }
//
// if ( sTitle.getBytes ().length > 60 )
// {
// poMesgBox.showMesgBox ( "E003" , JMMesgBox.TYPE_WARING ) ;
// rTFTitle.requestFocus () ;
// return ;
// }
// //全体留言处繺uFFFD
// if ( iToName == pvToName.size () - 1 )
// {
// for ( int i = 0 ; i < poToName.rowCount () ; i++ )
// {
// //去掉自己
//// if ( !poToName.getStringValue ( i , 0 ).equals ( "" +
//// poSession.getSessionOf ( SYS_USERID ) ) )
// {
// mailInsert ( poToName.getStringValue ( i , 0 ) , sType , sTitle , sValues ) ;
// }
// }
// }
// else
// {
// mailInsert ( poToName.getStringValue ( iToName , 0 ) , sType , sTitle , sValues ) ;
// }
// int piback = poMesgBox.showMesgBox ( "E004" , JMMesgBox.TYPE_SURE ) ;
// if ( piback == JMMesgBox.OK_OPTION )
// {
// close () ;
// }
// }
// catch ( Exception ex )
// {
// poMesgBox.showMesgBox ( "999" , JMMesgBox.TYPE_ERR ) ;
// }
// }
//
// //幄憲檤棟
// void mailInsert ( String sToN1ame , String sType , String sTitle , String sValues )
// {
// // final String sMethod = "mailInsert";
// try
// {
//// //庢摼澤検
//// JMFolder oDataForm = new JMFolder () ;
//// oDataForm.addItem ( SVC_DB_NAME , getUSEDB () ) ;
//// oDataForm.addItem ( SVC_DB_ROLE , SVC_SELECT ) ;
//// oDataForm.addItem ( SVC_DB_SQL_ID , "EMAIL0" ) ;
////
//// JM2DArray oCon = new JM2DArray () ;
//// oCon.addItem ( SVC_DB_PARAM , sToN1ame ) ;
////
//// oDataForm.addItem ( SVC_DB_SQL_CON , oCon ) ;
//// JMFolder oFormOut = ( new SocketServerCall () ).invoke ( oDataForm ) ;
//// boolean dbresu = oFormOut.getBooleanValue ( DB_RESULT ) ;
//// if ( !dbresu )
//// {
//// poMesgBox.showMesgBox ( "E005" , MesgBox.TYPE_ERR ) ;
//// }
////
//// oCon = oFormOut.getJM2DArrayValue ( DB_RETURN ) ;
//// int iCount = oCon.rowCount () ;
////
//// pClLogger.printLog ( pClLogger.LOG_DEBUG , CLASS_NAME , sMethod , "poSession=="+this.poSession ) ;
////
//// //幄憲怣懅
//// oDataForm = new JMFolder () ;
//// oDataForm.addItem ( SVC_DB_NAME , getUSEDB () ) ;
//// oDataForm.addItem ( SVC_DB_ROLE , SVC_INSERT ) ;
//// oDataForm.addItem ( SVC_DB_SQL_ID , "EMAIL1" ) ;
////
//// oCon = new JM2DArray () ;
////
//// oCon.addItem ( SVC_DB_PARAM + "0" , sToN1ame ) ;
//// oCon.addItem ( SVC_DB_PARAM + "1" , "" + iCount ) ;
//// oCon.addItem ( SVC_DB_PARAM + "2" , sType ) ;
//// oCon.addItem ( SVC_DB_PARAM + "3" , getLoginer () ) ;
//// oCon.addItem ( SVC_DB_PARAM + "4" , sTitle ) ;
//// oCon.addItem ( SVC_DB_PARAM + "5" , sValues ) ;
//// oCon.addItem ( SVC_DB_PARAM + "6" , poSvServerTypes.getToDays() ) ;
////
//// oDataForm.addItem ( SVC_DB_SQL_CON , oCon ) ;
////
//// JMFolder oDate = ( new SocketServerCall () ).invoke ( oDataForm ) ;
////
//// boolean pbresult = oDate.getBooleanValue ( DB_RESULT ) ;
////
//// if ( !pbresult )
//// {
//// poMesgBox.showMesgBox ( "E006" , MesgBox.TYPE_ERR ) ;
//// return ;
//// }
//// pClLogger.printLog ( pClLogger.LOG_DEBUG , CLASS_NAME , sMethod , LG_END ) ;
// }
// catch ( Exception ex )
// {
// poMesgBox.showMesgBox ( "999" , JMMesgBox.TYPE_ERR ) ;
//// pClLogger.printLog ( pClLogger.LOG_ERROR , CLASS_NAME , sMethod ,
//// ex ) ;
// }
// }
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -