Пример #1
0
        private void btn_fp_EPL_Click(object sender, EventArgs e)
        {
            if (operation_fp == "INS")
            {
                DataSaver ds = new DataSaver(login_, password_);
                lb_status.Text = ds.InsertFinPosition(tb_fp_FPcode.Text, tb_fp_Licvid.Text);

                tb_fp_FPcode.Text = "";
                tb_fp_Licvid.Text = "";
                
            }

            else if (operation_fp == "UPD")
            {
                try
                {
                   // string ID = gridView12.GetFocusedDataRow()["IdFinPosition"].ToString();
                    DataSaver ds = new DataSaver(login_, password_);
                    lb_status.Text = ds.UpdateFinPosition(FPCODE_save,tb_fp_FPcode.Text, tb_fp_Licvid.Text);
                }
                catch { }
            }

            else if (operation_fp == "DEL")
            {
                DataSaver ds = new DataSaver(login_, password_);
                lb_status.Text = ds.DeleteFinPosition(tb_fp_FPcode.Text, tb_fp_Licvid.Text);
            }
            this.v_FinPosition_EPLTableAdapter.Fill(this.formationOfScheduleDataSet5.v_FinPosition_EPL);
            this.financialPositionTableAdapter.Fill(this.formationOfScheduleDataSet3.FinancialPosition);
            this.v_FinancialPosition_TopicTableAdapter.Fill(this.formationOfScheduleDataSet6.v_FinancialPosition_Topic);
            ContractsFill();
            ActualPaymentsFill();
            PlansFill();
        }