Exemplo n.º 1
0
 private void UpdateConserVationCompleted(object sender, UpdateConserVationCompletedEventArgs 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)
             {
                 fbCtr.Order.ORDERID = conserVation.CONSERVATIONID;
                 fbCtr.Save(_flwResult);//提交费用
             }
             else
             {
                 Utility.ShowMessageBox("APPOVALBUTTON", true, true);
                 RefreshUI(RefreshedTypes.CloseAndReloadData);
             }
         }
         else
         {
             Utility.ShowMessageBox("APPOVALBUTTON", isFlowed, false);
             RefreshUI(RefreshedTypes.HideProgressBar);
         }
     }
     catch (Exception ex)
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
         RefreshUI(RefreshedTypes.HideProgressBar);
     }
 }
Exemplo n.º 2
0
 private void UpdateConserVationCompleted(object sender, UpdateConserVationCompletedEventArgs e)
 {
     RefreshUI(RefreshedTypes.HideProgressBar);
     if (e.Result > 0)
     {
         if (e.Error != null && e.Error.Message != "")
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
             return;
         }
         if (ckbHasFee.IsChecked == true)
         {
             fbCtr.ExtensionalOrder.ORDERID = conserVation.CONSERVATIONID;
             fbCtr.Save(_flwResult);//提交费用
         }
         else
         {
             if (e.UserState.ToString() == "Edit")
             {
                 Utility.ShowMessageBox("UPDATE", isFlowed, true);
                 RefreshUI(saveType);
             }
             else if (e.UserState.ToString() == "Audit")
             {
                 ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("SUCCESSAUDIT"),
                                                Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
             }
             else if (e.UserState.ToString() == "Submit")
             {
                 ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("SUCCESSSUBMITAUDIT"),
                                                Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
             }
             RefreshUI(RefreshedTypes.All);
         }
     }
     else
     {
         if (e.UserState.ToString() == "Edit")
         {
             Utility.ShowMessageBox("UPDATE", isFlowed, false);//修改失败!
         }
         else
         {
             Utility.ShowMessageBox("AUDITFAILURE", isFlowed, false);//提交审核失败,请重试!
         }
     }
 }
Exemplo n.º 3
0
 private void UpdateConserVationCompleted(object sender, UpdateConserVationCompletedEventArgs 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)
             {
                 fbCtr.Order.ORDERID = conserVation.CONSERVATIONID;
                 fbCtr.Save(_flwResult);//提交费用
             }
             else
             {
                 Utility.ShowMessageBox("APPOVALBUTTON", true, true);
                 RefreshUI(RefreshedTypes.CloseAndReloadData);
             }
         }
         else
         {
             Utility.ShowMessageBox("APPOVALBUTTON", isFlowed, false);
             RefreshUI(RefreshedTypes.HideProgressBar);
         }
     }
     catch (Exception ex)
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
         RefreshUI(RefreshedTypes.HideProgressBar);
     }
 }
Exemplo n.º 4
0
 private void UpdateConserVationCompleted(object sender, UpdateConserVationCompletedEventArgs e)
 {
     RefreshUI(RefreshedTypes.HideProgressBar);
     if (e.Result > 0)
     {
         if (e.Error != null && e.Error.Message != "")
         {
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
             return;
         }
         if (ckbHasFee.IsChecked == true)
         {
             fbCtr.Order.ORDERID = conserVation.CONSERVATIONID;
             fbCtr.Save(_flwResult);//提交费用
         }
         else
         {
             if (e.UserState.ToString() == "Edit")
             {
                 Utility.ShowMessageBox("UPDATE", isFlowed, true);
                 RefreshUI(saveType);
             }
             else if (e.UserState.ToString() == "Audit")
             {
                 ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("SUCCESSAUDIT"),
             Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
             }
             else if (e.UserState.ToString() == "Submit")
             {
                 ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("SUCCESSSUBMITAUDIT"),
             Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
             }
             RefreshUI(RefreshedTypes.All);
         }
     }
     else
     {
         if (e.UserState.ToString() == "Edit")
         {
             Utility.ShowMessageBox("UPDATE", isFlowed, false);//修改失败!
         }
         else
         {
             Utility.ShowMessageBox("AUDITFAILURE", isFlowed, false);//提交审核失败,请重试!
         }
     }
 }