private void JobListToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CommonListView win = new CommonListView();

            win.Show();
            win.ListTitle = "ジョブ一覧";
            win.Text      = "ジョブ一覧";
        }
Example #2
0
        private void tableLayoutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            CommonListView win = new CommonListView();

            win.Show();
            win.Text      = "Table Layout Definition";
            win.ListTitle = "定例1次入力(REGULAR_CREDIT_1_INPUT)";

            DataTable dt = new DataTable("Dummy");

            dt.Columns.Add("ItemName", typeof(string));
            dt.Columns.Add("DataType", typeof(string));
            dt.Columns.Add("TotalSize", typeof(int));

            dt.Rows.Add(new object[] { "与信処理種別", "CHAR", 2 });
            dt.Rows.Add(new object[] { "申込番号", "CHAR", 16 });
            dt.Rows.Add(new object[] { "契約番号", "CHAR", 16 });
            dt.Rows.Add(new object[] { "顧客番号", "CHAR", 11 });
            dt.Rows.Add(new object[] { "セグメント", "CHAR", 4 });

            win.dgrList.AutoGenerateColumns = false;
            DataGridViewTextBoxColumn col = new DataGridViewTextBoxColumn();

            col.DataPropertyName = "ItemName";
            col.HeaderText       = "項目";
            win.dgrList.Columns.Add(col);

            col = new DataGridViewTextBoxColumn();
            col.DataPropertyName = "DataType";
            col.HeaderText       = "型";
            win.dgrList.Columns.Add(col);

            col = new DataGridViewTextBoxColumn();
            col.DataPropertyName = "TotalSize";
            col.HeaderText       = "総桁";
            win.dgrList.Columns.Add(col);
            win.dgrList.AllowUserToAddRows = false;

            win.dgrList.Rows.Clear();

            win.dgrList.DataSource = dt;
        }