//////////////////////////////////////////////////////////////////////////// // メソッド名 : CreateDataInsert /// <summary> /// /// </summary> /// <history> /// 日付 担当者 内容 /// 2014/07/07 DatNT 新規作成 /// </history> //////////////////////////////////////////////////////////////////////////// private YakushokuMstDataSet.YakushokuMstDataTable CreateDataInsert() { DateTime now = Common.Common.GetCurrentTimestamp(); YakushokuMstDataSet.YakushokuMstDataTable insertDT = new YakushokuMstDataSet.YakushokuMstDataTable(); YakushokuMstDataSet.YakushokuMstRow insertRow = insertDT.NewYakushokuMstRow(); // 役職コード // UPD 20140724 START ZynasSou //insertRow.YakushokuCd = yakushokuCdTextBox.Text; insertRow.YakushokuCd = Common.Common.GetKeyRenban("YakushokuMst", "", "", "").PadLeft(2, '0'); // UPD 20140724 END ZynasSou // 役職名 insertRow.YakushokuNm = yakushokuNmTextBox.Text.Trim(); // 役職区分 insertRow.YakushokuKbn = yakushokuKbnCombobox.SelectedValue.ToString(); insertRow.InsertDt = now; insertRow.InsertTarm = terminal; insertRow.InsertUser = loginUser; insertRow.UpdateDt = now; insertRow.UpdateTarm = terminal; insertRow.UpdateUser = loginUser; // 行を挿入 insertDT.AddYakushokuMstRow(insertRow); // 行の状態を設定 insertRow.AcceptChanges(); // 行の状態を設定(新規) insertRow.SetAdded(); return insertDT; }