Esempio n. 1
0
        private void FillParentCodeList()
        {
            string sql = "ParentCode IS NULL OR ParentCode = '" + Guid.Empty.ToString() + "'";

            string[] orderBy = new string[] { "AnalysisCode" };

            PosAnalysisCodeEx.LoadCombo(ref cboParentAnalysisCode, "AnalysisCode", false, true, "", sql, orderBy);
        }
Esempio n. 2
0
        /// <summary>
        /// Fills the analysis list.
        /// </summary>
        private void FillAnalysisList()
        {
            var textFields = new string[] { "AnalysisCode", "CodeName" };
            var pattern    = "{0} {1}";
            var orderBy    = new string[] { "AnalysisCode" };

            PosAnalysisCodeEx.LoadCombo(ref cboAnalysisCode01, textFields, pattern, true, false, string.Empty, GetAnalysisSqlCondition("01"), orderBy);
            PosAnalysisCodeEx.LoadCombo(ref cboAnalysisCode02, textFields, pattern, true, false, string.Empty, GetAnalysisSqlCondition("02"), orderBy);
            PosAnalysisCodeEx.LoadCombo(ref cboAnalysisCode03, textFields, pattern, true, false, string.Empty, GetAnalysisSqlCondition("03"), orderBy);
            PosAnalysisCodeEx.LoadCombo(ref cboAnalysisCode04, textFields, pattern, true, false, string.Empty, GetAnalysisSqlCondition("04"), orderBy);
            PosAnalysisCodeEx.LoadCombo(ref cboAnalysisCode05, textFields, pattern, true, false, string.Empty, GetAnalysisSqlCondition("05"), orderBy);
            PosAnalysisCodeEx.LoadCombo(ref cboAnalysisCode06, textFields, pattern, true, false, string.Empty, GetAnalysisSqlCondition("06"), orderBy);
            PosAnalysisCodeEx.LoadCombo(ref cboAnalysisCode07, textFields, pattern, true, false, string.Empty, GetAnalysisSqlCondition("07"), orderBy);
            PosAnalysisCodeEx.LoadCombo(ref cboAnalysisCode08, textFields, pattern, true, false, string.Empty, GetAnalysisSqlCondition("08"), orderBy);
            PosAnalysisCodeEx.LoadCombo(ref cboAnalysisCode09, textFields, pattern, true, false, string.Empty, GetAnalysisSqlCondition("09"), orderBy);
            PosAnalysisCodeEx.LoadCombo(ref cboAnalysisCode10, textFields, pattern, true, false, string.Empty, GetAnalysisSqlCondition("10"), orderBy);
        }