data-entry

ASP.NET MVC Master Detail Entry Form

馋奶兔 提交于 2019-12-03 02:46:34
问题 I’m trying to implement an order entry form using ASP.NET MVC but facing a lot of difficulties. All the samples that I found are related to viewing master detail forms, and none for adding or editing. Suppose I have two tables: Order and OrderLines that are related to each others with one-to-many relationship. In the main view I had a “New” button when clicked it should show a new order view composed of the order fields, a grid that shows the order lines, and a “Save” button that when clicked

How to detect a typo in a product search and suggest possible corrections?

瘦欲@ 提交于 2019-12-02 19:44:36
Given a very large database of product names, how would you detect possible typos in user searches and suggest possible corrections (Kinda like the way Google presents them)? E.g. User enters "fork handels" and presses 'search'. They get back "No results. Did you mean 'fork handles'?" There are several approaches for this problem: Keeping a table of most popular misspellings in your database. If you need some common misspellings: here ) Using an algorithm based on the edit distance : In information theory and computer science, the edit distance between two strings of characters is the number

ASP.NET MVC Master Detail Entry Form

佐手、 提交于 2019-12-02 16:21:02
I’m trying to implement an order entry form using ASP.NET MVC but facing a lot of difficulties. All the samples that I found are related to viewing master detail forms, and none for adding or editing. Suppose I have two tables: Order and OrderLines that are related to each others with one-to-many relationship. In the main view I had a “New” button when clicked it should show a new order view composed of the order fields, a grid that shows the order lines, and a “Save” button that when clicked will persist the whole order along with its lines into a database. The grid should have three buttons:

WPF TextBox to enter decimal values

两盒软妹~` 提交于 2019-11-27 01:59:02
Is there any decent way to get a WPF control which is bound to a decimal value? When I just bind the TextBox or DataGridTextColumn to a decimal, data entry sucks big time. <TextBox Text="{Binding MyDecimal, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}"/> When I try to enter "0,5" in this TextBox I'll get "5" as a result. It is nearly impossible to enter "0,5" at all (Apart from entering 1,5 and replacing the "1" with a "0"). When I use StringFormat data entry still sucks small time: <TextBox Text="{Binding MyDecimal, StringFormat=F1, UpdateSourceTrigger=PropertyChanged,

WPF TextBox to enter decimal values

限于喜欢 提交于 2019-11-26 08:27:42
问题 Is there any decent way to get a WPF control which is bound to a decimal value? When I just bind the TextBox or DataGridTextColumn to a decimal , data entry is a problem. <TextBox Text=\"{Binding MyDecimal, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}\"/> When I try to enter \"0,5\" in this TextBox I\'ll get \"5\" as a result. It is nearly impossible to enter \"0,5\" at all (apart from entering 1,5 and replacing the \"1\" with a \"0\"). When I use StringFormat , data entry