Hi.. I installed VS2008 and SDK 5.0, but i need activesync to connect to database i guess.. The problem is i am using windows 7 and activesync is not compatible.. do u have any suggestions on how i can make this work?
Sorry to trouble you again. But i tried to change the database setting through the frmConfiguration form, it says save succeed, but it is not able to connect to the database. Do u think it is because of Activesync or Windows mobile device not being used for syncing??
Well, I like it it. If that had been my first WPF I would have been thrilled. So what if it isn't built using the lastest pattern flavours. A lot of great apps aren't
I create a WPF window(WindowState = "Maxisized" WindowStyle="None" AllowTransparen="True") ,then there is canvas on that window with two gird of image that have click_event.Process of Click_event is to call a button. All the code is completed.
I execute the project.Then , I use the tool of TaskSwitch(Microsoft tool) to switch the app.After some time to switch, to turn on WPF Window to click the image, click_event is happend.But the button is not shown.When I press the Ctl+Alt+del and cancel it, click the image,button is shown.
I think this problem is that WPF window cannot be updated.Do you give me some advices to resolute it? Thanks.
Hello.
very nice work. I was wondering if there are any restrictions regarding personal or commercial use. With your permission, I would like to use it in a commercial project currently in development.
-- Author: Ali Daneshmandi
-- Description: This procedure will do the process of checking out of an order
-- =============================================
ALTERPROCEDURE [dbo].[Check_Out_Order]
@OrderNo BIGINT,
@TotalPrice DECIMAL(18,2),
@CustomerName NVARCHAR(50)
ASBEGINDECLARE @NoOFActiveOrders INT, @TableNo VARCHAR(10)
SET @NoOFActiveOrders=-1
BEGINTRAN T1;
BEGIN TRY
-- Update the OrderHeader
UPDATE OrderHeader SET TotalPrice=@TotalPrice,CustomerName=@CustomerName,[State]=5 WHERE OrderNo=@OrderNo
--Retreive the TableNo of the order
SELECT @TableNo=TableNo FROM OrderHeader WHERE OrderNo=@OrderNo
-- Get the no of active orders for an specified tableNo
SELECT @NoOFActiveOrders=COUNT(*) FROM OrderHeader WHERE ([State]=0 OR [State]=1 OR [State]=3 OR [State]=4) AND TableNo=@TableNo
IF @NoOFActiveOrders=0
BEGIN--Frees the table
EXEC Update_Table_State @TableNo,0ENDCOMMITTRAN T1;
SELECT1AS RowsAffected
END TRY
BEGIN CATCH
-- returns 0
SELECT0AS RowsAffected
END CATCH;
END
To be honest, I don't remember all details but as I remember a table can have more than one active order at the same time and each should checkout separately to print each a receipt, thus this stored procedure implemented this way, but if you want to checkout all the orders of the table with one action, I think you should call this procedure from C# code in a loop with count of your table orders, BTW, make sure to use Transaction in your C# code for such action.
Sorry but I do not remember all details/aspects of the application, It was for a long time ago.
firstly,so gratefully project.ıts so good.
thanks for sharing.but ı've got a problem.ı dont login because ı dont know enter password and name.please help me for that,
thnx Ali Daneshmandi for now..
I'm asking, if I cancel 100 orders all of them will be appear all of the time to the kitchen window. Is there any way to hide them or should I change the TSql procedure.
I'm not sure but as I remember the list has a one day lifetime period so with the start of day after the list should be empty. I don't remember whether I've implemented such a rule or not [It's was for a long time ago].
Anyway, You can set your own rule by changing the TSQL procedure.
You need to make a WiFi connection for your emulator/windows mobile device first, then you should configure the connection string via "frmConfiguration" form.
سلام
من تافته هستم
مسئول شبکه شرکت فولاد گلستان
برنامه نویسی می کنم با سی شارپ
واسه باسکول و ... برنامه نوشتم اینجا
یه پروژه گرفتم واسه مدیریت مدرسه
میخوام برنامه هفتگی رو خود برنامه تولید کنه
وقتی خواستم شروع کنم برنامه رستوران شما رو دیدم
میخوام با
wpf
بنویسمش
مشکل اینجاست که از پس هوشمند کردن برنامه برنمیام
چیکار باید کنم؟
دیتابیسش باید چه جوری باشه؟
اصلا میشه کاری کرد که با دادن برنامه معلمان به برنامه و ساعت کاریشون
خود برنامه یه برنامه هفتگی تولید کنه واسه هر کلاس؟
تو رو خدا کمکم کنید .
میخوام wpf یاد بگیرم
مرسی