示例#1
0
        //获取机构完成
        private void client_GetOrganListByOrganIdCompleted(object sender, GetOrganListByOrganIdCompletedEventArgs e)
        {
            try
            {
                if (e.Error == null)
                {
                    if (e.Result != null)
                    {
                        //dt2 = DateTime.Now;
                        //MessageBox.Show((dt2 - dt1).TotalSeconds.ToString());
                        Organ = e.Result.ToList()[0];
                        txtOrganCode.DataContext       = organ;
                        txtOrganCode.DisplayMemberPath = "ORGCODE";
                        if (organ.ISCHARGE == "1")
                        {
                            FBControlIsUsed     = true;
                            FeeChkBox.IsChecked = true;
                            HiddenFBControl(true);
                        }
                        client.GetLicenseMatsterListByOrganIdAsync(organ.ORGCODE);

                        InitFBControl();
                        //if (action == FormTypes.Audit)
                        //{
                        //    //audit.XmlObject = DataObjectToXml<T_OA_ORGANIZATION>.ObjListToXml(organ, "OA");
                        //}
                        if (action == FormTypes.Resubmit)
                        {
                            organ.CHECKSTATE = ((int)CheckStates.UnSubmit).ToString();
                        }
                        if (checkstate != ((int)CheckStates.UnSubmit).ToString() && checkstate != ((int)CheckStates.UnApproved).ToString())   //只有未提交和未通过才能修改
                        {
                            //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());
            }
        }