private void cSVで出力CToolStripMenuItem_Click(object sender, EventArgs e) { Form_ItemList f = new Form_ItemList(delegate() { var itemDao = GlobalData.getIDao <IItemDao>(); return(itemDao.GetAll()); }, "全商品", "allItems"); f.outCSV(); }
protected override void dataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e) { DataGridView dgv = (DataGridView)sender; if (dgv.Enabled == false) { return; } if (this.itemGroup == null) { return; } if (e.RowIndex < 0) { return; } object shupp = dgv[ColumnName.shuppinsha, e.RowIndex].Value; if (shupp == null) { return; } var grps = from gg in this.itemGroup where gg.Key == (string)shupp select gg; if (grps.Count() == 0) { return; } var grp = grps.Single(); if (dgv.Columns[e.ColumnIndex].Name == ColumnName.henpinKosuu) { Form_ItemList f = new Form_ItemList( delegate() { return((from i in grp where i.item_sellprice.HasValue == false select i).ToList()); }, grp.Key + "の返品物一覧", "Seller" ); f.Show(); } else if (dgv.Columns[e.ColumnIndex].Name == ColumnName.itiran) { Form_ItemList f = new Form_ItemList( delegate() { return(grp.ToList()); }, grp.Key + "の出品物一覧", "Return" ); f.Show(); } }
private void button3_Click(object sender, EventArgs e) { if (this.allListForm == null || this.allListForm.IsDisposed) { this.allListForm = new Form_ItemList( (Form_ItemList.ItemReturnDelegate) delegate() { var itemDao = GlobalData.getIDao <IItemDao>(); return(itemDao.GetNeedKansaItem()); }, "監査対象", "監査対象"); } this.allListForm.Show(); this.allListForm.Activate(); }
private void button2_Click(object sender, EventArgs e) { if (this.listForm == null || this.listForm.IsDisposed) { this.listForm = new Form_ItemList( (Form_ItemList.ItemReturnDelegate) delegate() { var itemDao = GlobalData.getIDao <IItemDao>(); return(itemDao.GetNeedKansaItem_NotFlagged()); }, "未" + this.Text, "未監査"); } this.listForm.Show(); this.listForm.Activate(); }
//[AllItems] private void button5_Click(object sender, EventArgs e) { try { Form_ItemList f = new Form_ItemList(delegate() { var itemDao = GlobalData.getIDao <IItemDao>(); return(itemDao.GetAll()); }, "全商品リスト", "allItems"); f.Show(); } catch (Exception excep) { MessageBox.Show("全商品ウィンドウが生成できませんでした: " + excep.Message); } }
private void 商品リストを表示LToolStripMenuItem_Click(object sender, EventArgs e) { if (this.receipt == null) { return; } uint rid = this.receipt.receipt_id; try { Form_ItemList f = new Form_ItemList(delegate() { var itemDao = GlobalData.getIDao <IItemDao>(); return(itemDao.GetReceiptItem(rid)); }, "R" + rid.ToString("0000") + " " + this.receipt.getSellerString() + " の商品リスト", "R" + rid.ToString("0000")); f.Show(); } catch (Exception excep) { MessageBox.Show("商品一覧ウィンドウが生成できませんでした: " + excep.Message); } }