/// <summary>決済代行会社設定</summary> private void SetPaymentCellWidth(GcMultiRowTemplateBuilder builder) { builder.Items[3].Width = 0; //得意先コード builder.Items[4].Width = 0; //得意先名 builder.Items[5].Width = 115; //決済代行会社コード builder.Items[6].Width = 140; //決済代行会社名 }
private ComboBoxCell GetComboBoxCell(GcMultiRowTemplateBuilder builder) { var comboBoxCell = builder.GetComboBoxCell(); comboBoxCell.ValueAsIndex = true; comboBoxCell.Items.Add("昇順"); comboBoxCell.Items.Add("降順"); return(comboBoxCell); }
private void GetGridCells(GcMultiRowTemplateBuilder builder) { var height = builder.DefaultRowHeight; foreach (var gs in GridSettingList) { var cell = new CellSetting(height, gs.DisplayWidth, gs.ColumnName, dataField: gs.ColumnName, caption: gs.ColumnNameJp, sortable: false); switch (gs.ColumnName) { case nameof(ReminderHistory.CustomerCodeDisplay): case nameof(ReminderHistory.CurrencyCode): case nameof(ReminderHistory.OutputFlagName): cell.CellInstance = builder.GetTextBoxCell(MultiRowContentAlignment.MiddleCenter); break; case nameof(ReminderHistory.CustomerNameDisplay): case nameof(ReminderHistory.InputTypeName): case nameof(ReminderHistory.StatusCodeAndName): case nameof(ReminderHistory.Memo): case nameof(ReminderHistory.CreateByName): cell.CellInstance = builder.GetTextBoxCell(); break; case nameof(ReminderHistory.CalculateBaseDateDisplay): cell.CellInstance = builder.GetDateCell_yyyyMMdd(); break; case nameof(ReminderHistory.ReminderAmount): cell.CellInstance = builder.GetNumberCellCurrency(Precision, Precision, 0); break; case nameof(ReminderHistory.CreateAt): cell.CellInstance = builder.GetDateCell_yyyyMMddHHmmss(); break; case nameof(ReminderHistory.ArrearsDaysDisplay): cell.CellInstance = builder.GetNumberCell(); break; default: cell.CellInstance = builder.GetTextBoxCell(MultiRowContentAlignment.MiddleLeft); break; } builder.Items.Add(cell); } }
private void HideSectionName(GcMultiRowTemplateBuilder builder) { if (!UseSection) { builder.Items[1].Width = 115; // 銀行コード builder.Items[2].Width = 155; // 銀行名 builder.Items[3].Width = 115; // 支店コード builder.Items[4].Width = 155; // 支店名 builder.Items[5].Width = 160; // 預金種別 builder.Items[6].Width = 160; // 口座番号 builder.Items[7].Width = 0; // 入金部門名 } }
/// <summary>Template Builder のインスタンスを生成する拡張メソッド</summary> /// <param name="app"></param> /// <param name="color"></param> /// <param name="autoLocationSet"></param> /// <param name="allowHorizontalResize"></param> /// <param name="sortable"></param> /// <returns></returns> public static GcMultiRowTemplateBuilder CreateGcMultirowTemplateBuilder( this IApplication app, IColors color, bool autoLocationSet = true, bool allowHorizontalResize = true, bool sortable = false) { var builer = new GcMultiRowTemplateBuilder() { AutoLocationSet = autoLocationSet, AllowHorizontalResize = allowHorizontalResize, Sortable = sortable, Font = new Font(app.FontFamilyName, (float)9.0, FontStyle.Regular, GraphicsUnit.Point, (byte)128), Border = color.GridLine(), }; return(builer); }