Beispiel #1
0
        private void buttonInsertOrder_Click(object sender, EventArgs e)
        {
            Form orderProcess = new OrderStandard();

            orderProcess.ShowDialog();
            comboBoxStatus_SelectedIndexChanged(sender, e);
        }
Beispiel #2
0
        private void dataGridViewOrder_DoubleClick(object sender, EventArgs e)
        {
            ThreadStart ts   = new ThreadStart(showProcessing);
            Thread      wait = new Thread(ts);

            wait.Start();
            OrderStandard order = new OrderStandard(customer);

            wait.Abort();
            order.ShowDialog();
            fillOrderList();
            customers = ShardDb.getCustomersById(customer.id);
            if (!customers.Success)
            {
                this.Close();
                return;
            }
            customer = new Customer();
            foreach (DataRow dr in customers.DataTable.Rows)
            {
                customer.brideName      = dr[0] == null ? "" : dr[0].ToString();
                customer.brideContact   = dr[1] == null ? "" : dr[1].ToString();
                customer.marryDay       = dr[2] == null ? "" : dr[2].ToString();
                customer.channelId      = Convert.ToInt16(dr[3]);
                customer.reserveDate    = dr[4] == null ? "" : dr[4].ToString();
                customer.reserveTime    = dr[5] == null ? "" : dr[5].ToString();
                customer.tryDress       = dr[6] == null ? "" : dr[6].ToString();
                customer.memo           = dr[7] == null ? "" : dr[7].ToString();
                customer.scsj_jsg       = dr[8] == null ? "" : dr[8].ToString();
                customer.scsj_cxsg      = dr[9] == null ? "" : dr[9].ToString();
                customer.scsj_tz        = dr[10] == null ? "" : dr[10].ToString();
                customer.scsj_xw        = dr[11] == null ? "" : dr[11].ToString();
                customer.scsj_xxw       = dr[12] == null ? "" : dr[12].ToString();
                customer.scsj_yw        = dr[13] == null ? "" : dr[13].ToString();
                customer.scsj_dqw       = dr[14] == null ? "" : dr[14].ToString();
                customer.scsj_tw        = dr[15] == null ? "" : dr[15].ToString();
                customer.scsj_jk        = dr[16] == null ? "" : dr[16].ToString();
                customer.scsj_jw        = dr[17] == null ? "" : dr[17].ToString();
                customer.scsj_dbw       = dr[18] == null ? "" : dr[18].ToString();
                customer.scsj_yddc      = dr[19] == null ? "" : dr[19].ToString();
                customer.scsj_qyj       = dr[20] == null ? "" : dr[20].ToString();
                customer.scsj_bpjl      = dr[21] == null ? "" : dr[21].ToString();
                customer.status         = Int16.Parse(dr[22].ToString());
                customer.jdgw           = dr[23] == null ? "" : dr[23].ToString();
                customer.groomName      = dr[24] == null ? "" : dr[24].ToString();
                customer.groomContact   = dr[25] == null ? "" : dr[25].ToString();
                customer.wangwangID     = dr[26] == null ? "" : dr[26].ToString();
                customer.id             = Convert.ToInt16(dr[27]);
                customer.reservetimes   = dr[28] == null ? "" : dr[28].ToString();
                customer.retailerMemo   = dr[29] == null ? "" : dr[29].ToString();
                customer.hisreason      = dr[30] == null ? "" : dr[30].ToString();
                customer.storeId        = Convert.ToInt16(dr[31]);
                customer.accountPayable = dr[32].ToString();
                customer.refund         = dr[33].ToString();
                customer.fine           = dr[34].ToString();
                customer.partnerName    = dr[35] == null ? "" : dr[35].ToString();
            }
            textBoxAccountPayable.Text = customer.accountPayable;
        }
Beispiel #3
0
        private void dataGridViewOrders_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            DataGridViewRow row = this.dataGridViewOrders.Rows[e.RowIndex];
            Form            bt  = new OrderStandard(row.Cells["id"].Value.ToString());

            bt.ShowDialog();
            if (comboBoxStatus.Visible)
            {
                comboBoxStatus_SelectedIndexChanged(sender, e);//更新完信息后自动刷新客户列表
            }
            else
            {
                loadOrders();
            }
        }