public KanjouKamokuFormController() { form = new KaikeiSystemBody.views.KanjouKamokuForm(); gridController = new grid.DBPanelGridController <views.grid.KanjouKamokuRow>(form.Grid, false); form.MenuButtonClicked += () => MainController.PopActivity(); form.DetailButtonClicked += delegate(object sender) { if (sender != null && (sender as views.grid.AbstractDBGridRow).RowData != null) { var popupController = new controllers.popup.KanjouKamokuDetailPopupController(); popupController.Context = this.Context; popupController.ShowPopup(form, form.Grid.SelectedRowControl.RowData, bufferedKanjouKamokuTable); Context.KaikeiDatabase.MTKanjouKamoku.UpdateCache(); Context.KaikeiDatabase.MTKamokuKubun.UpdateCache(); gridController.Refresh(); } }; form.AddButtonClicked += delegate() { var popupController = new controllers.popup.KanjouKamokuDetailPopupController(); popupController.Context = this.Context; popupController.ShowPopup(form, null, bufferedKanjouKamokuTable); Context.KaikeiDatabase.MTKanjouKamoku.UpdateCache(); Context.KaikeiDatabase.MTKamokuKubun.UpdateCache(); gridController.Refresh(); }; }
private void HojokamokuRowUpdated() { long sum = hojokamokuTable.SumZenkiKurikoshiGaku(); //form.HojoKamokuSumAmount = sum; var row = form.SyoukubunGrid.SelectedRowControl.RowData; if (row != null) { row.Table.SetColumnValue(row, "zenki_kurikoshi_gaku", sum); row.Table.Update(row); syoukubunGridController.Refresh(); } SyoukubunRowUpdated(); }
private void ChukubunRowUpdated() { long sum = chukubunTable.SumZenkiKurikoshiGaku(); //form.ChukubunSumAmount = sum; var row = form.DaikubunGrid.SelectedRowControl.RowData; if (row != null) { row.Table.SetColumnValue(row, "zenki_kurikoshi_gaku", sum); row.Table.Update(row); daikubunGridController.Refresh(); } DaikubunRowUpdated(); }
private void Grid_RowUpdated(views.grid.AbstractDBGridRow rowControl) { models.db.Row row = rowControl.RowData; models.db.tables.KaikeiDenpyouMeisai.UpdateMeisaiGroupResult result; result = Context.KaikeiDatabase.KaikeiDenpyouMeisai.UpdateMeisaiGroup(row, EditingDenpyouBangou()); if (result != models.db.tables.KaikeiDenpyouMeisai.UpdateMeisaiGroupResult.None) { gridController.UpdateDataCount(); gridController.Refresh(); } if (result == models.db.tables.KaikeiDenpyouMeisai.UpdateMeisaiGroupResult.Inserted) { insertCt++; } }