private void SalesReturnrForm_FormClosing(object sender, FormClosingEventArgs e) { UserSetting.SaveSetting(itemsDataGrid, m_mainForm.CurrentUser.ID, this.Name); }
private void SearchOpeningStockForm_FormClosing(object sender, FormClosingEventArgs e) { UserSetting.SaveSetting(gridData, 1, this.Name); }
private void SalesReturnForm_Load(object sender, EventArgs e) { UserSetting.LoadSetting(itemsDataGrid, m_mainForm.CurrentUser.ID, this.Name); }
private void SearchPurchaseReturnForm_Load(object sender, EventArgs e) { UserSetting.LoadSetting(gridData, 1, this.Name); }
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); }
private void SearchPOForGRNForm_Load(object sender, EventArgs e) { UserSetting.LoadSetting(gridData, m_user.ID, this.Name); }
private void SupplierTransactionSummaryForm_FormClosing(object sender, FormClosingEventArgs e) { UserSetting.SaveSetting(transactionkryptonDataGridView, m_mainForm.CurrentUser.ID, this.Name); }
private void SearchGoodReceiveNoteForm_FormClosing(object sender, FormClosingEventArgs e) { UserSetting.SaveSetting(gridData, 1, this.Name); }
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); }
private void CustomerTransactionSummaryForm_Load(object sender, EventArgs e) { UserSetting.LoadSetting(transactionkryptonDataGridView, m_mainForm.CurrentUser.ID, this.Name); }
private void SearchGoodReceiveNoteForm_Load(object sender, EventArgs e) { UserSetting.LoadSetting(gridData, 1, this.Name); }
private void OpeningStockForm_FormClosing(object sender, FormClosingEventArgs e) { UserSetting.SaveSetting(dataItemskryptonDataGridView, m_mainForm.CurrentUser.ID, this.Name); }
private void OpeningStockForm_Load(object sender, EventArgs e) { UserSetting.LoadSetting(dataItemskryptonDataGridView, m_mainForm.CurrentUser.ID, this.Name); }
private void formAccessKryptonDataGridView1_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e) { UserSetting.AddNumberToGrid(formAccessKryptonDataGridView1); }
private void SearchDeliveryOrderForm_Load(object sender, EventArgs e) { UserSetting.LoadSetting(gridData, 1, this.Name); }
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); }
private void SearchDeliveryOrderForm_FormClosing(object sender, FormClosingEventArgs e) { UserSetting.SaveSetting(gridData, 1, this.Name); }
private void dataGrid_RowsAdded(object sender, DataGridViewRowsAddedEventArgs e) { UserSetting.AddNumberToGrid((KryptonDataGridView)sender); }
private void SearchPOForGRNForm_FormClosing(object sender, FormClosingEventArgs e) { UserSetting.SaveSetting(gridData, m_user.ID, this.Name); }
private void MarkDownSellingPriceForm_Load(object sender, EventArgs e) { UserSetting.LoadSetting(partDataGridView1, 1, this.Name); }
private void transactionkryptonDataGridView_Sorted(object sender, EventArgs e) { UserSetting.AddNumberToGrid(transactionkryptonDataGridView); }
private void MarkDownSellingPriceForm_FormClosing(object sender, FormClosingEventArgs e) { UserSetting.SaveSetting(partDataGridView1, 1, this.Name); }
private void SearchPurchaseReturnForm_FormClosing(object sender, FormClosingEventArgs e) { UserSetting.SaveSetting(gridData, 1, this.Name); }
private void partDataGridView1_Sorted(object sender, EventArgs e) { UserSetting.AddNumberToGrid(partDataGridView1); }
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); }
private void SearchOpeningStockForm_Load(object sender, EventArgs e) { UserSetting.LoadSetting(gridData, 1, this.Name); }