Exemplo n.º 1
0
 void ICPPushModel.SetHidden(Shotgun.Database.IBaseDataClass2 dBase, tbl_trone_orderItem tCfg)
 {
     this.syn_flag       = 0;
     this.trone_order_id = tCfg.id;
     this.cp_id          = tCfg.cp_id;
     dBase.SaveData(this);
 }
Exemplo n.º 2
0
 tbl_cp_mrItem ICPPushModel.SetPushed(Shotgun.Database.IBaseDataClass2 dBase, tbl_trone_orderItem tCfg)
 {
     this.syn_flag       = 1;
     this.trone_order_id = tCfg.id;
     this.cp_id          = tCfg.cp_id;
     dBase.SaveData(this);
     return(this.CopyToCP());
 }
Exemplo n.º 3
0
        public static void UpdateDayLimit(Shotgun.Database.IBaseDataClass2 dBase, int spTroneId, int cpId, decimal amount)
        {
            var m = LightDataModel.tbl_day_month_limitItem.GetOrCreateItem(dBase, spTroneId, cpId);

            m.cur_day_amount += amount;
            PushDayLimit(spTroneId, cpId, amount);
            try
            {
                dBase.SaveData(m);
            }
#if !DEBUG
            catch
            {
            }
#endif
            finally { }
        }
Exemplo n.º 4
0
 /// <summary>
 /// 将数据写入数据库
 /// </summary>
 /// <param name="dBase"></param>
 /// <returns></returns>
 public bool SaveToDatabase(Shotgun.Database.IBaseDataClass2 dBase)
 {
     return(dBase.SaveData(this));
 }