|
|
@@ -39,6 +39,7 @@ public class tinvoiceapplyAppBean extends AppBeanCust {
|
|
|
byrefresh();
|
|
|
return 1;
|
|
|
}
|
|
|
+
|
|
|
@Override
|
|
|
public int UNCHECK() throws P2Exception {
|
|
|
this.SAVE();
|
|
|
@@ -49,4 +50,27 @@ public class tinvoiceapplyAppBean extends AppBeanCust {
|
|
|
byrefresh();
|
|
|
return 1;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 自动发票转手工发票
|
|
|
+ *
|
|
|
+ * @return
|
|
|
+ * @throws P2Exception
|
|
|
+ */
|
|
|
+ public int CHANGETYPE() throws P2Exception {
|
|
|
+ if (msgDialogIsNotOpen()) {
|
|
|
+ msgDialogOpen("确定将当前发票申请转手工历史发票?");
|
|
|
+ }
|
|
|
+ if (msgDialogIsCheckOk()) {
|
|
|
+ tinvoiceapply tinvoiceapply = (tinvoiceapply) getPao();
|
|
|
+ tinvoiceapply.changetype();
|
|
|
+ long id = tinvoiceapply.getUniqueIDValue();
|
|
|
+ this.save();
|
|
|
+ closeApp(this.appName);
|
|
|
+ closeApp("invoiceold");
|
|
|
+ openApp("invoiceold", id);
|
|
|
+ }
|
|
|
+ byrefresh();
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
}
|