private void tabInvMain_Deselected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { if (loadInv == true) { RefreshInvPrice(Static.ToStr(txtInvId.EditValue)); } }
private void xtcOtherChoice_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { if (e.Page.Name.Equals("xtraTabPageTakeaway")) { curClass = PubComm.ACCESS_TAKEAWAY; } else if (e.Page.Name.Equals("xtraTabPageQuickFood")) { curClass = PubComm.ACCESS_QUICKFOOD; } else if (e.Page.Name.Equals("xtraTabPageEatIn")) { curClass = PubComm.ACCESS_EATIN; } else if (e.Page.Name.Equals("xtraTabPageGeneral")) { curClass = PubComm.ACCESS_GENERAL; } else { curClass = PubComm.ACCESS_TAKEAWAY; } BindData(Convert.ToInt32(lueAuthGrp.EditValue), curClass); }
private void xtraTabControl1_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { dataGridView1.DataSource = client.gettop(); try { pictureBox3.ImageLocation = Application.StartupPath.Substring(0, Application.StartupPath.Length - 19) + @"\MI\Images\" + dataGridView1.Rows[0].Cells[7].Value; p2.ImageLocation = Application.StartupPath.Substring(0, Application.StartupPath.Length - 19) + @"\MI\Images\" + dataGridView1.Rows[1].Cells[7].Value; p3.ImageLocation = Application.StartupPath.Substring(0, Application.StartupPath.Length - 19) + @"\MI\Images\" + dataGridView1.Rows[2].Cells[7].Value; p4.ImageLocation = Application.StartupPath.Substring(0, Application.StartupPath.Length - 19) + @"\MI\Images\" + dataGridView1.Rows[3].Cells[7].Value; p5.ImageLocation = Application.StartupPath.Substring(0, Application.StartupPath.Length - 19) + @"\MI\Images\" + dataGridView1.Rows[4].Cells[7].Value; p6.ImageLocation = Application.StartupPath.Substring(0, Application.StartupPath.Length - 19) + @"\MI\Images\" + dataGridView1.Rows[5].Cells[7].Value; p7.ImageLocation = Application.StartupPath.Substring(0, Application.StartupPath.Length - 19) + @"\MI\Images\" + dataGridView1.Rows[6].Cells[7].Value; p8.ImageLocation = Application.StartupPath.Substring(0, Application.StartupPath.Length - 19) + @"\MI\Images\" + dataGridView1.Rows[7].Cells[7].Value; p9.ImageLocation = Application.StartupPath.Substring(0, Application.StartupPath.Length - 19) + @"\MI\Images\" + dataGridView1.Rows[8].Cells[7].Value; p10.ImageLocation = Application.StartupPath.Substring(0, Application.StartupPath.Length - 19) + @"\MI\Images\" + dataGridView1.Rows[9].Cells[7].Value; textBox4.Text = dataGridView1.Rows[0].Cells[6].Value.ToString() + "- Ca Sĩ:" + dataGridView1.Rows[0].Cells[9].Value.ToString(); label1.Text = dataGridView1.Rows[0].Cells[12].Value.ToString(); tb2.Text = dataGridView1.Rows[1].Cells[6].Value.ToString() + "- Ca Sĩ:" + dataGridView1.Rows[1].Cells[9].Value.ToString(); tb3.Text = "3.\n" + dataGridView1.Rows[2].Cells[6].Value.ToString() + "- Ca Sĩ:" + dataGridView1.Rows[2].Cells[9].Value.ToString(); tb4.Text = "4.\n" + dataGridView1.Rows[3].Cells[6].Value.ToString() + "- Ca Sĩ:" + dataGridView1.Rows[3].Cells[9].Value.ToString(); tb5.Text = "5.\n" + dataGridView1.Rows[4].Cells[6].Value.ToString() + "- Ca Sĩ:" + dataGridView1.Rows[4].Cells[9].Value.ToString(); tb6.Text = "6.\n" + dataGridView1.Rows[5].Cells[6].Value.ToString() + "- Ca Sĩ:" + dataGridView1.Rows[5].Cells[9].Value.ToString(); tb7.Text = "7.\n" + dataGridView1.Rows[6].Cells[6].Value.ToString() + "- Ca Sĩ:" + dataGridView1.Rows[6].Cells[9].Value.ToString(); tb8.Text = "8.\n" + dataGridView1.Rows[7].Cells[6].Value.ToString() + "- Ca Sĩ:" + dataGridView1.Rows[7].Cells[9].Value.ToString(); tb9.Text = "9.\n" + dataGridView1.Rows[8].Cells[6].Value.ToString() + "- Ca Sĩ:" + dataGridView1.Rows[8].Cells[9].Value.ToString(); tb10.Text = "10.\n" + dataGridView1.Rows[9].Cells[6].Value.ToString() + "- Ca Sĩ:" + dataGridView1.Rows[9].Cells[9].Value.ToString(); } catch {} }
private void TabControl_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { if (e.PageIndex == 0) { btnFiltro.Enabled = false; btnRefrescar.Visibility = DevExpress.XtraBars.BarItemVisibility.Never; } if (e.PageIndex == 1) { btnFiltro.Enabled = false; btnRefrescar.Visibility = DevExpress.XtraBars.BarItemVisibility.Never; } if (e.PageIndex == 2) { btnFiltro.Enabled = false; btnRefrescar.Visibility = DevExpress.XtraBars.BarItemVisibility.Never; } if (e.PageIndex == 3) { btnFiltro.Enabled = true; btnRefrescar.ItemClick += null; btnRefrescar.ItemClick += btnRefrescarExistencias; btnRefrescar.Visibility = DevExpress.XtraBars.BarItemVisibility.Always; } if (e.PageIndex == 4) { btnRefrescar.ItemClick += null; btnRefrescar.ItemClick += btnRefrescarTransacciones; btnFiltro.Enabled = true; btnRefrescar.Visibility = DevExpress.XtraBars.BarItemVisibility.Always; } }
private void xtraTabControl1_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { if (e.PageIndex == 1 && !readhistory) { ReadHistory(); readhistory = true; } }
private void xtraTabCustomer_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { if (loadAddress == true) { RefreshPayment(Static.ToInt(numUserNo.EditValue)); //noUserNo.EditValue = numUserNo.Text; } }
private void xtraTabControl1_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { switch (e.PageIndex) { case 1: RefreshPayType(Static.ToStr(txtPOSNo.EditValue)); break; } }
private void xtraTabControl1_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { if (e.PageIndex == 1) { RefreshDataAdd(Static.ToStr(_ServId)); } if (e.PageIndex == 2) { RefreshServPrice(Static.ToStr(_ServId)); } }
private void xtraTabControl1_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { switch (e.PageIndex) { case 0: LoadModelData(); break; case 1: LoadSqlData(); break; case 2: LoadParamsData(); break; case 3: LoadChainData(); break; } }
private void xtraTabControl1_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { switch (e.PageIndex) { case 0: this.btnMailMerge.Enabled = true; break; case 1: this.btnMailMerge.Enabled = false; break; } }
private void xtraTabControl1_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { if (e.Page.Tag == null) { MethodInfo methodInfo = this.GetType().GetMethod(e.Page.Name.ToUpper(), BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.DeclaredOnly); if (methodInfo == null) { FGlobus.Componentes.WinForms.Mensagem.Informacao(e.Page.Name); } else { methodInfo.Invoke(this, null); e.Page.Tag = true; } } }
private void xtraTabControl1_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { switch (e.PageIndex) { case 0: richEdit = richEditControl1; this.btnMailMerge.Enabled = true; this.btnUpdateDocVariableFields.Enabled = false; break; case 1: richEdit = richEditControl2; this.btnMailMerge.Enabled = false; this.btnUpdateDocVariableFields.Enabled = true; break; } }
private void xtraTabControl1_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { if (e.PageIndex == 0) { page = false; if (!load) { RefreshInbox(); } } else { page = true; if (!loadsent) { RefreshSent(); } } }
private void cAplicacion_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { switch (e.Page.Name) { case "tpRoles": InfoListDataGridView = gdvRoles; ObjetoLista = rolesBindingSource; break; case "tpOpcionesUI": InfoListDataGridView = gdvOpciones; ObjetoLista = opcionesUIBindingSource; break; case "tpRecursos": InfoListDataGridView = gdvRecursos; ObjetoLista = recursosBindingSource; break; } }
private void xtraTabControl1_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { switch (e.PageIndex) { case 1: RefreshProduct(); break; case 2: RefreshAccount(); break; case 3: RefreshDep(); break; case 4: break; } }
private void xtraTabControl1_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { try { using (NetUtilityLib.ExcelHelper exc = new NetUtilityLib.ExcelHelper("dst.xlsx")) { DataTable dt = exc.ExcelToDataTable("sheet1", true); /* * DataRow dr = dt.NewRow(); * dr["dst"] = add_dst_dir.SelectedPath; * dt.Rows.Add(dr); * exc.DataTableToExcel(dt, "sheet1", true); */ searchLookUpEdit1.Properties.DataSource = dt; } } catch (Exception err) { MessageBox.Show(err.Message); } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void Xtc_Tabs_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { if (e.PageIndex != 1) { Cam_Camera.Device.Stop(); Lci_Authen.Visibility = LayoutVisibility.Never; Lci_Cancel.Visibility = LayoutVisibility.Never; return; } Lci_Authen.Visibility = LayoutVisibility.Always; Lci_Cancel.Visibility = LayoutVisibility.Always; var info = CameraControl.GetDevices().FirstOrDefault(); if (info == null) { XtraMessageBox.Show(this, "未找到输入设备!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } Cam_Camera.Start(CameraControl.GetDevice(info)); }
private void xtcExam_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { if (e.PageIndex == 3 && lstFee != null && lstFee.Count > 0) { dgvFees.DataSource = null; dgvFees.DataSource = lstFee; dgvFees.Columns["id"].Visible = false; dgvFees.Columns["usage"].Visible = false; dgvFees.Columns["type"].Visible = false; dgvFees.Columns["name"].HeaderText = "Tên thuốc/dịch vụ"; dgvFees.Columns["name"].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill; dgvFees.Columns["unit"].HeaderText = "Đvt"; dgvFees.Columns["unit"].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells; dgvFees.Columns["price"].HeaderText = "Đơn giá"; dgvFees.Columns["price"].DefaultCellStyle.Format = "N0"; dgvFees.Columns["price"].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells; dgvFees.Columns["quantity"].HeaderText = "SL"; dgvFees.Columns["quantity"].AutoSizeMode = DataGridViewAutoSizeColumnMode.AllCells; dgvFees.Columns["quantity"].DefaultCellStyle.Format = "N0"; dgvFees.Columns["sum"].HeaderText = "Thành tiền"; dgvFees.Columns["sum"].DefaultCellStyle.Format = "N0"; dgvFees.Columns["sum"].DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleRight; } }
private void xtraTabControl1_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { wareFilterUC1.Fill(); }
private void XtraTabControl1_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { //throw new NotImplementedException(); // tb.TabPageChange(GetDT()); }
private void xtraTabControl1_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { //xtraTabControl1.Selected MessageBox.Show("a"); }
private void xtraTabControl1_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { Listeclt(); }
private void xtpTaConfig_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { SetData(e.Page.Name); }
private void tabIhaleBilgileri_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { }
private void xtcPostcodeCharge_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { iTblPage = e.Page.Name.Equals("xtraTabPageCharge") ? 1 : 2; BindData(iTblPage); }
private void xtcOtherChoice_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { iTblPage = 1; }
private void xtraTabControlChildFrom_Selected(object sender, DevExpress.XtraTab.TabPageEventArgs e) { try { switch (e.PageIndex) { case 0: //if (tabAnalysisTemplateManage.Controls.Count > 0) //{ // AnalysisTemplateManage formAnalysisTemplateManage = tabAnalysisTemplateManage.Controls[0] as AnalysisTemplateManage; // formAnalysisTemplateManage.LoadForm(); //} break; case 1: //if (TabLargedataAnalysisManage.Controls.Count > 0) //{ // LargedataAnalysisManage formLargedataAnalysisManage = TabLargedataAnalysisManage.Controls[0] as LargedataAnalysisManage; // formLargedataAnalysisManage.LoadForm(); //} break; case 2: //if (TabSetAlarmNotificationPersonnelMange.Controls.Count > 0) //{ // SetAlarmNotificationPersonnelManage formSetAlarmNotificationPersonnelManage = TabSetAlarmNotificationPersonnelMange.Controls[0] as SetAlarmNotificationPersonnelManage; // //formSetAlarmNotificationPersonnel.LoadForm(); //} break; case 3: //if (TabSetRegionOutageManage.Controls.Count > 0) //{ // SetRegionOutage formSetRegionOutage = TabSetRegionOutageManage.Controls[0] as SetRegionOutage; // formSetRegionOutage.LoadForm(); //} break; case 4: //if (TabSetEmergencyLinkage.Controls.Count > 0) //{ // SetEmergencyLinkage formSetEmergencyLinkage = TabSetEmergencyLinkage.Controls[0] as SetEmergencyLinkage; // formSetEmergencyLinkage.LoadForm(); //} break; case 5: //if (TabCurvilinearQuery.Controls.Count > 0) //{ // CurvilinearQuery formCurvilinearQuery = TabCurvilinearQuery.Controls[0] as CurvilinearQuery; // formCurvilinearQuery.InitializeControls(); //} break; case 6: break; case 7: //if (TabViewEmergencyLinkage.Controls.Count > 0) //{ // SetEmergencyLinkageList formSetEmergencyLinkageList = TabViewEmergencyLinkage.Controls[0] as SetEmergencyLinkageList; // formSetEmergencyLinkageList.LoadForm(); //} break; default: break; } } catch { } }