Esempio n. 1
0
        private void deletePlanningAndContents()
        {
            EstPlanOp epo = new EstPlanOp();

            if (!epo.Planning_Delete(plnd[idx].PlanningID))
            {
                return;
            }
            if (!epo.PlanningCont_Delete(plnd[idx].PlanningID))
            {
                return;
            }
            dataGridView1.Rows.Clear();
            dataGridView1.Rows.Add(iniRCnt);
            buttonNumbering();
            reCalculateAll(dataGridView1);

            plnd[idx].PlanningID = 0;
            plnd[idx].Sales      = 0;
            plnd[idx].Budgets    = 0;
            plnd[idx].Discussion = "";
            plnd[idx].OfficeCode = "";
            plnd[idx].Department = "";
            plnd[idx].Publisher  = "";

            clearLabelText();
            labelMsg.Text = "削除しました。";
        }
Esempio n. 2
0
        private void updatePlanningAndContents(DataGridView dgv)
        {
            EstPlanOp epo = new EstPlanOp();

            if (!epo.Planning_Update(plnd[idx]))
            {
                return;
            }
            if (!epo.PlanningCont_Delete(plnd[idx].PlanningID))
            {
                return;
            }
            if (!epo.PlanningCont_Insert(dgv, plnd[idx].PlanningID))
            {
                return;
            }
            labelMsg.Text = "更新しました。";
        }