Esempio n. 1
0
        private void plInvoice_ValueChanged()
        {
            if (this.plInvoice.RowItem.Id == (long)0)
            {
                return;
            }
            InvoiceAuto_BL invoiceAutoBL = new InvoiceAuto_BL();

            this.invoiceAuto.Items.Clear();
            this.invoiceAuto.Items.AddRange(invoiceAutoBL.ListLot(this.plInvoice.RowItem.Guid));
            this.TransformData();
        }
Esempio n. 2
0
        private void fromStore_Click(object sender, EventArgs e)
        {
            long IdStoreTo = 0;

            // нажимаем на выбор склада "Откуда"
            if (this.pluginBox1.RowItem.Id == (long)0)
            {
                return;
            }

            ///Заполняем содержимое таблицы ниже

            foreach (object itemChecked in this.chStore.CheckedItems)
            {
                STORE item = (STORE)itemChecked;
                IdStoreTo = item.ID_STORE;
                LogTrace("Нашли склад " + item.NAME); // отладка
                break;
                #region кусок из заполнения документа
                //STORE item = (STORE)this.chStore.Items[i];

                /*MOVEMENT mOVEMENT = new MOVEMENT()
                 * {
                 *  MNEMOCODE = DOCUMENT_DALC.GetDocumentNumber((long)8),
                 *  DOCUMENT_STATE = (new DocumentState((EDocumentState)((long)1))).Mnemocode,
                 *  ID_STORE_FROM = this.pluginBox1.Id,
                 *  ID_STORE_TO = item.ID_STORE,
                 *  DATE = DateTime.Now
                 * };*/
                #endregion
            }


            this.plInvoice.SetId((long)0);
            InvoiceAuto_BL invoiceAutoBL = new InvoiceAuto_BL();
            this.invoiceAuto.Items.Clear();             // очистка таблицы
            if (IdStoreTo > 0)
            {
                this.invoiceAuto.Items.AddRange(invoiceAutoBL.ListRest(this.pluginBox1.RowItem.Id, IdStoreTo));
            }
            else
            {
                this.invoiceAuto.Items.AddRange(invoiceAutoBL.ListRest(this.pluginBox1.RowItem.Id));
            }



            this.TransformData();
        }