Exemple #1
0
        private void sbtnAdd_Click(object sender, System.EventArgs e)
        {
            //添加专供油合同
            frmContractAdd frm = new frmContractAdd();

            frm.Flag = OperFlag.ADD;
            frm.ShowDialog(this);
            BindList();
        }
Exemple #2
0
        private void sbtnMod_Click(object sender, System.EventArgs e)
        {
            if (this.listView1.SelectedItems.Count < 1)
            {
                MessageBox.Show(this, "请选择专供油合同", "系统提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }
            Entity.SpecialOilDept so = new SpecialOilDept();
            so.cnvcContractNo      = listView1.SelectedItems[0].SubItems[0].Text;
            so.cnvcDeliveryCompany = listView1.SelectedItems[0].SubItems[1].Text;
            so.SetOriginalValue();
            frmContractAdd frm = new frmContractAdd();

            frm.Flag = OperFlag.MOD;
            frm.SO   = so;
            frm.ShowDialog(this);
            BindList();
        }