Пример #1
0
 void TemplateRoomClient_GetContractTemplateInfoCompleted(object sender, GetContractTemplateInfoCompletedEventArgs e)
 {
     loadbar.Stop();
     try
     {
         if (e.Result != null)
         {
             if (e.Result.Count == 0)
             {
                 //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SORRYRECORDSCOULDNOTBEFOUND", ""));
             }
             BindDataGrid(e.Result.ToList(), e.pageCount);
         }
         else
         {
             BindDataGrid(null, 0);
             //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SORRYRECORDSCOULDNOTBEFOUND", ""));
         }
     }
     catch (Exception ex)
     {
         HtmlPage.Window.Alert(ex.ToString());
     }
 }
Пример #2
0
 void TemplateRoomClient_GetContractTemplateInfoCompleted(object sender, GetContractTemplateInfoCompletedEventArgs e)
 {
     loadbar.Stop();
     try
     {
         if (e.Result != null)
         {
             if (e.Result.Count == 0)
             {
                 //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SORRYRECORDSCOULDNOTBEFOUND", ""));
             }
             BindDataGrid(e.Result.ToList(), e.pageCount);
         }
         else
         {
             BindDataGrid(null, 0);
             //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SORRYRECORDSCOULDNOTBEFOUND", ""));
         }
     }
     catch (Exception ex)
     {
         HtmlPage.Window.Alert(ex.ToString());
     }
 }