private void initDGSeikyusaki()
 {
     m_libCmn.CreateAddTextColHidden(dgSeikyusaki, "col_no", "No", 0);
     m_libCmn.CreateAddTextColHidden(dgSeikyusaki, "col_id", "id", 0);
     m_libCmn.CreateAddTextColHidden(dgSeikyusaki, "col_regdate", "更新日時", 0);
     m_libCmn.CreateAddTextCol(dgSeikyusaki, "col_name", "請求先名", 150);
     m_libCmn.CreateAddTextCol(dgSeikyusaki, "col_busyo", "部署名", 80);
     m_libCmn.CreateAddTextCol(dgSeikyusaki, "col_skeisyou", "請求敬称", 40);
     m_libCmn.CreateAddTextCol(dgSeikyusaki, "col_akeisyou", "宛名敬称", 40);
     m_libCmn.CreateAddTextCol(dgSeikyusaki, "col_postno", "郵便番号", 80);
     m_libCmn.CreateAddTextCol(dgSeikyusaki, "col_adrs1", "住所1", 200);
     m_libCmn.CreateAddTextCol(dgSeikyusaki, "col_adrs2", "住所2", 200);
     m_libCmn.CreateAddTextCol(dgSeikyusaki, "col_tel", "電話番号", 100);
     m_libCmn.CreateAddTextCol(dgSeikyusaki, "col_fax", "FAX番号", 100);
     m_libCmn.CreateAddTextCol(dgSeikyusaki, "col_payname", "振込名", 100);
     m_libCmn.CreateAddTextCol(dgSeikyusaki, "col_bikou", "備考", 50);
     m_dt = new DataTable("DataGridTest");
     m_dt.Columns.Add(new DataColumn("col_no", typeof(int)));
     m_dt.Columns.Add(new DataColumn("col_id", typeof(int)));
     m_dt.Columns.Add(new DataColumn("col_regdate", typeof(string)));
     m_dt.Columns.Add(new DataColumn("col_name", typeof(string)));
     m_dt.Columns.Add(new DataColumn("col_busyo", typeof(string)));
     m_dt.Columns.Add(new DataColumn("col_skeisyou", typeof(string)));
     m_dt.Columns.Add(new DataColumn("col_akeisyou", typeof(string)));
     m_dt.Columns.Add(new DataColumn("col_postno", typeof(string)));
     m_dt.Columns.Add(new DataColumn("col_adrs1", typeof(string)));
     m_dt.Columns.Add(new DataColumn("col_adrs2", typeof(string)));
     m_dt.Columns.Add(new DataColumn("col_tel", typeof(string)));
     m_dt.Columns.Add(new DataColumn("col_fax", typeof(string)));
     m_dt.Columns.Add(new DataColumn("col_payname", typeof(string)));
     m_dt.Columns.Add(new DataColumn("col_bikou", typeof(string)));
 }
 private void initDGSyouhin()
 {
     m_libCmn.CreateAddTextColHidden(dgSyouhin, "col_no", "No", 30);
     m_libCmn.CreateAddTextColHidden(dgSyouhin, "col_id", "id", 30);
     m_libCmn.CreateAddTextCol(dgSyouhin, "col_name", "商品名", 200);
     m_libCmn.CreateAddPriceCol(dgSyouhin, "col_tanka", "単価", 60);
     m_libCmn.CreateAddTextCol(dgSyouhin, "col_tani", "単位", 40);
     m_libCmn.CreateAddTextCol(dgSyouhin, "col_kubun", "分類", 50);
     m_libCmn.CreateAddTextCol(dgSyouhin, "col_tax", "税区分", 50);
     m_libCmn.CreateAddRightTextCol(dgSyouhin, "col_sort", "並順", 40);
     m_dt = new DataTable("DataGridTest");
     m_dt.Columns.Add(new DataColumn("col_no", typeof(int)));
     m_dt.Columns.Add(new DataColumn("col_id", typeof(int)));
     m_dt.Columns.Add(new DataColumn("col_name", typeof(string)));
     m_dt.Columns.Add(new DataColumn("col_tanka", typeof(int)));
     m_dt.Columns.Add(new DataColumn("col_tani", typeof(string)));
     m_dt.Columns.Add(new DataColumn("col_kubun", typeof(string)));
     m_dt.Columns.Add(new DataColumn("col_tax", typeof(string)));
     m_dt.Columns.Add(new DataColumn("col_sort", typeof(int)));
 }
Example #3
0
 private void InitDGHanbai()
 {
     m_nHanbaiSlctIdx = -1;
     m_libCmn.CreateAddTextCol(dgHanbai, "col_no", "No", 30);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_change", "変更", 0);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_id", "id", 0);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_regdate", "更新日", 0);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_orderdate", "受注日", 0);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_seikyuid", "請求書ID", 0);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_sougiid", "葬儀ID", 0);
     m_libCmn.CreateAddTextCol(dgHanbai, "col_souke", "葬家", 90);
     m_libCmn.CreateAddTextCol(dgHanbai, "col_kokubetu", "告別式日", 90);
     m_libCmn.CreateAddTextCol(dgHanbai, "col_name", "商品名", 200);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_tanka", "単価", 0);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_tani", "単位", 0);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_kosu", "個数", 0);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_taxkind", "税区分", 0);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_tax", "消費税", 0);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_price", "金額", 0);
     m_libCmn.CreateAddTextCol(dgHanbai, "col_nafuda1", "名札1", 100);
     m_libCmn.CreateAddTextCol(dgHanbai, "col_nafuda2", "名札2", 100);
     m_libCmn.CreateAddTextCol(dgHanbai, "col_nafuda3", "名札3", 100);
     m_libCmn.CreateAddTextCol(dgHanbai, "col_seikyu", "請求先名", 200);
     m_libCmn.CreateAddTextCol(dgHanbai, "col_busho", "請求先部署", 100);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_skskeisyou", "請求書敬称", 0);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_skakeisyou", "宛名書敬称", 0);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_seikyupost", "請求郵便番号", 0);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_seikyuadrs1", "請求住所1", 0);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_seikyuadrs2", "請求住所2", 0);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_seikyutel", "請求電話", 0);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_seikyufax", "請求FAX", 0);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_seikyupay", "請求振込名", 0);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_seikyukubun", "請求区分", 0);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_receivedate", "入金日", 0);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_receivekind", "入金種別", 0);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_vendername", "仕入先", 0);
     m_libCmn.CreateAddTextCol(dgHanbai, "col_nafuda4", "名札4", 100);
     m_libCmn.CreateAddTextCol(dgHanbai, "col_nafuda5", "名札5", 100);
     m_libCmn.CreateAddTextCol(dgHanbai, "col_nafuda6", "名札6", 100);
     m_libCmn.CreateAddTextCol(dgHanbai, "col_nafuda7", "名札7", 100);
     m_libCmn.CreateAddTextCol(dgHanbai, "col_nafuda8", "名札8", 100);
     m_libCmn.CreateAddTextColHidden(dgHanbai, "col_bikou", "備考", 0);
     m_dt = new DataTable("DataGridTest");
     m_dt.Columns.Add(new DataColumn("col_no", typeof(int)));             // 数値
     m_dt.Columns.Add(new DataColumn("col_change", typeof(int)));         // 数値
     m_dt.Columns.Add(new DataColumn("col_id", typeof(int)));             // 数値
     m_dt.Columns.Add(new DataColumn("col_regdate", typeof(string)));     // 数値
     m_dt.Columns.Add(new DataColumn("col_orderdate", typeof(string)));   // 数値
     m_dt.Columns.Add(new DataColumn("col_seikyuid", typeof(int)));       // 数値
     m_dt.Columns.Add(new DataColumn("col_sougiid", typeof(int)));        // 数値
     m_dt.Columns.Add(new DataColumn("col_souke", typeof(string)));       // 数値
     m_dt.Columns.Add(new DataColumn("col_kokubetu", typeof(string)));    // 数値
     m_dt.Columns.Add(new DataColumn("col_name", typeof(string)));        // 数値
     m_dt.Columns.Add(new DataColumn("col_tanka", typeof(int)));          // 文字列
     m_dt.Columns.Add(new DataColumn("col_tani", typeof(string)));        // 文字列
     m_dt.Columns.Add(new DataColumn("col_kosu", typeof(int)));           // 文字列
     m_dt.Columns.Add(new DataColumn("col_taxkind", typeof(string)));     // 文字列
     m_dt.Columns.Add(new DataColumn("col_tax", typeof(int)));            // 文字列
     m_dt.Columns.Add(new DataColumn("col_price", typeof(int)));          // 文字列
     m_dt.Columns.Add(new DataColumn("col_nafuda1", typeof(string)));     // 文字列
     m_dt.Columns.Add(new DataColumn("col_nafuda2", typeof(string)));     // 文字列
     m_dt.Columns.Add(new DataColumn("col_nafuda3", typeof(string)));     // 文字列
     m_dt.Columns.Add(new DataColumn("col_seikyu", typeof(string)));      // 文字列
     m_dt.Columns.Add(new DataColumn("col_busho", typeof(string)));       // 文字列
     m_dt.Columns.Add(new DataColumn("col_skskeisyou", typeof(string)));  // 文字列
     m_dt.Columns.Add(new DataColumn("col_skakeisyou", typeof(string)));  // 文字列
     m_dt.Columns.Add(new DataColumn("col_seikyupost", typeof(string)));  // 文字列
     m_dt.Columns.Add(new DataColumn("col_seikyuadrs1", typeof(string))); // 文字列
     m_dt.Columns.Add(new DataColumn("col_seikyuadrs2", typeof(string))); // 文字列
     m_dt.Columns.Add(new DataColumn("col_seikyutel", typeof(string)));   // 文字列
     m_dt.Columns.Add(new DataColumn("col_seikyufax", typeof(string)));   // 文字列
     m_dt.Columns.Add(new DataColumn("col_seikyupay", typeof(string)));   // 文字列
     m_dt.Columns.Add(new DataColumn("col_seikyukubun", typeof(string))); // 文字列
     m_dt.Columns.Add(new DataColumn("col_receivedate", typeof(string))); // 文字列
     m_dt.Columns.Add(new DataColumn("col_receivekind", typeof(string))); // 文字列
     m_dt.Columns.Add(new DataColumn("col_vendername", typeof(string)));  // 文字列
     m_dt.Columns.Add(new DataColumn("col_nafuda4", typeof(string)));     // 文字列
     m_dt.Columns.Add(new DataColumn("col_nafuda5", typeof(string)));     // 文字列
     m_dt.Columns.Add(new DataColumn("col_nafuda6", typeof(string)));     // 文字列
     m_dt.Columns.Add(new DataColumn("col_nafuda7", typeof(string)));     // 文字列
     m_dt.Columns.Add(new DataColumn("col_nafuda8", typeof(string)));     // 文字列
     m_dt.Columns.Add(new DataColumn("col_bikou", typeof(string)));       // 文字列
     dgHanbai.DataContext = m_dt;
     // dgHanbai.CanUserAddRows = false; // 最終空白行削除
     // dgHanbai.CommitEdit();
     // dgHanbai.CancelEdit();
 }