Exemplo n.º 1
0
        private void client_GetIssuanceListByIdCompleted(object sender, GetIssuanceListByIdCompletedEventArgs e)
        {
            try
            {
                if (e.Error == null)
                {
                    if (e.Result != null)
                    {
                        issuanceObj = new T_OA_HOUSEINFOISSUANCE();
                        issuanceObj = e.Result.ToList()[0];
                        this.tblIssuecontent.Text = issuanceObj.CONTENT.ToString();
                        this.issuetitle.Text      = issuanceObj.ISSUANCETITLE;

                        client.GetIssuanceHouseInfoListAsync(issuanceObj.ISSUANCEID);
                        client.GetIssuanceHouseListAsync(issuanceObj.ISSUANCEID);
                        client.GetDistributeUserListAsync(issuanceObj.ISSUANCEID);
                    }
                }
                else
                {
                    //HtmlPage.Window.Alert(e.Error.ToString());
                    Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
                }
            }
            catch (Exception ex)
            {
                //HtmlPage.Window.Alert(ex.ToString());
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
            }
        }
Exemplo n.º 2
0
 private void client_GetIssuanceListByIdCompleted(object sender, GetIssuanceListByIdCompletedEventArgs e)
 {
     try
     {
         if (e.Error == null)
         {
             if (e.Result != null)
             {
                 IssuanceObj = e.Result.ToList()[0];
                 //if (actionFlag == DataActionFlag.SubmitFlow)
                 //{
                 //    actionFlag = DataActionFlag.SubmitComplete;
                 //    SumbitFlow();
                 //    return;
                 //}
                 if (formTypeAction == FormTypes.Resubmit)
                 {
                     IssuanceObj.CHECKSTATE = Convert.ToInt32(CheckStates.UnSubmit).ToString();
                 }
                 txtContent.RichTextBoxContext = issuanceObj.CONTENT;
                 //txtWorkYear.Text = issuanceObj
                 client.GetIssuanceHouseInfoListAsync(issuanceObj.ISSUANCEID);
                 client.GetIssuanceHouseListAsync(issuanceObj.ISSUANCEID);
                 client.GetDistributeUserListAsync(issuanceObj.ISSUANCEID);
                 //BindAduitInfo();
                 RefreshUI(RefreshedTypes.AuditInfo);
                 RefreshUI(RefreshedTypes.All);
             }
         }
         else
         {
             //HtmlPage.Window.Alert(e.Error.ToString());
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
         }
     }
     catch (Exception ex)
     {
         //HtmlPage.Window.Alert(ex.ToString());
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
     }
 }