|
@@ -22,6 +22,7 @@ import u8c.ui.mytest.action.DemandEditAction;
|
|
|
import u8c.ui.mytest.action.DemandExportAction;
|
|
|
import u8c.ui.mytest.action.DemandImportAction;
|
|
|
import u8c.ui.mytest.action.DemandQueryAction;
|
|
|
+import u8c.ui.mytest.action.DemandReturnFromCardToListAction;
|
|
|
import u8c.ui.mytest.action.DemandSaveAction;
|
|
|
import u8c.ui.mytest.action.DemandUnApproveAction;
|
|
|
import u8c.ui.mytest.button.DemandBtnStateReg;
|
|
@@ -35,7 +36,7 @@ public class DemandTestUI extends FrameUI{
|
|
|
|
|
|
@Override
|
|
|
protected void initButtons() {
|
|
|
-
|
|
|
+
|
|
|
getBtnManager().addButtonByID(AbstractBtnReg.SYSBTN_ADD);
|
|
|
getBtnManager().addButtonByID(AbstractBtnReg.SYSBTN_EDIT);
|
|
|
getBtnManager().addButtonByID(AbstractBtnReg.SYSBTN_DELETE);
|
|
@@ -52,12 +53,12 @@ public class DemandTestUI extends FrameUI{
|
|
|
|
|
|
|
|
|
|
|
|
- getBtnManager().addButtonByID(AbstractBtnReg.USERBTN_boExportImport);
|
|
|
+ getBtnManager().addButtonByID(AbstractBtnReg.USERBTN_boExportImport);
|
|
|
getBtnManager().addChildButtonsByIDs(AbstractBtnReg.USERBTN_boExportImport ,
|
|
|
new int []{AbstractBtnReg.SYSBTN_EXPORT,AbstractBtnReg.SYSBTN_IMPORT});
|
|
|
getBtnManager().addButtonByID(AbstractBtnReg.USERBTN_ClOSE);
|
|
|
|
|
|
-
|
|
|
+
|
|
|
getBtnManager().regCmd(AbstractBtnReg.SYSBTN_ADD, new DemandAddAction(this));
|
|
|
getBtnManager().regCmd(AbstractBtnReg.SYSBTN_EDIT, new DemandEditAction(this));
|
|
|
getBtnManager().regCmd(AbstractBtnReg.SYSBTN_DELETE, new DemandDeleteAction(this));
|
|
@@ -68,7 +69,7 @@ public class DemandTestUI extends FrameUI{
|
|
|
getBtnManager().regCmd(AbstractBtnReg.SYSBTN_ADD_LINE, new AddLineAction(this));
|
|
|
getBtnManager().regCmd(AbstractBtnReg.SYSBTN_EDIT_LINE, new EditLineAction(this));
|
|
|
getBtnManager().regCmd(AbstractBtnReg.SYSBTN_DEL_LINE, new DeleteLineAction(this));
|
|
|
- getBtnManager().regCmd(AbstractBtnReg.SYSBTN_RETURN, new ReturnFromCardToListAction(this));
|
|
|
+ getBtnManager().regCmd(AbstractBtnReg.SYSBTN_RETURN, new DemandReturnFromCardToListAction(this));
|
|
|
getBtnManager().regCmd(AbstractBtnReg.SYSBTN_EXAMINE, new DemandApproveAction(this));
|
|
|
getBtnManager().regCmd(AbstractBtnReg.SYSBTN_CANCELEXAMINE, new DemandUnApproveAction(this));
|
|
|
getBtnManager().regCmd(AbstractBtnReg.SYSBTN_EXPORT, new DemandExportAction(this));
|
|
@@ -78,7 +79,7 @@ public class DemandTestUI extends FrameUI{
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
getBtnManager().adjustButtonOrder(new int[] {
|
|
|
AbstractBtnReg.SYSBTN_ADD,
|
|
|
AbstractBtnReg.SYSBTN_EDIT,
|
|
@@ -102,44 +103,44 @@ public class DemandTestUI extends FrameUI{
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- protected MainPanel createMainPanel() {
|
|
|
+ protected MainPanel createMainPanel() {
|
|
|
ManageDataModel model = (ManageDataModel) getDataModel();
|
|
|
return new DemandMainPanel(this, model.getBillTempletCode(), model.getBillTempletBusiType());
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- protected TopPanel createTopPanel() {
|
|
|
+ protected TopPanel createTopPanel() {
|
|
|
return new DemandTopPanel(this);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- protected BtnStateReg createButtonStateRegister() {
|
|
|
+ protected BtnStateReg createButtonStateRegister() {
|
|
|
return new DemandBtnStateReg(getDataModel().getState());
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- protected DemandDataModel createDataModel() {
|
|
|
+ protected DemandDataModel createDataModel() {
|
|
|
return new DemandDataModel();
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public boolean needLeftPanel() {
|
|
|
+ public boolean needLeftPanel() {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public boolean needTopPanel() {
|
|
|
+ public boolean needTopPanel() {
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getQueryNodeKey() {
|
|
|
-
|
|
|
+ public String getQueryNodeKey() {
|
|
|
+
|
|
|
return "400303";
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String getModuleCode() {
|
|
|
+ public String getModuleCode() {
|
|
|
return "400303";
|
|
|
}
|
|
|
|