Beispiel #1
0
        /******************************订单评价***************************************/
        public void insertEvaluation(b_evaluate_Entity evaluate)
        {
            b_evaluate_T evaluation = new b_evaluate_T();

            evaluation.p_Id       = evaluate.P_Id;
            evaluation.b_account  = evaluate.B_account;
            evaluation.p_name     = evaluate.P_name;
            evaluation.p_photo    = evaluate.P_photo;
            evaluation.p_evaluate = evaluate.P_evaluate;
            buyerDB.b_evaluate_T.InsertOnSubmit(evaluation);
            buyerDB.SubmitChanges();
        }
        protected void Button1_Click(object sender, EventArgs e)
        {
            b_evaluate_Entity evaluate = new b_evaluate_Entity();
            buyerIntSer       buyer    = new buyerIntSer();

            evaluate.P_evaluate = TextBox1.Text.Trim();
            evaluate.B_account  = Session["UserAccount"].ToString().Trim();
            evaluate.P_name     = buyer.SearchNameOfPro(int.Parse(PId));
            evaluate.P_Id       = int.Parse(PId);
            evaluate.P_photo    = buyer.SearchUrlOfProPhoto(int.Parse(PId));
            buyer.InsertToEvaluations(evaluate);
        }
Beispiel #3
0
 public void InsertToEvaluations(b_evaluate_Entity evalua)
 {
     Date.insertEvaluation(evalua);
 }