Exemplo n.º 1
0
 private void btnSearch_Click(object sender, EventArgs e)
 {
     dgvEmp.DataSource = empLogic.GetEmpList(new HR_EmployeeParam()
     {
         EmpName = txtSEmpName.Text.ToStringHasNull()
     });
 }
Exemplo n.º 2
0
 private void BindComboBox()
 {
     empList = empLogic.GetEmpList(new HR_EmployeeParam()
     {
     });
     if (empList != null)
     {
         empList.Insert(0, new HR_EmployeeResult()
         {
             EmpID = 0, EmpName = ""
         });
         empLogic.BindComboBox(cboEmployee, empList);
         empLogic.BindComboBox(noNoticedPanel.Columns["colBuyer"].EditControl, empList);
         //noNoticedPanel.Columns["colBuyer"].RenderType = typeof(GridComboBoxExEditControl);
         empLogic.BindComboBox(noNoticedPanel.Columns["colBuyer"].RenderControl, empList);
     }
 }
Exemplo n.º 3
0
        public void InitData()
        {
            orgLogic.BindComboBox(cboOrgID, new HR_OrgParam()
            {
            });
            deptLogic.BindComboBox(cboDeptID, new HR_DepartmentParam()
            {
            });

            List <HR_EmployeeResult> empList = empLogic.GetEmpList(new HR_EmployeeParam()
            {
            });

            empLogic.BindComboBox(cboManagerEmpID, empList);
            empLogic.BindComboBox(cboLastEditEmpID, empList);
            //empLogic.BindComboBox(cboRelationSales, empList);
            //empLogic.BindComboBox(cboRelationBuyers, empList);
            List <SYS_DictItemLineResult> itemLineList = dictLineLogic.GetListByCode(new SYS_DictItemLineParam
            {
                ItemCodes = new string[] {
                    "Probation", "Position", "EmpStatus", "Gender", "Nation", "Marriage", "Education", "Professional", "Currency", "EmpIsActive"
                }
            });

            dictLineLogic.BindComboBox(cboProbation, "Probation", itemLineList);
            dictLineLogic.BindComboBox(cboPositionID, "Position", itemLineList);
            dictLineLogic.BindComboBox(cboEmpStatus, "EmpStatus", itemLineList);
            dictLineLogic.BindComboBox(cboSex, "Gender", itemLineList);
            dictLineLogic.BindComboBox(cboNation, "Nation", itemLineList);
            dictLineLogic.BindComboBox(cboMarriage, "Marriage", itemLineList);
            dictLineLogic.BindComboBox(cboEducation, "Education", itemLineList);
            dictLineLogic.BindComboBox(cboProfessional, "Professional", itemLineList);
            dictLineLogic.BindComboBox(cboDefaultSaleCurreny, "Currency", itemLineList);
            dictLineLogic.BindComboBox(cboDefaultBuyCurreny, "Currency", itemLineList);
            dictLineLogic.BindComboBox(cboIsActive, "EmpIsActive", itemLineList);
            //dictLineLogic.BindComboBox(cboCustStatus, new SYS_DictItemLineParam { ItemCode = "CustStatus" }, pgList.ResultJoinList);
            //dictLineLogic.BindComboBox(cboCustDealType, new SYS_DictItemLineParam { ItemCode = "CustDealType" }, pgList.ResultJoinList);
            //dictLineLogic.BindComboBox(cboClearingForm, new SYS_DictItemLineParam { ItemCode = "ClearingForm" }, pgList.ResultJoinList);
        }