コード例 #1
0
ファイル: HenkinForm.cs プロジェクト: shugonta/huruhon
        protected 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["ColumnReceipt", 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 == "ColumnReturn")
            {
                ItemsShow f = new ItemsShow(
                    delegate()
                {
                    return((from i in grp where i.item_sellprice.HasValue == false select i).ToList());
                }, grp.Key + "の返品物一覧");
                f.Show();
            }
            else if (dgv.Columns[e.ColumnIndex].Name == "ColumnIchiran")
            {
                ItemsShow f = new ItemsShow(
                    delegate()
                {
                    return(grp.ToList());
                }, grp.Key + "の出品物一覧");
                f.Show();
            }
        }
コード例 #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            if (this.allListForm == null || this.allListForm.IsDisposed)
            {
                var context = new DBClassDataContext(Globals.ConnectionString);
                this.allListForm = new ItemsShow(
                    (ItemsShow.ItemReturnDelegate) delegate()
                {
                    return((from n in context.item
                            where n.item_kansa_end == null && n.item_sellprice != null
                            select n).ToList());
                }, "監査対象");
            }

            this.allListForm.Show();
            this.allListForm.Activate();
        }
コード例 #3
0
        private void button_all_Click(object sender, EventArgs e)
        {
            ItemsShow form = new ItemsShow();

            form.Show();
        }