public BidEvalFactorForm(IGpBidFileOrgService gpBidFileOrgService, string projectId, string sectionId, gpBidFileOrgWebDO gpBidFileOrg)
        {
            InitializeComponent();

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

            lstIsNeed.Add(new ComboBoxDataSource()
            {
                Text = "否", Value = 0
            });
            lstIsNeed.Add(new ComboBoxDataSource()
            {
                Text = "是", Value = 1
            });
            this.cboIsMust.DataSource    = lstIsNeed;
            this.cboIsMust.DisplayMember = "Text";
            this.cboIsMust.ValueMember   = "Value";

            this.gpBidFileOrgService = gpBidFileOrgService;
            this.projectId           = projectId;
            this.sectionId           = sectionId;
            this.gpBidFileOrg        = gpBidFileOrg;

            if (gpBidFileOrg != null)
            {
                this.txtName.Text            = gpBidFileOrg.bbfoName;
                this.txtSort.Text            = gpBidFileOrg.sort.ToString();
                this.cboIsMust.SelectedValue = gpBidFileOrg.isMust;
            }
        }
        public BidEvalFactorPage(IGpBidFileOrgService gpBidFileOrgService, string projectId, string sectionId)
        {
            InitializeComponent();
            this.gpBidFileOrgService = gpBidFileOrgService;
            this.projectId           = projectId;
            this.sectionId           = sectionId;

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

            lstIsNeed.Add(new ComboBoxDataSource()
            {
                Text = "否", Value = 0
            });
            lstIsNeed.Add(new ComboBoxDataSource()
            {
                Text = "是", Value = 1
            });
            this.colRequire.DataSource    = lstIsNeed;
            this.colRequire.DisplayMember = "Text";
            this.colRequire.ValueMember   = "Value";
        }