protected void Button2_Click(object sender, EventArgs e)
        {
            DAL.AssessmentEntity ass = new DAL.AssessmentEntity();
            StringBuilder noteBuilder = new StringBuilder();

            //品质评估和扣分原因
            int quatityBuilder = 0;
            quatityBuilder += this.ck29.Checked ? int.Parse(this.ck29.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_quatily11.Value) == true ? string.Empty : this.txt_quatily11.Value + "<br/>");

            quatityBuilder += this.ck30.Checked ? int.Parse(this.ck30.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_quatily12.Value) == true ? string.Empty : this.txt_quatily12.Value + "<br/>");

            quatityBuilder += this.ck31.Checked ? int.Parse(this.ck31.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_quatily13.Value) == true ? string.Empty : this.txt_quatily13.Value + "<br/>");

            quatityBuilder += this.ck32.Checked ? int.Parse(this.ck32.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_quatily14.Value) == true ? string.Empty : this.txt_quatily14.Value + "<br/>");

            quatityBuilder += this.ck33.Checked ? int.Parse(this.ck33.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_quatily15.Value) == true ? string.Empty : this.txt_quatily15.Value + "<br/>");

            ass.qualityAssessment = quatityBuilder;

            //价格评估和扣分原因
            int priceBuilder = 0;
            priceBuilder += this.ck34.Checked ? int.Parse(this.ck34.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_price11.Value) == true ? string.Empty : this.txt_price11.Value + "<br/>");

            priceBuilder += this.ck35.Checked ? int.Parse(this.ck35.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_price12.Value) == true ? string.Empty : this.txt_price12.Value + "<br/>");

            priceBuilder += this.ck36.Checked ? int.Parse(this.ck36.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_price13.Value) == true ? string.Empty : this.txt_price13.Value + "<br/>");

            priceBuilder += this.ck37.Checked ? int.Parse(this.ck37.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_price14.Value) == true ? string.Empty : this.txt_price14.Value + "<br/>");

            priceBuilder += this.ck38.Checked ? int.Parse(this.ck38.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_price15.Value) == true ? string.Empty : this.txt_price15.Value + "<br/>");

            priceBuilder += this.ck39.Checked ? int.Parse(this.ck39.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_price16.Value) == true ? string.Empty : this.txt_price16.Value + "<br/>");

            ass.priceAssessment = priceBuilder;

            //交期评估
            int deliveryBuilder = 0;
            deliveryBuilder += this.ck40.Checked ? int.Parse(this.ck40.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_jiaoqi11.Value) == true ? string.Empty : this.txt_jiaoqi11.Value + "<br/>");

            deliveryBuilder += this.ck41.Checked ? int.Parse(this.ck41.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_jiaoqi12.Value) == true ? string.Empty : this.txt_jiaoqi12.Value + "<br/>");

            deliveryBuilder += this.ck42.Checked ? int.Parse(this.ck42.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_jiaoqi13.Value) == true ? string.Empty : this.txt_jiaoqi13.Value + "<br/>");

            deliveryBuilder += this.ck43.Checked ? int.Parse(this.ck43.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_jiaoqi14.Value) == true ? string.Empty : this.txt_jiaoqi14.Value + "<br/>");

            ass.deliveryAssessment = deliveryBuilder;

            //交量评估
            int payBuilder = 0;
            payBuilder += this.ck44.Checked ? int.Parse(this.ck44.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_delive11.Value) == true ? string.Empty : this.txt_delive11.Value + "<br/>");

            payBuilder += this.ck45.Checked ? int.Parse(this.ck45.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_delive12.Value) == true ? string.Empty : this.txt_delive12.Value + "<br/>");

            payBuilder += this.ck46.Checked ? int.Parse(this.ck46.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_delive13.Value) == true ? string.Empty : this.txt_delive13.Value + "<br/>");

            payBuilder += this.ck47.Checked ? int.Parse(this.ck47.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_delive14.Value) == true ? string.Empty : this.txt_delive14.Value + "<br/>");

            ass.payAssessment = payBuilder;

            //包装评估
            int packagingBuilder = 0;
            packagingBuilder += this.ck48.Checked ? int.Parse(this.ck48.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_baozhuang11.Value) == true ? string.Empty : this.txt_baozhuang11.Value + "<br/>");

            packagingBuilder += this.ck49.Checked ? int.Parse(this.ck49.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_baozhuang12.Value) == true ? string.Empty : this.txt_baozhuang12.Value + "<br/>");

            packagingBuilder += this.ck50.Checked ? int.Parse(this.ck50.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_baozhuang13.Value) == true ? string.Empty : this.txt_baozhuang13.Value + "<br/>");

            packagingBuilder += this.ck51.Checked ? int.Parse(this.ck51.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_baozhuang14.Value) == true ? string.Empty : this.txt_baozhuang14.Value + "<br/>");

            ass.packagingAssessment = packagingBuilder;

            //服务评估
            int servriceBuilder = 0;
            servriceBuilder += this.ck52.Checked ? int.Parse(this.ck52.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_serveics11.Value) == true ? string.Empty : this.txt_serveics11.Value + "<br/>");

            servriceBuilder += this.ck53.Checked ? int.Parse(this.ck53.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_serveics12.Value) == true ? string.Empty : this.txt_serveics12.Value + "<br/>");

            servriceBuilder += this.ck54.Checked ? int.Parse(this.ck54.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_serveics13.Value) == true ? string.Empty : this.txt_serveics13.Value + "<br/>");

            servriceBuilder += this.ck55.Checked ? int.Parse(this.ck55.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_serveics14.Value) == true ? string.Empty : this.txt_serveics14.Value + "<br/>");

            servriceBuilder += this.ck56.Checked ? int.Parse(this.ck56.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_serveics15.Value) == true ? string.Empty : this.txt_serveics15.Value + "<br/>");

            servriceBuilder += this.ck57.Checked ? int.Parse(this.ck57.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_serveics16.Value) == true ? string.Empty : this.txt_serveics16.Value + "<br/>");

            servriceBuilder += this.ck58.Checked ? int.Parse(this.ck58.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_serveics17.Value) == true ? string.Empty : this.txt_serveics17.Value + "<br/>");

            servriceBuilder += this.ck59.Checked ? int.Parse(this.ck59.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_serveics18.Value) == true ? string.Empty : this.txt_serveics18.Value + "<br/>");

            ass.serviceAssessment = servriceBuilder;

            ass.notes = noteBuilder.ToString();//扣分

            ass.sellerId = companyId;//供应商Id
            ass.adminId = logic.sysAdmin.AdminID;//操作员

            logic.assessment.insert(ass);

            Library.Script.ClientMsgUrl("此次评估成功", "sellerCompanyList.aspx");
        }
        //#region
        ///// <summary>
        ///// 试供应商评估
        ///// </summary>
        ///// <param name="sender"></param>
        ///// <param name="e"></param>
        //protected void Button1_Click(object sender, EventArgs e)
        //{
        //    DAL.AssessmentEntity ass = new DAL.AssessmentEntity();
        //    ass.sellerId = companyId;
        //    StringBuilder strb = new StringBuilder();
        //    if (this.CheckBoxList1.SelectedValue != string.Empty)
        //    {
        //        if (this.txt_quatily.Text.Trim().Length != 0)
        //        {
        //            ass.qualityAssessment = int.Parse(this.CheckBoxList1.SelectedValue);
        //            strb.Append(this.txt_quatily.Text.Trim() + "<br/>");
        //        }
        //        else
        //        {
        //            Library.Script.ClientMsg(this.CheckBoxList1.SelectedItem.Text + ",请填写扣分原因");
        //            this.txt_quatily.Focus();
        //            return;
        //        }
        //    }
        //    else { ass.qualityAssessment = 0; }
        //    if (this.CheckBoxList2.SelectedValue != string.Empty)
        //    {
        //        if (this.txt_price.Text.Trim().Length != 0)
        //        {
        //            ass.priceAssessment = int.Parse(this.CheckBoxList2.SelectedValue);
        //            strb.Append(this.txt_price.Text.Trim() + "<br/>");
        //        }
        //        else
        //        {
        //            Library.Script.ClientMsg(this.CheckBoxList2.SelectedItem.Text + ",请填写扣分原因");
        //            this.txt_price.Focus();
        //            return;
        //        }
        //    }
        //    else { ass.priceAssessment = 0; }
        //    if (this.CheckBoxList3.SelectedValue != string.Empty)
        //    {
        //        if (this.txt_jiaoqi.Text.Trim().Length != 0)
        //        {
        //            ass.deliveryAssessment = int.Parse(this.CheckBoxList3.SelectedValue);
        //            strb.Append(this.txt_jiaoqi.Text.Trim() + "<br/>");
        //        }
        //        else
        //        {
        //            Library.Script.ClientMsg(this.CheckBoxList3.SelectedItem.Text + ",请填写扣分原因");
        //            this.txt_jiaoqi.Focus();
        //            return;
        //        }
        //    }
        //    else { ass.deliveryAssessment = 0; }
        //    if (this.CheckBoxList4.SelectedValue != string.Empty)
        //    {
        //        if (this.txt_delive.Text.Trim().Length != 0)
        //        {
        //            ass.payAssessment = int.Parse(this.CheckBoxList4.SelectedValue);
        //            strb.Append(this.txt_delive.Text.Trim() + "<br/>");
        //        }
        //        else
        //        {
        //            Library.Script.ClientMsg(this.CheckBoxList4.SelectedItem.Text + ",请填写扣分原因");
        //            this.txt_delive.Focus();
        //            return;
        //        }
        //    }
        //    else { ass.payAssessment = 0; }
        //    if (this.CheckBoxList5.SelectedValue != string.Empty)
        //    {
        //        if (this.txt_baozhuang.Text.Trim().Length != 0)
        //        {
        //            ass.packagingAssessment = int.Parse(this.CheckBoxList5.SelectedValue);
        //            strb.Append(this.txt_baozhuang.Text.Trim() + "<br/>");
        //        }
        //        else
        //        {
        //            Library.Script.ClientMsg(this.CheckBoxList5.SelectedItem.Text + ",请填写扣分原因");
        //            this.txt_baozhuang.Focus();
        //            return;
        //        }
        //    }
        //    else { ass.packagingAssessment = 0; }
        //    if (this.CheckBoxList6.SelectedValue != string.Empty)
        //    {
        //        if (this.txt_serveics.Text.Trim().Length != 0)
        //        {
        //            ass.serviceAssessment = int.Parse(this.CheckBoxList6.SelectedValue);
        //            strb.Append(this.txt_serveics.Text.Trim() + "<br/>");
        //        }
        //        else
        //        {
        //            Library.Script.ClientMsg(this.CheckBoxList6.SelectedItem.Text + ",请填写扣分原因");
        //            this.txt_serveics.Focus();
        //            return;
        //        }
        //    }
        //    else
        //    {
        //        ass.serviceAssessment = 0;
        //    }
        //    ass.notes = strb.ToString();
        //    ass.adminId = logic.customer.userId;
        //    logic.assessment.insert(ass);
        //    Library.Script.ClientMsgUrl("评估成功", "sellerCompanyList.aspx");
        //}
        //#endregion
        protected void Button1_Click(object sender, EventArgs e)
        {
            DAL.AssessmentEntity ass = new DAL.AssessmentEntity();
            StringBuilder noteBuilder = new StringBuilder();

            //品质评估和扣分原因
            int quatityBuilder=0;
            quatityBuilder += this.ck1.Checked ? int.Parse(this.ck1.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_quatily1.Value) == true ? string.Empty : this.txt_quatily1.Value+"<br/>");

            quatityBuilder += this.ck2.Checked ? int.Parse(this.ck2.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_quatily2.Value) == true ? string.Empty : this.txt_quatily2.Value + "<br/>");

            quatityBuilder += this.ck3.Checked ? int.Parse(this.ck3.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_quatily3.Value) == true ? string.Empty : this.txt_quatily3.Value + "<br/>");

            quatityBuilder += this.ck4.Checked ? int.Parse(this.ck4.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_quatily4.Value) == true ? string.Empty : this.txt_quatily4.Value + "<br/>");

            quatityBuilder += this.ck5.Checked ? int.Parse(this.ck5.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_quatily5.Value) == true ? string.Empty : this.txt_quatily5.Value + "<br/>");

            ass.qualityAssessment = quatityBuilder;

            //价格评估和扣分原因
            int priceBuilder = 0;
            priceBuilder += this.ck6.Checked ? int.Parse(this.ck6.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_price1.Value) == true ? string.Empty : this.txt_price1.Value + "<br/>");

            priceBuilder += this.ck7.Checked ? int.Parse(this.ck7.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_price2.Value) == true ? string.Empty : this.txt_price2.Value + "<br/>");

            priceBuilder += this.ck8.Checked ? int.Parse(this.ck8.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_price3.Value) == true ? string.Empty : this.txt_price3.Value + "<br/>");

            priceBuilder += this.ck9.Checked ? int.Parse(this.ck9.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_price4.Value) == true ? string.Empty : this.txt_price4.Value + "<br/>");

            priceBuilder += this.ck10.Checked ? int.Parse(this.ck10.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_price5.Value) == true ? string.Empty : this.txt_price5.Value + "<br/>");

            ass.priceAssessment = priceBuilder;

            //交期评估
            int deliveryBuilder = 0;
            deliveryBuilder += this.ck11.Checked ? int.Parse(this.ck11.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_jiaoqi1.Value) == true ? string.Empty : this.txt_jiaoqi1.Value + "<br/>");

            deliveryBuilder += this.ck12.Checked ? int.Parse(this.ck12.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_jiaoqi2.Value) == true ? string.Empty : this.txt_jiaoqi2.Value + "<br/>");

            deliveryBuilder += this.ck13.Checked ? int.Parse(this.ck13.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_jiaoqi3.Value) == true ? string.Empty : this.txt_jiaoqi3.Value + "<br/>");

            deliveryBuilder += this.ck14.Checked ? int.Parse(this.ck14.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_jiaoqi4.Value) == true ? string.Empty : this.txt_jiaoqi4.Value + "<br/>");

            ass.deliveryAssessment = deliveryBuilder;

            //交量评估
            int payBuilder = 0;
            payBuilder += this.ck15.Checked ? int.Parse(this.ck15.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.Txt_delive1.Value) == true ? string.Empty : this.Txt_delive1.Value + "<br/>");

            payBuilder += this.ck16.Checked ? int.Parse(this.ck16.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.Txt_delive2.Value) == true ? string.Empty : this.Txt_delive2.Value + "<br/>");

            payBuilder += this.ck17.Checked ? int.Parse(this.ck17.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.Txt_delive3.Value) == true ? string.Empty : this.Txt_delive3.Value + "<br/>");

            payBuilder += this.ck18.Checked ? int.Parse(this.ck18.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.Txt_delive4.Value) == true ? string.Empty : this.Txt_delive4.Value + "<br/>");

            ass.payAssessment = payBuilder;

            //包装评估
            int packagingBuilder = 0;
            packagingBuilder += this.ck19.Checked ? int.Parse(this.ck19.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_baozhuang1.Value) == true ? string.Empty : this.txt_baozhuang1.Value + "<br/>");

            packagingBuilder += this.ck20.Checked ? int.Parse(this.ck20.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_baozhuang2.Value) == true ? string.Empty : this.txt_baozhuang2.Value + "<br/>");

            packagingBuilder += this.ck21.Checked ? int.Parse(this.ck21.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_baozhuang3.Value) == true ? string.Empty : this.txt_baozhuang3.Value + "<br/>");

            packagingBuilder += this.ck22.Checked ? int.Parse(this.ck22.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_baozhuang4.Value) == true ? string.Empty : this.txt_baozhuang4.Value + "<br/>");

            ass.packagingAssessment = packagingBuilder;

            //服务评估
            int servriceBuilder = 0;
            servriceBuilder += this.ck23.Checked ? int.Parse(this.ck23.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_serveics1.Value) == true ? string.Empty : this.txt_serveics1.Value + "<br/>");

            servriceBuilder += this.ck24.Checked ? int.Parse(this.ck24.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_serveics2.Value) == true ? string.Empty : this.txt_serveics2.Value + "<br/>");

            servriceBuilder += this.ck25.Checked ? int.Parse(this.ck25.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_serveics3.Value) == true ? string.Empty : this.txt_serveics3.Value + "<br/>");

            servriceBuilder += this.ck26.Checked ? int.Parse(this.ck26.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_serveics4.Value) == true ? string.Empty : this.txt_serveics4.Value + "<br/>");

            servriceBuilder += this.ck27.Checked ? int.Parse(this.ck27.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_serveics5.Value) == true ? string.Empty : this.txt_serveics5.Value + "<br/>");

            servriceBuilder += this.ck28.Checked ? int.Parse(this.ck28.Value) : 0;
            noteBuilder.Append(string.IsNullOrEmpty(this.txt_serveics6.Value) == true ? string.Empty : this.txt_serveics6.Value + "<br/>");

            ass.serviceAssessment = servriceBuilder;

            ass.notes = noteBuilder.ToString();//扣分

            ass.sellerId = companyId;//供应商Id
            ass.adminId = logic.sysAdmin.AdminID;//操作员

            logic.assessment.insert(ass);

            Library.Script.ClientMsgUrl("此次评估成功", "sellerCompanyList.aspx");
        }