Esempio n. 1
0
        void Get_SSurveyAppCompleted(object sender, Get_SSurveyAppCompletedEventArgs e)
        {
            if (e.Result != null)
            {
                _survey = e.Result;

                DocDistrbuteClient.GetDocDistrbuteInfosAsync(_survey.SATISFACTIONREQUIREID);

                txtTitle.Text        = _survey.SATISFACTIONTITLE;
                dpStartDate.Text     = Convert.ToDateTime(_survey.STARTDATE).ToShortDateString();
                dpEndDate.Text       = Convert.ToDateTime(_survey.ENDDATE).ToShortDateString();
                cmbWay.SelectedIndex = int.Parse(_survey.WAY);
                ckbOptFlag.IsChecked = _survey.OPTFLAG == "1" ? true : false;
                foreach (T_SYS_DICTIONARY i in cbDepCity.Items)
                {
                    if (i.DICTIONARYID != null && i.DICTIONARYID.Equals(_survey.ANSWERGROUPID))
                    {
                        cbDepCity.SelectedItem = i;
                    }
                }

                RefreshUI(RefreshedTypes.AuditInfo);
                RefreshUI(RefreshedTypes.All);
            }
        }
Esempio n. 2
0
        void Get_SSurveyAppCompleted(object sender, Get_SSurveyAppCompletedEventArgs e)
        {
            if (e.Result != null)
            {
                _survey = e.Result;

                DocDistrbuteClient.GetDocDistrbuteInfosAsync(_survey.SATISFACTIONREQUIREID);

                txtTitle.Text = _survey.SATISFACTIONTITLE;
                dpStartDate.Text = Convert.ToDateTime(_survey.STARTDATE).ToShortDateString();
                dpEndDate.Text = Convert.ToDateTime(_survey.ENDDATE).ToShortDateString();
                cmbWay.SelectedIndex = int.Parse(_survey.WAY);
                ckbOptFlag.IsChecked = _survey.OPTFLAG == "1" ? true : false;
                foreach (T_SYS_DICTIONARY i in cbDepCity.Items)
                    if (i.DICTIONARYID != null && i.DICTIONARYID.Equals(_survey.ANSWERGROUPID))
                        cbDepCity.SelectedItem = i;

                RefreshUI(RefreshedTypes.AuditInfo);
                RefreshUI(RefreshedTypes.All);
            }
        }