Пример #1
0
 void Upd_VMRecordCompleted(object sender, Upd_VMRecordCompletedEventArgs e)
 {
     try
     {
         RefreshUI(RefreshedTypes.HideProgressBar);
         if (e.Error != null && e.Error.Message != "")
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
         }
         if (e.Result > 0)
         {
             if (ckbHasFee.IsChecked == true && Convert.ToInt32(txtFee.Text) > 0)
             {
                 fbCtr.ExtensionalOrder.ORDERID = conserVation.MAINTENANCERECORDID;
                 fbCtr.Save(_flwResult);//提交费用
             }
             else
             {
                 Utility.ShowMessageBox("SUCCESSAUDIT", true, true);//审核成功
                 RefreshUI(RefreshedTypes.CloseAndReloadData);
             }
         }
         else
         {
             Utility.ShowMessageBox("FAILURETOAPPROVE", true, false);//审核失败
         }
     }
     catch (Exception ex)
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
         RefreshUI(RefreshedTypes.HideProgressBar);
     }
 }
Пример #2
0
 void Upd_VMRecordCompleted(object sender, Upd_VMRecordCompletedEventArgs e)
 {
     RefreshUI(RefreshedTypes.HideProgressBar);
     try
     {
         RefreshUI(RefreshedTypes.HideProgressBar);
         if (e.Error != null && e.Error.Message != "")
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
         }
         if (ckbHasFee.IsChecked == true && Convert.ToInt32(txtFee.Text) > 0)
         {
             fbCtr.ExtensionalOrder.ORDERID = conserVation.MAINTENANCERECORDID;
             fbCtr.Save(_flwResult);//提交费用
         }
         else
         {
             Utility.ShowMessageBox("UPDATE", isSubmitFlow, true);
             if (isSubmitFlow)
             {
                 saveType = RefreshedTypes.CloseAndReloadData;
             }
             RefreshUI(saveType);
         }
     }
     catch (Exception ex)
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
         RefreshUI(RefreshedTypes.HideProgressBar);
     }
 }
Пример #3
0
        void Upd_VMRecordCompleted(object sender, Upd_VMRecordCompletedEventArgs e)
        {
            try
            {
                RefreshUI(RefreshedTypes.HideProgressBar);
                if (e.Error != null && e.Error.Message != "")
                {
                    Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
                }
                if (e.Result > 0)
                {
                    if (ckbHasFee.IsChecked == true && Convert.ToInt32(txtFee.Text) > 0)
                    {
                        fbCtr.Order.ORDERID = conserVation.MAINTENANCERECORDID;
                        fbCtr.Save(_flwResult);//提交费用
                    }
                    else
                    {
                        Utility.ShowMessageBox("SUCCESSAUDIT", true, true);//审核成功
                        RefreshUI(RefreshedTypes.CloseAndReloadData);
                    }
                }
                else
                {
                    Utility.ShowMessageBox("FAILURETOAPPROVE", true, false);//审核失败
                }
            }
            catch (Exception ex)
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
                RefreshUI(RefreshedTypes.HideProgressBar);
            }

        }
Пример #4
0
 void Upd_VMRecordCompleted(object sender, Upd_VMRecordCompletedEventArgs e)
 {
     RefreshUI(RefreshedTypes.HideProgressBar);
     try
     {
         RefreshUI(RefreshedTypes.HideProgressBar);
         if (e.Error != null && e.Error.Message != "")
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
         }
         if (ckbHasFee.IsChecked == true && Convert.ToInt32(txtFee.Text) > 0)
         {
             fbCtr.ExtensionalOrder.ORDERID = conserVation.MAINTENANCERECORDID;
             fbCtr.Save(_flwResult);//提交费用
         }
         else
         {
             Utility.ShowMessageBox("UPDATE", isSubmitFlow, true);
             if (isSubmitFlow)
                 saveType = RefreshedTypes.CloseAndReloadData;
             RefreshUI(saveType);
         }
     }
     catch (Exception ex)
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
         RefreshUI(RefreshedTypes.HideProgressBar);
     }
 }