Vous êtes sur la page 1sur 2

//$ngConfirm({

// title: "Create New Export Job",


// contentUrl: 'addNewJob.html',
// containerFluid: true,
// scope: $scope,
// buttons: {
// yes: {
// text: "Save",
// btnClass: 'btn-blue',
// action: function () {
// if ($scope.newExportJobName &&
$scope.newExportJobName.length > 4) {
// if (!$scope.isExportNameExist()) {
// $scope.saveNewExportJob();
// } else {
// toaster.warning(shared.toasterTitle, "Export Job
Name already Exists!");
// return false;
// }
// } else {
// toaster.warning(shared.toasterTitle, "Export Job Name
should be atleast 5 characters long!");
// return false;
// }
// }
// },
// no: {
// text: 'Cancel'
// }
// }
//});

//$scope.saveNewExportJob = function () {
// $scope.loading = true;
// services.saveNewExportJob({ action: 'SaveNewExportJob' }, { Name:
$scope.newExportJobName }, function () {
// toaster.success(shared.toasterTitle, "New Export Job Created
Successfully!");
// $scope.getAllExportJobs();
// $scope.loading = false;
// $scope.isJobSelected = false;
// }, function (response) {
// $scope.loading = false;
// toaster.error(shared.toasterTitle, response.data.error);
// });
//};

<script type="text/ng-template" id="addNewJob.html">


<style>
.ng-confirm-box {
width: 590px;
}
</style>
<div style="margin-left:20px;margin-right:20px;margin-top:10px;">
<!-- form start -->
<form name="addNewJob" class="form-horizontal">
<div class="box-body">
<div class="form-group">
<label class="col-sm-4 control-label">Export Job Name<span
class="text-danger"><strong>*</strong></span></label>
<div class="col-sm-8">
<input type="text" class="form-control" ng-
model="newExportJobName"
ng-required="true" maxlength="255"
placeholder="Export Job Name">
</div>
</div>
</div>
</form>
</div>
</script>

debugger;
//if ($scope.configuration.name == null ||
$scope.configuration.name.length <= 0) {
// toaster.warning(shared.toasterTitle, "Please enter Export Job
Name!");
//}
if ($scope.configuration.connectionString == null ||
$scope.configuration.connectionString.length <= 0) {
toaster.warning(shared.toasterTitle, "Please select Database
from the list!");
}
//else if ($scope.configuration.timeout == null ||
$scope.configuration.timeout == 0) {
// toaster.warning(shared.toasterTitle, "Please enter timeout
value");
//}
else if ($scope.configuration.fileType == null ||
$scope.configuration.fileType.length <= 0) {
toaster.warning(shared.toasterTitle, "Please select file
type!");
}
else {}

Vous aimerez peut-être aussi