Пример #1
0
        public void SetLHPScanDownTrendInfo(LHPPrimaryScanInfo.ScanDownTrendInfo lhpScanDownTrendInfo)
        {
            //this.CheckBoxAllowDCDS.Checked = lhpScanDownTrendInfo.AllowScanDownTrend;
            //this.NumericUpDownDownDay.Value = lhpScanDownTrendInfo.ScanContinueDownDate;
            //this.CheckBoxLowPirce.Checked = lhpScanDownTrendInfo.ScanDownTrendNeedLow;

            //this.CheckBoxAllowDCHP.Checked = lhpScanDownTrendInfo.AllowCheckDCHP;

            //if ( lhpScanDownTrendInfo.CheckDCHP == LHPPrimaryScanInfo.NormalTrendCheckDCHP.ScanAnyOne )
            //{
            //    this.RadioButtonDCHPAnyOne.Checked = true;
            //}
            //else if ( lhpScanDownTrendInfo.CheckDCHP == LHPPrimaryScanInfo.NormalTrendCheckDCHP.ScanSelect )
            //{
            //    this.RadioButtonDCHPOr.Checked = true;
            //}

            //if ( lhpScanDownTrendInfo.NeedDCHP313 == true )
            //{
            //    this.ListBoxDCHPSelect.Items.Remove( "DCHP-313" );
            //    this.ListBoxDCHP.Items.Add( "DCHP-313" );
            //}

            //if ( lhpScanDownTrendInfo.NeedDCHP214 == true )
            //{
            //    this.ListBoxDCHPSelect.Items.Remove( "DCHP-214" );
            //    this.ListBoxDCHP.Items.Add( "DCHP-214" );
            //}

            //if ( lhpScanDownTrendInfo.NeedDCHP115 == true )
            //{
            //    this.ListBoxDCHPSelect.Items.Remove( "DCHP-115" );
            //    this.ListBoxDCHP.Items.Add( "DCHP-115" );
            //}

            //if ( lhpScanDownTrendInfo.NeedDCHP412 == true )
            //{
            //    this.ListBoxDCHPSelect.Items.Remove( "DCHP-412" );
            //    this.ListBoxDCHP.Items.Add( "DCHP-412" );
            //}

            //if ( lhpScanDownTrendInfo.NeedDCHP511 == true )
            //{
            //    this.ListBoxDCHPSelect.Items.Remove( "DCHP-511" );
            //    this.ListBoxDCHP.Items.Add( "DCHP-511" );
            //}


            //this.CheckBoxAllowDCLP.Checked = lhpScanDownTrendInfo.AllowCheckDCLP;

            //if ( lhpScanDownTrendInfo.CheckDCLP == LHPPrimaryScanInfo.NormalTrendCheckDCLP.ScanAnyOne )
            //{
            //    this.RadioButtonDCLPAnyOne.Checked = true;
            //}
            //else if ( lhpScanDownTrendInfo.CheckDCLP == LHPPrimaryScanInfo.NormalTrendCheckDCLP.ScanSelect )
            //{
            //    this.RadioButtonDCLPOr.Checked = true;
            //}

            //if ( lhpScanDownTrendInfo.ExcludeDCLP313 == true )
            //{
            //    this.ListBoxDCLPSelect.Items.Remove( "DCLP-313" );
            //    this.ListBoxDCLP.Items.Add( "DCLP-313" );
            //}

            //if ( lhpScanDownTrendInfo.ExcludeDCLP214 == true )
            //{
            //    this.ListBoxDCLPSelect.Items.Remove( "DCLP-214" );
            //    this.ListBoxDCLP.Items.Add( "DCLP-214" );
            //}

            //if ( lhpScanDownTrendInfo.ExcludeDCLP115 == true )
            //{
            //    this.ListBoxDCLPSelect.Items.Remove( "DCLP-115" );
            //    this.ListBoxDCLP.Items.Add( "DCLP-115" );
            //}

            //if ( lhpScanDownTrendInfo.ExcludeDCLP412 == true )
            //{
            //    this.ListBoxDCLPSelect.Items.Remove( "DCLP-412" );
            //    this.ListBoxDCLP.Items.Add( "DCLP-412" );
            //}

            //if ( lhpScanDownTrendInfo.ExcludeDCLP511 == true )
            //{
            //    this.ListBoxDCLPSelect.Items.Remove( "DCLP-511" );
            //    this.ListBoxDCLP.Items.Add( "DCLP-511" );
            //}
        }
Пример #2
0
        public LHPPrimaryScanInfo.ScanDownTrendInfo GetLHPScanDownTrendInfo()
        {
            LHPPrimaryScanInfo.ScanDownTrendInfo lhpScanDownTrendInfo = new LHPPrimaryScanInfo.ScanDownTrendInfo();

            //lhpScanDownTrendInfo.AllowScanDownTrend = this.CheckBoxAllowDCDS.Checked;
            //lhpScanDownTrendInfo.ScanContinueDownDate = (int)this.NumericUpDownDownDay.Value;
            //lhpScanDownTrendInfo.ScanDownTrendNeedLow = this.CheckBoxLowPirce.Checked;


            //lhpScanDownTrendInfo.AllowCheckDCHP = this.CheckBoxAllowDCHP.Checked;

            //if ( this.RadioButtonDCHPAnyOne.Checked == true )
            //{
            //    lhpScanDownTrendInfo.CheckDCHP = LHPPrimaryScanInfo.NormalTrendCheckDCHP.ScanAnyOne;
            //}
            //else if ( this.RadioButtonDCHPOr.Checked == true )
            //{
            //    lhpScanDownTrendInfo.CheckDCHP = LHPPrimaryScanInfo.NormalTrendCheckDCHP.ScanSelect;
            //}

            //foreach ( string item in ListBoxDCHP.Items )
            //{
            //    switch ( item )
            //    {
            //        case "DCHP-313":

            //            lhpScanDownTrendInfo.NeedDCHP313 = true;
            //            break;
            //        case "DCHP-214":

            //            lhpScanDownTrendInfo.NeedDCHP214 = true;
            //            break;
            //        case "DCHP-115":

            //            lhpScanDownTrendInfo.NeedDCHP115 = true;
            //            break;
            //        case "DCHP-412":

            //            lhpScanDownTrendInfo.NeedDCHP412 = true;
            //            break;
            //        case "DCHP-511":

            //            lhpScanDownTrendInfo.NeedDCHP511 = true;
            //            break;

            //    }
            //}

            //lhpScanDownTrendInfo.AllowCheckDCLP = this.CheckBoxAllowDCLP.Checked;

            //if ( this.RadioButtonDCLPAnyOne.Checked == true )
            //{
            //    lhpScanDownTrendInfo.CheckDCLP = LHPPrimaryScanInfo.NormalTrendCheckDCLP.ScanAnyOne;
            //}
            //else if ( this.RadioButtonDCLPOr.Checked == true )
            //{
            //    lhpScanDownTrendInfo.CheckDCLP = LHPPrimaryScanInfo.NormalTrendCheckDCLP.ScanSelect;
            //}

            //foreach ( string item in ListBoxDCLP.Items )
            //{
            //    switch ( item )
            //    {
            //        case "DCLP-313":

            //            lhpScanDownTrendInfo.ExcludeDCLP313 = true;
            //            break;
            //        case "DCLP-214":

            //            lhpScanDownTrendInfo.ExcludeDCLP214 = true;
            //            break;
            //        case "DCLP-115":

            //            lhpScanDownTrendInfo.ExcludeDCLP115 = true;
            //            break;
            //        case "DCLP-412":

            //            lhpScanDownTrendInfo.ExcludeDCLP412 = true;
            //            break;
            //        case "DCLP-511":

            //            lhpScanDownTrendInfo.ExcludeDCLP511 = true;
            //            break;

            //    }
            //}

            return(lhpScanDownTrendInfo);
        }