예제 #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);
 }
 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);
 }
 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
 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
 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);
 }
 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);
 }