示例#1
0
 private void tabControl1_SelectedTabChanged(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
 {
     try
     {
         dgvMsgInfoNew.AutoResizeRows();
         dgvMsgInfoNew.Refresh();
         dgvMsgInfoNewReaded.AutoResizeRows();
         dgvMsgInfoNewReaded.Refresh();
         dgvHistoryMsgNew.AutoResizeRows();
         dgvHistoryMsgNew.Refresh();
         dgvHistoryMsgNewReaded.AutoResizeRows();
         dgvHistoryMsgNewReaded.Refresh();
         if (tabControl1.SelectedTab == tabItem3 || tabControl1.SelectedTab == tabItem4)
         {
             this.btnQR.Visible        = false;
             this.btnRefurbish.Visible = false;
         }
         else
         {
             this.btnQR.Visible        = true;
             this.btnRefurbish.Visible = true;
         }
     }
     catch
     {
     }
 }
示例#2
0
        /// <summary>
        /// Handles the SelectedTabChanged event of the tabControl1 control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="DevComponents.DotNetBar.TabStripTabChangedEventArgs"/> instance containing the event data.</param>
        private void tabControl1_SelectedTabChanged(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
        {
            if (PanelSession.Tag == null)
            {
                return;
            }
            ConnectSetup Setup = PanelSession.Tag as ConnectSetup;

            if (string.IsNullOrEmpty(Setup.userName) || AsyncStackNet.Instance.ASyncSetup.AsynCollection == null || AsyncStackNet.Instance.ASyncSetup.AsynCollection.Count == 0)
            {
                return;
            }
            if (AsyncStackNet.Instance.ASyncSetup.AsynCollection[
                    AsyncStackNet.Instance.ASyncSetup.AsynCollection.IndexOf(new ConnectSetup()
            {
                SID = Setup.SID, RID = Setup.RID
            })].Traffics == null)
            {
                return;
            }
            this.comboTree1.DataSource = AsyncStackNet.Instance.ASyncSetup.AsynCollection[
                AsyncStackNet.Instance.ASyncSetup.AsynCollection.IndexOf(new ConnectSetup()
            {
                SID = Setup.SID, RID = Setup.RID
            })].Traffics;
        }
 private void tabControl1_SelectedTabChanged(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
 {
     if (_fs_id_1 > 0)
     {
         // CreateData(_fs_id_1, _fs_id_2);
     }
 }
示例#4
0
        private void tabCustomerLinkInfo_SelectedTabChanged(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
        {
            // 设置鼠标繁忙状态,并保留原先的状态
            Cursor holdCursor = this.Cursor;

            this.Cursor = Cursors.WaitCursor;
            switch (tabCustomerLinkInfo.Tabs[tabCustomerLinkInfo.SelectedTabIndex].Text)
            {
            case "客户信息":
                break;

            case "联系人":
                GetLinkManList();
                break;

            case "跟进人员":
                MessageBoxHelper.Show("跟进人员");
                break;

            default:
                MessageBoxHelper.Show("无...");
                break;
            }

            // 设置鼠标默认状态,原来的光标状态
            this.Cursor = holdCursor;
        }
示例#5
0
 private void tabControl_SelectedTabChanged(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
 {
     biDetectCtrlr.Enabled = e.NewTab == tabItemDoor;
     biAdjustTime.Enabled  = e.NewTab == tabItemDoor;
     biSetting.Enabled     = e.NewTab == tabItemDoor;
     biRemoteOpen.Enabled  = e.NewTab == tabItemDoor;
 }
示例#6
0
 private void tabControl1_SelectedTabChanged(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
 {
     if (e.NewTab == this.tabItem1)
     {
         this.dgvAutomaticScoring.Refresh();
     }
 }
示例#7
0
        /// <summary>
        /// 切换标签页
        /// </summary>
        /// <param name="sender">事件发送者</param>
        /// <param name="e">事件参数</param>
        private void tabControl1_SelectedTabChanged(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
        {
            if (tabControl1.SelectedTab != null)
            {
                switch (tabControl1.SelectedTab.Text)
                {
                case "仇恨组":
                {
                    FillHatredGroup();
                    break;
                }

                case "随机组":
                {
                    FillRandomGroup();
                    break;
                }

                case "重生组":
                {
                    FillReviveGroup();
                    break;
                }
                }
            }
        }
示例#8
0
 /// <summary>
 /// 事件
 /// </summary>
 /// <param name="sender">对象</param>
 /// <param name="e">参数</param>
 private void tabControlRet_SelectedTabChanged(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
 {
     if (tabControlRet.SelectedTabIndex == 1)
     {
         txtRetInvoice.Focus();
     }
 }
示例#9
0
        private void tabStrip1_SelectedTabChanged(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
        {
            if (this.ActiveMdiChild == null)
            {
                return;
            }
            frmScriptEdit fse = this.ActiveMdiChild as frmScriptEdit;

            scriptTree1.selectedByIdsNoEvent(fse.fieldid, fse.tabid);
        }
        private void tabControl1_SelectedTabChanged(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
        {
            if (tabControl1.SelectedTabIndex == 0)
            {
                if (this.tabControlPanel1.Controls.Contains(this.webBrowser) == false)
                {
                    this.tabControlPanel1.Controls.Add(this.webBrowser);
                }
                if (this.tabControlPanel2.Controls.Contains(this.webBrowser))
                {
                    this.tabControlPanel2.Controls.Remove(this.webBrowser);
                }
                if (this.tabControlPanel3.Controls.Contains(this.webBrowser))
                {
                    this.tabControlPanel3.Controls.Remove(this.webBrowser);
                }

                ShowView("Page1.html", jsondatapage1);
            }
            else if (tabControl1.SelectedTabIndex == 1)
            {
                if (this.tabControlPanel1.Controls.Contains(this.webBrowser))
                {
                    this.tabControlPanel1.Controls.Remove(this.webBrowser);
                }
                if (this.tabControlPanel2.Controls.Contains(this.webBrowser) == false)
                {
                    this.tabControlPanel2.Controls.Add(this.webBrowser);
                }
                if (this.tabControlPanel3.Controls.Contains(this.webBrowser))
                {
                    this.tabControlPanel3.Controls.Remove(this.webBrowser);
                }

                ShowView("Page2.html", jsondatapage2);
            }
            else if (tabControl1.SelectedTabIndex == 2)
            {
                if (this.tabControlPanel1.Controls.Contains(this.webBrowser))
                {
                    this.tabControlPanel1.Controls.Remove(this.webBrowser);
                }
                if (this.tabControlPanel2.Controls.Contains(this.webBrowser))
                {
                    this.tabControlPanel2.Controls.Remove(this.webBrowser);
                }
                if (this.tabControlPanel3.Controls.Contains(this.webBrowser) == false)
                {
                    this.tabControlPanel3.Controls.Add(this.webBrowser);
                }

                ShowView("Page3.html", jsondatapage3);
            }
        }
示例#11
0
 /// <summary>
 /// Tab切换
 /// </summary>
 /// <param name="sender">触发事件的控件</param>
 /// <param name="e">事件所需参数</param>
 private void tabControl1_SelectedTabChanged(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
 {
     if (tabControl1.SelectedTabIndex == 0)
     {
         txtDeptList.Focus();
     }
     else
     {
         txtDept.Focus();
     }
 }
示例#12
0
        private void tabPatient_SelectedTabChanged(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
        {
            //if (tabPatient.SelectedTabIndex == 1)
            //{
            //    if (!_flag && !_isNew)
            //    {
            //        if (_drPatient["Tinh_Trang_Gia_Dinh"] != null && _drPatient["Tinh_Trang_Gia_Dinh"] != DBNull.Value)
            //            cboTinhTrangGiaDinh.Text = _drPatient["Tinh_Trang_Gia_Dinh"].ToString();

            //        _flag = true;
            //    }
            //}
        }
示例#13
0
 private void tabStrip1_SelectedTabChanged_1(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
 {
     //ngjarjet e tabStrip i lidhim me ngjarjet e docMananager
     //Nqs ndryshon elementi i zgjedhur ne tabStrip
     //ndryshojme edhe dokumentin e fokusuar ne documentManager
     if (documentManager.TabStrips.Count != 0)
     {
         if (documentManager.TabStrips[0].Documents.Count != 0)
         {
             documentManager.FocusedDocument = documentManager.TabStrips[0].Documents[tabStrip1.SelectedTabIndex];
         }
     }
 }
示例#14
0
 private void tabServiceHistory_SelectedTabChanged(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
 {
     if (tabServiceHistory.SelectedTabIndex == 0)
     {
         _uDailyServiceHistory.DisplayAsThread();
     }
     else if (tabServiceHistory.SelectedTabIndex == 1)
     {
         _uServiceHistory.DisplayAsThread();
     }
     else if (tabServiceHistory.SelectedTabIndex == 2)
     {
         _uToaThuocList.DisplayAsThread();
     }
     else if (tabServiceHistory.SelectedTabIndex == 3)
     {
         _uChiDinhList.DisplayAsThread();
     }
     else if (tabServiceHistory.SelectedTabIndex == 4)
     {
         _uCanDoList.DisplayAsThread();
     }
     else if (tabServiceHistory.SelectedTabIndex == 5)
     {
         _uKetQuaLamSangList.DisplayAsThread();
     }
     else if (tabServiceHistory.SelectedTabIndex == 6)
     {
         _uKetQuaCanLamSangList.DisplayAsThread();
     }
     else if (tabServiceHistory.SelectedTabIndex == 7)
     {
         _uLoiKhuyenList.DisplayAsThread();
     }
     else if (tabServiceHistory.SelectedTabIndex == 8)
     {
         _uKetLuanList.DisplayAsThread();
     }
     else if (tabServiceHistory.SelectedTabIndex == 9)
     {
         _uKetQuaNoiSoiList.DisplayAsThread();
     }
     else if (tabServiceHistory.SelectedTabIndex == 10)
     {
         _uKetQuaSoiCTCList.DisplayAsThread();
     }
     else if (tabServiceHistory.SelectedTabIndex == 11)
     {
         _uKetQuaSieuAmList.DisplayAsThread();
     }
 }
示例#15
0
        private void tabControl1_SelectedTabChanged(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
        {
            if (tabControl1.Tabs.Count > 0)
            {
                if (tabControl1.SelectedTab != null)
                {
                    ucPascInfo temp = (ucPascInfo)tabControl1.SelectedTab.Tag;
                    lblCheckDoctor.Text  = temp.Shys;
                    lblReportDoctor.Text = temp.Bgys;

                    temp.Yxxbx = temp.Yxxbx.Replace("\n", "").Replace(" ", "").Replace("\t", "").Replace("\r", ";");
                    temp.Yxxyj = temp.Yxxyj.Replace("\n", "").Replace(" ", "").Replace("\t", "").Replace("\r", ";");

                    yxx_bx = temp.Sqsj + " " + temp.Jclx + " 影像学表现:" + temp.Yxxbx;
                    yxx_yj = temp.Sqsj + " " + temp.Jclx + " 影像学意见:" + temp.Yxxyj;
                }
            }
        }
示例#16
0
 /// <summary>
 /// Tab选择禁用按钮
 /// </summary>
 /// <param name="sender">触发事件的控件</param>
 /// <param name="e">事件所需参数</param>
 private void tabControl1_SelectedTabChanged(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
 {
     if (tabControl1.SelectedTabIndex == 1)
     {
         btnCancelSettlement.Enabled   = false;
         btnInvoiceFill.Enabled        = false;
         btnPrintReimbursement.Enabled = false;
         chkNormalCost.Enabled         = false;
         chkHalfwayCost.Enabled        = false;
         chkArrearsCost.Enabled        = false;
     }
     else
     {
         btnCancelSettlement.Enabled   = true;
         btnInvoiceFill.Enabled        = true;
         btnPrintReimbursement.Enabled = true;
         chkNormalCost.Enabled         = true;
         chkHalfwayCost.Enabled        = true;
         chkArrearsCost.Enabled        = true;
     }
 }
示例#17
0
        /// <summary>
        /// Handles the Click event of the btnDeleteSpecial control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        //private void btnDeleteSpecial_Click(object sender, EventArgs e)
        //{
        //    this.comboBoxEx3.Items.RemoveAt(this.comboBoxEx3.SelectedIndex);
        //}

        /*
         * /// <summary>
         * /// Handles the Click event of the btnUpdateSpecial control.
         * /// </summary>
         * /// <param name="sender">The source of the event.</param>
         * /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
         * private void btnUpdateSpecial_Click(object sender, EventArgs e) {
         *  if (!Regex.IsMatch(this.comboBoxEx3.Text, @"^([A-Z0-9]+)\|(\d+)", RegexOptions.Multiline | RegexOptions.IgnoreCase)) {
         *      MessageBox.Show(@"输入格式不正确,正确格式为:SS|25", @"格式错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
         *      return;
         *  }
         *  Match m = Regex.Match(this.comboBoxEx3.Text, @"^([A-Z0-9]+)\|(\d+)", RegexOptions.Multiline | RegexOptions.IgnoreCase);
         *  this.comboBoxEx3.Items[this.comboBoxEx3.SelectedIndex] = new { Interval = m.Groups[2].Value, Command = string.Format(@"{1}   {0}", m.Groups[2].Value, m.Groups[1].Value) };
         * }
         */


        /// <summary>
        /// Handles the Click event of the btnNewSpecial control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        //private void btnNewSpecial_Click(object sender, EventArgs e) {
        //    TSessionSetup setup = PanelSession.Tag as TSessionSetup;
        //    if (!Regex.IsMatch(this.comboBoxEx3.Text, @"^([A-Z0-9]+)\|(\d+)", RegexOptions.Multiline | RegexOptions.IgnoreCase)) {
        //        MessageBox.Show(@"输入格式不正确,正确格式为:SS|25", @"格式错误", MessageBoxButtons.OK, MessageBoxIcon.Error);
        //        return;
        //    }
        //    Match m = Regex.Match(this.comboBoxEx3.Text, @"^([A-Z0-9]+)\|(\d+)", RegexOptions.Multiline | RegexOptions.IgnoreCase);
        //    this.comboBoxEx3.Items.Add(new TSessionSetup() { SessionCode = m.Groups[1].Value, Description = string.Format(@"{1} {0}", m.Groups[2].Value, m.Groups[1].Value), SessionPass = m.Groups[2].Value });

        //}

        /// <summary>
        /// Handles the SelectedTabChanged event of the tabControl1 control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="DevComponents.DotNetBar.TabStripTabChangedEventArgs"/> instance containing the event data.</param>
        private void tabControl1_SelectedTabChanged(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
        {
            if (PanelSession.Tag == null)
            {
                return;
            }
            TSessionSetup Setup = PanelSession.Tag as TSessionSetup;

            this.comboTree1.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square;
            this.comboTree1.ValueMember    = @"MonthString";
            this.comboTree1.DisplayMembers = @"MonthString,Traffic,UpdateDate";
            if (string.IsNullOrEmpty(Setup.SessionCode) || AsyncStackNet.Instance.ASyncSetup.SessionCollection == null || AsyncStackNet.Instance.ASyncSetup.SessionCollection.Count == 0)
            {
                return;
            }
            if (AsyncStackNet.Instance.ASyncSetup.SessionCollection[
                    AsyncStackNet.Instance.ASyncSetup.SessionCollection.IndexOf(new TSessionSetup(Setup.SessionCode))].Traffics == null)
            {
                return;
            }
            this.comboTree1.DataSource = AsyncStackNet.Instance.ASyncSetup.SessionCollection[
                AsyncStackNet.Instance.ASyncSetup.SessionCollection.IndexOf(new TSessionSetup(Setup.SessionCode))].Traffics;
        }
        private void tabExamination_SelectedTabChanged(object sender,
                                                       DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
        {
            Cursor = Cursors.WaitCursor;
            switch (e.NewTab.Text)
            {
            case @"الزيارات السابقة":
                if (Patient == null || Mode != AddExaminationFormMode.HasPatient)
                {
                    Cursor = Cursors.Default;
                    ShowWarningMsg(@"يجب إدخال المريض أولاً");
                    e.NewTab.AttachedControl.Enabled = false;
                    return;
                }
                e.NewTab.AttachedControl.Enabled = true;
                dgvPreviousVisits.DataSource     = ExaminationManager.GetExaminationsByPatientId(Patient.Id)
                                                   .OrderByDescending(examination => examination.Date)
                                                   .Select(examination => new PreviousExaminationVm
                {
                    ExaminationDate = examination.Date.ToFormattedArabicDate(),
                    ExaminationType =
                        examination.ExaminationType == 1 ? "كشف" : @"إعادة",
                    Complaint = examination.Complaint,
                    Diagnosis =
                        examination.ExaminationDiagnosis?.Select(
                            examinationDiagnosis => examinationDiagnosis.Diagnosi)
                        .ToDiagnosisListString(),
                    PatientLength =
                        Abs(examination.PatientLength - (-1)) > 0
                                    ? examination.PatientLength.ToString(
                            CultureInfo.CurrentCulture)
                                    : string.Empty,
                    PatientWeight =
                        Abs(examination.PatientWeight - (-1)) > 0
                                    ? examination.PatientWeight.ToString(
                            CultureInfo.CurrentCulture)
                                    : string.Empty,
                    PatientHeadCircumference =
                        Abs(examination.PatientHeadCircumference - (-1)) > 0
                                    ? examination.PatientHeadCircumference.ToString(
                            CultureInfo.CurrentCulture)
                                    : string.Empty,
                    Treatment =
                        examination.ExaminationTreatments?.Select(
                            examinationTreatments =>
                            examinationTreatments.Treatment)
                        .ToTreatmentsListString()
                }).ToList();
                break;

            case @"الكشف":
                if (Patient == null || Mode != AddExaminationFormMode.HasPatient)
                {
                    Cursor = Cursors.Default;
                    ShowWarningMsg(@"يجب إدخال المريض أولاً");
                    e.NewTab.AttachedControl.Enabled = false;
                    return;
                }
                e.NewTab.AttachedControl.Enabled = true;
                SetAutoCompletionForDiagnosisNames();
                SetAutoCompletionForTreatmentsNames();
                SetAutoCompletionForTreatmentsDescription();
                SetAutoCompletionForComplaintsNames();
                break;
            }
            Cursor = Cursors.Default;
        }
示例#19
0
 private void tabServiceHistory_SelectedTabChanged(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
 {
     OnRefreshData();
 }
示例#20
0
 /// <summary>
 /// Tab切换事件
 /// </summary>
 /// <param name="sender">控件对象</param>
 /// <param name="e">事件参数</param>
 private void tabControl1_SelectedTabChanged(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
 {
     tabControl1.TabsVisible         = false;
     tabControl1.SelectedTab.Visible = true;
 }
示例#21
0
 /// <summary>
 ///  切换分组
 /// </summary>
 /// <param name="sender">事件发送者</param>
 /// <param name="e">事件参数</param>
 private void tabControl1_SelectedTabChanged(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
 {
     groupView.Rows.Clear();
     npcView.Rows.Clear();
 }
示例#22
0
 private void tabStrip1_SelectedTabChanged(object sender, DevComponents.DotNetBar.TabStripTabChangedEventArgs e)
 {
 }