예제 #1
0
 private void Add_VDRecordCompleted(object sender, Add_VDRecordCompletedEventArgs e)
 {
     if (e.Result > 0)
     {
         if (ckbHasFee.IsChecked == true)
         {
             fbCtr.Order.ORDERID = _record.VEHICLEDISPATCHRECORDID;
             fbCtr.Save(_flwResult);//提交费用
         }
         else
         {
             EntityBrowser entBrowser = this.FindParentByType <EntityBrowser>();
             entBrowser.FormType = FormTypes.Edit;
             RefreshUI(RefreshedTypes.AuditInfo);
             RefreshUI(RefreshedTypes.All);
             Utility.ShowMessageBox("ADD", isSubmitFlow, true);
             if (isSubmitFlow)
             {
                 saveType = RefreshedTypes.CloseAndReloadData;
             }
             RefreshUI(saveType);
         }
     }
     else
     {
         Utility.ShowMessageBox("ADD", isSubmitFlow, false);
         RefreshUI(RefreshedTypes.HideProgressBar);
     }
 }
예제 #2
0
        private void Add_VDRecordCompleted(object sender, Add_VDRecordCompletedEventArgs e)
        {
            if (e.Result > 0)
            {
                if (ckbHasFee.IsChecked == true)
                {
                    fbCtr.ExtensionalOrder.ORDERID = _record.VEHICLEDISPATCHRECORDID;
                    fbCtr.Save(_flwResult);//提交费用
                }
                else
                {
                    EntityBrowser entBrowser = this.FindParentByType<EntityBrowser>();
                    entBrowser.FormType = FormTypes.Edit;
                    RefreshUI(RefreshedTypes.AuditInfo);
                    RefreshUI(RefreshedTypes.All);
                    Utility.ShowMessageBox("ADD", isSubmitFlow, true);
                    if (isSubmitFlow)
                        saveType = RefreshedTypes.CloseAndReloadData;
                    RefreshUI(saveType);
                }
            }
            else
            {
                Utility.ShowMessageBox("ADD", isSubmitFlow, false);
                RefreshUI(RefreshedTypes.HideProgressBar);
            }

        }