精美花盆,数据控制地点的类

材质:PP

光与电子代理Chimicron积微代理

www.8867.com 1

本身先是次在那里揭橥小说,笔者写的一个数额控制方面包车型客车类,在C/S下团结用的可比顺手,请大家给些提出

包装:40PCS/BOX

电话0755-82574660 82542001

办法简介

 public class DataControl
 {
  private CurrencyManager m_CM;
  public DataControl()
  {
  
 
  }

颜色:棕色

CMESDPC0524P

       
 卫德恒,字蒲乔,黑龙江南通人,从军贰4载,2000年就读于中央美院雕塑系硕士课程班,小说《新天堡》、《暖春》分别当选第八届、第十届全军美术小说展览,200一年,小说《毛南族民居》入选全军写生展,201四年,小说《节日》入选第八2届全国美术小说展览,并在广西省第玖3届美展中获一等奖,201陆年,作品《汇师》入选“记念红上校征胜利80周年美术文章展”。

  /// <summary>
  /// 构建
  /// </summary>
  /// <param name=”ds”></param>
  /// <param name=”TableName”></param>
  /// <param name=”SelfForm”></param>
  public DataControl(DataSet ds,string TableName,Form SelfForm)
  {
   this.m_CM=SelfForm.BindingContext[ds,TableName] as CurrencyManager
;
  }

型号:22CM*13.5CM*16CM

CMESDPCSA0603V24

         
现为新加坡徐寿康文艺大学副省长,法国巴黎新鸿美画院副委员长,中国美术家组织会员。

  private DevExpress.XtraBars.BarStaticItem m_EditCount;

CMESDPC0524P

部分小说欣赏

  public DevExpress.XtraBars.BarStaticItem EditCount
  {
   set
   {
    m_EditCount=value;
   }
  }

CMESDPCSA0603V24

www.8867.com 2

  private TextBox m_EditCurrentNum;

CM01H11

秋染松岭图1九七*97CM

  public TextBox EditCurrentNum
  {
   set
   {
    m_EditCurrentNum=value;
   }
  }

CM01H14D

www.8867.com 3

  private System.Windows.Forms.StatusBarPanel m_DataPanel;
  public System.Windows.Forms.StatusBarPanel DataPanel
  {
   set
   {
    m_DataPanel=value;
   }
  }

CM01H21T

赤岭云烟玖柒*45CM

  /// <summary>
  /// 数据管理者
  /// </summary>
  public CurrencyManager CM
  {
   set
   {
    m_CM=value;
    if (m_CM!=null)
    {
     this.CM.PositionChanged-=new EventHandler(CM_PositionChanged);
     this.CM.PositionChanged+=new EventHandler(CM_PositionChanged);
     if (m_EditCount!=null)
     {
      m_EditCount.Caption=this.m_CM.Count.ToString();
精美花盆,数据控制地点的类。      int intCur=this.m_CM.Position+1;
      m_EditCurrentNum.Caption=intCur.ToString();
     }
    }
    else
    {
     m_CM=null;
     if (m_EditCount!=null)
     {
      m_EditCount.Caption=”0″;
      m_EditCurrentNum.Caption=”0″;
     }
    }
   }
   get{return m_CM;}
  }

CM2004NE

www.8867.com 4

  /// <summary>
  /// 添加一条空记录
  /// </summary>
  public void Add()
  {
   if (m_CM!=null)
   {
    if (beforeInsert!=null)
    {
     beforeInsert(this.CM);
    }
    m_CM.AddNew();
    if (afterInsert!=null)
    {
     afterInsert(this.CM);
    }
   }
  }
  /// <summary>
  /// 删除一条记下
  /// </summary>
  public void Del()
  {
   if (m_CM!=null)
   {
    if (m_CM.Position<0)
     return;
    if (BaseForm.ShowQuestionBox(“明确要删减当前记录吗?”)==true)
    {
     bool Cancel=true;
     if (beforeDelete!=null)
     {
      Cancel= beforeDelete(this.CM);
     }
     if (Cancel)
     {
      m_CM.RemoveAt(m_CM.Position);
      if (afterDelete!=null)
       afterDelete(this.CM);
     }
    
    }
   }
  }

CM2008NE

峰岭远望图97*40CM

  /// <summary>
  /// 将数据交到到缓存中
  /// </summary>
  public void Post()
  {
   bool isCancel=true;
   if (m_CM!=null)
   {
    if (beforePost!=null)
    {
     isCancel= beforePost(this.CM);
    }
    if(isCancel)
    {
     m_CM.EndCurrentEdit();
     if (afterPost!=null)
     {
      afterPost(this.CM);
     }
    }
   
   }
  }

CM2300

www.8867.com 5

  /// <summary>
  /// 撤消当前编辑数据
  /// </summary>
  public void Cancel()
  {
   if (m_CM!=null)
   {
    if (beforeCancel!=null)
     beforeCancel(this.CM);
   
    if (BaseForm.ShowQuestionBox(“必要撤销到起来状态吧?”))
    {
     DataRowView rv= m_CM.Current as DataRowView;
     rv.Row.RejectChanges();
    }
    else
    {
     m_CM.CancelCurrentEdit();
    }
    if (afterCancel!=null)
     afterCancel(this.CM);
   }
  }

CM2302

彩墨四条屏(单条97*45CM)

  /// <summary>
  /// 下一个
  /// </summary>
  public void Next()
  {
   if (m_CM!=null)
   {
    if (m_CM.Position<m_CM.Count-1)
    {
     m_CM.Position+=1;
    }
   }
  }
  /// <summary>
  /// 上一个
  /// </summary>
  public void Previous()
  {
   if (m_CM!=null)
   {
    if(m_CM.Position > 0)
    {
     m_CM.Position-=1;
    }
   }
  
  }

CM2305

www.8867.com 6

  /// <summary>
  /// 第一个
  /// </summary>
  public void First()
  {
   if (m_CM!=null)
   {
    m_CM.Position=0;
   }
  }

CM2N7002

彩墨肆条屏200*97CM

  /// <summary>
  /// 最终三个
  /// </summary>
  public void Last()
  {
   if (m_CM!=null)
   {
    m_CM.Position=m_CM.Count-1;
   }
  }

CM2N7002K

www.8867.com 7

  /// <summary>
  /// 下一页10
  /// </summary>
  public void NextPage()
  {
   if (m_CM!=null)
   {
    if ((m_CM.Position+20) <(m_CM.Count-1))
    {
     m_CM.Position+=20;
    }
    else
    {
     m_CM.Position=m_CM.Count-1;
    }
   }
           
  }

CM3010S

村庄瑞雪图1九七*97CM

  /// <summary>
  /// 上一页
  /// </summary>
  public void PreviousPage()
  {
   if (m_CM!=null)
   {
    if ((m_CM.Position-20)>0)
    {
     m_CM.Position-=20;
    }
    else
    {
     m_CM.Position=0;
    }
   }

CM3030K

www.8867.com 8

  }

CM3050I

山自悠悠云自闲240*100CM

  /// <summary>
  /// 记录指针移动
  /// </summary>
  /// <param name=”sender”></param>
  /// <param name=”e”></param>
  private void CM_PositionChanged(object sender, EventArgs e)
  {
   try
   {
      if (m_EditCount!=null)
    {
     m_EditCount.Caption=this.m_CM.Count.ToString();
    }
    int oldPosition=0;
    string strPosition=””;
    if (m_EditCurrentNum!=null)
    {
     strPosition=m_EditCurrentNum.Caption;
    }
    if (strPosition.Trim()!=””)
    {
     oldPosition=Convert.ToInt32(strPosition);
    }
    else
    {
     oldPosition=0;
    }
 
 
    if (m_EditCurrentNum!=null)
    {
     int intcur=this.m_CM.Position+1;
     m_EditCurrentNum.Caption=intcur.ToString();
     
    }
    if (cursorChange!=null)  //aCount==this.m_CM.Count
    {
     cursorChange(this.m_CM.Position,oldPosition-1,m_CM);
    }
    #region 系统状态行

CM3055

www.8867.com 9

    if(this.m_CM.Count == 0)
     return;
    if(this.m_CM.Position == -1)
     return;
    if (m_DataPanel==null)
    {
     return ;
    }
    DataRowView drv = m_CM.Current as DataRowView;
    if(drv == null)
     return;
    DataTable table = drv.Row.Table;
    DataTable dtdel = table.GetChanges(DataRowState.Deleted);
    DataTable dtins = table.GetChanges(DataRowState.Added);
    DataTable dtupd = table.GetChanges(DataRowState.Modified);
    if((dtdel == null) && (dtins == null) && (dtupd == null))
     m_DataPanel.Text = “无修改”;
    else
    {
     int del = 0, ins = 0, upd = 0;
     if(dtdel != null)
      del = dtdel.Rows.Count;
     if(dtins != null)
      ins = dtins.Rows.Count;
     if(dtupd www.8867.com ,!= null)
      upd = dtupd.Rows.Count;
     m_DataPanel.Text = string.Format(“新增:{0} 更改:{1} 删除:{2}”,
ins, upd, del);
    }
    #endregion

CM3080K

林高风有态240*100CM

   }
   catch(Exception ex)
   {
    BaseForm.ShowErrorBox(ex.Message);
   }
  }

CM3401

www.8867.com 10

  /// <summary>
  /// 保存数据
  /// </summary>
  public void Save()
  {
   if (SaveMethod!=null)
   {
    SaveMethod(m_CM);
   }
  }

CM3404

喜从天降136*68CM

  /// <summary>
  /// 获取全体数据
  /// </summary>
  public void GetAll()
  {
   if (GetAllDataMethod!=null)
   {
    GetAllDataMethod();
   }
  }

CM3407A

www.8867.com 11

  /// <summary>
  ///
  /// </summary>
  /// <returns></returns>
  public bool isAvaildCurrent()
  {
   if (m_CM != null)
   {
    if (m_CM.Count > 0)
    {
     if (m_CM.Current != null)
     {
      return true;
     }
     else
     {
      return false;
     }
    }
    else
    {
     return false;
    }
   
   }
   else
   {
    return false;
   }
  }

CM3415

引福归堂13陆*68CM

  /// <summary>
  /// 保存方法
  /// </summary>
  public SaveData SaveMethod;

CM3420

www.8867.com 12

  /// <summary>
  /// 获取全体多少的章程
  /// </summary>
  public GetAllData GetAllDataMethod;
 

CM4435

正气图136*68CM

  #region 事件
  /// <summary>
  /// 提交前
  /// </summary>
  public event  BeforePost beforePost;
 
    //  private AfterPost m_afterPost=null;
  /// <summary>
  /// 提交后
  /// </summary>
  public event AfterPost afterPost;
   /// <summary>
  /// 插入前
  /// </summary>
  public event  BeforeInsert beforeInsert;
    /// <summary>
  /// 插入后
  /// </summary>
  public event AfterInsert afterInsert;
 

CM4953A

www.8867.com 13

  /// <summary>
  /// 删除前
  /// </summary>
  public event BeforeDelete beforeDelete;

CMBSS138K

一往直前136*68CM

    /// <summary>
  /// 删除后
  /// </summary>
  public event AfterDelete afterDelete;
     /// <summary>
  /// 取消后
  /// </summary>
  public event AfterCancel afterCancel;
  /// <summary>
  /// 取消前
  /// </summary>
  public event BeforeCancel beforeCancel;
   /// <summary>
  /// 记录移动时
  /// </summary>
  public event CursorChange cursorChange;
  #endregion

一流代理Chimicron一级代理Chimicron代理Chimicron积微

www.8867.com 14

 
 
 
 }

一级代理积微拔尖代理积微代理

小品(直径42CM)

---------------------------------------------
 /// <summary>
 /// 添加空记录前发生
 /// </summary>
 public delegate void BeforeInsert(CurrencyManager sender);
 /// <summary>
 /// 添加空记录后发出
 /// </summary>
 public delegate void AfterInsert(CurrencyManager sender);
 /// <summary>
 /// 提交后爆发
 /// </summary>
 public delegate void AfterPost(CurrencyManager sender);
 /// <summary>
 /// 提交前发出
 /// </summary>
 public delegate bool BeforePost(CurrencyManager sender);
 /// <summary>
 /// 删除前发出
 /// </summary>
 public delegate bool BeforeDelete(CurrencyManager sender);
 /// <summary>
 /// 删除后发出
 /// </summary>
 public delegate void AfterDelete(CurrencyManager sender);
 /// <summary>
 /// 废除前发生
 /// </summary>
 public delegate void BeforeCancel(CurrencyManager sender);
 /// <summary>
 /// 撤销后发出
 /// </summary>
 public delegate void AfterCancel(CurrencyManager sender);

www.8867.com 15

 /// <summary>
 /// 保存方法
 /// </summary>
 public delegate void SaveData(CurrencyManager sender);

小品(直径42CM)

 public delegate void GetAllData();
 

www.8867.com 16

 public delegate void CursorChange(int Position,int
oldPosition,CurrencyManager sender);

小品(直径42CM)

www.8867.com 17

小品(直径42CM)

www.8867.com 18

小品(直径42CM)

www.8867.com 19

小品(直径42CM)

www.8867.com 20

小品(直径42CM)

发表评论

电子邮件地址不会被公开。 必填项已用*标注