/// <summary> /// Updates the cost. /// </summary> /// <returns></returns> /// 整理人:桂书丛 /// 整理时间:2013-02-28 private VariedEnum.OperatorStatus UpdateCost() { try { ModelCMS_VIPClient myModelCMS_VIPClient = new ModelCMS_VIPClient(); Decimal TotalCost = Convert.ToDecimal(this.txtVIPCost.Text) + Convert.ToDecimal(this.calCost.Value); myModelCMS_VIPClient.VIPCost = Convert.ToDecimal(TotalCost); myModelCMS_VIPClient.ID = VIPClientID; myModelCMS_VIPClient.RechargeDate = Convert.ToDateTime(this.txtDate.Text); return(new BUCMS_VIPClient().Update(myModelCMS_VIPClient, "")); } catch (Exception ex) { XtraMessageBox.Show(ex.ToString()); } return(VariedEnum.OperatorStatus.Successed); }
/// <summary> /// Updates the VIP info. /// </summary> /// 创建人:桂书丛 /// 创建日期:2013-3-3 private VariedEnum.OperatorStatus UpdateVIPInfo() { try { ModelCMS_VIPClient myModelCMS_VIPClient = new ModelCMS_VIPClient(); Decimal TotalCost = Convert.ToDecimal(VIPInfo["VIPCost"]) - Convert.ToDecimal(this.txtShouldPay.EditValue); myModelCMS_VIPClient.VIPCost = Convert.ToDecimal(TotalCost); myModelCMS_VIPClient.ID = Convert.ToInt32(VIPInfo["ID"]); myModelCMS_VIPClient.RechargeDate = DateTime.Now; return(new BUCMS_VIPClient().Update(myModelCMS_VIPClient, "")); } catch (Exception ex) { XtraMessageBox.Show(ex.ToString()); } return(VariedEnum.OperatorStatus.Successed); }