Ejemplo n.º 1
0
        /// <summary>
        /// 更新一条数据
        /// </summary>
        public bool Update(string Id, string xingming, string shoujianrenshouJH, string OpenId, string dizhi, string zhuangtai, string peisongrenshouJH, string peisongshijian, string shenherenshouJH, string shenhejieguo, string jine, string tuikuanjine, string leibie, string dingdanbiaoId, string zhifudanhao, string weixindingdh, string tuikuandanhao, string beizhu)
        {
            kyfly.Model.yewu_tuifeilipeiGJB model = new kyfly.Model.yewu_tuifeilipeiGJB();
            model = dal.GetModel(int.Parse(Id));
            //对于传入的model如果其中属性已经更改,则更改,否则保留原数据库中的数据。
            model.姓名     = xingming;
            model.收件人手机号 = shoujianrenshouJH;
            model.OpenId = OpenId;
            model.地址     = dizhi;
            model.状态     = zhuangtai;
            model.配送人手机号 = peisongrenshouJH;
            model.配送时间   = DateTime.Parse(peisongshijian);
            model.审核人手机号 = shenherenshouJH;
            model.审核结果   = shenhejieguo;
            model.金额     = jine;
            model.退款金额   = tuikuanjine;
            model.类别     = leibie;
            model.订单表Id  = int.Parse(dingdanbiaoId);
            model.支付单号   = zhifudanhao;
            model.微信订单号  = weixindingdh;
            model.退款单号   = tuikuandanhao;
            model.备注     = beizhu;


            return(dal.Update(model));
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 得到一个对象值系列
        /// </summary>
        public string Geteditdata(string Id)
        {
            kyfly.Model.yewu_tuifeilipeiGJB model = new kyfly.Model.yewu_tuifeilipeiGJB();
            model = dal.GetModel(int.Parse(Id));
            string retstr = "";

            retstr += model.Id + "|";
            retstr += model.姓名 + "|";
            retstr += model.收件人手机号 + "|";
            retstr += model.OpenId + "|";
            retstr += model.地址 + "|";
            retstr += model.状态 + "|";
            retstr += model.配送人手机号 + "|";
            retstr += model.配送时间 + "|";
            retstr += model.审核人手机号 + "|";
            retstr += model.审核结果 + "|";
            retstr += model.金额 + "|";
            retstr += model.退款金额 + "|";
            retstr += model.类别 + "|";
            retstr += model.订单表Id + "|";
            retstr += model.支付单号 + "|";
            retstr += model.微信订单号 + "|";
            retstr += model.退款单号 + "|";
            retstr += model.备注 + "|";

            return(retstr);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int Add1(kyfly.Model.yewu_tuifeilipeiGJB model)
 {
     return(dal.Add(model));
 }
Ejemplo n.º 4
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update1(kyfly.Model.yewu_tuifeilipeiGJB model)
 {
     return(dal.Update(model));
 }