예제 #1
0
        public BidEvalClauseForm(IGpEvalwayItemGtfService gpEvalwayItemGtfService, string projectId, string sectionId, gpEvalWayItemGtfWebDO gpEvalWayItemGtf)
        {
            InitializeComponent();

            List <ComboBoxDataSource> lstType = new List <ComboBoxDataSource>();

            lstType.Add(new ComboBoxDataSource()
            {
                Text = "符合性", Value = 0
            });
            lstType.Add(new ComboBoxDataSource()
            {
                Text = "评分", Value = 1
            });
            this.cboType.DataSource    = lstType;
            this.cboType.DisplayMember = "Text";
            this.cboType.ValueMember   = "Value";

            List <ComboBoxDataSource> lstIsNeed = new List <ComboBoxDataSource>();

            lstIsNeed.Add(new ComboBoxDataSource()
            {
                Text = "不需要", Value = 0
            });
            lstIsNeed.Add(new ComboBoxDataSource()
            {
                Text = "需要", Value = 1
            });
            this.cboIsNeedFirstPara.DataSource    = lstIsNeed;
            this.cboIsNeedFirstPara.DisplayMember = "Text";
            this.cboIsNeedFirstPara.ValueMember   = "Value";

            this.cboIsNeedSecondPara.DataSource    = new List <ComboBoxDataSource>(lstIsNeed);
            this.cboIsNeedSecondPara.DisplayMember = "Text";
            this.cboIsNeedSecondPara.ValueMember   = "Value";

            this.gpEvalwayItemGtfService = gpEvalwayItemGtfService;
            this.projectId        = projectId;
            this.sectionId        = sectionId;
            this.gpEvalWayItemGtf = gpEvalWayItemGtf;

            if (gpEvalWayItemGtf != null)
            {
                this.txtName.Text                      = gpEvalWayItemGtf.gewigName;
                this.cboType.SelectedValue             = gpEvalWayItemGtf.gewigType;
                this.txtMaxScore.Text                  = gpEvalWayItemGtf.maxScore.ToString();
                this.txtMinScore.Text                  = gpEvalWayItemGtf.minScore.ToString();
                this.cboIsNeedFirstPara.SelectedValue  = gpEvalWayItemGtf.isNeedFirstPara;
                this.txtFirstParaDesc.Text             = gpEvalWayItemGtf.firstParaDesc;
                this.cboIsNeedSecondPara.SelectedValue = gpEvalWayItemGtf.isNeedSecondPara;
                this.txtSecondParaDesc.Text            = gpEvalWayItemGtf.secondParaDesc;
                this.txtAlgoName.Text                  = gpEvalWayItemGtf.algoName;
                this.txtSort.Text                      = gpEvalWayItemGtf.sort.ToString();
                this.txtRemark.Text                    = gpEvalWayItemGtf.remark;
            }
        }
예제 #2
0
        public BidEvalClausePage(IGpEvalwayItemGtfService gpEvalwayItemGtfService, string projectId, string sectionId)
        {
            InitializeComponent();
            this.gpEvalwayItemGtfService = gpEvalwayItemGtfService;
            this.projectId = projectId;
            this.sectionId = sectionId;

            List <ComboBoxDataSource> lstType = new List <ComboBoxDataSource>();

            lstType.Add(new ComboBoxDataSource()
            {
                Text = "符合性", Value = 0
            });
            lstType.Add(new ComboBoxDataSource()
            {
                Text = "评分", Value = 1
            });
            this.colType.DataSource    = lstType;
            this.colType.DisplayMember = "Text";
            this.colType.ValueMember   = "Value";

            List <ComboBoxDataSource> lstIsNeed = new List <ComboBoxDataSource>();

            lstIsNeed.Add(new ComboBoxDataSource()
            {
                Text = "不需要", Value = 0
            });
            lstIsNeed.Add(new ComboBoxDataSource()
            {
                Text = "需要", Value = 1
            });
            this.colIsNeedFirstPara.DataSource    = lstIsNeed;
            this.colIsNeedFirstPara.DisplayMember = "Text";
            this.colIsNeedFirstPara.ValueMember   = "Value";

            this.colIsNeeSecondPara.DataSource    = new List <ComboBoxDataSource>(lstIsNeed);;
            this.colIsNeeSecondPara.DisplayMember = "Text";
            this.colIsNeeSecondPara.ValueMember   = "Value";
        }