Exemple #1
0
        private void storePlanningAndContents(DataGridView dgv)
        {
            EstPlanOp epo = new EstPlanOp();

            plnd[idx].VersionNo   = plnd[idx].MaxVersion + 1;
            plnd[idx].TaskEntryID = ted.TaskEntryID;
            plnd[idx].OfficeCode  = ted.OfficeCode;
            plnd[idx].Department  = ted.Department;
            plnd[idx].Publisher   = ted.OfficeCode + ted.Department;
            plnd[idx].PlanningID  = epo.Planning_Insert(plnd[idx]);
            if (plnd[idx].PlanningID < 0)
            {
                return;
            }
            if (!epo.PlanningCont_Insert(dgv, plnd[idx].PlanningID))
            {
                return;
            }
            buttonOWrite.Enabled = true;
            buttonNWrite.Enabled = false;       // 新規保存利用不可
            labelMsg.Text        = "保存しました。";
        }