Esempio n. 1
0
        private void SetErrorCodeList()
        {
            TSModelFacade tsFacade = new TSModelFacade(this.DataProvider);

            object[] errorCodeGroups = tsFacade.GetErrorCodeGroupByItemCode(txtItem.Value);
            if (errorCodeGroups != null)
            {
                errorCodeSelect.ClearErrorGroup();
                errorCodeSelect.ClearSelectedErrorCode();
                errorCodeSelect.ClearSelectErrorCode();
                errorCodeSelect.AddErrorGroups(errorCodeGroups);
            }
        }
Esempio n. 2
0
        private void InitForm()
        {
            object[] errorCodeGroups = tsFacade.GetErrorCodeGroupByItemCode(ItemCode);
            if (errorCodeGroups != null)
            {
                errorCodeSelect.ClearErrorGroup();
                errorCodeSelect.ClearSelectedErrorCode();
                errorCodeSelect.ClearSelectErrorCode();
                errorCodeSelect.AddErrorGroups(errorCodeGroups);
            }

            if (this.SelectedErrorCode != null)
            {
                this.errorCodeSelect.AddSelectedErrorCodes(this.SelectedErrorCode);
            }
        }