private void FillNatureList() { var textFields = new string[] { "NatureCode", "NatureName" }; var pattern = "{0} - {1}"; var orderBy = new string[] { "NatureCode" }; ProductNatureEx.LoadCombo(ref cboNature, textFields, pattern, true, true, "", "", orderBy); }
private void FillParentNatureList() { var textFields = new string[] { "NatureCode", "NatureName" }; var pattern = "{0} - {1}"; string sql = "NatureId NOT IN ('" + _NatureId.ToString() + "')"; string[] orderBy = new string[] { "NatureCode" }; ProductNatureEx.LoadCombo(ref cboParentNature, textFields, pattern, true, true, "", sql, orderBy); }