iloire / asp.net-mvc-example-invoicing-app Goto Github PK
View Code? Open in Web Editor NEWExample invoicing application in ASP.NET MVC3
Example invoicing application in ASP.NET MVC3
i guess the project dll file is created when it run perfectly . but i m having error of not having iloire_Facturacion.dll file and from that i cant access to run the project. now how could i create a dll file.?? needed some help . if anyone knows the ways to create it .
yes, i also tried to make a new web application with all same code and folders and tried to used that project dll in this one but not succeed.
Hi Iloire,
My doubt about the creation of next invoice number is that how you do you manage the concurrency if two or more users at same time create a new invoice?
You think is secure a InvoiceNumber = Max + 1 ?
thank in advance for your suggestion.
Vincenzo
Can you migrate to MVC5 and Latest Framework and re-upload this application?
Or if you have any tutorial how to do it please send me.
Or if anyone have alredi migrated can send me ?
Thank you a lot
Iván,
Estoy comenzando a usar tu proyecto Invoicing-App y me está ayudando mucho. Aprovecho para hacerte una sugerencia para Menu.cshtml: condicionar la clase “active” usando un helper. Para eso se puede sacar cuál es el controlador y acción actual y pasarlo como parámetro:
Definir al inicio de Menu.cshtml una variable con el controlador-acción actual:
@{
string currentControllerAction =
ViewContext.Controller.ValueProvider.GetValue("controller").RawValue.ToString() + "/" +
ViewContext.Controller.ValueProvider.GetValue("action").RawValue.ToString();
}
Y en el menú, condicionar la clase usando el helper:
<li class="@iloire_Facturacion.Helpers.MenuHelper.GetCssClassForMenu( currentControllerAction, "Invoice/Index")">
@Html.ActionLink("Invoices", "Index", "Invoice", new { proposal = false }, null)
</li>
El helper sería algo sencillo:
public static class MenuHelper
{
public const string ACTIVE_MENU_CSS_CLASS = "active";
public const string INACTIVE_MENU_CSS_CLASS = "inactive";
public static string GetCssClassForMenu(string currentControllerAction, string menuControllerAction)
{
if (currentControllerAction == menuControllerAction)
return ACTIVE_MENU_CSS_CLASS;
else
return INACTIVE_MENU_CSS_CLASS;
}
}
Referencias:
http://blog.janjonas.net/2011-02-15/aspnet-mvc_3-get-controller-action-razor-view
http://www.arrangeactassert.com/asp-net-mvc-view-best-practices-keep-logic-out-of-your-views/
When run solution i can see LogOn page but when click "Login" (with login =user, password = pass) it keep throwing above exception at method OverDueInvoices in InvoiceController.
I also try change key "DropDatabaseOnChange" to 1 because I think this will make system generate dummy data (since there is no sample db in package yet)
I think that you need to create a core JavaScript file.
This is going to take some remodelling to allow re usability for buttons like.
$('a.newCustomer').live('click', function () {
to be used on any page.
For example when I click proposal. It is obvious its for new customer. So I quickly want to add him.
I do not want to go edit customer... then proposal
This file should be loaded in Shared
any specific jQuery that only applies to ONE page should be loaded on that view - like UI effects, graphs or something.
Hello iloire,
When I download your latest version and try to build in VS2010 (on a Win7 Client), I get the following error;
The type or namespace name 'Elmah' could not be found (are you missing a using directive or an assembly reference?)
The Elmah reference is showing an exclamation mark. I could download the dll and add a new reference, but I feel it should be able to build directly after download. Or is that feeling incorrect?
(I tried adding a new reference again to the elmah.dll already, but then same problem with NUnit, so I felt it's better to check with you first if I'm doing something wrong)
Creo que la línea 127 del archivo Models / Paging / Pager.cs está de más.
Is here anybody try this app in VS 2013 ?
I would like to know how to migrate and use First Code to create database in Sqlexpress and use this app in MVC5,
Thanks in Advance
Hi, I tried to download the zip file several times but failed. It is getting interrupted at 25% to 30% of download.
Let me know how can I download complete code without interruption.
Thanks in advance
Kishore
where is invoice db.sdf file. am unable to login. am using vs 2013.
am installed sql server express also. am getting this error.
i want local db file. should i need to create local db file with same name ?
am entering same credentials.
here were some errors. Please fix them and try again
Wrong username/password
Dear,
You have developed application is so good. But I can't find the MSSql DB file or script file in the zip package. if you feel free kindly share the MSSQL DB. Then i can easily learn the ASP.NET MVC Application creation.
My Mail id : [email protected]
Skype id : mostafahrms5
I
When I open solution in VS, first I get all references loaded with an exclamation mark, then I deleted and re-imported but still I couldn't load it.
I'm getting the error:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies
Any help please?
Dear,
You have developed application is so good. But I can't find the MSSql DB file or script file in the zip package. if you feel free kindly share the MSSQL DB. Then i can easily learn the ASP.NET MVC Application creation.
My Mail id : [email protected]
Skype id : yuva2achieve
I
I ran the project and commented out the two DB connection strings (I used SQL Compact) and then received this error:
System.Security.SecurityException: Request for the permission of type 'System.Configuration.ConfigurationPermission, System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' failed.
Immediately thinking about "medium trust" I commented that out, which I am not sure whether that's good. Anyway, after doing that when I type in "user" and "pass" I get a validation error that I entered the "wrong username/password". I put back the medium trust line and still get the SecurityException above.
Sorry, but I am new to programming. So if it's something obvious just let me know.
Looking at the Invoice DB table, it looks like it wasn't even created.
I am terribly sorry for disturbing you so much, but how do you change the currency? I am a novice programmer, so all the help is truly appreciated
qw
Hi
I am attempting build this application for personal use, however I am encountering alot of issues, I have mailed you before but I havent gotten a response. Well some of the notes are in Spanish, and unfortunately I cannot read Spanish, and whenever I build the app I dont get any errors on build, but when I test it i cannot login.
And one last request, how can I put this application into an installer package?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.