コード例 #1
0
ファイル: CRMSServer.cs プロジェクト: carreygroup/rms
		//传菜
		public bool TransFood(string FoodCode, string TableType, string Tableno, string PsnCount, string billno, string FoodName, string TypeName, string DeptName, string unit, string quantity, string operandi, string taste, string operatorid, string barcode, int OperateCode, string CancelRsn)
		{
			bool returnValue;
			returnValue = false;
			string queuePath = ".\\Private$\\RMS";
			EnsureQueueExists(queuePath);
			
			System.Messaging.MessageQueue queue = new System.Messaging.MessageQueue(queuePath);
			queue.Formatter = new System.Messaging.XmlMessageFormatter(new Type[] {typeof(AppExt.CAppExt.FoodInfo)});
			
			AppExt.CAppExt.FoodInfo orderRequest = new AppExt.CAppExt.FoodInfo();
			
			orderRequest.FoodCode = FoodCode;
			orderRequest.TableType = TableType;
			orderRequest.Tableno = Tableno;
			orderRequest.PsnCount = PsnCount;
			orderRequest.Billno = billno;
			orderRequest.FoodName = FoodName;
			orderRequest.TypeName = TypeName;
			orderRequest.DeptName = DeptName;
			orderRequest.unit = unit;
			orderRequest.quantity = quantity;
			orderRequest.operandi = operandi;
			orderRequest.taste = taste;
			orderRequest.operatorid = operatorid;
			orderRequest.BarCode = barcode;
			orderRequest.OperateCode = OperateCode; //OperateCode = 0 传菜 OperateCode = 1 催菜 OperateCode = 2 缓菜 OperateCode = 3 退菜
			orderRequest.CancelRsn = CancelRsn;
			
			queue.Send(orderRequest);
			returnValue = true;
			return returnValue;
		}
コード例 #2
0
ファイル: CRMSServer.cs プロジェクト: uwitec/carrey-rms
        //传菜
        public bool TransFood(string FoodCode, string TableType, string Tableno, string PsnCount, string billno, string FoodName, string TypeName, string DeptName, string unit, string quantity, string operandi, string taste, string operatorid, string barcode, int OperateCode, string CancelRsn)
        {
            bool returnValue;
            returnValue = false;
            string queuePath = ".\\Private$\\RMS";
            EnsureQueueExists(queuePath);

            System.Messaging.MessageQueue queue = new System.Messaging.MessageQueue(queuePath);
            queue.Formatter = new System.Messaging.XmlMessageFormatter(new Type[] {typeof(AppExt.CAppExt.FoodInfo)});

            AppExt.CAppExt.FoodInfo orderRequest = new AppExt.CAppExt.FoodInfo();

            orderRequest.FoodCode = FoodCode;
            orderRequest.TableType = TableType;
            orderRequest.Tableno = Tableno;
            orderRequest.PsnCount = PsnCount;
            orderRequest.Billno = billno;
            orderRequest.FoodName = FoodName;
            orderRequest.TypeName = TypeName;
            orderRequest.DeptName = DeptName;
            orderRequest.unit = unit;
            orderRequest.quantity = quantity;
            orderRequest.operandi = operandi;
            orderRequest.taste = taste;
            orderRequest.operatorid = operatorid;
            orderRequest.BarCode = barcode;
            orderRequest.OperateCode = OperateCode; //OperateCode = 0 传菜 OperateCode = 1 催菜 OperateCode = 2 缓菜 OperateCode = 3 退菜
            orderRequest.CancelRsn = CancelRsn;

            queue.Send(orderRequest);
            returnValue = true;
            return returnValue;
        }