private void Muestraformulario(XtraForm aXtraForm, Enumerados.TipoFormulario aTipoDeFormulario) { if (aXtraForm != null) { aXtraForm.Activate(); } else { switch (aTipoDeFormulario) { case Enumerados.TipoFormulario.Moneda: MonedaXtraForm form = new MonedaXtraForm { MdiParent = this }; form.Show(); break; case Enumerados.TipoFormulario.RegistroClientes: RegistroClientesXtraForm registroXtraForm = new RegistroClientesXtraForm { MdiParent = this }; registroXtraForm.Show(); break; //case Enumerados.TipoFormulario.NomencladorEstadosContratos: // EstadoDeContratosXtraForm estadoDeContratosXtraForm = new EstadoDeContratosXtraForm { MdiParent = this }; // estadoDeContratosXtraForm.Show();break; default: break; } //TODO ver como pasar parametro por clase para que construya cualquier tipo de XTraformsplashScreenManager1.ShowWaitForm(); } }
private void btnRegistOrder_ItemClick(object sender, ItemClickEventArgs e) { XtraForm frm = this.CheckExist(typeof(Orders.frmRegisterOrder)); if (frm != null) { frm.Activate(); } else { Orders.frmRegisterOrder f = new Orders.frmRegisterOrder(); f.MdiParent = this; f.Show(); } }
private void btnProduct_ItemClick(object sender, ItemClickEventArgs e) { XtraForm frm = this.CheckExist(typeof(Products.frmProduct)); if (frm != null) { frm.Activate(); } else { Products.frmProduct f = new Products.frmProduct(); f.MdiParent = this; f.Show(); } }
private void btnCategory_ItemClick(object sender, ItemClickEventArgs e) { XtraForm frm = this.CheckExist(typeof(Categorys.frmCategory)); if (frm != null) { frm.Activate(); } else { Categorys.frmCategory f = new Categorys.frmCategory(); f.MdiParent = this; f.Show(); } }
private void btnWarehouse_ItemClick(object sender, ItemClickEventArgs e) { XtraForm frm = this.CheckExist(typeof(Warehouses.frmWarehouse)); if (frm != null) { frm.Activate(); } else { Warehouses.frmWarehouse f = new Warehouses.frmWarehouse(); f.MdiParent = this; f.Show(); } }
private void btnAgency_ItemClick(object sender, ItemClickEventArgs e) { XtraForm frm = this.CheckExist(typeof(Agencys.frmAgency)); if (frm != null) { frm.Activate(); } else { Agencys.frmAgency f = new Agencys.frmAgency(); f.MdiParent = this; f.Show(); } }
private void btnLanguageLibrary_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { XtraForm frm = this.CheckExist(typeof(LanguageLibrarys.frmLanguageLibrary)); if (frm != null) { frm.Activate(); } else { LanguageLibrarys.frmLanguageLibrary f = new LanguageLibrarys.frmLanguageLibrary(); f.MdiParent = this; f.Show(); } }
private void btnUsers_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { XtraForm frm = this.CheckExist(typeof(Users.frmUsers)); if (frm != null) { frm.Activate(); } else { Users.frmUsers f = new Users.frmUsers(); f.MdiParent = this; f.Show(); } }
private void btnScanBarcode_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { XtraForm frm = this.CheckExist(typeof(ScanBarcodes.frmScanBarcodeAddEdit)); if (frm != null) { frm.Activate(); } else { ScanBarcodes.frmScanBarcodeAddEdit f = new ScanBarcodes.frmScanBarcodeAddEdit(); f.MdiParent = this; f.Show(); } }
private void btnProductionHistory_ItemClick(object sender, ItemClickEventArgs e) { XtraForm frm = this.CheckExist(typeof(ScanBarcodes.frmScanBarcode)); if (frm != null) { frm.Activate(); } else { ScanBarcodes.frmScanBarcode f = new ScanBarcodes.frmScanBarcode(); f.MdiParent = this; f.Show(); } }
private void btnRegistBarcode_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { XtraForm frm = this.CheckExist(typeof(RegistBarcodes.frmRegistBarcode)); if (frm != null) { frm.Activate(); } else { RegistBarcodes.frmRegistBarcode f = new RegistBarcodes.frmRegistBarcode(); f.MdiParent = this; f.Show(); } }
private void btnPartNumber_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { XtraForm frm = this.CheckExist(typeof(PartNumbers.frmPartNumber)); if (frm != null) { frm.Activate(); } else { PartNumbers.frmPartNumber f = new PartNumbers.frmPartNumber(); f.MdiParent = this; f.Show(); } }
private void btnShift_ItemClick(object sender, ItemClickEventArgs e) { XtraForm frm = this.CheckExist(typeof(Shifts.frmShift)); if (frm != null) { frm.Activate(); } else { Shifts.frmShift f = new Shifts.frmShift(); f.MdiParent = this; f.Show(); } }
private void btnMold_ItemClick(object sender, ItemClickEventArgs e) { XtraForm frm = this.CheckExist(typeof(Molds.frmMold)); if (frm != null) { frm.Activate(); } else { Molds.frmMold f = new Molds.frmMold(); f.MdiParent = this; f.Show(); } }
private void btnReportSyntheticProductionPlan_ItemClick(object sender, ItemClickEventArgs e) { XtraForm frm = this.CheckExist(typeof(Reports.frmReportSyntheticProductionPlan)); if (frm != null) { frm.Activate(); } else { Reports.frmReportSyntheticProductionPlan f = new Reports.frmReportSyntheticProductionPlan(); f.MdiParent = this; f.Show(); } }
void showFrm(string sFrmName) { XtraForm form = this.CheckChildForm(sFrmName); if (form != null) { form.Activate(); return; } switch (sFrmName) { //学期设置 case "TERM": form = new frmTERM(); break; //学院管理 case "DEPARTMENT": form = new frmDEPARTMENT(); break; //专业管理 case "MAJOR": form = new frmMAJOR(); break; //专业方向管理 case "MAJORDIRCT": form = new frmMAJORDIRCT(); break; //班级管理 case "CLASS": form = new frmCLASS(); break; //工作流管理 case "WORKFLOW": form = new frmWORKFLOW(); break; //工作节点管理 case "WORKNODE": form = new frmWORKNODE(); break; //工作流设置 case "WORKFLOWSET": form = new frmWORKFLOWSET(); break; //课程类型管理 case "COURSE_TYPE": form = new frmCOURSE_TYPE(); break; //课程信息管理 case "COURSE": form = new frmCOURSE(); break; //材料信息管理 case "MATERIAL": form = new frmMATERIAL(); break; //节点材料信息设置 case "NODEMATERIALS": form = new frmNODEMATERIALS(); break; //宿舍楼管理 case "BUILDING": form = new frmBUILDING(); break; //宿舍信息管理 case "DORMITORY": form = new frmDORMITORY(); break; //学生信息管理 case "STUDENT": form = new frmSTUDENT(); break; //教师信息管理 case "TEACHER": form = new frmTEACHER(); break; //学生实习管理 case "TEA_STU": form = new frmTEA_STU(); break; //学生实习材料管理 case "STU_MATERIALS": form = new frmSTU_MATERIALS(); break; //企业管理 case "ENTERPRISE": form = new frmENTERPRISE(); break; //学生就业信息管理 case "STU_JOBSTATUS": form = new frmSTU_JOBSTATUS(); break; case "COMPETITION_GROUP": form = new frmCOMPETITION_GROUP(); break; //登录管理 case "ReLogin": ReLoginSys(); //调用重新登陆系统的方法 return; default: return; } form.MdiParent = this; form.Tag = sFrmName; form.Show(); form.WindowState = FormWindowState.Maximized; form.BringToFront(); return; }