Exemplo n.º 1
0
        private void EditSB_Click(object sender, EventArgs e)
        {
            DocumentDetailsData form = new DocumentDetailsData("edit", document, documentDetailsView,
                                                               ((DocumentDetailView)(DetailsGV.SelectedRows[0].DataBoundItem)).DetailObject);

            form.ShowDialog();
            FillDetails();
        }
Exemplo n.º 2
0
        private void NewSB_Click(object sender, EventArgs e)
        {
            if (SimpleCB.Checked == true)
            {
                DocumentDetailsData form = new DocumentDetailsData("new", document, documentDetailsView, null);
                form.ShowDialog();
            }
            else
            {
                DocumentDetailsDataSimple form = new DocumentDetailsDataSimple("new", document, documentDetailsView, null);
                form.MaximizeBox = true;
                form.ShowDialog();
            }


            FillDetails();
        }
Exemplo n.º 3
0
        private void DocumentData_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F12)
            {
                e.Handled     = true;
                startWareCode = true;
                endWareCode   = false;
                WareCodeTB.Focus();
                scanWareCode = "";
            }
            else
            {
                if ((e.KeyCode != Keys.Enter) & (startWareCode == true) & (endWareCode == false))
                {
                    e.Handled    = true;
                    scanWareCode = scanWareCode + (char)(e.KeyValue);
                }
            }
            if ((e.KeyCode == Keys.Enter) & (startWareCode == true) & (endWareCode == false))
            {
                e.Handled     = true;
                startWareCode = false;
                endWareCode   = false;
                //MessageBox.Show(scanWareCode);
                WareDocumentDetail detail = AddDocumenDetailByWareCode(scanWareCode);
                if (ExtendedNewDetailViewCB.Checked == true & detail != null)
                {
                    DocumentDetailsData form = new DocumentDetailsData("edit", document, documentDetailsView, detail);
                    form.ShowDialog();


                    FillDetails();
                }
            }

            if (e.KeyCode == Keys.F4)
            {
                //Нова НО
                AdminUI.Wares.Ware.WareData form = new Wares.Ware.WareData("new", null, null);
                form.ShowDialog();
            }
        }
Exemplo n.º 4
0
        private void NewSB_Click(object sender, EventArgs e)
        {
            if (SimpleCB.Checked == true)
            {
                DocumentDetailsData form = new DocumentDetailsData("new", document, documentDetailsView, null);
                form.ShowDialog();
            }
            else
            {
                DocumentDetailsDataSimple form = new DocumentDetailsDataSimple("new", document, documentDetailsView, null);
                form.MaximizeBox = true;
                form.ShowDialog();
            }

            FillDetails();
        }
Exemplo n.º 5
0
 private void EditSB_Click(object sender, EventArgs e)
 {
     DocumentDetailsData form = new DocumentDetailsData("edit", document, documentDetailsView,
             ((DocumentDetailView)(DetailsGV.SelectedRows[0].DataBoundItem)).DetailObject);
         form.ShowDialog();
         FillDetails();
 }
Exemplo n.º 6
0
        private void DocumentData_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.F12)
            {
                e.Handled = true;
                startWareCode = true;
                endWareCode = false;
                WareCodeTB.Focus();
                scanWareCode = "";
            }
            else
            {
                if ((e.KeyCode != Keys.Enter) & (startWareCode == true) & (endWareCode == false))
                {
                    e.Handled = true;
                    scanWareCode = scanWareCode + (char)(e.KeyValue);
                }
            }
            if ((e.KeyCode == Keys.Enter) & (startWareCode == true) & (endWareCode == false))
            {
                e.Handled = true;
                startWareCode = false;
                endWareCode = false;
                //MessageBox.Show(scanWareCode);
                WareDocumentDetail detail = AddDocumenDetailByWareCode(scanWareCode);
                if (ExtendedNewDetailViewCB.Checked == true & detail != null)
                {
                    DocumentDetailsData form = new DocumentDetailsData("edit", document, documentDetailsView, detail);
                    form.ShowDialog();

                    FillDetails();
                }

            }

            if (e.KeyCode == Keys.F4)
            {
                //Нова НО
                AdminUI.Wares.Ware.WareData form = new Wares.Ware.WareData("new", null, null);
                form.ShowDialog();
            }
        }