示例#1
0
 public SpOrgAddChangeForm()
 {
     this.m_SpOrg = new SpOrg();
     this.InitializeComponent();
 }
示例#2
0
 public SpOrgAddChangeForm(SpOrg spOrg)
     : this()
 {
     this.m_SpOrg = spOrg;
 }
示例#3
0
 private void btnAdd_Click(object sender, System.EventArgs e)
 {
     SpOrg spOrg = new SpOrg();
     new SpOrgAddChangeForm(spOrg).ShowDialog(this);
     this.bsSpOrg.set_DataSource(SpOrg.FindAll());
     foreach (System.Windows.Forms.DataGridViewRow row in (System.Collections.IEnumerable) this.dataGridView1.Rows)
     {
         row.Cells.get_Item(2).set_Value(System.Convert.ToDecimal(row.Cells.get_Item(2).get_Value()) * 100M);
     }
     this.bsSpOrg.set_Position(this.bsSpOrg.IndexOf(spOrg));
 }