Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "huntethan89"

Is there any link between OU and Roles in ASP.NET Zero? Both of them seems to be completely independent. Is Zero completely missed this functionality?

Question

We want to implement the roles so that they appear hierarchically . Each level will have different permissions. The roles does not need to inherit permissions, we should just be able to link and show them in hierarchical form.

An example of roles that we want is- Vancouver ---->Manager -------->General Manager -------->Assistant General Manager

Toronto ---->Manager -------->General Manager -------->Assistant General Manager

Is there a feature in ASP.NET Zero that allows us to achieve this?

HI ,

How can i update my project files to latest ASP NET zero version without any problem on my current project. I want to update to latest version of ASP net zero. Currently i am using 2.3 version.

Thanks

Question

Hi, i want to implement Full text search using your pagedresultdto. Following is the code i am using to get list of records. In this i want to implement Full text search.

public async Task<PagedResultDto<BuilderListDto>> getBuilders1(GetBuilderTrack1 input) { IQueryable<BuildersInformation> files; files = _buildersRepository .GetAll() //.Include(p => p.User) .WhereIf( !input.Filter.IsNullOrEmpty(), p => p.BuilderName.ToLower().Contains(input.Filter.ToLower()) //|| p.BuilderAddress.ToLower().Contains(input.Filter.ToLower()) ) //.WhereIf(!input.City.IsNullOrEmpty(), // p => p.CityFor.ToLower().Contains(input.City.ToLower())) .OrderBy(p => p.BuilderName).AsQueryable();

        var userCount = await files.CountAsync();
        var Files = await files
            .OrderBy(input.Sorting)
            .PageBy(input)
            .ToListAsync();
        
        var builderListDto = Files.MapTo&lt;List&lt;BuilderListDto&gt;>();
        return new PagedResultDto&lt;BuilderListDto&gt;(
           userCount,
           builderListDto
           );
    }
Answer

Hi,

No, it didn't work, i am using google chrome.

Thanks

Question

Hi,

I used the sorting function in jtable. but when i sort the table on browser, it is not sorting according to selected Column. Following is my jtable code. Is there any other place where i need to initialize sorting ?

var _$FileTable = $('#FileTable');

_$FileTable.jtable({
			selecting: true,
			paging: true,
			pageSize: 50,
			sorting: true,
			multiSorting: true,
			actions: {
				listAction: {
					method: _fileService.getFiles
				}
			},

			fields: {
				id: {
					key: true,
					list: false
				},



				actions: {
					title: app.localize('Actions'),
					 width: '10%',
					sorting: false,
					display: function (data) {
						var $span = $('<span></span>');
						if (_permissions.open) {
							if (data.record.typeOfRealEstate == 0 || data.record.typeOfRealEstate == 1) {
								$('<a class="RealEstateImage" data-toggle="tooltip" data-placement="right" title="Open File" href="../Mpa/BuilderInformation/Index?jobid=' + data.record.id + '" ></a>')
									.appendTo($span)
									.click(function () {
										//$.ajax({
										//    url: abp.appPath + 'Mpa/FileTracking/DMS', data: { FileID: "hide"}
										//});
									});
							}
							else {
								$('<a class="UsedRealEstateImage" data-toggle="tooltip" data-placement="right" title="Open File" href="../Mpa/VendorInformation/Index?jobid=' + data.record.id + '" ></a>')
									.appendTo($span)
									.click(function () {
										//$.ajax({
										//    url: abp.appPath + 'Mpa/FileTracking/DMS', data: { FileID: "hide"}
										//});
									});
							}
						}
						if (_permissions.edit) {
							$('<button class="btn btn-icon btn-xs" data-toggle="tooltip" data-placement="top" title="Edit" ><i class="fa fa-edit"></i></button>')
								.appendTo($span)
								.click(function () {
									showhidedivs(0);
									_addNewFile.html('<i class="fa fa-save"></i> Update');
									updateFileid = data.record.id;
									getfileinfo(data.record.id);
								});
						}

						if (_permissions.delete) {
							$('<button class="btn btn-icon btn-xs" data-toggle="tooltip" data-placement="top" title="' + app.localize('Delete') + '"><i class="fa fa-trash-o"></i></button>')
								.appendTo($span)
								.click(function () {
									deleteUser(data.record);
								});
						}
						return $span;
					}
				},

				ComInfo1: {
					title: 'File Assigned To',
					display: function (data) {

						var getassitantuser = '';
						getassitantuser = $('#Users').find('option[id="' + data.record.assitantuserId1 + '"]').text();

						return getassitantuser;
					}
				},
				fileNumber: {
					title: app.localize('FileNumber')
				},
				re: {
					title: 'Re:'
				},
				client: {
					title: app.localize('Client')
				},
				civicAddress: {
					title: 'Civic Address',
					display: function (data) {

						var getaddredd = '';
						getaddredd = (data.record.civicAddress == null || data.record.civicAddress == '' ? "" : (data.record.civicAddress
							+ ",")) + (data.record.fileTrackingCity == null || data.record.fileTrackingCity == '' ? "" : (data.record.fileTrackingCity
								+ ",")) + (data.record.fileTrackingState == null || data.record.fileTrackingState == '' ? "" : (data.record.fileTrackingState
									+ ",")) + (data.record.fileTrackingZipCode == null || data.record.fileTrackingZipCode == '' ? "" : (data.record.fileTrackingZipCode
										+ ","));
						getaddredd = getaddredd.substring(0, getaddredd.length - 1);
						return getaddredd;
					}
				},
				creationTime: {
					title: app.localize('CreationTime'),
					display: function (data) {
						$(data.record).each(function () {
							if (newJobId < data.record.id) {
								newJobId = data.record.id;
							}

						});
						return moment(data.record.creationTime).format('L');
					}
				},
				closingDate: {
					title: 'Close Date',
					display: function (data) {
						if (data.record.closingDate == null)
							return '';
						return moment(data.record.closingDate).format('L');
					}
				},
				isGeneral: {
					title: '',
					width: '1%',
					display: function (data) {
						var $span = $('<span></span>');
						$('<div class="md-checkbox"><input id="' + data.record.id + '" class="md-check" type="checkbox" name="Print' + data.record.id + '" value="0"><label for="' + data.record.id + '"><span class="inc"></span><span class="check"></span><span class="box"></span></label></div>')
							//$('<input type="checkbox" value="0" name="finalUpdate' + data.record.id + '" />')
							.appendTo($span)
							.change(function () {
								
								GetCheckValues(data.record.id);
							});
						return $span;
					}
				}
			}
		});
Answer

Hi,

I checked the link you provided. I had added the class and method in Mpanvagation class. But where to call this method.

Thanks

Hi ,

yes , Console.log('modal opened..') . its working.. I have added all code here. Its working fine now. There is some Mismatch in modal data. I had created modal from starting now working fine. :) Thanks

Hi, yes, i tried this. It didn't work. i had write the code as below.

code:-

(function($) { app.modals.ReportModel = function () {

    var _modalManager;

    this.init = function(modalManager) {
        _modalManager = modalManager;

        _modalManager.getModal().on('show.bs.modal', function (e) {
            //write your code here which will run on every shown of this modal.
            $('#ReportSelection').change(function () {
                $('.modal-title span').text($('#ReportSelection :selected').text() + " #");
                closeall($('#ReportSelection :selected').val());
                $('#Report' + $('#ReportSelection :selected').val()).slideDown("fast");
            });

            function closeall(dontclose) {
                var i = 1;
                for (i = 1; i < 12; i++) {
                    if (i != dontclose)
                        $('#Report' + i).slideUp('fast');
                }
            }
        });


    };

    this.save = function () {
        //Save your modal here...
    };
};

})(jQuery);

thanks

Hi,

        I am using MVC with jquery. my modal.js code is as follows.

(function($) { app.modals.ReportModel = function () {

    var _modalManager;

    this.init = function(modalManager) {
        _modalManager = modalManager;
      
        //Initialize your modal here...
    };

    this.save = function () {
        //Save your modal here...
    };
};

$('#ReportSelection').change(function () {
    $('.modal-title span').text($('#ReportSelection :selected').text()+ " #");
    closeall($('#ReportSelection :selected').val());
    $('#Report' + $('#ReportSelection :selected').val()).slideDown("fast");
});

function closeall(dontclose) {
    var i = 1;
    for (i = 1; i < 12; i++) {
        if(i!=dontclose)
            $('#Report' + i).slideUp('fast');
    }
}

})(jQuery);

Thanks

Showing 161 to 170 of 202 entries