Пример #1
0
        private void tool_DIRSALES_Click(object sender, EventArgs e)
        {
            BL.CLS_ORDERS.ORDER_TYPES = 0;
            FORM_SALES FORM = new FORM_SALES();

            FORM.ShowDialog();
        }
Пример #2
0
 private void button_INVO_DETLS_Click(object sender, EventArgs e)
 {
     if (gridView1.RowCount > 0)
     {
         var           ORDER_TYPES = BL.CLS_ORDERS.ORDER_TYPES;
         int           ID_ORD      = int.Parse(gridView1.GetRowCellValue(gridView1.FocusedRowHandle, gridView1.Columns["ID_ORDER"]).ToString());
         PL.FORM_SALES form        = new FORM_SALES();
         form.Restore_Order(ID_ORD);
         form.InitializeFunction();
         form.ShowDialog();
     }
 }
Пример #3
0
        public FORM_SALES()
        {
            if (frm == null)
            {
                frm = this;
            }

            InitializeComponent();
            label_SALES_MAN.Text        = BL.CLS_LOGIN.SALES_MAN;
            textBox_COUST_NAME.Text     = BL.CLS_COUSTOMERS.COUST_NAME;
            label_COUST_ID.Text         = BL.CLS_COUSTOMERS.COUST_ID.ToString();
            textBox_PRD_BARCODE.Enabled = false;
            var dt = COUST.GET_ALL_COUSTOMERS();

            if (dt.Rows.Count > 0)
            {
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    textBox_COUST_NAME.AutoCompleteCustomSource.Add(dt.Rows[i]["COUST_NAME"].ToString());
                }
            }
        }
Пример #4
0
 static void frm_FormClosed(object sender, FormClosedEventArgs e)
 {
     frm = null;
 }