Example #1
0
        // Get data from table EmployeeTyepe
        private void GetLists_InEmployeeType()
        {
            DataTable empTypeTable = employeeTypeBLL.GetLists();

            cbBEmployeeType.DataSource = empTypeTable;

            if (Common.clsLanguages.StrCulture.Equals("vi-VN"))
            {
                DataRow rowEmpType = empTypeTable.NewRow();
                rowEmpType["EmployeeTypeId"]   = "000";
                rowEmpType["EmployeeTypeName"] = "<-- " + Common.clsLanguages.GetResource("CRM145") + " -->";
                empTypeTable.Rows.InsertAt(rowEmpType, 0);
                cbBEmployeeType.DisplayMember = "EmployeeTypeName";
            }
            else if (Common.clsLanguages.StrCulture.Equals("en-US"))
            {
                DataRow rowEmpType = empTypeTable.NewRow();
                rowEmpType["EmployeeTypeId"]    = "000";
                rowEmpType["EmployeeTypeName3"] = "<-- " + Common.clsLanguages.GetResource("CRM145") + " -->";
                empTypeTable.Rows.InsertAt(rowEmpType, 0);
                cbBEmployeeType.DisplayMember = "EmployeeTypeName3";
            }
            else if (Common.clsLanguages.StrCulture.Equals("ja-JP"))
            {
                DataRow rowEmpType = empTypeTable.NewRow();
                rowEmpType["EmployeeTypeId"]    = "000";
                rowEmpType["EmployeeTypeName2"] = "<-- " + Common.clsLanguages.GetResource("CRM145") + " -->";
                empTypeTable.Rows.InsertAt(rowEmpType, 0);
                cbBEmployeeType.DisplayMember = "EmployeeTypeName2";
            }
            cbBEmployeeType.ValueMember = "EmployeeTypeId";
        }
Example #2
0
 ///// <summary>
 ///// Get data from table Custommer_Type
 ///// </summary>
 private void GetLists_InGridCustommerType()
 {
     dgvEmployeeType.DataSource = empBLL.GetLists();
     txtEmployeeTypeName1.Focus();
 }