コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }