private void departmentManager_Click(object sender, EventArgs e) { ArrayList tables = new ArrayList(); tables.Add("BASE_DEPARTMENT_LIST"); FormBaseAuxiliaryMaterial fbam = new FormBaseAuxiliaryMaterial(tables, "部门信息管理", false); fbam.ShowDialog(); }
private void panelSaleName_DoubleClick(object sender, EventArgs e) { if (!this.textBoxDepartmentName.Visible) { this.labelSaleName.Visible = false; this.textBoxDepartmentName.Visible = true; } else { ArrayList tables = new ArrayList(); tables.Add("BASE_DEPARTMENT_LIST"); FormBaseAuxiliaryMaterial fbam = new FormBaseAuxiliaryMaterial(tables, "部门信息管理", true); fbam.ShowDialog(); m_departmentPkey = fbam.getSelectRecordPkey(); this.textBoxDepartmentName.Text = AuxiliaryMaterial.getInctance().getAuxiliaryMaterialNameFromPkey("BASE_DEPARTMENT_LIST", m_departmentPkey); this.textBoxDepartmentName.Visible = true; } }
private void SuppierGroupAdd_Click(object sender, EventArgs e) { ArrayList tables = new ArrayList(); tables.Add("BASE_DEPARTMENT_LIST"); FormBaseAuxiliaryMaterial fbam = new FormBaseAuxiliaryMaterial(tables, "部门信息管理", true); fbam.ShowDialog(); StaffOrgStructTable userOrgStructData = new StaffOrgStructTable(); userOrgStructData.value = fbam.getSelectRecordPkey(); userOrgStructData.parentPkey = StaffOrgStruct.getInctance().getPkeyFromValue(m_staffGroupPkey); if (userOrgStructData.value != 0) { StaffOrgStruct.getInctance().insert(userOrgStructData); refreshTreeView(); } }
private void departmentAdd_Click(object sender, EventArgs e) { ArrayList tables = new ArrayList(); tables.Add("BASE_DEPARTMENT_LIST"); FormBaseAuxiliaryMaterial fbam = new FormBaseAuxiliaryMaterial(tables, "部门信息管理", true); fbam.ShowDialog(); UserOrgStructTable userOrgStructData = new UserOrgStructTable(); userOrgStructData.value = fbam.getSelectRecordPkey(); userOrgStructData.departmentOrStaff = 0; // 0:部门 1:员工 userOrgStructData.parentPkey = m_pkey; if (userOrgStructData.value != 0) { UserOrgStruct.getInctance().insert(userOrgStructData); refreshTreeView(); } }
private void menuBaseInfoFuzhu_Click(object sender, EventArgs e) { FormBaseAuxiliaryMaterial fbam = new FormBaseAuxiliaryMaterial(); fbam.ShowDialog(); }
private void panelAuxiliaryMaterial_Click(object sender, EventArgs e) { FormBaseAuxiliaryMaterial fbam = new FormBaseAuxiliaryMaterial(); fbam.ShowDialog(); }