📄 workflow_documentnewdoc.java
字号:
jPanel1.add(jTextField3, new XYConstraints(72, 48, 157, 24));
jPanel1.add(jLabel4, new XYConstraints(8, 82, 57, 23));
jPanel1.add(jTextField4, new XYConstraints(73, 81, 105, 24));
jPanel1.add(jTextField5, new XYConstraints(282, 81, 67, 24));
jPanel1.add(jLabel6, new XYConstraints(8, 149, 57, 23));
jPanel1.add(jLabel7, new XYConstraints(8, 117, 57, 23));
jPanel1.add(jComboBox1, new XYConstraints(74, 116, 146, -1));
jPanel1.add(jLabel8, new XYConstraints(8, 184, 57, 23));
jPanel1.add(jLabel9, new XYConstraints(8, 220, 57, 23));
jPanel1.add(jLabel10, new XYConstraints(8, 255, 57, 23));
jPanel1.add(jTextField6, new XYConstraints(75, 254, 274, 27));
jPanel1.add(jLabel11, new XYConstraints(8, 289, 57, 23));
jPanel1.add(jTextField7, new XYConstraints(76, 287, 273, 25));
jPanel1.add(jLabel12, new XYConstraints(8, 321, 57, 23));
jPanel1.add(jTextField8, new XYConstraints(75, 320, 98, 24));
jPanel1.add(jLabel5, new XYConstraints(215, 82, 58, 23));
jPanel1.add(jComboBox2, new XYConstraints(280, 15, 70, 22));
jPanel1.add(jLabel15, new XYConstraints(8, 353, 57, 23));
jPanel1.add(jTextField2, new XYConstraints(75, 353, 98, 24));
jPanel1.add(jTextField11, new XYConstraints(74, 150, 276, 26));
jPanel1.add(jTextField12, new XYConstraints(74, 183, 276, 26));
jPanel1.add(jTextField13, new XYConstraints(74, 219, 276, 26));
jPanel1.add(jTextField9, new XYConstraints(252, 321, 98, 24));
jPanel1.add(jTextField10, new XYConstraints(252, 353, 98, 24));
jPanel1.add(jLabel13, new XYConstraints(184, 322, 58, 24));
jPanel1.add(jLabel16, new XYConstraints(182, 353, 59, 24));
jPanel1.add(jComboBox3, new XYConstraints(230, 116, 120, -1));
this.add(jButton2, new XYConstraints(265, 449, 97, 24));
this.add(jButton3, new XYConstraints(36, 449, 97, 24));
this.add(jButton1, new XYConstraints(151, 449, 97, 24));
this.add(jLabel14, new XYConstraints(121, 13, -1, 27));
this.add(jPanel1, new XYConstraints(13, 51, 375, 389));
}
private String return_NodeCode() {
title = (String) jComboBox1.getSelectedItem();
return title;
}
//////////////////取发文号方法//////////////////////////////
private String return_doc_reader() {
title = (String) wdc.jTextField4.getText();
return title;
}
////////////////////////////////////
private String return_receiveid() {
title = (String) jTextField1.getText();
return title;
}
private String return_secretid() {
title = (String) jComboBox2.getSelectedItem();
return title;
}
private String return_sendtime() {
title = (String) jTextField3.getText();
return title;
}
private String return_writer() {
title = (String) jTextField4.getText();
return title;
}
private String return_writetime() {
title = (String) jTextField5.getText();
return title;
}
private String return_doc_type() {
title = (String) jComboBox1.getSelectedItem();
return title;
}
private String return_doc_title() {
title = (String) jTextField11.getText();
return title;
}
private String return_mainG_dep() {
title = (String) jTextField12.getText();
return title;
}
private String return_main_chars() {
title = (String) jTextField7.getText();
return title;
}
private String return_main_sender() {
title = (String) jTextField8.getText();
return title;
}
private String return_second_sender() {
title = (String) jTextField9.getText();
return title;
}
private String return_typer() {
title = (String) jTextField2.getText();
return title;
}
private String return_changer() {
title = (String) jTextField10.getText();
return title;
}
private String return_doccontent() {
title = wdc.jEditorPane1.getText();
return title;
}
private String return_doc_head() {
title = (String) jComboBox3.getSelectedItem();
return title;
}
private void put_doccontent() {
if (!juawl.equals(null)) {
if (!juawl.isEmpty()) {
this.jTextField1.setText(juawl.get(0).toString());
this.jComboBox2.setSelectedItem(juawl.get(1).toString());
this.jTextField3.setText(juawl.get(2).toString());
this.jTextField4.setText(juawl.get(3).toString());
this.jTextField5.setText(juawl.get(4).toString());
this.jComboBox1.setSelectedItem(juawl.get(5).toString());
this.jComboBox3.setSelectedItem(juawl.get(6).toString());
this.jTextField11.setText(juawl.get(7).toString());
this.jTextField12.setText(juawl.get(8).toString());
this.jTextField7.setText(juawl.get(9).toString());
this.jTextField8.setText(juawl.get(10).toString());
this.jTextField9.setText(juawl.get(11).toString());
this.jTextField2.setText(juawl.get(12).toString());
this.jTextField10.setText(juawl.get(13).toString());
}
}
}
///////////////////////////////////////////////////////////////////
void jButton1_actionPerformed(ActionEvent e) {
wdc = new workflow_DocumentContent(return_doc_title(), return_doc_type(),
return_doc_head());
jp1.add("公文正文编辑", wdc);
}
void jButton2_actionPerformed(ActionEvent e) {
wisq.AddDoc(return_receiveid(), return_secretid(), return_sendtime(),
return_writer(), return_writetime(), return_doc_type(),
return_doc_head(),
return_doc_title(), return_mainG_dep(), return_main_chars(),
return_main_sender(), return_second_sender(), return_typer(),
return_changer(), return_doccontent(), return_doc_reader());
wdtc.createnode(return_receiveid());
JOptionPane.showMessageDialog(null, "成功保存文档....");
}
void jButton3_actionPerformed(ActionEvent e) {
wdc = new workflow_DocumentContent(return_doc_title(), return_doc_type(),
return_doc_head());
jp1.add("公文正文", wdc);
}
}
class workflow_DocumentNewDoc_jButton1_actionAdapter
implements java.awt.event.ActionListener {
workflow_DocumentNewDoc adaptee;
workflow_DocumentNewDoc_jButton1_actionAdapter(workflow_DocumentNewDoc
adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton1_actionPerformed(e);
}
}
class workflow_DocumentNewDoc_jButton2_actionAdapter
implements java.awt.event.ActionListener {
workflow_DocumentNewDoc adaptee;
workflow_DocumentNewDoc_jButton2_actionAdapter(workflow_DocumentNewDoc
adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton2_actionPerformed(e);
}
}
class workflow_DocumentNewDoc_jButton3_actionAdapter implements java.awt.event.ActionListener {
workflow_DocumentNewDoc adaptee;
workflow_DocumentNewDoc_jButton3_actionAdapter(workflow_DocumentNewDoc adaptee) {
this.adaptee = adaptee;
}
public void actionPerformed(ActionEvent e) {
adaptee.jButton3_actionPerformed(e);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -