예제 #1
0
        /// <summary>
        /// 系统初始化
        /// </summary>
        private void Init()
        {
            #region 查询返修信息

            DateTime dtBegin, dtEnd;
            ServerTime.GetMonthlyBalance(ServerTime.Time, out dtBegin, out dtEnd);
            dateTimePickerET.Value = dtBegin.AddDays(1).Date;
            RefreshDataGridViewOfRepairInfo();

            #endregion

            string[] productType = null;

            if (!m_productInfoServer.GetAllProductType(out productType, out error))
            {
                MessageDialog.ShowErrorMessage(error);
                return;
            }

            List <string> lstProductType = productType.ToList();

            lstProductType.RemoveAll(p => p.Contains(" FX"));

            cmbOldCVTType.Items.Clear();
            cmbNewCVTType.Items.Clear();

            cmbOldCVTType.Items.AddRange(lstProductType.ToArray());
            cmbNewCVTType.Items.AddRange(lstProductType.ToArray());

            cmbOldCVTType.SelectedIndex = 0;
            cmbNewCVTType.SelectedIndex = 0;
        }
예제 #2
0
        public 拷贝电子档案信息()
        {
            InitializeComponent();

            string[] productType = null;

            if (!m_productInfoServer.GetAllProductType(out productType, out m_error))
            {
                MessageDialog.ShowErrorMessage(m_error);
                return;
            }

            List <string> lstProductType = productType.ToList();

            lstProductType.RemoveAll(p => p.Contains(" FX"));

            cmbCVTType.Items.Clear();

            cmbCVTType.Items.AddRange(lstProductType.ToArray());

            cmbCVTType.SelectedIndex = 0;
        }