UpdateOrderMainEntity() public method

public UpdateOrderMainEntity ( OrderMainEntity condition_entity ) : void
condition_entity Dian.Entity.OrderMainEntity
return void
Example #1
0
 private void OperateOrder()
 {
     try
     {
         if (!string.IsNullOrEmpty(this.hOperationId.Value))
         {
             var op = this.hOperationId.Value.Split('|')[0];
             var id = base.ParseInt(this.hOperationId.Value.Split('|')[1]);
             IOrder biz = new OrderBiz();
             var condition = new OrderMainEntity();
             condition.ORDER_ID = id;
             if (op == "finish")
             {
                 condition.ORDER_FLAG = "2";
                 biz.UpdateOrderMainEntity(condition);
                 this.lMsg.InnerText = "完成订单成功!";
             }
             else if (op == "cancel")
             {
                 condition.ORDER_FLAG = "3";
                 biz.UpdateOrderMainEntity(condition);
                 this.lMsg.InnerText = "取消订单成功!";
             }
         }
     }
     catch (Exception ex)
     {
         this.lMsg.InnerText = "操作失败,原因:" + ex.ToString();
     }
 }