Example #1
0
 //
 private string Create(HttpContext context)
 {
     try
     {
         SysLogBll.Create("竞价单", "添加竞价单操作", adminUser.AdminName);
         BidAuction mde = GetModels(context);
         if (dal.Create(mde))
         {
             BidTransDal btd = new BidTransDal();
             btd.UpdateState(" TradingStatus = 2 ", string.Format(" FK_BidId={0} ", mde.FK_BidId));
             btd.UpdateState(" TradingStatus = 1 ", string.Format(" FK_BidId={0} and FK_LiceTranId={1} ", mde.FK_BidId, mde.LiceTranId));
             return("交易成功!");
         }
         else
         {
             return("添加失败请重新操作! ");
         }
     }
     catch (Exception ex)
     {
         SystemErrorPlug.ErrorRecord("时间:[" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "]类名:[" + this.GetType().Name + "],行号:[" + Component.GetLineNum().ToString() + "行],错误信息:[" + ex.Message + "]");
         return("添加失败请重新操作,错误代码:500 ");
     }
 }
Example #2
0
 public BidTransBll()
 {
     dal = new BidTransDal();
 }