예제 #1
0
 /// <summary>
 /// 保存提醒设置
 /// </summary>
 /// <param name="remind"></param>
 /// <returns></returns>
 public ResultRMOfBoolean AddRemindLottery(RemindStatistics remind)
 {
     lock (Header.obj)
     {
         Client.Service.TokenHeaderValue = TokenHeader;
         remind.UserSysNo = TokenHeader.UserSysNo;
         var result = Client.Service.SaveRemind(remind);
         if (result.Success) Header.Key = result.Key;
         return result;
     }
 }
예제 #2
0
 public List<RemindStatisticsModel> GetDataList(RemindStatistics[] data)
 {
     List<RemindStatisticsModel> result = new List<RemindStatisticsModel>();
     if (data != null && data.Length > 0)
     {
         for (int i = 0; i < data.Length; i++)
         {
             RemindStatistics _item = data[i];
             RemindStatisticsModel item = new RemindStatisticsModel();
             item.SysNo = _item.SysNo.ToString();
             item.Game = UtilsTool.GetGameName(_item.GameSysNo);
             item.Source = UtilsTool.GetSourceName(_item.SourceSysNo);
             item.Site = UtilsTool.GetSiteName(_item.SiteSysNo);
             item.RetNum = _item.RetNum;
             item.Cnt = _item.Cnt.ToString();
             result.Add(item);
         }
     }
     return result;
 }
예제 #3
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     RemindStatistics item = new RemindStatistics();
     item.GameSysNo = int.Parse(ddlGame.SelectedValue.ToString());
     item.SourceSysNo = int.Parse(ddlSource.SelectedValue.ToString());
     item.SiteSysNo = int.Parse(ddlSite.SelectedValue.ToString());
     item.RetNum = ddlResult.SelectedValue.ToString();
     int cnt = 0;
     if (!int.TryParse(tbxCnt.Text.Trim(), out cnt))
     {
         MessageBox.Show("请输入正确的次数!");
     }
     else if (cnt <= 1)
     {
         MessageBox.Show("次数必须大于1!");
     }
     else
     {
         item.Cnt = cnt;
         item.Status = 0;
         if (!bgworkerAdd.IsBusy)
         {
             cmd.ShowOpaqueLayer(this, 125, true);
             bgworkerAdd.RunWorkerAsync(item);
         }
     }
 }
예제 #4
0
 /// <remarks/>
 public void SaveRemindAsync(RemindStatistics remind, object userState) {
     if ((this.SaveRemindOperationCompleted == null)) {
         this.SaveRemindOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSaveRemindOperationCompleted);
     }
     this.InvokeAsync("SaveRemind", new object[] {
                 remind}, this.SaveRemindOperationCompleted, userState);
 }
예제 #5
0
 /// <remarks/>
 public void SaveRemindAsync(RemindStatistics remind) {
     this.SaveRemindAsync(remind, null);
 }
예제 #6
0
 public ResultRMOfBoolean SaveRemind(RemindStatistics remind) {
     object[] results = this.Invoke("SaveRemind", new object[] {
                 remind});
     return ((ResultRMOfBoolean)(results[0]));
 }