Esempio n. 1
0
 /// <summary>
 /// 获取抽查组完成事件,加载抽查组的数据
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void client_GetRandomGroupByIDCompleted(object sender, GetRandomGroupByIDCompletedEventArgs 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
     {
         //未获取到信息
         if (e.Result == null)
         {
             //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTFOUND"));
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTFOUND"),
                                            Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
             return;
         }
         //获取类别
         RandomGroup = e.Result;
         BindData();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 获取抽查组完成事件,加载抽查组的数据
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void client_GetRandomGroupByIDCompleted(object sender, GetRandomGroupByIDCompletedEventArgs 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
     {
         //未获取到信息
         if (e.Result == null)
         {
             //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTFOUND"));
             ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("NOTFOUND"),
         Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); 
             return;
         }
         //获取类别
         RandomGroup = e.Result;
         BindData();
     }
 }