private void btnUserChange_Click(object sender, EventArgs e) { frmFirstPage = null; frmSalesPriceManage = null; frmMatPriceManage = null; frmProductManage = null; frmBOM = null; frmImportInspection = null; frmProdInspection = null; frmCheckHistory = null; frmPDStock = null; frmShift = null; frmBOR = null; frmCheckList = null; frmCompany = null; frmDepartment = null; frmMachine = null; frmUser = null; frmWarehouse = null; frmIcStatus = null; frmIcWait = null; frmOStatus = null; frmSales = null; frmShipment = null; frmSO = null; frmPS = null; //생산실적 현황 frmWOR = null; //작업지시 등록 frmDR = null; //불량관리 등록/수정 frmDS = null; //불량처리현황 frmAuthority = null; //권한관리 this.Close(); }
private void configurarEmpresaToolStripMenuItem_Click(object sender, EventArgs e) { using (frmCompany f = new frmCompany()) { f.ShowDialog(); } }
public static frmCompany CreateCompany(bool Authority) { if (frmCompany == null) { frmCompany = new frmCompany(Authority); } return(frmCompany); }
private void btnAddNewCompany_Click(object sender, EventArgs e) { frmCompany _frmCompany = new frmCompany(); _frmCompany.StartPosition = FormStartPosition.CenterScreen; _frmCompany.FormBorderStyle = FormBorderStyle.FixedSingle; _frmCompany.Show(); }
private void btnCopy_Click(object sender, EventArgs e) { if (grdLister.CurrentRow != null && grdLister.CurrentRow is GridViewDataRowInfo) { frmCompany _frmCompany = new frmCompany(grdLister.CurrentRow.Cells["Id"].Value.ToInt()); _frmCompany.StartPosition = FormStartPosition.CenterScreen; _frmCompany.FormBorderStyle = FormBorderStyle.FixedSingle; _frmCompany.Show(); } }
private void ShowCompanyForm(int id) { frmCompany frm = new frmCompany(); frm.OnDisplayRecord(id); frm.ControlBox = true; frm.FormBorderStyle = FormBorderStyle.Fixed3D; frm.MaximizeBox = false; frm.ShowDialog(); }
private void btnReviewCompanyDetails_Click(object sender, EventArgs e) { if (companyBindingSource.Count > 0) { using (frmCompany frm = new frmCompany()) { frm.txtCompaniesFilterCriteria.Text = ((Data.Models.Company)companyBindingSource.Current).CompanyName.ToString(); frm.ShowDialog(); this.refreshCompanyInfo(); } } }
private void companyToolStripMenuItem_Click(object sender, EventArgs e) { Form f = IsExistsForm(typeof(frmCompany)); if (f != null) { f.Activate(); } else { frmCompany _from = new frmCompany() { MdiParent = this }; _from.Show(); } }
private void btnCompany_Click(object sender, EventArgs e) { foreach (Form f in this.MdiChildren) { if (f.GetType() == typeof(frmCompany)) { f.Activate(); f.WindowState = FormWindowState.Maximized; return; } } frmCompany frm = new frmCompany(); frm.MdiParent = this; frm.Show(); }
/// <summary> /// 以模式方式加载主窗体 /// </summary> /// <param name="objApp"> 应用程序对象 </param> /// <param name="objUser"> 当前登录用户对象 </param> //public void LoadByModeForm(WMSAppInfo objApp, WMSUserInfo objUser) //{ // LoadByModeForm(objApp, objUser, null); //} /// <summary> /// 以模式方式加载主窗体 /// </summary> /// <param name="objApp">应用程序对象</param> /// <param name="objUser">当前登录用户对象</param> /// <param name="objModule">调用模块</param> public void LoadByModeForm(WMSAppInfo objApp, WMSUserInfo objUser, string objModule) { UI.FrmSTable frmX = null; if (objModule == string.Empty || objModule.Trim() == "") //默认为 User { frmX = new frmCompany(); frmX.ModuleRtsId = "2101"; frmX.ModuleRtsName = "单位信息管理"; } else { /* * 2101 单位信息管理 * 2102 部门信息管理 * 2103 用户信息管理 * 2104 权限管理 * */ switch (objModule.Trim().ToLower()) { case "2101": //单位信息管理 frmX = new frmCompany(); frmX.ModuleRtsId = objModule.Trim().ToLower(); frmX.ModuleRtsName = "单位信息管理"; break; case "2102": //部门信息管理 frmX = new frmDept(); frmX.ModuleRtsId = objModule.Trim().ToLower(); frmX.ModuleRtsName = "部门信息管理"; break; case "2103": //用户信息管理 frmX = new frmUserInfo(); frmX.ModuleRtsId = objModule.Trim().ToLower(); frmX.ModuleRtsName = "用户信息管理"; break; case "2104": //权限管理 frmX = new frmUserRight(); frmX.ModuleRtsId = objModule.Trim().ToLower(); frmX.ModuleRtsName = "权限管理"; break; case "2114": //权限管理 frmSupplier.sCondition = " and nType=0 "; frmSupplier.type = 0; frmX = new frmSupplier(); frmX.ModuleRtsId = objModule.Trim().ToLower(); frmX.ModuleRtsName = "供应商管理"; break; case "2115": //权限管理 frmSupplier.sCondition = " and nType=1 "; frmSupplier.type = 1; frmX = new frmSupplier(); frmX.ModuleRtsId = objModule.Trim().ToLower(); frmX.ModuleRtsName = "客户管理"; break; } frmX.AppInformation = objApp; frmX.UserInformation = objUser; frmX.InitFormParameters(); frmX.ShowDialog(); frmX.Dispose(); } }