Exemplo n.º 1
0
 private void reFreshData()
 {
     addfeeflag = false;
     if (model.dto != null)
     {
         if (model == null)
         {
             model = new OrderConfirmViewModel(Context.Org.Id_org, xapFormControl);
         }
         if (model.dto.Fg_sign != FBoolean.False || model.dto.Fg_stop != FBoolean.False ||
             model.dto.Fg_canc != FBoolean.False)
         {
             model.GetOrConfirmList(model.dto);
         }
         else
         {
             model.OrderList.Clear();
         }
         OnFillData();
     }
 }
Exemplo n.º 2
0
 public override void OnSelected(object sender, TargetEventArgs e)
 {
     //  base.OnSelected(sender, e);
     dto = e.Object as OrConfirm;
     if (dto != null)
     {
         if (dto.Fg_sign != FBoolean.False || dto.Fg_stop != FBoolean.False || dto.Fg_canc != FBoolean.False)
         {
             model.GetOrConfirmList(dto);
             model.GetFeeList(null);
         }
         else
         {
             model.OrderList.Clear();
             model.GetFeeList(null);
         }
         OnFillData();
         if (xapFormControl.Created)
         {
             //         xapFormControl.CloseTiol(true);
         }
     }
 }