Exemplo n.º 1
0
 /// <summary>
 /// 编辑充值卡
 /// </summary>
 /// <param name="entity">充值卡</param>
 /// <returns></returns>
 public static bool Edit(PayCard entity)
 {
     return PayCardDA.Edit(entity);
 }
Exemplo n.º 2
0
 /// <summary>
 /// 编辑充值卡
 /// </summary>
 /// <param name="entity">充值卡</param>
 /// <returns></returns>
 public static bool Edit(PayCard entity)
 {
     DataCommand cmd = DataCommandManager.GetDataCommand("PayCard_Edit");
     cmd.SetParameterValue("@SysNo", entity.SysNo);
     cmd.SetParameterValue("@CategorySysNo", (int)entity.CategorySysNo);
     cmd.SetParameterValue("@Status", (int)entity.Status);
     cmd.SetParameterValue("@BeginTime", entity.BeginTime);
     cmd.SetParameterValue("@EndTime", entity.EndTime);
     cmd.ExecuteNonQuery();
     return true;
 }
Exemplo n.º 3
0
 public void TestEditPayCard()
 {
     PayCard entity = new PayCard();
     entity.SysNo = 21653;
     entity.CategorySysNo = PayCardCategory.Month;
     entity.Status = PayCardStatus.Invalid;
     entity.BeginTime = DateTime.Now.AddDays(-1);
     entity.EndTime = DateTime.Now;
     var data = PayCardLogic.Edit(entity);
 }