Exemple #1
0
							$nativeUIManager.confirm('温馨提示', '你确定放弃当前填写内容?', ["是", "否"], function() {
								if ($controlWindow.mainWindowExist()) {
									$controlWindow.mainWindowShow();
								} else {
									$controlWindow.homeWindowShow();
								}
								$windowManager.close();
							}, function() {
Exemple #2
0
				$keyManager.backButton(function() {
					if (!backPass) {
						backPass = true;
						var title = $windowManager.title();
						if (title == 'main') {
							$nativeUIManager.confirm('退出提醒', '你确定要退出快捷审批?', ['确定', '取消'], function() {
								plus.runtime.quit();
								backPass = false;
							}, function() {
								backPass = false;
							});
						} else if (title == 'mainList') {
							$controlWindow.homeWindowShow();
							$windowManager.close();
							backPass = false;
						} else if (title == 'selectItem') {
							$controlWindow.editWindowShow();
							$windowManager.close();
							backPass = false;
						} else if (title == 'selectDept') {
							$controlWindow.editWindowShow();
							$windowManager.close();
							backPass = false;
						} else if (title == 'selectProvince') {
							$controlWindow.editWindowShow();
							$windowManager.close();
							backPass = false;
						} else if (title == 'selectCity') {
							$windowManager.close();
							backPass = false;
						} else if (title == 'evalDetail') {
							$controlWindow.editWindowShow();
							$windowManager.close();
							backPass = false;
						} else if (title == 'reqView') {
							$controlWindow.mainWindowShow();
							$windowManager.close();
							backPass = false;
						} else if (title == 'reqEdit') {
							$nativeUIManager.confirm('温馨提示', '你确定放弃当前填写内容?', ["是", "否"], function() {
								if ($controlWindow.mainWindowExist()) {
									$controlWindow.mainWindowShow();
								} else {
									$controlWindow.homeWindowShow();
								}
								$windowManager.close();
							}, function() {

							});
							backPass = false;
						} else if (title == 'attList') {
							$controlWindow.reqViewWindowShow();
							$controlWindow.taskViewWindowShow();
							$controlWindow.manageViewWindowShow();
							$windowManager.close();
							backPass = false;
						} else if (title == 'reqSend') {
							if ($controlWindow.mainWindowExist()) {
								$controlWindow.mainWindowShow();
							} else {
								$controlWindow.homeWindowShow();
							}
							$windowManager.close();
							backPass = false;
						}else if (title == 'flowList') {
							$controlWindow.editWindowShow();
							$windowManager.close();
							backPass = false;
						} else if (title == 'contactsEdit') {
							$controlWindow.editWindowShow();
							$windowManager.close();
							backPass = false;
						} else if (title == 'otDetail') {
							$controlWindow.editWindowShow();
							$windowManager.close();
							backPass = false;
						} else if (title == 'erDetail') {
							$controlWindow.editWindowShow();
							$windowManager.close();
							backPass = false;
						} else if (title == 'listDetail') {
							$controlWindow.editWindowShow();
							$windowManager.close();
							backPass = false;
						} else if (title == 'contactsForward') {
							$controlWindow.taskForwardWindowShow();
							$windowManager.close();
							backPass = false;
						} else if (title == 'taskView') {
							$controlWindow.mainWindowShow();
							$windowManager.close();
							backPass = false;
						} else if (title == 'taskProcess') {
							$controlWindow.taskViewWindowShow();
							$windowManager.close();
							backPass = false;
						} else if (title == 'taskForward') {
							$controlWindow.taskViewWindowShow();
							$windowManager.close();
							backPass = false;
						} else if (title == 'manageView') {
							$controlWindow.mainWindowShow();
							$windowManager.close();
							backPass = false;
						} else if (title == 'manageProcess') {
							$controlWindow.manageViewWindowShow();
							$windowManager.close();
							backPass = false;
						}else if (title == 'approval') {
							$controlWindow.flowAddWindowShow();
							$windowManager.close();
							backPass = false;
						} else {
							$windowManager.close();
							backPass = false;
						}
					}
				});