public void Handle(GetIdentifyingCodeRequest message) { Console.WriteLine("Receive GetIdentifyingCodeRequest MessageNumber is :{0}", message.Number); var info = IdentifyingCodeService.GetConfirmIdentifyingCodeInfo(message.ShopId, message.Number, message.ModuleName, message.Wid); var response = new GetIdentifyingCodeResponse() { CreateTime = info.CreateTime, IdentifyingCode = info.IdentifyingCode, IdentifyingCodeId = info.IdentifyingCodeId, ModifyTime = info.ModifyTime, ModuleName = info.ModuleName, OrderCode = info.OrderCode, OrderId = info.OrderId, ProductCode = info.ProductCode, ProductId = info.ProductId, ShopId = info.ShopId, Wid = info.Wid, Status = info.Status }; bus.Reply(response); Console.WriteLine("Response GetIdentifyingCodeResponse Message"); }
protected void confirm_dingdan_Click(object sender, EventArgs e) { var number = this.confirmnumber.Text.Trim(); var identifyingCode = IdentifyingCodeService.GetConfirmIdentifyingCodeInfo(this.hotelid, number, ModuleName, wid); if (identifyingCode != null) { var order = new BLL.wx_hotel_dingdan().GetModel(int.Parse(identifyingCode.OrderId)); if (order != null) { if (order.orderStatus.Value.Equals(HotelStatusManager.OrderStatus.Refunded.StatusId) || order.orderStatus.Value.Equals(HotelStatusManager.OrderStatus.Refunding.StatusId) || order.orderStatus.Value.Equals(HotelStatusManager.OrderStatus.Completed)) { this.Response.Write( "<script language='javascript' type='text/javascript'>alert('该订单已完成或进行退单处理,不能进行验证!')</script>"); } else { if (identifyingCode.Status != 1) { if (identifyingCode.Status == 0) { this.Response.Write("<script language='javascript' type='text/javascript'>alert('该商品未付款!')</script>"); } else { this.Response.Write("<script language='javascript' type='text/javascript'>alert('该商品已消费或者退单,请确认!')</script>"); } } else { this.Response.Redirect("commodity_detail.aspx?cid=" + identifyingCode.IdentifyingCodeId + "&shopid=" + identifyingCode.ShopId + "&id=" + identifyingCode.OrderId); } } } else { this.Response.Write("<script language='javascript' type='text/javascript'>alert('该订单不存在或未付款,请确认!')</script>"); } } else { this.Response.Write("<script language='javascript' type='text/javascript'>alert('该订单不存在或未付款,请确认!')</script>"); } }
protected void confirm_dingdan_Click(object sender, EventArgs e) { var number = this.confirmnumber.Text.Trim(); var identifyingCode = IdentifyingCodeService.GetConfirmIdentifyingCodeInfo(shopid, number, ModuleName, wid); if (identifyingCode == null) { Response.Write("<script language='javascript' type='text/javascript'>alert('该订单不存在或未付款,请确认!')</script>"); } else if (identifyingCode.Status != StatusManager.DishStatus.NoUsed.StatusID && identifyingCode.Status != StatusManager.DishStatus.RefundFaild.StatusID) { Response.Write("<script language='javascript' type='text/javascript'>alert('该商品已消费或者退单,请确认!')</script>"); } else { var order = new BLL.wx_diancai_dingdan_manage().GetModel(int.Parse(identifyingCode.OrderId)); if (order != null && order.payStatus != null) { if (order.payStatus.Value.Equals(StatusManager.DishStatus.PreRefund.StatusID) || order.payStatus.Value.Equals(StatusManager.DishStatus.Refund.StatusID) || order.payStatus.Value.Equals(StatusManager.DishStatus.Used.StatusID) || order.IsFinish) { this.Response.Write( "<script language='javascript' type='text/javascript'>alert('该订单已完成或进行退单处理,不能进行验证!')</script>"); } else { Response.Redirect("commodity_detail.aspx?cid=" + identifyingCode.IdentifyingCodeId + "&shopid=" + identifyingCode.ShopId + "&id=" + identifyingCode.OrderId); } } } }