private void cmbCompany_SelectedIndexChanged(object sender, EventArgs e) { if (this.cmbCompany.SelectedValue != null && this.cmbCompany.SelectedValue.ToString().Length > 0) { //加载组织 CommonFuncCall.BindOrganizeComBox(this.cmbOrganize, this.cmbCompany.SelectedValue.ToString(), "请选择"); } }
/// <summary> 选择公司 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmbCompany_SelectedIndexChanged(object sender, EventArgs e) { try { if (this.cmbCompany.SelectedValue != null && this.cmbCompany.SelectedValue.ToString().Length > 0) { //加载组织 CommonFuncCall.BindOrganizeComBox(this.cmbOrganize, this.cmbCompany.SelectedValue.ToString(), "请选择"); } } catch (Exception ex) { GlobalStaticObj_Server.GlobalLogService.WriteLog("组织管理", ex); MessageBoxEx.ShowWarning("程序异常"); } }