Example #1
0
 /// <summary>
 /// 获取记录
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void client_GetLicenseBorrowListByIdCompleted(object sender, GetLicenseBorrowListByIdCompletedEventArgs e)
 {
     try
     {
         if (e.Error == null)
         {
             if (e.Result != null)
             {
                 //licenseViewObj = e.Result;
                 LicenseObj = e.Result;
                 if (action == Action.AUDIT)
                 {
                     //audit.XmlObject = DataObjectToXml<T_OA_LICENSEUSER>.ObjListToXml(LicenseObj, "OA");
                 }
                 if (actionFlag == DataActionFlag.SubmitFlow)
                 {
                     actionFlag = DataActionFlag.SubmitComplete;
                     //SumbitFlow();
                     return;
                 }
                 //T_OA_LICENSEMASTER licenseMaster = new T_OA_LICENSEMASTER();
                 //licenseMaster.LICENSENAME = licenseViewObj.LicenseName;
                 this.txtLicenseName.Text = LicenseObj.T_OA_LICENSEMASTER.LICENSENAME;
                 //BindAduitInfo();
                 RefreshUI(RefreshedTypes.AuditInfo);
                 RefreshUI(RefreshedTypes.All);
             }
         }
         else
         {
             //HtmlPage.Window.Alert(e.Error.ToString());
             //RefreshUI(RefreshedTypes.ProgressBar);
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
         }
     }
     catch (Exception ex)
     {
         //HtmlPage.Window.Alert(ex.ToString());
         //RefreshUI(RefreshedTypes.ProgressBar);
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
     }
 }
Example #2
0
 /// <summary>
 /// 获取记录
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void client_GetLicenseBorrowListByIdCompleted(object sender, GetLicenseBorrowListByIdCompletedEventArgs e)
 {
     try
     {
         if (e.Error == null)
         {
             if (e.Result != null)
             {
                 //licenseViewObj = e.Result;
                 LicenseObj = e.Result;
                 if (action == Action.AUDIT)
                 {
                     //audit.XmlObject = DataObjectToXml<T_OA_LICENSEUSER>.ObjListToXml(LicenseObj, "OA");
                 }
                 if (actionFlag == DataActionFlag.SubmitFlow)
                 {
                     actionFlag = DataActionFlag.SubmitComplete;
                     //SumbitFlow();
                     return;
                 }
                 //T_OA_LICENSEMASTER licenseMaster = new T_OA_LICENSEMASTER();
                 //licenseMaster.LICENSENAME = licenseViewObj.LicenseName;
                 this.txtLicenseName.Text = LicenseObj.T_OA_LICENSEMASTER.LICENSENAME;
                 //BindAduitInfo();
                 RefreshUI(RefreshedTypes.AuditInfo);
                 RefreshUI(RefreshedTypes.All);
             }
         }
         else
         {
             //HtmlPage.Window.Alert(e.Error.ToString());
             //RefreshUI(RefreshedTypes.ProgressBar);
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
         }
     }
     catch (Exception ex)
     {
         //HtmlPage.Window.Alert(ex.ToString());
         //RefreshUI(RefreshedTypes.ProgressBar);
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
     }
 }