private void ValidateKamokuCode(models.db.KaikeiDatabase db, models.db.Row row, models.constants.Taisyaku taisyaku) { if (models.Validator.IsHurikaeTaisyouKamokuCode(db, row, taisyaku)) { gridController.ShowMsgAndChangeFocus(KaikeiSystemBody.Properties.Resources.MsgHurikaeTaisyouKamoku, "warn", null); } }
// 行の変更内容の有効性をチェック private bool Grid_ValidateRowValue(views.grid.AbstractDBGridRow rowControl) { models.db.Row row = rowControl.RowData; if (!row.GetBool("kessan_syuuryou", false)) { return(true); } else { gridController.ShowMsgAndChangeFocus(KaikeiSystemBody.Properties.Resources.MsgKessanSyuuryou, "warn", null); return(false); } }