Exemplo n.º 1
0
        //private ITransportationOrderMgr transportationOrderMgr;

        public ReceiptMgr(IReceiptDao entityDao,
                          IReceiptDetailMgr receiptDetailMgr,
                          INumberControlMgr numberControlMgr,
                          ILocationMgr locationMgr,
                          ILocationLotDetailMgr locationLotDetailMgr,
                          IHuMgr huMgr,
                          IHuOddMgr huOddMgr,
                          IOrderLocationTransactionMgr orderLocationTransactionMgr,
                          IInProcessLocationMgr inProcessLocationMgr,
                          IInProcessLocationDetailMgr inProcessLocationDetailMgr,
                          IReceiptInProcessLocationMgr receiptInProcessLocationMgr,
                          IInspectOrderMgr inspectOrderMgr,
                          ICriteriaMgr criteriaMgr,
                          IUserMgr userMgr)
            : base(entityDao)
        {
            this.receiptDetailMgr     = receiptDetailMgr;
            this.numberControlMgr     = numberControlMgr;
            this.locationMgr          = locationMgr;
            this.locationLotDetailMgr = locationLotDetailMgr;
            this.huMgr    = huMgr;
            this.huOddMgr = huOddMgr;
            this.orderLocationTransactionMgr = orderLocationTransactionMgr;
            this.inProcessLocationMgr        = inProcessLocationMgr;
            this.inProcessLocationDetailMgr  = inProcessLocationDetailMgr;
            this.receiptInProcessLocationMgr = receiptInProcessLocationMgr;
            this.inspectOrderMgr             = inspectOrderMgr;
            this.criteriaMgr = criteriaMgr;
            this.userMgr     = userMgr;;
        }
Exemplo n.º 2
0
 //private ITransportationOrderMgr transportationOrderMgr;
 public ReceiptMgr(IReceiptDao entityDao,
     IReceiptDetailMgr receiptDetailMgr,
     INumberControlMgr numberControlMgr,
     ILocationMgr locationMgr,
     ILocationLotDetailMgr locationLotDetailMgr,
     IHuMgr huMgr,
     IHuOddMgr huOddMgr,
     IOrderLocationTransactionMgr orderLocationTransactionMgr,
     IInProcessLocationMgr inProcessLocationMgr,
     IInProcessLocationDetailMgr inProcessLocationDetailMgr,
     IReceiptInProcessLocationMgr receiptInProcessLocationMgr,
     IInspectOrderMgr inspectOrderMgr,
     ICriteriaMgr criteriaMgr,
     IUserMgr userMgr)
     : base(entityDao)
 {
     this.receiptDetailMgr = receiptDetailMgr;
     this.numberControlMgr = numberControlMgr;
     this.locationMgr = locationMgr;
     this.locationLotDetailMgr = locationLotDetailMgr;
     this.huMgr = huMgr;
     this.huOddMgr = huOddMgr;
     this.orderLocationTransactionMgr = orderLocationTransactionMgr;
     this.inProcessLocationMgr = inProcessLocationMgr;
     this.inProcessLocationDetailMgr = inProcessLocationDetailMgr;
     this.receiptInProcessLocationMgr = receiptInProcessLocationMgr;
     this.inspectOrderMgr = inspectOrderMgr;
     this.criteriaMgr = criteriaMgr;
     this.userMgr = userMgr;;
 }
Exemplo n.º 3
0
        //[Receipts]
        private void renewReceipts()
        {
            this.dataGridView1.Enabled = false;
            this.dataGridView1.Rows.Clear();

            IReceiptDao receiptDao = GlobalData.getIDao <IReceiptDao>();
            IItemDao    itemDao    = GlobalData.getIDao <IItemDao>();


            this.receiptlist = receiptDao.GetAll();

            foreach (Receipt r in this.receiptlist)
            {
                DataGridViewRow row = this.dataGridView1.Rows[this.dataGridView1.Rows.Add()];

                this.setRowValue(row, r);

                //個数 - のこす
                //row.Cells["個数"].Value = itemDao.CountReceiptItem(r.receipt_id);
            }

            dataGridView1.Sort(dataGridView1.Columns[ColumnName.hyouBan], ListSortDirection.Ascending);
            dataGridView1.Enabled = true;

            if (dataGridView1.Rows.Count > 0)
            {
                dataGridView1.FirstDisplayedScrollingRowIndex = dataGridView1.Rows.Count - 1;
            }

            this.RefreshStatusBar();
        }
Exemplo n.º 4
0
        private void dataGridView1_CellValueChanged(object sender, DataGridViewCellEventArgs e)
        {
            DataGridView dgv = (DataGridView)sender;

            if (dgv.Enabled == false)
            {
                return;
            }

            if (this.receiptlist == null)
            {
                throw new InvalidOperationException();
            }

            Receipt r = (from rs in this.receiptlist
                         where rs.receipt_id == (UInt32)dgv[ColumnName.hyouBan, e.RowIndex].Value
                         select rs)
                        .Single();


            this.changeDBdata(dgv.Columns[e.ColumnIndex].Name, r, dgv[e.ColumnIndex, e.RowIndex].Value);


            IReceiptDao receiptDao = GlobalData.getIDao <IReceiptDao>();

            try
            {
                receiptDao.Update(r);
            }
            catch (Exception ex)
            {
                MessageBox.Show("更新できませんでした: " + ex.Message);
                return;
            }

            System.Diagnostics.Debug.WriteLine
                ("Receipt: (index: " + r.receipt_id.ToString() + ") Updated.");
        }
Exemplo n.º 5
0
 public ReceiptBaseMgr(IReceiptDao entityDao)
 {
     this.entityDao = entityDao;
 }
Exemplo n.º 6
0
 public ReceiptBaseMgr(IReceiptDao entityDao)
 {
     this.entityDao = entityDao;
 }