Exemple #1
0
 void client_LeftOfficeDeleteCompleted(object sender, LeftOfficeDeleteCompletedEventArgs e)
 {
     if (e.Error != null && e.Error.Message != "")
     {
         //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
                                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         int result = e.Result;
         if (result > 0)
         {
             //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESSED", "LEFTOFFICE"));
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESS"),
                                            Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
             LoadData();
         }
         else if (result == 0)
         {
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), "抱歉,此为重新提交的单据,不可删除.",
                                            Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
         }
         else
         {
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), "服务器删除数据出错.",
                                            Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
         }
     }
 }
Exemple #2
0
 void client_LeftOfficeDeleteCompleted(object sender, LeftOfficeDeleteCompletedEventArgs e)
 {
     if (e.Error != null && e.Error.Message != "")
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
       Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESS"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
         EntityBrowser entBrowser = this.FindParentByType<EntityBrowser>();
         entBrowser.Close();
     }
     FormType = FormTypes.Browse;
     RefreshUI(RefreshedTypes.All);
 }
Exemple #3
0
 void client_LeftOfficeDeleteCompleted(object sender, LeftOfficeDeleteCompletedEventArgs e)
 {
     if (e.Error != null && e.Error.Message != "")
     {
         //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
        Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         int result = e.Result;
         if (result > 0)
         {
             //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESSED", "LEFTOFFICE"));
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("DELETESUCCESS"),
        Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
             LoadData();
         }
         else if (result == 0)
         {
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), "抱歉,此为重新提交的单据,不可删除.",
                           Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
         }
         else
         {
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), "服务器删除数据出错.",
                                              Utility.GetResourceStr("CONFIRM"), MessageIcon.Information);
         }
     }
 }