コード例 #1
0
 private void SalesReturnrForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     UserSetting.SaveSetting(itemsDataGrid, m_mainForm.CurrentUser.ID, this.Name);
 }
コード例 #2
0
 private void SearchOpeningStockForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     UserSetting.SaveSetting(gridData, 1, this.Name);
 }
コード例 #3
0
 private void SalesReturnForm_Load(object sender, EventArgs e)
 {
     UserSetting.LoadSetting(itemsDataGrid, m_mainForm.CurrentUser.ID, this.Name);
 }
コード例 #4
0
 private void SearchPurchaseReturnForm_Load(object sender, EventArgs e)
 {
     UserSetting.LoadSetting(gridData, 1, this.Name);
 }
コード例 #5
0
ファイル: PartForm.cs プロジェクト: oghenez/profitz
        private void loadMovement()
        {
            movemntkryptonDataGridView.Rows.Clear();
            if (m_part.ID == 0)
            {
                return;
            }
            IList movs = r_part.GetAllEvents(m_part.ID);

            foreach (EventItem itm in movs)
            {
                int r = movemntkryptonDataGridView.Rows.Add();
                movemntkryptonDataGridView[dateMovementColumn.Index, r].Value      = itm.EVENT.TRANSACTION_DATE;
                movemntkryptonDataGridView[eventCodeMovementColumn.Index, r].Value = itm.EVENT.CODE;
                movemntkryptonDataGridView[eventTypeMovementColumn.Index, r].Value = itm.STOCK_CARD_ENTRY_TYPE.ToString();
                movemntkryptonDataGridView[QtyMovementColumn.Index, r].Value       = itm.GetAmountInSmallestUnit();
                movemntkryptonDataGridView[unitMovementColumn.Index, r].Value      = m_part.UNIT.CODE;
                movemntkryptonDataGridView[vendorMovementColumn.Index, r].Value    = "-";
                switch (itm.STOCK_CARD_ENTRY_TYPE)
                {
                case StockCardEntryType.PurchaseOrder:
                    PurchaseOrderItem pi = (PurchaseOrderItem)itm;
                    PurchaseOrder     p  = (PurchaseOrder)pi.EVENT;
                    p.SUPPLIER = (Supplier)r_sup.GetById(p.SUPPLIER);
                    movemntkryptonDataGridView[vendorMovementColumn.Index, r].Value = p.SUPPLIER.NAME;
                    break;

                case StockCardEntryType.SalesOrder:
                    SalesOrderItem soi = (SalesOrderItem)itm;
                    SalesOrder     so  = (SalesOrder)soi.EVENT;
                    so.CUSTOMER = (Customer)r_cus.GetById(so.CUSTOMER);
                    movemntkryptonDataGridView[vendorMovementColumn.Index, r].Value = so.CUSTOMER.NAME;
                    break;

                case StockCardEntryType.GoodReceiveNote:
                    GoodReceiveNoteItem grni = (GoodReceiveNoteItem)itm;
                    GoodReceiveNote     grn  = (GoodReceiveNote)grni.EVENT;
                    grn.SUPPLIER = (Supplier)r_sup.GetById(grn.SUPPLIER);
                    movemntkryptonDataGridView[vendorMovementColumn.Index, r].Value = grn.SUPPLIER.NAME;
                    break;

                case StockCardEntryType.DeliveryOrder:
                    DeliveryOrderItem doi = (DeliveryOrderItem)itm;
                    DeliveryOrder     dor = (DeliveryOrder)doi.EVENT;
                    dor.CUSTOMER = (Customer)r_cus.GetById(dor.CUSTOMER);
                    movemntkryptonDataGridView[vendorMovementColumn.Index, r].Value = dor.CUSTOMER.NAME;
                    break;

                case StockCardEntryType.SupplierInvoice:
                    SupplierInvoiceItem sii = (SupplierInvoiceItem)itm;
                    SupplierInvoice     si  = (SupplierInvoice)sii.EVENT;
                    si.SUPPLIER = (Supplier)r_sup.GetById(si.SUPPLIER);
                    movemntkryptonDataGridView[vendorMovementColumn.Index, r].Value = si.SUPPLIER.NAME;
                    break;

                case StockCardEntryType.CustomerInvoice:
                    CustomerInvoiceItem cii = (CustomerInvoiceItem)itm;
                    CustomerInvoice     ci  = (CustomerInvoice)cii.EVENT;
                    ci.CUSTOMER = (Customer)r_cus.GetById(ci.CUSTOMER);
                    movemntkryptonDataGridView[vendorMovementColumn.Index, r].Value = ci.CUSTOMER.NAME;
                    break;

                case StockCardEntryType.PurchaseReturn:
                    PurchaseReturnItem pri = (PurchaseReturnItem)itm;
                    PurchaseReturn     pr  = (PurchaseReturn)pri.EVENT;
                    pr.SUPPLIER = (Supplier)r_sup.GetById(pr.SUPPLIER);
                    movemntkryptonDataGridView[vendorMovementColumn.Index, r].Value = pr.SUPPLIER.NAME;
                    break;

                case StockCardEntryType.SalesReturn:
                    SalesReturnItem sri = (SalesReturnItem)itm;
                    SalesReturn     sr  = (SalesReturn)sri.EVENT;
                    sr.CUSTOMER = (Customer)r_cus.GetById(sr.CUSTOMER);
                    movemntkryptonDataGridView[vendorMovementColumn.Index, r].Value = sr.CUSTOMER.NAME;
                    break;
                }
                movemntkryptonDataGridView[statusMovementColumn.Index, r].Value = itm.EVENT.POSTED.ToString();
            }
            UserSetting.AddNumberToGrid(movemntkryptonDataGridView);
        }
コード例 #6
0
 private void SearchPOForGRNForm_Load(object sender, EventArgs e)
 {
     UserSetting.LoadSetting(gridData, m_user.ID, this.Name);
 }
コード例 #7
0
 private void SupplierTransactionSummaryForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     UserSetting.SaveSetting(transactionkryptonDataGridView, m_mainForm.CurrentUser.ID, this.Name);
 }
コード例 #8
0
 private void SearchGoodReceiveNoteForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     UserSetting.SaveSetting(gridData, 1, this.Name);
 }
コード例 #9
0
 private void SupplierForm_Load(object sender, EventArgs e)
 {
     UserSetting.LoadSetting(transactionkryptonDataGridView, m_mainForm.CurrentUser.ID, this.Name);
     UserSetting.LoadSetting(vendorbalanceentrykryptonDataGridView, m_mainForm.CurrentUser.ID, this.Name);
     UserSetting.LoadSetting(vendorbalancekryptonDataGridView, m_mainForm.CurrentUser.ID, this.Name);
 }
コード例 #10
0
 private void CustomerTransactionSummaryForm_Load(object sender, EventArgs e)
 {
     UserSetting.LoadSetting(transactionkryptonDataGridView, m_mainForm.CurrentUser.ID, this.Name);
 }
コード例 #11
0
 private void SearchGoodReceiveNoteForm_Load(object sender, EventArgs e)
 {
     UserSetting.LoadSetting(gridData, 1, this.Name);
 }
コード例 #12
0
 private void OpeningStockForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     UserSetting.SaveSetting(dataItemskryptonDataGridView, m_mainForm.CurrentUser.ID, this.Name);
 }
コード例 #13
0
 private void OpeningStockForm_Load(object sender, EventArgs e)
 {
     UserSetting.LoadSetting(dataItemskryptonDataGridView, m_mainForm.CurrentUser.ID, this.Name);
 }
コード例 #14
0
ファイル: UserForm.cs プロジェクト: oghenez/profitz
 private void formAccessKryptonDataGridView1_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
 {
     UserSetting.AddNumberToGrid(formAccessKryptonDataGridView1);
 }
コード例 #15
0
 private void SearchDeliveryOrderForm_Load(object sender, EventArgs e)
 {
     UserSetting.LoadSetting(gridData, 1, this.Name);
 }
コード例 #16
0
ファイル: CustomerForm.cs プロジェクト: oghenez/profitz
 private void CustomerForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     UserSetting.SaveSetting(transactionkryptonDataGridView, m_mainForm.CurrentUser.ID, this.Name);
     UserSetting.SaveSetting(vendorbalanceentrykryptonDataGridView, m_mainForm.CurrentUser.ID, this.Name);
     UserSetting.SaveSetting(vendorbalancekryptonDataGridView, m_mainForm.CurrentUser.ID, this.Name);
 }
コード例 #17
0
 private void SearchDeliveryOrderForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     UserSetting.SaveSetting(gridData, 1, this.Name);
 }
コード例 #18
0
ファイル: CustomerForm.cs プロジェクト: oghenez/profitz
 private void dataGrid_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e)
 {
     UserSetting.AddNumberToGrid((KryptonDataGridView)sender);
 }
コード例 #19
0
 private void SearchPOForGRNForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     UserSetting.SaveSetting(gridData, m_user.ID, this.Name);
 }
コード例 #20
0
 private void MarkDownSellingPriceForm_Load(object sender, EventArgs e)
 {
     UserSetting.LoadSetting(partDataGridView1, 1, this.Name);
 }
コード例 #21
0
 private void transactionkryptonDataGridView_Sorted(object sender, EventArgs e)
 {
     UserSetting.AddNumberToGrid(transactionkryptonDataGridView);
 }
コード例 #22
0
 private void MarkDownSellingPriceForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     UserSetting.SaveSetting(partDataGridView1, 1, this.Name);
 }
コード例 #23
0
 private void SearchPurchaseReturnForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     UserSetting.SaveSetting(gridData, 1, this.Name);
 }
コード例 #24
0
 private void partDataGridView1_Sorted(object sender, EventArgs e)
 {
     UserSetting.AddNumberToGrid(partDataGridView1);
 }
コード例 #25
0
ファイル: PartForm.cs プロジェクト: oghenez/profitz
 private void PartForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     UserSetting.SaveSetting(movemntkryptonDataGridView, m_mainForm.CurrentUser.ID, this.Name);
     UserSetting.SaveSetting(pricemovementkryptonDataGridView1, m_mainForm.CurrentUser.ID, this.Name);
     UserSetting.SaveSetting(stockInfokryptonDataGridView2, m_mainForm.CurrentUser.ID, this.Name);
 }
コード例 #26
0
 private void SearchOpeningStockForm_Load(object sender, EventArgs e)
 {
     UserSetting.LoadSetting(gridData, 1, this.Name);
 }