Ejemplo n.º 1
0
        private void BtnAdd_Click(object sender, EventArgs e)
        {
            if (raBtnOne.Checked && cmbYF.SelectedValue != null)
            {
                using (源房缴费Form jf = new 源房缴费Form((Guid)cmbYF.SelectedValue))
                {
                    jf.ShowDialog(this);
                }
            }
            else
            {
                using (源房缴费Form jf = new 源房缴费Form())
                {
                    jf.ShowDialog(this);
                }
            }

            //最后,不管有没有更新,更新view
            //1.获取新增的对象
            var objects = 源房缴费明细.GetPayDetails(context, null, null).Execute(MergeOption.AppendOnly).ToList();

            //2.获取本地对象(不考虑之前本地删除的)
            view.SourceLists = context.源房缴费明细.Local().ToBindingListView().SourceLists;
            raBtn_CheckedChanged(null, null);
        }
Ejemplo n.º 2
0
 private void kryptonDataGridView1_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     //双击,编辑
     if (e.Button == System.Windows.Forms.MouseButtons.Left)
     {
         源房缴费明细 cur = 源房缴费明细BindingSource.Current as 源房缴费明细;
         if (cur != null)
         {
             using (源房缴费Form jf = new 源房缴费Form(cur))
             {
                 jf.ShowDialog(this);
             }
         }
     }
 }
Ejemplo n.º 3
0
        private void BtnAdd_Click(object sender, EventArgs e)
        {
            if (raBtnOne.Checked && cmbYF.SelectedValue != null)
            {
                using (源房缴费Form jf = new 源房缴费Form((Guid)cmbYF.SelectedValue))
                {
                    jf.ShowDialog(this);
                }
            }
            else
            {
                using (源房缴费Form jf = new 源房缴费Form())
                {
                    jf.ShowDialog(this);
                }
            }

            //最后,不管有没有更新,刷新DataGridView
            raBtn_CheckedChanged(null, null);
        }